@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800&family=DM+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');
:root{--paper:#eee8d7;--ink:#2e3025;--accent:#ad512f;--mono:'IBM Plex Mono',monospace;--display:'Barlow Condensed',Impact,sans-serif}*{box-sizing:border-box}body{margin:0;background:#17251f;color:var(--paper);font:15px/1.5 'DM Sans',sans-serif;background-image:radial-gradient(ellipse at 50% 30%,#33453760,transparent 65%)}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:disabled{cursor:not-allowed}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #f7be69;outline-offset:5px}button{color:inherit}header{min-height:76px;border-bottom:1px solid #ffffff20;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 4%}header>a{background:var(--paper);padding:8px 12px;display:flex}header>span,header button,footer{font:10px var(--mono);letter-spacing:1px}header button,.turn button,#choose-another{background:transparent;border:1px solid #ffffff40;padding:10px 15px}main{max-width:1420px;margin:auto;padding:30px 4%}h1,h2,p{margin:0}h1,h2{font-family:var(--display);line-height:1}h2{font-size:30px}em{font-style:normal;color:#d9aa69}.eyebrow{font:10px/1.6 var(--mono);letter-spacing:1.8px}.intro h1{font-size:clamp(64px,7vw,105px);text-transform:uppercase;margin:22px 0;line-height:.87;letter-spacing:-1px}.intro>p:not(.eyebrow){color:#bdc7b6;line-height:1.8}.intro-meta{display:flex;gap:15px;margin-top:28px;font:9px var(--mono);color:#d9aa69}.intro-meta span+span{border-left:1px solid #ffffff40;padding-left:15px}#selection{display:grid;grid-template-columns:.85fr 1.4fr;align-items:center;gap:55px;min-height:75vh}.choose>.eyebrow{margin-bottom:18px}#heroes{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.hero-choice{padding:7px;background:var(--paper);color:var(--ink);border:1px solid #cabf9e;box-shadow:4px 6px 0 #0a151680;border-radius:10px;text-align:left;transition:transform .2s}.hero-choice:nth-child(even){transform:translateY(24px)}.hero-choice:hover{transform:translateY(-10px) rotate(-2deg)}.hero-choice .art-window{height:260px;overflow:hidden;border:1px solid #2e3025;border-radius:5px;position:relative}.hero-choice strong{font:600 27px var(--display);display:block;margin-top:9px}.hero-choice small{font:10px var(--mono);color:var(--hero);display:block;text-transform:uppercase}.hero-choice .tag{font-size:10px;display:block;margin:9px 0;min-height:42px}.hero-choice .choose-label{display:block;border-top:1px solid #b3a68a;padding:8px 0 2px;font:9px var(--mono)}.selection-note{font:10px/1.8 var(--mono);color:#adbba6;margin-top:46px}.battle-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.battle-top h1{font-size:38px;margin-top:5px}.turn{text-align:right}.turn>span{display:block;font:12px var(--mono);color:#dcc790;margin-bottom:8px}.turn button{font-size:11px}.arena{display:grid;grid-template-columns:230px 1fr 235px;gap:30px;align-items:center;border-top:1px solid #a6b59940;border-bottom:1px solid #a6b59940;padding:24px 0;background:radial-gradient(ellipse at 50% 40%,#a6905b10,transparent 60%)}.portrait{height:195px;width:150px;overflow:hidden;border:5px solid var(--paper);border-radius:8px;transform:rotate(-3deg);box-shadow:8px 8px 0 #0003;margin:0 0 18px 8px;position:relative}.player h2{font-size:32px;margin:3px 0 14px}.meter-label{display:flex;justify-content:space-between;font:10px var(--mono);margin-bottom:7px}.meter-label b{color:#ecddad}progress{width:100%;height:8px;border:0;background:#3e4c3d;display:block;accent-color:#bbcc8e}progress::-webkit-progress-bar{background:#3e4c3d}progress::-webkit-progress-value{background:#bbcc8e;transition:width .25s}progress::-moz-progress-bar{background:#bbcc8e}.statuses{display:flex;gap:6px;flex-wrap:wrap;min-height:24px;margin-top:9px}.statuses span{font:9px var(--mono);border:1px solid #ffffff28;padding:4px 7px}.enemy{text-align:center}.enemy-title h2{margin-top:4px;font-size:30px}.enemy-title .eyebrow{color:#aeac87}.guardian-art{position:relative;width:182px;height:204px;overflow:hidden;margin:15px auto;border:1px solid #b49b6380;border-radius:90px 90px 6px 6px;box-shadow:0 0 60px #c39b4e12}.guardian-art img{width:140%;position:absolute;left:-20%;top:-37%;filter:sepia(.3)}.seal{position:absolute;font:35px var(--mono);top:50px;left:calc(50% - 12px);color:#e3d7ac;text-shadow:0 0 16px #fbe49c}.enemy-health{max-width:300px;margin:auto}.enemy .statuses{justify-content:center}#enemy-bar::-webkit-progress-value{background:#cf9169}.intent-panel{padding:20px;border:1px solid #d5bb793e;background:#0a141830}.intent-panel>.eyebrow{color:#c3b889;font-size:9px}#intent-icon{font-size:34px;margin:14px 0 7px;color:#dcad6b}#intent-name{font-size:26px}#intent-copy{font-size:13px;margin-top:12px;min-height:40px;color:#ddd5bd}.tip{border-top:1px solid #ffffff22;padding-top:13px;margin-top:13px;font-size:11px;color:#b2c09f;min-height:45px}details{margin-top:15px;font:10px/1.5 var(--mono)}summary{cursor:pointer}#log{padding-left:16px;color:#b5bfaf;max-height:130px;overflow:auto}#log li{margin-bottom:8px}.hand-bar{display:flex;align-items:center;justify-content:space-between;margin-top:19px}.hand-bar>div{display:flex;gap:14px;align-items:center}.energy{font:600 27px var(--display);color:#ead59c;white-space:nowrap}.hand-bar .eyebrow{font-size:9px}.end,.solid{background:#d4d8ad;color:#243026;border:0;padding:13px 25px;font:500 12px var(--mono)}.end:hover,.solid:hover{background:#e8ecc3}.live{font-size:12px;color:#d0bd98;min-height:30px;padding-top:9px}.hand{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;max-width:760px;margin:4px auto 0;min-height:290px}.action-card{position:relative;display:flex;flex-direction:column;background:var(--paper);color:var(--ink);border:2px solid #ab9e7e;border-radius:10px;padding:9px;text-align:left;box-shadow:4px 6px 0 #050d0a70;transition:transform .18s,filter .18s}.action-card:hover:not(:disabled){transform:translateY(-9px);box-shadow:0 0 0 2px var(--accent),5px 12px 0 #050d0a70}.card-top{display:flex;justify-content:space-between;align-items:center;font:10px var(--mono);padding-bottom:6px}.cost{width:25px;height:25px;border-radius:50%;background:var(--accent);color:white;display:grid;place-items:center;font-weight:bold}.card-art{height:118px;width:100%;display:block;overflow:hidden;border:1px solid #7b735d;position:relative}.action-card h3{font:600 24px/1 var(--display);margin:10px 0 6px}.action-card p{font-size:12px;line-height:1.45;min-height:50px}.card-footer{font:9px var(--mono);border-top:1px solid #b7ac91;padding-top:7px;margin-top:auto;display:flex;justify-content:space-between;color:#6a604d}.action-card:disabled{filter:saturate(.25);opacity:.65}.hand-note{text-align:center;font:9px/1.8 var(--mono);color:#95a38e;margin-top:18px}.hand-note span{display:block}footer{max-width:1420px;margin:20px auto 0;padding:20px 4%;border-top:1px solid #ffffff20;color:#8b9c85;display:flex;justify-content:space-between;gap:20px;font-size:9px}dialog{background:var(--paper);color:var(--ink);border:1px solid #9e947b;padding:35px;max-width:520px;width:calc(100% - 30px);box-shadow:12px 12px 0 #0005}dialog::backdrop{background:#09120de8;backdrop-filter:blur(5px)}dialog h2{font-size:48px;margin:15px 0}dialog p,dialog li{font-size:14px;line-height:1.7}dialog ol{padding-left:20px}dialog li{margin-bottom:10px}dialog .solid{background:#263b2c;color:var(--paper);margin-top:20px;width:100%}.close{position:absolute;right:10px;top:6px;background:none;border:0;font-size:28px}#choose-another{color:var(--ink);border-color:#9e947b;margin-top:10px;width:100%}#recovered{display:flex;align-items:center;gap:20px;margin-top:20px;border-block:1px solid #bdb198;padding:15px 0;font:10px/1.8 var(--mono)}#recovered img{width:75px;transform:rotate(-5deg)}#recovered small{display:block;font-size:9px;margin-top:6px;color:#786c55}[hidden]{display:none!important}.hit{animation:impact .25s ease}.played{animation:arrive .25s ease}@keyframes impact{30%{transform:translateX(-7px);filter:brightness(1.6)}70%{transform:translateX(5px)}}@keyframes arrive{from{transform:translateY(8px);opacity:.5}to{transform:translateY(0);opacity:1}}@media(max-width:1100px){#selection{grid-template-columns:1fr;gap:35px}.intro h1{font-size:75px}.intro h1 br{display:none}.hero-choice .art-window{height:290px}.arena{grid-template-columns:180px 1fr 210px;gap:20px}.choose{padding-bottom:20px}}@media(max-width:700px){header>span{display:none}main{padding:20px 4%}.intro h1{font-size:62px}.intro-meta{font-size:8px}#heroes{grid-template-columns:1fr 1fr;gap:15px}.hero-choice:nth-child(even){transform:none}.hero-choice .art-window{height:220px}.hero-choice .tag{min-height:0}.selection-note{margin-top:20px}.battle-top h1{font-size:28px}.battle-top .eyebrow{font-size:8px}.arena{grid-template-columns:1fr 1fr;gap:18px;padding:15px 0}.portrait{height:140px;width:105px;margin-bottom:14px}.player h2{font-size:26px}.guardian-art{width:126px;height:155px;margin:10px auto}.enemy-title h2{font-size:23px}.enemy-title .eyebrow{font-size:7px}.seal{top:35px;font-size:23px;left:calc(50% - 8px)}.intent-panel{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:4px 12px;padding:12px}.intent-panel>.eyebrow{grid-column:1/-1}#intent-icon{display:none}#intent-name{font-size:23px;align-self:center}#intent-copy{margin:0;min-height:0;font-size:12px}.tip{grid-column:1/-1;min-height:0;margin-top:5px;padding-top:7px}details{grid-column:1/-1;margin-top:4px}.hand{gap:7px;min-height:245px}.action-card{padding:6px;border-radius:7px}.card-art{height:78px}.action-card h3{font-size:19px;min-height:38px}.action-card p{font-size:11px;min-height:80px}.card-top{font-size:8px}.card-footer{font-size:7px;gap:3px}.cost{width:22px;height:22px}.hand-bar .eyebrow{font-size:8px;max-width:100px}.hand-bar>div{gap:7px}.end{padding:12px;font-size:11px}.live{font-size:11px;min-height:44px}.energy{font-size:23px}.meter-label{font-size:8px}.statuses span{font-size:8px}footer{font-size:8px;flex-wrap:wrap}.turn button{padding:8px;font-size:10px}.turn>span{font-size:10px}.hand-note{font-size:8px}dialog{padding:24px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

/* Full Archive assets: retain the complete frame, face and weight label. */
.hero-choice .art-window{height:auto;aspect-ratio:2/3;overflow:visible;border:0;border-radius:5px}
.portrait{height:auto;width:140px;aspect-ratio:2/3;border:0;overflow:visible}
.card-art{height:auto;aspect-ratio:2/3;overflow:visible;border:0;border-radius:6px}
.hand{max-width:680px;align-items:stretch}
.action-card .card-top>.cost{width:auto;min-width:27px;padding:0 5px}
#recovered .recovered-card{width:85px;flex-shrink:0;transform:rotate(-5deg)}
#recovered .recovered-card img{width:100%;transform:none}
#recovered .recovered-card>.card-weight{display:flex;margin:0;border:0;padding:0 1% 0 0;font:900 6.2cqw/1 'IBM Plex Mono',monospace;letter-spacing:-.06em}
@media(max-width:700px){.portrait{width:105px;height:auto}.hero-choice .art-window,.card-art{height:auto}.action-card h3{font-size:19px}.action-card p{min-height:88px}}
/* Keep full card frames within narrow browser panels as well as phones. */
#selection>*,.choose,.hero-choice,.action-card,.arena>*{min-width:0}
#heroes{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:700px){#heroes{grid-template-columns:repeat(2,minmax(0,1fr))}.intro h1 br{display:block}.intro h1{font-size:clamp(44px,12vw,62px)}.hero-choice strong{font-size:25px}.hero-choice .choose-label{font-size:8px}.hand-bar{gap:8px}.hand-bar .eyebrow{max-width:85px}}
@media(max-width:360px){header{gap:8px}header img{width:98px}header button{font-size:9px;padding:10px}.action-card .card-top{font-size:7px}.action-card h3{font-size:17px}.action-card p{font-size:10px}.card-footer{flex-wrap:wrap}.battle-top h1{font-size:25px}.turn button{font-size:9px}.hand-bar .eyebrow{font-size:7px;max-width:70px}.enemy-title h2{font-size:20px}}

#heroes{grid-template-columns:minmax(0,280px);justify-content:center}.choose>.eyebrow,.selection-note{text-align:center}.hero-choice .art-window{height:auto}#qualification{margin-top:24px;border-top:1px solid #bdb198;padding-top:20px}#qualification h3{font:30px var(--display);margin:10px 0}#win-wallet label{display:block;margin:15px 0 6px}#receiving-wallet{width:100%;font:13px var(--mono);padding:13px;background:#faf4e4;border:1px solid #9e947b}#qualification p{font-size:12px;margin-top:10px}#wallet-status{font-weight:600}

/* Embedded game retains its original artwork and battle UI. */
html.embedded body{background-image:none}html.embedded body>header{min-height:48px;padding:10px 3%;justify-content:flex-end}html.embedded header>a,html.embedded header>span,html.embedded body>footer{display:none}html.embedded main{padding:20px 3% 28px}html.embedded #selection{min-height:0;grid-template-columns:1fr 1fr;gap:30px}html.embedded .intro h1{font-size:clamp(44px,6vw,80px)}html.embedded #heroes{grid-template-columns:minmax(0,190px)}html.embedded .selection-note{margin-top:18px}html.embedded dialog{max-height:85vh;overflow:auto}html.embedded .embedded-continue{display:block;text-align:center;margin:18px 0;color:#263b2c;font-weight:700}@media(max-width:600px){html.embedded #selection{grid-template-columns:1fr;gap:20px}html.embedded .intro{text-align:center}html.embedded .intro-meta{justify-content:center}html.embedded .intro h1 br{display:none}}
