:root {
  --night: #121833;
  --cloth: #1f2b63;
  --cloth-deep: #182250;
  --thread: #f2e8d5;
  --madder: #b3362b;
  --turmeric: #e4a62b;
  --ink: #1a1a22;
  --muted: #9aa2cc;
  --cw: min(16.5vw, 74px);
  --ch: calc(var(--cw) * 1.42);
  --stitch: 2px dashed;
  --font: "Hind Siliguri", "Noto Sans", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--night);
  color: var(--thread);
  font: 400 16px/1.45 var(--font);
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
}
[hidden] { display: none !important; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--turmeric); outline-offset: 2px; }
.muted { color: var(--muted); }

/* ---------- buttons & fields */
.btn {
  border: 1.5px solid var(--thread); background: transparent; border-radius: 10px;
  padding: 11px 18px; font-weight: 600; cursor: pointer; min-height: 46px;
}
.btn.primary { background: var(--turmeric); border-color: var(--turmeric); color: var(--ink); }
.btn.danger { border-color: var(--madder); color: #ffb4ab; }
.btn.ghost { border-color: rgba(242, 232, 213, .35); color: var(--muted); }
.btn.link { border: 0; background: none; color: var(--muted); text-decoration: underline; min-height: 40px; padding: 8px; }
.btn:disabled { opacity: .45; cursor: default; }
.btn.small { min-height: 36px; padding: 6px 12px; font-size: 14px; }
input {
  width: 100%; background: var(--cloth-deep); border: 1.5px solid rgba(242, 232, 213, .25);
  border-radius: 10px; padding: 12px 14px; min-height: 46px;
}
input:focus { border-color: var(--turmeric); outline: none; }

/* ---------- home */
.screen { min-height: 100%; }
#home { display: grid; place-items: center; padding: 24px 20px; }
.home-inner { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 14px; }
.logo {
  font-size: 128px; line-height: .9; font-weight: 700; margin: 0; letter-spacing: -4px;
  color: var(--thread); padding-bottom: 10px; border-bottom: var(--stitch) var(--turmeric);
  align-self: flex-start;
}
.tag { margin: 0 0 8px; color: var(--muted); }
.field span { display: block; font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.or { color: var(--muted); font-size: 14px; text-align: center; margin-top: 6px; }
.join-row { display: flex; gap: 8px; }
.join-row input { text-transform: uppercase; letter-spacing: 3px; font-weight: 600; }
.invite-box { border: var(--stitch) var(--turmeric); border-radius: 14px; padding: 14px; }
.invite-box p { margin: 0 0 8px; }
.invite-box .btn { width: 100%; }

/* ---------- lobby */
#lobby { padding: 20px; max-width: 460px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.lobby-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.big-code { font-size: 44px; font-weight: 700; letter-spacing: 6px; line-height: 1; }
.lobby-hint { margin: 0; font-size: 14px; }
.lobby-seats {
  display: grid; grid-template-areas: ". s2 ." "s3 mid s1" ". s0 ."; grid-template-columns: 1fr 1fr 1fr;
  gap: 10px; align-items: center;
}
.lobby-mid {
  grid-area: mid; aspect-ratio: 1; border-radius: 50%; background: var(--cloth);
  border: var(--stitch) rgba(242, 232, 213, .4); display: grid; place-items: center;
  font-weight: 700; font-size: 28px; color: var(--muted);
}
.lseat {
  background: var(--cloth-deep); border-radius: 12px; padding: 10px 8px; text-align: center;
  min-height: 86px; display: flex; flex-direction: column; justify-content: center; gap: 4px;
  border: 1.5px solid transparent;
}
.lseat.me { border: var(--stitch) var(--turmeric); }
.lseat.open { border: 1.5px dashed rgba(242, 232, 213, .3); background: transparent; }
.lseat .nm { font-weight: 600; overflow-wrap: anywhere; }
.lseat .team { font-size: 12px; color: var(--muted); }
.lobby-actions { display: flex; flex-direction: column; gap: 10px; }
.lobby-actions p { margin: 0; text-align: center; }

/* ---------- table */
#table { display: flex; flex-direction: column; height: 100dvh; overflow: hidden; }
.bar { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; gap: 8px; }
.score { display: flex; flex-direction: column; align-items: center; min-width: 54px; }
.score-label { font-size: 12px; color: var(--muted); }
.score-num { font-size: 26px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.contract { text-align: center; font-size: 14px; line-height: 1.25; color: var(--muted); }
.contract strong { color: var(--thread); font-size: 17px; }
.contract .mult { color: var(--turmeric); font-weight: 700; }

.felt {
  position: relative; flex: 1; margin: 0 10px; border-radius: 28px; background:
    radial-gradient(120% 90% at 50% 45%, var(--cloth) 55%, var(--cloth-deep));
  outline: var(--stitch) rgba(242, 232, 213, .38); outline-offset: -9px; min-height: 250px;
}
.seat { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 14px; }
.felt .seat { position: absolute; }
.pos-top { top: 14px; left: 50%; transform: translateX(-50%); }
.pos-left { left: 14px; top: 42%; transform: translateY(-50%); }
.pos-right { right: 14px; top: 42%; transform: translateY(-50%); }
.seat .who {
  padding: 4px 10px; border-radius: 999px; background: var(--cloth-deep); font-weight: 600;
  max-width: 28vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border: 2px solid transparent;
}
.seat.turn .who { border: var(--stitch) var(--turmeric); color: var(--turmeric); }
.seat.off .who { opacity: .5; }
.seat .meta { font-size: 12px; color: var(--muted); display: flex; gap: 6px; }
.seat .bubble { font-size: 12px; background: var(--thread); color: var(--ink); border-radius: 8px; padding: 1px 8px; font-weight: 600; }
.seat .bubble.pass { background: transparent; color: var(--muted); border: 1px solid var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #58c27d; display: inline-block; align-self: center; }
.dot.off { background: var(--madder); }
.backs { display: flex; margin-top: 2px; }
.backs i {
  width: 12px; height: 17px; border-radius: 2px; margin-left: -6px; background: var(--madder);
  border: 1px solid var(--thread);
}
.backs i:first-child { margin-left: 0; }

.trick { position: absolute; inset: 0; pointer-events: none; }
.trick .card { position: absolute; left: 50%; top: 46%; --tw: calc(var(--cw) * .9); width: var(--tw); height: calc(var(--tw) * 1.42); }
.trick .r0 { transform: translate(-50%, 14%); }
.trick .r1 { transform: translate(55%, -50%) rotate(6deg); }
.trick .r2 { transform: translate(-50%, -114%); }
.trick .r3 { transform: translate(-155%, -50%) rotate(-6deg); }
.trick .card.win { box-shadow: 0 0 0 3px var(--turmeric); }
.trump-chip {
  position: absolute; right: 16px; bottom: 30px; min-width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-size: 24px; background: var(--thread); color: var(--ink);
  border: var(--stitch) var(--turmeric); outline: 3px solid var(--cloth);
}
.trump-chip.red { color: var(--madder); }
.trump-chip.hidden { background: var(--cloth-deep); color: var(--muted); font-weight: 700; }
.trump-chip.secret { opacity: .75; }
.trump-chip small { position: absolute; bottom: -19px; right: 0; font-size: 11px; color: var(--muted); white-space: nowrap; }

.panel { min-height: 58px; padding: 8px 14px 2px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; text-align: center; }
.panel .msg { width: 100%; margin: 0; color: var(--muted); font-size: 14px; }
.panel .msg.hot { color: var(--turmeric); font-weight: 600; }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper .val { min-width: 44px; font-size: 24px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.suit-btn { font-size: 26px; min-width: 58px; background: var(--thread); border-color: var(--thread); color: var(--ink); }
.suit-btn.red { color: var(--madder); }

.me-row { display: flex; align-items: center; justify-content: space-between; padding: 2px 12px; }
.pos-bottom { align-items: flex-start; }
.tools { display: flex; gap: 6px; }
.icon-btn {
  position: relative; background: var(--cloth-deep); border: 0; border-radius: 999px;
  padding: 6px 12px; font-size: 13px; min-height: 34px; cursor: pointer;
}
.badge { position: absolute; top: -2px; right: -2px; width: 10px; height: 10px; border-radius: 50%; background: var(--turmeric); }

.hand {
  display: flex; justify-content: center; padding: 14px 8px calc(12px + env(safe-area-inset-bottom, 0));
  min-height: calc(var(--ch) + 30px);
}
.hand .card { margin-left: calc(var(--cw) * -0.36); transition: transform .12s ease; cursor: pointer; }
.hand .card:first-child { margin-left: 0; }
.hand .card.dim { filter: brightness(.55) saturate(.6); }
.hand .card.legal { transform: translateY(-6px); }
.hand .card.sel { transform: translateY(-22px); box-shadow: 0 0 0 3px var(--turmeric), 0 8px 18px rgba(0,0,0,.4); }
.hand-empty { color: var(--muted); align-self: center; }

/* ---------- card */
.card {
  width: var(--cw); height: var(--ch); border-radius: 8px; background: var(--thread); color: var(--ink);
  position: relative; flex: none; border: 1px solid rgba(0,0,0,.25); box-shadow: 0 2px 5px rgba(0,0,0,.35);
  user-select: none;
}
.card.red { color: var(--madder); }
.card .ix { position: absolute; top: 3px; left: 5px; display: flex; flex-direction: column; align-items: center; line-height: 1; font-weight: 700; }
.card .ix b { font-size: calc(var(--cw) * .3); }
.card .ix span { font-size: calc(var(--cw) * .24); }
.card .pip { position: absolute; right: 6px; bottom: 2px; font-size: calc(var(--cw) * .5); line-height: 1; }
.card .pts { position: absolute; right: 5px; top: 4px; font-size: 10px; font-weight: 700; opacity: .55; }

/* ---------- sheets, toast, conn */
.sheet-wrap { position: fixed; inset: 0; background: rgba(8, 11, 26, .6); display: flex; align-items: flex-end; justify-content: center; z-index: 20; }
.sheet {
  width: 100%; max-width: 520px; max-height: 88dvh; overflow: auto; background: var(--night);
  border-radius: 20px 20px 0 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom, 0));
  border-top: var(--stitch) var(--turmeric);
}
.sheet h2 { margin: 0 0 8px; font-size: 22px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; }
.sheet .row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.sheet .row .btn { flex: 1; }
.sheet .result-big { font-size: 34px; font-weight: 700; margin: 4px 0; }
.sheet dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 10px 0; }
.sheet dt { color: var(--muted); }
.sheet dd { margin: 0; font-weight: 600; }
.rules p { max-width: 62ch; }
.last-cards { display: flex; gap: 8px; justify-content: center; margin: 12px 0; flex-wrap: wrap; }
.last-cards figure { margin: 0; text-align: center; font-size: 12px; color: var(--muted); }
.last-cards figcaption { margin-top: 4px; max-width: var(--cw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.chat-log { display: flex; flex-direction: column; gap: 6px; min-height: 120px; max-height: 45dvh; overflow: auto; margin: 8px 0; }
.chat-log .m b { color: var(--turmeric); font-weight: 600; margin-right: 6px; }
.chat-form { display: flex; gap: 8px; }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--ch) + 60px); transform: translateX(-50%); z-index: 40;
  background: var(--thread); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 600;
  max-width: 90vw; text-align: center; box-shadow: 0 6px 20px rgba(0,0,0,.4);
  pointer-events: none;   /* never block the buttons underneath */
}
.conn {
  position: fixed; top: calc(6px + env(safe-area-inset-top, 0)); left: 50%; transform: translateX(-50%); z-index: 30;
  background: var(--madder); color: var(--thread); padding: 4px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
}
.pause {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px;
  background: rgba(18, 24, 51, .82); border-radius: 28px; z-index: 5; pointer-events: auto;
}
.pause h3 { margin: 0 0 6px; font-size: 20px; }
.pause .btn { margin-top: 8px; }

.lobby-mode { display: flex; flex-direction: column; gap: 6px; }
.mode-pick { display: flex; gap: 8px; }
.mode-pick .btn { flex: 1; min-height: 42px; }
.mode-pick .btn.on { background: var(--turmeric); border-color: var(--turmeric); color: var(--ink); }
.mode-now, .mode-blurb { margin: 0; }
.mode-blurb { font-size: 14px; }
.contract .small { font-size: 12px; }
.trump-chip { cursor: default; }
.trump-chip.card-chip { font-size: 17px; font-weight: 700; min-width: 50px; height: 50px; cursor: pointer; }
.rules h3 { margin: 16px 0 4px; font-size: 18px; color: var(--turmeric); }
.rules section + section { border-top: var(--stitch) rgba(242, 232, 213, .25); margin-top: 14px; }

.lseat.bot { background: rgba(24, 34, 80, .6); }
.lseat.picked { outline: 2px dashed var(--turmeric); outline-offset: 2px; }
.lseat .ptitle { font-size: 12px; color: var(--turmeric); font-style: italic; }
.lseat-actions { display: flex; justify-content: center; gap: 2px; flex-wrap: wrap; }
.lseat-actions .btn.link, .lseat .btn.link.swap { min-height: 30px; padding: 4px 6px; font-size: 13px; }
.lseat.open .btn.small { min-height: 32px; padding: 4px 10px; font-size: 13px; }

.seat .who[data-target] { cursor: pointer; }
.who.hit { animation: hit .5s ease; }
.who.poked { animation: wiggle .7s ease; }
@keyframes hit { 0% { transform: scale(1); } 30% { transform: scale(1.18); background: var(--madder); } 100% { transform: scale(1); } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-9deg); } 40% { transform: rotate(8deg); } 60% { transform: rotate(-6deg); } 80% { transform: rotate(4deg); } }

