:root{color-scheme:dark;--bg:#090f14;--panel:#101a22;--line:#a58c5552;--gold:#d4b575;--text:#eee8d9;--muted:#9ea9ae;--blue:#86cce0;--red:#cc786a;--serif:"Songti TC","Noto Serif CJK TC","PMingLiU",serif;--sans:-apple-system,BlinkMacSystemFont,"PingFang TC","Microsoft JhengHei",sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:14px/1.55 var(--sans)}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{cursor:not-allowed;opacity:.38}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--blue);outline-offset:4px}button{border:1px solid var(--line);background:#17232c;padding:10px 16px;border-radius:3px;transition:background .18s,border-color .18s,transform .18s}button:hover:not(:disabled){background:#27343b;border-color:var(--gold)}button.primary{background:linear-gradient(110deg,#a8894c,#d5ba7f);color:#171b1e;border-color:#ead099;font-weight:700;box-shadow:0 4px 28px #c0a6671a}button.primary:hover:not(:disabled){background:#e1c78f}button.ghost{background:transparent;border-color:transparent;color:var(--muted)}button.ghost:hover{color:var(--text);border-color:var(--line)}button.small{padding:6px 10px;font-size:12px}button.icon-button{padding:6px 12px;font-size:18px}button.danger{color:#e29788;border-color:#9c615b}input,select{border:1px solid #6e7b7d60;background:#091118;border-radius:3px;color:var(--text);padding:10px 12px;min-width:0}input::placeholder{color:#7f8a91}img{display:block;max-width:100%}h1,h2,h3,p{margin:0}h1,h2,h3{font-weight:500}h1,h2{font-family:var(--serif)}h1{font-size:clamp(34px,4.5vw,68px);line-height:1.28;letter-spacing:.08em}h2{font-size:32px;letter-spacing:.08em}h3{font-size:18px}small,.muted{color:var(--muted)}.gold{color:var(--gold)}.eyebrow{text-transform:uppercase;letter-spacing:.2em;font-size:11px;font-weight:600;color:var(--gold)}.row{display:flex;align-items:center;gap:12px}.between{justify-content:space-between}.stack{display:grid;gap:14px}.wide{width:100%}.rule{height:1px;background:linear-gradient(90deg,var(--line),transparent);margin:24px 0}.page{min-height:100dvh;isolation:isolate;background:radial-gradient(ellipse at 50% 0,#27313266,transparent 65%)}.topbar{height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 3.2vw;border-bottom:1px solid var(--line);background:#091017e8;position:relative;z-index:5;gap:20px}.brand{display:flex;align-items:center;gap:12px;background:transparent;border:0;padding:0;text-align:left;white-space:nowrap}.sigil{flex:none;width:44px;height:44px;display:block;background:url("https://static.wixstatic.com/media/ac2004_5dd19e52746941f6b6eb7cbbd8e9f5fc~mv2.jpg") center/310% 432.9167% no-repeat;mask-image:radial-gradient(circle closest-side,#000 88%,transparent 100%)}.brand strong{font:600 21px var(--serif);letter-spacing:.16em}.brand small{display:block;font-size:9px;letter-spacing:.25em;margin-top:3px}.journey{display:flex;align-items:center;gap:22px;color:#71808a;font-size:12px}.journey span{white-space:nowrap}.journey b{font:11px Georgia,serif;margin-right:6px;color:#61727c}.journey .active,.journey .active b{color:var(--gold)}.status-dot{display:inline-block;width:5px;height:5px;border-radius:50%;background:var(--gold);margin-right:7px}.account{font-size:12px;white-space:nowrap}.content{max-width:1540px;margin:0 auto;padding:32px 3.2vw}.page-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:26px}.page-head p{color:var(--muted);margin-top:8px}.page-head .eyebrow{margin-bottom:6px}.caption{font-size:12px;letter-spacing:.06em;color:var(--muted)}.footer{display:flex;align-items:center;justify-content:space-between;gap:15px;color:#7d8a91;font-size:11px;letter-spacing:.08em;border-top:1px solid var(--line);padding:17px 3.2vw}.screen-chip{font-size:10px;color:var(--gold);border:1px solid var(--line);padding:3px 8px;letter-spacing:.1em;white-space:nowrap}
/* Story: original character art, typographic foreground. */
.story{position:relative;min-height:calc(100dvh - 76px);display:flex;align-items:center;overflow:hidden}.story-art{position:absolute;inset:0 0 0 35%;z-index:-3;object-fit:cover;width:65%;height:100%;object-position:50% 34%;opacity:.85;animation:reveal 1s ease both}.story::before{content:"";position:absolute;inset:0;z-index:-2;background:linear-gradient(90deg,#090f14 5%,#090f14e8 30%,#090f1460 58%,#090f1400 80%),linear-gradient(0deg,#090f14 1%,transparent 28%,#090f1455 100%)}.story::after{content:"";position:absolute;width:720px;height:720px;border:1px solid #b9a57622;box-shadow:0 0 0 35px #b9a57607,0 0 0 36px #b9a57615;border-radius:50%;right:-130px;top:80px;z-index:-1;pointer-events:none}.story-copy{padding:70px 6vw 135px;max-width:760px;animation:reveal .6s ease both}.story-copy h1{margin:24px 0}.story-copy h1 em{font-style:normal;color:var(--gold)}.story-copy p{max-width:450px;color:#b7c0c4;font-size:16px;line-height:2}.story-copy .row{margin-top:35px}.story-copy button{min-width:140px;padding:13px 23px}.story-chapters{position:absolute;left:6vw;right:5vw;bottom:35px;display:flex;align-items:end;justify-content:space-between;gap:30px}.chapter-tabs{display:flex;gap:26px}.chapter-tab{background:none;border:0;border-top:2px solid #63707955;padding:14px 0 0;text-align:left;min-width:92px;border-radius:0}.chapter-tab b{display:block;font:12px Georgia,serif;color:#687780;margin-bottom:4px}.chapter-tab span{font-size:12px;color:#819098}.chapter-tab.active{border-color:var(--gold)}.chapter-tab.active span,.chapter-tab.active b{color:var(--gold)}.story-aside{text-align:right;max-width:210px;font-size:11px;color:#aebac0}.story-aside strong{display:block;color:var(--gold);font-family:var(--serif);font-size:18px;letter-spacing:.15em;margin-bottom:8px}.story-number{position:absolute;right:5vw;top:35px;font:italic 90px Georgia,serif;color:#e8d9b020}
/* Factions and tutorial */
.faction-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.faction-card{position:relative;height:clamp(350px,59vh,640px);padding:0;overflow:hidden;text-align:left;background:#151c20;border:1px solid #5b665d;border-radius:4px}.faction-card>img{width:100%;height:100%;object-fit:cover;object-position:50% 22%;transition:transform .6s,filter .6s;filter:saturate(.7) brightness(.8)}.faction-card:hover>img,.faction-card.selected>img{transform:scale(1.025);filter:saturate(1) brightness(1)}.faction-card.selected{border-color:var(--gold);box-shadow:inset 0 0 0 1px var(--gold)}.faction-card.blue.selected{border-color:var(--blue)}.faction-card::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#070d13 3%,#070d13c9 22%,transparent 65%)}.faction-info{position:absolute;bottom:30px;left:32px;right:32px;z-index:1}.faction-info h2{font-size:38px;margin:6px 0}.faction-info h2 span{font:15px var(--sans);margin-left:14px;color:var(--gold)}.blue .faction-info h2 span{color:var(--blue)}.faction-info p{color:#acbac1;margin:8px 0;max-width:390px}.faction-seal{position:absolute;top:22px;left:24px;z-index:2;border:1px solid #d4b57588;padding:7px 15px;background:#0a0f1466;font:18px var(--serif);color:var(--gold)}.blue .faction-seal{color:var(--blue);border-color:#86cce088}.select-tick{position:absolute;right:22px;top:23px;z-index:2;color:var(--gold);font-size:20px}.select-footer{display:flex;align-items:center;justify-content:space-between;padding:22px 0;gap:18px}.tag{display:inline-block;border:1px solid #75888d55;background:#71848b11;padding:3px 8px;border-radius:2px;font-size:11px;color:#bdc9cd;margin-right:6px}.guide-layout{display:grid;grid-template-columns:360px 1fr;gap:40px;min-height:62vh}.guide-menu{display:flex;flex-direction:column;gap:10px}.guide-menu button{padding:18px;text-align:left;background:transparent;border-color:#73818a33}.guide-menu button.active{border-color:var(--gold);background:#c8a95d10}.guide-menu b{color:var(--gold);margin-right:15px;font:16px Georgia,serif}.guide-menu small{display:block;padding-left:35px;margin-top:5px}.guide-stage{display:grid;place-items:center;position:relative;min-height:440px;border:1px solid var(--line);background:radial-gradient(ellipse at 50% 35%,#35404a55,#0b121a 70%);padding:30px;text-align:center}.guide-display{height:230px;display:flex;align-items:center;justify-content:center;gap:28px;margin:0 auto 15px}.guide-display img.card{height:220px;box-shadow:0 15px 35px #0008;transform:rotate(-5deg)}.guide-display img.card.second{transform:rotate(8deg)}.guide-display .stats{margin-top:15px}.guide-stage h2{font-size:27px}.guide-stage p{max-width:570px;margin:12px auto 20px;color:var(--muted)}.big-count{font:70px Georgia,serif;color:var(--gold)}.guide-stage .ring{width:170px;height:170px;border:1px solid var(--gold);border-radius:50%;display:grid;place-content:center;background:#c1a36008}.guide-stage .ring small{font-size:12px}.guide-stage button.primary{min-width:170px}
/* Deck builder */
.builder{padding-top:24px}.builder-head{margin-bottom:18px}.builder-head h2{font-size:27px}.builder-head input{font-size:16px;width:220px;background:transparent;border-width:0 0 1px;border-radius:0;padding-left:0}.builder-layout{display:grid;grid-template-columns:minmax(340px,1.45fr) minmax(220px,.77fr) minmax(280px,.88fr);gap:20px;align-items:start}.panel{background:#101923a8;border:1px solid #69787b44;border-radius:3px;overflow:hidden}.panel-title{padding:13px 16px;border-bottom:1px solid #69787b33;display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px;letter-spacing:.04em}.panel-title small{font-size:10px}.library-tools{padding:14px;display:grid;gap:10px}.library-tools input{width:100%}.filter-row{display:flex;gap:5px;flex-wrap:wrap}.filter-row button{padding:5px 9px;font-size:11px;background:transparent;border-color:transparent}.filter-row button.active{background:#c9ae671c;color:var(--gold);border-color:#c9ae675c}.library-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px 10px;padding:0 14px 18px;max-height:calc(100dvh - 340px);min-height:330px;overflow-y:auto;align-content:start}.card-tile{position:relative;min-width:0}.card-image-button{padding:0;border:0;background:none!important;width:100%;position:relative;border-radius:4px;overflow:hidden}.card-image-button img{width:100%;height:auto;aspect-ratio:744/1039;object-fit:contain;transition:transform .15s}.card-image-button:hover img{transform:scale(1.025)}.card-tile.selected .card-image-button{outline:2px solid var(--gold);outline-offset:2px}.card-code{font-size:9px;letter-spacing:.04em;color:#92a4ad;margin:5px 0 1px;display:flex;justify-content:space-between}.card-code b{font-size:10px;color:var(--gold)}.card-label{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#c0c9cd}.quick-add{position:absolute;right:4px;bottom:36px;width:25px;height:25px;border-radius:50%;padding:0;background:#111a21ef;border-color:var(--gold);color:var(--gold);font-size:18px;line-height:1}.inspector{position:sticky;top:10px;padding:14px}.inspector>button{display:block;padding:0;border:0;background:none;margin:auto;max-width:240px}.inspector img{width:100%;border-radius:5px;box-shadow:0 10px 25px #0006}.inspector h3{font:20px var(--serif);margin:16px 0 5px}.inspector .card-text{font-size:12px;line-height:1.85;color:#abb9c0;max-height:165px;overflow:auto;margin:12px 0;white-space:pre-wrap}.stepper{display:grid;grid-template-columns:42px 1fr 42px;align-items:center;text-align:center;gap:8px;margin-top:10px}.stepper button{font-size:20px;padding:4px}.deck-meter{padding:18px;background:linear-gradient(110deg,#c1a76512,transparent)}.deck-meter strong{font:36px Georgia,serif;letter-spacing:.02em}.deck-meter strong small{font-size:17px;color:#8b989f}.meter{height:3px;background:#5c696c44;margin:10px 0;overflow:hidden}.meter i{display:block;background:var(--gold);height:100%;transition:width .2s}.deck-counts{display:flex;justify-content:space-between;color:#a7b4ba;font-size:11px}.attached-cards{display:flex;gap:12px;padding:12px 16px;border-block:1px solid #70808133;font-size:11px;color:var(--muted)}.attached-cards button{padding:0;border:0;background:none;display:flex;align-items:center;gap:7px;text-align:left;flex:1}.attached-cards img{width:25px;border-radius:2px}.attached-cards strong{display:block;color:#d8d9cf;font-size:11px;font-weight:400}.deck-list{max-height:calc(100dvh - 530px);min-height:170px;overflow:auto;padding:5px 12px}.deck-row{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid #69787b22}.deck-row img{width:28px;height:39px;object-fit:cover;border-radius:2px}.deck-row .deck-card-name{flex:1;min-width:0;text-align:left;background:none;border:0;padding:0;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.deck-row small{display:block;font-size:9px}.deck-row .quantity{font-size:11px;color:var(--gold);min-width:18px;text-align:center}.deck-row button.count{padding:0;width:22px;height:25px;font-size:14px}.deck-actions{padding:12px;display:grid;gap:8px}.deck-actions .row{gap:7px}.deck-actions .row button{flex:1;padding:8px;font-size:11px}.validation{padding:0 14px 12px;font-size:10px;color:var(--muted)}.validation .error{color:#e8ad84}.validation summary{cursor:pointer}.mobile-tabs{display:none}.empty{padding:40px 15px;text-align:center;color:var(--muted);grid-column:1/-1}.saved-list{display:grid;gap:12px;max-height:60vh;overflow:auto}.saved-card{padding:15px;border:1px solid var(--line);display:flex;gap:20px;align-items:center;justify-content:space-between}.saved-card small{display:block}.saved-card h3{font-size:16px}.saved-card .row{gap:7px}
/* Duel field */
.battle-page .topbar{height:58px}.battle-top{display:flex;align-items:center;justify-content:space-between;padding:10px 2vw;border-bottom:1px solid var(--line);background:#0c161e}.battle-top .tag{font-size:10px}.battle-layout{display:grid;grid-template-columns:210px minmax(600px,1fr) 200px;min-height:calc(100dvh - 105px)}.battle-sidebar{background:#0b141ce8;border-right:1px solid #70858b33;padding:18px 16px}.battle-sidebar.right{border-right:0;border-left:1px solid #70858b33}.battle-sidebar h3{font-size:13px;color:var(--gold);letter-spacing:.1em}.battle-sidebar p{font-size:11px;line-height:1.8;color:var(--muted)}.battle-sidebar img.full-preview{width:100%;margin:18px auto 12px;max-width:160px;border-radius:4px}.battle-sidebar button{margin-top:10px}.battle-log{list-style:none;padding:0;margin:16px 0;font-size:11px;max-height:47vh;overflow:auto}.battle-log li{padding:9px 0 9px 10px;border-left:1px solid #566c7466;color:#b1bdc4;position:relative}.battle-log li::before{content:"";position:absolute;width:4px;height:4px;background:#788b93;left:-3px;top:15px}.battle-log li:first-child{color:var(--gold);border-color:var(--gold)}.arena{position:relative;min-width:0;padding:14px 24px 0;overflow:hidden;background:radial-gradient(ellipse at 50% 45%,#38414477,transparent 55%),repeating-linear-gradient(45deg,#7c8e9206 0,#7c8e9206 1px,transparent 1px,transparent 35px),#0d1922}.arena::before{content:"";position:absolute;inset:11% 10% 22%;border:1px solid #d4b57520;border-radius:50%;box-shadow:0 0 0 35px #d4b57503,0 0 0 36px #d4b5750d;pointer-events:none}.duelist{display:flex;align-items:center;justify-content:space-between;gap:14px;position:relative;z-index:1}.duelist-portrait{width:47px;height:47px;object-fit:cover;object-position:50% 20%;border:1px solid var(--gold);border-radius:50%}.duelist.blue .duelist-portrait{border-color:var(--blue)}.duelist h3{font:18px var(--serif);letter-spacing:.05em}.duelist small{font-size:10px}.hp{display:flex;align-items:center;gap:9px;color:var(--gold)}.blue .hp{color:var(--blue)}.hp b{font:30px Georgia,serif}.hp small{color:inherit;font-size:9px;line-height:1.4}.stats{display:flex;gap:16px;align-items:center}.stat{display:flex;align-items:center;gap:6px;font:21px Georgia,serif}.stat img{width:20px;height:20px}.stat small{display:block;font:9px var(--sans);color:var(--muted)}.phase-rail{display:flex;align-items:center;justify-content:center;gap:15px;padding:8px;margin:5px 0;border-block:1px solid #8c865c50;color:#778c96;font-size:10px;position:relative;background:#1018209c}.phase-rail b{font-weight:400;letter-spacing:.1em}.phase-rail .current{color:var(--gold)}.phase-rail .phase-no{font:13px Georgia,serif;color:var(--gold);margin-right:10px}.player-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #c2ad6b33;padding-top:9px;margin-top:5px;position:relative;z-index:2}.player-actions button{font-size:11px;padding:7px 12px}.player-actions .row{gap:7px}.hand{display:flex;justify-content:center;gap:0;overflow-x:auto;overflow-y:hidden;min-height:128px;padding:18px 10px 0;position:relative;z-index:3;align-items:start}.hand-card{padding:0;background:none!important;border:1px solid #a58c5588;width:83px;flex:0 0 83px;margin-left:-12px;transform:translateY(8px) rotate(var(--angle,0deg));transform-origin:center 150%;box-shadow:0 8px 18px #0009;border-radius:4px;transition:transform .2s}.hand-card:first-child{margin-left:0}.hand-card:hover,.hand-card:focus-visible{transform:translateY(-12px) rotate(0);z-index:5;border-color:var(--gold)}.hand-card img{width:100%;border-radius:4px}.opponent-hand{display:flex;gap:4px}.opponent-hand img{width:18px;height:25px;border:1px solid #7194a955;border-radius:1px}.battle-notice{font-size:10px;color:#94a7b0;text-align:center;padding:7px 10px;background:#0b1218}.pulse .arena{animation:impact .45s ease}.duel-result{text-align:center;padding:25px}.duel-result h2{font-size:38px;margin:20px 0}.mode-intro{padding:18px;background:#bc995512;border:1px solid #bc995544;border-left:2px solid var(--gold);max-width:760px;color:#bdc4c3;font-size:12px;line-height:1.9}.versus{display:flex;align-items:center;justify-content:space-between;gap:25px;padding:20px;border-top:1px solid var(--line);margin-top:20px}.versus strong{font:24px Georgia,serif;color:var(--gold)}
/* Dialogs and responsive views */
dialog{color:var(--text);background:#101a23;border:1px solid #a88f5a;border-radius:5px;padding:24px;max-width:min(900px,94vw);width:700px;max-height:90dvh;box-shadow:0 30px 100px #000b}dialog::backdrop{background:#02080dd9;backdrop-filter:blur(5px)}.dialog-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;gap:15px}.dialog-top h2{font-size:23px}.dialog-card{display:grid;grid-template-columns:minmax(200px,1fr) minmax(220px,1fr);gap:25px}.dialog-card>img{width:100%;max-height:70vh;object-fit:contain}.dialog-card h2{font-size:25px;margin:10px 0}.dialog-text{font-size:13px;line-height:1.9;white-space:pre-wrap;max-height:49vh;overflow:auto;color:#c5ced0;margin:14px 0}.note{padding:12px 14px;background:#d0b6760b;border-left:2px solid var(--gold);font-size:12px;color:#acb9be;margin:16px 0}.dialog-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.modal-body p{margin:12px 0;color:#b9c4c9;font-size:14px}.modal-body label{display:block;color:var(--muted);font-size:12px;margin-bottom:7px}.modal-body input{width:100%}.modal-body ul{padding-left:20px;color:#aebdc4;line-height:2}.modal-body a{color:var(--gold)}#toast{position:fixed;bottom:26px;left:50%;transform:translate(-50%,20px);z-index:100;background:#1d2b34;border:1px solid var(--gold);border-radius:4px;padding:12px 22px;color:#f1ead6;box-shadow:0 10px 40px #0007;pointer-events:none;opacity:0;transition:opacity .18s,transform .18s;max-width:90vw;text-align:center;font-size:13px}#toast.show{opacity:1;transform:translate(-50%,0)}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}::-webkit-scrollbar{width:5px;height:5px}::-webkit-scrollbar-thumb{background:#70858b60;border-radius:5px}@keyframes reveal{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes impact{20%{filter:brightness(1.7)}100%{filter:brightness(1)}}
@media(min-width:1650px){.library-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.battle-layout{grid-template-columns:260px 1fr 240px}.board-row{padding-block:20px}.zone-card{width:100px}.zone-card.master{width:120px}}
@media(max-width:1150px){.journey{gap:12px}.journey span{font-size:10px}.topbar{padding-inline:20px}.brand strong{font-size:17px}.content{padding:24px 20px}.builder-layout{grid-template-columns:1.3fr .8fr}.inspector{display:none}.library-grid{grid-template-columns:repeat(5,minmax(0,1fr));max-height:calc(100dvh - 330px)}.battle-layout{grid-template-columns:170px minmax(540px,1fr)}.battle-sidebar.right{display:none}.battle-sidebar{padding:14px 12px}.arena{padding-inline:16px}.story-copy{max-width:650px}.guide-layout{grid-template-columns:280px 1fr;gap:22px}.guide-stage{padding:22px}.faction-info{left:24px;right:24px}.board-row{gap:9px;padding-inline:0}.stats{gap:10px}}
@media(max-width:800px){.journey{display:none}.topbar{height:62px}.story{min-height:calc(100dvh - 62px);align-items:end}.story-art{inset:0;width:100%;height:100%;object-position:55% 15%;opacity:.65}.story::before{background:linear-gradient(0deg,#090f14 2%,#090f14dd 32%,#090f1450 75%)}.story-copy{padding:170px 7vw 155px;max-width:600px}.story-copy h1{font-size:44px}.story-copy p{font-size:14px}.story-copy .row{margin-top:24px}.story-chapters{left:7vw;bottom:25px}.chapter-tabs{gap:18px}.chapter-tab{min-width:65px}.chapter-tab span{font-size:10px}.story-aside{display:none}.story-number{font-size:70px}.faction-info h2{font-size:28px}.faction-info h2 span{display:block;margin:5px 0 0;font-size:12px}.faction-info p{font-size:12px}.faction-info{bottom:20px;left:18px;right:18px}.faction-card{height:440px}.faction-grid{gap:12px}.faction-seal{left:15px;top:15px;font-size:16px;padding:6px 10px}.select-tick{right:15px;top:17px}.guide-layout{grid-template-columns:1fr}.guide-menu{flex-direction:row;gap:6px}.guide-menu button{flex:1;padding:12px 8px;font-size:11px;text-align:center}.guide-menu button b{display:block;margin:0 0 3px}.guide-menu small{display:none}.guide-stage{min-height:400px}.guide-display{height:200px}.guide-display img.card{height:185px}.page-head h2{font-size:28px}.builder-head .row{flex-wrap:wrap}.builder-head{align-items:start}.builder-layout{grid-template-columns:minmax(280px,1fr) 270px;gap:12px}.library-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 9px}.builder .content{padding:20px 14px}.battle-layout{display:block}.battle-sidebar{display:none}.board-row{padding:8px 0;gap:8px}.zone-card{width:65px}.zone-card.master{width:80px}.zone-piles .zone-card{width:43px}.arena{padding:12px 18px 0}.battle-top{padding-inline:16px}.duelist-portrait{width:38px;height:38px}.duelist h3{font-size:15px}.stat{font-size:18px}.stat img{width:17px}.hp b{font-size:25px}.hand{min-height:120px}.hand-card{width:77px;flex-basis:77px}.phase-rail{gap:17px}.footer{font-size:9px}.select-footer p{font-size:11px}.builder-head input{width:180px}.builder-head h2{font-size:22px}}
@media(max-width:590px){.brand strong{font-size:17px}.brand small{font-size:8px}.sigil{width:36px;height:36px}.topbar{padding-inline:18px}.account{font-size:10px;padding:8px}.content{padding:23px 16px}.page-head{align-items:start;margin-bottom:18px}.page-head p{font-size:12px}.page-head h2{font-size:27px}.faction-card{height:390px}.faction-grid{gap:10px}.faction-info{left:13px;right:13px;bottom:14px}.faction-info h2{font-size:27px}.faction-info p{font-size:11px}.faction-info .tag{font-size:9px;padding:2px 5px;margin:3px 2px 0 0}.faction-info .eyebrow{font-size:8px;letter-spacing:.12em}.faction-card>img{object-position:52% 24%}.select-footer{align-items:start;flex-direction:column}.select-footer button.primary{width:100%}.select-footer>.row{width:100%;justify-content:space-between}.story-copy{padding-top:180px}.story-copy h1{font-size:38px}.story-copy p{font-size:13px;max-width:350px}.story-copy .row{gap:10px}.story-copy button{min-width:0;padding:12px 16px}.story-chapters{left:7vw;right:7vw}.chapter-tabs{width:100%;gap:15px;justify-content:space-between}.chapter-tab{min-width:0;flex:1}.chapter-tab span{font-size:10px}.guide-display{gap:15px}.guide-stage{padding:24px 15px}.guide-stage h2{font-size:23px}.guide-stage p{font-size:12px}.guide-menu button{font-size:10px;padding:11px 5px}.guide-display img.card{height:170px}.guide-stage .ring{width:130px;height:130px}.big-count{font-size:55px}.builder-head{display:grid;grid-template-columns:1fr}.builder-head .builder-buttons{display:flex;flex-wrap:nowrap;gap:6px}.builder-buttons button{font-size:11px;padding:7px 11px}.builder-layout{display:block}.mobile-tabs{display:flex;gap:8px;margin-bottom:12px}.mobile-tabs button{flex:1;font-size:12px}.mobile-tabs button.active{color:var(--gold);border-color:var(--gold)}.builder-layout[data-tab="library"] .deck-panel{display:none}.builder-layout[data-tab="deck"] .library-panel{display:none}.library-grid{grid-template-columns:repeat(4,minmax(0,1fr));max-height:none;min-height:200px;padding:0 10px 18px;gap:12px 8px}.library-tools{padding:12px 10px}.deck-list{max-height:48vh}.inspector{display:none}.deck-row img{width:34px;height:46px}.deck-row .deck-card-name{font-size:13px}.deck-row button.count{width:30px;height:30px}.builder-head input{width:240px}.dialog-card{grid-template-columns:1fr;gap:15px}.dialog-card>img{max-height:47vh;max-width:270px;margin:auto}.dialog-text{max-height:30vh}.dialog-card h2{font-size:23px}dialog{padding:18px;max-width:94vw}.dialog-top h2{font-size:22px}.saved-card{gap:10px;flex-wrap:wrap}.mode-intro{font-size:11px}.versus{padding:15px 0;gap:10px;font-size:12px}.versus strong{font-size:19px}.battle-top{font-size:10px;gap:8px}.battle-top .row{gap:5px}.battle-top .screen-chip{display:none}.battle-top .ghost{font-size:10px;padding:4px}.battle-top .tag{font-size:9px}.arena{padding:10px 9px 0}.duelist .row{gap:7px}.duelist-portrait{width:31px;height:31px}.duelist h3{font-size:13px}.duelist small{font-size:8px}.stats{gap:7px}.stat{font-size:16px;gap:3px}.stat img{width:14px;height:14px}.stat small{display:none}.hp b{font-size:24px}.hp{gap:4px}.hp small{font-size:8px}.board-row{grid-template-columns:.8fr 1fr 1.2fr 1fr .9fr;gap:5px}.zone-card{width:48px}.zone-card.master{width:65px}.zone-piles{gap:3px}.zone-piles .zone-card{width:30px}.zone-count{font-size:13px;padding:0 3px;min-width:19px}.zone>small{font-size:8px;letter-spacing:0}.small-temple{gap:4px;font-size:10px}.small-temple img{width:12px}.opponent-hand img{width:11px;height:16px}.opponent-hand{gap:2px}.phase-rail{font-size:9px;gap:12px;padding:6px 0}.phase-rail .phase-no{font-size:11px;margin-right:0}.player-actions{align-items:center;gap:6px;flex-wrap:wrap}.player-actions button{font-size:10px;padding:7px 8px}.player-actions .row{gap:5px}.hand{padding:15px 2px 0;min-height:112px;justify-content:flex-start}.hand-card{width:65px;flex-basis:65px;margin-left:-4px}.battle-notice{font-size:9px}.resources{min-height:25px}.resources button{width:17px;margin:0 4px}.board-row .zone{min-width:0}.footer{align-items:start}.footer span:last-child{max-width:130px;text-align:right}}
@media(min-width:700px) and (max-height:850px){.battle-page .topbar{height:50px}.battle-top{padding-block:7px}.arena{padding-top:9px}.battle-sidebar{max-height:calc(100dvh - 92px);overflow:auto}.duelist-portrait{width:30px;height:30px}.duelist h3{font-size:14px}.duelist small{font-size:8px}.stat{font-size:18px}.stat small{font-size:8px}.hp b{font-size:26px}.board-row{padding-block:4px}.zone-card{width:54px}.zone-card.master{width:62px}.zone-piles .zone-card{width:43px}.zone>small{font-size:8px;margin-top:2px}.small-temple{margin-top:2px;font-size:10px}.small-temple img{width:12px}.resources{min-height:19px;font-size:9px}.resources button{width:17px}.phase-rail{padding:5px;margin:3px 0;font-size:9px}.phase-rail .phase-no{font-size:11px}.opponent-hand img{width:11px;height:16px}.opponent-hand{gap:3px}.arena>.row.between{margin-top:3px!important}.player-actions{padding-top:5px;margin-top:3px}.player-actions button{padding:5px 10px;font-size:10px}.hand{min-height:112px;padding-top:15px}.hand-card{width:62px;flex-basis:62px}.battle-notice{padding:4px 7px;font-size:9px}.battle-layout{min-height:calc(100dvh - 92px)}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.priority-controls .response-ready{border:2px solid #f7dfa1;box-shadow:0 0 16px #e6c67966}.response-ready small{display:block;color:inherit;font-size:11px;font-weight:400}
