/* DEGEN DRAW — "hand-drawn degenerate casino".
   Wobbly ink on aged paper, thrown down on deep felt. Comic Sans is the joke voice ONLY. */

:root {
  --felt: #14472e;
  --felt-deep: #0d2b1c;
  --ink: #16130f;
  --paper: #f2e6cd;
  --paper-dim: #d9c9a8;
  --pink: #ff3d7f;
  --gold: #ffc93c;
  --cyan: #3ddbff;
  --blood: #d92b3a;
  --sb: env(safe-area-inset-bottom, 0px);
  --st: env(safe-area-inset-top, 0px);
  --sign: 'Arial Black', 'Helvetica Neue', 'Segoe UI', system-ui, sans-serif;
  --joke: 'Comic Sans MS', 'Chalkboard SE', 'Comic Neue', cursive;
  --num: ui-monospace, 'SF Mono', 'Roboto Mono', Menlo, monospace;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; height: 100%; overflow: hidden;
  background: var(--felt-deep); color: var(--paper);
  font-family: var(--sign); font-weight: 900;
  overscroll-behavior: none; touch-action: manipulation; user-select: none;
}
.hidden { display: none !important; }
button { font-family: inherit; font-weight: 900; border: 0; cursor: pointer; color: inherit; }
svg { display: block; width: 100%; height: 100%; }

/* ---------------------------------------------------------------- shell */

#app {
  position: fixed; inset: 0; display: flex; flex-direction: column;
  padding: calc(5px + var(--st)) 7px calc(5px + var(--sb)); gap: 5px;
  background:
    radial-gradient(115% 55% at 50% 30%, #1d6440 0%, var(--felt) 45%, var(--felt-deep) 85%);
}
/* felt weave */
#app::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
  background-image:
    repeating-linear-gradient(43deg, rgba(0,0,0,.10) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(133deg, rgba(0,0,0,.10) 0 1px, transparent 1px 4px);
}
#app > * { position: relative; }

#topbar { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex: none; }
.badge {
  background: rgba(0,0,0,.4); border: 2px solid rgba(242,230,205,.16); border-radius: 9px;
  padding: 4px 9px; font-size: 11px; font-family: var(--num); font-weight: 700; letter-spacing: .03em;
}
.badge.stack { color: var(--gold); display: flex; align-items: center; gap: 5px; }
.badge.mute { font-size: 13px; padding: 3px 7px; line-height: 1.25; }
.badge.mute.off { opacity: .45; }
.coin { width: 13px; height: 13px; border-radius: 50%; background: var(--gold); box-shadow: inset 0 -3px 0 rgba(0,0,0,.28); }
#potbox {
  display: flex; align-items: baseline; gap: 6px; padding: 3px 15px; border-radius: 11px;
  background: linear-gradient(180deg, rgba(255,201,60,.24), rgba(255,201,60,.06));
  border: 2px solid rgba(255,201,60,.6);
}
#potbox .lbl { font-size: 9px; letter-spacing: .26em; color: var(--gold); }
#potbox b { font-size: 21px; color: var(--gold); font-family: var(--num); }
#potbox.bump { animation: potbump .5s cubic-bezier(.2,1.6,.4,1); }
@keyframes potbump { 0%{transform:scale(1)} 45%{transform:scale(1.2) rotate(-2deg)} }

/* the rule ribbon — torn paper strip taped to the table */
#modbar {
  flex: none; display: flex; align-items: baseline; gap: 7px; padding: 4px 10px;
  background: var(--paper); color: var(--ink); border-radius: 3px;
  transform: rotate(-.5deg); box-shadow: 0 3px 0 rgba(0,0,0,.35);
  font-size: 10.5px; overflow: hidden; line-height: 1.35;
}
#modemoji { font-size: 15px; }
#modname { font-size: 12px; letter-spacing: .04em; }
#modblurb {
  font-family: var(--joke); font-weight: 700; opacity: .82; flex: 1; min-width: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
#modbar.flash { animation: ribbonflash 1s ease-out; }
@keyframes ribbonflash { 0%,100%{background:var(--paper)} 30%{background:var(--gold)} }

/* ---------------------------------------------------------------- opponents */

