@font-face{font-family:'Chakra Petch';src:url('/vanguard/assets/fonts/ChakraPetch-Regular.ttf') format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:'Chakra Petch';src:url('/vanguard/assets/fonts/ChakraPetch-SemiBold.ttf') format('truetype');font-weight:600;font-display:swap}
@font-face{font-family:'Chakra Petch';src:url('/vanguard/assets/fonts/ChakraPetch-Bold.ttf') format('truetype');font-weight:700;font-display:swap}
body{font-family:'Chakra Petch','Segoe UI',sans-serif}
/* A single light glass surface per overlay. No nested panel frames. */
:root{--vg-glass:rgba(28,27,39,.56);--vg-glass-strong:rgba(28,27,39,.64)}
dialog,.setup-panel,.prompt-dock,.prompt-peek,.ability-notice,.check-display,.log-panel{background:var(--vg-glass-strong)!important;border:1px solid #ffffff24!important;backdrop-filter:blur(12px);box-shadow:0 12px 36px #0004}
dialog::backdrop{background:#10101c45;backdrop-filter:none}
.dialog-head,.card-actions,.printed-info,.ability-frame,.printed-name{background:transparent!important;box-shadow:none!important;border:0!important}
.dialog-head{border-bottom:1px solid #ffffff18!important}
.audio-settings{display:grid;gap:17px;padding:24px}.audio-settings label{display:flex;justify-content:space-between;align-items:center;font-size:14px}.audio-settings output{font-variant-numeric:tabular-nums;color:#f4b2a3}.audio-settings input[type=range]{width:100%;min-height:44px;accent-color:#e78172;cursor:pointer}.audio-settings small{font-size:11px;color:#c8c4d3;line-height:1.6}#audio-dialog{width:min(410px,calc(100vw - 24px))}#audio-dialog .dialog-head h2{font-size:17px;margin:0}#sound.audio-muted{opacity:.5}.room-unavailable a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;border-radius:22px;padding:10px 22px;text-decoration:none;background:#e78172;color:#231c25}
.printed-name{padding-inline:0!important}.ability-frame{padding-inline:0!important}
.printed-info{color:#f2f4fc!important;background:#1018279e!important;border:1px solid #ffffff38!important;box-shadow:none!important;padding:16px;border-radius:10px}
.printed-info .eyebrow,.printed-info .printed-type,.printed-info .detail-note,.printed-info .symbol-legend{color:#c5ccdc}
.printed-info .printed-name{color:#fff;font-weight:700;padding:8px 0!important}
.printed-info .detail-stats{background:#ffffff08;border:0;border-bottom:1px solid #ffffff29;border-radius:0;padding:10px 0 14px;color:#f4f6ff}
.printed-info .ability-frame{border:1px solid #ffffff38!important;border-radius:7px;background:#10152238!important;box-shadow:none!important;color:#f2f4fc}
.printed-info .ability-frame h3{color:#e7edfa!important;background:#ffffff12!important;border-bottom:1px solid #ffffff29;font-weight:600}
.printed-info .ability-block{color:#f2f4fc!important;border-bottom-color:#ffffff29}
.result-card img{height:auto}
.unit-slot[data-drag-field]{cursor:grab}.unit-slot[data-drag-field]::after{position:absolute;top:-16%;left:50%;transform:translateX(-50%);padding:1px 5px;border:1px solid #d6e8ff77;border-radius:3px;background:#172f47e8;color:#fff;font-size:clamp(7px,.8vw,10px);font-weight:600;white-space:nowrap;pointer-events:none}
.unit-slot[data-drag-field=attack]::after{content:'ตี'}.unit-slot[data-drag-field=boost]::after{content:'บูสต์'}.unit-slot[data-drag-field=intercept]::after{content:'Intercept → G'}
.attack-preview{font-size:14px;color:#ffbc9e}.attack-preview small{font-size:9px;color:#c5ccdc;font-weight:400}
.hand-card.guard-staged{opacity:.45}.guard-controls{height:auto!important;min-height:0!important;width:min(540px,calc(100vw - 16px));padding:5px 0!important;flex:none}
.guarding .board-window{flex:1;min-height:0;height:auto!important}.guard-preview{width:100%;border:1px solid #ffffff38;border-radius:9px;background:#101a2bd9;padding:8px 10px;color:#f1f5ff;box-shadow:0 4px 14px #0004}
.guard-versus{display:flex;align-items:center;justify-content:center;gap:10px}.guard-versus>img{width:29px;height:41px;object-fit:contain;border-radius:3px}.guard-versus div{display:flex;flex-direction:column;text-align:center;min-width:0}.guard-versus small{font-size:9px;color:#c6d0e4}.guard-versus b{font-size:23px;line-height:1.1;font-variant-numeric:tabular-nums}.guard-versus>span{font-size:12px;font-weight:700;color:#f49c88}.guard-preview.enough .guard-versus div:last-of-type b{color:#b1d3f0}.guard-preview.short .guard-versus div:last-of-type b{color:#ffb09f}
.guard-draft{display:flex;align-items:center;gap:7px;min-height:52px;margin:7px 0 5px;padding:4px 7px;background:#ffffff06;border:1px dashed #a5c6ed7a;border-radius:6px;flex-wrap:wrap}.guard-draft>b{font-size:22px;font-style:italic;color:#bcd6f5}.guard-draft>span{font-size:10px;color:#cad6ec}.guard-draft>strong{font-size:11px;margin-left:auto;max-width:180px;font-weight:600}.guard-draft button{position:relative;width:29px;height:41px;min-height:0!important;padding:0!important;background:none!important;border:0;border-radius:3px;touch-action:none;flex:none}.guard-draft button img{height:100%;width:100%;object-fit:contain;pointer-events:none}.guard-draft button span{position:absolute;bottom:0;left:0;right:0;font-size:8px;text-align:center;color:#fff;background:#142035e0;pointer-events:none}
.guard-actions{display:flex;align-items:center;gap:6px;justify-content:flex-end}.guard-actions small{margin-right:auto;font-size:9px;color:#c3cee2;max-width:180px}.guard-actions button{font-size:11px;min-height:36px!important;padding:6px 12px!important;border-radius:5px}.guard-actions .primary{background:#dc7868;border-color:#ffc0a3;color:#171d2b}
@media(max-width:600px){.guard-preview{padding:7px}.guard-versus{gap:8px}.guard-versus b{font-size:21px}.guard-draft>strong{font-size:10px;max-width:155px}.guard-actions small{font-size:8px;max-width:120px}.guard-actions button{padding:6px 10px!important;min-height:40px!important}}
@media(max-height:550px) and (orientation:landscape){.guarding .guard-controls{position:absolute;right:10px;top:42px;width:min(370px,44vw);max-width:none}.guarding .fight-board{margin-left:8px;width:min(calc(100dvh - 100px),50vw)}.guarding .board-window{width:100%;height:calc(100% - 100px)!important;flex:none;justify-content:flex-start}.guard-versus b{font-size:20px}.guard-draft>strong{max-width:145px}.guard-actions small{font-size:8px;max-width:120px}}
.tabs{overflow-x:auto;white-space:nowrap;scrollbar-width:none}.tabs button{flex-shrink:0}
#account-button{font-size:12px;padding:8px 12px;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-form{display:flex;flex-direction:column;gap:14px;padding:24px}.account-form label{display:flex;flex-direction:column;gap:5px}.account-form p{margin:0;font-size:12px}.account-form .actions{display:flex}.account-form .actions button{flex:1}
.owned-note{font-size:11px;color:#c4bdd1;display:block;margin-top:3px}.owned-note.missing{opacity:.5}
.zone-switch{grid-column:1/-1!important;min-height:40px}
.card-cell.unowned img{opacity:.45;filter:grayscale(.7)}
.pack-page{text-align:center;max-width:800px;margin:auto}.pack-stage{min-height:380px;display:grid;place-items:center;perspective:1200px;padding:25px 0}
.sealed-pack{position:relative;display:block;border:0;background:none!important;padding:0;width:230px;aspect-ratio:260/430;touch-action:none;cursor:grab;filter:drop-shadow(0 14px 14px #0007);animation:pack-idle 5s ease-in-out infinite;overflow:visible}
.sealed-pack{aspect-ratio:460/894;overflow:hidden;border-radius:2px}.sealed-pack>img{width:100%;height:100%;object-fit:cover}.pack-tip{position:absolute;top:9%;left:3%;right:3%;padding:7px;color:white;background:#111b;border-radius:10px;font-size:11px;display:flex;gap:8px;justify-content:center;align-items:center}
.tear-cap{position:absolute;top:0;left:0;right:0;height:8%;background:linear-gradient(100deg,#ffffff00,#fff8,#ffffff00);border-bottom:2px dashed #ffffff8c;transform:translateX(var(--tear,0));transform-origin:100% 100%}
.sealed-pack.torn{animation:pack-open .65s forwards}.sealed-pack.torn .tear-cap{animation:tear-away .65s forwards}
.pack-actions{display:flex;justify-content:center;gap:10px;min-height:48px}.pack-actions button{min-height:46px;min-width:120px}.pack-rates{font-size:12px;color:#c5bdcd;margin:24px auto;max-width:520px}.pack-rates summary{cursor:pointer;min-height:44px;display:grid;place-items:center}.pack-rates p{line-height:1.8}
.pack-preview-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;margin-top:12px;font-size:12px}.pack-preview-button svg{width:19px;height:19px}
#pack-catalog[open]{display:flex;flex-direction:column;width:min(900px,calc(100vw - 24px));height:min(800px,calc(100dvh - 24px));overflow:hidden}#pack-catalog .dialog-head{flex:none}#pack-catalog .close{min-width:44px;min-height:44px}#pack-catalog-note{font-size:12px;color:#c5ccdc;margin:0;padding:12px 18px 6px}.pack-catalog-toolbar{display:flex;flex-wrap:wrap;gap:6px;padding:8px 18px 14px;border-bottom:1px solid #ffffff24;flex:none}.pack-catalog-toolbar button{font-size:11px;min-height:44px;padding:7px 12px;border-radius:6px}.pack-catalog-toolbar button[aria-pressed=true]{color:#fff;border-color:#ffb6a0;background:#e8877124}.pack-catalog-list{overflow:auto;overscroll-behavior:contain;min-height:0;padding:18px}.pack-card-clan+.pack-card-clan{margin-top:28px}.pack-card-clan h2{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:17px;border-bottom:1px solid #ffffff24;padding-bottom:9px;margin-bottom:14px}.pack-card-clan h2 small{font-size:11px;font-weight:400;color:#c5ccdc}.pack-catalog-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:16px 12px}.pack-catalog-grid .result-card{min-width:0;font-size:11px;overflow-wrap:anywhere}.pack-catalog-grid .result-card small{font-size:9px}.pack-catalog-grid img{height:auto;border-radius:5px}
@media(max-width:600px){#pack-catalog-note{font-size:10px;padding:10px 12px 4px}.pack-catalog-toolbar{padding:6px 12px 10px;gap:5px}.pack-catalog-toolbar button{font-size:10px;padding:6px 9px}.pack-catalog-list{padding:12px}.pack-catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 8px}.pack-card-clan h2{font-size:15px}.pack-catalog-grid .result-card{font-size:10px}}
.reveal-card{position:relative;width:210px;aspect-ratio:350/510;border:0;padding:0;background:none!important;perspective:1000px;transform-style:preserve-3d}.reveal-inner{position:absolute;inset:0;transform-style:preserve-3d;transition:transform .65s cubic-bezier(.2,.65,.2,1)}.reveal-card.flipped .reveal-inner{transform:rotateY(180deg)}.reveal-back,.reveal-front{position:absolute;inset:0;width:100%;height:100%;backface-visibility:hidden;border-radius:9px}.reveal-front{transform:rotateY(180deg)}.reveal-back{object-fit:contain}.reveal-stack p{font-size:13px;margin:15px 0 0;max-width:320px}
.foil-card{display:block;position:relative;isolation:isolate;border-radius:7px;overflow:hidden}.foil-card img{width:100%;height:100%;object-fit:contain;display:block}.foil-shine{pointer-events:none;position:absolute;inset:0;opacity:0;background:linear-gradient(115deg,transparent 15%,#b9d9ff22 30%,#f9bfff66 38%,#ffe1a9aa 42%,#c7fff266 46%,transparent 60%);background-size:280% 100%;mix-blend-mode:screen}.foil-active .foil-shine{opacity:.55;animation:foil-sweep 5s ease-in-out infinite}
.rarity-VR.flipped{filter:drop-shadow(0 0 16px #b8c5ff66)}.rarity-RRR.flipped{filter:drop-shadow(0 0 12px #ffe5b466)}
.rarity-LIR.flipped{filter:drop-shadow(0 0 18px #ffd5b88a)}.rarity-LIR .rarity-label{background:#ffe3b5;color:#38291d}
.result-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.result-card{padding:0;border:0;background:none!important;display:flex;flex-direction:column;text-align:left;font-size:12px;gap:5px}.result-card img{width:100%;aspect-ratio:350/510;object-fit:contain}.result-card small{color:#c5bdcd}
.field-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.field-choice{padding:0;background:none!important;border:0;text-align:left;position:relative}.field-choice img{width:100%;display:block;border-radius:12px;aspect-ratio:2/1;object-fit:cover}.field-choice span{display:block;font-size:12px;padding:7px 2px}.field-choice.selected img,.art-choice.selected .foil-card{outline:3px solid var(--ui-accent);outline-offset:3px}.foil-settings{margin-top:35px}.foil-settings label{display:flex;align-items:center;gap:10px;min-height:44px}.foil-settings input{width:22px;height:22px}.art-grid{display:flex;gap:24px;flex-wrap:wrap;margin-top:20px}.art-choice{width:140px;border:0;background:none!important;padding:0;text-align:left;font-size:11px}.art-choice .foil-card{aspect-ratio:350/510}.art-choice>span:last-child{display:block;padding-top:8px;overflow-wrap:anywhere}
.sleeve-settings{margin:24px 0 36px}.sleeve-settings>p{font-size:12px}.sleeve-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:22px 16px}.sleeve-choice{position:relative;min-width:0;border:0;background:none!important;padding:0;text-align:left;font-size:12px}.sleeve-choice img{display:block;width:100%;height:auto;aspect-ratio:350/510;object-fit:contain;border-radius:7px}.sleeve-choice>span{display:block;padding-top:9px;overflow-wrap:anywhere}.sleeve-choice.selected img{outline:3px solid var(--ui-accent);outline-offset:3px}.sleeve-active{position:absolute;top:7px;right:7px;padding:3px 8px;font-size:10px;color:#1c202a;background:#f1a78d;border-radius:4px}
@media(max-width:600px){.sleeve-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 12px}.sleeve-choice{font-size:10px}.sleeve-active{font-size:9px;top:5px;right:5px;padding:2px 6px}}
.board-half.custom-field{background-image:var(--selected-field)!important}.custom-field .unit-slot.empty{border:1px dashed #fff5;border-radius:50%;background:#17142333!important}.unit-slot.foil-active::before,.hand-card.foil-active::before{content:'';pointer-events:none;position:absolute;inset:0;z-index:1;border-radius:inherit;background:linear-gradient(115deg,transparent 20%,#fff5 45%,#b0dcff66 50%,transparent 65%);background-size:280% 100%;mix-blend-mode:screen;animation:foil-sweep 5s ease-in-out infinite}.gift-badge{white-space:nowrap}
.board-half.has-accel{background-size:100% 100%;background-repeat:no-repeat}.has-accel .nameplate{top:60.5%}.unit-slot.accel-slot{width:var(--accel-width,8%)}.accel-slot .unit-stat{bottom:0}.accel-slot .gift-badge{left:50%;top:1%;transform:translateX(-50%)}.opponent .accel-slot .gift-badge{transform:translateX(-50%) rotate(180deg)}.unit-slot.accel-slot.empty{border:1px dashed #dca5ff99;border-radius:50%;background:#b998cf18!important}.gift-badge{border-radius:6px;font-size:clamp(6px,.7vw,9px);padding:1px 3px}#zone-cards button[aria-pressed=true]{outline:3px solid var(--ui-accent);border-radius:6px}#confirm-group-guard{grid-column:1/-1;min-height:44px}
.trigger-source{display:flex;align-items:center;justify-content:center;gap:10px;margin:10px 0}.trigger-source>img{width:38px;height:55px;object-fit:contain;flex:none}.trigger-source h2{margin:0}.prompt-dock .choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:35dvh}.prompt-dock .choice{min-width:0;width:100%;padding:5px;align-self:start}.prompt-dock .choice span{font-size:10px;overflow-wrap:anywhere}.prompt-dock .choice img{width:60px;height:86px}.unit-slot.rest.foil-active::before{transform:rotate(90deg)}
@media(max-width:900px){.choosing-trigger .check-display{display:none!important}.prompt-dock .choice-grid{grid-template-columns:repeat(3,minmax(0,1fr));max-height:30dvh}.trigger-source h2{font-size:13px}.prompt-dock .choice{padding:4px}.prompt-dock .choice img{width:58px;height:83px}}
@media(max-height:550px) and (orientation:landscape){.prompt-dock{max-height:calc(100dvh - 90px);width:min(310px,38vw);max-width:none;top:24px}.prompt-dock .choice-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-height:35dvh}.trigger-source{margin:4px 0}.trigger-source>img{width:25px;height:36px}.prompt-dock .choice img{width:40px;height:57px}.trigger-source h2{font-size:10px}.prompt-dock p{margin:6px 0}}
@keyframes pack-idle{50%{transform:translateY(-7px) rotate(1deg)}}@keyframes pack-open{50%{transform:scale(1.05) rotate(-4deg);opacity:1}100%{transform:translateY(40px) scale(.92);opacity:0}}@keyframes tear-away{to{transform:translateX(190px) rotate(35deg);opacity:0}}@keyframes foil-sweep{0%,100%{background-position:100% 50%}50%{background-position:0 50%}}
@media(max-width:600px){.topbar{gap:5px}.edition{display:none}.tabs{padding-inline:6px;gap:2px}.tabs button{flex:0 0 auto;padding:8px;font-size:11px!important}.pack-stage{min-height:330px;padding:18px 0}.sealed-pack{width:185px}.reveal-card{width:180px}.result-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.field-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.art-grid{gap:15px}.art-choice{width:100px}.account-form{padding:18px}.starter-grid{gap:12px}}
@media(max-height:550px) and (orientation:landscape){.pack-stage{min-height:240px}.sealed-pack{width:145px}.reveal-card{width:130px}.result-grid{grid-template-columns:repeat(7,minmax(0,1fr))}.field-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.foil-shine,.sealed-pack,.unit-slot::before,.hand-card::before{animation:none!important}.reveal-inner{transition:none}.sealed-pack.torn{opacity:0}}

.v2-field-grid .field-choice img{aspect-ratio:32/9;object-fit:contain;border-radius:5px}

.auth-captcha{display:grid;gap:7px;width:100%;min-width:0;margin:14px 0}.auth-captcha small{color:#aac5dc;font-size:12px;line-height:1.5}#auth-captcha-widget{width:100%;min-width:0}#account-dialog{max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain}#account-form button:disabled{opacity:.55;cursor:wait}
#redeem-dialog{width:min(460px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow-y:auto;border:1px solid #7ab8ed80;border-radius:16px;background:linear-gradient(145deg,#182942,#0f182b);box-shadow:0 20px 70px #0009,0 0 28px #57b3ff20}#redeem-status{min-height:1.5em;line-height:1.7;color:#b6e1ff;overflow-wrap:anywhere}#redeem-form input{font-size:16px;min-width:0;width:100%;box-sizing:border-box}#redeem-form button{min-height:44px}#redeem-form button:disabled{opacity:.55;cursor:wait}
.sleeve-upload-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:16px 0 24px}.sleeve-upload-tools button{min-height:44px;border:1px solid #71c9ff80;border-radius:10px;background:linear-gradient(135deg,#224165,#142439);color:#d4eeff;padding:10px 18px}.sleeve-upload-tools small{color:#aebfd4}.sleeve-upload-dialog{width:min(440px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain;padding:20px;border:1px solid #71c9ff80;border-radius:18px;background:linear-gradient(145deg,#182942,#0e1726);color:#edf4ff;box-shadow:0 24px 80px #000a}.sleeve-upload-dialog::backdrop{background:#050a14c9}.sleeve-upload-dialog h2{margin:0;font-size:22px}.sleeve-upload-dialog p{font-size:13px;color:#b6c7dd}.sleeve-upload-dialog canvas{display:block;width:145px;max-width:100%;height:auto;margin:14px auto;border-radius:9px;box-shadow:0 12px 30px #0009,0 0 0 1px #71c9ff60}.sleeve-upload-dialog label{display:grid;grid-template-columns:80px 1fr;align-items:center;gap:12px;margin:8px 0;font-size:14px}.sleeve-upload-dialog input{width:100%;min-width:0;accent-color:#71c9ff;min-height:32px}.sleeve-upload-actions{display:flex;justify-content:flex-end;gap:10px}.sleeve-upload-dialog button{min-height:44px;padding:8px 14px;border-radius:9px}.sleeve-upload-actions [data-sleeve-save]{background:linear-gradient(135deg,#2764a1,#204166);border:1px solid #71c9ff;color:#e8f5ff}.sleeve-upload-dialog [data-sleeve-status]{min-height:1.5em;color:#a8dfff}.sleeve-upload-dialog button:disabled{opacity:.55;cursor:wait}@media(max-height:600px){.sleeve-upload-dialog canvas{width:95px;margin:8px auto}.sleeve-upload-dialog{padding:14px}.sleeve-upload-dialog label{margin:2px 0}}

.product-total{display:block;font-size:11px;line-height:1.6;color:#93c9e5;margin:5px 0;overflow-wrap:anywhere}.shop-pack-grid>button{position:relative}.shop-pack-grid .pack-new{position:absolute;top:12px;right:12px;z-index:1;padding:4px 11px;border:1px solid #a9ffe0;border-radius:9px;background:linear-gradient(130deg,#176d58,#123b49);color:#d0fff0;font-size:12px;font-weight:800;letter-spacing:1px;box-shadow:0 0 14px #70ffc56b;text-shadow:0 0 8px #70ffc5;animation:pack-new-glow 2.2s ease-in-out infinite;pointer-events:none}.shop-pack-grid .product-total{font-size:12px;margin:2px 0 8px}@keyframes pack-new-glow{50%{box-shadow:0 0 22px #70ffc5aa,0 0 6px #baffea80;text-shadow:0 0 12px #baffea}}@media(prefers-reduced-motion:reduce){.shop-pack-grid .pack-new{animation:none}}
