/* Three-column game portal, using only TONON OT assets and existing routes. */
body.tonon-theme {
  --tonon-surface: #202323;
  --tonon-border: #85734f;
  --tonon-line: #454948;
  background: #161818 url('../images/tononot/fortress-desktop.webp') center top / cover no-repeat fixed;
  color: #e9eae6;
}
.tonon-theme .tonon-shell { width: min(1280px, calc(100% - 32px)); }
.tonon-theme .tonon-header { background: transparent; border: 0; box-shadow: none; }
.tonon-theme .tonon-header::before { display: none; }
.tonon-theme .tonon-header-inner { min-height: 176px; padding: 24px 0; justify-content: center; position: relative; }
.tonon-theme .tonon-header .tonon-wordmark { width: 330px; max-width: 100%; filter: drop-shadow(0 3px 4px #0009); }
.tonon-theme .tonon-brand { flex-direction: column; margin: 0; }
.tonon-theme .tonon-brand-caption { margin: 0; color: #f2e4c6; font-size: 10px; text-shadow: 0 1px 3px #000; }
.tonon-theme .tonon-mobile-account, .tonon-theme .tonon-sidebar-toggle { display: none; }
.tonon-theme .tonon-reference-layout { display: grid; grid-template-columns: 214px minmax(0, 1fr) 214px; gap: 16px; align-items: start; padding: 0 0 24px; }
.tonon-reference-layout > * { min-width: 0; }
.tonon-theme .tonon-center-column { width: 100%; max-width: none; margin: 0; container: tonon-content / inline-size; }
.tonon-quickbar { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 20px; min-height: 44px; padding: 10px 14px; margin-bottom: 16px; background: #202323; border: 1px solid #9b8358; box-shadow: inset 0 0 0 3px #353a37; font-size: 13px; }
.tonon-quickbar a, .tonon-quick-status { display: inline-flex; align-items: center; gap: 7px; }
.tonon-quickbar a { color: #e9e6dc; }
.tonon-quick-status { color: #bbd2c8; font-size: 12px; }
.tonon-theme .tonon-status-dot { width: 7px; height: 7px; flex: 0 0 7px; background: #909591; box-shadow: none; }
.tonon-theme .tonon-status-dot.is-online { background: #7acba1; }
.tonon-theme .tonon-strip-title, .tonon-theme .tonon-side-group > summary,
.tonon-theme .tonon-section-heading { display: flex; align-items: center; justify-content: flex-start; gap: 10px; margin: 0; min-height: 44px; padding: 10px 14px; color: #f1dfb7; background: #43222c; border: 1px solid #9b8358; border-radius: 0; box-shadow: inset 0 0 0 3px #301c22; font: 600 15px/1.4 Georgia, serif; text-transform: uppercase; }
.tonon-strip-title > :is(i, svg) { width: 16px; flex-shrink: 0; }
.tonon-side-section { margin: 0 0 16px; background: #202323; border-bottom: 1px solid #85734f; }
.tonon-side-actions { padding: 16px 12px; display: grid; gap: 10px; }
.tonon-theme .tonon-side-actions .tonon-portal-button { min-height: 40px; padding: 9px 10px; font-size: 13px; }
.tonon-theme .tonon-side-download { display: flex; width: 100%; min-height: 42px; padding: 10px; margin-bottom: 16px; color: #e8f4ea; background: #315744; border: 1px solid #7e9b74; font-size: 13px; }
.tonon-theme .tonon-side-download:hover { background: #3d6c54; }
.tonon-side-group { margin-bottom: 8px; max-width: 100%; }
.tonon-theme .tonon-side-group > summary { cursor: pointer; justify-content: space-between; list-style: none; font-size: 14px; }
.tonon-side-group > summary::-webkit-details-marker { display: none; }
.tonon-side-group > summary > :is(i, svg) { width: 12px; flex-shrink: 0; transition: transform .15s; }
.tonon-side-group[open] > summary > :is(i, svg) { transform: rotate(180deg); }
.tonon-side-group > ul { margin: 0; padding: 8px 0; list-style: none; background: #202323; border: 1px solid #85734f; border-top: 0; }
.tonon-side-navigation a { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 8px 14px; color: #cdd3ce; text-decoration: none; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.tonon-side-navigation a > :is(i, svg) { width: 8px; flex: 0 0 8px; color: #bca678; }
.tonon-side-navigation a:hover, .tonon-side-navigation a[aria-current] { color: #f6e4ba; background: #393c35; }
.tonon-side-navigation a[aria-current] { box-shadow: inset 3px 0 #c2a66e; }
.tonon-side-content { padding: 18px 12px; text-align: center; font-size: 13px; }
.tonon-side-content h3 { font: 600 18px/1.4 Georgia, serif; margin: 8px 0 16px; }
.tonon-side-content p { margin: 8px 0 14px; }
.tonon-theme .tonon-side-symbol { width: 42px; height: 42px; font-size: 38px; color: #d8b875; }
.tonon-theme .tonon-side-community .tonon-side-symbol { color: #89afbf; }
.tonon-theme .tonon-side-community .tonon-portal-button { background: #315a67; border-color: #779ca5; }
.tonon-theme .tonon-side-content .tonon-portal-button { display: flex; min-height: 40px; padding: 10px; font-size: 12px; }
.tonon-side-content .tonon-opening-label { display: block; color: #edd3a1; font-size: 16px; font-weight: 600; }
.tonon-side-note { color: #b8c1bc; font-size: 12px; line-height: 1.5; }
.tonon-boosted-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 16px 10px; }
.tonon-boosted-pair figure { margin: 0; min-width: 0; text-align: center; }
.tonon-boosted-pair img { display: block; width: 72px; height: 72px; margin: 0 auto 8px; object-fit: contain; image-rendering: pixelated; background: #313532; border: 1px solid #777d73; }
.tonon-boosted-pair figcaption { display: grid; gap: 5px; font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
.tonon-boosted-pair strong { color: #d5b882; text-transform: uppercase; font-size: 10px; }
.tonon-boosted-pair span { color: #c6cfc8; }
.tonon-side-empty { grid-column: 1 / -1; margin: 6px 0; font-size: 12px; color: #b5bfb8; text-align: center; }
.tonon-theme .tonon-tool { width: 100%; }
.tonon-theme .tonon-tool-content { padding: 12px; background: #202323; border-bottom: 1px solid #85734f; }
.tonon-theme .tonon-tool-content [class$='_header'] { display: none; }
.tonon-theme .tonon-tool-content .tonon-rank-outfit { flex-shrink: 0; }
.tonon-theme .tonon-tool-content .rank_text { min-width: 0; margin-left: 0; white-space: normal; overflow-wrap: anywhere; font-size: 12px; }
.tonon-theme .tonon-tool-content .tonon-rank-outfit { width: 48px; height: 48px; margin-right: 8px; }
.tonon-theme .tonon-tool-content :is(input, select) { max-width: 100%; }
.tonon-theme .tonon-breadcrumb { padding: 9px 12px; margin: 0 0 10px; background: #202323; font-size: 12px; color: #c2ccc4; }
.tonon-theme .tonon-section-heading :is(h1, h2) { font: inherit; text-transform: uppercase; }
.tonon-theme #ContentColumn { max-width: none; margin: 0; }
.tonon-theme .Content .BoxContent { padding: 22px; background: #202323 !important; font-size: 15px; border-bottom: 1px solid #85734f; }
.tonon-home .Content .BoxContent { padding: 0; background: transparent !important; border: 0; overflow: visible; }
.tonon-theme .Content .BoxContent :is(td, th) { font-size: 14px; padding: 10px; }
.tonon-theme .Content .TableContent > tbody > tr { background: #232727 !important; }
.tonon-theme .Content .TableContent > tbody > tr:nth-child(even) { background: #2b302e !important; }
.tonon-theme .Content :is(th, .LabelH, .LabelH td) { background: #393c35 !important; color: #e0d9c9; }
.tonon-theme .Content :is(.tonon-search-form, .tonon-filter-grid) { background: #2b302e; }
.tonon-theme .Content .tonon-login-layout { display: block; }
.tonon-theme .Content .tonon-login-card { padding: 0; border: 0; }
.tonon-theme .Content .tonon-login-card > :is(.tonon-eyebrow, h3), .tonon-theme .Content .tonon-login-invitation { display: none; }
.tonon-theme .Content .tonon-login-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 20px; row-gap: 10px; margin-top: 20px; }
.tonon-login-form > label[for='tonon-account-login'] { grid-column: 1; grid-row: 1; }
.tonon-login-form > #tonon-account-login { grid-column: 1; grid-row: 2; }
.tonon-login-form > label[for='tonon-password-login'] { grid-column: 2; grid-row: 1; }
.tonon-login-form > #tonon-password-login { grid-column: 2; grid-row: 2; }
.tonon-login-form > .tonon-remember { grid-column: 1 / -1; }
.tonon-login-form > .BigButton { grid-column: 1 / -1; justify-self: start; }
.tonon-news-home > section { margin-bottom: 16px; }
.tonon-theme .Content .tonon-news-home .tonon-strip-title { color: #f1dfb7; font: 600 15px/1.4 Georgia, serif; margin: 0; }
.tonon-updates { list-style: none; margin: 0; padding: 0; background: #202323; border: 1px solid #85734f; border-top: 0; }
.tonon-updates > li { border-bottom: 1px solid #454948; }
.tonon-updates > li:last-child { border: 0; }
.tonon-updates > li:nth-child(even) { background: #2b302e; }
.tonon-update-row summary { display: grid; grid-template-columns: 18px 78px minmax(0, 1fr) 12px; align-items: center; gap: 10px; min-height: 44px; padding: 10px 14px; list-style: none; cursor: pointer; font-size: 12px; line-height: 1.4; color: #cbd1ca; }
.tonon-update-row summary::-webkit-details-marker { display: none; }
.tonon-update-row summary > :is(i, svg) { width: 14px; color: #d0b57c; }
.tonon-update-row summary > :is(i, svg):last-child { width: 10px; }
.tonon-update-row time { font-size: 11px; color: #b8c2bb; font-variant-numeric: tabular-nums; }
.tonon-update-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tonon-update-row[open] .tonon-update-text { white-space: normal; }
.tonon-update-row[open] summary > :is(i, svg):last-child { transform: rotate(90deg); }
.tonon-update-row > p { margin: 0; padding: 0 14px 12px 42px; font-size: 13px; }
.tonon-home-publication { padding: 22px; background: #202323; border: 1px solid #85734f; border-top: 0; }
.tonon-theme .Content .tonon-news-entry { padding: 0; border: 0; }
.tonon-theme .Content .tonon-news-entry:first-child { padding-top: 0; }
.tonon-theme .Content .tonon-news-entry h3 { color: #f1dfb7; font: 600 23px/1.35 Georgia, serif; margin: 12px 0 18px; }
.tonon-theme .Content .tonon-news-body { max-width: none; font-size: 15px; }
.tonon-theme .Content .tonon-news-body p { line-height: 1.65; margin: 0 0 16px; }
.tonon-theme .Content .tonon-news-body ul { padding-left: 22px; }
.tonon-news-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 16px; border-top: 1px solid #454948; font-size: 12px; }
.tonon-news-pagination > a, .tonon-news-pagination > span[aria-disabled] { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; max-width: 42%; padding: 8px 10px; border: 1px solid #6d786e; border-radius: 3px; background: #303830; color: #e1e6dd; line-height: 1.4; }
.tonon-news-pagination > span[aria-disabled] { color: #9eaaa0; background: #272b28; }
.tonon-news-pagination > span[aria-live] { flex-shrink: 0; color: #c0c9c1; font-variant-numeric: tabular-nums; }
.tonon-news-archive-link { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; font-size: 12px; }
.tonon-theme .tonon-footer { margin-top: 0; padding-top: 26px; background: #202323; border-color: #85734f; }
.tonon-theme .tonon-footer-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
.tonon-theme .tonon-footer-about { grid-column: 1 / -1; }
.tonon-theme .tonon-footer nav { padding: 0; }
.tonon-theme .tonon-footer nav h2 { margin: 0 0 14px; font: 600 13px/1.4 Georgia, serif; text-transform: uppercase; }
.tonon-theme .tonon-footer li { margin-bottom: 6px; line-height: 1.5; }
.tonon-theme .tonon-footer a { font-size: 12px; color: #c4cec5; }
.tonon-theme .tonon-footer-about .tonon-wordmark { width: 150px; max-width: 100%; }
@container tonon-content (max-width: 760px) {
  .tonon-theme .Content .tonon-profile-overview { grid-template-columns: 212px minmax(0, 1fr); gap: 20px; }
  .tonon-theme .Content .tonon-profile-appearance { padding-right: 18px; }
  .tonon-theme .Content .tonon-profile-facts { gap: 0 16px; }
  .tonon-theme .Content .tonon-profile-skills { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tonon-theme .Content .tonon-login-layout { grid-template-columns: minmax(0, 1fr); }
}
@container tonon-content (max-width: 600px) {
  .tonon-theme .Content .tonon-profile-overview { grid-template-columns: minmax(0, 1fr); }
  .tonon-theme .Content .tonon-profile-appearance { display: flex; justify-content: center; align-items: start; flex-wrap: wrap; gap: 24px; padding: 0 0 24px; border-right: 0; border-bottom: 1px solid #455159; }
  .tonon-theme .Content .tonon-profile-bars, .tonon-theme .Content .tonon-profile-collections, .tonon-theme .Content .tonon-profile-signature { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1100px) and (min-width: 1024px) {
  .tonon-theme .tonon-reference-layout { grid-template-columns: 190px minmax(0, 1fr) 190px; gap: 12px; }
  .tonon-theme .tonon-strip-title { font-size: 13px; padding-inline: 10px; }
}
@media (max-width: 1023px) {
  .tonon-theme .tonon-reference-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .tonon-theme .tonon-header-inner { min-height: 112px; padding: 12px 0; flex-wrap: nowrap; justify-content: space-between; gap: 12px; }
  .tonon-theme .tonon-header .tonon-wordmark { width: 230px; }
  .tonon-theme .tonon-sidebar-toggle, .tonon-theme .tonon-mobile-account { display: flex; flex: 0 0 44px; width: 44px; height: 44px; justify-content: center; align-items: center; padding: 0; border: 1px solid #9b8358; border-radius: 4px; color: #f1dfb7; background: #202323; font-size: 18px; }
  .tonon-left-sidebar { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 16px; }
  .tonon-left-sidebar > .tonon-side-download { grid-column: 1; grid-row: 2; }
  .tonon-side-navigation { grid-column: 2; grid-row: 1 / 3; }
  .tonon-right-sidebar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 16px; }
  .tonon-right-sidebar > section { margin-bottom: 0; }
  .tonon-side-resources { grid-column: 1 / -1; }
  .tonon-theme .tonon-footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body.tonon-theme { background-image: url('../images/tononot/fortress-mobile.webp'); background-attachment: scroll; background-size: auto 760px; }
  .tonon-theme .tonon-shell { width: calc(100% - 24px); }
  .tonon-theme .tonon-header-inner { min-height: 100px; }
  .tonon-theme .tonon-header .tonon-wordmark { width: 190px; }
  .tonon-theme .tonon-brand-caption { font-size: 9px; }
  .tonon-left-sidebar, .tonon-right-sidebar { grid-template-columns: minmax(0, 1fr); }
  .tonon-side-navigation { grid-column: 1; grid-row: auto; }
  .tonon-left-sidebar > .tonon-side-download { grid-row: auto; }
  .tonon-quickbar { gap: 10px 16px; }
  .tonon-theme .Content .BoxContent, .tonon-home-publication { padding: 18px 14px; }
  .tonon-home .Content .BoxContent { padding: 0; }
  .tonon-theme .Content .tonon-news-entry h3 { font-size: 21px; }
  .tonon-theme .Content .tonon-login-form { grid-template-columns: minmax(0, 1fr); }
  .tonon-login-form > label[for='tonon-password-login'] { grid-column: 1; grid-row: 3; }
  .tonon-login-form > #tonon-password-login { grid-column: 1; grid-row: 4; }
  .tonon-update-row summary { grid-template-columns: 16px minmax(0, 1fr) 10px; gap: 8px; padding: 10px; }
  .tonon-update-row time { grid-column: 2; grid-row: 1; }
  .tonon-update-text { grid-column: 2; grid-row: 2; }
  .tonon-update-row summary > :is(i, svg):first-child { grid-row: 1 / 3; }
  .tonon-update-row summary > :is(i, svg):last-child { grid-column: 3; grid-row: 1 / 3; }
  .tonon-theme .tonon-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
@media (max-width: 360px) {
  .tonon-theme .tonon-header .tonon-wordmark { width: 158px; }
  .tonon-news-pagination > a, .tonon-news-pagination > span[aria-disabled] { padding-inline: 7px; font-size: 11px; gap: 5px; }
}
@media (prefers-reduced-motion: reduce) { .tonon-side-group > summary > :is(i, svg) { transition: none; } }
