/* ROOK & ROLL — chunky kart-menu UI over a full-screen 3D canvas */
:root {
  --accent: #ff5fa8; --accent2: #ffd23f; --ink: #2b1a4a; --panel: rgba(255, 255, 255, 0.92); --panel-ink: #2b1a4a;
  --glass: rgba(255, 255, 255, 0.78); --shadow: 0 6px 0 rgba(43, 26, 74, 0.25), 0 14px 30px rgba(43, 26, 74, 0.25);
  --go: linear-gradient(180deg, #7cf29a, #2fc46a); --btn: linear-gradient(180deg, #ffffff, #f1e9ff);
  --font: 'Nunito', 'Arial Rounded MT Bold', system-ui, sans-serif; --head: 'Nunito', 'Arial Rounded MT Bold', sans-serif;
}
body[data-arena="spooky"] { --accent: #ff8a1f; --accent2: #7fe0b5; --panel: rgba(36, 26, 62, 0.93); --panel-ink: #f3ecff; --glass: rgba(36, 26, 62, 0.8); --btn: linear-gradient(180deg, #4a3d6b, #34284f); }
body[data-arena="galaxy"] { --accent: #4de1ff; --accent2: #ff4fd8; --panel: rgba(22, 18, 64, 0.92); --panel-ink: #eef4ff; --glass: rgba(22, 18, 64, 0.8); --btn: linear-gradient(180deg, #3b2a8a, #261b62); }
html:lang(zh-CN) { --font: 'ZCOOL KuaiLe', 'Noto Sans SC', 'Nunito', sans-serif; --head: 'ZCOOL KuaiLe', 'Noto Sans SC', sans-serif; }

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #ffd3ea; font-family: var(--font); color: var(--panel-ink); -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
body[data-arena="spooky"] { background: #1a1230; }
body[data-arena="galaxy"] { background: #05061a; }
#view { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; display: block; touch-action: none; outline: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }

/* ---------------------------------------------------------------- screens */
.screen { position: fixed; inset: 0; display: none; pointer-events: none; padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
.screen.show { display: flex; }
.screen > * { pointer-events: auto; }
[data-screen="loading"] { flex-direction: column; align-items: center; justify-content: center; gap: 22px; background: radial-gradient(circle at 50% 40%, #fff1f8, #ffc4e1 60%, #b9a6ff); pointer-events: auto; }
.bar { width: min(320px, 70vw); height: 18px; border-radius: 99px; background: rgba(255, 255, 255, 0.7); box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.08), 0 4px 0 rgba(43, 26, 74, 0.15); overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; border-radius: 99px; background: repeating-linear-gradient(90deg, #ff5a6e 0 14%, #ff9f43 14% 28%, #ffe066 28% 42%, #5be38a 42% 57%, #4db5ff 57% 71%, #a77bff 71% 85%, #ff5fa8 85% 100%); transition: width 0.3s; }
.muted { opacity: 0.75; font-weight: 700; margin: 0; }

/* ---------------------------------------------------------------- logo */
.logo { font-family: 'Nunito', 'Arial Rounded MT Bold', sans-serif; font-weight: 900; font-style: italic; font-size: clamp(54px, 11vw, 124px); line-height: 0.92; letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 0.12em; transform: rotate(-4deg); filter: drop-shadow(0 8px 0 rgba(43, 26, 74, 0.35)); }
.logo.small { font-size: clamp(40px, 9vw, 72px); }
.logo .w { background: linear-gradient(180deg, #ffe066 0%, #ff9f43 35%, #ff5fa8 65%, #a77bff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-stroke: 0.06em #fff; paint-order: stroke fill; animation: wobble 2.6s ease-in-out infinite; display: inline-block; }
.logo .w:last-child { animation-delay: -1.3s; background: linear-gradient(180deg, #7cf2ff 0%, #4db5ff 40%, #a77bff 75%, #ff5fa8 100%); -webkit-background-clip: text; background-clip: text; }
.logo .amp { color: #fff; font-size: 0.6em; -webkit-text-stroke: 0.05em #ff5fa8; paint-order: stroke fill; transform: translateY(-0.15em); display: inline-block; animation: spin 4s ease-in-out infinite; }
@keyframes wobble { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(1.5deg); } }
@keyframes spin { 0%, 70%, 100% { transform: translateY(-0.15em) rotate(0); } 85% { transform: translateY(-0.3em) rotate(360deg); } }

/* ---------------------------------------------------------------- title */
[data-screen="title"] { flex-direction: column; align-items: center; justify-content: center; }
.title-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; pointer-events: none; }
.title-wrap > * { pointer-events: auto; }
.tagline { margin: 0; font-weight: 900; font-size: clamp(16px, 2.6vw, 24px); color: #fff; text-shadow: 0 3px 0 rgba(43, 26, 74, 0.45); letter-spacing: 0.04em; text-transform: uppercase; font-style: italic; }
.menu { display: flex; flex-direction: column; gap: 12px; width: min(300px, 80vw); margin-top: 10px; }
.credits { position: absolute; bottom: max(10px, env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; margin: 0; font-size: 12px; font-weight: 800; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35); pointer-events: none; }

/* ---------------------------------------------------------------- buttons */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 18px; font-weight: 900; font-size: 18px; color: var(--panel-ink); background: var(--btn); box-shadow: 0 5px 0 rgba(43, 26, 74, 0.28), inset 0 -3px 0 rgba(0, 0, 0, 0.06), 0 10px 20px rgba(43, 26, 74, 0.18); border: 3px solid #fff; transition: transform 0.12s, box-shadow 0.12s, filter 0.12s; text-transform: uppercase; font-style: italic; letter-spacing: 0.02em; }
body[data-arena="spooky"] .btn, body[data-arena="galaxy"] .btn { border-color: rgba(255, 255, 255, 0.35); }
.btn:hover { transform: translateY(-2px) scale(1.02); filter: brightness(1.05); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(43, 26, 74, 0.28); }
.btn:focus-visible, .seg button:focus-visible, .slot:focus-visible, .arena-card:focus-visible { outline: 3px solid var(--accent2); outline-offset: 3px; }
.btn.big { font-size: 26px; padding: 14px 30px; border-radius: 22px; }
.btn.go { background: var(--go); color: #fff; text-shadow: 0 2px 0 rgba(0, 80, 30, 0.45); }
.btn.warn { background: linear-gradient(180deg, #ff8a8a, #ff4f6d); color: #fff; text-shadow: 0 2px 0 rgba(120, 0, 30, 0.4); }
.btn.ghost { background: transparent; box-shadow: none; border-color: currentColor; opacity: 0.85; }
.btn.small { font-size: 14px; padding: 7px 14px; border-radius: 12px; }
.btn[disabled] { opacity: 0.4; pointer-events: none; }
.btn.round { flex-direction: column; gap: 2px; padding: 8px 12px; min-width: 66px; font-size: 11px; border-radius: 16px; background: var(--glass); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn.round svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.chip { padding: 7px 14px; border-radius: 99px; font-weight: 900; font-size: 14px; background: var(--glass); border: 2px solid rgba(255, 255, 255, 0.8); box-shadow: 0 3px 0 rgba(43, 26, 74, 0.2); }
.chip.on { background: var(--accent); color: #fff; }

/* ---------------------------------------------------------------- panels / select */
.panel { background: var(--panel); color: var(--panel-ink); border-radius: 28px; padding: 22px; box-shadow: var(--shadow); border: 4px solid rgba(255, 255, 255, 0.9); max-height: calc(100dvh - 32px); overflow: auto; }
body[data-arena="spooky"] .panel, body[data-arena="galaxy"] .panel { border-color: rgba(255, 255, 255, 0.18); }
.headline { margin: 0 0 14px; font-weight: 900; font-style: italic; font-size: clamp(24px, 4vw, 34px); text-transform: uppercase; color: var(--accent); text-shadow: 0 3px 0 rgba(43, 26, 74, 0.18); letter-spacing: 0.01em; }
[data-screen="select"] { align-items: center; justify-content: center; }
.select-panel { width: min(980px, 100%); }
.arenas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.arena-card { position: relative; border-radius: 22px; overflow: hidden; text-align: left; padding: 0; border: 4px solid transparent; box-shadow: 0 6px 0 rgba(43, 26, 74, 0.22); transition: transform 0.15s, border-color 0.15s; color: #fff; min-height: 210px; display: flex; flex-direction: column; justify-content: flex-end; }
.arena-card:hover { transform: translateY(-3px) rotate(-0.6deg); }
.arena-card.on { border-color: var(--accent2); transform: translateY(-4px) scale(1.02); }
.arena-card[data-arena="candy"] { background: linear-gradient(180deg, #8ccbff, #ffd3ea 60%, #fff1dc); color: #5a2346; }
.arena-card[data-arena="spooky"] { background: radial-gradient(circle at 75% 20%, #fff3c4 0 7%, transparent 8%), linear-gradient(180deg, #0e0a24, #3a2466 70%, #2a2140); }
.arena-card[data-arena="galaxy"] { background: radial-gradient(circle at 20% 25%, rgba(255, 63, 168, 0.55), transparent 40%), radial-gradient(circle at 80% 30%, rgba(122, 44, 255, 0.6), transparent 45%), linear-gradient(180deg, #05061a, #1a1250); }
.arena-card img { position: absolute; inset: 6px 0 auto 0; width: 100%; height: 150px; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.25)); }
.arena-card .meta { position: relative; padding: 10px 14px 12px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.32)); }
.arena-card[data-arena="candy"] .meta { background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.75)); }
.arena-card b { display: block; font-size: 20px; font-weight: 900; font-style: italic; text-transform: uppercase; }
.arena-card small { display: block; font-weight: 700; font-size: 13px; opacity: 0.92; line-height: 1.25; }
.arena-card .cups { position: absolute; top: 8px; right: 10px; display: flex; gap: 3px; font-size: 18px; }
.cups .c { filter: grayscale(1) opacity(0.35); }
.cups .c.won { filter: none; }
.setup { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; margin-bottom: 16px; }
.opt { display: flex; flex-direction: column; gap: 6px; }
.opt-label { font-weight: 900; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.75; }
.seg { display: flex; background: rgba(43, 26, 74, 0.08); border-radius: 16px; padding: 4px; gap: 4px; }
body[data-arena="spooky"] .seg, body[data-arena="galaxy"] .seg { background: rgba(255, 255, 255, 0.08); }
.seg button { flex: 1; padding: 9px 8px; border-radius: 12px; font-weight: 900; font-size: 15px; transition: background 0.15s, transform 0.1s; line-height: 1.1; }
.seg button.on { background: var(--accent); color: #fff; box-shadow: 0 3px 0 rgba(43, 26, 74, 0.25); }
.seg button:active { transform: scale(0.96); }
.row { display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 10px; }
.hidden { display: none !important; }

/* ---------------------------------------------------------------- HUD */
.hud { flex-direction: column; justify-content: space-between; }
.hud-top { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: start; }
.hud-top > * { min-width: 0; }
.pcard { display: flex; align-items: center; gap: 10px; background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 22px; padding: 6px 8px 6px 6px; box-shadow: 0 5px 0 rgba(43, 26, 74, 0.2); border: 3px solid rgba(255, 255, 255, 0.85); justify-self: start; max-width: 100%; transition: transform 0.2s, box-shadow 0.2s; }
body[data-arena="spooky"] .pcard, body[data-arena="galaxy"] .pcard { border-color: rgba(255, 255, 255, 0.2); }
.pcard.rival { justify-self: end; flex-direction: row-reverse; padding: 6px 6px 6px 8px; }
.pcard.rival .pinfo { text-align: right; }
.pcard.active { box-shadow: 0 0 0 4px var(--accent), 0 5px 0 rgba(43, 26, 74, 0.2); transform: scale(1.03); }
.avatar { width: 52px; height: 52px; border-radius: 16px; background: rgba(255, 255, 255, 0.5); object-fit: contain; }
.pinfo { display: flex; flex-direction: column; min-width: 0; }
.pname { font-weight: 900; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 22vw; }
.pmat { font-weight: 900; font-size: 13px; color: #2fc46a; min-height: 16px; }
.slot { position: relative; width: 58px; height: 58px; border-radius: 16px; background: linear-gradient(135deg, #ff9ecf, #ffe066, #8fe3ff, #b9a6ff); padding: 3px; box-shadow: 0 4px 0 rgba(43, 26, 74, 0.25); flex: none; }
.slot::before { content: ''; position: absolute; inset: 3px; border-radius: 13px; background: rgba(255, 255, 255, 0.85); }
body[data-arena="spooky"] .slot::before, body[data-arena="galaxy"] .slot::before { background: rgba(20, 14, 40, 0.85); }
.slot img { position: relative; width: 100%; height: 100%; object-fit: contain; display: none; }
.slot .q { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 900; font-size: 26px; color: rgba(43, 26, 74, 0.25); }
body[data-arena="spooky"] .slot .q, body[data-arena="galaxy"] .slot .q { color: rgba(255, 255, 255, 0.25); }
.slot.has img { display: block; }
.slot.has .q { display: none; }
.slot.ready { animation: ready 1.1s ease-in-out infinite; }
.slot.spin img { animation: none; }
.slot.got { animation: got 0.5s ease-out; }
@keyframes ready { 0%, 100% { transform: scale(1); box-shadow: 0 4px 0 rgba(43, 26, 74, 0.25), 0 0 0 0 rgba(255, 210, 63, 0.9); } 50% { transform: scale(1.08); box-shadow: 0 4px 0 rgba(43, 26, 74, 0.25), 0 0 0 8px rgba(255, 210, 63, 0); } }
@keyframes got { 0% { transform: scale(1.5) rotate(-10deg); } 100% { transform: scale(1); } }
.turn { justify-self: center; background: var(--accent); color: #fff; font-weight: 900; font-style: italic; text-transform: uppercase; padding: 10px 18px; border-radius: 99px; box-shadow: 0 4px 0 rgba(43, 26, 74, 0.25); font-size: 16px; white-space: nowrap; text-shadow: 0 2px 0 rgba(43, 26, 74, 0.3); }
.turn.wait { background: rgba(43, 26, 74, 0.7); }
.turn .dots::after { content: ''; animation: dots 1.2s steps(4) infinite; }
@keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }
.hud-bottom { display: flex; gap: 10px; justify-content: center; align-self: center; }
.item-banner { position: fixed; left: 50%; top: 96px; transform: translate(-50%, -20px); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 12px; background: var(--panel); border-radius: 20px; padding: 8px 10px 8px 8px; box-shadow: var(--shadow); width: min(560px, calc(100vw - 32px)); transition: opacity 0.2s, transform 0.2s; }
.item-banner.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.item-banner img { width: 54px; height: 54px; object-fit: contain; flex: none; }
.item-banner div { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 14px; font-weight: 700; line-height: 1.25; }
.item-banner b { font-size: 17px; font-weight: 900; color: var(--accent); }
.moves-panel { position: fixed; right: 16px; top: 110px; bottom: 100px; width: 210px; background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 20px; padding: 12px; box-shadow: 0 5px 0 rgba(43, 26, 74, 0.2); overflow: auto; transform: translateX(260px); transition: transform 0.25s; }
.moves-panel.show { transform: none; }
.moves-panel h3 { margin: 0 0 8px; font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 15px; }
.moves-panel ol { margin: 0; padding-left: 26px; font-weight: 800; font-size: 14px; line-height: 1.6; font-variant-numeric: tabular-nums; }
.moves-panel li span { display: inline-block; min-width: 72px; }

/* ---------------------------------------------------------------- modals */
.modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(43, 26, 74, 0.35); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); z-index: 20; }
.modal.show { display: flex; animation: fade 0.2s; }
.modal .panel { animation: pop 0.35s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: scale(0.8) translateY(20px); opacity: 0; } }
.panel.narrow { width: min(420px, 100%); display: flex; flex-direction: column; gap: 12px; }
.panel h3 { margin: 0 0 12px; font-weight: 900; font-size: 20px; }
.promo-choices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.promo-choices button { border-radius: 18px; background: rgba(43, 26, 74, 0.06); padding: 8px 6px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-weight: 900; font-size: 13px; transition: transform 0.12s, background 0.12s; }
.promo-choices button:hover { transform: translateY(-3px); background: var(--accent); color: #fff; }
.promo-choices img { width: 86px; height: 86px; object-fit: contain; }
.result { text-align: center; align-items: stretch; }
.result .cup { font-size: 76px; line-height: 1; filter: drop-shadow(0 6px 0 rgba(43, 26, 74, 0.2)); animation: got 0.6s ease-out; }
.result .reason { margin: 0; font-weight: 900; font-size: 18px; }
.trophy-line { margin: 0; font-weight: 900; color: #e0a100; }
.howto { width: min(720px, 100%); }
.steps { margin: 0 0 14px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-weight: 700; line-height: 1.4; }
.item-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-bottom: 16px; }
.item-list div, .piece-list div { display: flex; gap: 10px; align-items: center; background: rgba(43, 26, 74, 0.06); border-radius: 16px; padding: 8px; font-size: 13px; font-weight: 700; line-height: 1.25; }
body[data-arena="spooky"] .item-list div, body[data-arena="galaxy"] .item-list div, body[data-arena="spooky"] .piece-list div, body[data-arena="galaxy"] .piece-list div { background: rgba(255, 255, 255, 0.07); }
.item-list img { width: 46px; height: 46px; object-fit: contain; flex: none; }
.item-list b, .piece-list b { display: block; font-weight: 900; font-size: 14px; }
.piece-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 16px; }
.piece-list img { width: 52px; height: 52px; object-fit: contain; }

/* ---------------------------------------------------------------- overlays */
#overlay { position: fixed; inset: 0; pointer-events: none; z-index: 5; overflow: hidden; }
.pop-word { position: absolute; transform: translate(-50%, -50%); font-family: var(--head); font-weight: 900; font-style: italic; font-size: clamp(30px, 5vw, 54px); color: #fff; -webkit-text-stroke: 0.09em #2b1a4a; paint-order: stroke fill; animation: word 1.3s cubic-bezier(.2, 1.4, .4, 1) forwards; white-space: nowrap; }
.pop-word.bonk { color: #ffe066; }
.pop-word.boom { color: #ff9f43; font-size: clamp(40px, 7vw, 72px); }
.pop-word.alert { color: #ff4f6d; font-size: clamp(40px, 6vw, 64px); }
.pop-word.check { color: #ff4f6d; font-size: clamp(38px, 7vw, 76px); }
.pop-word.star { color: #ffd23f; }
@keyframes word { 0% { transform: translate(-50%, -50%) scale(0.2) rotate(-12deg); opacity: 0; } 18% { transform: translate(-50%, -50%) scale(1.15) rotate(4deg); opacity: 1; } 30% { transform: translate(-50%, -50%) scale(1) rotate(-2deg); } 80% { opacity: 1; } 100% { transform: translate(-50%, -110%) scale(0.95); opacity: 0; } }
#toast { position: fixed; left: 50%; bottom: 104px; transform: translate(-50%, 20px); background: rgba(43, 26, 74, 0.88); color: #fff; font-weight: 900; padding: 10px 18px; border-radius: 99px; opacity: 0; transition: opacity 0.2s, transform 0.2s; z-index: 30; pointer-events: none; max-width: calc(100vw - 32px); text-align: center; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#countdown { position: fixed; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 15; }
#countdown span { font-family: var(--head); font-weight: 900; font-style: italic; font-size: clamp(90px, 20vw, 220px); color: #fff; -webkit-text-stroke: 0.06em #2b1a4a; paint-order: stroke fill; animation: count 0.9s ease-out forwards; text-shadow: 0 10px 0 rgba(43, 26, 74, 0.3); }
#countdown span.go { color: #7cf29a; }
@keyframes count { 0% { transform: scale(2.2); opacity: 0; } 25% { transform: scale(1); opacity: 1; } 75% { opacity: 1; } 100% { transform: scale(0.8); opacity: 0; } }

/* ---------------------------------------------------------------- phones */
@media (max-width: 760px) {
  .arenas { grid-template-columns: repeat(3, minmax(150px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; }
  .arena-card { min-height: 180px; scroll-snap-align: center; }
  .arena-card img { height: 110px; }
  .arena-card small { display: none; }
  .arena-card b { font-size: 15px; overflow-wrap: anywhere; hyphens: auto; }
  .setup { grid-template-columns: 1fr; gap: 10px; }
  .panel { padding: 16px; border-radius: 22px; }
  .hud-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .pcard { gap: 6px; padding: 4px 6px 4px 4px; }
  .pcard.rival { padding: 4px 4px 4px 6px; }
  .turn { grid-column: 1 / -1; grid-row: 2; font-size: 14px; padding: 7px 14px; }
  .avatar { width: 40px; height: 40px; border-radius: 12px; }
  .slot { width: 50px; height: 50px; }
  .pname { font-size: 13px; max-width: 20vw; }
  .btn.round { min-width: 58px; padding: 7px 8px; }
  .item-banner { top: 140px; }
  .moves-panel { top: 150px; width: 180px; }
  .promo-choices img { width: 64px; height: 64px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .hud-top { grid-template-columns: 1fr auto 1fr; }
  .avatar { width: 38px; height: 38px; }
  .slot { width: 46px; height: 46px; }
  .hud-bottom { position: fixed; right: max(12px, env(safe-area-inset-right)); top: 50%; transform: translateY(-50%); flex-direction: column; }
  .arena-card { min-height: 140px; }
  .arena-card img { height: 90px; }
  .arena-card small { display: none; }
  .setup { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .logo .w, .logo .amp, .slot.ready { animation: none; } }