#opponents { flex: none; display: grid; gap: 5px; grid-template-columns: repeat(3, 1fr); }
.seat {
  position: relative; border-radius: 10px; padding: 4px 3px 14px; min-height: 112px;
  background: rgba(8,26,17,.5); border: 2px solid rgba(242,230,205,.1);
  display: flex; flex-direction: column; align-items: center; gap: 1px; overflow: hidden;
  transition: border-color .18s, transform .18s, opacity .18s;
}
.seat .por { width: 56px; height: 50px; }
.seat .por svg { animation: bob 3.2s ease-in-out infinite; }
@keyframes bob { 0%,100%{transform:translateY(0) rotate(-1deg)} 50%{transform:translateY(-2px) rotate(1deg)} }
.seat .nm { font-size: 10px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat .ch { font-size: 10.5px; color: var(--gold); font-family: var(--num); font-weight: 700; }
.seat .obj { width: 40px; height: 27px; }
.seat .obj.emoji { font-size: 22px; width: auto; height: auto; line-height: 1.1; }
.seat .mini { display: flex; gap: 1px; justify-content: center; margin-top: 1px; }
.seat .mini span {
  background: var(--paper); color: var(--ink); border-radius: 2px; font-size: 8.5px;
  font-family: var(--num); font-weight: 700; padding: 0 1.5px; line-height: 1.3;
}
.seat .mini span.red { color: var(--blood); }
.seat .handname { font-size: 8px; color: var(--gold); letter-spacing: .03em; }
.seat .tagline {
  position: absolute; inset: auto 0 0 0; font-size: 8.5px; letter-spacing: .08em;
  background: rgba(0,0,0,.55); padding: 1px 0;
}
.seat.turn { border-color: var(--gold); box-shadow: 0 0 18px rgba(255,201,60,.45); transform: translateY(-2px); }
.seat.folded { opacity: .32; }
.seat.blasted { opacity: .6; border-color: rgba(217,43,58,.6); }
.seat.blasted .tagline { background: rgba(217,43,58,.45); }
.seat.blasted .por svg { animation: none; transform: rotate(9deg); }
.seat.won { border-color: var(--gold); box-shadow: 0 0 26px rgba(255,201,60,.6); }
.seat.target { border-color: var(--pink); animation: targetpulse .65s infinite; }
@keyframes targetpulse { 0%,100%{box-shadow:0 0 0 rgba(255,61,127,.6)} 50%{box-shadow:0 0 24px rgba(255,61,127,.9)} }
.seat .shield { position: absolute; top: 2px; left: 3px; font-size: 13px; }
.seat .bet {
  position: absolute; top: 2px; right: 3px; font-size: 8.5px; font-family: var(--num);
  background: rgba(255,201,60,.2); color: var(--gold); border-radius: 5px; padding: 0 3px;
}
.seat.hit { animation: seathit .5s; }
@keyframes seathit {
  0%,100%{transform:translate(0,0)} 20%{transform:translate(-6px,3px) rotate(-3deg)}
  50%{transform:translate(5px,-3px) rotate(3deg)} 75%{transform:translate(-3px,1px)}
}
.emo {
  position: absolute; top: -4px; right: 2px; font-size: 24px; pointer-events: none;
  animation: emopop 2.6s ease-out forwards; z-index: 5;
}
@keyframes emopop {
  0%{transform:scale(.2) translateY(6px);opacity:0} 15%{transform:scale(1.25);opacity:1}
  70%{opacity:1;transform:translateY(-8px)} 100%{opacity:0;transform:translateY(-20px)}
}

/* ---------------------------------------------------------------- middle */

#middle {
  flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px; padding: 4px 0;
}

