/* Contra City: retain original game artwork, self-hosted lettering and olive
   surfaces. Gold marks actions; green marks a successful result. */
:root{--surface-deep:#1b1e16;--surface-raised:#303326;--text-secondary:#c8cbb8;--space-section:64px;--focus:#ffd33d}
html{scrollbar-color:#777c57 #1b1e16}
body{min-height:100dvh}
input,textarea{caret-color:var(--focus)}
h1,h2,h3{text-wrap:balance}
p{text-wrap:pretty}
.topbar{gap:24px;min-height:100px}
.brand{width:150px}
.main-nav{gap:4px;margin-left:auto;min-width:0;flex-wrap:wrap}
.nav-link{padding-inline:12px;min-height:44px;display:inline-flex;align-items:center}
.contact-link{white-space:nowrap;font-size:.875rem;min-height:44px;align-content:center}
.entry{padding-block:64px;gap:56px;grid-template-columns:minmax(0,1.1fr) minmax(360px,1fr);align-items:center;min-height:0}
.intro{padding-top:0}
.intro h1{margin-top:0;max-width:12ch;font-size:clamp(2.4rem,4.4vw,3.7rem);line-height:1.16;letter-spacing:-.02em}
.intro-copy{color:var(--text-secondary);max-width:38ch}
.intro-help{min-height:44px;align-content:center}
.panel-code{display:none}
.panel-content{padding:28px}
.panel-intro,.field-help,.step p{color:var(--text-secondary)}
.panel-heading h2{font-size:1.7rem}
.game-button{min-height:48px;transition:filter .2s,transform .2s,background .2s}
.game-button:active,.cc-button:active{transform:translateY(1px)}
.game-button.primary{background:#c3d83c;box-shadow:inset 0 0 0 1px #e8f5a0}
.download-button{background:#efbf34;box-shadow:inset 0 0 0 1px #ffdf83}
.notice{border-left-width:1px;border-radius:6px;line-height:1.65}
.ready-actions{justify-content:flex-start;column-gap:24px}
.text-action{min-height:44px;align-items:center}
.input-caption,.player-id,.referral-stats,.cc-stat b,.cc-table{font-variant-numeric:tabular-nums}
.how-section{padding-bottom:var(--space-section)}
.section-heading{margin-bottom:24px}
.steps{gap:32px;border-top:1px solid #74785e70;padding-top:28px}
.step,.step:hover{background:none;border:0;box-shadow:none;border-radius:0;transform:none;padding:0;gap:16px}
.step-index{color:#e9c46d;font-size:1.5rem}
.step h3{font-size:1.1rem;margin-bottom:10px}
.step p{max-width:32ch}
.community{margin-bottom:var(--space-section);padding:32px;box-shadow:none;gap:24px}
.community h2{font-size:1.65rem;margin-bottom:8px}
.telegram-mark{transform:none;width:56px;height:56px;border:0;background:none;box-shadow:none}
.telegram-mark svg{transform:none}
.telegram-button{background:#4c5e36}
.faq-section{padding-bottom:48px}
.footer{display:flex;align-items:flex-start;gap:32px;font-size:.8125rem}
.footer>span{flex:1;line-height:1.8;padding-top:12px}
.footer>div{max-width:62%;row-gap:0!important}
.footer a{display:inline-flex;min-height:44px;align-items:center;line-height:1.5;text-underline-offset:4px}
.footer a:hover{text-decoration:underline}
.referral-section{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px 40px;padding:32px;margin:0 0 var(--space-section);background:#292e21;box-shadow:0 10px 28px #10130a60;border-radius:12px}
.referral-copy{display:flex;gap:16px;align-items:flex-start;min-width:0}
.referral-copy>svg{flex-shrink:0;color:#e6c268;margin-top:4px}
.referral-copy h2{font-size:1.5rem;margin:0 0 8px;line-height:1.4}
.referral-copy p{margin:0;color:var(--text-secondary);max-width:60ch;font-size:.9375rem}
.referral-controls{grid-column:1;min-width:0}
.referral-controls .field-label{text-transform:none;font-size:.875rem}
.referral-input-row{display:flex;gap:12px;align-items:stretch}
.referral-input-row input{margin:0;flex:1}
.referral-copy-button{flex-shrink:0;background:#efbf34;color:#25210f;border-radius:4px;padding-inline:20px;font-size:.875rem}
.referral-controls .field-help{margin:10px 0 0;font-size:.8125rem}
.referral-stats{grid-column:2;grid-row:1 / span 2;display:flex;flex-direction:column;gap:28px;border-left:1px solid #77815b70;padding-left:32px;margin:0;min-width:155px}
.referral-stats dt{color:var(--text-secondary);font-size:.8125rem}
.referral-stats dd{font-size:2rem;line-height:1.4;font-weight:700;margin:4px 0 0;color:#eff0da}
.referral-refresh{justify-self:start;grid-column:1;padding:0;border:0;background:none}
.referral-refresh:disabled{opacity:.65;cursor:wait}
.referral-feedback{min-height:0;color:#d2e490;font-size:.875rem;margin:0}
.referral-feedback:not(:empty){margin-top:12px}
.referral-feedback.is-error{color:#ffd0b7}
.incoming-referral{align-items:center}
.incoming-referral>.text-action{white-space:nowrap}
.cc-title{font-family:Contra,GameTahoma,Tahoma,sans-serif;line-height:1.15;letter-spacing:-.02em;text-wrap:balance}
.cc-page-inner{max-width:100%;min-width:0}
.cc-subtitle{color:var(--text-secondary);max-width:65ch}
.cc-meta{color:var(--text-secondary)}
.cc-card p{color:var(--text-secondary)}
.cc-card h2,.cc-card h3{overflow-wrap:anywhere;line-height:1.4}
.skip-link:not(:focus){clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap}
.button-icon svg{display:block}
.cc-panel,.cc-card,.cc-balance-card{border-radius:12px}
.cc-input,.cc-button{min-height:48px}
.cc-notice{line-height:1.65}
.cc-duration-option:has(input:focus-visible){outline:3px solid var(--focus);outline-offset:4px}
.cc-table-wrap{max-width:100%;overflow-x:auto}
.cc-table th{white-space:nowrap}
.cc-page-inner>.referral-section{margin-top:32px}
.cc-page .cc-footer{display:flex;flex-wrap:wrap;gap:16px;line-height:1.8}
.cc-page .cc-footer a{display:inline-flex;align-items:center;min-height:44px}
@media(max-width:1120px){.topbar{flex-wrap:wrap;padding-block:20px;gap:16px}.main-nav{margin-left:auto}.contact-link{display:none}.entry{gap:32px}.intro h1{font-size:clamp(2.25rem,4.2vw,3.4rem)}}
@media(max-width:900px){.referral-section{gap:24px}.referral-input-row{flex-direction:column}.referral-stats{padding-left:24px}.topbar{justify-content:center}.main-nav{justify-content:center;margin-left:0}.brand{width:150px}}
@media(max-width:760px){.shell{width:calc(100% - 32px)}.topbar{gap:8px;padding:20px 0 12px}.main-nav{display:flex!important;flex-wrap:wrap;justify-content:center;width:100%;margin:8px 0 0;gap:0}.nav-link{padding:10px 12px;font-size:.875rem}.entry{grid-template-columns:1fr;padding:40px 0;gap:32px}.intro h1{max-width:none;font-size:clamp(2rem,7.6vw,3rem);line-height:1.2;margin:0 0 20px}.intro-copy{margin-inline:auto}.panel-content{padding:24px}.steps{grid-template-columns:1fr;gap:28px;padding-top:24px}.step p{max-width:60ch}.community{padding:28px;gap:20px}.community h2{font-size:1.4rem}.referral-section{padding:24px;grid-template-columns:minmax(0,1fr);gap:24px}.referral-controls,.referral-stats,.referral-refresh{grid-column:1;grid-row:auto}.referral-stats{flex-direction:row;gap:32px;border-left:0;border-top:1px solid #77815b70;padding:20px 0 0;min-width:0}.referral-stats dd{font-size:1.7rem}.referral-copy h2{font-size:1.25rem}.incoming-referral>.text-action{white-space:normal}.footer{flex-direction:column;gap:8px}.footer>div{max-width:100%;justify-content:flex-start!important}.footer>span{padding-top:0}.cc-title{font-size:clamp(1.8rem,7vw,2.4rem)}.cc-page-inner{width:calc(100% - 24px)}.cc-page .cc-footer{justify-content:flex-start}.cc-form-row{display:flex;flex-wrap:wrap}.cc-form-row>div{min-width:0;flex:1 1 240px}}
@media(max-width:380px){.panel-content{padding:22px 18px}.referral-section{padding:22px 18px}.referral-copy{gap:12px}.referral-copy>svg{width:20px}.nav-link{padding-inline:9px}.referral-stats{gap:24px}.community{padding:24px 20px}.intro h1{font-size:clamp(1.8rem,8.8vw,2rem)}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.game-button:active,.cc-button:active{transform:none}}
