/* Heaven OTS: inner-page visual system (2026-10-30).
   Loaded AFTER style.css. Highscores has its own dedicated stylesheet and is excluded.
   Style-only changes; no game data or core MyAAC templates are modified. */

/* TYPOGRAPHY AND PAGE SPACING */
body.inner-page:not(.page-highscores) .legacy-content {
  --hv-surface: #0d1c30;
  --hv-surface-alt: #10243b;
  --hv-border: #29435e;
  --hv-border-soft: #1e354c;
  --hv-text: #e7efff;
  --hv-muted: #9fb3cf;
  color: #c3d2e8;
  font-size: 13px;
  line-height: 1.65;
  min-width: 0;
}
body.inner-page:not(.page-highscores) .legacy-content > :first-child { margin-top: 0; }
body.inner-page:not(.page-highscores) .legacy-content > :last-child { margin-bottom: 0; }
body.inner-page:not(.page-highscores) .legacy-content :is(h1, h2, h3, h4, h5) {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #f1f5ff;
  letter-spacing: -.2px;
  overflow-wrap: break-word;
}
body.inner-page:not(.page-highscores) .legacy-content h1 { font-size: clamp(23px, 2vw, 28px); font-weight: 750; margin: 0 0 19px; }
body.inner-page:not(.page-highscores) .legacy-content h2 { font-size: 19px; font-weight: 700; margin: 20px 0 13px; }
body.inner-page:not(.page-highscores) .legacy-content h3 { font-size: 16px; font-weight: 700; margin: 18px 0 11px; }
body.inner-page:not(.page-highscores) .legacy-content :is(p, ul, ol) { max-width: 100%; }
body.inner-page:not(.page-highscores) .legacy-content :is(ul, ol) { padding-left: 22px; }
body.inner-page:not(.page-highscores) .legacy-content li { margin: 3px 0; }
body.inner-page:not(.page-highscores) .legacy-content strong { color: #e8efff; }
body.inner-page:not(.page-highscores) .legacy-content a:not(.button) { text-decoration: none; }
body.inner-page:not(.page-highscores) .legacy-content a:not(.button):hover { color: #d6efff; }
body.inner-page:not(.page-highscores) .legacy-content hr { border: 0; border-top: 1px solid #28415b; margin: 20px 0; }
body.inner-page:not(.page-highscores) .legacy-content :is(pre, code) {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
body.inner-page:not(.page-highscores) .legacy-content pre {
  white-space: pre-wrap; word-break: break-word;
  color: #cbdaf3; border: 1px solid #2b4762; border-radius: 6px;
  background: #081321; padding: 15px;
}
body.inner-page:not(.page-highscores) .legacy-content :is(blockquote, .info, .message, .note, .notice, .success, .error, .warning, .error_box) {
  max-width: 100%;
}
body.inner-page:not(.page-highscores) .legacy-content blockquote {
  background: #0e2136; border-left: 3px solid #6d9dff;
  border-radius: 0 5px 5px 0; padding: 13px 17px; margin: 15px 0;
}

/* CLASSIC MYAAC TABLES: strip CipSoft borders without affecting ranking table */
body.inner-page:not(.page-highscores) .legacy-content :is(.TableContainer, .InnerTableContainer, .TableContentContainer, .TableContentAndRightShadow) {
  box-sizing: border-box; min-width: 0; max-width: 100%;
  background-image: none !important;
}
body.inner-page:not(.page-highscores) .legacy-content .TableContainer {
  margin: 16px 0 20px !important;
  border: 1px solid #2b4662 !important;
  background: #0b192b !important;
  border-radius: 7px !important;
  overflow-x: auto; overflow-y: hidden;
  box-shadow: 0 6px 20px #02091430;
  scrollbar-color: #355477 #0a1829;
}
body.inner-page:not(.page-highscores) .legacy-content :is(.InnerTableContainer, .TableContentContainer, .TableContentAndRightShadow) {
  padding: 0 !important; margin: 0 !important;
  border: 0 !important;
  width: 100% !important;
}
body.inner-page:not(.page-highscores) .legacy-content .CaptionContainer {
  display: flex; align-items: center;
  background: linear-gradient(100deg, #172e4c, #11243c) !important;
  color: #edf4ff !important; border: 0 !important;
  border-bottom: 1px solid #345271 !important;
  border-radius: 0 !important; min-height: 41px;
  padding: 10px 15px !important;
  font-size: 13px; font-weight: 750;
  letter-spacing: .2px; line-height: 1.4;
}
body.inner-page:not(.page-highscores) .legacy-content :is(.CaptionContainer .CaptionInnerContainer, .CaptionContainer .Text) {
  position: static !important; inset: auto !important; width: auto !important;
  height: auto !important; color: inherit !important;
  line-height: 1.4 !important; overflow: visible !important;
  padding: 0 !important; margin: 0 !important;
}
body.inner-page:not(.page-highscores) .legacy-content :is(.Table1, .Table2, .Table3, .Table4, .Table5, .TableContent) {
  width: 100% !important; min-width: 0; border: 0 !important;
  background: #0c1a2b !important; color: #c9d7ee;
  border-spacing: 0; border-collapse: collapse;
  table-layout: auto;
}
body.inner-page:not(.page-highscores) .legacy-content table {
  border-spacing: 0; border-collapse: collapse;
  table-layout: auto;
  max-width: 100%;
  color: #ccd9ed;
}
body.inner-page:not(.page-highscores) .legacy-content table :is(th, td) {
  padding: 12px 14px;
  text-align: left;
  border: 0;
  border-bottom: 1px solid #1e344c;
  vertical-align: middle;
  white-space: normal;
  word-break: normal !important;
  overflow-wrap: normal !important;
}
body.inner-page:not(.page-highscores) .legacy-content table th,
body.inner-page:not(.page-highscores) .legacy-content .LabelH {
  color: #dce9ff !important;
  font-size: 11px; font-weight: 750;
  background: #18304b !important;
}
body.inner-page:not(.page-highscores) .legacy-content :is(.LabelV, td.LabelV) {
  background: #13263d !important;
  color: #c4d7f1 !important;
  font-weight: 650;
  min-width: 118px;
}
body.inner-page:not(.page-highscores) .legacy-content :is(.Odd, .odd, tr.Odd, tr.odd) {
  background: #102139 !important;
}
body.inner-page:not(.page-highscores) .legacy-content :is(.Even, .even, tr.Even, tr.even) {
  background: #0b1a2d !important;
}
body.inner-page:not(.page-highscores) .legacy-content tr:hover > td:not(.LabelV) {
  background-color: #162d48;
}
body.inner-page:not(.page-highscores) .legacy-content table tr:last-child > td {
  border-bottom: 0;
}
body.inner-page:not(.page-highscores) .legacy-content .table-scroll {
  max-width: 100%; margin: 14px 0;
  overflow-x: auto; border: 1px solid #2a445f; border-radius: 6px;
  background: #091729; scrollbar-color: #355477 #0a1829;
}
body.inner-page:not(.page-highscores) .legacy-content .table-scroll > table {
  width: 100%; min-width: max-content; margin: 0;
}
/* Many MyAAC tables are nested (buttons, character details). Keep those compact. */
body.inner-page:not(.page-highscores) .legacy-content table table {
  width: auto; max-width: 100%; border: 0;
}
body.inner-page:not(.page-highscores) .legacy-content table table :is(td, th) {
  padding: 4px 7px; border-bottom: 0;
}

/* FORMS, ACCOUNT, CHARACTER SEARCH, GUILDS, SHOP */
body.inner-page:not(.page-highscores) .legacy-content form { max-width: 100%; }
body.inner-page:not(.page-highscores) .legacy-content label {
  color: #bfcee8; font-weight: 600;
}
body.inner-page:not(.page-highscores) .legacy-content :is(input:not([type='hidden']):not([type='checkbox']):not([type='radio']):not([type='submit']):not([type='button']):not([type='image']), select, textarea) {
  min-width: 0; max-width: 100%; min-height: 40px;
  color: #f0f5ff; background: #09192c;
  border: 1px solid #385676; border-radius: 5px;
  padding: 9px 12px;
  box-shadow: inset 0 1px 3px #0002;
  transition: border-color .15s, box-shadow .15s;
}
body.inner-page:not(.page-highscores) .legacy-content :is(input, textarea)::placeholder { color: #829cba; }
body.inner-page:not(.page-highscores) .legacy-content :is(input, select, textarea):focus {
  border-color: #67a8f6;
  box-shadow: 0 0 0 3px #4d8ffe22;
  outline: none;
}
body.inner-page:not(.page-highscores) .legacy-content :is(input[type='checkbox'], input[type='radio']) {
  accent-color: #377cff;
}
body.inner-page:not(.page-highscores) .legacy-content :is(button, input[type='submit'], input[type='button'], a.plain-button) {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 38px; padding: 9px 16px;
  color: #f3f7ff !important; font-weight: 650; font-size: 12px;
  background: linear-gradient(180deg, #245b9b, #153968);
  border: 1px solid #517caf; border-radius: 5px;
  cursor: pointer; text-align: center;
  box-shadow: inset 0 1px #ffffff12;
  transition: background .15s, border-color .15s, transform .15s;
}
body.inner-page:not(.page-highscores) .legacy-content :is(button, input[type='submit'], input[type='button'], a.plain-button):hover {
  background: linear-gradient(180deg, #3071ba, #1a4d88);
  border-color: #79b0ed;
}
body.inner-page:not(.page-highscores) .legacy-content :is(button, input[type='submit'], input[type='button']):disabled {
  cursor: not-allowed; opacity: .48;
}
body.inner-page:not(.page-highscores) .legacy-content a.button {
  border-radius: 5px;
}
body.inner-page:not(.page-highscores) .legacy-content .heaven-login {
  background: linear-gradient(140deg, #101f34, #0a1728);
  border: 1px solid #294560; border-radius: 8px;
  padding: clamp(18px, 3vw, 32px); margin: 14px auto 22px;
  box-shadow: 0 10px 30px #0003;
}
body.inner-page:not(.page-highscores) .legacy-content .heaven-login h3 { margin-top: 0; font-size: 22px; }
body.inner-page:not(.page-highscores) .legacy-content .heaven-login p { color: #9eb5d4; }
body.inner-page:not(.page-highscores) .legacy-content .heaven-login label:not(.login-remember) > span {
  display: block; margin-bottom: 6px;
}
body.inner-page:not(.page-highscores) .legacy-content .heaven-login input:not([type='checkbox']) { width: 100%; }
body.inner-page:not(.page-highscores) .legacy-content .heaven-login .button {
  background: linear-gradient(180deg, #1877ff, #123eff 85%);
  border-color: #76d0ff; font-size: 14px; min-height: 44px;
}
body.inner-page:not(.page-highscores) .legacy-content .heaven-login .login-remember {
  display: flex; gap: 9px; align-items: center;
}
body.inner-page:not(.page-highscores) .legacy-content .heaven-login .login-remember > span { margin: 0; }

/* MYAAC ACCOUNT MANAGEMENT NAVIGATION + BREADCRUMBS */
body.inner-page:not(.page-highscores) .legacy-content #account-manage {
  padding: 0 !important; max-width: 100%;
}
body.inner-page:not(.page-highscores) .legacy-content #one {
  min-width: 0;
}
body.inner-page:not(.page-highscores) .legacy-content #two {
  min-width: 0; max-width: 100%;
}
body.inner-page:not(.page-highscores) .legacy-content .vertical-menu {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0 0 20px; padding: 0;
}
body.inner-page:not(.page-highscores) .legacy-content .vertical-menu a {
  display: inline-flex; align-items: center;
  color: #c7dbf8 !important; font-size: 12px; font-weight: 650;
  padding: 9px 13px !important; min-height: 38px;
  margin: 0 !important; border: 1px solid #314e6c !important;
  background: #10243b; border-radius: 5px;
}
body.inner-page:not(.page-highscores) .legacy-content .vertical-menu a:hover,
body.inner-page:not(.page-highscores) .legacy-content .vertical-menu a.active {
  color: #fff !important; background: #214a80;
  border-color: #5e96da !important;
}
body.inner-page:not(.page-highscores) .legacy-content :is(.tabs, .tab-nav, .nav-tabs, .pagination, .page-nav) {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 7px; margin: 15px 0;
}
body.inner-page:not(.page-highscores) .legacy-content :is(.tabs, .tab-nav, .nav-tabs, .pagination, .page-nav) a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 34px; padding: 6px 12px;
  border: 1px solid #345371; border-radius: 5px;
  background: #0e2138; color: #bcd6f8;
}
body.inner-page:not(.page-highscores) .legacy-content :is(.tabs, .tab-nav, .nav-tabs, .pagination, .page-nav) a:hover,
body.inner-page:not(.page-highscores) .legacy-content :is(.tabs, .tab-nav, .nav-tabs, .pagination, .page-nav) a.active {
  background: #214a80; border-color: #67a5ea;
}

/* FEEDBACK, HELP, RANKS, STATUS */
body.inner-page:not(.page-highscores) .legacy-content :is(div.success, p.success, .info, .message, .note, .notice) {
  color: #c6ddf8; background: #112640;
  border: 1px solid #315b85; border-left: 3px solid #6da8ff;
  border-radius: 5px; padding: 13px 16px; margin: 12px 0;
}
body.inner-page:not(.page-highscores) .legacy-content :is(div.error, p.error, .error_box, .warning) {
  color: #f5c9aa; background: #302318;
  border: 1px solid #715237; border-left: 3px solid #d69b5c;
  border-radius: 5px; padding: 13px 16px; margin: 12px 0;
}
body.inner-page:not(.page-highscores) .legacy-content :is(.online, .Online) { color: #54e4ac; }
body.inner-page:not(.page-highscores) .legacy-content :is(.offline, .Offline) { color: #b0bcd0; }
body.inner-page:not(.page-highscores) .legacy-content :is(.red, .font-red) { color: #ff9c9c; }
body.inner-page:not(.page-highscores) .legacy-content :is(.green, .font-green) { color: #66e9b1; }
body.inner-page:not(.page-highscores) .legacy-content :is(.FAQQuestion, .faq-question, .question) {
  display: block; border: 1px solid #315273;
  border-radius: 6px; padding: 11px 14px;
  color: #eef5ff; background: #142c48;
  font-weight: 700; margin-top: 12px;
}
body.inner-page:not(.page-highscores) .legacy-content :is(.FAQAnswer, .faq-answer, .answer) {
  padding: 12px 14px; background: #0c1b30;
  border: 1px solid #253e5a; border-top: 0;
  border-radius: 0 0 6px 6px;
}
body.inner-page:not(.page-highscores) .legacy-content details {
  border: 1px solid #2b4865; border-radius: 6px;
  background: #0e2036; margin: 9px 0;
}
body.inner-page:not(.page-highscores) .legacy-content details summary {
  padding: 11px 14px; color: #e1ebff; font-weight: 650;
}
body.inner-page:not(.page-highscores) .legacy-content details[open] summary {
  border-bottom: 1px solid #2b4865;
}
body.inner-page:not(.page-highscores) .legacy-content details > :not(summary) { margin: 12px 14px; }

/* Media / screenshots and links from older modules. */
body.inner-page:not(.page-highscores) .legacy-content img:not([alt='player outfit']) {
  max-width: 100%; height: auto;
}
body.inner-page:not(.page-highscores) .legacy-content .TableContainer img {
  max-width: min(100%, 160px);
}
body.inner-page:not(.page-highscores) .legacy-content .TableContainer img[alt='player outfit'] {
  width: 64px; height: 64px; max-width: none;
}

/* Narrow desktop center column and phone layouts. */
@media (max-width: 1150px) {
  body.inner-page:not(.page-highscores) .legacy-content table :is(td, th) { padding: 10px; }
  body.inner-page:not(.page-highscores) .legacy-content :is(.TableContainer, .table-scroll) {
    -webkit-overflow-scrolling: touch;
  }
}
@media (max-width: 760px) {
  body.inner-page:not(.page-highscores) .legacy-content { font-size: 12px; }
  body.inner-page:not(.page-highscores) .legacy-content table { font-size: 11px; }
  body.inner-page:not(.page-highscores) .legacy-content table :is(td, th) { padding: 9px; }
  body.inner-page:not(.page-highscores) .legacy-content .CaptionContainer { font-size: 12px; }
  body.inner-page:not(.page-highscores) .legacy-content .LabelV { min-width: 88px; }
  body.inner-page:not(.page-highscores) .legacy-content #one,
  body.inner-page:not(.page-highscores) .legacy-content #two {
    float: none !important; width: 100% !important;
    margin: 0 !important; padding: 0 !important;
  }
  body.inner-page:not(.page-highscores) .legacy-content .heaven-login { padding: 19px 15px; }
  body.inner-page:not(.page-highscores) .legacy-content .vertical-menu { gap: 6px; }
  body.inner-page:not(.page-highscores) .legacy-content .vertical-menu a {
    font-size: 11px; min-height: 36px; padding: 8px 10px !important;
  }
}
