/* X-NOVA RU1 / UI1. Presentation only. Original artwork and game handlers preserved. */
html.xnova-game, html.xnova-home, html.xnova-admin, html.xnova-admin-shell {
    --ui-bg: #070f19;
    --ui-panel: rgba(10, 24, 38, .95);
    --ui-panel-light: rgba(22, 42, 59, .94);
    --ui-border: #33536a;
    --ui-text: #e5eff7;
    --ui-muted: #a8bdce;
    --ui-accent: #77d7f5;
    --ui-gold: #efcd86;
    --ui-gap: clamp(12px, 1.25vw, 24px);
    color-scheme: dark;
    font-size: 16px;
    min-height: 100%;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
html[data-skin="voltra"] { --ui-accent: #d1b2ef; --ui-border: #55496a; }
html[class^="xnova-"] *, html[class^="xnova-"] *::before, html[class^="xnova-"] *::after { box-sizing: border-box; }
html[class^="xnova-"] body {
    margin: 0; width: 100%; min-width: 0; min-height: 100vh;
    color: var(--ui-text); font: 400 16px/1.5 Arial, Helvetica, sans-serif;
}
html[class^="xnova-"] body :where(a, td, th, tr, table, label) { font-family: inherit; font-size: inherit; line-height: inherit; }
html[class^="xnova-"] body a { text-decoration: none; }
html[class^="xnova-"] body a:hover { text-decoration: none; }
html[class^="xnova-"] body :where(button, input, select, textarea) { font-family: inherit; font-size: 16px; line-height: 1.4; }
html[class^="xnova-"] body :where(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="image"]):not([type="submit"]):not([type="button"]):not([type="reset"])),
html[class^="xnova-"] body select, html[class^="xnova-"] body textarea {
    color: var(--ui-text); background: #081421; border: 1px solid #4a657b;
    border-radius: 3px; min-height: 42px; padding: 9px 12px; max-width: 100%;
    margin: 3px 0; font-size: 16px; line-height: 1.4; height: auto;
}
html[class^="xnova-"] body textarea { min-height: 110px; width: 100%; resize: vertical; }
html[class^="xnova-"] body select { padding-right: 28px; }
html[class^="xnova-"] body option { background: #0e1b2a; color: #e5eff7; }
html[class^="xnova-"] body input[type="checkbox"], html[class^="xnova-"] body input[type="radio"] {
    width: 20px; height: 20px; min-height: 20px; padding: 0; margin: 5px 7px 5px 0; vertical-align: middle; accent-color: #3d99c5;
}
html[class^="xnova-"] body button,
html[class^="xnova-"] body input[type="submit"], html[class^="xnova-"] body input[type="button"], html[class^="xnova-"] body input[type="reset"],
html[class^="xnova-"] body a.ui-button {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; height: auto; width: auto; padding: 10px 20px;
    border: 1px solid #608ba5; border-radius: 3px;
    color: #f4faff; background: linear-gradient(180deg, #284963, #142b3e);
    font-size: 16px; line-height: 1.35; font-weight: 700; text-align: center;
    white-space: normal; cursor: pointer;
}
html[class^="xnova-"] body button:hover,
html[class^="xnova-"] body input[type="submit"]:hover, html[class^="xnova-"] body input[type="button"]:hover,
html[class^="xnova-"] body a.ui-button:hover { background: linear-gradient(180deg, #345f7d, #1c3950); color: #fff; }
html[class^="xnova-"] body :where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid var(--ui-accent) !important; outline-offset: 3px;
}
html[class^="xnova-"] body img { max-width: 100%; object-fit: contain; border: 0; }
html[class^="xnova-"] body h1 { font-size: clamp(25px, 2.25vw, 38px); line-height: 1.2; margin: 0 0 22px; }
html[class^="xnova-"] body h2 { font-size: 23px; line-height: 1.3; margin: 0 0 18px; }
html[class^="xnova-"] body h3 { font-size: 18px; line-height: 1.35; }
html[class^="xnova-"] body .ui-table-scroll {
    display: block; max-width: 100%; min-width: 0; overflow-x: auto;
    overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
}
html[class^="xnova-"] body .ui-table-scroll:focus-visible { outline: 2px solid var(--ui-accent); outline-offset: 1px; }
html[class^="xnova-"] body .ui-overflow-hint { display: none; color: var(--ui-muted); font-size: 14px; padding: 6px 2px; text-align: left; }
html[class^="xnova-"] body .ui-overflow-hint.is-visible { display: block; }
html[class^="xnova-"] body .ui-current { color: #fff !important; background-color: #203e53 !important; box-shadow: inset 3px 0 var(--ui-accent); }
html[class^="xnova-"] .ui-noscript { padding: 15px; color: var(--ui-gold); }
@media (prefers-reduced-motion: reduce) {
    html[class^="xnova-"] *, html[class^="xnova-"] *::before, html[class^="xnova-"] *::after {
        scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important;
    }
}
