:root {
    color-scheme: dark;
    --bg: #08111f;
    --bg-soft: #0b1627;
    --surface: #101e33;
    --surface-2: #152740;
    --surface-3: #1b3150;
    --line: #2b3a4f;
    --line-strong: #40536d;
    --gold: #edc677;
    --gold-soft: #f4d99e;
    --text: #f7f4ec;
    --muted: #aeb9ca;
    --blue: #8bb7eb;
    --green: #98d2bd;
    --danger: #f1b4b4;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow: 0 28px 80px rgba(0, 0, 0, .26);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 7rem; }
body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 4%, rgba(52, 92, 140, .16), transparent 34rem),
        radial-gradient(circle at 90% 12%, rgba(237, 198, 119, .07), transparent 26rem),
        var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-underline-offset: 4px; }
button, input, select, textarea { font: inherit; }
button, a, input, textarea, select { touch-action: manipulation; }
button { cursor: pointer; }
img, svg { max-width: 100%; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 4px;
}

::selection { background: var(--gold); color: var(--bg); }
.container { width: min(1200px, calc(100% - 80px)); margin: 0 auto; }

.skip {
    position: absolute;
    top: -100px;
    left: 12px;
    z-index: 100;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--gold);
    color: var(--bg);
    font-weight: 700;
}
.skip:focus { top: 8px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(66, 85, 111, .7);
    background: rgba(8, 17, 31, .93);
    backdrop-filter: blur(16px);
}

.nav {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-decoration: none;
}
.brand small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 4px;
}
.brand-mark {
    padding-right: 12px;
    border-right: 1px solid var(--line);
    color: var(--gold);
    font-family: Georgia, serif;
    font-size: 31px;
    letter-spacing: -3px;
}
.brand-mark span { font-size: 18px; letter-spacing: 0; }

.nav nav { display: flex; gap: 32px; }
.nav nav a {
    position: relative;
    padding: 12px 0;
    color: var(--muted);
    font-size: 14px;
    text-decoration: none;
}
.nav nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 5px;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform .18s ease;
}
.nav nav a:hover,
.nav nav a.active { color: var(--gold); }
.nav nav a:hover::after,
.nav nav a.active::after { transform: scaleX(1); }

.hero {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 72px;
    align-items: center;
    padding-top: 88px;
    padding-bottom: 88px;
}

.eyebrow {
    margin: 0 0 22px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.2px;
}

.hero h1 {
    margin: 0 0 28px;
    font-size: clamp(42px, 4.7vw, 66px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -2px;
}

em {
    color: var(--gold);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
}

.lead {
    max-width: 620px;
    margin-top: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 34px 0;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 13px 20px;
    border: 1px solid var(--gold);
    border-radius: 8px;
    background: var(--gold);
    color: #101725;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    transition: transform .15s ease, filter .15s ease, border-color .15s ease;
}
.button:hover { filter: brightness(1.06); transform: translateY(-1px); }
.button.secondary { background: transparent; color: var(--text); border-color: #52627a; }
.button.secondary:hover { border-color: var(--gold); }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.text-link {
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    text-decoration: none;
}
.text-link:hover { border-color: var(--gold); color: var(--gold-soft); }

.status-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 42px; }
.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #40516a;
    border-radius: 999px;
    background: rgba(21, 39, 64, .7);
    color: #dbe5f2;
    font-size: 12px;
}
.status-chip.muted-chip { color: var(--muted); }
.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 5px rgba(237, 198, 119, .09);
}

.hero-panel {
    min-height: 470px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 25px 30px;
    overflow: hidden;
    border: 1px solid #40516a;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 75% 25%, rgba(113, 164, 222, .16), transparent 16rem),
        linear-gradient(145deg, #1f3857, #101d32 60%, #0d192c);
    box-shadow: var(--shadow);
}

.panel-top,
.panel-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}
.panel-top {
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,.11);
    color: #c5d1e1;
    font-size: 12px;
    letter-spacing: 2px;
}
.panel-bottom {
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.11);
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.hero-number {
    padding: 18px 0 10px;
    color: var(--gold);
    font-family: Georgia, serif;
    font-size: 155px;
    line-height: 1;
    letter-spacing: -10px;
    text-align: center;
}
.hero-number span {
    display: block;
    padding-top: 12px;
    color: #c5d1e1;
    font-family: Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 3px;
}
.gold { color: var(--gold); font-family: Georgia, serif; font-size: 20px; }