/* the pit: where the money physically sits */
#tablecenter {
  position: relative; flex: 0 1 auto; width: min(230px, 62vw); aspect-ratio: 1.35;
  border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(60% 60% at 50% 42%, #1f6b45 0%, #165434 60%, #103d27 100%);
  border: 3px solid rgba(22,19,15,.5);
  box-shadow: inset 0 6px 18px rgba(0,0,0,.45), 0 5px 0 rgba(0,0,0,.28);
}
#tablecenter::after {
  content: ''; position: absolute; inset: 9px; border-radius: 50%;
  border: 2px dashed rgba(242,230,205,.14);
}
#chippile { position: absolute; inset: 0; pointer-events: none; }
#chippile i {
  position: absolute; width: 17px; height: 17px; border-radius: 50%;
  border: 2px solid var(--ink); box-shadow: 0 2px 0 rgba(0,0,0,.5);
  animation: chipdrop .32s cubic-bezier(.2,1.5,.4,1) backwards;
}
@keyframes chipdrop { from { transform: translateY(-28px) scale(.6); opacity: 0; } }
#potcenter { position: relative; text-align: center; z-index: 2; transform: translateY(-8px); }
#potcenter b {
  display: block; font-size: clamp(30px, 10vw, 46px); color: var(--gold); font-family: var(--num);
  line-height: 1; text-shadow: 2px 3px 0 rgba(0,0,0,.55);
}
#potcenter span { font-size: 8px; letter-spacing: .22em; color: rgba(242,230,205,.55); }
#tablecenter.pop { animation: pitpop .45s cubic-bezier(.2,1.6,.4,1); }
@keyframes pitpop { 0%{transform:scale(1)} 45%{transform:scale(1.07)} }