.fx-layer { position: fixed; inset: 0; pointer-events: none; z-index: 25; overflow: hidden; }
.fx-item { position: absolute; left: 0; top: 0; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  display: grid; place-items: center; font-size: 36px; line-height: 1; will-change: transform; }
.taunt-bubble {
  position: absolute; transform: translate(-50%, -100%); max-width: 200px; background: var(--thread); color: var(--ink);
  font-weight: 600; font-size: 14px; line-height: 1.25; padding: 7px 11px; border-radius: 12px; text-align: center;
  box-shadow: 0 6px 16px rgba(0,0,0,.4); animation: bubble 3.6s ease forwards;
}
.taunt-bubble::after { content: ""; position: absolute; left: 50%; bottom: -6px; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: var(--thread); }
@keyframes bubble { 0% { opacity: 0; transform: translate(-50%, -80%) scale(.7); } 8% { opacity: 1; transform: translate(-50%, -100%) scale(1); } 85% { opacity: 1; } 100% { opacity: 0; } }

.banner { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; pointer-events: none; z-index: 4; }
.banner .stamp {
  font-size: clamp(34px, 11vw, 58px); font-weight: 700; letter-spacing: 1px; padding: 4px 18px; border-radius: 10px;
  border: 4px solid currentColor; transform: rotate(-8deg); background: rgba(18, 24, 51, .78); line-height: 1.1;
}
.banner .stamp.good { color: var(--turmeric); }
.banner .stamp.bad { color: #ff6b5e; }
.banner .stamp.bonus { color: var(--thread); border-style: dashed; }
.banner .stamp.trump { color: var(--thread); }
.banner .stamp.trump.red { color: #ff6b5e; }
.banner .stamp-sub { margin-top: 12px; font-weight: 600; font-size: 16px; background: rgba(18, 24, 51, .78); padding: 2px 10px; border-radius: 8px; }
.banner.go .stamp { animation: stamp .45s cubic-bezier(.2, 1.4, .4, 1) both; }
.banner.go .stamp-sub { animation: fadein .4s .3s both; }
@keyframes stamp { 0% { transform: rotate(-8deg) scale(3); opacity: 0; } 100% { transform: rotate(-8deg) scale(1); opacity: 1; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

.throw-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0 4px; }
.throw-btn { font-size: 34px; min-height: 64px; border-radius: 14px; border: 1.5px solid rgba(242, 232, 213, .25); background: var(--cloth-deep); cursor: pointer; }
.throw-btn:active { transform: scale(.92); }
.taunt-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.taunt-btn { text-align: left; font-weight: 500; }
textarea { width: 100%; background: var(--cloth-deep); color: var(--thread); border: 1.5px solid rgba(242, 232, 213, .25); border-radius: 10px; padding: 10px 12px; font: inherit; resize: vertical; }
textarea:focus { border-color: var(--turmeric); outline: none; }
.shame-wrap { overflow-x: auto; margin: 8px 0; }
table.shame { border-collapse: collapse; width: 100%; font-size: 14px; }
table.shame th, table.shame td { padding: 8px 6px; text-align: left; border-bottom: 1px dashed rgba(242, 232, 213, .2); white-space: nowrap; font-variant-numeric: tabular-nums; }
table.shame thead th { color: var(--muted); font-weight: 500; font-size: 12px; }
table.shame th small { display: block; color: var(--turmeric); font-style: italic; font-weight: 400; }
.icon-btn { padding: 6px 10px; }


/* trump effects */
.trick .card.cut::after {
  content: "CUT"; position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%);
  background: var(--turmeric); color: var(--ink); font-size: 10px; font-weight: 700; letter-spacing: .5px;
  padding: 1px 6px; border-radius: 6px; box-shadow: 0 2px 6px rgba(0,0,0,.4);
}
.trick .card.knocked { rotate: 22deg; scale: .92; filter: grayscale(.6) brightness(.7); }
.trick .card.knocked.cut::after { content: "BEATEN"; background: #6b7196; color: var(--thread); }
.trick .card.trumpwin { box-shadow: 0 0 0 3px var(--turmeric), 0 0 26px 8px rgba(228, 166, 43, .65); }
.fx-ring { position: absolute; width: 64px; height: 64px; border: 3px dashed; border-radius: 50%; pointer-events: none; }
.fx-bolt { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; filter: drop-shadow(0 0 6px rgba(228,166,43,.9)); }
.felt.shake { animation: felt-shake .28s ease; }
.felt.shake-big { animation: felt-shake-big .5s ease; }
@keyframes felt-shake { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(-3px, 2px); } 50% { transform: translate(3px, -2px); } 75% { transform: translate(-2px, -1px); } }
@keyframes felt-shake-big { 0%, 100% { transform: translate(0, 0) rotate(0); } 15% { transform: translate(-7px, 3px) rotate(-.6deg); } 30% { transform: translate(6px, -4px) rotate(.5deg); } 45% { transform: translate(-5px, -2px) rotate(-.4deg); } 60% { transform: translate(4px, 3px); } 80% { transform: translate(-2px, 1px); } }
.banner .stamp.overcut { color: var(--turmeric); background: rgba(18, 24, 51, .85); box-shadow: 0 0 30px rgba(228,166,43,.5); }
.banner .stamp.mayhem { color: #ff6b5e; border-style: dashed; background: rgba(18, 24, 51, .88); box-shadow: 0 0 36px rgba(255,107,94,.55); }


.seat.away .who { outline: 2px dashed #ff6b5e; outline-offset: 2px; }

.sheet .menu-h { margin: 16px 0 0; font-size: 14px; color: var(--turmeric); text-transform: uppercase; letter-spacing: 1px; }

/* throwables */
.fx-abs { position: absolute; left: 0; top: 0; pointer-events: none; }
.fx-splat, .fx-print, .fx-word, .fx-halo, .fx-stink, .fx-flies, .fx-petal, .fx-smoke, .fx-burst, .fx-spark, .fx-shell, .fx-flame { transform: translate(-50%, -50%); }
.fx-splat svg { display: block; overflow: visible; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.fx-drip { width: 6px; height: 0; border-radius: 0 0 5px 5px; transform: translateX(-50%); }
.fx-drip.red { background: #b8231a; }
.fx-drip.yolk { background: #f2a91a; width: 7px; }
.fx-drip.white { background: rgba(255, 253, 244, .88); width: 5px; }
.fx-shell { width: 15px; height: 21px; background: #f6efe0; border: 1px solid #d8c9aa; }
.fx-shell.left { border-radius: 100% 20% 20% 100% / 60% 20% 20% 40%; }
.fx-shell.right { border-radius: 20% 100% 100% 20% / 20% 60% 40% 20%; }
.fx-word { font-weight: 700; font-size: 18px; color: var(--turmeric); letter-spacing: 1px; white-space: nowrap;
  text-shadow: 2px 2px 0 var(--madder), -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000; }
.fx-halo { width: 0; height: 0; }
.fx-halo span { position: absolute; left: -7px; top: -9px; color: #ffe27a; font-size: 15px; text-shadow: 0 0 4px rgba(0,0,0,.6); }
.fx-overpill { border-radius: 999px; }
.fx-tint { background: rgba(104, 64, 24, .6); box-shadow: 0 0 10px rgba(104, 64, 24, .6); }
.fx-flies { width: 46px; height: 30px; }
.fx-flies i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #111; box-shadow: 0 0 0 1px rgba(255,255,255,.25); }
.fx-flies i:first-child { left: 0; top: 40%; }
.fx-flies i:last-child { right: 0; top: 20%; }
.fx-petal { width: 10px; height: 14px; border-radius: 80% 0 80% 0; background: linear-gradient(135deg, #ff7aa0, #c2185b); }
.fx-glow { background: rgba(255, 143, 177, .2); box-shadow: 0 0 0 3px #ff8fb1, 0 0 24px 8px rgba(255, 120, 170, .65); }
.fx-burn { background: linear-gradient(0deg, #ff3d00, #ff9100 55%, #ffd54f); box-shadow: 0 0 18px 6px rgba(255, 120, 0, .75); }
.fx-char { background: #161312; box-shadow: inset 0 0 8px 2px rgba(255, 90, 0, .75), 0 0 6px rgba(0,0,0,.6); }
.fx-flame { font-size: 17px; line-height: 1; }
.fx-smoke { width: 14px; height: 14px; border-radius: 50%; background: rgba(160, 160, 170, .65); filter: blur(2px); }
.fx-spark { width: 6px; height: 6px; border-radius: 50%; background: radial-gradient(circle, #ffe082, #ff6d00); }
.fx-clown { background: var(--cloth-deep); border: 2px solid #fff; display: grid; place-items: center; }
.fx-clown .face { font-size: 22px; line-height: 1; display: inline-block; }
.fx-clown .wig { position: absolute; left: 0; right: 0; top: -13px; height: 18px; }
.fx-clown .wig i { position: absolute; top: 0; width: 17px; height: 17px; border-radius: 50%; animation: wigpop .3s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes wigpop { from { transform: scale(0); } to { transform: scale(1); } }
.fx-caption { transform: translate(-50%, 0); font-size: 12px; font-style: italic; color: var(--thread); background: rgba(18, 24, 51, .88); padding: 1px 8px; border-radius: 8px; white-space: nowrap; }
.fx-burst { width: 0; height: 0; }
.fx-burst i { position: absolute; left: -1.5px; top: -4.5px; width: 3px; height: 9px; border-radius: 2px; background: var(--turmeric); }
.fx-burst i:nth-child(1) { transform: rotate(0deg) translateY(-20px); }
.fx-burst i:nth-child(2) { transform: rotate(60deg) translateY(-20px); }
.fx-burst i:nth-child(3) { transform: rotate(120deg) translateY(-20px); }
.fx-burst i:nth-child(4) { transform: rotate(180deg) translateY(-20px); }
.fx-burst i:nth-child(5) { transform: rotate(240deg) translateY(-20px); }
.fx-burst i:nth-child(6) { transform: rotate(300deg) translateY(-20px); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .banner.go .stamp, .who.hit, .who.poked, .felt.shake, .felt.shake-big { animation-duration: .01s !important; } }
@media (min-height: 800px) { :root { --cw: min(17vw, 82px); } }
