:root {
    color-scheme: dark;
    --canvas: #09111f;
    --surface: #101b2c;
    --surface-soft: #14233a;
    --line: #2b3c58;
    --text: #e8edf6;
    --muted: #9eacc2;
    --accent: #77d9b1;
    --accent-dark: #164d3d;
    --warning: #f2c56b;
    --danger: #ef9191;
}

* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(circle at top right, #173759 0, var(--canvas) 42rem); color: var(--text); font: 16px/1.55 Inter, ui-sans-serif, system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.site-header { border-bottom: 1px solid rgba(160, 190, 230, .14); background: rgba(9, 17, 31, .84); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 5; }
.header-inner { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; background: var(--accent); color: #092016; }
nav { display: flex; gap: 20px; color: var(--muted); font-size: .94rem; }
nav a:hover, .back-link:hover { color: var(--accent); }
.hero, .template-hero { min-height: 280px; padding: 72px 0 42px; display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.hero h1, .template-hero h1, .wizard-header h1 { font-size: clamp(2.2rem, 5vw, 4.3rem); max-width: 760px; letter-spacing: -.055em; line-height: 1.03; margin: 6px 0 18px; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .13em; font-size: .72rem; font-weight: 800; margin: 0; }
.hero-copy, .wizard-header > p { color: var(--muted); max-width: 720px; font-size: 1.08rem; }
.button { border: 0; border-radius: 9px; padding: 11px 16px; font-weight: 750; cursor: pointer; white-space: nowrap; display: inline-block; }
.button-primary { background: var(--accent); color: #082117; }
.button-secondary { background: var(--surface-soft); color: var(--text); border: 1px solid var(--line); }
.button-disabled { background: #26334a; color: #9aa7ba; cursor: not-allowed; pointer-events: none; }
.notice { display: flex; align-items: start; gap: 18px; padding: 16px 18px; border: 1px solid rgba(119, 217, 177, .34); background: rgba(22, 77, 61, .35); border-radius: 12px; color: #c9dfd6; }
.notice strong { color: var(--accent); white-space: nowrap; }
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 12px; margin: 34px 0 46px; align-items: end; }
label span, .filters label span { display: block; color: var(--muted); font-size: .78rem; font-weight: 700; margin-bottom: 6px; }
input, select { width: 100%; appearance: none; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); padding: 11px 12px; font: inherit; }
.catalog-heading { display: flex; justify-content: space-between; gap: 40px; align-items: end; margin-bottom: 18px; }
.catalog-heading h2 { margin: 4px 0; font-size: 1.75rem; }
.catalog-heading > p { max-width: 360px; margin: 0; color: var(--muted); font-size: .9rem; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(285px, 1fr)); gap: 16px; }
.game-card, .detail-card, .warning-card, .wizard-form, .provision-panel { background: linear-gradient(135deg, rgba(20, 35, 58, .96), rgba(14, 26, 44, .96)); border: 1px solid var(--line); border-radius: 13px; }
.game-card { min-height: 288px; padding: 19px; display: flex; flex-direction: column; transition: transform .15s ease, border-color .15s ease; }
.game-card:hover { transform: translateY(-3px); border-color: #54749e; }
.card-topline, .title-row, .card-footer { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.category { color: var(--muted); font-size: .76rem; font-weight: 700; }
.status { padding: 4px 8px; border-radius: 999px; font-size: .72rem; font-weight: 800; }
.status-in_test { color: var(--warning); background: rgba(242, 197, 107, .14); }
.status-intake { color: #b3c5dd; background: rgba(149, 171, 202, .14); }
.status-available { color: var(--accent); background: rgba(119, 217, 177, .14); }
.status-blocked { color: var(--danger); background: rgba(239, 145, 145, .14); }
.game-card h3 { font-size: 1.2rem; margin: 22px 0 8px; }
.game-card p { color: var(--muted); font-size: .9rem; margin: 0; }
.template-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: auto 0 17px; }
.template-stats dt, .profile-list dt { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.template-stats dd, .profile-list dd { margin: 3px 0 0; font-size: .8rem; }
.card-footer { color: #bfd0e8; font-size: .75rem; border-top: 1px solid rgba(160, 190, 230, .12); padding-top: 13px; }
.back-link { display: inline-block; color: var(--muted); margin-top: 30px; }
.template-hero { min-height: 235px; padding-top: 28px; }
.title-row { justify-content: start; align-items: baseline; }
.provision-panel { width: min(320px, 100%); padding: 22px; }
.provision-panel strong { font-size: 1.05rem; }
.provision-panel p { color: var(--muted); font-size: .9rem; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.detail-card, .warning-card { padding: 24px; }
.detail-card h2, .warning-card h2 { margin: 0 0 18px; font-size: 1.2rem; }
.profile-list { display: grid; gap: 14px; }
.profile-list div { display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid rgba(160, 190, 230, .1); padding-bottom: 11px; }
.profile-list dd { text-align: right; color: #d6e1f0; }
.wide-card { margin-top: 16px; }
.acceptance-list { color: var(--muted); display: grid; gap: 9px; padding-left: 22px; }
.warning-card { margin-top: 16px; border-color: rgba(242, 197, 107, .4); }
.warning-card ul { margin: 0; color: var(--muted); }
.wizard-header { padding: 58px 0 24px; }
.wizard-header h1 { font-size: clamp(2rem, 4vw, 3.5rem); }
.wizard-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0; list-style: none; margin: 16px 0 22px; color: var(--muted); }
.wizard-steps li { display: flex; gap: 8px; align-items: center; font-size: .85rem; }
.wizard-steps span { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 50%; }
.wizard-steps .active { color: var(--accent); }.wizard-steps .active span { border-color: var(--accent); }
.wizard-form { padding: 28px; margin-bottom: 38px; }
fieldset { border: 0; padding: 0 0 28px; margin: 0 0 28px; border-bottom: 1px solid rgba(160, 190, 230, .13); }
fieldset:last-of-type { border-bottom: 0; margin-bottom: 4px; }
legend { font-size: 1.1rem; font-weight: 800; margin-bottom: 16px; }
.field-help { color: var(--muted); font-size: .85rem; margin: 9px 0 0; }
.field-grid, .profile-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.profile-options { grid-template-columns: repeat(3, 1fr); }
.profile-option { display: flex; gap: 10px; padding: 15px; border: 1px solid var(--line); border-radius: 9px; opacity: .76; }
.profile-option input { width: auto; margin: 2px 0 0; }
.profile-option small { color: var(--muted); display: block; }
.wizard-summary { display: flex; justify-content: space-between; gap: 28px; align-items: center; background: rgba(119, 217, 177, .06); border: 1px solid rgba(119, 217, 177, .2); border-radius: 10px; padding: 17px; }
.wizard-summary p { color: var(--muted); max-width: 620px; margin: 5px 0 0; }
.empty-state { grid-column: 1 / -1; padding: 50px; border: 1px dashed var(--line); border-radius: 12px; text-align: center; color: var(--muted); }
.site-footer { border-top: 1px solid rgba(160, 190, 230, .14); display: flex; justify-content: space-between; gap: 20px; padding: 28px 0 34px; color: var(--muted); font-size: .78rem; }
@media (max-width: 760px) { .header-inner, .hero, .template-hero, .catalog-heading, .wizard-summary, .site-footer { align-items: start; flex-direction: column; }.filters, .detail-grid, .field-grid, .profile-options { grid-template-columns: 1fr; }.wizard-steps { grid-template-columns: 1fr 1fr; }.hero { padding-top: 44px; }.template-stats { grid-template-columns: 1fr 1fr; } nav { gap: 12px; font-size: .8rem; } }

.account-name { color: #c8d6e9; font-size: .8rem; border-left: 1px solid var(--line); padding-left: 16px; }
.nav-form { margin: 0; }
.nav-button { appearance: none; border: 0; background: transparent; color: var(--muted); font: inherit; cursor: pointer; padding: 0; }
.nav-button:hover { color: var(--accent); }
.flash { margin: 25px 0 -8px; padding: 13px 16px; border-radius: 10px; }
.flash-success { background: rgba(22, 77, 61, .35); border: 1px solid rgba(119, 217, 177, .34); color: #c9dfd6; }
.auth-page { min-height: calc(100vh - 210px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: 72px; align-items: center; padding: 70px 0; }
.auth-intro h1 { font-size: clamp(2.4rem, 5vw, 4.7rem); line-height: 1; letter-spacing: -.06em; margin: 8px 0 20px; }
.auth-intro > p { max-width: 560px; color: var(--muted); font-size: 1.05rem; }
.auth-intro .auth-note { font-size: .9rem; border-left: 2px solid var(--accent); padding-left: 13px; }
.auth-card { display: grid; gap: 16px; padding: 30px; background: linear-gradient(135deg, rgba(20, 35, 58, .96), rgba(14, 26, 44, .96)); border: 1px solid var(--line); border-radius: 13px; }
.auth-card h2 { margin: 0 0 5px; font-size: 1.35rem; }
.auth-card label { display: block; }
.auth-card label span { display: block; color: var(--muted); font-size: .78rem; font-weight: 700; margin-bottom: 6px; }
.auth-card .button { justify-self: start; margin-top: 6px; }
.field-error { color: var(--danger); margin: -9px 0 0; font-size: .83rem; }
.remember-option { display: flex !important; align-items: center; gap: 9px; color: var(--muted); font-size: .85rem; }
.remember-option input { width: auto; margin: 0; }
.remember-option span { margin: 0 !important; font-weight: 500 !important; }
@media (max-width: 760px) { .auth-page { min-height: auto; grid-template-columns: 1fr; gap: 28px; padding: 48px 0; }.account-name { display: none; } }

.game-card, .template-hero-art { position: relative; overflow: hidden; isolation: isolate; }
.game-card-art, .template-hero-art-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.game-card::before, .template-hero-art::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(135deg, rgba(7, 14, 25, .92) 0%, rgba(7, 14, 25, .72) 48%, rgba(7, 14, 25, .87) 100%); }
.game-card > :not(.game-card-art), .template-hero-art > :not(.template-hero-art-image) { position: relative; z-index: 2; }
.game-card { min-height: 302px; background: var(--surface); }
.game-card:hover .game-card-art { transform: scale(1.035); }
.game-card-art { transition: transform .35s ease; }
.game-card .category, .game-card p, .game-card .template-stats dt, .game-card .card-footer { color: #ced9ea; }
.game-card .template-stats dd { color: #ffffff; }
.template-hero-art { min-height: 300px; margin-top: 16px; padding: 38px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.template-hero-art .hero-copy { color: #e0e8f4; }
.template-hero-art .eyebrow { color: #9de7c6; }
.template-hero-art .provision-panel { background: rgba(9, 17, 31, .78); backdrop-filter: blur(8px); }
.artwork-source { color: #cfdbec; font-size: .8rem; margin: 18px 0 0; }
.artwork-source a { color: #a9e5ca; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) { .template-hero-art { padding: 28px; }.template-hero-art .provision-panel { width: 100%; } }


.server-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin: 0 0 34px; }
.server-card { padding: 21px; border: 1px solid rgba(119, 217, 177, .35); border-radius: 13px; background: linear-gradient(135deg, rgba(19, 57, 56, .72), rgba(14, 26, 44, .96)); }
.server-card h3 { margin: 8px 0; font-size: 1.25rem; }
.server-card > p:not(.eyebrow) { color: var(--muted); margin: 0 0 18px; }
.checkbox-option { display: flex; align-items: start; gap: 10px; color: var(--muted); font-size: .9rem; }
.checkbox-option input { width: auto; margin: 4px 0 0; }
.checkbox-option span { margin: 0; font-size: inherit; font-weight: 500; }
.checkbox-option code { color: #d8e7f8; }
