/* The game surfaces extend the guild palette with foil blue, brass and felt. */
.pack-room,.duel-arena,.duel-lobby{--g-bg:#142044;--g-ink:#f4f1e4;--g-soft:#b4bfd1;--g-line:#556178;--g-gold:#edca80;color:var(--g-ink);background:var(--g-bg);border:1px solid #183bb9;border-radius:18px;overflow:hidden;isolation:isolate}.pack-room ::selection,.duel-arena ::selection,.duel-lobby ::selection{background:#edca80;color:#142044}.pack-room-head,.arena-top{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:24px 28px;border-bottom:1px solid var(--g-line)}.pack-room-head h2,.arena-top h2{font-size:24px;margin:0 0 8px}.pack-room-head p{font-size:12px;color:var(--g-soft);margin:0}.game-audio{display:flex;gap:7px;flex-shrink:0}.g-button{border:1px solid #808ca2;background:#1b347a;color:#f4f1e4;border-radius:7px;font-family:inherit;font-size:13px;font-weight:600;line-height:1.5;padding:10px 15px;cursor:pointer;display:inline-flex;gap:7px;align-items:center;justify-content:center;text-decoration:none}.g-button:hover{background:#183bb9}.g-button:focus-visible,.tear-handle:focus-visible,.duel-card:focus-visible,.mystery-card:focus-visible{outline:3px solid #edca80;outline-offset:4px}.g-button:disabled{opacity:.45;cursor:not-allowed}.game-audio .g-button{font-size:11px;padding:7px 9px;background:transparent}.game-audio svg{height:15px;width:15px}.game-audio .is-on{color:#edca80;border-color:#edca80}.gold-button{background:#edca80;color:#142044;border-color:#edca80;box-shadow:0 5px 12px #0003;padding:13px 24px}.gold-button:hover{background:#ffdc93}.unbox-table{position:relative;min-height:420px;display:grid;place-items:center;perspective:1100px;background:radial-gradient(ellipse at 50% 52%,#183bb9 0,transparent 64%)}.sealed-pack{position:relative;width:225px;height:314px;transform:rotate(-5deg);filter:drop-shadow(9px 20px 14px #0006);transition:transform .6s cubic-bezier(.16,1,.3,1)}.sealed-pack:hover{transform:rotate(-2deg) translateY(-3px)}.pack-foil{height:100%;position:relative;display:flex;flex-direction:column;padding:28px 23px 22px;background:linear-gradient(110deg,#222d8b,#465ce1 33%,#2736a1 60%,#5c6dc4 79%,#202c80);border:1px solid #c5cafa;border-radius:4px;color:#fff;box-shadow:inset 6px 0 9px #fff2,inset -8px 0 12px #0004;overflow:hidden}.pack-foil:before,.pack-foil:after{content:'';position:absolute;left:0;right:0;height:14px;background:repeating-linear-gradient(90deg,#bec6ff66 0 1px,#111a6055 1px 4px)}.pack-foil:before{top:0}.pack-foil:after{bottom:0}.pack-brand{font-size:11px;letter-spacing:.1em}.pack-foil>strong{font-size:32px;line-height:1.2;margin-top:21px;letter-spacing:.03em}.pack-emblem{position:absolute;right:20px;top:103px;width:76px;height:76px;display:grid;place-items:center;transform:rotate(12deg);border:1px solid #edca80;border-radius:50%;color:#edca80}.pack-emblem svg{width:48px;height:48px}.pack-edition{margin-top:auto;font-size:12px}.pack-bottom{font-size:8px;margin-top:14px;letter-spacing:.12em;color:#d9dfff}.pack-rip-top{--rip:0;position:absolute;top:-12px;left:-3px;right:-3px;height:35px;z-index:3;background:repeating-linear-gradient(90deg,#b5c4ff 0 1px,#293c97 1px 5px);border:1px solid #d7dcff;border-radius:3px;transform:translate(calc(var(--rip)*60px),calc(var(--rip)*-16px)) rotate(calc(var(--rip)*9deg));transform-origin:left;display:flex;align-items:center;justify-content:space-between;padding:0 9px;color:#fff;transition:filter .2s}.pack-rip-top span{font-size:9px;background:#17286e;padding:3px 7px}.tear-handle{position:absolute;right:-69px;top:-13px;z-index:4;background:#edca80;color:#142044;border:1px solid #f8e3ae;border-radius:4px;padding:8px 10px;font-weight:700;font-size:10px;touch-action:none;cursor:grab;box-shadow:0 4px 9px #0003}.tear-handle:active{cursor:grabbing}.tear-handle span{font-size:15px;margin-left:6px}.is-torn .pack-rip-top{animation:tear-off .6s cubic-bezier(.16,1,.3,1) forwards}.is-torn .tear-handle{opacity:0}.is-torn .pack-foil{animation:foil-drop .6s ease-in forwards}.pack-instruction{text-align:center;color:#dce2ed;font-size:13px;line-height:1.8;padding:0 20px 15px;margin:0;min-height:42px}.pack-room-footer{display:flex;justify-content:space-between;align-items:center;gap:15px;border-top:1px solid var(--g-line);padding:18px 28px;color:#ccd4e1;font-size:12px}.game-honesty{font-size:11px;color:var(--muted);line-height:1.8;margin:16px 0 28px}.reveal-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;padding:35px 42px 25px;perspective:1400px}.reveal-slot{min-width:0}.mystery-card{width:100%;min-height:315px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:25px;border:2px solid #c7a765;border-radius:13px;background:repeating-linear-gradient(45deg,#1b347a 0 7px,#182958 7px 8px);color:#e3c37d;box-shadow:0 9px 18px #0005;cursor:pointer;transition:transform .25s}.mystery-card:hover{transform:translateY(-7px) rotate(1deg)}.mystery-card b{font-size:13px}.mystery-card small{font-size:11px;color:#dce2ed}.card-back-emblem{width:86px;height:86px;border:1px solid #bea365;border-radius:50%;display:grid;place-items:center}.card-back-emblem svg{width:44px;height:44px}.is-revealed{animation:card-reveal .65s cubic-bezier(.16,1,.3,1)}
.duel-card{--card-accent:#96793f;position:relative;width:100%;min-width:0;display:flex;flex-direction:column;align-items:stretch;text-align:left;background:#f2efdf;color:#142044;border:2px solid var(--card-accent);border-radius:12px;padding:13px;box-shadow:0 6px 13px #0003;cursor:pointer;transition:transform .22s,filter .22s;overflow:hidden;min-height:315px;font-family:inherit}.duel-card:hover{transform:translateY(-6px)}.duel-card-top{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#45516a;gap:6px}.duel-card-top b{color:var(--card-accent);font-size:12px}.duel-card-art{display:grid;place-items:center;min-height:108px;margin:12px 0;border:1px solid #b4bfd1;border-radius:50% 50% 5px 5px;background:linear-gradient(135deg,#ccd4e1,#f7f2d7);color:#183bb9;position:relative}.duel-card-art:after{content:'';position:absolute;inset:10px;border:1px solid #b4bfd1;border-radius:inherit}.duel-card-art svg{width:48px;height:48px}.duel-card.guard .duel-card-art{background:linear-gradient(135deg,#d7e2e5,#f1f3e7);color:#416779}.duel-card.strike .duel-card-art{background:linear-gradient(135deg,#e8d2ad,#f4e8ca);color:#895b25}.duel-card>strong{font-size:15px;line-height:1.5;min-height:45px;margin:0 0 12px}.skill-line{display:flex;gap:8px;align-items:flex-start;padding:9px 0;border-top:1px solid #b4bfd1}.skill-line>svg{width:19px;height:19px;flex-shrink:0;margin-top:2px}.skill-line b{font-size:12px;display:block;margin-bottom:4px}.skill-line small{font-size:10px;line-height:1.6;display:block;color:#45516a}.duel-card-foot{margin-top:auto;padding-top:9px;font-size:9px;color:#556178}.reveal-row .duel-card:after{content:'';position:absolute;inset:0;background:linear-gradient(115deg,transparent 35%,#fff8 48%,transparent 62%);transform:translateX(-130%);animation:foil-shine 1.4s ease-out .3s;pointer-events:none}.reveal-row .duel-card[style*='865ab4'],.reveal-row .duel-card[style*='bd792b'],.reveal-row .duel-card[style*='b34444']{box-shadow:0 9px 24px #0006,inset 0 0 0 2px #edca80}
.duel-arena{background:radial-gradient(ellipse at 50% 25%,#183bb9,#142044 72%);position:relative}.arena-top>strong{font-size:21px}.arena-top>span{font-size:12px;color:#edca80}.versus-row,.lobby-versus{display:grid;grid-template-columns:1fr 50px 1fr;align-items:center;gap:20px;padding:27px 30px}.fighter{display:flex;gap:13px;align-items:center;min-width:0}.fighter-avatar{display:grid;place-items:center;flex-shrink:0;width:61px;height:61px;border:2px solid #e2c37c;border-radius:50%;background:#183bb9;font-size:24px;color:#f2dba1;overflow:hidden;box-shadow:0 5px 12px #0003}.fighter-avatar img{width:100%;height:100%;object-fit:cover}.fighter-info{min-width:0;flex:1}.fighter-info>strong{font-size:15px;display:block;margin-bottom:10px;overflow-wrap:anywhere}.hp-track{height:12px;border:1px solid #808ca2;background:#101831;border-radius:4px;padding:2px;overflow:hidden}.hp-track>span{display:block;height:100%;border-radius:2px;background:#9aaad3;width:100%;transform-origin:left;transition:transform .55s cubic-bezier(.16,1,.3,1)}.fighter.enemy .hp-track>span{background:#dfb06f}.fighter p{font-size:10px;color:#ccd4e1;margin:6px 0 0}.fighter p b{font-size:12px;color:#f6efdc}.fighter p span{float:right;color:#edca80}.fighter.enemy{flex-direction:row-reverse}.fighter.enemy .fighter-info>strong{text-align:right}.vs-mark{font-size:19px;font-weight:700;color:#d8b875;text-align:center;font-style:italic}.combat-stage{min-height:175px;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:20px 25px;text-align:center;background:linear-gradient(90deg,transparent,#69758b22,transparent);border-top:1px solid #69758b55;border-bottom:1px solid #69758b55}.combat-stage h2{font-size:28px;margin:0 0 10px;color:#f0d48e}.combat-stage p{font-size:12px;color:#ccd4e1;line-height:1.8;margin:0 0 15px}.clash-cards{display:grid;grid-template-columns:1fr 40px 1fr;gap:22px;align-items:center;width:min(100%,490px)}.clash-cards>div{display:flex;flex-direction:column;align-items:center;gap:7px}.clash-cards svg{width:41px;height:41px;color:#edd28b}.clash-cards strong{font-size:15px}.clash-cards span{font-size:11px;color:#ccd4e1}.clash-line{height:1px;width:40px;background:#e5c888}.hand-heading{display:flex;align-items:center;justify-content:space-between;padding:23px 30px 0;gap:12px}.hand-heading h3{margin:0;color:#f4edda;font-size:17px}.hand-heading span{font-size:11px;color:#b4bfd1}.duel-hand{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;padding:20px 30px 12px;max-width:850px;margin:auto}.duel-hand .duel-card{min-height:270px}.duel-hand .duel-card-art{min-height:75px}.duel-hand .duel-card:disabled{filter:grayscale(1);opacity:.48;cursor:not-allowed;transform:scale(.96)}.duel-hand .duel-card:disabled:after{content:'冷却中';position:absolute;top:40%;left:0;right:0;padding:9px;text-align:center;background:#182958;color:white;font-size:13px;font-weight:700}.cooldown-note{text-align:center;font-size:11px;color:#ccd4e1;padding:0 15px}.arena-exit{display:block;margin:16px auto 24px;border:0;background:none;color:#ccd4e1;text-decoration:underline;text-underline-offset:4px;font-size:11px;cursor:pointer}.duel-rules{margin:18px 0 25px;color:#45516a;font-size:12px;line-height:1.9;border:1px solid var(--line);border-radius:9px;padding:15px 18px;background:#fff}.duel-rules summary{font-size:13px;font-weight:600;cursor:pointer}.duel-rules p{max-width:80ch}.combat-log{border-top:1px solid #556178;padding:16px 28px;color:#ccd4e1;font-size:11px;line-height:1.8}.combat-log summary{cursor:pointer}.combat-log p{margin:8px 0}.duel-lobby{padding-bottom:25px}.lobby-copy{padding:0 30px;color:#ccd4e1;font-size:13px;line-height:1.8}.deck-toolbar{display:flex;align-items:center;justify-content:space-between;margin:25px 30px 18px;gap:16px}.deck-toolbar label{display:flex;align-items:center;gap:12px;font-size:12px}.deck-toolbar select{padding:9px 12px;background:#1b347a;color:#fff3d8;border:1px solid #808ca2;border-radius:6px;font-family:inherit}.deck-toolbar strong{font-size:13px;color:#edca80;white-space:nowrap}.deck-builder{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;padding:0 30px}.deck-option{position:relative;cursor:pointer;min-width:0;display:block}.deck-option input{position:absolute;top:9px;right:10px;z-index:3;accent-color:#183bb9;width:20px;height:20px}.deck-option .duel-card{pointer-events:none;min-height:315px;padding-top:35px}.deck-selected{display:none;position:absolute;left:2px;right:2px;bottom:2px;background:#eac57b;color:#182958;text-align:center;padding:7px;font-size:11px;border-radius:0 0 9px 9px;font-weight:700}.deck-option:has(input:checked) .duel-card{outline:3px solid #edca80;outline-offset:3px;transform:translateY(-4px)}.deck-option:has(input:checked) .deck-selected{display:block}.deck-option:has(input:focus-visible){outline:3px solid #eac57b;outline-offset:5px;border-radius:10px}.deck-launch{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:25px 30px 0}.deck-launch p{font-size:12px;color:#e4d7b6}.lobby-lock{margin:20px 30px;background:#1b347a;border:1px solid #8c8c62;border-radius:8px;padding:18px;font-size:13px}.lobby-lock p{font-size:12px;color:#ccd4e1}.is-casting{animation:cast-charge .48s ease-in forwards}.card-casting{animation:card-cast .48s ease-in forwards}.impact .fighter{animation:hit-jolt .42s ease-out}.impact .combat-stage{animation:combat-flash .55s ease-out}.impact .clash-cards{animation:hit-burst .5s ease-out}
@keyframes tear-off{to{transform:translate(130px,-90px) rotate(30deg);opacity:0}}@keyframes foil-drop{to{transform:translateY(35px) rotate(8deg);opacity:0}}@keyframes card-reveal{from{transform:rotateY(85deg) translateY(20px);filter:brightness(2)}to{transform:none;filter:none}}@keyframes foil-shine{to{transform:translateX(150%)}}@keyframes card-cast{to{transform:translateY(-35px) scale(1.06);filter:brightness(1.8)}}@keyframes cast-charge{to{filter:brightness(1.7)}}@keyframes hit-jolt{20%{transform:translateX(-6px)}45%{transform:translateX(5px)}70%{transform:translateX(-2px)}100%{transform:none}}@keyframes combat-flash{from{background-color:#d3b26b66}to{background-color:transparent}}@keyframes hit-burst{from{transform:scale(.85);filter:blur(3px) brightness(2)}to{transform:scale(1);filter:none}}
@media(max-width:1150px){.deck-builder{grid-template-columns:repeat(3,minmax(0,1fr))}.reveal-row{gap:15px;padding:28px}.pack-room-head{padding:22px}.pack-room-head h2{font-size:22px}}
@media(max-width:760px){.pack-room,.duel-arena,.duel-lobby{border-radius:12px}.pack-room-head{padding:20px 16px;display:block}.pack-room-head h2{font-size:22px}.game-audio{margin-top:14px}.unbox-table{min-height:385px}.sealed-pack{width:204px;height:288px;margin-left:-20px}.tear-handle{right:-56px;font-size:9px;padding:8px}.pack-foil>strong{font-size:28px}.pack-emblem{right:16px;top:97px;width:67px;height:67px}.pack-instruction{font-size:11px;padding:0 15px 15px}.reveal-row{gap:8px;padding:24px 10px}.mystery-card{min-height:227px;border-radius:8px;gap:17px}.mystery-card b{font-size:9px}.mystery-card small{font-size:9px}.card-back-emblem{width:47px;height:47px}.card-back-emblem svg{width:26px;height:26px}.reveal-row .duel-card{padding:7px;min-height:265px;border-radius:8px}.duel-card-top{font-size:8px;align-items:start}.duel-card-top b{font-size:9px}.reveal-row .duel-card-art{min-height:70px;margin:10px 0}.duel-card-art svg{width:33px;height:33px}.reveal-row .duel-card>strong{font-size:11px;min-height:51px}.reveal-row .skill-line{gap:3px;flex-direction:column;padding:6px 0}.reveal-row .skill-line>svg{width:14px;height:14px}.reveal-row .skill-line b{font-size:9px}.reveal-row .skill-line small{font-size:9px}.duel-card-foot{font-size:8px}.pack-room-footer{padding:15px 12px;font-size:10px;gap:7px}.pack-room-footer .g-button{font-size:11px;padding:9px}.arena-top{padding:18px 15px;gap:9px;flex-wrap:wrap}.arena-top>strong,.arena-top h2{font-size:20px}.arena-top .game-audio{margin:0}.arena-top .g-button{font-size:9px;padding:6px}.versus-row,.lobby-versus{padding:22px 12px;gap:7px;grid-template-columns:1fr 24px 1fr;align-items:start}.fighter{gap:7px;display:block}.fighter-avatar{width:42px;height:42px;font-size:18px;margin:0 0 10px}.fighter.enemy .fighter-avatar{margin-left:auto}.fighter-info>strong{font-size:11px;min-height:16px;margin-bottom:8px}.fighter.enemy{display:block}.fighter p{font-size:8px}.fighter p b{font-size:10px}.fighter p span{float:none;display:block;margin-top:4px}.vs-mark{font-size:15px;align-self:center}.hp-track{height:11px}.combat-stage{min-height:150px;padding:17px 14px}.combat-stage h2{font-size:22px}.combat-stage p{font-size:11px}.clash-cards{gap:7px;grid-template-columns:1fr 20px 1fr}.clash-cards svg{width:30px;height:30px}.clash-cards strong{font-size:13px}.clash-cards span{font-size:10px}.clash-line{width:20px}.hand-heading{padding:20px 12px 0}.hand-heading h3{font-size:14px}.hand-heading span{font-size:9px}.duel-hand{padding:15px 9px 8px;gap:7px}.duel-hand .duel-card{padding:7px;min-height:255px;border-radius:8px}.duel-hand .duel-card-art{min-height:59px}.duel-hand .duel-card>strong{font-size:11px;min-height:50px;margin-bottom:6px}.duel-hand .skill-line{display:block}.duel-hand .skill-line>svg{width:14px;height:14px}.duel-hand .skill-line b{font-size:10px}.duel-hand .skill-line small{font-size:9px}.cooldown-note{font-size:9px}.deck-toolbar{margin:22px 14px 18px;gap:8px}.deck-toolbar label{font-size:10px;gap:5px}.deck-toolbar select{font-size:11px;max-width:100px}.deck-toolbar strong{font-size:11px}.deck-builder{grid-template-columns:repeat(2,minmax(0,1fr));padding:0 14px;gap:13px}.deck-option .duel-card{min-height:300px;padding:33px 10px 27px}.deck-option .duel-card>strong{font-size:13px}.deck-option .duel-card-art{min-height:70px}.deck-option .skill-line{gap:5px}.deck-option .skill-line small{font-size:9px}.deck-launch{padding:20px 14px 0;display:block}.deck-launch .g-button{width:100%}.lobby-copy{padding:0 15px;font-size:11px}.lobby-lock{margin:18px 14px;font-size:12px}.combat-log{padding:15px}.duel-rules{font-size:11px}.game-honesty{font-size:10px}}
@media(prefers-reduced-motion:reduce){.sealed-pack,.hp-track>span,.duel-card,.mystery-card{transition:none!important}.is-torn .pack-rip-top,.is-torn .pack-foil,.is-revealed,.reveal-row .duel-card:after,.is-casting,.card-casting,.impact .fighter,.impact .combat-stage,.impact .clash-cards{animation:none!important}}
/* Keep health and the hand close enough to read in the same turn. */
.battle-routebar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:16px}.battle-routebar>span{font-size:11px;color:var(--muted)}.duel-arena .arena-top{padding:17px 25px}.duel-arena .versus-row{padding:18px 25px}.duel-arena .combat-stage{min-height:117px}.duel-arena .hand-heading{padding-top:18px}.duel-arena .duel-hand{padding-top:15px}.duel-arena .duel-card{min-height:242px}.duel-arena .duel-card-art{min-height:60px}.duel-arena .duel-card>strong{margin-bottom:8px}.duel-arena .cooldown-note{margin:7px 0}.duel-arena .arena-exit{margin:10px auto 16px}
.impact .hp-track>span{animation:hp-change .65s cubic-bezier(.16,1,.3,1)}@keyframes hp-change{from{transform:scaleX(var(--hp-before))}}
@media(max-width:760px){.battle-routebar{margin-bottom:12px}.battle-routebar>span{font-size:9px}.battle-routebar .btn{font-size:10px}.duel-arena .arena-top{padding:13px 12px}.duel-arena .versus-row{padding:15px 12px}.duel-arena .fighter-avatar{width:35px;height:35px;margin-bottom:7px;font-size:16px}.duel-arena .combat-stage{min-height:106px;padding:12px}.duel-arena .duel-hand{padding:12px 8px 6px}.duel-arena .duel-card{min-height:230px}.duel-arena .duel-card-art{min-height:45px;margin:8px 0}.duel-arena .duel-card>strong{min-height:46px}.duel-arena .cooldown-note{font-size:8px}.duel-arena .hand-heading{padding-top:13px}.duel-arena .arena-exit{margin:9px auto 12px}.duel-arena .combat-log{padding:12px}}
@media(prefers-reduced-motion:reduce){.impact .hp-track>span{animation:none!important}}
/* Rebuild: tactile foil asset and legible skill effects. */
@font-face{font-family:GuildPack;src:url('game-assets/pack-display.ttf');font-display:swap;font-weight:400}
.pack-foil{background:url('game-assets/cobalt-foil-pack.v2.webp') center top/114% 108% no-repeat;border:0;border-radius:0;box-shadow:none;clip-path:inset(35px 0 0 0);padding-top:52px}.pack-foil:before,.pack-foil:after{display:none}.pack-foil>strong{font-family:GuildPack,sans-serif;font-weight:400;font-size:38px;text-shadow:0 2px 4px #0e2678}.pack-brand,.pack-edition,.pack-bottom{text-shadow:0 1px 3px #0e2678}.pack-rip-top{top:0;left:0;right:0;height:35px;border:0;border-radius:0;background:url('game-assets/cobalt-foil-pack.v2.webp') center top/114% 339px no-repeat}.pack-rip-top span{background:#112c6fcc;border-radius:3px}.tear-handle{top:1px}
@media(max-width:760px){.pack-foil{padding-top:46px}.pack-foil>strong{font-size:34px}.pack-rip-top{background-size:114% 311px}.pack-emblem{top:118px;width:58px;height:58px;right:17px}.reveal-row .duel-card,.duel-hand .duel-card{min-height:306px}.reveal-row .skill-line small,.duel-hand .skill-line small,.deck-option .skill-line small{font-size:12px;line-height:1.6}.reveal-row .skill-line b,.duel-hand .skill-line b{font-size:11px}.duel-hand .skill-line>svg{width:16px;height:16px}.duel-card-foot{font-size:9px}.duel-hand .duel-card>strong{font-size:12px}.reveal-row .duel-card>strong{font-size:12px}.deck-option .duel-card{min-height:330px}.duel-arena .duel-card{min-height:306px}.duel-arena .duel-card-art{min-height:45px}.duel-arena .cooldown-note{font-size:10px}}
