/* Cinder & Thorn: the Astral Tablet edition. Original CSS, no network assets. */
:root{color-scheme:dark;--paper:#10141c;--ink:#ece2c7;--muted:#a8adab;--line:#c6a46a3d;--rust:#deae66;--gold:#d9b371;--green:#31535e;--lapis:#1b365c;--clay:#c4a479;--serif:Georgia,'Times New Roman',serif;--sans:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
html{background:#090d15;scrollbar-color:#7f7055 #121823}
body{background:radial-gradient(ellipse at 84% 10%,#20324b88,transparent 45%),radial-gradient(ellipse at 12% 66%,#58432b22,transparent 45%),#0e121a;color:var(--ink);font:15px/1.55 var(--sans);-webkit-font-smoothing:antialiased}
body:before{content:'';position:fixed;inset:0;pointer-events:none;z-index:-1;background-image:radial-gradient(#d8bd7126 .7px,transparent .9px);background-size:42px 42px;opacity:.42}
button,input,select,textarea{-webkit-tap-highlight-color:transparent}
button{transition:background .16s,border-color .16s,box-shadow .16s,color .16s,transform .16s}
button:disabled{opacity:.52}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #e6c47e;outline-offset:4px}
a{color:#e2bd7c;text-underline-offset:4px}
::selection{background:#b18b4870;color:#fff4d9}
h1,h2,h3{color:#f0e6cd;text-wrap:balance}
h1{font-size:clamp(48px,5.2vw,78px);letter-spacing:-2.4px;line-height:1.08}
h2{font-size:36px;letter-spacing:-.8px}
h3{font-size:25px}
.eyebrow{color:#c6ab7e;font-size:10px;font-weight:700;letter-spacing:2.5px}
.subtle{color:#afb5b9;font-size:12px}
.app-shell{position:relative;min-height:100vh;overflow:hidden}
.topbar{height:86px;padding:0 max(32px,calc((100vw - 1280px)/2));gap:48px;border-bottom:1px solid #b99b623e;background:linear-gradient(#18212cdd,#101722dd);box-shadow:0 1px 0 #03060b,0 8px 40px #0003}
.brand{font:23px/1.15 var(--serif);letter-spacing:.1px;color:#e8d6ac;gap:11px;text-shadow:0 2px 7px #000a}
.brand-mark{transform:none;border:0;background:none;display:grid;place-items:center;width:48px;height:48px;font-size:24px;flex:0 0 48px}
.brand-mark span{transform:none}
.brand-mark svg{width:100%;height:100%;overflow:visible;filter:drop-shadow(0 0 8px #d6aa5833)}
nav{gap:29px}
nav button{font-size:12px;color:#aeb7c0;border-bottom:2px solid transparent;position:relative;white-space:nowrap;padding:0 1px}
nav button:hover{color:#f0dab1}
nav button.active{color:#efcf8e;border-color:#d4b071}
nav button.active:after{content:'';position:absolute;left:50%;bottom:-4px;width:6px;height:6px;background:#d4b071;transform:translateX(-50%) rotate(45deg);box-shadow:0 0 12px #e4b86d77}
.version{font-size:9px;letter-spacing:1.8px;color:#929eaa}
main{max-width:1360px;padding:34px 4% 46px;margin:auto}
.hero{position:relative;isolation:isolate;grid-template-columns:1fr 1fr;gap:20px;min-height:407px;margin:0 -12px;padding:12px 20px 22px}
.hero:before{content:'';position:absolute;inset:6px -80px -10px;z-index:-2;background:radial-gradient(ellipse at 77% 50%,#25445a54,transparent 56%);pointer-events:none}
.hero-scene{position:absolute;inset:-34px -90px -10px 18%;z-index:-1;opacity:.25;overflow:hidden;pointer-events:none;mask-image:linear-gradient(to right,transparent,#000 40%,#000 83%,transparent)}
.hero-scene svg{width:100%;height:100%;object-fit:cover;min-height:450px;filter:saturate(.8)}
.hero-copy{padding:15px 0 0;z-index:2}
.hero-copy .eyebrow{margin-bottom:22px;color:#d5ba82;font-size:9px;letter-spacing:2.6px}
.dot{background:#dfba70;box-shadow:0 0 11px #e8c46b99;width:5px;height:5px;border-radius:0;transform:rotate(45deg)}
.hero-copy h1{margin-bottom:20px;text-shadow:0 3px 18px #020308cc}
.hero-copy h1 em{color:#d5ae68;font-style:italic;font-weight:400}
.hero-copy>p{color:#b9c1c4;font-size:14px;line-height:1.8;max-width:450px}
.hero-actions{margin:25px 0 17px;gap:13px}
.primary,.secondary{padding:13px 23px;min-height:48px;font-size:12px;font-weight:700;letter-spacing:.5px;border-radius:4px;gap:23px}
.primary{border:1px solid #e8ca87;background:linear-gradient(180deg,#e0bf7d,#bb9454);color:#1a1c21;box-shadow:inset 0 1px #fff2b7,0 4px 0 #604723,0 6px 18px #0006;text-shadow:0 1px #f9dfa255}
.primary:hover{background:linear-gradient(180deg,#f2d59b,#cca661);border-color:#f6dea9;box-shadow:inset 0 1px #fff2c0,0 4px 0 #604723,0 6px 26px #cda75e38;transform:translateY(-1px)}
.primary:active{transform:translateY(2px);box-shadow:inset 0 1px #fff2b7,0 1px 0 #604723}
.secondary{border:1px solid #b4a27d7a;background:linear-gradient(#24314199,#141e2b);color:#e9dbba;box-shadow:inset 0 1px #fbebc410,0 3px 8px #0003}
.secondary:hover{background:#2d3c4c;border-color:#c6ad7a;color:#fff0cd}
.rust{background:linear-gradient(#d6ad6c,#a17b44);border-color:#d5b47b}
.hero-note{font-size:10px!important;color:#a4adb5!important;max-width:none!important}
.hero-note a{color:#c7b085}
.hero-art{height:375px;position:relative;background:radial-gradient(ellipse,#b4914138,transparent 66%);filter:drop-shadow(0 12px 25px #0007)}
.hero-art:before{width:326px;height:326px;border:1px solid #c9a75d5c;background:repeating-conic-gradient(from 0deg,transparent 0deg 29deg,#e1bd6440 29.2deg 29.5deg,transparent 29.7deg 30deg);box-shadow:0 0 0 17px #19253588,0 0 0 18px #bea56b26,inset 0 0 40px #b697431a;transform:rotate(-11deg)}
.hero-art:after{content:'✦  THE ASTRAL TABLETS  ✦';bottom:0;color:#c9af78;font-size:8px;letter-spacing:3.8px}
.show-card{width:171px;box-shadow:0 20px 30px #0007;transition:transform .3s,filter .3s;transform-origin:50% 80%}
.show-card:nth-child(1){transform:translate(-119px,17px) rotate(-15deg);filter:brightness(.85)}
.show-card:nth-child(2){transform:translate(119px,17px) rotate(15deg);filter:brightness(.85)}
.show-card:nth-child(3){transform:translate(0,-10px);z-index:2}
.show-card:hover{transform:translate(0,-21px) rotate(0);filter:brightness(1.08);z-index:4}
.card{--card-edge:#ae874c;--card-tint:#d9c49e;border:2px solid var(--card-edge);padding:7px;border-radius:10px 10px 8px 8px;color:#27241e;background:radial-gradient(ellipse at 40% 20%,#f4e4bc66,transparent 60%),linear-gradient(130deg,#ead8b0,#c1a373 60%,#dfc596);box-shadow:inset 0 0 0 2px #2e251b,inset 0 0 0 3px #f4dca276,0 5px 14px #0008;isolation:isolate;overflow:visible}
.card:before{content:'';position:absolute;inset:5px;border:1px solid #5f4b2b88;border-radius:5px;pointer-events:none;z-index:-1}
.card.thorn{--card-edge:#6a928e;--card-tint:#c0d0b1;background:radial-gradient(ellipse at 40% 20%,#f3edc088,transparent 62%),linear-gradient(130deg,#e2d7b2,#b2bda3 65%,#d7cb9e);border-color:#6f8d86}
.card.neutral{--card-edge:#af9d79}
.card.spell .card-art{border-radius:45% 45% 5px 5px}
.card.trap{--card-edge:#9187b0;border-color:#9187b0;width:auto;height:auto;display:flex;place-items:normal;min-height:0;border-radius:10px 10px 8px 8px;background:radial-gradient(ellipse at 40% 20%,#f4e4bc66,transparent 60%),linear-gradient(130deg,#ded0af,#b6a18a 60%,#d5bf9b);color:#27241e;font-size:inherit}
.card .card-art{border:2px solid #463722;box-shadow:0 1px 0 #f1d898,inset 0 0 12px #0008;aspect-ratio:1.32;border-radius:6px 6px 2px 2px;background:#1a2c45;overflow:hidden}
.card-art svg,.card-art img{display:block;width:100%;height:100%;object-fit:cover}
.card .cost{width:35px;height:35px;left:-12px;top:6px;color:#fff4c8;font:700 20px/1 var(--serif);background:radial-gradient(circle at 35% 25%,#5987b5,#244a79 44%,#152c4b 83%);border:2px solid #d4b170;border-radius:50% 50% 45% 45%;text-shadow:0 2px 2px #000a;box-shadow:0 2px 0 #543e22,0 3px 6px #0008,inset 0 0 0 2px #19314c}
.card-name{font:700 15px/1.18 var(--serif);padding:8px 3px 4px;min-height:44px;color:#2a271f;text-shadow:0 1px #f4e4ba88}
.card-type{font-size:7px;letter-spacing:1.1px;color:#4f4d40;font-weight:700;margin-bottom:5px;padding:0 2px}
.card-text{font-size:10px;line-height:1.45;min-height:55px;padding:3px 5px 8px;color:#302c24}
.card-keywords{display:flex;gap:3px;justify-content:center;flex-wrap:wrap;margin:0 0 4px}
.card-keywords span{font-size:8px;line-height:1.5;padding:1px 4px;background:#494d4420;border:1px solid #59543844;border-radius:3px;color:#383a2d}
.card-stats{padding:0;min-height:26px;align-items:center;font:700 17px/1 var(--serif)}
.card-stats span:first-child,.card-stats span:last-child{min-width:28px;min-height:28px;padding:4px 5px;display:grid;place-items:center;border-radius:50%;text-shadow:0 1px #0008;box-shadow:inset 0 0 0 1px #ffffff38,0 2px 3px #0004}
.card-stats span:first-child{color:#fff1ba;background:linear-gradient(135deg,#c39742,#7e5b24);border:1px solid #83652e}
.card-stats span:last-child{color:#ffe3d5;background:linear-gradient(135deg,#bb6250,#74382d);border:1px solid #784032;border-radius:40% 40% 50% 50%}
.card.spell .card-stats,.card.trap .card-stats{justify-content:center}
.card.spell .card-stats span,.card.trap .card-stats span{background:none;box-shadow:none;border:0;color:#5f4c2e;min-height:19px;font-size:14px}
.card-trap-icon{font-size:18px;color:#625375}
.section-title{margin:23px 0 17px;gap:20px;position:relative}
.section-title h2{font-size:27px;white-space:nowrap}
.section-title:after{content:'';height:1px;background:linear-gradient(90deg,#c6a46a50,transparent);flex:1;order:1}
.section-title>.eyebrow{order:2;font-size:8px;color:#a9a488;white-space:nowrap}
.deck-grid{gap:20px}
.deck-choice{min-height:174px;border:1px solid #a58e5d49;border-radius:7px;gap:20px;padding:20px 22px;text-align:left;background:linear-gradient(115deg,#28374999,#18202dbb);box-shadow:inset 0 1px #ffe5a90a,0 9px 24px #0003;overflow:hidden;isolation:isolate}
.deck-choice:before{content:'';position:absolute;inset:5px;border:1px solid #c6a46a16;border-radius:3px;pointer-events:none;z-index:-1}
.deck-choice:hover{border-color:#c9aa69;background:linear-gradient(115deg,#344456,#1c2937);transform:translateY(-2px)}
.deck-choice.chosen{border-color:#d7b36f;background:linear-gradient(115deg,#35465b99,#262c3299);box-shadow:inset 0 0 25px #d0a95d0c,0 0 0 1px #b08b4655,0 9px 26px #0004}
.deck-choice.thorn{background:linear-gradient(115deg,#24393bcc,#19262bcc)}
.deck-choice.thorn.chosen{background:linear-gradient(115deg,#344b49,#1c2a32)}
.deck-choice.chosen:after{content:none}
.deck-selection-check{position:absolute;top:13px;right:14px;width:21px;height:21px;display:grid;place-items:center;background:#c8a660;border:1px solid #efcd84;color:#17222a;border-radius:50%;font-size:12px}
.deck-choice .eyebrow{font-size:8px;color:#c5aa7b;letter-spacing:1.7px;padding-right:16px}
.deck-choice h3{font-size:27px;color:#f0dfbb;margin:6px 0}
.deck-choice p{font-size:11px;line-height:1.6;color:#b7bec2;margin-bottom:12px;max-width:310px}
.deck-illustration{width:114px;min-width:114px;position:relative}
.deck-illustration svg{width:100%;aspect-ratio:1;object-fit:cover;border-radius:50% 50% 7px 7px;border:1px solid #b39a5e8a;box-shadow:0 0 0 4px #0e192699,0 0 0 5px #b39a5e25}
.deck-meta{color:#d0bd94;font-size:8px;letter-spacing:.9px;gap:15px}
.mode-row{padding:19px 0 7px;gap:16px}
.mode-row strong{color:#e1d0a8;font-weight:600}
.mode-row select{background:#1b2635;border:1px solid #ac95634d;border-radius:4px;padding:8px 11px;color:#e2d6bc;min-height:36px;font-size:11px}
.bottom-strip{margin-top:18px;padding-top:18px;border-color:#b59b5d33;color:#8e9ba4;font-size:10px}
.link{color:#d5b783;font-size:11px}
.link:hover{color:#f5d69b}
.intro-bar{margin:4px 0 29px;align-items:center}
.intro-bar h1{font-size:49px;color:#eee0c0;line-height:1.14;margin:11px 0 14px}
.intro-bar p{font-size:13px;color:#aab6be;line-height:1.7}
.panel{background:linear-gradient(140deg,#202c3b,#171f2c);border:1px solid #a68e5d4d;border-radius:6px;padding:26px;box-shadow:inset 0 1px #fff2c50b,0 6px 25px #0003}
.panel h3{color:#ead7b0;font-size:23px}
.panel p,.panel li{color:#bdc4c8;line-height:1.8}
.panel strong,.panel b{color:#e6d6b8}
.workshop-grid{grid-template-columns:minmax(0,1fr) 280px;gap:38px}
.field{gap:8px}
.field label,.field>span{font-size:10px;letter-spacing:1.2px;color:#c4b58f}
.field input,.field select,.field textarea,.search,.filters input,.filters select{background:#0d1623;color:#e9e0cb;border:1px solid #9d927751;border-radius:4px;padding:11px 12px;font-size:13px;box-shadow:inset 0 2px 5px #0002}
.field input:hover,.field select:hover,.filters input:hover,.filters select:hover{border-color:#c2a56c85}
.field input:focus,.field select:focus,.field textarea:focus,.filters input:focus{border-color:#d6b97b}
.field small{font-size:10px;color:#95a2ac;line-height:1.6}
input::placeholder,textarea::placeholder{color:#7e8a98}
.field input[type=file]{font-size:11px;padding:10px}
input::file-selector-button{background:#283a4d;color:#d8c9a9;border:1px solid #aa95615c;border-radius:3px;padding:7px 9px;margin-right:8px}
.check-chip{background:#152131;border:1px solid #81827559;color:#bac4ca;border-radius:3px;font-size:11px;padding:7px 10px}
.check-chip:has(input:checked){background:#32464c;border-color:#c3a96a;color:#f4e5bf}
.check-chip input{accent-color:#c9ab69;width:13px;height:13px}
.workshop-preview{top:25px}
.workshop-preview .card{width:244px;margin:24px auto;transform:rotate(1deg);box-shadow:0 14px 36px #0009}
.workshop-preview .card-name{font-size:21px;min-height:57px}
.workshop-preview .card-text{font-size:12px;min-height:84px;padding:5px 9px 12px}
.workshop-preview .card-type{font-size:9px;letter-spacing:1px}
.workshop-preview .card-stats{font-size:21px}
.workshop-preview .card-stats span{min-width:35px;min-height:35px}
.workshop-preview>p{font-size:11px;line-height:1.8;color:#a3aeb7}
.error{color:#f0a397;font-size:12px}
.library-grid{grid-template-columns:repeat(auto-fill,minmax(171px,1fr));gap:26px 22px;padding:5px 4px 20px}
.library-item .card{min-height:286px;height:100%}
.library-item:hover{transform:translateY(-6px);filter:brightness(1.06)}
.library-item:focus-visible{border-radius:8px}
.filters{gap:10px;margin-bottom:23px}
.filters input{min-width:200px;padding:10px 12px}
.filters select{font-size:12px;padding:10px}
.pill{border:1px solid #a18f655c;border-radius:4px;color:#bac3c7;padding:9px 15px;background:#172231;font-size:11px;white-space:nowrap}
.pill:hover{border-color:#ccb276;background:#263545}
.pill.active{color:#efdbaf;background:linear-gradient(#3b4956,#2d3943);border-color:#d3b273;box-shadow:inset 0 1px #f6e2ae14}
.catalog-tools{gap:16px}
.small-btn{border-color:#9a8c6955;color:#bdc5c7;background:#1b2735;border-radius:3px;font-size:10px;padding:8px 11px}
.small-btn:hover{background:#304153;border-color:#c5a76d;color:#f0dbb3}
.count-badge{background:#42524b;color:#e1d4ad;border:1px solid #a89b6e44;font-size:9px}
.curve-col{color:#a9b2b8}
.curve-col i{background:linear-gradient(#d5b87c,#84724d);border-top:1px solid #f1d797;border-radius:2px 2px 0 0}
.modal-backdrop{background:#050910db;backdrop-filter:blur(7px);padding:24px;z-index:100}
.modal{background:radial-gradient(ellipse at 50% 0,#2e4053aa,transparent 70%),linear-gradient(135deg,#1c2939,#141d2b);border:1px solid #d6b5728f;border-radius:9px;padding:33px;max-width:800px;box-shadow:0 0 0 5px #0b101acc,0 0 0 6px #a68b4e44,0 25px 100px #000a;color:#e8ddc4}
.modal:before{content:'✦';display:block;color:#d2b67b;font-size:14px;position:absolute;top:10px;left:50%;transform:translateX(-50%)}
.modal.narrow{max-width:480px}
.modal h2{font-size:33px;color:#ead9b3;margin-bottom:12px;padding-right:12px}
.modal p{color:#b6c0c7;font-size:13px;line-height:1.8}
.close{width:29px;height:29px;top:12px;right:12px;display:grid;place-items:center;border-radius:50%;color:#c9b98f;border:1px solid #b09c6944;background:#0c172688;line-height:1;font-size:20px}
.close:hover{background:#3b4754;color:#f7e2b7}
.modal .card{width:242px;margin:20px auto}
.rules-cols{gap:20px}
.rules-cols p,.rules-cols li{font-size:12px}
.glossary div{border-color:#bc9f6033;color:#bac3c8;font-size:12px;line-height:1.75;padding-top:12px}
.glossary b{color:#e4d2ac}
.research-table{font-size:12px;color:#bbc4c9;line-height:1.7}
.research-table td,.research-table th{border-color:#b79c6133;padding:13px}
.research-table th{color:#e0c999;background:#a58c4110}
.sources li{font-size:12px;color:#aab6bf}
.deck-list button{border-color:#b59b6140;color:#d4d5ca;padding:12px;font-size:12px}
.deck-list button:hover{background:#33424d}
.empty{color:#9faab5}
#toast{border:1px solid #c3a86d80;border-radius:5px;background:#19283af2;color:#f3e3bf;box-shadow:0 8px 32px #0008;padding:13px 22px;font-size:12px;z-index:200}
/* The temple table */
body.in-game{background:#090f18;color:#e9dfc6}
.battle-shell{min-height:100vh;background:radial-gradient(ellipse at 50% 40%,#2b3c5055 0,transparent 62%),repeating-linear-gradient(90deg,#171b2200 0,#171b2200 200px,#8a72360b 201px,#171b2200 202px),#0c121d;overflow:hidden}
.battle-top{min-height:58px;padding:10px 24px;border-bottom:1px solid #ad925a49;background:linear-gradient(#1d2837,#101925);box-shadow:0 2px 12px #0004;position:relative;z-index:3}
.battle-top .brand{font-size:20px;color:#e4cea2;gap:8px}
.battle-top .brand-mark{width:35px;height:35px;flex-basis:35px}
.battle-top button{font-size:11px;color:#bcc6ca;padding:5px}
.battle-top button:hover{color:#f2d59a}
.battle-top>.eyebrow{font-size:9px;letter-spacing:2px;color:#bda676!important}
.battle-layout{max-width:1550px;grid-template-columns:minmax(0,1fr) 236px;padding:15px 24px 15px;gap:23px}
.field-wrap{padding:0 12px 4px;position:relative;isolation:isolate;border:1px solid #b99e5e42;border-radius:18px;background:radial-gradient(ellipse at 50% 43%,#304654a6,transparent 73%),linear-gradient(135deg,#202a35dd,#162230ee 60%,#202831);box-shadow:inset 0 0 0 3px #0d1521,inset 0 0 0 4px #a08a4c26,inset 0 0 70px #050b12cc,0 7px 35px #0006}
.field-wrap:before,.field-wrap:after{content:'✦';position:absolute;left:50%;color:#c9ac6455;font-size:15px;transform:translateX(-50%);pointer-events:none;z-index:-1}
.field-wrap:before{top:6px}.field-wrap:after{bottom:8px}
.enemy-hand{height:25px;min-height:25px;gap:4px;overflow:hidden;margin:0;align-items:flex-end}
.card-back{height:33px;width:25px;border:1px solid #c0a26088;border-radius:4px;background:radial-gradient(circle at 50% 50%,#cbb37788 0 8%,transparent 10% 24%,#bca37255 25% 27%,transparent 29%),repeating-conic-gradient(from 45deg,#254367 0deg 45deg,#1b2e49 45deg 90deg);box-shadow:inset 0 0 0 3px #142940,inset 0 0 0 4px #d4b67d40,0 2px 4px #0009;transform:translateY(7px)}
.leader-row{gap:20px;min-height:76px}
.leader{min-width:225px;padding:8px 13px 8px 7px;border:1px solid #baa36980;background:linear-gradient(#293949,#172431);color:#ebdbb8;border-radius:8px;gap:11px;box-shadow:inset 0 1px #ffe9b91a,0 4px 8px #0005;min-height:65px}
.leader .avatar{height:49px;width:49px;flex:0 0 49px;border:2px solid #c5a76d;border-radius:50%;background:radial-gradient(#37516c,#13233a);padding:0;overflow:hidden;box-shadow:0 0 0 3px #101b2a,inset 0 0 12px #02060b;display:grid;place-items:center}
.leader-portrait svg,.leader-portrait img{width:100%;height:100%;object-fit:cover;display:block}
.leader b{font-size:15px;line-height:1.2;color:#f0ddb8;margin-bottom:4px}
.leader small{font-size:8px;letter-spacing:1.7px;color:#a9b8c2}
.leader .health{display:grid;place-items:center;min-height:34px;min-width:31px;color:#ffe3cd;font:700 22px/1 var(--serif);background:linear-gradient(135deg,#a04f42,#5f2c25);border:1px solid #d1926b88;border-radius:40% 40% 50% 50%;margin-left:5px;box-shadow:0 2px 5px #0005;text-shadow:0 1px #000}
.armor{color:#c0d2e5;font-size:11px;font-weight:600}
.energy{max-width:135px;justify-content:center;gap:5px;color:#b5ccdf}
.energy-dot{width:11px;height:11px;background:linear-gradient(135deg,#9dd7ec,#3d7caa);border:1px solid #9fcee7;box-shadow:0 0 6px #72c1ee60,inset 0 0 2px #fff7;border-radius:2px}
.energy-dot.spent{background:#1b3046;border-color:#53687b;box-shadow:inset 0 1px 3px #0005}
.energy-number{font-size:9px;color:#b9cad5;letter-spacing:1px;margin-top:4px}
.deck-counter{font-size:9px;letter-spacing:.8px;color:#95a8b9;line-height:1.6;min-width:32px}
.board-label{color:#acb8bb;font-size:8px;letter-spacing:2px;margin:5px 0 5px;line-height:1.3}
.board{border:1px solid #c1a66732;border-radius:9px;background:radial-gradient(ellipse at 50% 45%,#54736c17,transparent 80%),linear-gradient(#0c16271f,#0b172333);box-shadow:inset 0 3px 15px #0003,inset 0 0 0 2px #0d17252b;min-height:136px;padding:10px 8px;gap:10px}
.board.enemy{margin-top:0}
.board.you{margin-bottom:0;background:radial-gradient(ellipse at 50% 45%,#819a6a14,transparent 85%),linear-gradient(#0c16271f,#0b172333)}
.board:empty:after{content:'◇   AN UNWRITTEN TABLET   ◇';font:9px/1 var(--sans);letter-spacing:3px;color:#a5b6bb55;pointer-events:none}
.board.you:empty:after{content:'◇   SUMMON YOUR FIRST ALLY   ◇'}
.unit{width:110px;max-width:13%;height:119px;padding:4px;background:linear-gradient(135deg,#46535a,#253541 65%,#1d2d3a);border:2px solid #ad9564;border-radius:25px 25px 8px 8px;color:#e5d9b9;box-shadow:inset 0 0 0 1px #0d192b,0 4px 9px #0007;position:relative;overflow:visible;transition:transform .18s,box-shadow .18s,border-color .18s}
.unit .card-art{height:62px;border-radius:20px 20px 3px 3px;overflow:hidden;border:1px solid #0d192b;box-shadow:0 1px #bbaa7d33;background:#1c2e47;flex-shrink:0}
.unit .name{font:600 10px/1.15 var(--serif);color:#e4dbc4;min-height:23px;margin:4px 0 2px;padding:0 1px;text-shadow:0 1px #000;display:grid;place-items:center}
.unit .stats{font:700 15px/1 var(--serif);padding:0;align-items:center}
.unit .stats b{color:#ffe0a0;min-width:22px;height:22px;display:grid;place-items:center;border-radius:50%;background:#74562b;border:1px solid #c8a76c80;text-shadow:0 1px #000}
.unit .stats b:last-child{background:#793e34;color:#ffe2ce;border-color:#cc8b7377;border-radius:40% 40% 50% 50%}
.unit .badges{top:-11px;left:1px;right:1px;letter-spacing:0;display:flex;justify-content:center;gap:2px;font-size:10px;text-shadow:0 1px #000;color:#f0d697;min-height:12px;z-index:2;pointer-events:none}
.unit .badge{border:1px solid #bdac7780;background:#17263bee;border-radius:4px;padding:1px 3px;font:700 8px/1.2 var(--sans);box-shadow:0 2px 4px #0006}
.unit.guard{border:3px solid #c6b485;border-radius:27px 27px 10px 10px;background:linear-gradient(135deg,#64655a,#2d3a40)}
.unit.ward{box-shadow:0 0 0 2px #e2c77780,0 0 15px #d9b86b44,inset 0 0 8px #d7bd6955}
.unit.veiled{opacity:.7;border-style:dashed}
.unit.frozen{filter:saturate(.5) hue-rotate(100deg);box-shadow:0 0 0 2px #a4d6eb66,0 0 13px #8ecde655}
.unit.ready{border-color:#9bd79c;box-shadow:0 0 0 1px #68b98066,0 0 16px #86c77c38,0 5px 9px #0007}
.unit.selected{transform:translateY(-6px);border-color:#f5d17c;box-shadow:0 0 0 2px #d7ad5c,0 0 22px #edc66e66;z-index:4}
.unit:hover{transform:translateY(-4px);z-index:5;filter:brightness(1.1)}
.legal{outline:2px solid #f2ce74!important;outline-offset:4px;cursor:crosshair!important;box-shadow:0 0 0 5px #d0a23e15,0 0 20px #ecc05c44!important}
.insert{min-width:20px;width:25px;height:100px;border:1px dashed #e9cc7d99;border-radius:5px;background:#c6ad5a12;color:#f2d792;font:24px var(--serif);flex-shrink:1;box-shadow:inset 0 0 10px #e6c55c0d}
.insert:hover,.insert:focus-visible{background:#cbb46940;border-style:solid;box-shadow:0 0 16px #d2b86744;transform:scaleX(1.12)}
.board.placing{gap:4px;background:#d0b7680a;outline:1px solid #cbae5733}
.board.placing .unit{max-width:11.2%}
.field-divider{min-height:51px;padding:7px 10px;margin:9px 0;gap:12px;border-top:1px solid #c8ab6944;border-bottom:1px solid #c8ab6944;background:linear-gradient(90deg,#142137aa,#27394b77,#142137aa);border-radius:3px}
.status-text{font:italic 14px/1.3 var(--serif);color:#dfd2b0;text-shadow:0 1px 2px #0008}
.end-turn{min-height:38px;min-width:112px;padding:10px 17px;color:#24221a;border:1px solid #ecd090;background:linear-gradient(#e0c181,#ad8747);border-radius:5px;box-shadow:inset 0 1px #fff2b0,0 3px 0 #634b28,0 5px 10px #0006;font-size:11px;font-weight:750;letter-spacing:.3px}
.end-turn:not(:disabled):hover{background:linear-gradient(#f3d99a,#ccaa67);box-shadow:inset 0 1px #fff2b0,0 3px 0 #634b28,0 0 18px #d4af6133}
.end-turn:disabled{filter:saturate(.2);opacity:.5}
.trap-row{min-height:25px;gap:6px}
.trap-row .trap{border:1px solid #c3b27b99;width:25px;height:25px;color:#e2d2a4;background:radial-gradient(circle,#62507f,#24253f);box-shadow:inset 0 0 0 2px #101c2f,0 2px 5px #0006;font-size:13px}
.trap-row .trap:hover{background:#65547f;box-shadow:0 0 10px #b59ad744}
.trap-count{font-size:8px;letter-spacing:1px;color:#a7a7b1;margin-left:3px}
.power-button{background:linear-gradient(#364b63,#203349);border:1px solid #9eab9866;color:#e4d5b5;border-radius:25px 25px 8px 8px;padding:9px 11px;font-size:11px;max-width:158px;box-shadow:inset 0 1px #e2e2b71a,0 3px 9px #0005;min-height:51px}
.power-button:not(:disabled):hover{border-color:#d4b979;background:linear-gradient(#4b6175,#2e4256)}
.power-button small{font-size:8px;color:#b8c2c5;line-height:1.4;margin-top:3px}
.hand-hint{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:5px 7px;color:#96a9b9;font-size:9px;letter-spacing:.6px}
.hand-hint button{font-size:9px;color:#d8c59c;padding:3px 7px;border:1px solid #a18d5b55;border-radius:3px;background:#17253a}
.playable-count{color:#bfd0a3;font-size:9px}
.hand{align-items:flex-start;justify-content:center;gap:8px;min-height:226px;padding:14px 9px 12px;overflow-x:auto;overflow-y:visible;scrollbar-width:thin;scrollbar-color:#a6925d55 transparent;position:relative;border-top:1px solid #c6ab6522;background:radial-gradient(ellipse at 50% 100%,#b29c5020,transparent 75%);border-radius:0 0 13px 13px}
.hand-card{flex:0 1 135px;width:135px;min-width:86px;max-width:15%;padding:0;position:relative;transform-origin:50% 85%;transition:transform .2s,filter .2s;z-index:1}
.hand-card .card{height:203px;padding:5px;border-width:2px;border-radius:8px}
.hand-card .card-art{aspect-ratio:1.5;border-width:1px;flex-shrink:0}
.hand-card .card-name{font-size:12px;line-height:1.1;min-height:35px;padding:6px 2px 3px}
.hand-card .card-text{font-size:9px;line-height:1.35;padding:2px 2px 5px;min-height:49px}
.hand-card .card-type{font-size:6px;letter-spacing:.65px;line-height:1.4;margin-bottom:3px}
.hand-card .cost{width:27px;height:27px;font-size:16px;left:-9px;top:3px}
.hand-card .card-stats{font-size:14px;min-height:23px}
.hand-card .card-stats span:first-child,.hand-card .card-stats span:last-child{min-width:23px;min-height:23px;padding:3px}
.hand-card .card-keywords{gap:2px;margin-bottom:2px}
.hand-card .card-keywords span{font-size:6px;line-height:1.3;padding:1px 2px}
.hand-card.playable .card{border-color:#add994;box-shadow:0 0 0 1px #8fb677,0 0 13px #b4d98d3b,inset 0 0 0 2px #2e251b,inset 0 0 0 3px #f4dca276,0 5px 10px #0007}
.hand-card.chosen .card{border-color:#f3d08b;box-shadow:0 0 0 2px #d4b772,0 0 20px #d6b26255}
.hand-card:hover:not(:disabled),.hand-card:focus-visible{transform:translateY(-8px);z-index:8;filter:brightness(1.08)}
.hand-card:disabled{opacity:.7;filter:saturate(.8)}
.battle-aside{padding-left:20px;border-left:1px solid #baa26333;gap:16px;font-size:11px;min-width:0}
.battle-aside h3{color:#decba4;font:22px/1.25 var(--serif);margin-top:7px!important}
.battle-aside .eyebrow{color:#a99c7f;font-size:8px;letter-spacing:2px}
.inspect-panel{padding:15px 13px;border:1px solid #ad985b4d;background:linear-gradient(145deg,#213247,#182638);border-radius:5px;color:#b7c4cc;font-size:11px;line-height:1.75;min-height:156px;box-shadow:inset 0 1px #e1c28f0d}
.inspect-panel b{font:20px/1.15 var(--serif);color:#e4d0a5;margin-bottom:10px}
.inspect-panel strong{color:#dfccaa}
.inspect-panel p:last-child{margin-bottom:0}
.battle-help{color:#92a6b7;font-size:10px;line-height:1.85}
.battle-help kbd{border:1px solid #8a987966;border-radius:3px;padding:2px 5px;color:#d3c8a7;background:#1e2b3b}
.log{max-height:260px;line-height:1.7;font-size:10px;color:#94a9b7;margin-top:8px;padding-right:5px;scrollbar-width:thin;scrollbar-color:#8f83564d transparent}
.log p{border-bottom:1px solid #ad9d6422;padding:6px 0;margin:0}
.log p:first-child{color:#d6cfb5}
.target-line{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:20;overflow:visible;filter:drop-shadow(0 0 4px #e2b66080)}
.target-line line,.target-line path[marker-end]{stroke:#efd083;stroke-width:3;fill:none;stroke-dasharray:8 5}
.target-line circle{fill:#f6dda0;stroke:#9b783b;stroke-width:2}
.stat-float{position:absolute;left:50%;top:20%;transform:translateX(-50%);font:700 31px/1 var(--serif);text-shadow:0 2px #000,0 0 7px #000;z-index:25;pointer-events:none;animation:statFloat .85s ease-out forwards}
.stat-float.damage{color:#ffc4a1}.stat-float.heal{color:#a9edb3}
.unit-arrive{animation:unitArrive .35s ease-out}.hit{animation:unitHit .35s ease}.healed{animation:unitHeal .55s ease}
.turn-banner{position:fixed;top:42%;left:50%;transform:translate(-50%,-50%);padding:22px 65px;color:#f8e5bb;text-align:center;pointer-events:none;z-index:90;font:italic 35px/1.15 var(--serif);border-block:1px solid #d7b46f99;background:linear-gradient(90deg,transparent,#102037f5 20%,#182e46f7 50%,#102037f5 80%,transparent);min-width:440px;text-shadow:0 2px 6px #000;box-shadow:0 10px 35px #0006;animation:turnBanner 1.4s ease both}
.turn-banner small{display:block;font:9px var(--sans);text-transform:uppercase;letter-spacing:3px;margin-top:8px;color:#cbb27c}
.game-settings{display:flex;gap:12px;align-items:center;color:#adbbc2;font-size:11px}
.game-settings button{padding:6px 9px;border:1px solid #a58d5944;border-radius:3px;background:#122033}
.game-settings label{display:flex;gap:6px;align-items:center}
.game-settings input{accent-color:#c4a467}
.mulligan-cards{gap:18px;margin:25px 0;align-items:stretch}
.mulligan-cards button{width:171px;padding:0;transition:transform .18s}
.mulligan-cards button:hover{transform:translateY(-4px)}
.mulligan-cards .card{height:290px}
.mulligan-cards .swap .card{outline:2px solid #d59c6a;outline-offset:4px;opacity:.7;filter:saturate(.5)}
.mulligan-cards .swap:after{background:#a95b43;border:1px solid #e8a77e;top:41%;left:3%;right:3%;box-shadow:0 2px 10px #0007;color:#fff0cc;font-size:10px;letter-spacing:2px;padding:10px}
.turn-curtain{padding:35px 10px}
.turn-curtain h2{font-size:43px}
@keyframes unitArrive{from{opacity:0;transform:translateY(-14px) scale(.9);filter:brightness(1.6)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes unitHit{25%{transform:translateX(-5px);filter:brightness(1.6) sepia(.4)}60%{transform:translateX(4px)}}
@keyframes unitHeal{50%{box-shadow:0 0 25px #9add9877;filter:brightness(1.35)}}
@keyframes statFloat{0%{opacity:0;transform:translate(-50%,5px) scale(.8)}20%{opacity:1;transform:translate(-50%,-5px) scale(1.1)}80%{opacity:1}100%{opacity:0;transform:translate(-50%,-38px)}}
@keyframes turnBanner{0%{opacity:0;transform:translate(-50%,-50%) scale(.94)}15%,72%{opacity:1;transform:translate(-50%,-50%) scale(1)}100%{opacity:0;transform:translate(-50%,-50%) scale(1.02)}}
/* Compact tables retain the whole seven-unit row. Hand scroll is intentional on phones. */
@media(min-width:1500px){main{max-width:1410px}.hero{min-height:441px}.hero-art{height:400px}.show-card{width:184px}.show-card:nth-child(1){transform:translate(-133px,17px) rotate(-15deg)}.show-card:nth-child(2){transform:translate(133px,17px) rotate(15deg)}.battle-layout{max-width:1650px;grid-template-columns:minmax(0,1fr) 250px}.board{min-height:145px}.unit{width:121px;height:130px}.unit .card-art{height:70px}.hand-card{width:143px;flex-basis:143px}.hand-card .card{height:218px}.hand{min-height:243px}.hand-card .card-text{font-size:10px}.hand-card .card-name{font-size:13px}}
@media(min-width:1061px) and (max-height:950px){.battle-top{min-height:54px;padding-block:7px}.battle-layout{padding-top:11px;padding-bottom:8px;gap:20px}.field-wrap{padding-bottom:2px}.leader-row{min-height:66px}.leader{min-height:57px;padding-block:5px}.leader .avatar{width:44px;height:44px;flex-basis:44px}.board{min-height:118px;padding-block:8px}.unit{height:104px}.unit .card-art{height:50px}.unit .name{font-size:10px;min-height:23px;margin:3px 0 2px}.unit .stats{font-size:14px}.unit .stats b{height:20px;min-width:20px}.field-divider{margin:7px 0;min-height:47px;padding-block:5px}.hand{min-height:211px;padding-top:12px;padding-bottom:8px}.hand-card .card{height:190px}.hand-card .card-text{min-height:42px;font-size:9px}.hand-card .card-name{min-height:33px;font-size:11px}.hand-card .card-type{font-size:6px;margin-bottom:2px}.hand-card .card-art{aspect-ratio:1.65}.hand-hint{padding-block:3px}.enemy-hand{height:20px;min-height:20px}.board-label{margin:4px 0;font-size:7px}.power-button{min-height:46px;padding-block:7px}}
@media(max-width:1150px){.topbar{padding-inline:30px;gap:30px}.topbar nav{gap:23px}.version{font-size:8px}.hero-art{transform:scale(.88)}.hero{grid-template-columns:1.02fr .98fr;gap:5px}.hero-copy h1{font-size:61px}.deck-choice{padding:18px;gap:17px}.deck-illustration{width:100px;min-width:100px}.deck-choice h3{font-size:25px}.deck-choice p{font-size:11px}.deck-choice .eyebrow{font-size:7px}.battle-layout{grid-template-columns:minmax(0,1fr) 200px;padding-inline:15px;gap:16px}.battle-aside{padding-left:15px}.battle-aside h3{font-size:20px}.leader{min-width:210px}.board{gap:7px}.unit{max-width:12.8%}.workshop-grid{gap:25px;grid-template-columns:minmax(0,1fr) 250px}}
@media(max-width:1050px){.battle-layout{grid-template-columns:1fr;max-width:1020px;padding:10px 14px}.battle-aside{display:none}.field-wrap{padding-inline:12px}.battle-top{min-height:54px;padding:8px 19px}.leader-row{min-height:60px;gap:19px}.leader{min-height:53px;padding-block:5px;min-width:215px}.leader .avatar{height:40px;width:40px;flex-basis:40px}.board{min-height:110px;padding:7px;gap:8px}.unit{height:98px;width:105px;max-width:12.8%}.unit .card-art{height:48px}.unit .name{font-size:10px;min-height:21px;margin:3px 0 1px}.unit .stats{font-size:13px}.unit .stats b{height:19px;min-width:20px}.field-divider{margin:6px 0;min-height:46px;padding-block:5px}.enemy-hand{min-height:19px;height:19px}.board-label{margin:4px 0;font-size:7px}.hand{min-height:194px;padding:12px 8px 8px}.hand-card{flex-basis:130px;max-width:15%;min-width:82px}.hand-card .card{height:180px}.hand-card .card-art{aspect-ratio:1.7}.hand-card .card-name{font-size:11px;min-height:31px}.hand-card .card-text{font-size:8px;min-height:42px;line-height:1.35;padding-bottom:3px}.hand-card .card-stats span:first-child,.hand-card .card-stats span:last-child{min-height:21px;min-width:21px}.hand-hint{padding-block:3px}.energy-dot{height:9px;width:9px}.energy{gap:4px}.power-button{min-height:45px;padding:7px 11px}.workshop-grid{gap:25px}.hero-copy h1{font-size:56px}.topbar{gap:25px}.topbar nav{gap:22px}.brand{font-size:21px}.brand-mark{width:42px;height:42px;flex-basis:42px}.hero-art{transform:scale(.83)}.hero{min-height:385px}.deck-choice{gap:15px}.deck-illustration{width:92px;min-width:92px}.deck-choice h3{font-size:23px}.deck-meta{font-size:7px;gap:10px}.version{display:none}.library-grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:23px 18px}}
@media(max-width:800px){.hero{grid-template-columns:1fr 1fr;min-height:350px}.hero-copy h1{font-size:47px;letter-spacing:-1.7px}.hero-copy>p{font-size:12px}.hero-copy .eyebrow{font-size:7px;letter-spacing:2px;margin-bottom:18px}.hero-art{transform:scale(.69);height:340px;margin-inline:-30px}.hero-actions{gap:9px;flex-wrap:wrap}.hero-actions .primary,.hero-actions .secondary{font-size:11px;padding:11px 17px;min-height:43px}.deck-grid{gap:13px}.deck-choice{padding:16px;gap:12px;min-height:187px}.deck-illustration{width:74px;min-width:74px}.deck-choice h3{font-size:21px}.deck-choice p{font-size:10px}.deck-choice .eyebrow{font-size:6px;letter-spacing:1.3px}.section-title .eyebrow{font-size:7px}.workshop-grid{grid-template-columns:minmax(0,1fr) 220px;gap:22px}.workshop-preview .card{width:206px}.workshop-preview .card-name{font-size:18px}.workshop-preview .card-text{font-size:11px}.panel{padding:21px}.intro-bar h1{font-size:42px}.intro-bar p{font-size:12px}.topbar{padding-inline:24px;gap:22px}.topbar nav{gap:19px}.topbar nav button{font-size:11px}.brand{font-size:20px}}
@media(max-width:720px){body{font-size:14px}.topbar{height:auto;min-height:82px;padding:12px 5% 0;gap:11px;background:#172130}.topbar .brand{font-size:22px}.brand-mark{width:36px;height:36px;flex-basis:36px}.topbar nav{height:39px;gap:24px;order:3;width:100%;justify-content:flex-start;overflow-x:auto;scrollbar-width:none}.topbar nav button{font-size:10px;letter-spacing:.2px;flex-shrink:0}.version{display:block;font-size:7px;color:#8f9ca7;letter-spacing:1px}.hero{grid-template-columns:1fr;gap:0;min-height:0;margin:0 -4px;padding:4px 4px 15px}.hero-copy{padding-top:10px}.hero-copy .eyebrow{font-size:8px;letter-spacing:2px;margin-bottom:17px}.hero-copy h1{font-size:clamp(45px,9vw,61px);letter-spacing:-1.8px;margin-bottom:18px;line-height:1.07}.hero-copy>p{font-size:13px;max-width:440px;line-height:1.7}.hero-copy .hero-note{font-size:9px!important}.hero-actions{margin-top:21px;gap:10px;flex-wrap:nowrap}.hero-actions .primary,.hero-actions .secondary{font-size:11px;padding:12px 17px;gap:15px;min-height:44px}.hero-art{transform:scale(.82);height:319px;margin:0 -15px -10px}.hero-scene{inset:60px -150px -15px -80px;opacity:.28;mask-image:linear-gradient(transparent,#000 35%,#000 80%,transparent)}.hero-art:after{font-size:8px;bottom:-3px}.show-card{width:165px}.section-title{gap:10px;margin:19px 0 15px}.section-title h2{font-size:26px}.section-title .eyebrow{font-size:6px;letter-spacing:1.3px;max-width:135px;white-space:normal;text-align:right}.deck-grid{grid-template-columns:1fr;gap:13px}.deck-choice{min-height:160px;padding:18px;gap:20px}.deck-illustration{width:98px;min-width:98px}.deck-choice h3{font-size:25px}.deck-choice p{font-size:11px;line-height:1.6;margin-bottom:11px}.deck-choice .eyebrow{font-size:7px;letter-spacing:1.5px}.deck-meta{font-size:7px;gap:12px}.deck-selection-check{top:10px;right:10px;width:18px;height:18px;font-size:10px}.mode-row{gap:14px;align-items:flex-start;font-size:10px;padding-top:20px}.mode-row .subtle{font-size:10px}.mode-row label{display:flex;flex-direction:column;gap:4px}.mode-row select{font-size:10px;padding:7px 8px;min-height:33px}.bottom-strip{gap:12px;font-size:9px;margin-top:20px;flex-direction:column}.bottom-strip .link{font-size:10px;align-self:flex-start;padding:0}.intro-bar{display:block;margin-bottom:24px}.intro-bar h1{font-size:42px;letter-spacing:-1.7px;line-height:1.1;margin-top:10px}.intro-bar p{font-size:12px}.intro-bar>button{margin-top:18px}.workshop-grid{grid-template-columns:1fr;gap:22px}.workshop-preview{position:static;order:-1;display:block}.workshop-preview .card{width:199px;margin:16px auto 7px;transform:rotate(0)}.workshop-preview .card-name{font-size:17px;min-height:44px}.workshop-preview .card-text{font-size:10px;min-height:65px}.workshop-preview .card-type{font-size:7px}.workshop-preview .card-stats{font-size:16px}.workshop-preview .card-stats span{min-height:28px;min-width:28px}.workshop-preview>p{display:none}.panel{padding:20px 17px}.panel h3{font-size:21px}.form-grid{gap:16px 12px}.field label,.field>span{font-size:9px}.field input,.field select,.field textarea{font-size:13px;padding:10px 9px}.field small{font-size:9px}.check-chip{font-size:10px;padding:6px 8px}.checks{gap:6px}.actions{gap:9px}.actions .primary,.actions .secondary{font-size:11px;padding:12px 16px}.library-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:23px 18px;padding-inline:2px}.library-item .card{min-height:271px}.card .cost{width:30px;height:30px;left:-10px;font-size:18px}.card-name{font-size:14px;min-height:43px}.card-type{font-size:6px;letter-spacing:.7px}.card-text{font-size:9px;line-height:1.45;min-height:57px;padding-inline:3px}.card-keywords span{font-size:7px}.card-stats{font-size:16px}.catalog-tools{margin-bottom:17px;gap:14px}.catalog-tools>div:last-child{display:flex;gap:5px;flex-wrap:wrap}.small-btn{font-size:9px;padding:7px 9px}.filters{gap:7px;margin-bottom:22px}.filters .pill{font-size:10px;padding:8px 10px}.filters input{min-width:170px;padding:10px;font-size:12px}.filters select{font-size:11px;padding:10px 8px}.filters>.subtle{font-size:10px}.modal-backdrop{padding:14px}.modal{padding:30px 20px 22px;border-radius:7px;max-height:94vh}.modal h2{font-size:28px}.modal p{font-size:12px;line-height:1.7}.modal .card{width:224px}.mulligan-cards{gap:13px;flex-wrap:wrap;margin:23px 0}.mulligan-cards button{width:136px}.mulligan-cards .card{width:100%;height:246px;margin:0}.mulligan-cards .card-name{font-size:13px;min-height:40px}.mulligan-cards .card-text{font-size:9px;min-height:50px}.mulligan-cards .card-type{font-size:6px}.mulligan-cards .card .cost{width:28px;height:28px;left:-8px;font-size:16px}.turn-curtain h2{font-size:38px}.rules-cols,.glossary{grid-template-columns:1fr}.rules-cols p,.rules-cols li{font-size:12px}.research-table{font-size:10px}.research-table td,.research-table th{padding:10px 6px;vertical-align:top}.sources{padding-left:18px}.sources li{font-size:11px}.battle-top{min-height:50px;padding:8px 10px;gap:8px;flex-wrap:wrap}.battle-top .brand{font-size:16px;padding:0;gap:5px}.battle-top .brand-mark{width:28px;height:28px;flex-basis:28px;display:grid}.battle-top>.eyebrow{font-size:7px;letter-spacing:1px;margin-left:auto}.battle-top>div{display:flex;gap:2px;align-items:center}.battle-top button{font-size:9px;padding:4px 5px}.battle-layout{padding:8px 6px;gap:0}.field-wrap{padding:0 6px 4px;border-radius:12px}.leader-row{gap:11px;min-height:66px}.leader{min-width:172px;min-height:51px;padding:5px 8px 5px 5px;gap:7px;border-radius:6px}.leader .avatar{width:37px;height:37px;flex-basis:37px;border-width:1px}.leader b{font-size:12px;max-width:95px;line-height:1.1;margin-bottom:4px}.leader small{font-size:7px;letter-spacing:1px}.leader .health{font-size:19px;min-width:26px;min-height:29px;margin-left:0}.armor{font-size:9px}.energy{max-width:70px;gap:3px}.energy-dot{width:7px;height:7px;border-radius:1px}.energy-number{font-size:7px;letter-spacing:.5px;line-height:1.4;margin-top:3px}.deck-counter{font-size:7px;letter-spacing:.4px;min-width:25px}.board-label{font-size:6px;letter-spacing:1.3px;margin:4px 0}.board{min-height:108px;padding:8px 3px;gap:4px;border-radius:6px}.board:empty:after{font-size:7px;letter-spacing:1.5px}.unit{width:85px;max-width:13.25%;height:91px;padding:2px;border-radius:17px 17px 6px 6px;border-width:1px}.unit .card-art{height:42px;border-radius:14px 14px 2px 2px}.unit .name{font-size:8px;line-height:1.1;min-height:23px;margin:3px 0 1px;padding:0}.unit .stats{font-size:12px}.unit .stats b{min-width:18px;height:18px}.unit .badges{font-size:8px;top:-8px;gap:1px}.unit .badge{font-size:6px;padding:1px 2px}.unit.guard{border-width:2px;border-radius:18px 18px 6px 6px}.field-divider{padding:6px;gap:7px;min-height:48px;margin:6px 0}.status-text{font-size:11px;line-height:1.3}.end-turn{font-size:10px;min-width:81px;min-height:36px;padding:9px 10px}.trap-count{display:none}.trap-row .trap{width:22px;height:22px;font-size:11px}.trap-row{gap:3px;min-height:23px}.power-button{font-size:10px;padding:7px 8px;max-width:100px;min-height:48px;line-height:1.3}.power-button small{font-size:7px;line-height:1.4}.insert{min-width:12px;width:16px;height:78px;font-size:19px;border-radius:4px}.board.placing{gap:2px}.board.placing .unit{max-width:10.9%}.legal{outline-width:2px!important;outline-offset:2px}.hand{justify-content:flex-start;gap:9px;min-height:214px;padding:12px 7px 10px;overflow-x:auto;scroll-snap-type:x proximity;scroll-padding:7px;max-width:100%;border-radius:0 0 9px 9px}.hand-card{flex:0 0 109px;width:109px;min-width:109px;max-width:109px;scroll-snap-align:start}.hand-card .card{height:192px;padding:5px}.hand-card .card-art{aspect-ratio:1.4}.hand-card .card-name{font-size:11px;min-height:35px;line-height:1.1}.hand-card .card-text{font-size:8px;min-height:49px;line-height:1.4;padding:2px 2px 5px}.hand-card .card-type{font-size:6px;letter-spacing:.4px}.hand-card .cost{left:-8px;width:26px;height:26px;font-size:15px}.hand-card .card-stats{font-size:13px}.hand-card .card-stats span:first-child,.hand-card .card-stats span:last-child{min-height:21px;min-width:21px}.hand-hint{padding:5px 3px;font-size:8px;gap:6px;flex-wrap:wrap}.hand-hint button,.playable-count{font-size:8px}.turn-banner{min-width:0;width:95vw;padding:18px 25px;font-size:29px}.turn-banner small{font-size:8px}.game-settings{gap:6px;font-size:10px;flex-wrap:wrap}.stat-float{font-size:26px}}
@media(max-width:390px){.topbar nav{gap:19px}.topbar .brand{font-size:20px}.hero-copy h1{font-size:43px}.hero-art{transform:scale(.72);height:289px;margin:-10px -30px -15px}.hero-actions .primary,.hero-actions .secondary{padding:11px 13px;font-size:10px}.deck-choice{padding:15px;gap:15px}.deck-illustration{width:77px;min-width:77px}.deck-choice h3{font-size:22px}.deck-choice p{font-size:10px}.section-title h2{font-size:23px}.leader-row{gap:7px}.leader{min-width:160px;gap:5px;padding-right:6px}.leader b{font-size:11px;max-width:83px}.leader .avatar{width:33px;height:33px;flex-basis:33px}.energy{max-width:57px}.power-button{max-width:88px;padding:6px;font-size:9px}.power-button small{font-size:6px}.unit .name{font-size:7px}.battle-top>.eyebrow{font-size:6px}.battle-top .brand{font-size:15px}.battle-top>div{font-size:8px}.library-grid{gap:20px 14px}.library-item .card{min-height:265px}.card-name{font-size:13px}.card-text{font-size:9px}.mulligan-cards button{width:124px}.mulligan-cards .card{height:237px}.mulligan-cards{gap:12px}.mulligan-cards .card-name{font-size:12px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}.turn-banner{display:none}.stat-float{display:none}.hand-card:hover:not(:disabled),.hand-card:focus-visible,.unit:hover,.unit.selected{transform:none}}

/* Readability and SVG marker integration. */
.card-emblem span{font:700 9px/1.3 var(--sans)!important;letter-spacing:.7px}
.target-line marker path{fill:#efd083;stroke:none;stroke-dasharray:none}
.empty-field{color:#9cafb0;font:italic 11px/1.5 var(--serif);text-align:center;padding:20px;pointer-events:none}
