/* v23: a shared cinematic draw stage. The portfolio keeps its light glass palette. */
.hero-actions{flex-wrap:wrap;row-gap:10px}
.draw-shortcuts{display:inline-flex;padding:4px;border:1px solid #fff;border-radius:15px;background:linear-gradient(130deg,#ffffffc4,#e7edf66e);box-shadow:inset 0 -1px 2px #9daac92a,0 6px 16px #74829b0b;backdrop-filter:blur(16px)}
.draw-shortcuts button{display:flex;align-items:center;gap:13px;min-height:40px;padding:8px 15px;border:0;border-radius:10px;background:none;color:#566989;font-size:13px;font-weight:550;transition:background .2s}
.draw-shortcuts button+button{border-left:1px solid #cbd4e25e;border-radius:0 10px 10px 0}
.draw-shortcuts button:hover{background:#fff9}.draw-shortcuts span{color:#8c83b4;font:500 11px 'Space Grotesk',sans-serif}.draw-shortcuts button:last-child span{color:#a68a54}
.pack-dialog.is-game-draw{--draw-ice:#a4e7ff;--draw-gold:#f3d598;--draw-ink:#0b1530;width:min(1400px,calc(100vw - 32px));height:min(850px,calc(100dvh - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);padding:24px 42px 20px;border:1px solid #b8cbe65e;border-radius:24px;overflow:hidden;isolation:isolate;color:#eaf4ff;background:radial-gradient(ellipse at 50% 50%,#253d68 0,#152745 42%,#0b1530 82%);box-shadow:0 40px 130px #02091999,inset 0 1px 0 #d9edff50;text-align:center;grid-template-rows:auto minmax(0,1fr) 18px auto auto;gap:8px}
.pack-dialog.is-game-draw[open]{display:grid;animation:draw-room-in .4s ease-out}
.pack-dialog.is-game-draw::backdrop{background:#061026c9;backdrop-filter:blur(18px) saturate(.7)}
.pack-dialog.is-game-draw:before,.pack-dialog.is-game-draw:after{content:'';position:absolute;pointer-events:none;z-index:-1}
.pack-dialog.is-game-draw:before{inset:0;background:radial-gradient(ellipse at 0% 90%,#446ba14d,transparent 45%),radial-gradient(ellipse at 100% 0%,#a38bc532,transparent 45%);transition:opacity 1s}
.pack-dialog.is-game-draw:after{inset:12px;border:1px solid #a7c7ec20;border-radius:15px;mask-image:linear-gradient(90deg,#000,transparent 15% 85%,#000)}
.pack-dialog.is-game-draw>.close-button{top:24px;right:24px;z-index:8;background:#bad9ff12;border:1px solid #c2daf145;color:#d5e8ff;box-shadow:none;width:38px;height:38px}
.pack-dialog.is-game-draw>.close-button:hover{background:#e4efff24}
.is-game-draw .pack-heading{position:relative;z-index:3;min-height:105px;pointer-events:none}
.draw-mode-switch{display:inline-flex;border:1px solid #b2d4f03b;border-radius:30px;background:#0613297d;padding:4px;box-shadow:inset 0 1px 8px #02061744;pointer-events:auto}
.draw-mode-switch button{display:flex;align-items:center;justify-content:center;gap:25px;min-width:125px;min-height:37px;border:1px solid transparent;border-radius:24px;color:#c0d3ec;background:none;font-size:12px;transition:background .2s}
.draw-mode-switch button span{font:500 12px 'Space Grotesk',sans-serif;opacity:.7}
.draw-mode-switch button[aria-pressed=true]{background:linear-gradient(130deg,#f5e3bc,#ccae76);border-color:#fae7bd;color:#233048;box-shadow:0 0 18px #f7d58a16}
.draw-mode-switch button:disabled{cursor:default;opacity:.8}
.is-game-draw .pack-heading h2{color:#eff7ff;font-size:26px;font-weight:500;letter-spacing:.02em;margin:18px 0 6px;line-height:1.25}
.is-game-draw .pack-heading p{color:#afc6e2;font-size:11px;min-height:20px;margin:0;line-height:1.7}
.is-game-draw .pack-stage{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1fr);place-items:center;justify-content:normal;min-height:0;min-width:0;width:100%;margin:0;perspective:1600px}
.draw-cinematic{position:absolute;inset:-155px -42px -145px;pointer-events:none;z-index:-1;overflow:hidden;border-radius:23px}
.draw-fx-canvas{position:absolute;inset:0;width:100%;height:100%;opacity:.9}
.draw-portal{position:absolute;left:50%;top:49%;width:310px;height:310px;margin:-155px;perspective:1000px;filter:drop-shadow(0 0 25px #8bdcff66);transition:opacity .6s,transform .8s}
.draw-portal>i{position:absolute;inset:0;border-radius:50%;border:2px solid #a4e7ffb3;box-shadow:0 0 16px #85d6ff44,inset 0 0 18px #85d6ff35;animation:draw-orbit-charge 1.8s cubic-bezier(.25,.1,.35,1) both}
.draw-portal>i:before{content:'';position:absolute;inset:10px;border:1px dashed #c5dcff7a;border-radius:50%}
.draw-portal>i:after{content:'';position:absolute;inset:24px;border-radius:50%;background:repeating-conic-gradient(from 0deg,#deefffb3 0 1deg,transparent 1deg 30deg);mask-image:radial-gradient(circle,transparent 66%,#000 67% 70%,transparent 71%)}
.draw-portal>i:nth-child(2){inset:27px;border-color:#efd6a38c;animation-name:draw-orbit-counter}
.draw-portal>i:nth-child(3){inset:65px;border-width:1px;border-color:#cedfff66;animation-name:draw-orbit-inner;background:radial-gradient(circle,#9fe1ff24,transparent 72%)}
.draw-portal-core{position:absolute;inset:0;display:grid;place-items:center;animation:draw-core-charge 1.8s ease-in both}
.draw-portal-core .icon{width:72px;height:72px;color:#e4f7ff;filter:drop-shadow(0 0 22px #9be1ff);transform:rotate(0)}
.draw-comet{position:absolute;left:50%;top:49%;width:16px;height:16px;margin:-8px;opacity:0;border-radius:50%;background:#fff8d6;box-shadow:0 0 12px 5px #fff0b7,0 0 35px 16px #edc689,0 0 100px 35px #80bde477}
.draw-comet:before{content:'';position:absolute;right:5px;top:3px;width:min(55vw,750px);height:10px;transform-origin:100% 50%;background:linear-gradient(90deg,transparent,#739bde66 30%,#b9e6ffaa 75%,#fff4cc);clip-path:polygon(0 25%,100% 0,100% 100%,0 75%);filter:blur(1px)}
.draw-comet:after{content:'';position:absolute;inset:-26px;background:#fff8d1;clip-path:polygon(50% 0,54% 44%,100% 50%,54% 55%,50% 100%,45% 55%,0 50%,45% 45%);transform:rotate(25deg)}
.draw-flight-label{position:absolute;left:0;right:0;top:calc(49% + 205px);color:#b9d9f2;font-size:11px;letter-spacing:.23em;animation:draw-label-in .5s .4s both}
.is-game-draw[data-phase=flight] .draw-portal{animation:draw-portal-launch 1.6s cubic-bezier(.25,.05,.15,1) both}
.is-game-draw[data-phase=flight] .draw-comet{animation:draw-comet-flight 1.6s cubic-bezier(.22,.4,.3,1) both}
.is-game-draw[data-phase=flight] .draw-flight-label{opacity:0;animation:none}
.is-game-draw:is([data-phase=revealing],[data-phase=complete]) .draw-portal,.is-game-draw:is([data-phase=revealing],[data-phase=complete]) .draw-comet,.is-game-draw:is([data-phase=revealing],[data-phase=complete]) .draw-flight-label{display:none}
.is-game-draw .reveal-grid{position:relative;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:center;gap:18px;width:min(100%,1200px);padding:18px 0 30px;visibility:hidden;pointer-events:none;z-index:1}
.is-game-draw .reveal-grid[data-count="1"]{grid-template-columns:minmax(0,1fr);width:100%}
.is-game-draw:is([data-phase=revealing],[data-phase=complete]) .reveal-grid{visibility:visible;pointer-events:auto}
/* Category color lives on the slot so it survives the back-to-front replacement. */
.is-game-draw [data-draw-theme]{--draw-color:#5ba8ff;--draw-light:#d1eaff;--draw-dark:#0b2449;--draw-mid:#215696;--reveal-tint:var(--draw-color)}
.is-game-draw [data-draw-theme="research"]{--draw-color:#b184ff;--draw-light:#eee0ff;--draw-dark:#2b174a;--draw-mid:#674399}
.is-game-draw [data-draw-theme="personal"]{--draw-color:#51d2a3;--draw-light:#d5ffee;--draw-dark:#103b31;--draw-mid:#247b60}
.is-game-draw [data-draw-theme="future"]{--draw-color:#ff777f;--draw-light:#ffe0e1;--draw-dark:#4b1b2b;--draw-mid:#a13b4a}
.is-game-draw [data-draw-theme="secret"]{--draw-color:#efc568;--draw-light:#fff2c9;--draw-dark:#493418;--draw-mid:#96702d}
.is-game-draw .reveal-slot{position:relative;min-width:0;perspective:1800px;text-align:center}
.is-game-draw .reveal-slot:before{content:'';position:absolute;inset:-18%;background:radial-gradient(ellipse,color-mix(in srgb,var(--draw-color) 42%,transparent),transparent 64%);opacity:0;transform:scale(.5);pointer-events:none;z-index:-1}
.is-game-draw .reveal-slot.revealed:before{animation:draw-card-aura 1.6s ease-out both}
.is-game-draw .reveal-slot>.holo-card{position:relative;width:100%;max-width:240px;margin:auto;animation:draw-card-arrive .55s cubic-bezier(.2,.65,.2,1) both;animation-delay:calc(var(--deal-index)*90ms);transform-origin:50% 50%;will-change:transform;touch-action:auto}
.is-game-draw .reveal-grid[data-count="1"] .reveal-slot>.holo-card{width:min(270px,calc((100dvh - 365px)*.71));max-width:310px}
.is-game-draw .reveal-slot.is-turning>.holo-card{animation:draw-card-away .45s cubic-bezier(.45,.02,.7,.25) both;pointer-events:none}
.is-game-draw .reveal-slot.revealed>.holo-card{animation:draw-card-front .75s cubic-bezier(.12,.66,.18,1) both;filter:drop-shadow(0 12px 16px #020a1e55)}
.is-game-draw[data-phase=complete] .reveal-slot>.holo-card{will-change:auto}
.is-game-draw .card-surface{border-radius:18px;padding:6px;box-shadow:0 18px 35px #02081d88,inset 0 1px 0 #fff;backdrop-filter:none}
.is-game-draw .card-inner{border-radius:12px}
.is-game-draw .card-topline{padding:12px 10px}
.is-game-draw .card-series,.is-game-draw .card-type{font-size:8px}
.is-game-draw .card-caption{padding:28px 12px 12px}
.is-game-draw .card-title{font-size:18px}
.is-game-draw .card-title-row .icon{width:13px;height:13px}
.is-game-draw .card-short{font-size:9px;line-height:1.7;min-height:31px}
.is-game-draw .card-baseline{font-size:7px;gap:8px;margin-top:9px;padding-top:8px}
.is-game-draw .card-art{top:12px;height:76%}
.is-game-draw .card-back .card-surface{background:linear-gradient(135deg,var(--draw-light),var(--draw-color) 24%,var(--draw-light) 49%,var(--draw-mid) 72%,var(--draw-color));box-shadow:0 0 28px color-mix(in srgb,var(--draw-color) 38%,transparent),0 18px 35px #02081d66}
.is-game-draw .back-design{border-radius:12px;border:1px solid color-mix(in srgb,var(--draw-light) 60%,transparent);box-shadow:inset 0 0 35px color-mix(in srgb,var(--draw-color) 18%,transparent);background:radial-gradient(ellipse at 50% 30%,color-mix(in srgb,var(--draw-color) 48%,transparent),transparent 70%),linear-gradient(145deg,var(--draw-dark),var(--draw-mid) 52%,var(--draw-dark));color:var(--draw-light)}
.is-game-draw .back-design:after{inset:11px;border:1px solid color-mix(in srgb,var(--draw-light) 65%,transparent);border-radius:7px;transform:none}
.is-game-draw .back-design:before{content:'';position:absolute;inset:26%;border:1px solid color-mix(in srgb,var(--draw-light) 55%,transparent);transform:rotate(45deg);border-radius:6px;box-shadow:0 0 24px color-mix(in srgb,var(--draw-color) 30%,transparent)}
.is-game-draw .back-design>.icon{width:55px;height:55px;margin-bottom:22px;color:var(--draw-light);filter:drop-shadow(0 0 18px var(--draw-color))}
.is-game-draw .back-title{font-size:18px;color:var(--draw-light);letter-spacing:.1em;position:relative}
.is-game-draw .back-subtitle{font-size:10px;font-weight:550;letter-spacing:.16em;color:var(--draw-light);position:relative}
.is-game-draw .draw-card-order{position:absolute;top:20px;left:20px;color:var(--draw-light);font:500 10px 'Space Grotesk',sans-serif}
.is-game-draw .card-back .card-foil{background:linear-gradient(115deg,transparent 20%,color-mix(in srgb,var(--draw-color) 35%,transparent) 43%,color-mix(in srgb,var(--draw-light) 60%,transparent) 50%,transparent 68%);background-size:240% 100%;mix-blend-mode:screen;animation:draw-foil-sweep 1.4s both;opacity:.6}
.is-game-draw .reveal-status{position:absolute;top:100%;left:0;right:0;margin-top:16px;min-height:20px;display:flex;align-items:center;justify-content:center;gap:8px;color:#c6d6ed;font-size:10px;line-height:1.5}
.is-game-draw .reveal-status.is-new{color:#ffe0a3}
.is-game-draw .reveal-status>span{display:inline-flex;align-items:center;gap:4px;color:#94aecf;font-size:9px}
.is-game-draw .reveal-status .icon{width:10px;height:10px}
.is-game-draw[data-phase=revealing] .reveal-status{visibility:hidden}
.is-game-draw .draw-progress{position:relative;z-index:3;display:flex;justify-content:center;align-items:center;gap:10px;min-height:18px;margin:0}
.is-game-draw .draw-progress i{height:4px;width:25px;border-radius:3px;background:#7494bc55;transition:background .35s,box-shadow .35s}
.is-game-draw .draw-progress i.is-revealed{background:var(--draw-color);box-shadow:0 0 13px color-mix(in srgb,var(--draw-color) 40%,transparent)}
.is-game-draw:is([data-phase=charging],[data-phase=flight]) .draw-progress{visibility:hidden}
.is-game-draw .pack-actions{position:relative;inset:auto;z-index:3;display:flex;flex-wrap:wrap;justify-content:center;gap:10px;min-height:46px;padding:0;background:none}
.is-game-draw .pack-actions .button{min-height:44px;padding:11px 21px;border:1px solid #b4d1ee4f;border-radius:10px;background:#bdd9f40d;color:#d8e8fb;font-size:12px;gap:9px;backdrop-filter:blur(8px)}
.is-game-draw .pack-actions .button.primary{background:linear-gradient(125deg,#f8e6be,#d4b479);color:#22334c;border-color:#f5dfad;box-shadow:0 5px 25px #02091955,inset 0 1px 0 #fff3d6}
.is-game-draw .pack-actions .button:hover{border-color:#e6f4ff;background:#c9e5ff1f}
.is-game-draw .pack-actions .button.primary:hover{background:#f5dfb0;color:#192b43}
.is-game-draw #skip-draw{min-width:138px;color:#f1d8a9;border-color:#e2c89480;background:#15264180}
.is-game-draw .draw-collection-note{position:relative;z-index:3;font-size:10px;color:#8ea8c8;line-height:1.6;margin:1px 0 0;min-height:16px}
.is-game-draw .draw-result-new{color:#f3d59d}.is-game-draw .draw-result-owned{color:#b0c4df;margin-left:22px}
.is-game-draw .draw-result-new strong,.is-game-draw .draw-result-owned strong{font:500 17px 'Space Grotesk',sans-serif;margin-left:6px}
.is-game-draw button:focus-visible{outline:2px solid #ffe1a1;outline-offset:5px}
.draw-shortcuts button:focus-visible{outline:2px solid #5f82b5;outline-offset:4px}
.is-game-draw.skip-draw-motion .draw-cinematic{display:none}
.is-game-draw.skip-draw-motion *,.is-game-draw.skip-draw-motion *:before{animation:none!important;transition:none!important}
@keyframes draw-room-in{from{opacity:0;transform:scale(.97)}to{opacity:1;transform:scale(1)}}
@keyframes draw-orbit-charge{0%{opacity:0;transform:rotateX(65deg) rotateZ(-110deg) scale(1.45)}25%{opacity:.65}70%{opacity:1;transform:rotateX(20deg) rotateZ(10deg) scale(1)}100%{opacity:1;transform:rotateX(0) rotateZ(100deg) scale(.82)}}
@keyframes draw-orbit-counter{0%{opacity:0;transform:rotateY(70deg) rotateZ(180deg) scale(1.3)}25%{opacity:.8}75%{transform:rotateY(-15deg) rotateZ(-25deg) scale(1)}100%{opacity:1;transform:rotateY(0) rotateZ(-140deg) scale(.9)}}
@keyframes draw-orbit-inner{0%{opacity:0;transform:rotateX(-55deg) rotateZ(-90deg) scale(.5)}30%{opacity:.7}100%{opacity:1;transform:rotateX(0deg) rotateZ(45deg) scale(1.1)}}
@keyframes draw-core-charge{0%{opacity:0;transform:scale(.1) rotate(-45deg)}50%{opacity:.8;transform:scale(.7) rotate(0)}100%{opacity:1;transform:scale(1.3) rotate(90deg)}}
@keyframes draw-portal-launch{0%{opacity:1;transform:scale(1)}25%{opacity:1;transform:scale(.18) rotate(40deg)}65%{opacity:.2;transform:scale(3.6) rotate(65deg)}100%{opacity:0;transform:scale(4)}}
@keyframes draw-comet-flight{0%{opacity:0;transform:translate(-55vw,-150px) rotate(22deg) scale(.5)}25%{opacity:1}72%{opacity:1;transform:translate(0,0) rotate(22deg) scale(1.4)}85%{opacity:1;transform:translate(0,0) rotate(22deg) scale(.75)}100%{opacity:0;transform:translate(0,0) rotate(22deg) scale(7)}}
@keyframes draw-label-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes draw-card-arrive{from{opacity:0;transform:translateY(70px) rotateY(-30deg) rotateZ(-7deg) scale(.65)}to{opacity:1;transform:none}}
@keyframes draw-card-away{0%{opacity:1;transform:rotateY(-12deg) translateY(10px) scale(.95)}32%{transform:rotateY(-27deg) translateY(-10px) scale(1.04)}100%{opacity:1;transform:rotateY(90deg) translateY(-12px) scale(1.04)}}
@keyframes draw-card-front{0%{opacity:.8;transform:rotateY(-90deg) translateY(-12px) scale(1.04);filter:brightness(1.7) drop-shadow(0 0 35px var(--reveal-tint))}60%{opacity:1;transform:rotateY(10deg) translateY(-8px) scale(1.02);filter:brightness(1.08) drop-shadow(0 0 18px color-mix(in srgb,var(--reveal-tint) 35%,transparent))}100%{opacity:1;transform:none;filter:brightness(1) drop-shadow(0 12px 16px #020a1e55)}}
@keyframes draw-card-aura{0%{opacity:0;transform:scale(.5)}20%{opacity:1;transform:scale(1.25)}100%{opacity:.5;transform:scale(1)}}
@keyframes draw-foil-sweep{from{background-position:180% 0}to{background-position:-80% 0}}
@media(min-width:701px) and (max-height:690px){.pack-dialog.is-game-draw{padding-block:16px;gap:4px}.is-game-draw .pack-heading{min-height:94px}.is-game-draw .pack-heading h2{margin-top:12px;font-size:23px}.is-game-draw .reveal-grid[data-count="5"] .holo-card{max-width:calc((100dvh - 290px)*.71)}.is-game-draw .reveal-status{margin-top:9px}.is-game-draw .card-short{font-size:8px}}
@media(max-width:1050px) and (min-width:701px){.pack-dialog.is-game-draw{padding-inline:26px}.draw-cinematic{inset-inline:-26px}.is-game-draw .reveal-grid{gap:12px}.is-game-draw .card-title{font-size:15px}.is-game-draw .card-short{font-size:8px}.is-game-draw .card-baseline{font-size:6px;gap:5px}.is-game-draw .card-type{font-size:7px}.is-game-draw .card-title-row .icon{display:none}.is-game-draw .card-caption{padding-inline:9px}.is-game-draw .reveal-status>span{display:none}}
@media(max-width:700px){
 .draw-shortcuts button{font-size:12px;gap:11px;padding:8px 13px;min-height:38px}
 .pack-dialog.is-game-draw{width:calc(100vw - 12px);max-width:calc(100vw - 12px);height:calc(100dvh - 12px);max-height:calc(100dvh - 12px);padding:20px 18px 16px;border-radius:20px;gap:6px}
 .pack-dialog.is-game-draw:after{inset:7px;border-radius:14px}.pack-dialog.is-game-draw>.close-button{right:14px;top:18px;width:32px;height:32px}
 .draw-mode-switch{margin-top:36px}.draw-mode-switch button{min-width:108px;gap:20px;min-height:34px;font-size:11px}
 .is-game-draw .pack-heading{min-height:134px}.is-game-draw .pack-heading h2{font-size:23px;margin-top:17px}.is-game-draw .pack-heading p{font-size:10px}
 .draw-cinematic{inset:-150px -18px -150px}.draw-portal{width:250px;height:250px;margin:-125px}.draw-flight-label{top:calc(49% + 165px);font-size:10px}
 .is-game-draw .reveal-grid{gap:30px 10px;grid-template-columns:repeat(6,minmax(0,1fr));padding:4px 0 24px;align-content:center}
 .is-game-draw .reveal-grid[data-count="5"] .reveal-slot{grid-column:span 2}.is-game-draw .reveal-grid[data-count="5"] .reveal-slot:nth-child(4){grid-column:2 / span 2}
 .is-game-draw .reveal-grid[data-count="1"]{grid-template-columns:minmax(0,1fr);padding-bottom:28px}
 .is-game-draw .reveal-grid[data-count="1"] .holo-card{width:min(265px,calc((100dvh - 350px)*.71))}
 .is-game-draw .reveal-grid[data-count="5"] .holo-card{max-width:calc((100dvh - 350px)*.355)}
 .is-game-draw .card-surface{padding:4px;border-radius:12px}.is-game-draw .card-inner{border-radius:8px}
 .is-game-draw .card-caption{padding:15px 7px 8px}.is-game-draw .card-title{font-size:11px}.is-game-draw .card-topline{padding:7px}.is-game-draw .card-series{font-size:6px}.is-game-draw .card-type{font-size:6px}
 .is-game-draw .reveal-grid[data-count="5"] .card-short,.is-game-draw .reveal-grid[data-count="5"] .card-baseline,.is-game-draw .reveal-grid[data-count="5"] .card-title-row .icon{display:none}
 .is-game-draw .reveal-grid[data-count="5"] .card-art{height:87%;top:1px}
 .is-game-draw .reveal-grid[data-count="1"] .card-title{font-size:21px}.is-game-draw .reveal-grid[data-count="1"] .card-short{font-size:10px}.is-game-draw .reveal-grid[data-count="1"] .card-caption{padding:30px 14px 14px}.is-game-draw .reveal-grid[data-count="1"] .card-topline{padding:14px}.is-game-draw .reveal-grid[data-count="1"] .card-type,.is-game-draw .reveal-grid[data-count="1"] .card-series{font-size:8px}
 .is-game-draw .back-design{border-radius:8px}.is-game-draw .back-design:after{inset:6px}.is-game-draw .back-design>.icon{width:30px;height:30px;margin-bottom:10px}.is-game-draw .back-title{font-size:12px}.is-game-draw .back-subtitle{font-size:8px;margin-top:5px;letter-spacing:.08em}.is-game-draw .draw-card-order{font-size:6px;left:12px;top:12px}
 .is-game-draw .reveal-status{font-size:8px;margin-top:8px}.is-game-draw .reveal-status>span{display:none}.is-game-draw .reveal-grid[data-count="1"] .reveal-status{font-size:10px;margin-top:16px}.is-game-draw .reveal-grid[data-count="1"] .reveal-status>span{display:inline-flex}
 .is-game-draw .pack-actions{gap:8px}.is-game-draw .pack-actions .button{padding:10px 14px;font-size:10px;min-height:40px}.is-game-draw .pack-actions .button .icon{width:13px;height:13px}.is-game-draw .draw-collection-note{font-size:9px}.is-game-draw .draw-progress{gap:8px}.is-game-draw .draw-progress i{width:19px;height:3px}
}
@media(max-width:700px) and (max-height:650px){.draw-mode-switch{margin-top:23px}.is-game-draw .pack-heading{min-height:112px}.is-game-draw .pack-heading h2{font-size:20px;margin-top:12px}.is-game-draw .reveal-grid[data-count="5"] .holo-card{max-width:calc((100dvh - 310px)*.355)}.is-game-draw .reveal-grid[data-count="1"] .holo-card{width:calc((100dvh - 310px)*.71)}}
@media(prefers-reduced-motion:reduce){.pack-dialog.is-game-draw,.pack-dialog.is-game-draw *,.pack-dialog.is-game-draw *:before,.pack-dialog.is-game-draw *:after{animation:none!important;transition:none!important}.draw-cinematic{display:none}}

/* Short landscape view: keep a readable card row rather than shrinking a two-row grid. */
@media(max-height:500px) and (orientation:landscape){
 .pack-dialog.is-game-draw{height:calc(100dvh - 12px);max-height:calc(100dvh - 12px);padding:10px 28px 8px;gap:3px;grid-template-rows:70px minmax(0,1fr) 12px 38px 12px}
 .pack-dialog.is-game-draw>.close-button{top:12px;right:14px;width:29px;height:29px}
 .is-game-draw .pack-heading{min-height:0}.draw-mode-switch{margin-top:0;padding:2px}.draw-mode-switch button{min-height:27px;min-width:98px;font-size:10px;gap:14px}
 .is-game-draw .pack-heading h2{font-size:18px;margin:8px 0 0}.is-game-draw .pack-heading p{display:none}
 .is-game-draw .reveal-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;padding:3px 0 19px}
 .is-game-draw .reveal-grid[data-count="5"] .reveal-slot,.is-game-draw .reveal-grid[data-count="5"] .reveal-slot:nth-child(4){grid-column:auto}
 .is-game-draw .reveal-grid[data-count="5"] .holo-card,.is-game-draw .reveal-grid[data-count="1"] .holo-card{width:100%;max-width:calc((100dvh - 190px)*.71)}
 /* Match the base single-card selector so its portrait height budget cannot win. */
 .is-game-draw .reveal-grid[data-count="1"]{padding:3px 0 19px}
 .is-game-draw .reveal-grid[data-count="1"] .reveal-slot>.holo-card{width:min(100%,calc((100dvh - 202px)*.71));max-width:240px}
 .is-game-draw .reveal-grid[data-count="1"] .card-title{font-size:11px;line-height:1.25;white-space:normal}
 .is-game-draw .reveal-grid[data-count="1"] .card-caption{padding:12px 7px 7px}
 .is-game-draw .reveal-grid[data-count="1"] .card-topline{padding:7px}
 .is-game-draw .reveal-grid[data-count="1"] .card-type,.is-game-draw .reveal-grid[data-count="1"] .card-series{font-size:6px}
 .is-game-draw .reveal-grid .card-short,.is-game-draw .reveal-grid .card-baseline,.is-game-draw .reveal-grid .card-title-row .icon{display:none}
 .is-game-draw .reveal-grid .card-title{font-size:12px}.is-game-draw .reveal-grid .card-caption{padding:15px 7px 8px}.is-game-draw .reveal-grid .card-topline{padding:8px}.is-game-draw .reveal-grid .card-type,.is-game-draw .reveal-grid .card-series{font-size:6px}.is-game-draw .reveal-grid .card-art{top:0;height:88%}
 .is-game-draw .reveal-status,.is-game-draw .reveal-grid[data-count="1"] .reveal-status{font-size:8px;margin-top:6px}.is-game-draw .reveal-status>span,.is-game-draw .reveal-grid[data-count="1"] .reveal-status>span{display:none}
 .is-game-draw .pack-actions{min-height:34px}.is-game-draw .pack-actions .button{min-height:34px;padding:7px 15px;font-size:10px}.is-game-draw .draw-collection-note{font-size:8px;min-height:12px}.is-game-draw .draw-progress{min-height:12px}
 .draw-portal{width:180px;height:180px;margin:-90px}.draw-portal>i:nth-child(3){inset:35px}.draw-portal-core .icon{width:48px;height:48px}.draw-flight-label{display:none}
}
