:root {
  --ink: #231a2c;
  --gold1: #fff3a0; --gold2: #ffd23a; --gold3: #e58a0e;
  --blue1: #4aa3ff; --blue2: #1b5fd6; --blue3: #0f2a70;
  --panel: #2a58c4;
  --cw: min(21vw, 92px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; overscroll-behavior: none; }
body {
  color: #fff; font-weight: 800;
  background:
    radial-gradient(circle at 50% -10%, rgba(255,255,255,.28), transparent 45%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.035) 0 14px, transparent 14px 28px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.035) 0 14px, transparent 14px 28px),
    linear-gradient(180deg, #3c86ff 0%, #1b4fc0 45%, #0f2a70 100%);
  background-color: #1b4fc0;
  user-select: none; -webkit-user-select: none; touch-action: manipulation;
}
#app { height: 100dvh; display: flex; flex-direction: column; max-width: 560px; margin: 0 auto; position: relative; }
button { font: inherit; }
.stroke, .btn, h1, h2, .nm { paint-order: stroke fill; -webkit-text-stroke: 4px var(--ink); }

/* ---------- 按钮 ---------- */
.btn {
  --c1: var(--gold1); --c2: var(--gold2); --c3: var(--gold3);
  border: 3px solid var(--ink); border-radius: 14px; color: #fff; font-weight: 900; font-size: 19px; letter-spacing: 1px;
  padding: 11px 18px 13px; cursor: pointer; position: relative;
  background: linear-gradient(180deg, var(--c1) 0%, var(--c2) 48%, var(--c3) 100%);
  box-shadow: inset 0 -5px 0 rgba(0,0,0,.18), inset 0 3px 0 rgba(255,255,255,.55), 0 4px 0 var(--ink);
  transition: transform .06s, filter .15s;
}
.btn:active:not(:disabled) { transform: translateY(3px); box-shadow: inset 0 -3px 0 rgba(0,0,0,.18), inset 0 2px 0 rgba(255,255,255,.5), 0 1px 0 var(--ink); }
.btn:disabled { filter: grayscale(1) brightness(.8); opacity: .75; cursor: default; }
.btn.blue { --c1: #b5e4ff; --c2: #45a6ff; --c3: #1d5fd8; }
.btn.red { --c1: #ffb0a0; --c2: #ff5a4a; --c3: #c0222c; }
.btn.green { --c1: #d8ff9e; --c2: #7fd84a; --c3: #34922a; }
.btn.purple { --c1: #e9ccff; --c2: #a868ff; --c3: #6a2fd0; }
.btn.gray { --c1: #eef2f8; --c2: #b3bfd1; --c3: #7a879c; }
.btn.small { font-size: 15px; padding: 7px 12px 9px; border-radius: 11px; }
.btn.big { font-size: 24px; padding: 14px 22px 16px; }
.btn.wide { width: 100%; }
.iconbtn { width: 40px; height: 40px; padding: 0; font-size: 18px; border-radius: 12px; -webkit-text-stroke: 0; }

/* ---------- 面板 ---------- */
.panel {
  background: linear-gradient(180deg, #5b9bff 0, #2f6de0 60px, #2a58c4 100%);
  border: 3px solid var(--ink); border-radius: 18px;
  box-shadow: inset 0 3px 0 rgba(255,255,255,.4), inset 0 -4px 0 rgba(0,0,0,.2), 0 5px 0 var(--ink);
  padding: 14px;
}
.inset { background: rgba(10,25,80,.45); border: 2px solid rgba(0,0,0,.35); border-radius: 12px; box-shadow: inset 0 3px 6px rgba(0,0,0,.3); }
h1, h2 { margin: 0; font-weight: 900; color: #fff; }
h2 { font-size: 22px; text-align: center; }
.muted { color: #cfe0ff; font-size: 13px; font-weight: 700; -webkit-text-stroke: 0; }
.scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* ---------- 登录 ---------- */
.login { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px 20px calc(24px + var(--safe-b)); }
.logo { text-align: center; position: relative; }
.logo .crown-svg { width: 110px; display: block; margin: 0 auto -14px; filter: drop-shadow(0 4px 0 rgba(0,0,0,.3)); animation: bob 2.4s ease-in-out infinite; }
.logo h1 { font-size: 54px; line-height: 1.05; color: #ffe04a; -webkit-text-stroke: 8px var(--ink); text-shadow: 0 6px 0 var(--ink); letter-spacing: 2px; }
.logo .sub { margin-top: 10px; font-size: 15px; color: #fff; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; }
.logo .bombs { position: absolute; width: 58px; top: 44px; }
.logo .bombs.l { left: -44px; transform: rotate(-18deg); } .logo .bombs.r { right: -44px; transform: rotate(16deg) scaleX(-1); }
.field { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 12px; }
.input {
  width: 100%; font: inherit; font-size: 20px; font-weight: 900; text-align: center; color: var(--ink);
  padding: 12px; border: 3px solid var(--ink); border-radius: 14px; background: #fff;
  box-shadow: inset 0 4px 0 rgba(0,0,0,.12), 0 4px 0 var(--ink); outline: none; user-select: text; -webkit-user-select: text;
}
.err { color: #ffe04a; min-height: 20px; text-align: center; font-size: 15px; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; }

/* ---------- 顶栏 ---------- */
.topbar { display: flex; align-items: center; gap: 10px; padding: calc(10px + var(--safe-t)) 12px 8px; }
.topbar .me { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.topbar .me .av { width: 42px; height: 42px; }
.topbar .me .nm { font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; -webkit-text-stroke: 3px var(--ink); }
.pill { background: rgba(10,25,80,.55); border: 2px solid var(--ink); border-radius: 99px; padding: 4px 10px; font-size: 13px; white-space: nowrap; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #6bff6b; margin-right: 5px; box-shadow: 0 0 6px #6bff6b; }
.dot.off { background: #ff5a4a; box-shadow: 0 0 6px #ff5a4a; }

/* ---------- 头像 ---------- */
.av { width: 52px; height: 52px; border-radius: 14px; border: 3px solid var(--ink); background: radial-gradient(circle at 50% 30%, #9fd6ff, #3a7de8); overflow: hidden; position: relative; flex: none; box-shadow: 0 3px 0 var(--ink); }
.av svg { width: 115%; height: 115%; margin: -2% 0 0 -7.5%; display: block; }
.av .skull { position: absolute; inset: 0; background: rgba(40,20,40,.65); display: grid; place-items: center; }
.av .skull svg { width: 70%; height: 70%; margin: 0; }

/* ---------- 大厅 ---------- */
.hall { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 4px 12px calc(12px + var(--safe-b)); min-height: 0; }
.rooms { flex: 1; min-height: 0; padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.room-card { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; border: 3px solid var(--ink); background: linear-gradient(180deg, #7fb8ff, #3f7fe6); box-shadow: inset 0 2px 0 rgba(255,255,255,.4), 0 3px 0 var(--ink); }
.room-card.mine { background: linear-gradient(180deg, #ffe98a, #f2b21c); }
.room-card .info { flex: 1; min-width: 0; }
.room-card .rn { font-size: 17px; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-card .who { font-size: 12px; color: #eaf3ff; -webkit-text-stroke: 0; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 0 rgba(0,0,0,.5); }
.room-card.mine .who { color: #5a3a00; text-shadow: none; }
.tagx { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 99px; border: 2px solid var(--ink); margin-left: 6px; vertical-align: 2px; -webkit-text-stroke: 0; }
.tagx.wait { background: #7fd84a; color: #173b0c; } .tagx.play { background: #ff5a4a; color: #fff; }
.empty { text-align: center; padding: 30px 10px; color: #cfe0ff; -webkit-text-stroke: 0; font-size: 15px; }
.row { display: flex; gap: 10px; } .row > * { flex: 1; }

/* ---------- 房间 ---------- */
.seats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 10px 6px; }
.seat { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; }
.seat .av { width: 100%; height: auto; aspect-ratio: 1; }
.seat .nm { font-size: 12px; -webkit-text-stroke: 2.5px var(--ink); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat.empty .av { background: rgba(10,25,80,.4); border-style: dashed; box-shadow: none; display: grid; place-items: center; color: #8fb0e8; font-size: 26px; }
.seat .crownmini { position: absolute; top: -2px; left: 50%; transform: translateX(-50%); width: 26px; }

/* ---------- 牌 ---------- */
.card {
  --frame: linear-gradient(180deg, #ffd87a, #e8900f);
  --artbg: radial-gradient(circle at 50% 40%, #fff3c4, #ffc24a);
  width: var(--cw); aspect-ratio: 5 / 7; flex: none; position: relative;
  border: 3px solid var(--ink); border-radius: 11px; padding: 4px 4px 0; display: flex; flex-direction: column;
  background: var(--frame);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.55), inset 0 -3px 0 rgba(0,0,0,.2), 0 4px 0 var(--ink);
  transition: transform .15s, box-shadow .15s;
}
.card .art { flex: 1; border-radius: 7px; background: var(--artbg); border: 2px solid rgba(35,26,44,.55); overflow: hidden; display: grid; place-items: center; min-height: 0; }
.card .art svg { width: 100%; height: 100%; }
.card .nm { font-size: calc(var(--cw) * .15); text-align: center; line-height: 1; padding: 4px 0 5px; white-space: nowrap; -webkit-text-stroke: calc(var(--cw) * .045) var(--ink); letter-spacing: -.5px; }
.card.k-bomb { --frame: linear-gradient(180deg, #ff6a5a, #7a0f18); --artbg: radial-gradient(circle at 50% 40%, #ffd6a0, #ff5a2a 75%, #b3161f); }
.card.k-defuse { --frame: linear-gradient(180deg, #b6f27a, #2f8a22); --artbg: radial-gradient(circle at 50% 40%, #f0fff0, #9be8a0); }
.card.k-action { --frame: linear-gradient(180deg, #d9b0ff, #5a24b8); --artbg: radial-gradient(circle at 50% 40%, #fff, #c9d9ff 70%, #9ab4ff); }
.card.k-nope { --frame: linear-gradient(180deg, #8fd8ff, #1d4fb8); --artbg: radial-gradient(circle at 50% 40%, #fff, #bfe6ff); }
.card.k-hero { --frame: linear-gradient(180deg, #ffd87a, #d97a0a); --artbg: radial-gradient(circle at 50% 35%, #fff7d6, #ffcf6a); }
.card.sel { transform: translateY(-16px); box-shadow: inset 0 2px 0 rgba(255,255,255,.55), 0 0 0 3px #fff, 0 0 18px 6px #ffe04a, 0 4px 0 var(--ink); }
.card .cnt { position: absolute; top: -8px; right: -8px; min-width: 24px; height: 24px; border-radius: 12px; background: #ff4a4a; border: 2px solid var(--ink); font-size: 13px; display: grid; place-items: center; -webkit-text-stroke: 0; }
.card.big { --cw: min(34vw, 150px); }
.card.mid { --cw: min(26vw, 110px); }
.back-svg { width: var(--cw); aspect-ratio: 5/7; display: block; filter: drop-shadow(0 4px 0 var(--ink)); }

/* ---------- 游戏 ---------- */
.game { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.opps { display: flex; justify-content: center; gap: 6px; padding: calc(8px + var(--safe-t)) 8px 4px; flex-wrap: nowrap; }
.opp { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 70px; position: relative; padding: 5px 2px; border-radius: 14px; transition: background .2s; }
.opp .av { width: 50px; height: 50px; }
.opp .nm { font-size: 12px; max-width: 68px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; -webkit-text-stroke: 2.5px var(--ink); }
.opp .cc { font-size: 12px; display: flex; align-items: center; gap: 3px; background: rgba(10,25,80,.6); border: 2px solid var(--ink); border-radius: 99px; padding: 0 7px 0 4px; -webkit-text-stroke: 0; }
.minicard { width: 10px; height: 14px; border-radius: 2px; background: linear-gradient(#8fd8ff, #2463d6); border: 1.5px solid var(--ink); }
.opp.turn { background: rgba(255,224,74,.3); box-shadow: 0 0 0 2px #ffe04a inset; }
.opp.turn .av { box-shadow: 0 0 0 3px #ffe04a, 0 0 16px #ffe04a; animation: pulse 1s infinite; }
.opp.dead { opacity: .6; }
.opp .badge { position: absolute; top: -2px; right: 4px; background: #ff4a4a; border: 2px solid var(--ink); border-radius: 8px; font-size: 11px; padding: 0 4px; -webkit-text-stroke: 0; }
.opp .tg { position: absolute; top: 40px; left: 50%; transform: translateX(-50%); background: #7a879c; border: 2px solid var(--ink); border-radius: 6px; font-size: 10px; padding: 0 4px; white-space: nowrap; -webkit-text-stroke: 0; }
.opp.pick { animation: wiggle .6s infinite; }

.table { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; position: relative; padding: 4px 10px; }
.arena { display: flex; align-items: center; justify-content: center; gap: 22px; --cw: min(22vw, 96px); }
.pile { display: flex; flex-direction: column; align-items: center; gap: 5px; position: relative; }
.pile .lbl { font-size: 12px; -webkit-text-stroke: 0; color: #dbe8ff; }
.pile .deckwrap { position: relative; }
.pile .deckwrap::before, .pile .deckwrap::after { content: ""; position: absolute; inset: 0; border-radius: 10px; background: #1a3f8a; border: 3px solid var(--ink); transform: translate(4px, 4px); z-index: -1; }
.pile .deckwrap::after { transform: translate(8px, 8px); z-index: -2; }
.pile .count { position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 99px; font-size: 14px; padding: 0 9px; -webkit-text-stroke: 0; }
.slot { width: var(--cw); aspect-ratio: 5/7; border-radius: 11px; border: 3px dashed rgba(255,255,255,.35); }
.bombmeter { display: flex; align-items: center; gap: 4px; font-size: 13px; background: rgba(120,10,20,.6); border: 2px solid var(--ink); border-radius: 99px; padding: 2px 10px; -webkit-text-stroke: 0; }
.status { text-align: center; font-size: 17px; -webkit-text-stroke: 3.5px var(--ink); paint-order: stroke fill; min-height: 24px; padding: 0 6px; }
.status.mine { color: #ffe04a; font-size: 21px; animation: bob 1.4s ease-in-out infinite; }
.nopebar { width: 86%; max-width: 360px; height: 12px; border-radius: 99px; border: 2px solid var(--ink); background: rgba(0,0,0,.35); overflow: hidden; }
.nopebar > i { display: block; height: 100%; background: linear-gradient(90deg, #ff5a4a, #ffd23a); }
.ticker { padding: 0 12px; font-size: 12.5px; color: #e4eeff; -webkit-text-stroke: 0; height: 52px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; text-shadow: 0 1px 0 rgba(0,0,0,.6); }
.ticker div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 17px; opacity: .7; }
.ticker div:last-child { opacity: 1; }

.dock { background: linear-gradient(180deg, rgba(15,42,112,.2), rgba(8,20,60,.85)); border-top: 3px solid var(--ink); padding: 6px 0 calc(8px + var(--safe-b)); position: relative; }
.infoline { min-height: 34px; padding: 2px 12px; font-size: 12.5px; color: #eaf2ff; -webkit-text-stroke: 0; line-height: 16px; }
.infoline b { color: #ffe04a; font-size: 14px; }
.hand { display: flex; gap: 6px; overflow-x: auto; padding: 22px 12px 10px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.hand::-webkit-scrollbar { display: none; }
.hand .card { scroll-snap-align: start; cursor: pointer; }
.hand .card.fresh { animation: pop .45s ease-out; }
.actions { display: flex; gap: 8px; padding: 2px 12px 0; align-items: center; }
.actions .btn.draw { flex: 1.3; }
.actions .btn.play { flex: 1; }
.nopefab { position: absolute; left: 50%; top: -74px; transform: translateX(-50%); z-index: 5; animation: throb .7s infinite; white-space: nowrap; }
.corner { position: absolute; top: calc(8px + var(--safe-t)); display: flex; flex-direction: column; gap: 6px; z-index: 3; }
.corner.l { left: 6px; } .corner.r { right: 6px; }

/* ---------- 弹窗 ---------- */
#modal .back { position: fixed; inset: 0; background: rgba(5,10,40,.72); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 50; animation: fade .15s; }
#modal .box { width: 100%; max-width: 440px; max-height: 88dvh; display: flex; flex-direction: column; gap: 12px; animation: popin .22s ease-out; }
#modal .box .body { min-height: 0; overflow-y: auto; }
.grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 8px 4px 12px; --cw: min(22vw, 88px); }
.grid .card { cursor: pointer; }
.pickp { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; border: 3px solid var(--ink); background: linear-gradient(180deg, #7fb8ff, #3f7fe6); box-shadow: 0 3px 0 var(--ink); cursor: pointer; margin-bottom: 8px; width: 100%; color: #fff; text-align: left; }
.pickp .nm { font-size: 18px; -webkit-text-stroke: 3px var(--ink); flex: 1; }
.peek { display: flex; justify-content: center; gap: 8px; --cw: min(26vw, 110px); padding: 6px 0; }
.peek .pos { text-align: center; font-size: 13px; margin-top: 8px; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; }
.range { width: 100%; accent-color: #ffd23a; height: 34px; }
.logl { font-size: 13.5px; -webkit-text-stroke: 0; line-height: 1.5; padding: 8px 10px; }
.logl div { padding: 3px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.logl .k-boom { color: #ff8a7a; } .logl .k-defuse { color: #9be8a0; } .logl .k-nope { color: #8fd8ff; } .logl .k-private { color: #ffe04a; } .logl .k-win { color: #ffe04a; }
.rules { font-size: 14px; line-height: 1.6; -webkit-text-stroke: 0; padding: 4px 8px; font-weight: 600; }
.rules h3 { margin: 10px 0 4px; font-size: 16px; color: #ffe04a; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; font-weight: 900; }
.rules .ci { display: flex; gap: 10px; align-items: center; margin: 6px 0; --cw: 58px; }
.winner { text-align: center; }
.winner .crown-svg { width: 120px; animation: bob 2s infinite; }
.winner .av { width: 90px; height: 90px; margin: 6px auto; border-radius: 22px; }
.winner .big { font-size: 30px; color: #ffe04a; -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill; }

/* ---------- 提示 & 特效 ---------- */
#toast { position: fixed; left: 0; right: 0; top: 34%; display: flex; justify-content: center; pointer-events: none; z-index: 40; }
.ev { display: flex; align-items: center; gap: 10px; max-width: 92vw; padding: 8px 14px 8px 8px; border-radius: 16px; border: 3px solid var(--ink); background: linear-gradient(180deg, #5b9bff, #2a58c4); box-shadow: 0 5px 0 var(--ink), 0 10px 30px rgba(0,0,0,.4); animation: evin .25s ease-out, evout .3s ease-in forwards; animation-delay: 0s, var(--d, 1.5s); --cw: 54px; }
.ev .t { font-size: 16px; -webkit-text-stroke: 3.5px var(--ink); paint-order: stroke fill; }
.ev.boom { background: linear-gradient(180deg, #ff7a5a, #b3161f); }
.ev.defuse { background: linear-gradient(180deg, #8ee06a, #2f8a22); }
.ev.nope { background: linear-gradient(180deg, #8fd8ff, #1d4fb8); }
.ev.private { background: linear-gradient(180deg, #ffe98a, #e8900f); }
.ev.err { background: linear-gradient(180deg, #ff9a8a, #d0303a); --cw: 0; }
#fx { position: fixed; inset: 0; pointer-events: none; z-index: 45; }
.flash { position: absolute; inset: 0; animation: flash .9s ease-out forwards; display: grid; place-items: center; }
.flash.boom { background: radial-gradient(circle, rgba(255,240,150,.95), rgba(255,90,30,.8) 40%, rgba(120,0,0,.0) 75%); }
.flash.defuse { background: radial-gradient(circle, rgba(200,245,255,.9), rgba(47,168,240,.6) 45%, transparent 75%); }
.flash .fxart { width: 200px; animation: zoom .9s ease-out forwards; }
.shake { animation: shake .5s; }
.offline { position: fixed; top: calc(6px + var(--safe-t)); left: 50%; transform: translateX(-50%); z-index: 60; background: #ff5a4a; border: 2px solid var(--ink); border-radius: 99px; padding: 3px 12px; font-size: 13px; -webkit-text-stroke: 0; }

@keyframes bob { 50% { transform: translateY(-5px); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 3px #ffe04a, 0 0 26px #ffe04a; } }
@keyframes throb { 50% { transform: translateX(-50%) scale(1.08); } }
@keyframes wiggle { 25% { transform: rotate(-3deg); } 75% { transform: rotate(3deg); } }
@keyframes pop { 0% { transform: translateY(-40px) scale(.6); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes popin { 0% { transform: scale(.7); opacity: 0; } 70% { transform: scale(1.04); } 100% { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } }
@keyframes evin { from { transform: scale(.6) translateY(20px); opacity: 0; } }
@keyframes evout { to { transform: translateY(-30px); opacity: 0; } }
@keyframes flash { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: 0; } }
@keyframes zoom { 0% { transform: scale(.3) rotate(-20deg); } 30% { transform: scale(1.2) rotate(6deg); } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes shake { 10%, 90% { transform: translate(-2px, 1px); } 20%, 80% { transform: translate(4px, -2px); } 30%, 50%, 70% { transform: translate(-7px, 3px); } 40%, 60% { transform: translate(7px, -3px); } }

@media (max-height: 640px) { :root { --cw: min(18vw, 76px); } .arena { --cw: min(17vw, 74px); } .opp .av { width: 42px; height: 42px; } .ticker { height: 36px; } }
@media (min-width: 560px) { #app { border-left: 3px solid var(--ink); border-right: 3px solid var(--ink); } }
