.adventure-gate{overscroll-behavior:contain;width:min(620px,100%);max-height:calc(100dvh - 16px);overflow-y:auto}.adv-actions{z-index:2;background:linear-gradient(#141c5c00,#141c5cf5 28%);flex-wrap:wrap;justify-content:center;gap:10px;margin:12px -4px -8px;padding:10px 4px 8px;position:sticky;bottom:-14px}.adv-celebrate{border:2px solid var(--gold);background:linear-gradient(90deg,#28d7ff2e,#ffd21f38);border-radius:10px;justify-content:center;align-items:center;gap:8px;margin:8px 0 2px;padding:8px 12px;font-size:16px;font-weight:900;display:flex}.adv-card{text-align:left;background:#0a0f338c;border:3px solid #ffffff38;border-radius:14px;margin:10px 0 8px;overflow:hidden}.adv-card.restoration{border-color:#ffb347}.adv-card.creature{border-color:#7be38a}.adv-card.investigation{border-color:#86b8ff}.adv-pic{aspect-ratio:16/7.5;background:#0a0f33;position:relative}.adv-pic .adv-place{object-fit:cover;width:100%;height:100%;display:block}.adv-realm{border:2px solid var(--gold);font-family:var(--display);text-transform:uppercase;color:var(--gold);background:#0a0f33d1;border-radius:999px;align-items:center;gap:6px;padding:3px 10px 3px 4px;font-size:15px;display:inline-flex;position:absolute;top:10px;left:10px}.adv-body{padding:10px 14px 8px}.adv-name{font-family:var(--display);-webkit-text-stroke:.08em var(--ink);paint-order:stroke fill;font-size:clamp(22px,5vw,30px);line-height:1.05}.adv-purpose{color:var(--gold);align-items:center;gap:6px;margin-top:4px;font-weight:900;display:flex}.adv-body .sub{margin:4px 0 0}.adv-chips{flex-wrap:wrap;justify-content:center;gap:6px 8px;margin:8px 0;display:flex}.adv-chip{background:#0a0f33b3;border:2px solid #fff3;border-radius:999px;align-items:center;gap:4px;padding:3px 9px 3px 4px;font-size:14px;display:inline-flex}.adv-chip img{width:24px;height:24px}.adv-chip b{font-family:var(--display);font-size:16px}.adv-chip small{opacity:.85;font-weight:800}.adv-fights{justify-content:center;gap:8px;margin:4px 0 10px;display:flex}.adv-fight{aspect-ratio:3/4;background:#0a0f3399;border:3px solid #ffffff40;border-radius:9px;width:62px;position:relative}.adv-fight.maybe{opacity:.8;border-style:dashed}.adv-fight .pic{object-fit:cover;border-radius:6px;width:100%;height:100%;display:block}.adv-fight .count{font-family:var(--display);background:#0a0f33d9;border-radius:8px;padding:0 6px;font-size:13px;position:absolute;bottom:3px;left:3px}.adv-fight .twist{border:2px solid var(--gold);background:linear-gradient(#7a2ff0,#3a1280);border-radius:50%;place-items:center;width:28px;height:28px;display:grid;position:absolute;top:-8px;right:-7px}.adv-fight .twist img{width:18px;height:18px}.adv-pips{justify-content:center;gap:6px;margin:8px 0;display:flex}.adv-pips i{border:2px solid var(--ink);background:#ffffff47;border-radius:50%;width:15px;height:15px}.adv-pips i.won{background:var(--gold)}.adv-pips i.now{box-shadow:0 0 0 2px var(--gold), 0 0 10px #ffd21fe6;background:#fff}.adv-rest{justify-items:center;gap:4px;margin:10px 0;display:grid}.adv-rest img{width:64px;height:64px}.adv-book .hud-badge{margin-left:6px;position:static}.adv-choice{text-align:center;width:min(560px,100%)}.adv-opts{gap:12px;margin-top:12px;display:grid}.adv-choice-btn.btn{text-align:left;justify-content:flex-start;min-height:86px}.adv-choice-btn .btn-in{text-align:left;align-items:center;gap:12px;display:flex;transform:none}.adv-choice-btn img{flex:none;width:44px;height:44px}.adv-opt{gap:2px;display:grid}.adv-opt b{font-family:var(--display);font-size:21px;line-height:1.1}.adv-opt small{opacity:.92;white-space:normal;font-size:14px;font-weight:800;line-height:1.25}.adv-discovery{text-align:center;width:min(420px,100%)}.adv-discovery .kicker{font-family:var(--display);text-transform:uppercase;color:var(--gold);letter-spacing:.5px;font-size:18px}.disc-pic{aspect-ratio:1;object-fit:cover;border:3px solid var(--gold);background:#0a0f3399;border-radius:14px;width:100%;max-width:120px;margin:0 auto;display:block}.disc-pic.big{max-width:220px;margin:10px auto;box-shadow:0 0 24px #ffd21f73}.disc-fallback,.disc-unknown{place-items:center;display:grid}.disc-fallback img,.disc-unknown img{opacity:.7;width:46%}.adv-unlock{color:#cfe8ff;justify-content:center;align-items:center;gap:8px;margin:6px 0 0;font-weight:900;display:flex}.adv-notebook{width:min(680px,100%);max-height:calc(100dvh - 24px);overflow:auto}.adv-notebook h3{font-family:var(--display);text-transform:uppercase;align-items:center;gap:8px;margin:14px 0 8px;font-size:20px;display:flex}.disc-realm.locked h3{opacity:.6;font-size:16px}.disc-grid{grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:10px;display:grid}.disc-cell{color:#fff;cursor:default;background:#0a0f3380;border:2px solid #ffffff26;border-radius:12px;justify-items:center;gap:5px;min-height:44px;padding:6px;display:grid}.disc-cell.has{cursor:pointer;border-color:#ffd21f8c}.disc-name{text-align:center;font-size:12px;font-weight:900;line-height:1.15}.adv-revisits{flex-wrap:wrap;gap:8px;display:flex}.adv-revisit.btn{padding:4px 12px 4px 4px}.adv-revisit .btn-in{align-items:center;gap:8px;display:flex}.rev-pic{object-fit:cover;border-radius:6px;width:54px;height:36px}@media (max-width:600px),(max-height:640px){.adv-pic{aspect-ratio:16/5.4}.adv-body{padding:6px 10px}.adv-fights{margin:2px 0 6px}.adv-fight{width:50px}.adv-choice-btn.btn{min-height:72px}.adv-opt b{font-size:18px}}.adv-team{border:2px solid var(--cyan);background:#28d7ff24;border-radius:10px;flex-wrap:wrap;justify-content:center;align-items:center;gap:10px;margin-top:12px;padding:8px 12px;font-weight:900;display:flex}.adventure-gate h2{padding:0 44px}@media (max-height:440px){.adventure-gate h2{margin:0 0 4px;font-size:22px}.adv-pic{aspect-ratio:16/2.6}.adv-card{margin:4px 0}.adv-body{padding:4px 10px}.adv-name{font-size:20px}.adv-chips{margin:4px 0}}.wt-layer{--wt-p1:#f1f5ff;--wt-p2:#dfe7ff;background:linear-gradient(#05081c47,#05081cbd);padding:0;display:block}.wt-layer.realm-ember{--wt-p1:#fff6ea;--wt-p2:#ffe2bf;background:linear-gradient(#4614064d,#1c080cc7)}.wt-layer.realm-frost{--wt-p1:#f1fbff;--wt-p2:#d4efff;background:linear-gradient(#0a28504d,#060e2ccc)}.wt-layer.realm-storm{--wt-p1:#f6f0ff;--wt-p2:#e2d6ff;background:linear-gradient(#28125a4d,#0c0828d1)}.wt-card{--accent:var(--gold);max-height:calc(100dvh - 14px - var(--safe-b,0px));flex-direction:column;align-items:stretch;display:flex;overflow:hidden}.wt-card>*{flex:none}.wt-card>.problem-main.wt-main{overscroll-behavior:contain;flex:0 auto;min-height:0;overflow-y:auto}.wt-card.realm-ember,.wt-fcard.realm-ember{--accent:#ff9a3c;--wt-deck1:#5b2410;--wt-deck2:#2a0e12;--wt-cliff:#9a7358;--wt-glow:#ff7a2c}.wt-card.realm-frost,.wt-fcard.realm-frost{--accent:#5fd4ff;--wt-deck1:#1b4f86;--wt-deck2:#0b1d4a;--wt-cliff:#9fb6d6;--wt-glow:#7fe3ff}.wt-card.realm-storm,.wt-fcard.realm-storm{--accent:#b58cff;--wt-deck1:#43308f;--wt-deck2:#160f3d;--wt-cliff:#8b82b5;--wt-glow:#d2b3ff}.wt-card .problem-main.wt-main{background:linear-gradient(180deg, var(--wt-p1), var(--wt-p2));flex-flow:column;justify-content:flex-start;align-items:stretch;gap:10px;padding:10px 14px 12px}.wt-card .btn.small,.wt-fcard .btn.small{min-height:44px}.wt-prompt{padding:0 2px}.wt-chip{background:linear-gradient(90deg, color-mix(in srgb, var(--accent) 62%, #000), #0a0f33e0);border:2px solid var(--accent);flex:auto;align-items:center;gap:8px;min-width:0;padding:3px 16px 3px 6px;display:flex;transform:skew(-8deg)}.wt-chip>*{transform:skew(8deg)}.wt-chip img{flex:none;width:30px;height:30px}.wt-title{-webkit-line-clamp:2;min-width:0;font-family:var(--display);text-transform:uppercase;color:#fff;-webkit-text-stroke:4px var(--ink);paint-order:stroke fill;-webkit-box-orient:vertical;font-size:clamp(14px,2.2vw,19px);line-height:1.08;display:-webkit-box;overflow:hidden}.problem-head>.spacer{flex:0 0 0}.wt-card .problem-head .btn{flex:none}.wt-leave{width:50px;min-width:50px;height:46px;min-height:46px;padding:0}.wt-leave .btn-in{font-size:20px}.wt-card .skip-btn{margin-right:0}.wt-locked .br-scene,.wt-locked .br-tray,.wt-locked .sh-board,.wt-locked .ar-wrap,.wt-locked .aim-wrap,.wt-locked .wt-aim-controls{pointer-events:none}.sh-btn:disabled,.ar-btn:disabled{filter:none;opacity:.4}.wt-note{color:#fff;text-align:center;grid-column:1/-1;min-height:0;font-size:17px;font-weight:900}.wt-note:empty{display:none}.wt-card.correct .wt-note{color:var(--green);font-family:var(--display);-webkit-text-stroke:5px var(--ink);paint-order:stroke fill;font-size:22px;font-weight:400}.wt-actions{flex-wrap:wrap;grid-column:1/-1;justify-content:center;align-items:center;gap:10px;padding:0 2px 2px;display:flex}.wt-submit{flex:220px;max-width:380px}.wt-hintbtn .btn-in{gap:6px}.wt-hint-ico{width:24px;height:24px;margin:-4px 0}.wt-undo{min-width:52px;padding:0 12px}.wt-hint .wt-hint-text{flex:auto;min-width:0}.wt-hint{font-size:17px}.wt-hint img{flex:none}.wt-hint .hint-close{flex:none;min-width:44px;min-height:44px}.wt-card .reveal-box{background:#fff}.wt-confirm{z-index:11;background:#060924b3;place-items:center;padding:16px;display:grid;position:fixed;inset:0}.wt-confirm-card{text-align:center;color:#fff;background:var(--sheen), linear-gradient(180deg, var(--royal), var(--navy));border:4px solid var(--ink);width:min(420px,100%);box-shadow:inset 0 3px 0 #ffffff38, 0 0 0 3px var(--gold), 0 10px 0 var(--ink), 0 20px 40px #00000080;border-radius:10px;padding:16px 18px 18px}.wt-confirm-title{font-family:var(--display);text-transform:uppercase;-webkit-text-stroke:6px var(--ink);paint-order:stroke fill;font-size:30px}.wt-confirm-card p{color:#dbe5ff;margin:6px 0 14px;font-size:17px;font-weight:900}.wt-confirm-btns{flex-direction:column;align-items:stretch;gap:10px;display:flex}.wt-frame .move-chip .stars{display:none}.wt-frame .problem-card{--accent:var(--gold)}.wt-frame .problem-card.realm-ember{--accent:#ff9a3c}.wt-frame .problem-card.realm-frost{--accent:#5fd4ff}.wt-frame .problem-card.realm-storm{--accent:#b58cff}.wt-frame .problem-card{box-shadow:inset 0 3px 0 #ffffff38, 0 0 0 3px var(--accent), 0 0 28px color-mix(in srgb, var(--accent) 55%, transparent), 0 10px 0 var(--ink), 0 20px 40px #00000073}.wt-frame .move-chip{border-color:var(--accent);background:linear-gradient(90deg, color-mix(in srgb, var(--accent) 62%, #000), #0a0f33e0)}.wt-frame .move-chip .move-name{white-space:normal;line-height:1.05}.wt-frame .wt-kicker{grid-column:1/-1;margin:0}@media (max-width:560px){.wt-frame .wt-kicker{color:var(--accent);-webkit-text-stroke:3px var(--ink);paint-order:stroke fill;display:block}}.wt-fcard .problem-head .btn{flex:none;min-width:46px}.wt-fcard .problem-head .move-chip{flex:0 auto;min-width:0}.wt-frame-kicker{color:#dbe5ff;text-align:center;grid-column:1/-1;font-size:17px;font-weight:900}.wt-frame-kicker b{font-family:var(--display);text-transform:uppercase;color:var(--accent);-webkit-text-stroke:4px var(--ink);paint-order:stroke fill;margin-right:4px;font-weight:400}.wt-frame .problem-card .wt-leave{margin-left:0}.br-scene{grid-template-columns:30px minmax(0,1fr) 30px;align-items:end;display:grid}.br-cliff{background:linear-gradient(180deg, var(--wt-cliff), color-mix(in srgb, var(--wt-cliff) 55%, #000));border:3px solid var(--ink);align-self:stretch;min-height:76px}.br-cliff.l{border-right:0;border-radius:10px 0 0 10px}.br-cliff.r{border-left:0;border-radius:0 10px 10px 0}.br-deck{background:radial-gradient(ellipse at 50% 110%, color-mix(in srgb, var(--wt-glow) 55%, transparent), transparent 70%), linear-gradient(180deg, var(--wt-deck1), var(--wt-deck2));border:3px solid var(--ink);flex-direction:column;align-items:center;gap:8px;padding:10px 8px 12px;display:flex;position:relative}.br-flag{border:3px solid var(--ink);box-shadow:0 3px 0 var(--ink);color:var(--ink);background:linear-gradient(#ffe45c,#ffb300);border-radius:8px;align-items:baseline;gap:10px;padding:2px 16px 4px;display:inline-flex}.br-flag small{text-transform:uppercase;letter-spacing:.5px;font-size:14px;font-weight:900}.br-flag b{font-family:var(--display);font-size:clamp(30px,5vw,44px);font-weight:400;line-height:1.05}.br-slots{flex-wrap:wrap;justify-content:center;gap:8px;width:100%;display:flex}.br-slot{min-width:64px;height:56px;min-height:44px;color:var(--ink);font-family:var(--display);cursor:default;background:#ffffff1a;border:3px dashed #ffffff8c;border-radius:8px;flex:0 112px;place-items:center;padding:0 6px;font-size:28px;display:grid}.br-slot.filled{border:3px solid var(--ink);box-shadow:0 3px 0 var(--ink);cursor:pointer}.br-slot .br-label{white-space:nowrap;line-height:1}.br-slot:disabled{opacity:1}.br-slot:focus-visible{outline:4px solid var(--cyan);outline-offset:2px}.unit-crystal{--a:#e2f8ff;--b:#8fdcff}.unit-plank{--a:#ffe9c2;--b:#e8ad63}.unit-stone{--a:#f1f3fa;--b:#bcc3da}.br-slot.unit-crystal{background:linear-gradient(#e2f8ff,#8fdcff)}.br-slot.unit-plank{background:linear-gradient(#ffe9c2,#e8ad63)}.br-slot.unit-stone{background:linear-gradient(#f1f3fa,#bcc3da)}.br-dots{flex-wrap:wrap;justify-content:center;gap:4px;max-width:100%;min-height:18px;display:flex}.br-dots i{background:#ffffff14;border:2px solid #ffffffb3;border-radius:50%;width:14px;height:14px}.br-dots i.on{border-color:var(--ink);background:#ffd84d}.br-dots i.over{border-color:var(--ink);background:#ff9d4d}.br-tray{grid-template-columns:repeat(auto-fit,minmax(92px,1fr));gap:10px;padding:2px 2px 4px;display:grid}.br-piece{min-height:70px;padding:0 6px;position:relative}.br-piece .btn-in{padding:0 8px}.wt-card .br-piece .btn-in{font-size:clamp(24px,3.2vw,36px)!important}.wt-card .br-tray.long .br-piece .btn-in{font-size:clamp(19px,2.4vw,27px)!important}.br-piece .frac{font-size:.9em}.br-piece .kbd{top:5px;left:8px}.br-mark{pointer-events:none;font-size:16px;line-height:1;position:absolute;top:4px;right:8px;transform:skew(8deg)}.br-piece.dotted .btn-in{flex-direction:column;gap:4px}.br-pips{max-width:100px}.br-piece.used{opacity:.4;transform:scale(.95)skew(-8deg)}.br-piece.used.right{opacity:1}.br-piece.right{--a:#b9ffb0;--b:#33d65c;box-shadow:0 0 0 4px #fff, 0 0 22px #3cf07acc, 0 5px 0 var(--ink)}.sh-board{flex-direction:column;align-items:stretch;gap:10px;display:flex}.sh-friends{flex-wrap:wrap;justify-content:center;gap:10px;display:flex}.sh-friend{border:2px solid var(--ink);min-width:100px;max-width:150px;box-shadow:0 4px 0 var(--ink);background:#ffffffc7;border-radius:12px;flex-direction:column;flex:100px;align-items:center;gap:4px;padding:8px 2px;display:flex}.sh-friend.sel{box-shadow:0 0 0 4px var(--accent), 0 4px 0 var(--ink)}.sh-friend.left{background:#fff7d6e6}.sh-face{font-size:38px;line-height:1}.sh-name{color:var(--ink);text-transform:uppercase;letter-spacing:.3px;font-size:13px;font-weight:900}.sh-part{color:#fff;background:var(--ink);border-radius:10px;padding:0 9px;font-size:13px;font-weight:900}.sh-plate-wrap{box-sizing:border-box;flex:auto;width:100%;padding:0 4px;display:flex;position:relative}.sh-plate{width:100%;min-height:calc(var(--ic) * 2.5 + 14px);box-sizing:border-box;background:#fff;border:3px dashed #9aa8d8;border-radius:8px;flex-wrap:wrap;flex:auto;place-content:flex-start center;gap:1px 2px;padding:4px 4px 14px;display:flex}.sh-count{font-family:var(--display);color:var(--ink);font-size:18px;font-weight:400;position:absolute;bottom:1px;right:5px}.sh-item{line-height:1.1;font-size:var(--ic)}.sh-ctl{gap:4px;margin-top:auto;display:flex}.sh-btn{width:44px;min-width:44px;padding:0}.sh-btn .btn-in{font-size:26px}.sh-pile{z-index:1;border:3px solid var(--ink);background:#e6e4ec;border-radius:12px;align-items:center;gap:10px;min-height:52px;padding:6px 12px;display:flex;position:sticky;bottom:0}.sh-pile.empty{background:#d4f5df}.sh-pile-label{font-family:var(--display);text-transform:uppercase;color:var(--ink);font-size:17px}.sh-pile-items{flex-wrap:wrap;flex:1;align-items:center;gap:1px 3px;min-width:0;display:flex}.sh-pile-count{font-family:var(--display);color:var(--ink);font-size:24px;font-weight:400}.ar-wrap{--cell-max:52px;--board-h:280px;--board-w:min(calc(100vw - 80px), 560px);flex-direction:column;align-items:center;gap:12px;display:flex}.ar-board{--cell:max(10px, min(var(--cell-max), calc(var(--board-h) / var(--rows) - 3px), calc(var(--board-w) / var(--cols) - 3px)));grid-template-columns:repeat(var(--cols), var(--cell));box-sizing:border-box;background:linear-gradient(180deg, var(--wt-deck1), var(--wt-deck2));border:3px solid var(--ink);border-radius:10px;justify-content:center;gap:3px;width:-moz-fit-content;width:fit-content;max-width:100%;padding:8px;display:grid}.ar-cell{width:var(--cell);height:var(--cell);cursor:pointer;background:#ffffff1a;border:2px dashed #ffffff40;border-radius:4px}.ar-cell.on{border:2px solid var(--ink);background:linear-gradient(160deg,#fff4b8,#ffb21f);box-shadow:inset 0 2px #fff9}.ar-steps{flex-wrap:wrap;justify-content:center;gap:16px;display:flex}.ar-step{flex-direction:column;align-items:center;gap:4px;display:flex}.ar-label{font-family:var(--display);text-transform:uppercase;color:var(--ink);font-size:17px}.ar-pair{align-items:center;gap:10px;display:flex}.ar-btn{min-width:56px;padding:0 12px}.ar-btn .btn-in{font-size:28px}.ar-num{text-align:center;min-width:44px;font-family:var(--display);color:var(--ink);font-size:34px;font-weight:400}.ar-step.fixed small{color:#55608f;font-size:13px;font-weight:900}.ar-lock{font-size:22px}.wt-aim-controls{display:contents}.wt-aim-controls .aim-controls{flex:280px;padding:0}.wt-card.wt-aim .fire-btn{--a:#fff27a;--b:#ffb21f}.wt-bolt{filter:drop-shadow(0 2px 0 var(--ink));font-size:28px;line-height:1}.wt-aim .wt-prompt{display:none}.wt-aim-title{font-family:var(--display);text-transform:uppercase;text-align:center;color:color-mix(in srgb, var(--accent) 60%, var(--ink));letter-spacing:.5px;font-size:clamp(18px,2.4vw,24px)}.wt-aim .aim-line{padding-top:30px}@media (max-height:740px){.ar-wrap{--board-h:225px}}.wt-kicker{font-family:var(--display);text-transform:uppercase;letter-spacing:.4px;text-align:center;color:color-mix(in srgb, var(--accent) 55%, var(--ink));margin:-2px 0 -4px;font-size:15px;line-height:1.1;display:none}@media (max-width:520px){.wt-layer .problem-wrap{padding-left:6px;padding-right:6px}.wt-prompt{font-size:clamp(17px,5.2vw,22px)}.wt-card .problem-main.wt-main{gap:6px}.wt-aim-controls .aim-controls{flex:1 1 0;gap:8px;min-width:0}.wt-aim-controls .aim-step{min-width:48px}.wt-aim .wt-hintbtn{min-width:52px;padding:0 8px}.wt-aim .wt-hintbtn .btn-in{gap:0;font-size:0}.wt-aim .wt-hintbtn .kbd{display:none}.wt-card.wt-aim .fire-btn.btn.big{padding:0 8px}.wt-aim .fire-btn .btn-in{gap:4px;font-size:20px}.wt-aim .wt-bolt{font-size:22px}.sh-friends,.sh-friends.many{gap:6px}.sh-friends.many .sh-friend{flex:0 0 calc(25% - 4.5px);min-width:0;max-width:none;padding:4px 3px 5px}.sh-friends.many .sh-ctl{flex-direction:column;gap:3px;width:100%}.sh-friends.many .sh-btn{width:100%;min-width:0}.sh-friends.many .sh-face{font-size:20px}.wt-share:has(.sh-friends.many) .wt-kicker{display:none}.sh-friends.many .sh-item{font-size:12px}.sh-friends.many .sh-plate-wrap{padding:0}.sh-friends.many .sh-plate{min-height:30px;padding:2px 2px 11px}.sh-friends.many~.sh-pile .sh-item{font-size:12px}.sh-friends.many .sh-friend.left .sh-name{font-size:10px}.wt-kicker{display:block}.wt-chip{flex:none;padding:3px 8px 3px 6px}.wt-chip .wt-title{display:none}.wt-chip img{width:28px;height:28px}.problem-head>.spacer{flex:1 1 0}.wt-leave{width:46px;min-width:46px}.wt-card .btn.big{padding:0 18px}.wt-card .problem-head .skip-btn{flex:auto;padding:0 6px}.wt-card .problem-head .skip-btn .btn-in{white-space:nowrap}.wt-card .problem-head .btn.speak-btn,.wt-card .problem-head .btn.pad-btn{flex:none;width:46px;min-width:46px;padding:0}.wt-actions{gap:8px}.wt-card .problem-head{gap:6px}.wt-card{padding:8px 6px 10px}.wt-card .problem-main.wt-main{padding:8px 6px 6px}.br-scene{grid-template-columns:16px minmax(0,1fr) 16px}.br-slot{min-width:56px;height:52px;font-size:24px}.br-tray{grid-template-columns:repeat(auto-fit,minmax(80px,1fr));gap:8px}.br-piece .kbd{display:none}.sh-friends{gap:8px}.sh-name{display:none}.sh-face{font-size:28px}.sh-friend{flex:96px;gap:2px;min-width:96px;padding:4px 0 6px}.sh-plate{min-height:calc(var(--ic) * 1.7 + 12px)}.sh-board{gap:6px}.sh-pile{min-height:44px;padding:4px 10px}.sh-pile-items .sh-item{font-size:min(var(--ic), 16px)}.wt-submit{flex-basis:120px}.wt-frame-kicker{font-size:15px}.wt-hint{gap:8px;padding:6px 8px;font-size:15px}.wt-hint img{width:30px;height:30px}}@media (max-height:460px){.wt-card{gap:6px;padding:6px 10px 8px}.wt-card .problem-head .btn{height:44px;min-height:44px}.wt-card .problem-main.wt-main{gap:6px;padding:6px 12px 8px}.wt-prompt{font-size:clamp(17px,2.4vw,22px)}.wt-card .btn.big.wt-submit{min-height:50px}.wt-card .btn.big.wt-submit .btn-in{font-size:24px}.wt-chip img{width:24px;height:24px}.wt-title{-webkit-line-clamp:1}.br-cliff{min-height:0}.br-deck{gap:5px;padding:6px 8px 8px}.br-flag b{font-size:26px}.br-flag small{font-size:12px}.br-slot{height:44px;font-size:22px}.br-dots i{width:11px;height:11px}.br-tray{grid-template-columns:repeat(var(--n,4), minmax(0, 1fr));gap:6px}.br-piece{min-height:52px}.wt-card .br-piece .btn-in{font-size:clamp(18px,3vw,26px)!important}.br-mark{display:none}.sh-board{gap:6px}.sh-friends{flex-wrap:nowrap;gap:6px}.sh-friend{flex:1 1 0;gap:2px;min-width:0;max-width:none;padding:4px 0 5px}.sh-face{font-size:26px}.sh-name{display:none}.sh-plate{min-height:calc(var(--ic) * 1.3 + 12px);padding:2px 2px 12px}.sh-friend .sh-item{font-size:clamp(11px, calc(var(--ic) * .72), 18px)}.sh-ctl{gap:3px}.sh-btn{width:44px;min-width:44px}.wt-card .problem-head .skip-btn .btn-in{font-size:16px}.sh-pile{min-height:40px;padding:3px 10px}.ar-wrap{--cell-max:34px;--board-h:calc(100vh - 215px);--board-w:calc(55vw - 40px);flex-direction:row;justify-content:center;align-items:center;gap:18px}.ar-board{padding:5px}.ar-steps{flex-direction:column;gap:4px}.ar-pair{gap:8px}.ar-num{font-size:28px}.wt-aim .aim-line{padding-top:18px}.wt-actions{gap:8px}.wt-note{font-size:15px}.wt-frame-kicker{margin:-2px 0;font-size:14px}}@media (max-height:400px){.wt-card{gap:4px;padding:4px 8px 6px}.wt-card .problem-main.wt-main{gap:3px;padding:4px 10px 6px}.br-deck{gap:4px;padding:4px 8px 6px}.br-flag{padding:0 12px 2px}.br-flag b{font-size:24px}.br-slot{height:44px;font-size:20px}.br-piece{min-height:46px}.br-pips{display:none}.br-piece.dotted .btn-in{flex-direction:row}.sh-friend:not(.left) .sh-face{display:none}.sh-plate{min-height:calc(var(--ic) * 1.2 + 10px)}.sh-pile{min-height:36px;padding:2px 10px}.sh-friends.many~.sh-pile .sh-item{font-size:13px}.ar-wrap{--board-h:calc(100vh - 232px)}.wt-aim .aim-line{padding-top:8px}.wt-aim .aim-labels{margin-top:0}.wt-aim-title{display:none}.wt-card .problem-head .btn{height:44px;min-height:44px}.wt-card .btn.big.wt-submit{min-height:46px}.wt-actions{gap:6px;padding:0}}@media (max-height:340px){.wt-frame-kicker{display:none}.wt-prompt{font-size:16px}.wt-bridge .wt-prompt{display:none}}@media (min-width:900px) and (min-height:700px){.ar-wrap{--cell-max:60px;--board-h:320px}.br-piece{min-height:78px}}.sh-friend.left .sh-name{text-align:center;font-size:11px;line-height:1.05;display:block}@media (max-height:460px){.wt-hint{gap:8px;padding:3px 8px;font-size:14px;line-height:1.2}.wt-hint img{width:26px;height:26px}.wt-hint .hint-close{min-height:44px;padding:0 4px}.wt-bridge.hinting .wt-prompt,.wt-bridge.hinting .br-dots,.wt-aim.hinting .aim-position{display:none}.wt-array.hinting .ar-wrap{--board-h:calc(100vh - 290px)}.wt-share.hinting .wt-prompt{font-size:14px}}@media (max-height:420px){.wt-frame .numpad .btn{min-height:44px}}.wt-fcard .hint-close{min-width:44px;min-height:44px}.wt-fcard .reveal-box .reveal-btns .btn{height:44px;min-height:44px}@media (max-height:460px){.wt-fcard{overscroll-behavior:contain;max-height:calc(100dvh - 8px);overflow-y:auto}.wt-fcard .problem-head{z-index:2;background:var(--royal);box-shadow:0 0 0 6px var(--royal);position:sticky;top:0}}.duel-hud{pointer-events:none;z-index:4;color:#fff;position:fixed;inset:0}.duel-top{top:calc(10px + var(--safe-t,0px));justify-content:space-between;align-items:start;gap:10px;display:flex;position:absolute;left:14px;right:14px}.duel-heading{font-family:var(--display);text-shadow:0 2px 3px var(--ink);flex-direction:column;gap:3px;display:flex}.duel-heading b{font-size:clamp(20px,3vw,28px)}.duel-round{font-family:var(--font);font-size:15px;font-weight:800}.duel-leave{pointer-events:auto}.duel-leave[hidden]{display:none}.duel-fighters{top:calc(76px + var(--safe-t,0px));justify-content:space-between;gap:12px;display:flex;position:absolute;left:14px;right:14px}.duel-fighter{background:#0a0f33e0;border:2px solid #ffffffa6;border-radius:10px;gap:9px;width:min(310px,45%);min-width:0;padding:8px;display:flex;box-shadow:0 3px #0000004d}.duel-fighter.mine{border-color:var(--cyan)}.duel-portrait{object-fit:cover;border-radius:7px;flex:none;width:48px;height:48px}.duel-fighter-info{flex:1;min-width:0}.duel-name-row{justify-content:space-between;align-items:center;gap:8px;display:flex}.duel-name{text-overflow:ellipsis;white-space:nowrap;font-size:17px;overflow:hidden}.duel-hp{white-space:nowrap;font-size:13px;font-weight:800}.duel-hpbar{background:#18203f;border-radius:4px;height:10px;margin:5px 0;overflow:hidden}.duel-hpbar i{background:linear-gradient(#9dff8a,#22b84a);height:100%;transition:width .3s ease-out;display:block}.duel-fighter-meta{flex-wrap:wrap;justify-content:space-between;gap:2px 8px;min-height:15px;font-size:12px;display:flex}.duel-fighter-meta .ready{color:#a5ff9b}.duel-fighter-meta .away{color:#ffe4a0}.duel-charged{color:var(--gold);white-space:nowrap;font-weight:900}.duel-status{top:calc(162px + var(--safe-t,0px));text-align:center;background:#0a0f33cc;border-radius:8px;max-width:calc(100% - 28px);padding:6px 12px;font-size:15px;font-weight:700;line-height:1.3;position:absolute;left:50%;transform:translate(-50%)}.duel-status:empty{display:none}.duel-connection{color:#ffe4a0}.duel-controls{bottom:calc(14px + var(--safe-b,0px));justify-content:center;display:flex;position:absolute;left:14px;right:14px}.duel-choice-panel{border:3px solid var(--ink);pointer-events:auto;background:#0a0f33f0;border-radius:12px;width:min(720px,100%);padding:12px 16px 9px;box-shadow:0 5px #00000059}.duel-choice-panel h2{font-family:var(--display);text-align:center;margin:0 0 10px;font-size:22px}.duel-move-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:0 3px 6px;display:grid}.duel-move.btn{border-radius:8px;min-width:0;min-height:116px;padding:10px 8px;transform:none}.duel-move.btn.blue{--a:#d3ecff;--b:#87c0ff;--txt:var(--ink)}.duel-move.btn.purple{--a:#eddfff;--b:#c7a3ff;--txt:var(--ink)}.duel-move.btn:active{transform:translateY(3px)}.duel-move .btn-in{white-space:normal;text-transform:none;letter-spacing:0;flex-direction:column;gap:6px;width:100%;display:flex;transform:none;-webkit-text-stroke:0!important}.duel-move-icon{object-fit:contain;width:42px;height:42px}.duel-move-copy{flex-direction:column;align-items:center;gap:5px;width:100%;display:flex}.duel-move-copy b{font-family:var(--display);font-size:21px;line-height:1.1}.duel-move-copy small{font-family:var(--font);font-size:14px;font-weight:700;line-height:1.25}.duel-move .kbd{font-size:11px;position:absolute;top:0;left:0}.duel-choice-note{text-align:center;color:#d9e7ff;margin:7px 0 0;font-size:13px;line-height:1.3}.duel-support .duel-move-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.duel-math{pointer-events:none}.duel-math .problem-card{pointer-events:auto}.duel-reveal{background:#0a0f33e6;border-radius:10px;flex-wrap:wrap;justify-content:center;gap:10px 22px;padding:10px 18px;display:flex}.duel-reveal-row{align-items:center;gap:8px;min-width:0;display:flex}.duel-reveal-row div{flex-direction:column;gap:3px;display:flex}.duel-reveal-row b{overflow-wrap:anywhere;font-size:16px}.duel-reveal-row span{color:#d9e7ff;font-size:13px}.duel-reveal-icon{object-fit:contain;flex:none;width:32px;height:32px}.duel-results{text-align:center;width:min(560px,100%);max-height:calc(100dvh - 32px);padding:24px;overflow-y:auto}.duel-results h1{font-family:var(--display);overflow-wrap:anywhere;margin:0 0 14px;font-size:clamp(25px,4.5vw,38px);line-height:1.1}.duel-result-message{margin:0 0 16px;line-height:1.45}.duel-final-health{justify-content:center;gap:12px;margin:0 0 16px;display:flex}.duel-final-health>div{background:#0003;border-radius:8px;flex-direction:column;flex:1;gap:4px;min-width:0;max-width:200px;padding:8px;display:flex}.duel-final-health span{overflow-wrap:anywhere}.duel-final-health b{color:#a5ff9b}.duel-result-thanks{margin:14px 0 0;font-size:14px;line-height:1.35}.duel-practice{background:#0003;border-radius:9px;padding:13px}.duel-practice b{font-size:18px}.duel-practice p{margin:6px 0;line-height:1.35}.duel-practice small{margin-top:8px;display:block}.duel-result-note{color:#d9e7ff;margin:16px 0;font-size:13px}.duel-result-actions{flex-wrap:wrap;justify-content:center;gap:12px;display:flex}.duel-result-actions .btn{max-width:100%}.duel-rematch{border-top:1px solid #fff3;margin-top:16px;padding-top:14px}.duel-rematch-message{overflow-wrap:anywhere;margin:0;font-weight:800;line-height:1.35}.duel-rematch-message:empty,.duel-rematch-countdown:empty{display:none}.duel-rematch-countdown{color:#d9e7ff;margin-top:5px;display:block}.duel-rematch-actions{flex-wrap:wrap;justify-content:center;gap:10px;margin-top:10px;display:flex}.duel-rematch-actions:empty{display:none}.duel-rematch-actions .btn{max-width:100%}.buddy-team{background:#0a0f33e6;border:2px solid #ffdb9c;border-radius:10px;width:min(360px,48%);min-width:0;padding:9px;box-shadow:0 3px #0000004d}.buddy-team.mine{border-color:var(--cyan)}.buddy-team>.duel-name-row>b{font-family:var(--display);font-size:19px}.buddy-team .duel-hpbar{margin:6px 0 8px}.buddy-team:not(.mine) .duel-hpbar i{background:linear-gradient(#ffdf8b,#e89832)}.buddy-member{align-items:center;gap:7px;min-width:0;margin-top:5px;display:flex}.buddy-member .duel-portrait{width:32px;height:32px}.buddy-member-info{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.buddy-member-info .duel-name{font-size:15px}.buddy-member-info>span{white-space:nowrap;font-size:12px}.buddy-member-info .ready{color:#a5ff9b}.buddy-member-info .away{color:#ffe4a0}.buddy-power{color:var(--gold);font-size:22px}.buddy-hud .duel-status{top:calc(232px + var(--safe-t,0px))}.buddy-hud .duel-reveal{grid-template-columns:repeat(2,minmax(0,1fr));width:min(720px,100%);display:grid}.buddy-hud .duel-reveal-row{min-width:0}@media (max-width:600px){.buddy-team{width:50%;padding:6px}.buddy-team>.duel-name-row>b{font-size:16px}.buddy-member{gap:4px;margin-top:6px}.buddy-member .duel-portrait{width:26px;height:26px}.buddy-member-info .duel-name{font-size:12px}.buddy-member-info>span{font-size:11px}.buddy-power{font-size:17px}.buddy-hud .duel-status{top:calc(207px + var(--safe-t,0px))}}@media (max-height:500px){.buddy-team{padding:5px 7px}.buddy-team>.duel-name-row>b{font-size:15px}.buddy-team .duel-hpbar{height:6px;margin:3px 0}.buddy-member{gap:4px;margin-top:3px}.buddy-member .duel-portrait{width:23px;height:23px}.buddy-members{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;display:grid}.buddy-member-info{gap:1px}.buddy-member-info .duel-name{font-size:12px}.buddy-member-info>span{text-overflow:ellipsis;font-size:10px;overflow:hidden}.buddy-power{font-size:16px}.buddy-hud .duel-status{top:calc(133px + var(--safe-t,0px))}}@media (max-width:600px){.duel-top,.duel-fighters{left:8px;right:8px}.duel-top{top:calc(6px + var(--safe-t,0px))}.duel-heading b{font-size:20px}.duel-round{font-size:13px}.duel-leave.btn{min-height:42px;padding:0 9px}.duel-leave .btn-in{font-size:13px}.duel-fighters{top:calc(62px + var(--safe-t,0px));gap:8px}.duel-fighter{gap:5px;width:50%;padding:6px}.duel-portrait{width:32px;height:32px}.duel-name{font-size:14px}.duel-name-row{gap:3px}.duel-hp{font-size:11px}.duel-fighter-meta{font-size:10px}.duel-status{top:calc(149px + var(--safe-t,0px));font-size:13px}.duel-controls{left:8px;right:8px;bottom:calc(8px + var(--safe-b,0px))}.duel-choice-panel{padding:10px 7px 8px}.duel-choice-panel h2{font-size:20px}.duel-move-grid{gap:7px}.duel-move.btn{min-height:132px;padding:8px 5px}.duel-move-copy b{font-size:18px}.duel-move-copy small{font-size:12px}.duel-move .kbd{display:none}.duel-choice-note{font-size:12px}.duel-reveal{gap:9px;padding:9px}.duel-reveal-row{flex:140px}.duel-reveal-row b{font-size:14px}.duel-results{padding:20px 15px}.duel-result-actions .btn,.duel-rematch-actions .btn{min-height:48px;padding:0 16px}.duel-result-actions .btn .btn-in,.duel-rematch-actions .btn .btn-in{font-size:18px}}@media (max-height:500px) and (max-width:600px){.buddy-hud .duel-top{top:calc(5px + var(--safe-t,0px))}.buddy-hud .duel-heading{flex-direction:row;align-items:baseline;gap:8px}.buddy-hud .duel-fighters{top:calc(52px + var(--safe-t,0px))}.buddy-hud .duel-choice-panel{padding:6px}.buddy-hud .duel-choice-panel h2{margin-bottom:4px;font-size:17px}.buddy-hud .duel-move.btn{min-height:52px;padding:5px}.buddy-hud .duel-move .btn-in{flex-direction:row;gap:4px}.buddy-hud .duel-move-icon{width:24px;height:24px}.buddy-hud .duel-move-copy b{font-size:16px}.buddy-hud .duel-move-copy small{font-size:11px}.buddy-hud .duel-choice-note{margin-top:3px;font-size:11px}}@media (max-height:500px) and (min-width:601px){.buddy-hud .duel-choice-panel{padding:6px 10px}.buddy-hud .duel-choice-panel h2{margin-bottom:4px}.buddy-hud .duel-move.btn{min-height:60px;padding:5px}.buddy-hud .duel-move-icon{width:26px;height:26px}.duel-results{grid-template-columns:repeat(2,minmax(0,1fr));align-items:center;gap:8px 18px;width:min(740px,100%);padding:12px 16px;display:grid}.duel-results h1{grid-column:1/-1;margin:0;font-size:28px}.duel-result-message{grid-column:1/-1;margin:0;font-size:14px}.duel-final-health{grid-area:3/1;margin:0;font-size:14px}.duel-practice{grid-area:3/2;padding:8px}.duel-practice b{font-size:16px}.duel-practice p{margin:4px 0;font-size:13px}.duel-result-thanks{grid-area:4/1;margin:0;font-size:12px}.duel-result-note{grid-area:4/2;margin:0;font-size:12px}.duel-result-actions{grid-area:5/1}.duel-rematch{border:0;grid-area:5/2;margin:0;padding:0}.duel-rematch-message{font-size:14px}.duel-rematch-countdown{margin-top:3px;font-size:12px}.duel-rematch-actions{gap:8px;margin-top:6px}.duel-result-actions .btn,.duel-rematch-actions .btn{min-height:44px;padding:0 12px}.duel-result-actions .btn .btn-in,.duel-rematch-actions .btn .btn-in{font-size:17px}.duel-top{top:calc(5px + var(--safe-t,0px))}.duel-heading{flex-direction:row;align-items:baseline;gap:10px}.duel-heading b{font-size:20px}.duel-fighters{top:calc(52px + var(--safe-t,0px))}.duel-fighter{padding:5px 7px}.duel-portrait{width:32px;height:32px}.duel-fighter-meta{font-size:11px}.duel-status{top:calc(125px + var(--safe-t,0px));padding:4px 9px;font-size:12px}.duel-choice-panel{padding:8px 12px 6px}.duel-choice-panel h2{margin-bottom:6px;font-size:18px}.duel-move.btn{min-height:80px;padding:7px}.duel-move .btn-in{flex-direction:row}.duel-move-icon{width:32px;height:32px}.duel-move-copy b{font-size:18px}.duel-move-copy small{font-size:12px}.duel-choice-note{margin-top:3px;font-size:12px}}@media (prefers-reduced-motion:reduce){.duel-hpbar i{transition:none}}