.tile-rack {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 0 auto 24px;
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    background: rgba(3, 9, 18, .28);
}
.game-tile {
    width: 39px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: #f0eadc;
    box-shadow: inset 0 -4px 0 rgba(0,0,0,.12), 0 5px 12px rgba(0,0,0,.18);
    color: #152033;
    font-family: Georgia, serif;
    font-size: 20px;
    font-weight: 700;
}
.game-tile.red { color: #b44b4b; }
.game-tile.blue { color: #3f79b9; }
.game-tile.yellow { color: #aa7d18; }
.game-tile.black { color: #172033; }

.section { padding: 66px 0; border-top: 1px solid var(--line); }
.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 35px;
}
.section-heading .eyebrow { margin-bottom: 16px; }
h2 {
    margin: 0 0 20px;
    font-size: 30px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -.5px;
}
.section-heading p:not(.eyebrow) {
    max-width: 380px;
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 14px;
}

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.features article,
.mode-card {
    border: 1px solid #26384f;
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(16,30,51,.98), rgba(12,24,42,.98));
}
.features article { padding: 28px 26px 24px; }
.feature-index { color: var(--gold); font-family: Georgia, serif; font-size: 26px; }
h3 { font-size: 20px; font-weight: 500; line-height: 1.4; }
.features p,
.mode-card p { color: var(--muted); font-size: 15px; }

.mode-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mode-card { min-height: 220px; padding: 25px; }
.mode-card > span {
    color: var(--gold);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}
.mode-card h3 { margin-top: 38px; margin-bottom: 10px; }

.trust-strip {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 70px;
    align-items: center;
    padding: 38px 42px;
    border: 1px solid #364760;
    border-radius: var(--radius-lg);
    background: linear-gradient(110deg, rgba(21,39,64,.95), rgba(15,29,49,.86));
}
.trust-strip .eyebrow { margin-bottom: 12px; }
.trust-strip h2 { margin: 0; }
.trust-strip > p { margin: 0; color: var(--muted); }

.closing {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    margin: 10px 0 76px;
    padding: 40px;
    border: 1px solid #37465d;
    border-radius: var(--radius);
    background: var(--surface-2);
}
.closing .eyebrow { margin-bottom: 15px; }
.closing p:not(.eyebrow) { margin: 0; color: var(--muted); }

footer { padding: 45px 0 25px; border-top: 1px solid var(--line); }
.footer-top { display: flex; justify-content: space-between; gap: 60px; }
.footer-brand { white-space: nowrap; font-size: 20px; font-weight: 700; letter-spacing: 1.5px; text-decoration: none; }
.footer-brand span { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; font-weight: 400; letter-spacing: 0; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 26px; color: var(--muted); font-size: 12px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 35px;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
}
.footer-bottom > span { white-space: nowrap; }
.footer-bottom p { max-width: 650px; margin: 0; }

.back { display: inline-block; margin-bottom: 30px; color: var(--muted); font-size: 14px; text-decoration: none; }
.back:hover { color: var(--gold); }
.document { padding-top: 42px; padding-bottom: 80px; }
.document h1,
.compact-page h1,
.login-page h1,
.admin-page h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -1.5px;
}
.document .eyebrow { margin-bottom: 18px; }
.updated { margin-bottom: 28px; color: var(--muted); font-size: 12px; }

.legal { max-width: 900px; }
.legal-intro { max-width: 760px; }
.legal h2 { font-size: 23px; }
.legal-section { margin: 36px 0; }
.legal-section p { color: #c5cfdd; }
.legal-contact { padding-top: 8px; border-top: 1px solid var(--line); }

.notice {
    margin: 25px 0;
    padding: 20px 24px;
    border: 1px solid #6a5632;
    border-left: 3px solid var(--gold);
    border-radius: 8px;
    background: #28251f;
}
.notice strong { color: var(--gold); font-size: 14px; }
.notice p { margin: 6px 0 0; color: #d0c8b9; font-size: 14px; }
.neutral-notice { border-color: #3d5874; border-left-color: var(--blue); background: #121f31; }
.neutral-notice strong { color: var(--blue); }
.neutral-notice p { color: #c2cfde; }

.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 42px; }
.deletion-layout { align-items: start; }
.readable-list { padding-left: 20px; color: var(--muted); }
.readable-list li { margin-bottom: 18px; }

.card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}
.card h2 { font-size: 24px; }
label { display: block; margin: 16px 0 8px; font-size: 14px; font-weight: 500; }
label span { color: var(--muted); font-weight: 400; }
input,
select,
textarea {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid #526078;
    border-radius: 7px;
    background: #0a1628;
    color: var(--text);
    font-size: 16px;
}
input:hover,
select:hover,
textarea:hover { border-color: #6d7f98; }
textarea { min-height: 90px; resize: vertical; }
::placeholder { color: #7f8da1; opacity: 1; }
.check { display: flex; align-items: flex-start; gap: 12px; margin: 24px 0; font-weight: 400; }
.check input { width: 19px; height: 19px; flex: 0 0 19px; margin-top: 3px; accent-color: var(--gold); }
.check span { color: var(--text); font-size: 14px; }
.field-help { margin: 5px 0 12px; color: var(--muted); font-size: 12px; }
.muted { color: var(--muted); font-size: 14px; }
form > .button { margin-top: 20px; }
.form-result:not(:empty),
#form-result:not(:empty),
#review-result:not(:empty),
#admin-error:not(:empty) {
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid #5b654f;
    border-radius: 8px;
    background: #17221d;
    color: #d8e8d7;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-top: 35px; }
.contact-grid p { color: var(--muted); }
.contact-card { min-height: 260px; }
.contact-card .button { margin-top: 8px; }
.email-result { overflow-wrap: anywhere; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 24px 0 28px; }
.mini-card { padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: rgba(16,30,51,.7); }
.mini-card strong { color: var(--gold-soft); }
.mini-card p { margin-bottom: 8px; color: var(--muted); font-size: 14px; }
.mini-card a { font-size: 14px; }

.compact-page { min-height: 66vh; padding-top: 45px; padding-bottom: 75px; }
.coming {
    position: relative;
    overflow: hidden;
    padding: 76px 30px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background:
        radial-gradient(circle at 50% -20%, rgba(102, 148, 203, .22), transparent 28rem),
        var(--surface);
    text-align: center;
}
.coming-label { display: block; margin-bottom: 30px; color: var(--gold); font-size: 12px; letter-spacing: 2px; }
.coming p { max-width: 560px; margin: 25px auto; color: var(--muted); }
.coming-orbit {
    width: 82px;
    height: 54px;
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 0 auto 28px;
}
.coming-orbit span {
    width: 36px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: #efe8da;
    color: #9a6720;
    font-family: Georgia, serif;
    font-size: 19px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(0,0,0,.22);
}
.error-page p { max-width: 620px; color: var(--muted); }

.login-page { max-width: 550px; padding-top: 40px; padding-bottom: 70px; }
.admin-page { padding-top: 45px; padding-bottom: 70px; }
.admin-heading,
.list-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.admin-heading p { color: var(--muted); }
.filter-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: end; }
.filter-grid label { margin-top: 0; }
.filter-grid > .button { margin: 0; }
.list-heading { margin-top: 32px; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: rgba(9, 19, 33, .4); }
table { width: 100%; min-width: 660px; border-collapse: collapse; font-size: 14px; }
th { background: var(--surface-2); color: var(--muted); font-weight: 500; text-align: left; }
th, td { padding: 18px; border-bottom: 1px solid var(--line); }
tbody tr:hover { background: rgba(255,255,255,.02); }
td small { display: block; max-width: 210px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.badge { display: inline-block; padding: 3px 10px; border: 1px solid #5d6170; border-radius: 20px; background: var(--surface); font-size: 12px; }
.badge.Pending,
.badge.Approved { border-color: #796546; color: var(--gold); }
.badge.Resolved,
.badge.Completed { border-color: #47776b; color: var(--green); }
.badge.Rejected { border-color: #7e4e55; color: var(--danger); }
.badge.Reviewing { border-color: #466c9a; color: #a4c9fa; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 25px; }

dialog {
    width: min(700px, calc(100% - 24px));
    max-height: 90vh;
    overflow: auto;
    padding: 28px;
    border: 1px solid #526078;
    border-radius: 16px;
    background: var(--surface);
    color: var(--text);
}
dialog::backdrop { background: rgba(2, 8, 23, .75); }
.dialog-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.icon-button { min-width: 44px; min-height: 44px; border: 0; background: transparent; color: var(--text); font-size: 30px; }
dl { display: grid; grid-template-columns: 145px 1fr; gap: 12px; font-size: 14px; }
dt { color: var(--muted); }
dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
#audit { padding-left: 20px; color: var(--muted); font-size: 12px; }
#audit li { margin-bottom: 12px; }
[hidden] { display: none !important; }

@media (max-width: 1050px) {
    .hero { gap: 38px; }
    .hero-panel { min-height: 430px; padding: 22px; }
    .hero-number { font-size: 138px; }
    .mode-grid { grid-template-columns: repeat(2, 1fr); }
    .filter-grid { grid-template-columns: repeat(2, 1fr); }
    .two-column { gap: 32px; }
    .footer-links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
    .container { width: calc(100% - 36px); }
    .site-header { position: static; backdrop-filter: none; }
    .nav { min-height: 85px; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 18px 0 12px; }
    .brand { font-size: 16px; }
    .nav nav { width: 100%; justify-content: center; gap: 30px; }
    .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 50px; padding-bottom: 50px; }
    .hero h1 { font-size: 43px; letter-spacing: -1.6px; }
    .hero-panel { min-height: 380px; }
    .hero-number { padding: 10px 0; font-size: 126px; }
    .tile-rack { gap: 5px; padding: 10px; }
    .game-tile { width: 34px; height: 44px; font-size: 18px; }
    .section { padding: 44px 0; }
    .section-heading { display: block; }
    .section-heading p:not(.eyebrow) { max-width: none; }
    .features,
    .mode-grid,
    .two-column,
    .contact-grid,
    .info-grid,
    .trust-strip { grid-template-columns: 1fr; gap: 18px; }
    .section-heading h2 { font-size: 29px; }
    .features article { padding: 22px; }
    .mode-card { min-height: auto; }
    .mode-card h3 { margin-top: 22px; }
    .trust-strip { padding: 28px; }
    .closing { flex-direction: column; align-items: flex-start; margin-bottom: 45px; padding: 28px; }
    .footer-top,
    .footer-bottom { flex-direction: column; gap: 25px; }
    .footer-links { gap: 12px 16px; }
    .footer-bottom > span { white-space: normal; }
    .document h1 { font-size: 36px; }
    .document { padding-top: 30px; padding-bottom: 50px; }
    .card { padding: 22px; }
    .document .two-column { margin-top: 25px; }
    .coming { padding: 54px 20px; }
    .coming h1 { font-size: 36px; }
    .admin-heading { flex-wrap: wrap; align-items: flex-start; }
    .admin-heading h1 { font-size: 36px; }
    .filter-grid { gap: 15px; padding: 18px; }
    .filter-grid div { grid-column: span 2; }
    .admin-page .notice { padding: 18px; }
    dialog { padding: 20px; }
    dl { grid-template-columns: 1fr; gap: 5px; }
    dd { margin-bottom: 12px; }
    .hero-actions { flex-wrap: wrap; gap: 20px; }
    .status-row { margin-top: 32px; }
}

@media (max-width: 420px) {
    .nav nav { gap: 21px; }
    .hero h1 { font-size: 38px; }
    .hero-panel { min-height: 350px; }
    .hero-number { font-size: 112px; }
    .game-tile { width: 30px; height: 40px; }
    .button { width: 100%; }
    .hero-actions .text-link { width: auto; }
    .pagination { gap: 10px; }
    .pagination .button { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

/* Contact form */
.contact-form-section{margin-top:52px;padding-top:52px;border-top:1px solid var(--line)}
.contact-form-heading{margin-bottom:24px}
.contact-form-card{max-width:920px}
.contact-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:22px}
.contact-form-grid .full{grid-column:1/-1}
.contact-form-card .check{margin-top:26px}
#contact-result:not(:empty){padding:16px 0;color:var(--gold);font-size:14px;overflow-wrap:anywhere}
@media(max-width:700px){.contact-form-section{margin-top:38px;padding-top:38px}.contact-form-grid{grid-template-columns:1fr}.contact-form-grid .full{grid-column:auto}}
