:root {
  --bg: #1b1033; --bg2: #2a1650; --panel: #2f1b5a; --line: #4a2f85;
  --ink: #fff7e6; --mute: #b9a8d9; --hot: #ff6b1a; --yel: #ffd23f; --red: #ff3b4f; --grn: #2ec27e; --blu: #3a86ff;
  --r: 16px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background: radial-gradient(1200px 700px at 50% -10%, #4b1f7a 0%, transparent 60%),
              radial-gradient(800px 500px at 100% 100%, #5a1a3a 0%, transparent 60%), var(--bg);
  background-attachment: fixed;
  color: var(--ink); font: 700 16px/1.35 Nunito, system-ui, sans-serif;
  overscroll-behavior: none; -webkit-user-select: none; user-select: none;
}
input, select, button { font: inherit; }
input, select { -webkit-user-select: text; user-select: text; }
b, strong { font-weight: 900; }
.hot { color: var(--hot); }
.small { color: var(--mute); font-size: 13px; }
a { color: var(--yel); }
#app { min-height: 100%; }
.screen { max-width: 560px; margin: 0 auto; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); }
.center { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 80vh; text-align: center; }

/* ---------- logo ---------- */
.logo { font-family: Bangers, Impact, sans-serif; font-weight: 400; letter-spacing: 2px; line-height: .9; margin: 0; text-align: center; text-shadow: 3px 3px 0 #000, 0 0 24px rgba(255, 107, 26, .35); }
.logo span { display: block; font-size: 54px; }
.logo span:nth-child(2) { color: var(--yel); transform: rotate(-3deg); }
.logo .hot { font-size: 60px; color: var(--hot); animation: throb 1.6s ease-in-out infinite; }
.logo.big span { font-size: clamp(54px, 7vw, 110px); }
.logo.sm span { display: inline; font-size: 26px; }
.logo.sm .hot { font-size: 26px; animation: none; }
@keyframes throb { 50% { transform: scale(1.06) rotate(1deg); } }
.hero { text-align: center; padding-top: 8px; }
.ball { font-size: 64px; animation: bob 2.2s ease-in-out infinite; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .5)); }
.ball.spin { animation: spin 1s linear infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-8deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
.tag { color: var(--mute); margin: 10px 0 18px; }

/* ---------- pannelli / form ---------- */
.panel { background: var(--panel); border: 2px solid var(--line); border-radius: 22px; padding: 18px; box-shadow: 0 10px 0 rgba(0, 0, 0, .25); }
label { display: block; font-size: 14px; color: var(--mute); margin: 4px 0 6px; }
input[type=text], input:not([type]), select {
  width: 100%; padding: 13px 14px; border-radius: 12px; border: 2px solid var(--line); background: #170c2c; color: var(--ink); font-size: 18px; outline: none;
}
input:focus, select:focus { border-color: var(--yel); }
select:disabled { opacity: .7; }
.avatars { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 16px; }
.av { width: 42px; height: 42px; border-radius: 12px; border: 2px solid transparent; background: #170c2c; font-size: 22px; cursor: pointer; padding: 0; }
.av.on { border-color: var(--yel); background: #3e2470; transform: scale(1.1); }
.join-row { display: flex; gap: 8px; }
.join-row input { text-transform: uppercase; letter-spacing: 6px; text-align: center; font-family: Bangers, sans-serif; font-size: 26px; flex: 1; min-width: 0; }
.or { text-align: center; margin: 16px 0; position: relative; color: var(--mute); font-size: 13px; }
.or::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed var(--line); }
.or span { background: var(--panel); padding: 0 10px; position: relative; }
.tvjoin .or span { background: var(--bg); }
.foot { display: flex; justify-content: center; gap: 18px; margin: 18px 0; flex-wrap: wrap; }
.lnk { background: none; border: 0; color: var(--yel); cursor: pointer; text-decoration: none; padding: 6px; font-weight: 800; }

.btn {
  border: 0; border-radius: 14px; padding: 12px 16px; background: #4a3577; color: var(--ink); font-weight: 900; cursor: pointer;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .35); transition: transform .08s; touch-action: manipulation;
}
.btn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, .35); }
.btn:disabled { opacity: .4; cursor: default; }
.btn.big { width: 100%; padding: 16px; font-size: 20px; margin-top: 10px; }
.btn.orange { background: linear-gradient(180deg, #ff8a3d, #ff5a1a); }
.btn.green { background: linear-gradient(180deg, #3ad68f, #1f9e62); }
.btn.blue { background: linear-gradient(180deg, #5a9bff, #2f6fe0); }
.btn.red { background: linear-gradient(180deg, #ff5a6c, #d61f3a); }

/* ---------- lobby ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 36px; }
.codebox { text-align: center; background: var(--panel); border: 2px solid var(--line); border-radius: 22px; padding: 14px; margin: 8px 0 14px; }
.code { font-family: Bangers, sans-serif; font-size: 64px; letter-spacing: 10px; color: var(--yel); text-shadow: 3px 3px 0 #000; line-height: 1; margin: 4px 0 8px; }
.code.huge { font-size: clamp(64px, 9vw, 150px); }
.qr { width: 150px; height: 150px; border-radius: 12px; background: #fff; padding: 6px; display: block; margin: 0 auto 8px; }
.qr.big { width: clamp(200px, 22vw, 340px); height: auto; aspect-ratio: 1; margin: 0; }
h3 { margin: 16px 0 8px; font-size: 16px; }
.plist { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.plist li { display: flex; align-items: center; gap: 10px; background: #24134a; border-left: 6px solid var(--pc); border-radius: 12px; padding: 8px 10px; }
.plist .pa { font-size: 26px; }
.plist .pn { flex: 1; }
.plist i { color: var(--mute); font-style: normal; font-size: 13px; }
.badge { font-size: 12px; background: #3e2470; border-radius: 99px; padding: 2px 8px; }
.badge.off { background: #5a2020; }
.x { background: #5a2030; color: #fff; border: 0; border-radius: 8px; width: 30px; height: 30px; cursor: pointer; }
.settings { display: grid; gap: 8px; }
.settings label { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #24134a; padding: 8px 10px; border-radius: 12px; margin: 0; color: var(--ink); font-size: 14px; }
.settings select { width: auto; padding: 6px 8px; font-size: 15px; }
.wait { text-align: center; padding: 18px; background: #24134a; border-radius: 14px; margin-top: 14px; }
.tip { color: var(--mute); font-size: 13px; text-align: center; margin-top: 14px; }

/* ---------- carte ---------- */
.card {
  --c: #555; position: relative; flex: 0 0 auto; width: 92px; height: 132px; border-radius: 12px; padding: 8px 6px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 85%, #fff 15%), var(--c) 55%, color-mix(in srgb, var(--c) 70%, #000 30%));
  border: 3px solid #fff7e6; box-shadow: 0 6px 0 rgba(0, 0, 0, .35), inset 0 0 0 2px rgba(0, 0, 0, .25);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center;
  cursor: pointer; transition: transform .15s, box-shadow .15s; color: #fff;
}
.card .ce { font-size: 44px; line-height: 1.1; margin-top: 8px; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .35)); }
.card .cn { font-family: Bangers, sans-serif; font-size: 16px; letter-spacing: .5px; line-height: 1; text-shadow: 1px 1px 0 #000; }
.card .cd { font-size: 11px; font-weight: 700; }
.card.sel { transform: translateY(-16px) rotate(-2deg); box-shadow: 0 0 0 4px var(--yel), 0 14px 18px rgba(0, 0, 0, .5); }
.card.small { width: 70px; height: 100px; padding: 5px 4px; border-width: 2px; }
.card.small .ce { font-size: 32px; margin-top: 4px; }
.card.small .cn { font-size: 12px; }
.card.empty { background: transparent; border: 2px dashed var(--line); color: var(--mute); justify-content: center; box-shadow: none; width: 70px; height: 100px; font-size: 12px; }
.card.t-bomb { border-color: var(--red); animation: danger 0.9s infinite alternate; }
@keyframes danger { to { box-shadow: 0 0 22px var(--red), 0 6px 0 rgba(0, 0, 0, .35); } }
.mini { display: inline-block; background: var(--c); border-radius: 8px; padding: 0 6px; white-space: nowrap; border: 1px solid rgba(255, 255, 255, .5); }

/* ---------- partita (telefono) ---------- */
.game { display: flex; flex-direction: column; min-height: 100dvh; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
.game.myturn { box-shadow: inset 0 0 0 3px var(--yel); }
.strip { display: flex; gap: 6px; overflow-x: auto; padding: 6px 0 8px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; min-width: 74px; background: #24134a; border: 2px solid transparent; border-bottom: 4px solid var(--pc); border-radius: 12px; padding: 5px 7px; text-align: center; }
.chip .pa { font-size: 22px; line-height: 1; }
.chip .pn { font-size: 12px; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip .pc { font-size: 11px; color: var(--mute); }
.chip.cur { border-color: var(--yel); background: #3e2470; animation: pulse 1.2s infinite; }
.chip.dead { opacity: .45; filter: grayscale(1); }
.chip.off .pa { opacity: .5; }
@keyframes pulse { 50% { box-shadow: 0 0 14px rgba(255, 210, 63, .6); } }
.table { display: grid; grid-template-columns: auto auto 1fr; gap: 12px; align-items: center; background: #24134a; border-radius: 18px; padding: 10px; }
.deck { text-align: center; display: flex; flex-direction: column; align-items: center; }
.deck .stack span { font-family: Bangers, sans-serif; font-size: 22px; color: var(--yel); text-shadow: 2px 2px 0 #000; transform: rotate(-12deg); }
.deck.huge .stack span { font-size: 3vw; }
.deck .stack { width: 62px; height: 86px; border-radius: 10px; font-size: 40px; display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(45deg, #6b2fbf 0 8px, #5a25a3 8px 16px); border: 3px solid #fff7e6; box-shadow: 3px 3px 0 #3a1a6a, 6px 6px 0 #2a1250; }
.deck b { font-family: Bangers, sans-serif; font-size: 24px; margin-top: 6px; line-height: 1; }
.deck span { font-size: 11px; color: var(--mute); }
.status { font-size: 15px; }
.timer { position: relative; height: 10px; background: rgba(255, 255, 255, .12); border-radius: 99px; margin-top: 8px; overflow: hidden; }
.timer i { position: absolute; inset: 0 auto 0 0; background: var(--yel); border-radius: 99px; transition: width .2s linear; }
.timer b { position: absolute; right: 6px; top: -3px; font-size: 11px; color: #000; text-shadow: 0 0 2px #fff; }
.timer.red i { background: var(--red); }
.timer.low i { background: var(--red); }
.log { list-style: none; padding: 0; margin: 10px 0 4px; font-size: 13px; color: var(--mute); }
.log li { padding: 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.log li:first-child { color: var(--ink); font-size: 14px; }
.k-boom { color: #ff8080 !important; }
.k-big, .k-nope { color: var(--yel) !important; }
.info { min-height: 40px; margin-bottom: 0; font-size: 13px; background: rgba(0, 0, 0, .2); border-radius: 12px; padding: 8px 10px; margin-top: auto; color: #e8dcff; }
.hand { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 8px; padding: 22px 0 14px; max-height: 46dvh; overflow-y: auto; }
.hand .card { width: calc((100% - 24px) / 4); max-width: 100px; height: auto; aspect-ratio: 92 / 132; }
.hand .card .ce { font-size: clamp(30px, 9vw, 44px); }
.hand .card .cn { font-size: clamp(12px, 3.6vw, 16px); }
.nohand { color: var(--mute); padding: 30px; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.actions .btn { padding: 16px 10px; font-size: 17px; }
.iamdead .hand { filter: grayscale(1); opacity: .5; }

/* ---------- modali ---------- */
.modal { position: fixed; inset: 0; background: rgba(10, 4, 24, .78); backdrop-filter: blur(4px); display: flex; align-items: flex-end; justify-content: center; z-index: 50; animation: fade .2s; }
.mbox { position: relative; background: var(--panel); border: 2px solid var(--line); border-radius: 24px 24px 0 0; width: 100%; max-width: 560px; max-height: 92dvh; overflow: auto; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); animation: up .25s; -webkit-user-select: text; user-select: text; }
.modal.danger .mbox { border-color: var(--grn); }
.modal.over .mbox { text-align: center; }
.mbox h2 { margin: 0 0 8px; font-family: Bangers, sans-serif; font-weight: 400; letter-spacing: 1px; font-size: 30px; }
.mbox p { margin: 6px 0 12px; color: #e8dcff; }
.mx { position: absolute; top: 10px; right: 10px; background: #4a3577; border: 0; color: #fff; width: 34px; height: 34px; border-radius: 10px; cursor: pointer; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.grid { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 12px 0; }
.peek .pk { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--mute); }
.targets { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin-top: 10px; }
.tgt { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px; border-radius: 14px; border: 2px solid var(--pc); background: #24134a; color: var(--ink); cursor: pointer; }
.tgt .pa { font-size: 32px; }
.tgt:disabled { opacity: .35; }
.placer { margin: 16px 0 8px; }
.placer input { width: 100%; accent-color: var(--hot); height: 30px; }
.poslabel { text-align: center; font-size: 18px; color: var(--yel); margin-top: 6px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.row2 { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.row2 .btn.big { margin: 0; flex: 1; }
.alter { list-style: none; padding: 0; display: grid; gap: 8px; counter-reset: a; }
.alter li { display: flex; align-items: center; gap: 12px; background: #24134a; border-radius: 14px; padding: 6px 10px; }
.alter li::before { counter-increment: a; content: counter(a) "ª"; font-family: Bangers, sans-serif; font-size: 26px; color: var(--yel); width: 30px; }
.arrows { margin-left: auto; display: flex; flex-direction: column; gap: 6px; }
.rules ol { padding-left: 20px; }
.rules-cards { display: grid; gap: 10px; }
.rc { display: flex; gap: 12px; align-items: center; }
.rc p { margin: 0; font-size: 14px; }
.win-av { font-size: 90px; animation: bob 1.5s infinite; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; margin: 0 auto; max-width: 560px; background: #3a1530; border: 2px solid var(--red); border-bottom: 0; border-radius: 22px 22px 0 0; padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 30px rgba(0, 0, 0, .5); animation: up .2s; }
.sheet.noped { background: #4a1020; }
.sheet-t { font-size: 16px; }
.nopes { color: var(--yel); margin-top: 6px; font-size: 14px; }

/* ---------- toast / effetti ---------- */
#toasts { position: fixed; top: calc(8px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 100; display: grid; gap: 6px; width: min(92vw, 440px); pointer-events: none; }
.toast { background: #24134a; border: 2px solid var(--line); border-radius: 14px; padding: 10px 14px; box-shadow: 0 8px 20px rgba(0, 0, 0, .4); animation: drop .25s; transition: opacity .4s, transform .4s; }
.toast.err { border-color: var(--red); }
.toast.card { border-color: var(--yel); }
.toast.out { opacity: 0; transform: translateY(-10px); }
@keyframes drop { from { transform: translateY(-20px); opacity: 0; } }
#conn { position: fixed; bottom: 10px; left: 50%; transform: translateX(-50%); background: var(--red); padding: 6px 14px; border-radius: 99px; z-index: 120; font-size: 13px; }
#fx { position: fixed; inset: 0; pointer-events: none; z-index: 90; }
.burst { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; animation: burstIn .35s ease-out, burstOut .4s ease-in forwards; animation-delay: 0s, calc(var(--d, 1.5s)); }
.burst.boom { background: radial-gradient(circle, rgba(255, 140, 0, .9), rgba(200, 0, 0, .75) 40%, rgba(20, 0, 0, .9) 80%); --d: 2s; }
.burst.defuse { background: radial-gradient(circle, rgba(46, 194, 126, .7), transparent 70%); }
.burst.nope { --d: 1.1s; }
.burst.attack { background: radial-gradient(circle, rgba(247, 127, 0, .55), transparent 70%); --d: 1.2s; }
.burst.fly { --d: 1.1s; }
.burst.rev { --d: .8s; }
.big-e { font-size: 130px; line-height: 1; animation: pop .5s cubic-bezier(.2, 2, .4, 1); }
.bt { font-family: Bangers, sans-serif; font-size: 72px; letter-spacing: 3px; text-shadow: 4px 4px 0 #000; }
.bs { font-size: 22px; text-shadow: 2px 2px 0 #000; padding: 0 16px; }
.stamp { font-family: Bangers, sans-serif; font-size: 64px; color: #fff; background: var(--red); padding: 6px 24px; border: 6px solid #fff; border-radius: 12px; transform: rotate(-12deg); animation: stamp .35s cubic-bezier(.2, 2, .4, 1); box-shadow: 0 10px 30px rgba(0, 0, 0, .6); }
.flycards { display: flex; gap: 10px; animation: pop .4s cubic-bezier(.2, 2, .4, 1); }
.flycards .card { width: 180px; height: 260px; } .flycards .card .ce { font-size: 96px; } .flycards .card .cn { font-size: 28px; }
.spin1 { animation: spin .8s ease-in-out; }
@keyframes pop { from { transform: scale(.2); } }
@keyframes stamp { from { transform: scale(3) rotate(-12deg); opacity: 0; } }
@keyframes burstIn { from { opacity: 0; } }
@keyframes burstOut { to { opacity: 0; } }
.shake { animation: shake .6s; }
@keyframes shake { 10%, 90% { transform: translate(-2px, 1px); } 20%, 80% { transform: translate(4px, -2px); } 30%, 50%, 70% { transform: translate(-8px, 3px); } 40%, 60% { transform: translate(8px, -3px); } }
.confetti span { position: absolute; top: -40px; animation: fall 3.2s linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }
.wiggle { animation: wiggle .5s; }
@keyframes wiggle { 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }

/* ---------- TV ---------- */
.screen.tv { max-width: none; min-height: 100vh; padding: 2vw 3vw; }
.tvjoin { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; max-width: 640px !important; margin: 0 auto; text-align: center; }
.tvjoin .join-row { width: 100%; }
.audio-btn { position: fixed; right: 16px; bottom: 16px; z-index: 60; background: var(--hot); color: #fff; border: 0; border-radius: 99px; padding: 12px 18px; font-weight: 900; cursor: pointer; box-shadow: 0 4px 0 rgba(0, 0, 0, .35); }
.tvlobby { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3vw; align-items: center; }
.joinhow { display: flex; gap: 2.5vw; align-items: center; justify-content: center; margin-top: 3vw; background: var(--panel); border: 3px solid var(--line); border-radius: 28px; padding: 2vw; }
.joinhow .small { font-size: clamp(14px, 1.3vw, 24px); }
.url { font-size: clamp(16px, 1.7vw, 32px); color: var(--yel); margin-bottom: 1vw; white-space: nowrap; }
.tvl-right h2 { font-family: Bangers, sans-serif; font-weight: 400; font-size: clamp(28px, 3vw, 54px); margin: 0 0 1vw; letter-spacing: 1px; }
.tvplayers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1vw; }
.tvp { display: flex; align-items: center; gap: 1vw; background: #24134a; border-left: 8px solid var(--pc); border-radius: 16px; padding: 1vw 1.4vw; font-size: clamp(16px, 1.6vw, 30px); }
.tvp .pa { font-size: clamp(28px, 2.8vw, 54px); }
.pop { animation: pop .4s cubic-bezier(.2, 2, .4, 1); }
.hint { color: var(--mute); font-size: clamp(14px, 1.3vw, 24px); margin-top: 2vw; }
.tvgame { display: grid; grid-template-rows: auto auto 1fr auto; gap: 1.5vw; height: 100vh; overflow: hidden; }
.tv-top { display: flex; justify-content: space-between; align-items: center; color: var(--mute); font-size: clamp(13px, 1.2vw, 22px); }
.tv-players { display: flex; gap: 1vw; justify-content: center; flex-wrap: wrap; }
.chip.big { min-width: 8vw; padding: .8vw 1vw; border-radius: 18px; border-bottom-width: 6px; }
.chip.big .pa { font-size: clamp(28px, 3vw, 60px); }
.chip.big .pn { font-size: clamp(13px, 1.3vw, 26px); max-width: 14vw; }
.chip.big .pc { font-size: clamp(11px, 1vw, 20px); }
.chip.big.cur { transform: scale(1.12); }
.tv-mid { display: grid; grid-template-columns: auto auto 1fr; gap: 4vw; align-items: center; padding: 0 3vw; }
.deck.huge .stack { width: 11vw; height: 15.5vw; font-size: 7vw; border-width: 5px; box-shadow: 6px 6px 0 #3a1a6a, 12px 12px 0 #2a1250; }
.deck.huge b { font-size: 4vw; margin-top: 1vw; }
.deck.huge span { font-size: 1.2vw; }
.fan { position: relative; width: 16vw; height: 22vw; }
.fan .card { position: absolute; inset: 0; width: 15vw; height: 21.5vw; border-width: 5px; border-radius: 1.4vw; }
.fan .card .ce { font-size: 7vw; } .fan .card .cn { font-size: 2vw; }
.fan .card.under:nth-child(1) { transform: rotate(-12deg) translate(-1.5vw, .5vw); opacity: .7; }
.fan .card.under:nth-child(2) { transform: rotate(-5deg) translate(-.6vw, .2vw); opacity: .85; }
.fan .card.top { transform: rotate(4deg); }
.fan .card.empty { position: static; }
.tv-status { font-size: clamp(18px, 2.2vw, 44px); }
.tv-status .timer { height: 1.2vw; min-height: 10px; margin: 1vw 0; }
.tv-status .timer b { font-size: clamp(11px, 1vw, 20px); top: 0; }
.turnis .x { color: var(--hot); }
.announce { margin-top: 1.5vw; font-size: clamp(16px, 1.8vw, 36px); background: rgba(0, 0, 0, .25); border-radius: 18px; padding: 1vw 1.5vw; animation: pop .35s; }
.pend.noped { color: #ff9aa5; text-decoration: line-through; }
.pend .nopes { text-decoration: none; display: block; }
.winner { font-family: Bangers, sans-serif; font-size: clamp(40px, 5vw, 100px); color: var(--yel); }
.winner .win-av { font-size: 1.5em; }
.tv-log { list-style: none; margin: 0; padding: 1vw 2vw; background: rgba(0, 0, 0, .22); border-radius: 20px; columns: 2; font-size: clamp(12px, 1.1vw, 22px); color: var(--mute); }
.tv-log li { padding: .2vw 0; break-inside: avoid; }
.tv .card { cursor: default; }

@media (max-width: 900px) {
  .tvlobby { grid-template-columns: 1fr; }
  .tv-mid { grid-template-columns: 1fr 1fr; }
  .tv-status { grid-column: 1 / -1; }
  .tv-log { columns: 1; }
  .tvgame { height: auto; overflow: visible; }
}
@media (max-width: 380px) {
  .card { width: 82px; height: 120px; }
  .card .ce { font-size: 38px; }
  .logo span { font-size: 44px; }
  .logo .hot { font-size: 50px; }
}