#announcer { width: 100%; flex: 0 0 auto; max-height: 40%; overflow: hidden; display: flex; flex-direction: column-reverse; gap: 3px; align-items: center; }
.toast {
  font-family: var(--joke); font-weight: 700; font-size: 11.5px; text-align: center;
  padding: 2px 11px; border-radius: 999px; background: rgba(0,0,0,.45); color: #e8dcc2;
  max-width: 96%; animation: tin .28s ease-out;
}
.toast.big { font-size: 13px; color: #fff; background: rgba(255,61,127,.32); }
@keyframes tin { from { opacity: 0; transform: translateY(7px); } }

/* ---------------------------------------------------------------- my area */

#myarea { position: relative; flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; }
#myinfo { display: flex; align-items: center; gap: 7px; font-size: 10.5px; letter-spacing: .05em; }
#myinfo .obj { width: 34px; height: 24px; }
#myinfo .obj.emoji { font-size: 22px; width: auto; height: auto; }
#mystate { color: var(--paper-dim); }
#myname { color: var(--gold); font-family: var(--num); }
#myshield { font-size: 16px; }

#cards { display: flex; gap: 4px; justify-content: center; }
.pcard {
  width: 58px; height: 82px; border-radius: 6px; position: relative; overflow: hidden;
  background: var(--paper); color: var(--ink); box-shadow: 2px 4px 0 rgba(0,0,0,.45);
  transition: transform .16s, opacity .16s; animation: dealin .34s cubic-bezier(.2,1.3,.5,1) backwards;
  display: flex; align-items: center; justify-content: center;
}
@keyframes dealin { from { transform: translate(60px,-150px) rotate(-25deg); opacity: 0; } }
.pcard .fallback { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; }
.pcard .fallback .r { font-size: 26px; line-height: 1; }
.pcard .fallback .s { font-size: 19px; }
.pcard.red .fallback { color: var(--blood); }
.pcard.toss { transform: translateY(8px) rotate(4deg) scale(.92); opacity: .45; }
.pcard.toss::after { content: '🗑️'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 26px; }
.pcard.back { background: repeating-linear-gradient(45deg,#1d6440 0 6px,#14472e 6px 12px); }

#drawbar { display: flex; align-items: center; gap: 7px; position: relative; }
#drawbar .hint { font-family: var(--joke); font-size: 10px; color: var(--paper-dim); }
#drawtimer { position: absolute; inset: auto 0 -5px 0; height: 3px; background: rgba(0,0,0,.3); border-radius: 2px; }
#drawtimer i { display: block; height: 100%; width: 100%; background: var(--cyan); border-radius: 2px; transition: width .25s linear; }

/* ---------------------------------------------------------------- actions */

#actions { flex: none; display: flex; flex-direction: column; gap: 4px; }
#turnbar { height: 4px; background: rgba(0,0,0,.3); border-radius: 3px; overflow: hidden; }
#turnbar i { display: block; height: 100%; width: 0%; background: var(--gold); transition: width .25s linear; }
#turnbar.low i { background: var(--blood); }

#actionrow { display: grid; grid-template-columns: .8fr 1fr 1.1fr 1fr; gap: 4px; }
.btn {
  border-radius: 10px; padding: 11px 3px; font-size: 13.5px; letter-spacing: .04em;
  display: flex; flex-direction: column; align-items: center; gap: 1px; line-height: 1.05;
  border: 2px solid var(--ink); background: #2e4a3a; color: var(--paper);
  box-shadow: 0 3px 0 var(--ink); transition: transform .08s, box-shadow .08s, filter .15s;
}
.btn small { font-size: 10px; font-weight: 700; font-family: var(--num); opacity: .95; }
.btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }
.btn:disabled { opacity: .3; filter: grayscale(.75); box-shadow: 0 3px 0 var(--ink); }
.btn.fold { background: #4a4137; }
.btn.call { background: #1d7f9e; }
.btn.raise { background: var(--gold); color: var(--ink); }
.btn.shoot { background: var(--pink); }
.btn.go { background: #3fae62; }
.btn.big { padding: 15px; font-size: 18px; letter-spacing: .12em; }
.btn.small { padding: 7px 12px; font-size: 12px; }
.btn.tiny { padding: 6px 8px; font-size: 10px; flex-direction: row; gap: 4px; border-radius: 8px; }
.btn.tiny b { font-family: var(--num); font-size: 10px; }
.btn.ins { background: #2b6f8c; }
.btn.slot { background: #7d3fae; }

#extrarow { display: flex; gap: 4px; align-items: stretch; }
#emotes { display: flex; gap: 3px; margin-left: auto; }
#emotes button {
  background: rgba(0,0,0,.32); border: 2px solid var(--ink); border-radius: 8px;
  padding: 3px 6px; font-size: 15px; box-shadow: 0 3px 0 var(--ink);
}
#emotes button:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }
#bflip { font-size: 10px !important; letter-spacing: -.06em; color: var(--pink); }

#waitmsg { text-align: center; font-family: var(--joke); font-size: 10.5px; color: var(--paper-dim); height: 13px; }
#targetmsg { text-align: center; font-size: 12px; color: var(--pink); display: flex; gap: 9px; align-items: center; justify-content: center; }
#targetmsg button { background: rgba(242,230,205,.14); border-radius: 7px; padding: 3px 9px; font-size: 10px; }

/* ---------------------------------------------------------------- overlays */

.overlay {
  position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px; padding: 20px;
  background: rgba(6,18,12,.9); backdrop-filter: blur(3px);
  animation: fadein .18s ease-out;
}
@keyframes fadein { from { opacity: 0; } }

/* --- dice */
.dicewrap { perspective: 500px; }
#die {
  width: 96px; height: 96px; border-radius: 14px; background: var(--paper); color: var(--ink);
  border: 3px solid var(--ink); box-shadow: 5px 7px 0 rgba(0,0,0,.5);
  display: grid; place-items: center; font-size: 52px;
  animation: tumble .75s cubic-bezier(.3,1.4,.5,1) infinite;
}
#die.landed { animation: diceland .5s cubic-bezier(.2,1.7,.4,1); }
@keyframes tumble {
  0%{transform:rotateX(0) rotateZ(0) scale(1)} 25%{transform:rotateX(180deg) rotateZ(90deg) scale(1.08)}
  50%{transform:rotateX(360deg) rotateZ(180deg) scale(.95)} 75%{transform:rotateX(180deg) rotateZ(270deg) scale(1.06)}
  100%{transform:rotateX(0) rotateZ(360deg) scale(1)}
}
@keyframes diceland { 0%{transform:scale(1.35) rotate(-8deg)} 60%{transform:scale(.95) rotate(3deg)} 100%{transform:scale(1)} }
#modcard {
  background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 6px;
  padding: 14px 18px; max-width: min(420px,92vw); text-align: center; transform: rotate(-1deg);
  box-shadow: 6px 8px 0 rgba(0,0,0,.5); opacity: 0;
}
#modcard.show { animation: slam .5s cubic-bezier(.2,1.8,.4,1) forwards; }
@keyframes slam { 0%{opacity:0;transform:scale(2.2) rotate(9deg)} 70%{opacity:1;transform:scale(.94) rotate(-2deg)} 100%{opacity:1;transform:scale(1) rotate(-1deg)} }
.mc-emoji { font-size: 34px; line-height: 1; }
.mc-name { font-size: clamp(22px,7vw,34px); letter-spacing: -.02em; margin: 3px 0; }
.mc-blurb { font-size: 12px; font-family: var(--num); font-weight: 700; opacity: .8; }
.mc-announce { font-family: var(--joke); font-size: 14px; margin-top: 7px; color: var(--blood); }

/* --- slot machine (the signature) */
#slotduel { display: flex; align-items: center; gap: 12px; font-size: 13px; }
#slotduel .who { max-width: 34vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#slotduel .from { color: var(--gold); }
#slotduel .to { color: var(--pink); }
#slotduel .vs { font-size: 20px; }
.cabinet {
  position: relative; background: linear-gradient(180deg,#8e2f4f,#5d1c33); border: 4px solid var(--ink);
  border-radius: 16px; padding: 10px 14px 14px; box-shadow: 7px 9px 0 rgba(0,0,0,.55);
}
.marquee-plate {
  text-align: center; font-size: 9.5px; letter-spacing: .28em; color: var(--gold);
  margin-bottom: 7px; text-shadow: 0 0 10px rgba(255,201,60,.7);
}
.bulbs { display: flex; justify-content: space-between; padding: 7px 3px 0; }
.bulbs i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 8px var(--gold); animation: bulb 1s infinite steps(1);
}
.bulbs i:nth-child(2n) { animation-delay: .5s; }
@keyframes bulb { 0%,49%{opacity:1} 50%,100%{opacity:.25} }
/* the lever: slams down as the reels start */
.lever { position: absolute; right: -16px; top: 34%; width: 16px; height: 62px; }
.lever i {
  position: absolute; left: 5px; top: 10px; width: 5px; height: 46px; background: var(--ink);
  border-radius: 3px; transform-origin: 50% 100%; transition: transform .25s cubic-bezier(.3,1.5,.5,1);
}
.lever b {
  position: absolute; left: 0; top: 0; width: 15px; height: 15px; border-radius: 50%;
  background: var(--blood); border: 2px solid var(--ink);
  transition: transform .25s cubic-bezier(.3,1.5,.5,1);
}
.cabinet.pulled .lever i { transform: rotate(38deg); }
.cabinet.pulled .lever b { transform: translate(9px, 26px); }
.reels { display: flex; gap: 8px; position: relative; }
.reel {
  width: clamp(58px,20vw,76px); height: clamp(74px,25vw,96px); overflow: hidden; border-radius: 8px;
  background: var(--paper); border: 3px solid var(--ink); position: relative;
}
.reel .strip { display: flex; flex-direction: column; will-change: transform; }
.reel .cell { height: clamp(74px,25vw,96px); display: grid; place-items: center; font-size: clamp(34px,11vw,46px); flex: none; }
.reel .cell svg { width: 62%; height: 62%; }
.payline { position: absolute; left: 4px; right: 4px; top: 50%; height: 2px; background: rgba(255,61,127,.55); pointer-events: none; }
.cabinet.locked { animation: cabshake .4s; }
@keyframes cabshake { 0%,100%{transform:translate(0,0)} 30%{transform:translate(-5px,3px)} 65%{transform:translate(4px,-2px)} }
#slotresult {
  font-size: clamp(24px,8vw,42px); text-align: center; min-height: 1.1em; letter-spacing: -.01em;
  opacity: 0; text-shadow: 3px 4px 0 rgba(0,0,0,.5);
}
#slotresult.show { animation: bigpop 1.5s ease-out forwards; }
#slotresult .sub { display: block; font-family: var(--joke); font-size: 13px; margin-top: 5px; color: var(--paper); }

/* --- side slot result chip */
#sidebox {
  position: fixed; z-index: 65; right: 8px; bottom: calc(96px + var(--sb));
  background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 10px;
  padding: 7px 10px; text-align: center; box-shadow: 4px 5px 0 rgba(0,0,0,.5);
  animation: slam .4s cubic-bezier(.2,1.8,.4,1);
}
#sidebox .row { font-size: 24px; letter-spacing: 2px; }
#sidebox .pay { font-family: var(--num); font-size: 12px; margin-top: 2px; }
#sidebox .pay.win { color: #1c7a3e; }
#sidebox .pay.lose { color: var(--blood); }

/* ---------------------------------------------------------------- fx */

#fx { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.boom { position: absolute; font-size: 70px; animation: boom .85s ease-out forwards; }
@keyframes boom {
  0%{transform:translate(-50%,-50%) scale(.2) rotate(-14deg);opacity:0}
  22%{transform:translate(-50%,-50%) scale(1.5) rotate(6deg);opacity:1}
  100%{transform:translate(-50%,-50%) scale(2.3) rotate(16deg);opacity:0}
}
.flash { position: absolute; inset: 0; background: #fff; animation: flash .28s ease-out forwards; }
@keyframes flash { from { opacity: .85; } to { opacity: 0; } }
.confetti { position: absolute; width: 9px; height: 14px; top: -20px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(105vh) rotate(720deg); opacity: .2; } }
.flychip {
  position: absolute; width: 17px; height: 17px; border-radius: 50%; background: var(--gold);
  border: 2px solid var(--ink); animation: fly .55s cubic-bezier(.4,0,.5,1) forwards;
}
@keyframes fly { to { transform: translate(var(--dx), var(--dy)) scale(.5); opacity: .2; } }
body.shake #app { animation: shake .42s; }
@keyframes shake {
  0%,100%{transform:translate(0,0)} 20%{transform:translate(-9px,5px) rotate(-1deg)}
  40%{transform:translate(8px,-6px) rotate(1deg)} 60%{transform:translate(-6px,3px)} 80%{transform:translate(5px,-3px)}
}
body.flip #app { animation: flipt 1.15s ease-in-out; }
@keyframes flipt {
  0%{transform:rotate(0) translateY(0)} 35%{transform:rotate(11deg) translateY(-26px)}
  70%{transform:rotate(-7deg) translateY(14px)} 100%{transform:rotate(0) translateY(0)}
}
#bigtext {
  position: fixed; inset: 0; z-index: 68; display: grid; place-items: center; pointer-events: none;
  font-size: clamp(28px,10vw,58px); text-align: center; padding: 20px; opacity: 0;
  text-shadow: 4px 5px 0 rgba(0,0,0,.6);
}
#bigtext.show { animation: bigpop 1.7s ease-out; }
@keyframes bigpop {
  0%{opacity:0;transform:scale(.5) rotate(-6deg)} 14%{opacity:1;transform:scale(1.12) rotate(2deg)}
  76%{opacity:1;transform:scale(1) rotate(0)} 100%{opacity:0;transform:scale(1.05)}
}

/* ---------------------------------------------------------------- join */

.veil {
  position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 15px; padding: 22px; text-align: center;
  background: radial-gradient(105% 65% at 50% 18%, #1d6440 0%, #0d2b1c 55%, #061109 100%);
  overflow-y: auto;
}
.marquee { padding: 4px 0; }
.logo { margin: 0; line-height: .82; }
.kicker { display: block; font-size: clamp(10px,3.2vw,13px); letter-spacing: .42em; color: var(--gold); margin-bottom: 6px; }
/* stacked so it never runs off a phone, and the two halves sit slightly askew like a painted sign */
.logo b, .logo em {
  display: block; font-style: normal; font-size: clamp(46px,17vw,92px); letter-spacing: -.03em;
}
.logo b { color: var(--paper); transform: rotate(-1.4deg); }
.logo em { color: var(--pink); transform: rotate(1.2deg) translateY(-4px); text-shadow: 3px 4px 0 rgba(0,0,0,.4); }
.tag { margin: 8px 0 0; font-family: var(--joke); font-size: 12px; color: var(--paper-dim); }
.veil .card { width: min(400px,94vw); display: flex; flex-direction: column; gap: 9px; }
#name {
  width: 100%; padding: 14px; font-family: var(--sign); font-size: 16px; text-align: center;
  letter-spacing: .12em; color: var(--ink); background: var(--paper);
  border: 3px solid var(--ink); border-radius: 9px; outline: none; box-shadow: 0 4px 0 var(--ink);
}
.rules { max-width: min(430px,94vw); font-size: 11px; line-height: 1.55; font-family: var(--num); font-weight: 700; color: #bcd6c5; }
.rules p { margin: 8px 0; }
.rules b { color: var(--paper); font-family: var(--sign); font-size: 11.5px; letter-spacing: .02em; }
.rules em { color: var(--gold); font-style: normal; }
.rules .warn { color: #ffc0d0; }

@media (max-height: 720px) {
  .pcard { width: 50px; height: 72px; }
  .seat { min-height: 100px; }
  .seat .por { width: 46px; height: 42px; }
  .rules p { margin: 6px 0; }
}
