@font-face{font-family:DripRead;src:url('assets/fonts/AtkinsonNext.ttf') format('truetype');font-weight:100 900;font-display:swap}
@font-face{font-family:DripDisplay;src:url('assets/fonts/RoofMarker.ttf') format('truetype');font-weight:700;font-display:swap}
:root{--ink:#121017;--paper:#fff8e9;--pink:#ff429f;--blue:#4cd8ef;--lime:#c8ff62;--yellow:#ffe64c;--read:DripRead,Arial,sans-serif;--display:DripDisplay,DripRead,sans-serif}
html body{font-family:var(--read);color:var(--paper);background:var(--ink)}
html body button,html body input,html body select,html body textarea{font-family:var(--read);font-size:15px}
html body .start-card h1,html body h1,html body h2,html body h3,html body .callout,html body .round-hud strong{font-family:var(--display);font-weight:700;letter-spacing:-.035em}
html body button{border-radius:9px;transform:none;text-shadow:none}
html body button:focus-visible,html body input:focus-visible,html body select:focus-visible{outline:3px solid var(--yellow);outline-offset:4px}
html body button[hidden],html body [hidden]{display:none!important}
html body .primary,html body .acct-primary{background:var(--lime);color:var(--ink);border:2px solid var(--ink);box-shadow:4px 4px 0 var(--pink);text-shadow:none;transform:none;border-radius:10px;font-weight:850}
html body .eyebrow{font:800 12px var(--read);letter-spacing:.12em;color:var(--blue)}
html body.menu #overlay{padding:90px 5vw 64px;background:linear-gradient(125deg,#17131e 0%,#17131e 70%,#211724 70%);overflow:auto;align-items:flex-start}
html body.menu .start-card{max-width:1180px;max-height:none;height:auto;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:36px;background:none;border:0;box-shadow:none;padding:0;overflow:visible}
html body .menu-main{padding:0;overflow:visible;max-height:none}
html body .brand-host{margin-bottom:8px!important;gap:12px!important}
html body .brand-host img{width:58px!important;height:58px!important;border:2px solid var(--pink);background:var(--ink)}
html body .brand-host>span{font:850 16px var(--read)!important;color:var(--lime)!important}
html body .brand-host small{font:600 10px var(--read)!important;letter-spacing:.08em}
html body .start-card .brand-title{font-family:var(--display);font-size:clamp(54px,6vw,92px);line-height:.98;margin:12px 0;letter-spacing:-.07em;color:var(--paper);text-shadow:3px 4px 0 var(--ink);transform:rotate(-2deg);white-space:nowrap}
html body .brand-title em{animation:none;font-style:normal;color:var(--pink);position:relative}
html body .brand-title em:after{content:'';position:absolute;bottom:-6px;left:3px;width:96%;height:6px;background:var(--blue);border-radius:60% 25%;transform:rotate(-3deg)}
html body .tagline{font:550 17px var(--read);color:var(--paper);margin:22px 0 18px;opacity:.9}
html body .menu-player{margin:0 0 20px;padding:0;border:0;background:none}
html body .menu-player label{font:800 11px var(--read);color:var(--blue);letter-spacing:.1em}
html body .menu-player input{min-height:42px;background:#24212b;border:1px solid #635d6d;border-radius:8px;padding:8px 12px;color:var(--paper)}
html body .menu-player button{min-width:64px;background:var(--paper);color:var(--ink);font-weight:850;border:2px solid var(--ink)}
html body .menu-player p{font:500 12px var(--read);color:#c7c1ce;margin:6px 0}
html body .brand-tabs{display:flex;gap:8px;border-bottom:2px solid #4b4255;padding-bottom:9px}
html body .brand-tabs button{flex:1;min-height:44px;background:none;color:var(--paper);border:2px solid transparent;font:700 19px var(--display);letter-spacing:.02em}
html body .brand-tabs button[aria-pressed=true]{background:var(--yellow);color:var(--ink);border-color:var(--ink);box-shadow:3px 3px 0 var(--pink);transform:rotate(-1deg)}
html body .brand-shelf-hint{font-size:14px;color:#dad3de;margin:13px 0;min-height:20px}
html body .main-actions{display:grid;grid-template-columns:1fr 1fr!important;gap:10px!important}
html body .main-actions .mode-button{grid-column:span 1!important;order:0;flex-direction:row;align-items:center;justify-content:space-between;gap:12px;min-height:88px;padding:13px 14px;background:#26212e;border:2px solid #6f617d;border-radius:11px;box-shadow:3px 3px 0 #09080c;transform:none;color:var(--paper);text-align:left}
html body .main-actions .mode-button>span{font:800 17px var(--read);letter-spacing:0}
html body .main-actions .mode-button small{font:500 12px/1.4 var(--read);color:#d1c9d9;letter-spacing:0;display:block!important;white-space:normal!important;margin-top:5px;max-width:28ch}
html body .main-actions .mode-button>b{font:700 19px var(--display);color:var(--blue)}
html body .main-actions #start{background:var(--lime);color:var(--ink);border-color:var(--ink)}
html body .main-actions #start small,html body .main-actions #start b{color:#263511}
html body .main-actions .mode-button:hover{border-color:var(--blue);background:#302738;transform:translateY(-2px)}
html body .main-actions #start:hover{background:#d8ff93}
html body .brand-card-actions{margin:12px 0}
html body .brand-table-entry{width:100%;padding:18px;background:var(--pink);color:var(--ink);font-weight:850;border:2px solid var(--ink);box-shadow:4px 4px 0 var(--blue)}
html body .menu-settings{padding-top:18px;margin-top:12px;border-top:1px solid #4b4255;font-size:13px}
html body .menu-settings select{background:#26212e;color:var(--paper);border:1px solid #6f617d;padding:7px 10px;border-radius:7px}
html body .menu-footnote{font:650 11px var(--read);letter-spacing:.09em;color:#ada3ba}
html body .menu-feature{background:var(--paper);color:var(--ink);border:3px solid var(--ink);border-radius:28px 8px 24px 10px;box-shadow:9px 9px 0 var(--pink);min-height:510px;height:auto;align-self:center;transform:rotate(2deg);overflow:hidden}
html body .feature-stamp{font:850 11px var(--read);letter-spacing:.06em;border:2px solid var(--ink);background:var(--yellow);color:var(--ink);border-radius:5px;transform:rotate(-3deg);padding:8px}
html body .feature-orbit{border:3px dashed var(--ink);background:var(--blue);opacity:1;box-shadow:none;width:310px;height:310px;border-radius:49% 51% 46% 54%;transform:rotate(-8deg)}
html body #menuFighterArt{width:min(90%,360px);height:auto;filter:drop-shadow(6px 8px 0 #12101733);z-index:2}
html body .feature-caption{background:var(--ink);color:var(--paper);padding:18px 24px;bottom:0;left:0;right:0;transform:rotate(-2deg) scale(1.04)}
html body .feature-caption h2{font-family:var(--display);font-size:40px;color:var(--lime);margin:6px 0}
html body .feature-caption span{font:750 12px var(--read);color:var(--blue)}
html body .feature-caption p{font:700 11px var(--read);letter-spacing:.12em}
html body .feature-mark{color:var(--pink);font-size:80px;right:15px;bottom:140px;text-shadow:2px 2px 0 var(--ink)}
html body #fxBackdrop{opacity:.08}
html body .fx-ticker{background:var(--yellow);color:var(--ink);border:2px solid var(--ink);font:800 12px var(--read);box-shadow:none}
html body .topline{background:#121017ed;border-bottom:2px solid #46364b;backdrop-filter:blur(8px)}
html body .edition{font:800 12px var(--read);letter-spacing:.08em}
html body .utilities button{background:var(--paper);color:var(--ink);border:2px solid var(--ink);font-weight:800;min-height:36px}
html body .settings-panel,html body .game-menu-card,html body .acct-card{background:#201b28;border:2px solid #77667f;border-radius:15px;color:var(--paper);box-shadow:6px 6px 0 #09080c}
html body .settings-section{color:var(--blue);border-bottom:2px solid #66566e;padding-bottom:8px}
html body .settings-panel p,html body .settings-panel label{font-family:var(--read);line-height:1.5}
html body .roster-panel,html body .story-card,html body .cards-card,html body .result-card{background:#201b28;border-color:#77667f;border-radius:15px}
html body .fighter-card,html body .fighter-tile{border-radius:10px}
html body .health{height:18px;border:2px solid var(--ink);border-radius:4px;background:#34273d}
html body .health>div{background:var(--lime)}
html body .enemy .health>div{background:var(--pink)}
html body .health-number,html body .name-row,html body .settings-hint{font-family:var(--read)}
html body .ct-modal{background:#17131ef7;color:var(--paper)}
html body .ct-modal,html body .ct-modal button,html body .ct-modal select{font-family:var(--read)}
html body .ct-modal .ct-header{border-bottom:2px solid #78667f}
html body .ct-modal .ct-header h2{color:var(--paper);text-shadow:none;letter-spacing:0}
html body .ct-modal .ct-header small{color:var(--blue);font-weight:800}
html body .ct-modal .ct-ref{background:#24202c;border:2px solid #78667f;border-radius:12px;color:var(--paper)}
html body .ct-modal #ctInspector,html body .ct-modal #ctHand,html body .ct-modal .ct-build section{background:#24202c;border:1px solid #78667f;color:var(--paper)}
html body .ct-modal .ct-side{background:#201b28ed;border-color:#78667f}
html body .ct-modal .ct-type-chart,html body .ct-modal .ct-mechanics{background:#312638;color:var(--paper)}
html body .ct-modal .ct-rules,html body .ct-modal .ct-log{color:#e1d8e6}
html body .ct-modal #ctToolbar strong,html body .ct-modal #ctInspector h3{color:var(--lime)}
html body .ct-modal h2,html body .ct-modal h3{font-family:var(--display)}
html body :is(.story-card,.scores-card,.adventure-card,.duel-card,.lobby-card,.profile-card,.code-tournament-card,.cards-card,.result-card) h2{font-family:var(--display)!important;text-shadow:none;rotate:0}
html body .name-row strong{font-family:var(--display)!important;text-shadow:none}
html body .fx-ticker span,html body .fx-ticker b{color:var(--ink)}
html body .ct-dialog{background:#19151f;border:2px solid #77667f;border-radius:16px;box-shadow:6px 6px 0 #09080c}
html body .ct-modal .ct-btn{border-radius:8px;font-weight:800}
html body .ct-modal .ct-btn.primary{background:var(--lime);color:var(--ink)}
@media(max-width:760px){html body.menu #overlay{padding:80px 16px 62px}html body.menu .start-card{display:flex;flex-direction:column;gap:24px;width:100%;max-width:520px}html body .menu-main{width:100%}html body .brand-title{font-size:60px}html body .menu-feature{width:100%;min-height:340px;max-height:380px;order:2;transform:rotate(1deg)}html body .feature-orbit{width:220px;height:220px}html body #menuFighterArt{width:230px}html body .feature-caption{padding:12px 20px}html body .feature-caption h2{font-size:28px}html body .feature-mark{bottom:100px;font-size:56px}html body .main-actions .mode-button{min-height:94px;padding:12px}html body .main-actions .mode-button>b{display:none}html body .edition{display:none}html body .brand-host small{font-size:9px!important}html body .settings-panel{max-width:100%;border-radius:14px 0 0 14px}}
@media(prefers-reduced-motion:reduce){html body .main-actions .mode-button:hover{transform:none}html body .brand-title,html body .menu-feature{transform:none}}
/* Keep menu rendering light; combat and card-table effects retain their own layers. */
html body.menu .grain,html body.menu #fxBackdrop{display:none}
html body.menu .topline{backdrop-filter:none}
html[data-brand-shelf=cards] body .main-actions{grid-template-columns:1fr!important}
html body .main-actions #menuExitGame{grid-column:1/-1!important;border-color:#b76584}

html body :is(.story-card,.scores-card,.adventure-card,.duel-card,.lobby-card,.profile-card,.code-tournament-card,.share-panel,.accounts-panel,.help-card,.result-card,.settings-panel,.cards-card){background:#201b28!important;border:2px solid #78667f!important}
html body :is(.story-card,.scores-card,.adventure-card,.duel-card,.lobby-card,.profile-card,.code-tournament-card,.share-panel,.accounts-panel,.help-card,.result-card,.settings-panel,.cards-card)::before{background:var(--blue);height:3px;animation:none}
html body .eyebrow{color:var(--blue)!important;background:none;border:0;border-radius:0;padding:0}
