@import './fx.css';

:root{color-scheme:dark;font-family:Georgia,'Times New Roman',serif;color:#eadcc3;background:#050910;font-synthesis:none}
*{box-sizing:border-box}
body{margin:0;min-height:100dvh;display:grid;place-items:center;overflow:hidden}
button{font:inherit;color:inherit;cursor:pointer}
button:disabled{cursor:default;opacity:.43}
button:focus-visible,[tabindex]:focus-visible{outline:2px solid #9de8ff;outline-offset:4px}
[hidden]{display:none!important}
#arena{width:min(100vw,177.78dvh);height:min(100dvh,56.25vw);position:relative;container-type:size;overflow:hidden;isolation:isolate;background:#111d2b;--gold:#d4b06e;--fine:#8c7658;--cyan:#a9edfb;--ui:clamp(11px,1.07cqw,17px);--card:6.78cqw}
.landscape,#scene,.vignette,#rows,#vfx{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.landscape{background:url('../assets/arena-clean.webp') center/100% 100% no-repeat}
#scene{z-index:1}
.vignette{z-index:2;background:linear-gradient(90deg,#04070bb5 0%,transparent 17%,transparent 87%,#03060ac2),linear-gradient(0deg,#020609cc,transparent 24%,transparent 80%,#03050ba3);box-shadow:inset 0 0 7cqw #0008}
.ribbon {
  position:absolute;z-index:4;left:0;top:0;width:4.4%;height:43%;pointer-events:none;
  display:grid;place-items:center;padding-top:3%;border-inline:3px ridge #6c5d70;
  background:linear-gradient(90deg,#090811,#3c2a4c 15%,#211b31 32%,#32253c 78%,#100e1a),
             repeating-linear-gradient(32deg,#534854 0 1px,#b9abb3 1px 3px);
  background-blend-mode:multiply;clip-path:polygon(0 0,100% 0,100% 95%,84% 93%,50% 100%,18% 94%,0 96%);
}
.ribbon::before {content:'';position:absolute;inset:0 5px 4%;border-inline:1px solid #b6a0b63f}
.ribbon span {width:83%;height:4.4cqw;color:transparent;background:url('../assets/crystal.webp') center/contain no-repeat;filter:drop-shadow(0 2px 2px #050309)}
.identity {position:absolute;z-index:6;display:flex;align-items:center;gap:.52cqw;text-shadow:0 2px 3px #000,1px 0 1px #100e11;white-space:nowrap}
.identity.enemy {left:1%;top:.7%}.identity.player {left:1%;bottom:.8%}
.identity strong {display:block;font:700 clamp(11px,1.03cqw,19px)/1.1 Bahnschrift,'Arial Narrow',sans-serif;text-transform:uppercase;color:#f3ecdc}
.identity small {display:block;color:#c4c3c2;font: .78cqw/1.3 Bahnschrift,sans-serif}
.leader-portrait {width:3.25cqw;height:3.65cqw;background:#24232b url('../assets/cards.webp?v=characters') var(--x) var(--y)/400% 800%;border:4px solid #71583e;border-image:url('../assets/bronze-frame.webp') 23 / 5px;box-shadow:0 2px 5px black}
.leader-order {position:relative;pointer-events:auto;min-width:28px;min-height:30px;padding:0}
.leader-order:enabled {box-shadow:0 0 7px #6be4ff9c}
.leader-order span {position:absolute;right:-.4em;bottom:-.3em;min-width:1.25em;border:1px solid #ad9972;background:#13222c;color:#bdf3ff;font:700 11px/1.2 Bahnschrift,sans-serif}
.figure-preview {position:absolute;z-index:5;border:0;border-radius:45%;background:transparent}
.figure-preview:hover {background:radial-gradient(ellipse at 50% 90%,#74eefa28,transparent 55%)}
#sentinel-preview {left:5%;top:56%;width:10.8%;height:23%}
#mage-preview {left:13%;top:7%;width:7.5%;height:22.5%}
@media(max-width:620px) and (orientation:portrait){
  #sentinel-preview {left:1%;top:60%;width:11%;height:13%}
  #mage-preview {left:3%;top:20%;width:9%;height:12%}
}
.crest {width:2.45cqw;height:2.65cqw;display:grid;place-items:center;background:radial-gradient(ellipse at 50% 43%,#40404a,#171822 70%);border:1px solid #86735c;box-shadow:inset 0 0 0 2px #17141d,0 2px 4px #030309;border-radius:45% 45% 48% 48% / 19% 19% 68% 68%}
.seal {display:inline-block;flex:none;width:1.5em;height:1.5em;background-image:url('../assets/heraldry.webp');background-size:400% 200%;background-repeat:no-repeat;filter:drop-shadow(0 1px 1px #08070a)}
.crest .seal {width:90%;height:82%}
.seal-steel {background-position:0 0}.seal-clan {background-position:33.3333% 0}.seal-legion {background-position:66.6667% 0}.seal-reef {background-position:100% 0}.seal-range {background-position:33.3333% 100%}
.toolbar {position:absolute;z-index:8;right:.65%;top:1.3%;display:flex;gap:3px;align-items:center;padding:4px 5px;background:linear-gradient(#292732,#0a0e17);border:1px solid #47424a;box-shadow:0 2px 6px #000b,inset 0 0 0 2px #100e16}
.toolbar button,.secondary,.filter button {border:1px solid #7b684b;background:linear-gradient(#29232a,#13131b);color:#dfc79c}
.toolbar button {position:relative;display:grid;place-items:center;width:clamp(30px,2.65cqw,46px);aspect-ratio:1;padding:0;color:#f1dbab;background:radial-gradient(ellipse at top,#413c37,#191a22 66%);border:5px solid transparent;border-image:url('../assets/bronze-frame.webp') 24 / 6px;box-shadow:0 1px 2px black}
.toolbar button:hover,.secondary:hover,.filter button:hover {filter:brightness(1.35)}
.toolbar .seal {width:94%;height:94%}
.help-mark {font:bold 1.55cqw/1 Georgia,serif;text-shadow:1px 1px #161119}
.atlas-mark {width:54%;height:68%;position:relative;border:1px solid #b49b68;background:#292525;box-shadow:-2px 2px #33291b,-3px 3px #9c855b;transform:rotate(8deg)}
.atlas-mark::after {content:'';position:absolute;inset:29% 22%;border:1px solid #d7c28f;transform:rotate(45deg)}
.seam{position:absolute;z-index:2;left:20%;right:18%;top:44%;height:1px;background:linear-gradient(90deg,transparent,#9ab2c668,transparent);pointer-events:none}
#rows{z-index:4}
.row{--tilt:0deg;position:absolute;left:17.9%;right:17.9%;display:grid;place-items:center;perspective:115cqw;pointer-events:auto}
.row[data-side="1"][data-row="1"]{top:13%;height:13.8%;--tilt:24deg;--scale:.88}
.row[data-side="1"][data-row="0"]{top:27.5%;height:15.6%;--tilt:19deg;--scale:.93}
.row[data-side="0"][data-row="0"]{top:44.7%;height:17.7%;--tilt:14deg;--scale:1}
.row[data-side="0"][data-row="1"]{top:62.9%;height:18.8%;--tilt:9deg;--scale:1.06}
.row-label{position:absolute;left:0;top:50%;transform:translateY(-50%);color:#e7d7b3;background:#0b1118b3;border:1px solid #b9a27b47;padding:.45em .8em;font:600 var(--ui) system-ui,sans-serif;opacity:0;z-index:1;pointer-events:none}
.row.empty .row-label{left:50%;transform:translate(-50%,-50%);opacity:.72;font-size:.83cqw;letter-spacing:.12em;text-transform:uppercase}
.row.valid{cursor:pointer;background:radial-gradient(ellipse,#8af6ff21,transparent 75%);box-shadow:inset 0 0 0 1px #b3ecf83b}
.row.valid .row-label{opacity:1}.row.valid:hover{background:radial-gradient(ellipse,#8af6ff48,transparent 79%)}
.row.locked .row-label{display:none}
.row-cards{height:100%;width:100%;display:flex;justify-content:center;align-items:center;gap:.28cqw;transform:rotateX(var(--tilt));transform-style:preserve-3d}
.card{--card-edge:#ac8b54;--art-filter:none;position:relative;display:block;flex:0 0 auto;width:var(--card);height:calc(var(--card)*1.41);padding:0;isolation:isolate;appearance:none;overflow:hidden;border:1px solid var(--card-edge);border-radius:4% 4% 3% 3% / 3% 3% 2% 2%;background:#171c25;box-shadow:0 0 0 1px #0d0b0a,0 3px 5px #000c,inset 0 0 0 2px #231d18;transition:transform 160ms,filter 160ms,box-shadow 160ms;color:#faf5df;touch-action:manipulation}
.card::after{content:'';position:absolute;inset:0;border:3px solid #ac8b5455;border-image:url('../assets/frame.webp') 16 16 16 12 stretch;pointer-events:none;background:linear-gradient(180deg,#0a0c14aa,transparent 25%,transparent 76%,#080709b3);z-index:1}
.row .card{width:min(calc(var(--card)*var(--scale)),calc(98% / var(--count) - .28cqw));height:100%}
.card.hero{--card-edge:#e4bf6c}
.card.empowered{--card-edge:#ffe2a2;box-shadow:0 0 3px 1px #fce9a0,0 0 12px #edaa468f,inset 0 0 5px #ffad43,0 3px 5px #000}
.card.empowered::after{border-color:#ffdc8788}
.art{display:block;position:absolute;inset:2px;background-image:url('../assets/cards.webp?v=characters');background-size:400% 800%;background-position:var(--x) var(--y);background-repeat:no-repeat;filter:var(--art-filter);pointer-events:none}
.gpu-cards .row .card{background:transparent}
.gpu-cards .row .art{background-image:none}
.card::before{content:'';position:absolute;z-index:2;width:1.68em;height:1.68em;top:-.42em;left:-.28em;background:linear-gradient(110deg,#4a3d2d,#14161c 70%);border:1px solid #bca16b;transform:rotate(45deg);box-shadow:0 1px 3px #000}
.card{font-size:clamp(10px,1.42cqw,23px)}
.power{position:absolute;z-index:3;top:.08em;left:.25em;line-height:1;font:700 1em/1 Bahnschrift,'Arial Narrow',sans-serif;text-shadow:0 1px 2px #000,1px 0 #17151a,-1px 0 #17151a;font-variant-numeric:tabular-nums}
.power.up{color:#a9f183}.power.down{color:#fa816e}.power.sig{font-size:.86em;color:#f1cd88}
.sigils{display:flex;position:absolute;z-index:3;gap:.19em;left:50%;bottom:4%;transform:translateX(-50%);font-size:.67em;text-shadow:0 0 4px #000,0 0 4px #000}
.sigils i{display:grid;place-items:center;font-style:normal;line-height:1;width:1.18em;height:1.18em;color:var(--faction);background:#10171edc;border:1px solid color-mix(in srgb,var(--faction) 55%,#17141c);border-radius:50%}
.card.eligible{outline:2px solid #82eefa;outline-offset:2px;box-shadow:0 0 10px #64e5fe,0 3px 8px #000}
.row .card:hover{z-index:5;transform:translateZ(1cqw) translateY(-.2cqw);filter:brightness(1.14)}
.hand{position:absolute;z-index:6;left:50%;display:flex;align-items:center;justify-content:center;width:60%;transform:translateX(-50%);perspective:90cqw;pointer-events:none}
.hand>*{flex-shrink:0;pointer-events:auto;transform:translateY(var(--fan-y)) rotate(var(--fan-angle));transform-origin:center 76%}
.hand>*+*{margin-left:var(--overlap)}
.enemy-hand{top:-8.2%;--card:6.4cqw;--overlap:-1.9cqw;transform:translateX(-50%) rotateX(-10deg)}
.enemy-hand>*{transform:translateY(calc(-1 * var(--fan-y))) rotate(calc(-1 * var(--fan-angle)));transform-origin:center 24%}
.player-hand{top:83.65%;--card:8.25cqw;--overlap:-.72cqw}
.player-hand.packed{--overlap:-3.1cqw}
.player-hand .card:hover,.player-hand .card:focus-visible,.player-hand .card.selected{z-index:15;transform:translateY(-3.4cqw) scale(1.12);filter:brightness(1.14);box-shadow:0 0 0 1px #f2d8a7,0 0 18px #edb279aa,0 4px 10px black}
.player-hand .card.selected{outline:2px solid #f7d794}
.card-back {
  width:var(--card);height:calc(var(--card)*1.42);display:grid;place-items:center;position:relative;isolation:isolate;
  border:5px solid #564333;border-image:url('../assets/bronze-frame.webp') 25 / clamp(6px,.66cqw,12px);
  background:radial-gradient(ellipse at 44% 30%,#313d49,#1c222c 62%,#11151d);box-shadow:0 2px 5px #020307;
}
.card-back::before {content:'';position:absolute;inset:4%;border:1px solid #a28b635b;box-shadow:inset 0 0 0 2px #0d101788,inset 0 0 16px #080c16a3;z-index:-1;
  background:repeating-linear-gradient(131deg,#baac9011 0 1px,transparent 1px 4px),repeating-linear-gradient(43deg,#9f8a7510 0 1px,transparent 1px 6px)}
.back-emblem {display:block;width:64%;height:67%;background:url('../assets/crystal-blue.webp') center/contain no-repeat;color:transparent;filter:drop-shadow(1px 2px 1px #0b0910)}
.pile.discard .back-emblem {background-image:url('../assets/skull.webp')}.pile.enemy.deck .back-emblem {background-image:url('../assets/crystal.webp')}.enemy-hand .back-emblem {filter:saturate(.58) brightness(.78)}
.pile {position:absolute;z-index:3;--card:7.45cqw;padding:0;box-shadow:1px 2px #1b1819,2px 3px #a18a67,3px 5px #40352e,4px 6px #887359,5px 8px #322c28,6px 9px #7d6e57,7px 12px #272324,8px 13px #78664f,9px 15px 6px #000}
.pile:hover {filter:brightness(1.14)}
.pile.enemy.deck {right:23.3%;top:-6%;transform:rotate(-6deg) rotateX(18deg)}.pile.enemy.discard {left:23.1%;top:-6%;transform:rotate(8deg) rotateX(18deg)}
.pile.player.deck {right:10.4%;top:81%;transform:rotate(-8deg) rotateX(15deg)}.pile.player.discard {left:10.5%;top:81%;transform:rotate(8deg) rotateX(15deg)}
.pile.discard {background:radial-gradient(ellipse at 42% 27%,#51473b,#312b29 62%,#211d20)}
.pile-count{position:absolute;display:grid;place-items:center;width:1.7em;height:1.7em;top:-.08em;left:calc(50% - .85em);background:#201c22;border:1px solid #b99a62;color:#f7e8c7;font-size:1.2cqw;transform:rotate(45deg);box-shadow:0 2px 5px #000;text-shadow:none}
.pile-count span{transform:rotate(-45deg)}.pile.enemy .pile-count{top:auto;bottom:.28em}
.score {
  position:absolute;right:.35%;top:12%;width:6.15%;height:64.5%;z-index:5;display:grid;
  grid-template-rows:1fr 1fr 1.1fr 1.2fr 1.1fr 1fr 1fr;align-items:center;text-align:center;
  padding:.6cqw .2cqw;border:6px solid #594d4a;border-image:url('../assets/bronze-frame.webp') 24 / .78cqw;
  background:linear-gradient(90deg,#050a13,#1b2031 13%,#131827 50%,#0b1020 87%,#080c14);
  box-shadow:0 0 0 1px #121017,-3px 3px 8px #000b;text-shadow:0 2px 2px #04050a;
  font:700 1.92cqw/1 Bahnschrift,'Arial Narrow',sans-serif;font-variant-numeric:tabular-nums;
}
.row-score {color:#d0ced0;line-height:1}
.row-value {display:flex;align-items:center;justify-content:center;gap:.15em}
.row-value .seal {width:.65em;height:.65em;filter:grayscale(.68) brightness(.88)}
.row-score small {display:block;color:#b4aea5;margin-top:.19em;font:600 .58cqw/1.2 Bahnschrift,sans-serif;letter-spacing:.055em;text-transform:uppercase}
.side-total {position:relative;display:grid;place-content:center;gap:.24cqw;align-self:stretch;color:#f2dfab}
.side-total b {font:700 2.62cqw/.95 Bahnschrift,'Arial Narrow',sans-serif;text-shadow:0 2px #3d3027,0 3px 4px black}
.side-total.yours {color:#f2c56e}.side-total.yours .wins {order:-1}
.wins {display:flex;justify-content:center;gap:.42cqw;padding:.12cqw}
.wins span {width:.48cqw;height:.48cqw;min-width:4px;min-height:4px;transform:rotate(45deg);border:1px solid #92826d;background:#16151d;box-shadow:0 1px 2px #000}
.wins .won {background:linear-gradient(140deg,#fff0ad,#dd9b49 65%,#73431d);box-shadow:0 0 5px #f6b255}
.round-emblem {position:relative;justify-self:center;display:grid;place-items:center;width:4.75cqw;aspect-ratio:1;background:url('../assets/round-medallion.webp') center/contain no-repeat;filter:drop-shadow(0 2px 2px #000)}
.score::before,.score::after {content:'';position:absolute;top:4%;bottom:4%;width:1px;pointer-events:none;background:linear-gradient(transparent,#ac94725c 16%,#594c582b 40%,#ccb38580 49%,#55465742 55%,#aa95716b 80%,transparent)}
.score::before {left:.48cqw}.score::after {right:.48cqw}
.row-score {position:relative;display:grid;place-content:center;height:100%}
.row-score small {font-size:clamp(7px,.58cqw,11px)}
.side-total::before,.side-total::after {content:'';position:absolute;left:8%;right:8%;height:1px;background:linear-gradient(90deg,transparent,#756553aa 33%,#bcaa7c 50%,#756553aa 67%,transparent)}
.side-total::before {top:3%}.side-total::after {bottom:3%}
.identity {pointer-events:none}
.hand-count {display:grid;place-items:center;width:2.3cqw;height:2.7cqw;color:#dfd4b7;background:linear-gradient(105deg,#665744,#211e20 37%,#312b29 80%,#72614c);clip-path:polygon(0 0,100% 0,92% 74%,50% 100%,8% 74%);font:bold 1.29cqw Bahnschrift,sans-serif}
.round-emblem b {position:absolute;top:-13%;left:50%;transform:translateX(-50%);min-width:1.3em;padding:.12em .22em;border:1px solid #5e4936;border-radius:50%;background:linear-gradient(#d2b477,#957448);color:#221b19;font:bold .94cqw/1 Georgia,serif;text-shadow:0 1px #e2ce9c}
.orders{position:absolute;z-index:8;right:1.1%;bottom:2.2%;width:13%;min-width:72px;text-align:right}
#status{font:600 clamp(9px,.71cqw,13px) system-ui,sans-serif;color:#e2cda4;text-shadow:0 1px 3px #000,0 1px 3px #000;margin-bottom:.5em;min-height:2em;display:grid;align-items:end}
.primary,.secondary{padding:.65em 1em;font-size:var(--ui);letter-spacing:.06em}
.primary{border:1px solid #c9a86c;background:linear-gradient(#473b2d,#241e1e);color:#ffedc3;box-shadow:inset 0 0 0 2px #1c181b,0 3px 7px #000a;text-transform:uppercase;font-weight:bold}
.primary:hover:not(:disabled){background:linear-gradient(#6b512c,#32251d)}
.primary kbd{margin-left:.6em;background:#17141a;border:1px solid #776147;font:600 .57em system-ui,sans-serif;padding:.2em .35em;color:#d0b88c}

#pass {position:relative;display:inline-flex;align-items:center;justify-content:center;gap:.48em;min-height:32px;padding:.66em .86em;border:3px solid #735c3e;border-image:url('../assets/bronze-frame.webp') 24 / 7px;background:linear-gradient(173deg,#514435,#292228 54%,#151720);text-shadow:0 2px 2px #080609;box-shadow:0 3px 0 #141016,0 4px 5px #000}
#pass:hover:enabled {filter:brightness(1.28)}
.pass-mark {position:relative;width:.72em;height:1em;border-left:2px solid #c3a477}
.pass-mark::before {content:'';position:absolute;inset:0 0 32% 0;background:linear-gradient(120deg,#f5dba1,#a68659);clip-path:polygon(0 0,100% 10%,76% 47%,100% 88%,0 78%)}
.card::after {border-image:url('../assets/bronze-frame.webp') 24 / clamp(3px,.36cqw,7px)}
.card.empowered::after {background:linear-gradient(123deg,#ffeab680,transparent 14%,transparent 79%,#e6b65b64);box-shadow:inset 0 0 5px 1px #ffe8a185}
.card.empowered {box-shadow:0 0 1px 1px #fff1af,0 0 .48cqw .13cqw #e6ad54aa,0 2px 4px #080609}
#folio{position:absolute;z-index:12;left:2.5%;top:50%;transform:translateY(-50%);width:18.6%;min-width:160px;padding:1em;background:#0b121bed;border:1px solid #847153;box-shadow:0 4px 26px #000b;pointer-events:none;font-size:var(--ui)}
#folio strong{font-size:1.22em;color:#f4d79a}#folio p,#folio small{display:block;margin:.6em 0;color:#c6c9d0;font: .84em/1.44 system-ui,sans-serif}#folio b{color:#ead5a6}#folio .flavor{color:#98949e;font-style:italic}
#turn-notice{position:absolute;z-index:7;left:50%;top:44%;width:max-content;transform:translate(-50%,-50%);pointer-events:none;text-shadow:0 2px 8px black;background:linear-gradient(90deg,transparent,#0a0c16f0 15% 85%,transparent);color:#f2dfb2;padding:.4em 4em;font-size:clamp(12px,1.3cqw,24px);letter-spacing:.09em;text-transform:uppercase}
#turn-notice:empty{display:none}
dialog{width:min(690px,92vw);max-height:86dvh;overflow:auto;color:inherit;background:radial-gradient(ellipse at 50% 0,#263040,#10151f 77%);border:1px solid #b09362;box-shadow:0 16px 70px #000e,inset 0 0 0 4px #111826;padding:clamp(16px,2.25cqw,35px);font:14px/1.5 system-ui,sans-serif}
dialog::backdrop{background:#04070cbd;backdrop-filter:blur(2px)}
dialog h1,dialog h2,dialog h3{font-family:Georgia,serif;font-weight:normal;color:#f0d6a6;margin:0 0 .55em;line-height:1.12}dialog h1{font-size:clamp(24px,3cqw,39px)}dialog p{margin:0 0 .8em;color:#cdd1db}
.modal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:1em}.close{font-size:1.3em;background:transparent;border:0;color:#dec28f;padding:.2em .5em;line-height:1}
.modal-foot{margin-top:1.3em;display:flex;gap:.65em;flex-wrap:wrap}.modal-foot button{font-size:13px}
.factions,.library-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.faction,.library-entry{position:relative;text-align:left;min-width:0;background:#0b111bd9;border:1px solid #7d6b4c65;padding:10px;color:#e5dccc;display:flex;align-items:center;gap:12px}.faction:hover,.library-entry:hover{border-color:var(--faction)}.faction .crest{margin:5px;flex:none}.faction strong,.library-entry strong{display:block;color:var(--faction);font-family:Georgia,serif;font-size:1.12em}.faction small,.library-entry small{display:block;color:#c1c3cc;font-size:.78em}.library-entry .card{--card:44px;font-size:12px;pointer-events:none}.filter{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:1em}.filter button{padding:.35em .6em}.filter button[aria-pressed=true]{border-color:#e6c783;color:#fff4d9}.detail{display:flex;gap:1.15em;align-items:flex-start}.detail .card{--card:125px;font-size:23px}.detail p{font-size:.92em}.score-result{font:normal 3.4em/1.25 Georgia,serif;letter-spacing:.06em;color:#f1d58d;margin-bottom:.2em}

.detail small{display:block;color:#c1c3cc;margin-bottom:.65em}

@media(max-aspect-ratio:4/3){
  #arena{width:100vw;height:min(100dvh,82vw)}
  .identity .crest{width:3.1cqw;height:3.1cqw}.pile{--card:8cqw}.pile.player.deck{right:10%;top:83%}.pile.player.discard{left:9%;top:83%}.enemy-hand{top:-3%;--card:7.2cqw}.player-hand{--card:9cqw;top:84%}.player-hand.packed{--overlap:-3.7cqw}.row{left:12%;right:12%}.row .card{width:min(calc(var(--card)*var(--scale)*1.13),calc(99% / var(--count) - .28cqw))}.score{width:7%;right:.7%;font-size:2cqw}.orders{bottom:1.6%;width:14%;right:.8%}
}
@media(max-width:620px) and (orientation:portrait){
  #arena{height:min(100dvh,145vw)}.landscape{background-size:auto 100%}.vignette{box-shadow:inset 0 0 5cqw #0008}.row{left:3%;right:12%}.row .card{max-height:15.2cqw;--card:8cqw}.row-label{font-size:9px!important}.enemy-hand{top:3.5%;--card:8.2cqw}.player-hand{top:83%;--card:10.8cqw;width:71%}.player-hand.packed{--overlap:-4.8cqw}.pile.player.discard{left:2%;top:75%}.pile.player.deck{right:2%;top:75%}.pile.enemy.deck{right:10%;top:9.1%}.pile.enemy.discard{left:7%;top:9.1%}.score{width:9.5%;right:1%;font-size:2.7cqw}.round-emblem{width:7.1cqw}.score .side-total b{font-size:clamp(16px,4.4cqw,23px)}.row-value{font-size:clamp(13px,3.4cqw,19px)}.row-score small{font-size:6px}.row-value .seal{display:none}.identity small{font-size:8px}.hand-count{min-width:16px;min-height:20px;font-size:11px}.help-mark{font-size:16px}.round-emblem b{font-size:10px}.ribbon,.location,.primary kbd{display:none}.identity.enemy{left:3%}.identity .crest{width:4.6cqw;height:4.6cqw;font-size:3cqw}.identity.player{bottom:1.7%}.orders{width:29%;bottom:1.45%}.orders .primary{padding:.5em .75em}.factions,.library-grid{grid-template-columns:1fr}.detail .card{--card:72px}.row .card:hover{transform:none}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
