/* Shared materials for the collection, army workshop, field panels and online services. */
@font-face{font-family:YasaBook;src:url('fonts/Literata.ttf') format('truetype');font-display:swap}
@font-face{font-family:YasaSans;src:url('fonts/Source.ttf') format('truetype');font-display:swap}
body[data-theme="chronopunk"]{
 --archive-black:#101510;--archive-ink:#1a201a;--archive-raised:#262c22;--archive-paper:#f1e7d3;--archive-text:#efe8d9;
 --archive-secondary:#c6c7b8;--archive-metal:#d9bb86;--archive-rule:#8d79534f;--archive-teal:#a0c2b1;
 --ink:#121712;--panel:#20251e;--plum:#292b22;--text:#eee8dc;--muted:#c4c6b9;--gold:#d5b47c;
 --chrono-cyan:#b7cdbd;--chrono-magenta:#c5a48c;--bronze-bright:#e0c18d;
}
body[data-theme="chronopunk"]:not([data-screen="battle"]){background-color:var(--archive-black);color:var(--archive-text);accent-color:var(--archive-metal)}
body[data-theme="chronopunk"] :is(.account-page,.community,.online-lobby,.rematch-lobby,.privacy-main,.action-panel,.owner-main,dialog,.ranked-hero){font-family:YasaSans,Source,sans-serif}
body[data-theme="chronopunk"] :is(dialog,.account-page,.community,.online-lobby,.rematch-lobby,.privacy-main,.action-panel,.owner-main,.ranked-hero) :is(h1,h2,h3){font-family:YasaBook,Literata,Georgia,serif;letter-spacing:-.033em}
body[data-theme="chronopunk"] :is(a,button,input,select,textarea):focus-visible{outline:2px solid #e8c995;outline-offset:3px}
body[data-theme="chronopunk"] :is(.owner-header,header:has(.wordmark),header:has(>.brand-lockup)){border-color:var(--archive-rule);background:#111612}
body[data-theme="chronopunk"]:not([data-screen="battle"]) dialog,body[data-theme="chronopunk"] #dialog[open]:not(.response-dialog){
 color:var(--archive-text);background:linear-gradient(#171d18f0,#171d18 150px),url('atlas/home/table.webp') center top/800px auto;
 border:1px solid #84704f;border-top:3px solid #bc9c62;border-radius:2px;box-shadow:0 22px 80px #070b08aa;
}
body[data-theme="chronopunk"] dialog::backdrop{background:#080d0bc9}
body[data-theme="chronopunk"]:not([data-screen="battle"]) .dialog-head{border-bottom:1px solid #ac906351;align-items:center;margin-bottom:18px;padding:4px 0 15px}
body[data-theme="chronopunk"]:not([data-screen="battle"]) .dialog-head h2{color:var(--archive-paper);font-size:clamp(25px,3vw,38px);line-height:1.15}
body[data-theme="chronopunk"] .dialog-head #closeDialog{background:#252b23;border:1px solid #83795e;color:#eee3cf;box-shadow:none}
body[data-theme="chronopunk"] :is(dialog,.community,.account-page,.online-lobby,.rematch-lobby,.owner-panel,.action-panel) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){border:1px solid #766e58;color:#f0eade;background-color:#161c17;border-radius:2px}
body[data-theme="chronopunk"]:not([data-screen="battle"]) :is(dialog,.community,.account-page,.online-lobby,.rematch-lobby,.owner-panel,.action-panel) button:not(.primary):not(.identity-google):not(.card-thumb):not([data-showcase-card]){
 background-color:#262e24;color:#e7ddca;border-color:#796d54;border-radius:2px;box-shadow:none;
}
body[data-theme="chronopunk"] :is(dialog,.community,.account-page,.online-lobby,.rematch-lobby,.owner-panel,.action-panel,.ranked-hero) :is(.eyebrow,.edition-mark){color:#d6b984}
body[data-theme="chronopunk"]:not([data-screen="battle"]) :is(dialog,.community,.account-page,.online-lobby,.rematch-lobby,.action-panel) button.primary,
body[data-theme="chronopunk"][data-page="ranked"] button.primary{color:#1a1c16;background:#ddbf8a;border:1px solid #ebcca0;border-radius:2px;box-shadow:none}
body[data-theme="chronopunk"] :is(.collection-tools,.builder-tabs,.setup-advanced,.saved-decks>div,.analysis-stats div,.account-stats>div,.online-choices section,.community-search,.community-modes>section,.account-section,.lobby-player){
 background:#20271f;border:1px solid var(--archive-rule);border-radius:2px;box-shadow:none
}
body[data-theme="chronopunk"]:not([data-screen="battle"]) :is(.builder-tabs,.collection-tools){background:linear-gradient(115deg,#293027,#19201a);border:1px solid var(--archive-rule);border-left:3px solid #ae8d59;padding:15px}
body[data-theme="chronopunk"]:not([data-screen="battle"]) .collection-tools label{color:#dac399}
body[data-theme="chronopunk"] #dialog:has(.collection-tools),body[data-theme="chronopunk"] #dialog:has(.deck-builder){width:min(980px,calc(100vw - 28px));max-width:980px}
body[data-theme="chronopunk"] :is(.collection,.builder-cards) button{background:#161c17;border:1px solid #70634854}
body[data-theme="chronopunk"]:not([data-screen="battle"]) .collection button>span{color:#e5dac4}
body[data-theme="chronopunk"]:not([data-screen="battle"]) :is(.collection,.builder-cards) button:hover .cardface{box-shadow:0 6px 15px #0c100c,0 0 0 2px #bba279}
body[data-theme="chronopunk"] :is(.setup-preview,.account-heading,.community-header){border-block:1px solid var(--archive-rule);background-color:#22291f}
body[data-theme="chronopunk"] :is(.community,.account-page,.online-lobby,.rematch-lobby){border-color:#8173566e;background:#181f19}
body[data-theme="chronopunk"] :is(.community-tabs,.builder-tabs){border-color:#9a815b}
body[data-theme="chronopunk"] :is(.community-tabs,.builder-tabs) button[aria-selected="true"],
body[data-theme="chronopunk"] :is(.community-tabs,.builder-tabs) button.active{border-color:#dcc08e;background:#443f2d;color:#fff0cd}
body[data-theme="chronopunk"] :is(.community-numeral,.account-quick strong){color:#ddc28d}
body[data-theme="chronopunk"] .community-modes>section{border-top:2px solid #9b8358}
body[data-theme="chronopunk"] .community-modes>section:nth-child(2){border-top-color:#749783}
body[data-theme="chronopunk"] .learn-navigation{border-color:#746b53;background:#22281f}
body[data-theme="chronopunk"] .setup-footer{border-color:var(--archive-rule)}
/* Standalone pages retain their navigation, account forms and service messages. */
body[data-theme="chronopunk"][data-page="ranked"],body[data-theme="chronopunk"]:has(.privacy-main),body[data-theme="chronopunk"]:has(.action-world),body[data-theme="chronopunk"]:has(.owner-main){background:#141a15;color:var(--archive-text)}
body[data-theme="chronopunk"][data-page="ranked"] .ranked-hero{border-bottom:1px solid #a48b5c85}
body[data-theme="chronopunk"][data-page="ranked"] .ranked-hero:before{background:linear-gradient(90deg,#141a15 0%,#141a15c9 26%,#141a1530 69%),linear-gradient(0deg,#141a15,transparent 57%),url('brand/chronopunk/napoleon.webp') 50% 23%/cover}
body[data-theme="chronopunk"][data-page="ranked"] .ranked-hero h1{color:#f7ead5}
body[data-theme="chronopunk"][data-page="ranked"] .ranked-art-caption{color:#ede4d4}
body[data-theme="chronopunk"][data-page="ranked"] .panel,body[data-theme="chronopunk"] :is(.owner-panel,.owner-card){background:#20261e;border:1px solid #8b795b75;border-top:2px solid #c0a271;border-radius:2px;box-shadow:none}
body[data-theme="chronopunk"][data-page="ranked"] .panel+.panel{border-top-color:#8aa691}
body[data-theme="chronopunk"][data-page="ranked"] :is(.eyebrow,header nav a,.layout h2){color:#ddc496}
body[data-theme="chronopunk"][data-page="ranked"] :is(.status,select){background:#171d17;color:#e4ddce;border-color:#6d6a58}
body[data-theme="chronopunk"] .privacy-main,body[data-theme="chronopunk"] .action-panel{border:1px solid #786c50;border-top:3px solid #bf9f64;background:#20271f;color:#eee5d4;box-shadow:none}
body[data-theme="chronopunk"] :is(.privacy-main,.action-panel,.owner-main) :is(a,.eyebrow){color:#dec497}
body[data-theme="chronopunk"] :is(.privacy-main,.action-panel) p{color:#cfcec0}
body[data-theme="chronopunk"] .action-world{border-color:#837451}
body[data-theme="chronopunk"] .action-panel button.primary{background:#e0c38f;border-color:#d6b685;color:#171b14}
body[data-theme="chronopunk"] .action-panel input{background:#111711;color:#eee6d7;border-color:#83745d}
/* Dark wood around the field and consent controls. Keep move, enemy and response colours legible. */
body[data-theme="chronopunk"][data-screen="battle"] :is(.hand-dock,.battle-overview,.commander-panel,.battle-reader,.battle-signals .panel,.tutorial-coach){background:#20261f;border-color:#7c7057}
body[data-theme="chronopunk"][data-screen="battle"] :is(.field-toolbar,#battleSignals,.battle-reader) button:not(.primary):not([aria-pressed="true"]){background-color:#1f261e;border-color:#7a6f57;color:#ece2cf}
body[data-theme="chronopunk"] #analyticsChoice .analytics-actions button.primary{background:#ddbf8a;border-color:#dec28e;color:#1a1d18;box-shadow:none}
@media(max-width:650px){body[data-theme="chronopunk"] #dialog:has(.collection-tools),body[data-theme="chronopunk"] #dialog:has(.deck-builder){width:calc(100vw - 14px)}}
body[data-theme="chronopunk"]{--chrono-patina:#88bfb7;--chrono-ink-red:#ad7383}
body[data-theme="chronopunk"]:not([data-screen="battle"]) #dialog[open]{border-top-color:#bfa577;background-image:linear-gradient(110deg,#171d18e6,#171d18ef 34%,#171d18 82%),url('atlas/home/table.webp')}
body[data-theme="chronopunk"]:not([data-screen="battle"]) .dialog-head:before,body[data-theme="chronopunk"] .action-panel>.eyebrow:before{content:"";width:22px;height:22px;flex:0 0 auto;margin-right:10px;background:url('brand/yasa-seal.svg') center/contain no-repeat;filter:drop-shadow(-1px 0 #486f6a) drop-shadow(1px 0 #815464)}
body[data-theme="chronopunk"]:not([data-screen="battle"]) .dialog-head h2{flex:1}
body[data-theme="chronopunk"] :is(.community-header,.account-heading,.owner-header),body[data-theme="chronopunk"][data-page="ranked"] header{border-bottom:1px solid transparent;border-image:linear-gradient(90deg,#75ada9,#97825e 13%,#8b7655 84%,#a16e7d) 1}
body[data-theme="chronopunk"] :is(.builder-tabs,.community-tabs) button[aria-selected="true"]{box-shadow:inset 0 -2px #92c7bd}
body[data-theme="chronopunk"][data-page="ranked"] .panel{border-top-color:#a7c2ac}body[data-theme="chronopunk"][data-page="ranked"] .panel+.panel{border-top-color:#af8390}
