/* Golf v2 — Rexsigma. Dark felt, emerald glow, gold for crowns. */
@font-face { font-family: "Kaushan"; src: url("../fonts/KaushanScript-Regular.woff") format("woff"); font-display: swap; }
:root {
  --bg: #050807; --ink: #eef4f1; --muted: #9fb0a8; --dim: #71837b;
  --line: rgba(255,255,255,.09); --line-2: rgba(255,255,255,.16);
  --accent: #3ddc97; --accent-hi: #7ff5c0; --accent-lo: #1fb877; --accent-ink: #03140b;
  --glow: rgba(61,220,151,.5); --glow-soft: rgba(61,220,151,.18);
  --gold: #f5c84b; --gold-hi: #ffe38a; --gold-lo: #c9921c;
  --felt: #0f4a30; --felt-hi: #1d7a4e; --felt-lo: #062a1a;
  --red: #d9443a;
  --ease: cubic-bezier(.2,.8,.2,1); --bounce: cubic-bezier(.34,1.56,.64,1);
  --font: ui-sans-serif,-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Inter,Roboto,"Helvetica Neue",Arial,sans-serif;
  --script: "Kaushan", "Brush Script MT", cursive;
  --safe-b: env(safe-area-inset-bottom,0px); --safe-t: env(safe-area-inset-top,0px);
  --nav-h: 0px; --top-h: 58px;
  --glass: rgba(255,255,255,.045); --glass-2: rgba(255,255,255,.075); --solid: #0d1412; --solid-2: #111a17;
  --danger: #ff7a7a; --focus: #8ff7c8; --r: 20px; --gold-ink: #2a1e00;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
html { background: var(--bg); }
body {
  font-family: var(--font); color: var(--ink); line-height: 1.4; -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none;
  background:
    radial-gradient(120% 60% at 50% -12%, rgba(40,150,95,.38), transparent 62%),
    radial-gradient(90% 50% at 50% 115%, rgba(20,90,60,.25), transparent 70%),
    linear-gradient(180deg, #08160f 0%, #050807 55%, #030504 100%);
}
/* felt grain over everything */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: .22; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; border: 0; background: none; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
#ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
#dbg { position: fixed; left: 6px; right: 6px; top: calc(4px + var(--safe-t)); z-index: 100; font: 600 11px/1.3 ui-monospace, Menlo, monospace; color: #ffe38a; background: rgba(0,0,0,.8); border: 1px solid #f5c84b88; border-radius: 8px; padding: 4px 8px; pointer-events: none; white-space: pre-wrap; max-height: 40vh; overflow: hidden; }
#fx { position: fixed; inset: 0; z-index: 78; pointer-events: none; }

/* ---------- stage & screen transitions ---------- */
#stage { position: fixed; inset: 0; z-index: 2; overflow: hidden; }
.screen {
  position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch;
  padding: calc(var(--top-h) + 10px + var(--safe-t)) 14px calc(30px + var(--safe-b));
  display: none; scrollbar-width: none;
}
.screen::-webkit-scrollbar { display: none; }
.screen.active { display: block; animation: screenIn .48s var(--ease) both; }
.screen.leaving { display: block; animation: screenOut .32s ease-in both; pointer-events: none; }
.screen.back.active { animation-name: screenInBack; }
.screen.back.leaving { animation-name: screenOutBack; }
@keyframes screenIn { from { opacity: 0; transform: translateX(34px) scale(.985); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes screenOut { to { opacity: 0; transform: translateX(-34px) scale(.985); filter: blur(4px); } }
@keyframes screenInBack { from { opacity: 0; transform: translateX(-34px) scale(.985); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes screenOutBack { to { opacity: 0; transform: translateX(34px) scale(.985); filter: blur(4px); } }
.wrap { max-width: 460px; margin: 0 auto; position: relative; }

/* ---------- generic pieces ---------- */
.panel {
  position: relative; border-radius: 22px; padding: 16px; margin: 0 0 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.02));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 24px 48px -26px rgba(0,0,0,.9);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
}
.panel h2 { margin: 0 0 12px; font-size: 11.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .16em; display: flex; align-items: center; gap: 8px; }
.panel h2 .count { margin-left: auto; color: var(--accent); letter-spacing: .04em; }
.btn {
  position: relative; overflow: hidden; border-radius: 15px; padding: 12px 14px; min-height: 50px; font-weight: 700; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; text-align: center; line-height: 1.15;
  background: rgba(255,255,255,.07); border: 1px solid var(--line-2); color: var(--ink);
  transition: transform .15s var(--ease), box-shadow .25s var(--ease), filter .2s;
}
.btn:active { transform: translateY(1px) scale(.97); }
.btn.primary {
  color: var(--accent-ink); border-color: rgba(170,255,215,.55);
  background: linear-gradient(135deg, var(--accent-hi), var(--accent) 45%, var(--accent-lo));
  box-shadow: 0 0 0 1px rgba(61,220,151,.25), 0 10px 30px -6px var(--glow), inset 0 1px 0 rgba(255,255,255,.45);
  animation: primaryPulse 2.8s ease-in-out infinite;
}
.btn.primary::after, .btn.gold::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  animation: shine 3.6s ease-in-out infinite 1s;
}
.btn.gold { color: #2a1e00; border-color: rgba(255,230,150,.6); background: linear-gradient(135deg, var(--gold-hi), var(--gold) 50%, var(--gold-lo)); box-shadow: 0 10px 30px -8px rgba(245,200,75,.6), inset 0 1px 0 rgba(255,255,255,.5); }
.btn.ghost { background: transparent; }
.btn.sm { min-height: 40px; padding: 8px 12px; font-size: 13.5px; border-radius: 12px; }
.row { display: flex; gap: 10px; }
.row > .btn { flex: 1; min-width: 0; }
@keyframes primaryPulse { 50% { box-shadow: 0 0 0 1px rgba(61,220,151,.4), 0 10px 40px 0 var(--glow), inset 0 1px 0 rgba(255,255,255,.45); } }
@keyframes shine { 0% { transform: translateX(-120%); } 35%, 100% { transform: translateX(120%); } }
.iconbtn { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 20px; background: rgba(255,255,255,.06); border: 1px solid var(--line-2); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.iconbtn:active { transform: scale(.94); }
.script { font-family: var(--script); font-weight: 400; }
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 30px); z-index: 90; transform: translate(-50%, 20px); opacity: 0; transition: all .35s var(--bounce); background: #0e1714; border: 1px solid rgba(61,220,151,.4); color: var(--ink); padding: 10px 16px; border-radius: 14px; font-size: 14px; font-weight: 600; box-shadow: 0 0 24px -6px var(--glow), 0 12px 30px -10px #000; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 1. splash ---------- */
#splash { padding: 0; overflow: hidden; cursor: pointer; background: radial-gradient(85% 55% at 50% 45%, #1a6b44 0%, #0c3a25 45%, #041409 85%, #020604 100%); }
#splash.active { animation: fadeIn .3s both; }
#splash.leaving { animation: splashOut .55s ease-in both; }
@keyframes splashOut { to { opacity: 0; transform: scale(1.12); filter: blur(6px) brightness(1.6); } }
.sp-felt { position: absolute; inset: 0; opacity: .5; background-image: repeating-radial-gradient(circle at 50% 45%, rgba(255,255,255,.015) 0 2px, transparent 2px 5px); }
.sp-pool { position: absolute; left: 50%; top: 42%; width: 560px; height: 560px; margin: -280px 0 0 -280px; border-radius: 50%; background: radial-gradient(circle, rgba(200,255,225,.22), rgba(61,220,151,.08) 40%, transparent 68%); opacity: 0; }
.sp-vig { position: absolute; inset: 0; background: radial-gradient(70% 55% at 50% 45%, transparent 50%, rgba(0,0,0,.75)); }
.sp-card { position: absolute; left: 50%; top: 40%; width: 150px; height: 210px; margin: -105px 0 0 -75px; perspective: 900px; opacity: 0; }
.sp-inner { position: absolute; inset: 0; transform-style: preserve-3d; }
.sp-back, .sp-face { position: absolute; inset: 0; border-radius: 14px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.sp-back {
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.08) 0 2px, transparent 2px 9px), linear-gradient(135deg, #10593a, #073020);
  border: 5px solid #f3efe4; box-shadow: inset 0 0 0 2px var(--gold), 0 20px 40px -10px #000;
}
.sp-back::after { content: "♣"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 56px; color: var(--gold); text-shadow: 0 0 18px rgba(245,200,75,.6); }
.sp-face { transform: rotateY(180deg); background: linear-gradient(160deg, #fbf8f0, #ece5d3); border: 1px solid #fff; display: grid; place-items: center; box-shadow: 0 24px 50px -10px #000, 0 0 0 1px rgba(0,0,0,.2); }
.sp-face img { width: 92px; height: 92px; filter: drop-shadow(0 6px 12px rgba(80,40,140,.35)); }
.sp-face .cn { position: absolute; font: 800 17px/0.95 var(--font); color: #111; text-align: center; }
.sp-face .cn.tl { left: 10px; top: 10px; } .sp-face .cn.br { right: 10px; bottom: 10px; transform: rotate(180deg); }
.sp-ring { position: absolute; left: 50%; top: 40%; width: 180px; height: 180px; margin: -90px 0 0 -90px; border-radius: 50%; border: 2px solid var(--accent-hi); box-shadow: 0 0 40px var(--accent), inset 0 0 30px var(--accent); opacity: 0; }
.sp-text { position: absolute; left: 0; right: 0; top: calc(40% + 135px); text-align: center; }
.sp-text .brand { display: block; font-weight: 800; font-size: 22px; letter-spacing: .5em; text-indent: .5em; color: #fff; text-shadow: 0 0 20px var(--glow); opacity: 0; }
.sp-text .pres { display: block; font-family: var(--script); font-size: 30px; color: var(--accent-hi); text-shadow: 0 0 18px var(--glow); margin-top: 4px; opacity: 0; }
.sp-skip { position: absolute; left: 0; right: 0; bottom: calc(var(--nav-h) + 30px); text-align: center; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.45); animation: fadeIn 1s .8s both; }
.sp-sweep { position: absolute; inset: -20%; background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.14) 50%, transparent 60%); transform: translateX(-100%); }
/* fix13: waiting for the first tap: logo + a quiet "Tap to begin" (static), gone once the intro plays */
.sp-wait { display: none; position: absolute; left: 0; right: 0; top: 40%; transform: translateY(-50%); text-align: center; pointer-events: none; }
#splash.waiting .sp-wait { display: block; }
#splash.waiting .sp-skip { display: none; } /* the old "tap to skip" hint only once the intro is playing */
.sp-wait img { display: block; width: 84px; height: 84px; margin: 0 auto; opacity: .9; }
.sp-wait .sp-tap { display: block; margin-top: 18px; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.6); font-weight: 600; }
#splash:focus { outline: none; }
#splash.play .sp-pool { animation: poolOn 1.6s .1s ease-out forwards; }
#splash.play .sp-card { animation: dealCard .75s .2s cubic-bezier(.15,.75,.3,1.05) forwards; }
#splash.play .sp-inner { animation: flipCard .55s .95s cubic-bezier(.4,.1,.3,1.3) forwards; }
#splash.play .sp-face { animation: faceGlow 1.2s 1.35s ease-out forwards; }
#splash.play .sp-ring { animation: ring .9s 1.3s ease-out forwards; }
#splash.play .brand { animation: tracking .9s 1.45s var(--ease) forwards; }
.sp-text .arcname { display: block; margin-top: 6px; font-weight: 800; font-size: 15px; letter-spacing: .4em; text-indent: .4em; text-transform: uppercase; color: var(--gold); text-shadow: 0 0 14px rgba(245,200,75,.6); opacity: 0; }
#splash.play .arcname { animation: riseIn .7s 2s var(--ease) forwards; }
#splash.play .pres { animation: riseIn .7s 1.75s var(--ease) forwards; }
#splash.play .sp-sweep { animation: sweep 1s 1.5s ease-in-out forwards; }
@keyframes poolOn { 0% { opacity: 0; transform: scale(.6); } 60% { opacity: 1; } 100% { opacity: .85; transform: scale(1); } }
@keyframes dealCard { 0% { opacity: 0; transform: translate(260px,-420px) rotate(60deg) scale(1.5); } 15% { opacity: 1; } 80% { transform: translate(-6px,6px) rotate(-6deg) scale(1); } 100% { opacity: 1; transform: rotate(-3deg); } }
@keyframes flipCard { to { transform: rotateY(180deg); } }
@keyframes faceGlow { 0% { box-shadow: 0 24px 50px -10px #000; } 30% { box-shadow: 0 0 0 3px var(--accent-hi), 0 0 70px 14px var(--accent); } 100% { box-shadow: 0 0 0 2px rgba(127,245,192,.7), 0 0 46px 2px rgba(61,220,151,.7), 0 24px 50px -10px #000; } }
@keyframes ring { 0% { opacity: .9; transform: scale(.6); } 100% { opacity: 0; transform: scale(2.6); } }
@keyframes tracking { 0% { opacity: 0; letter-spacing: 1.2em; filter: blur(6px); } 100% { opacity: 1; letter-spacing: .5em; filter: none; } }
@keyframes riseIn { 0% { opacity: 0; transform: translateY(14px) scale(.9); } 100% { opacity: 1; transform: none; } }
@keyframes sweep { to { transform: translateX(100%); } }
@keyframes fadeIn { from { opacity: 0; } }

/* ---------- 2. start ---------- */
.topbar { position: fixed; left: 0; right: 0; top: 0; z-index: 60; height: calc(var(--top-h) + var(--safe-t)); padding: var(--safe-t) 12px 0; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: linear-gradient(180deg, rgba(5,8,7,.92), rgba(5,8,7,.72)); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: opacity .4s, transform .4s var(--ease); }
body.splashing .topbar { opacity: 0; transform: translateY(-100%); pointer-events: none; }
.tb-title { flex: 1; text-align: center; font-family: var(--script); font-size: 26px; color: var(--accent-hi); text-shadow: 0 0 14px var(--glow); line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-title small { font-family: var(--font); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-left: 6px; text-shadow: none; }
.rx { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.rx img { width: 34px; height: 34px; filter: drop-shadow(0 4px 12px rgba(150,110,255,.35)); }
.hero { text-align: center; padding: 4px 0 18px; position: relative; }
.hero::before { content: ""; position: absolute; left: 50%; top: 46%; width: 300px; height: 170px; transform: translate(-50%,-50%); background: radial-gradient(closest-side, rgba(61,220,151,.18), transparent); filter: blur(8px); animation: breathe 7s ease-in-out infinite; pointer-events: none; }
.golf-logo {
  position: relative; margin: 0; font-family: var(--script); font-weight: 400; font-size: 112px; line-height: 1.08; padding: 0 22px 4px 12px;
  display: inline-block; color: #bff9dd;
  background: linear-gradient(100deg, #3ddc97 0%, #7ff5c0 30%, #f2fff8 46%, #7ff5c0 60%, #2fc985 100%); background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(61,220,151,.35)) drop-shadow(0 6px 2px rgba(0,0,0,.5));
  animation: logoShimmer 8s ease-in-out infinite, logoIn .9s var(--bounce) both;
}
.golf-logo .flag { position: absolute; right: -12px; top: 12px; width: 28px; height: 47px; filter: drop-shadow(0 0 6px rgba(245,200,75,.7)); }
.golf-logo .flagcloth { transform-origin: 6px 9px; animation: flagWave 2.4s ease-in-out infinite; }
.arcade-tag { margin: -6px 0 8px; font-weight: 800; font-size: 13px; letter-spacing: .55em; text-indent: .55em; text-transform: uppercase; color: var(--gold); text-shadow: 0 0 10px rgba(245,200,75,.65), 0 0 22px rgba(245,200,75,.3); }
.hero .sub { position: relative; margin: -4px 0 0; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.hero .sub::before, .hero .sub::after { content: ""; display: inline-block; width: 22px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); vertical-align: middle; margin: 0 8px 3px; }
.hero .sub::after { transform: scaleX(-1); }
@keyframes logoShimmer { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
@keyframes logoIn { from { opacity: 0; transform: scale(.7) rotate(-6deg); } }
@keyframes breathe { 50% { opacity: .8; transform: translate(-50%,-50%) scale(1.04); } } /* fix6: softer (was .55 / 1.12, 4 s) */
@keyframes flagWave { 50% { transform: scaleX(.8) skewY(-6deg); } }
.players { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.players li { display: flex; align-items: center; gap: 10px; animation: riseIn .5s var(--ease) both; }
.players li:nth-child(2) { animation-delay: .05s; } .players li:nth-child(3) { animation-delay: .1s; } .players li:nth-child(4) { animation-delay: .15s; } .players li:nth-child(5) { animation-delay: .2s; }
.seatno { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--accent); background: rgba(61,220,151,.1); border: 1px solid rgba(61,220,151,.3); }
.pin { flex: 1; min-width: 0; display: flex; align-items: center; height: 46px; border-radius: 13px; padding: 0 12px; background: rgba(0,0,0,.28); border: 1px solid var(--line-2); font-size: 16px; font-weight: 600; box-shadow: inset 0 2px 6px rgba(0,0,0,.35); }
.pin.focus { border-color: rgba(61,220,151,.6); box-shadow: 0 0 0 3px rgba(61,220,151,.14), inset 0 2px 6px rgba(0,0,0,.35); }
.pin .at { margin-left: 6px; color: var(--accent); font-weight: 800; text-shadow: 0 0 10px var(--glow); }
.pin .reg { margin-left: auto; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); font-weight: 700; }
.pin .caret { display: inline-block; width: 2px; height: 20px; background: var(--accent); margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.xbtn { width: 36px; height: 36px; flex: none; border-radius: 11px; color: var(--dim); font-size: 18px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.suggest { margin: -2px 0 0 36px; border-radius: 12px; border: 1px solid rgba(61,220,151,.35); background: #0c1713; box-shadow: 0 12px 26px -10px #000, 0 0 20px -8px var(--glow); overflow: hidden; animation: riseIn .4s .4s var(--ease) both; }
.suggest div { padding: 9px 12px; font-size: 14px; display: flex; justify-content: space-between; }
.suggest div + div { border-top: 1px solid var(--line); }
.suggest span { color: var(--dim); font-size: 12px; }
.add-row { display: flex; gap: 8px; margin-top: 10px; }
.note { margin: 12px 0 0; font-size: 13px; color: var(--muted); line-height: 1.45; padding: 10px 12px; border-radius: 12px; background: rgba(245,200,75,.06); border-left: 3px solid rgba(245,200,75,.6); }
.note b { color: var(--gold-hi); font-weight: 700; }
.toggle-row { display: flex; align-items: center; gap: 12px; }
.toggle-row .t { flex: 1; }
.toggle-row .t b { display: block; font-size: 16px; }
.toggle-row .t span { font-size: 12.5px; color: var(--muted); }
.switch { width: 54px; height: 32px; flex: none; border-radius: 999px; position: relative; background: rgba(255,255,255,.12); border: 1px solid var(--line-2); transition: all .3s var(--ease); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #dfe7e3; box-shadow: 0 2px 6px rgba(0,0,0,.5); transition: transform .35s var(--bounce); }
.switch.on { background: linear-gradient(135deg, var(--accent-hi), var(--accent-lo)); box-shadow: 0 0 18px -2px var(--glow); border-color: transparent; }
.switch.on::after { transform: translateX(22px); background: #fff; }
.startbtns { display: grid; grid-template-columns: 1.15fr 1fr; gap: 10px; margin: 4px 0 14px; }
.startbtns .btn { min-height: 62px; font-size: 15.5px; }
.seg { display: flex; padding: 4px; border-radius: 14px; background: rgba(0,0,0,.3); border: 1px solid var(--line); gap: 4px; }
.seg button { flex: 1; padding: 9px 6px; border-radius: 10px; font-weight: 700; font-size: 14px; color: var(--muted); transition: all .3s var(--ease); }
.seg button.on { color: var(--accent-ink); background: linear-gradient(135deg, var(--accent-hi), var(--accent)); box-shadow: 0 0 14px -3px var(--glow); }
.opt + .opt { margin-top: 14px; }
.opt h3 { margin: 0 0 7px; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.opt h3 em { font-style: normal; color: var(--accent); letter-spacing: .04em; text-transform: none; font-size: 13px; margin-left: 4px; }
.foot { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 0 0; color: var(--dim); font-size: 12.5px; }
.foot a { color: var(--muted); text-decoration: none; font-weight: 600; }
.foot img { width: 20px; height: 20px; }
.foot .v { font-family: var(--script); color: var(--accent); font-size: 16px; text-shadow: 0 0 10px var(--glow); }

/* ---------- menu ---------- */
.menu-veil { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .3s; }
.menu-veil.open { opacity: 1; pointer-events: auto; }
.menu {
  position: absolute; right: 12px; top: calc(62px + var(--safe-t)); width: min(320px, calc(100% - 24px)); border-radius: 22px; padding: 8px;
  background: linear-gradient(180deg, #13201b, #0b120f); border: 1px solid rgba(61,220,151,.28);
  box-shadow: 0 0 40px -12px var(--glow), 0 30px 60px -20px #000, inset 0 1px 0 rgba(255,255,255,.08);
  transform-origin: 92% 0; transform: scale(.85) translateY(-10px); opacity: 0; transition: transform .38s var(--bounce), opacity .25s;
}
.menu-veil.open .menu { transform: none; opacity: 1; }
.menu::before { content: ""; position: absolute; right: 22px; top: -7px; width: 12px; height: 12px; background: #13201b; border-left: 1px solid rgba(61,220,151,.28); border-top: 1px solid rgba(61,220,151,.28); transform: rotate(45deg); }
.mi { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 11px 12px; border-radius: 14px; font-size: 15px; font-weight: 600; opacity: 0; transform: translateX(12px); transition: background .2s; }
.menu-veil.open .mi { animation: miIn .4s var(--ease) both; }
.mi:active, .mi:hover { background: rgba(61,220,151,.08); }
.mi .ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 16px; background: rgba(255,255,255,.06); flex: none; }
.mi .side { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 700; text-align: right; }
.mi .bar { display: block; width: 70px; height: 5px; border-radius: 4px; background: rgba(255,255,255,.1); margin-top: 4px; overflow: hidden; }
.mi .bar i { display: block; height: 100%; width: 60%; background: linear-gradient(90deg, var(--accent-lo), var(--accent-hi)); box-shadow: 0 0 8px var(--glow); }
.mi.gold .ic { background: rgba(245,200,75,.14); }
.menu hr { border: 0; height: 1px; background: var(--line); margin: 4px 10px; }
@keyframes miIn { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }

.screen-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.screen-head .ttl { flex: 1; font-family: var(--script); font-size: 34px; line-height: 1; color: var(--accent-hi); text-shadow: 0 0 16px var(--glow); }
.screen-head .ttl small { font-family: var(--font); font-size: 12px; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; margin-left: 6px; font-weight: 700; text-shadow: none; }
.tag { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; color: var(--accent); background: rgba(61,220,151,.1); border: 1px solid rgba(61,220,151,.3); }
@keyframes crownDrop { 0% { opacity: 0; transform: translateY(-120px) rotate(-25deg) scale(1.4); } 45% { opacity: 1; transform: translateY(0) rotate(6deg) scale(1); } 60% { transform: translateY(-18px) rotate(-4deg); } 75% { transform: translateY(0) rotate(2deg) scaleY(.9); } 86% { transform: translateY(-5px); } 100% { opacity: 1; transform: none; } }
.holegrid { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.holegrid th, .holegrid td { text-align: center; padding: 6px 0; }
.holegrid th { font-size: 10px; color: var(--dim); font-weight: 800; letter-spacing: .05em; }
.holegrid td:first-child, .holegrid th:first-child { text-align: left; padding-left: 4px; font-weight: 700; font-size: 12.5px; white-space: nowrap; max-width: 62px; overflow: hidden; text-overflow: ellipsis; }
.holegrid td:last-child { font-weight: 850; color: var(--ink); }
.holegrid th:first-child { width: 74px; } .holegrid th:last-child { width: 34px; }
.holegrid tr + tr td { border-top: 1px solid var(--line); }
.holegrid td { color: var(--muted); }
.holegrid .cur { background: rgba(61,220,151,.09); color: var(--accent-hi); }
.holegrid th.cur { color: var(--accent); border-radius: 8px 8px 0 0; }
.holegrid td.zero { color: var(--gold-hi); font-weight: 800; }
.holegrid td.neg { color: var(--accent-hi); font-weight: 800; }
.holegrid tr.lead td:first-child::after { content: " 👑"; font-size: 10px; }
.actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }

#stage { transition: opacity .3s, transform .3s; }

 /* fix6: was a .46 s strobe */

@keyframes popIn2 { from { opacity: 0; transform: scale(0) translateY(20px); } to { opacity: 1; transform: none; } }

/* the amazing tier: gold, two shockwaves, gold explosion, harder and repeated shake */

 /* fix6: one hard shake (was hard + a second shake) */

@keyframes spinBack { to { transform: rotate(-360deg); } }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes scorePop { 0% { transform: scale(0) rotate(-180deg); } 100% { transform: none; } }
@keyframes slam { 0% { opacity: 0; transform: scale(2.6); filter: blur(10px); } 70% { opacity: 1; transform: scale(.94); filter: none; } 100% { opacity: 1; transform: none; } }
@keyframes shake { 0%, 100% { transform: none; } 20% { transform: translate(-7px, 3px) rotate(-1deg); } 40% { transform: translate(6px,-4px) rotate(1deg); } 60% { transform: translate(-4px, 2px); } 80% { transform: translate(3px,-1px); } }

/* ---------- playing cards (calculator, winner) ---------- */
.pcard { position: relative; width: 86px; height: 120px; perspective: 700px; }
.pcard .in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .5s var(--ease); }
.pcard .f, .pcard .b { position: absolute; inset: 0; border-radius: 10px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.pcard .b { transform: rotateY(180deg); border: 4px solid #f3efe4; background: repeating-linear-gradient(45deg, rgba(255,255,255,.1) 0 2px, transparent 2px 8px), linear-gradient(135deg, #10593a, #073020); box-shadow: inset 0 0 0 2px var(--gold), 0 8px 16px rgba(0,0,0,.5); }
.pcard .f { background: linear-gradient(160deg, #fffdf7, #efe8d8); color: #141414; box-shadow: 0 10px 20px -4px rgba(0,0,0,.6), 0 0 0 1px rgba(0,0,0,.25); transition: box-shadow .3s, filter .3s; }
.pcard.red .f { color: var(--red); }
.pcard .f .c { position: absolute; left: 7px; top: 6px; font-weight: 850; font-size: 19px; line-height: .95; text-align: center; }
.pcard .f .c2 { left: auto; top: auto; right: 7px; bottom: 6px; transform: rotate(180deg); }
.pcard .f .pip { position: absolute; inset: 0; display: grid; place-items: center; font-size: 42px; }
.pcard .val { position: absolute; left: 50%; bottom: -12px; transform: translateX(-50%); min-width: 30px; padding: 2px 7px; border-radius: 999px; font-size: 12px; font-weight: 850; color: var(--accent-ink); background: var(--accent); box-shadow: 0 0 10px var(--glow); z-index: 3; transition: all .3s; }
.pcard.down .in { transform: rotateY(180deg); }
.calc-felt { position: relative; border-radius: 26px; padding: 24px 12px 30px; margin-bottom: 14px; overflow: hidden;
  background: radial-gradient(70% 70% at 50% 40%, rgba(220,255,235,.14), transparent 70%), radial-gradient(110% 90% at 50% 40%, var(--felt-hi), var(--felt) 55%, var(--felt-lo));
  box-shadow: inset 0 0 0 1px rgba(245,200,75,.35), inset 0 0 40px rgba(0,0,0,.55), 0 24px 40px -20px #000; }
.pcard.pairflash .f { animation: pairFlash .9s ease-in-out 2; }
@keyframes pairFlash { 50% { box-shadow: 0 0 0 3px var(--accent-hi), 0 0 30px 6px var(--accent); filter: brightness(1.08); } }
.pcard.cancel .f { filter: grayscale(.6) brightness(.72); }
.pcard.cancel .val { background: #39443f; color: #cfd8d3; box-shadow: none; }
.pcard.cancel::after { content: ""; position: absolute; left: -6px; right: -6px; top: 50%; height: 3px; background: var(--accent-hi); box-shadow: 0 0 10px var(--accent); transform: rotate(-30deg); animation: strike .35s ease-out both; border-radius: 2px; z-index: 2; }
@keyframes strike { from { transform: rotate(-30deg) scaleX(0); } }
.pcard.paired .val { opacity: 0; transform: translateX(-50%) scale(.5); }
.pcard.quad .f { box-shadow: 0 0 0 3px var(--gold-hi), 0 0 30px 6px rgba(245,200,75,.75); }
.pairtag { position: absolute; z-index: 5; padding: 3px 8px; border-radius: 999px; font-weight: 900; font-size: 11px; letter-spacing: .04em; color: var(--accent-ink); background: var(--accent-hi); box-shadow: 0 0 18px var(--accent); animation: slam .5s var(--bounce) both; white-space: nowrap; }
.burst { position: absolute; z-index: 6; left: 50%; top: 50%; transform: translate(-50%,-50%); pointer-events: none; font-weight: 950; font-size: 92px; letter-spacing: -.03em; color: var(--gold-hi);
  text-shadow: 0 0 30px rgba(245,200,75,.95), 0 0 70px rgba(245,200,75,.6), 0 4px 0 #8a5a00; animation: burst 2.6s cubic-bezier(.2,.9,.3,1.2) both; }
.burst::before { content: ""; position: absolute; left: 50%; top: 50%; width: 300px; height: 300px; margin: -150px 0 0 -150px; border-radius: 50%; border: 3px solid var(--gold-hi); animation: ring .8s ease-out both; z-index: -1; }
@keyframes burst { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.2) rotate(-12deg); } 15% { opacity: 1; transform: translate(-50%,-50%) scale(1.25) rotate(4deg); } 25% { transform: translate(-50%,-50%) scale(1); } 85% { opacity: 1; transform: translate(-50%,-50%) scale(1); } 100% { opacity: 0; transform: translate(-50%,-80%) scale(1.05); } }
.breakdown { display: grid; gap: 6px; font-size: 14px; }
.breakdown div { display: flex; justify-content: space-between; color: var(--muted); }
.breakdown div b { color: var(--ink); font-variant-numeric: tabular-nums; }
.breakdown div.hl b { color: var(--accent-hi); }
.breakdown div.gold b { color: var(--gold-hi); }
.breakdown .total { border-top: 1px solid var(--line-2); padding-top: 8px; margin-top: 2px; font-size: 17px; color: var(--ink); font-weight: 800; }
.breakdown .total b { font-size: 26px; color: var(--accent-hi); text-shadow: 0 0 12px var(--glow); }

/* ---------- 6. winner ---------- */
#winner { text-align: center; }
.wfan { position: relative; height: 150px; margin: 10px 0 0; }
.wfan .pcard { position: absolute; left: 50%; top: 10px; margin-left: -43px; transform-origin: 50% 120%; }
.wfan .pcard.fly { animation: flyIn .7s var(--ease) both; }
@keyframes flyIn { 0% { opacity: 0; transform: translate(var(--fx), var(--fy)) rotate(var(--fr0)) scale(1.3); } 100% { opacity: 1; transform: rotate(var(--fr)); } }
.wcrown { font-size: 58px; line-height: 1; margin-top: -30px; position: relative; z-index: 3; filter: drop-shadow(0 0 18px rgba(245,200,75,.9)); }
.wcrown.go { animation: crownDrop 1s .95s cubic-bezier(.3,0,.3,1) both; }
.wname { font-family: var(--script); font-size: 92px; line-height: 1; margin: 0; position: relative; z-index: 3;
  color: var(--gold-hi); background: linear-gradient(180deg, #fff6d0, var(--gold-hi) 40%, var(--gold) 70%, var(--gold-lo)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 18px rgba(245,200,75,.6)) drop-shadow(0 5px 0 rgba(0,0,0,.45)); padding: 0 20px; }
.wname.go { animation: slam .6s .7s cubic-bezier(.2,.9,.3,1.25) both; }
.wsub { font-size: 12.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); font-weight: 800; margin: 4px 0 14px; }
.wsub.go { animation: riseIn .5s 1.2s both; }
.commitzone { position: relative; margin-top: 2px; }
.stamp { position: absolute; left: 50%; top: -128px; z-index: 8; pointer-events: none; transform: translateX(-50%) rotate(-12deg); padding: 8px 18px; border-radius: 12px; border: 4px double var(--accent-hi); color: var(--accent-hi);
  font-weight: 950; font-size: 32px; letter-spacing: .04em; text-transform: uppercase; background: rgba(4,20,12,.35); box-shadow: 0 0 30px -4px var(--accent), inset 0 0 18px rgba(61,220,151,.3); text-shadow: 0 0 12px var(--glow); white-space: nowrap; opacity: 0; }
.stamp.go { animation: stampIn .45s cubic-bezier(.5,0,.6,1.4) both; }
@keyframes stampIn { 0% { opacity: 0; transform: translateX(-50%) rotate(-30deg) scale(3.2); } 70% { opacity: 1; transform: translateX(-50%) rotate(-10deg) scale(.92); } 100% { opacity: 1; transform: translateX(-50%) rotate(-12deg) scale(1); } }
.btn.done { background: rgba(61,220,151,.12); color: var(--accent-hi); border-color: rgba(61,220,151,.4); animation: none; box-shadow: none; }
.btn.done::after { display: none; }
.miniboards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; text-align: left; }
.miniboards .panel { padding: 12px; margin: 0; opacity: 0; }
.miniboards.go .panel { animation: slideUp .6s var(--ease) both; }
.miniboards.go .panel:nth-child(2) { animation-delay: .15s; }
@keyframes slideUp { from { opacity: 0; transform: translateY(40px) scale(.96); } to { opacity: 1; transform: none; } }
.miniboards h2 { margin-bottom: 8px; font-size: 10.5px; }
.mb { display: flex; align-items: baseline; gap: 6px; font-size: 13px; padding: 4px 0; }
.mb .n { flex: 1; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb .v { font-weight: 900; color: var(--accent-hi); font-variant-numeric: tabular-nums; }
.mb .up { font-size: 10px; color: var(--accent); font-weight: 900; }

/* ---------- 7. standings ---------- */
.tabs { display: flex; padding: 4px; border-radius: 16px; background: rgba(0,0,0,.35); border: 1px solid var(--line); margin-bottom: 14px; position: relative; }
.tabs button { flex: 1; position: relative; z-index: 2; padding: 10px; font-weight: 800; font-size: 14.5px; color: var(--muted); transition: color .3s; }
.tabs button.on { color: var(--accent-ink); }
.tabs .ind { position: absolute; z-index: 1; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 12px; background: linear-gradient(135deg, var(--accent-hi), var(--accent)); box-shadow: 0 0 18px -3px var(--glow); transition: transform .45s var(--bounce); }
.tabs.right .ind { transform: translateX(100%); }
.board h2 .hint { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--dim); font-size: 11.5px; }
.brow { display: grid; grid-template-columns: 26px 1fr auto auto; align-items: center; gap: 10px; padding: 10px 2px; }
.brow + .brow { border-top: 1px solid var(--line); }
.board.go .brow { animation: riseIn .5s var(--ease) both; }
.brow .rk { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 900; color: var(--muted); background: rgba(255,255,255,.07); }
.brow.r1 .rk { background: linear-gradient(135deg, var(--gold-hi), var(--gold-lo)); color: #2a1e00; box-shadow: 0 0 14px rgba(245,200,75,.6); }
.brow .who { font-weight: 750; font-size: 15.5px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brow.r1 .who::after { content: " 👑"; font-size: 13px; }
.brow .avg { font-size: 30px; font-weight: 900; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--accent-hi); text-shadow: 0 0 14px var(--glow); line-height: 1; text-align: right; min-width: 74px; }
.brow.r1 .avg { color: var(--gold-hi); text-shadow: 0 0 16px rgba(245,200,75,.75); }
.brow .meta { text-align: right; font-size: 11px; color: var(--dim); line-height: 1.25; min-width: 50px; font-weight: 600; }
.brow .meta b { display: block; font-size: 14px; color: var(--ink); font-variant-numeric: tabular-nums; }
.unranked .brow .avg { font-size: 18px; color: var(--muted); text-shadow: none; }
.unranked .brow .rk { background: transparent; border: 1px dashed var(--line-2); }
.unranked p { margin: -4px 0 6px; font-size: 12.5px; color: var(--dim); }

/* ---------- reduced motion: keep fades, drop motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .15s !important; }
}

/* automated tests only (window.__GOLF_TEST.instant): no CSS motion so geometry is measured at rest */
html.t-instant *, html.t-instant *::before, html.t-instant *::after { animation: none !important; transition: none !important; }

/* =====================================================================
   Golf v2 app layer (scoring screens, sheets, dialogs, championship)
   ===================================================================== */
input, textarea { -webkit-user-select: text; user-select: text; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
::selection { background: rgba(61,220,151,.35); }
.wrap.wide { max-width: 760px; }
.screen.active, .screen.leaving { z-index: 1; }
.screen.leaving { z-index: 0; }
.btn:hover { filter: brightness(1.1); }
.btn.danger { background: rgba(255,90,90,.12); border-color: rgba(255,122,122,.45); color: #ffb0b0; }
.btn.block { width: 100%; }
.btn.big { min-height: 58px; font-size: 17px; border-radius: 16px; }
.btn[disabled] { opacity: .42; cursor: not-allowed; animation: none; }
.btn[disabled]::after { display: none; }
.iconbtn { color: var(--ink); }
.linkbtn { display: block; margin: 8px auto 0; color: var(--muted); text-decoration: underline; text-decoration-color: rgba(159,176,168,.4); text-underline-offset: 3px; font-size: 14px; min-height: 36px; padding: 4px 10px; }
.linkbtn:hover { color: var(--accent); }
.hint { color: var(--muted); font-size: 13.5px; margin: 10px 0 0; line-height: 1.45; }
.hint.small { font-size: 12px; color: var(--dim); }
.err { color: var(--danger); font-weight: 650; min-height: 1.2em; margin: 6px 0; font-size: 14px; }
.err:empty { min-height: 0; margin: 0; }
#setupErr { margin: -4px 0 10px; }
#setupErr:empty { margin: 0; }
.panel:focus-within { z-index: 5; }
.panel h2 { font-size: 11.5px; }
.panel h2.wname { font-size: inherit; }

/* setup: players */
.plist { list-style: none; margin: 0 0 4px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.plist li { position: relative; display: flex; align-items: center; gap: 6px; background: rgba(0,0,0,.28); border: 1px solid var(--line-2); border-radius: 14px; padding: 6px; transition: border-color .2s, box-shadow .2s; animation: riseIn .45s var(--ease) both; box-shadow: inset 0 2px 6px rgba(0,0,0,.3); }
.plist li:focus-within { border-color: rgba(61,220,151,.6); box-shadow: 0 0 0 3px rgba(61,220,151,.14), inset 0 2px 6px rgba(0,0,0,.35); z-index: 4; }
.plist .num { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--accent); background: rgba(61,220,151,.1); border: 1px solid rgba(61,220,151,.3); font-variant-numeric: tabular-nums; }
.plist input { flex: 1; min-width: 0; height: 44px; border-radius: 10px; border: 1px solid transparent; background: rgba(255,255,255,.05); padding: 0 12px; font-size: 16.5px; font-weight: 600; }
.plist input:focus { outline: none; background: rgba(255,255,255,.08); }
.plist input::placeholder { color: var(--dim); font-style: italic; font-weight: 400; }
.plist input.isdef { color: #8f9e97; font-style: italic; font-weight: 400; }
.plist .at { flex: none; font-weight: 900; color: var(--accent); text-shadow: 0 0 10px var(--glow); font-size: 17px; padding: 0 2px; animation: popIn2 .4s var(--bounce) both; }
.plist .iconbtn { width: 38px; height: 38px; border-radius: 11px; font-size: 15px; color: var(--muted); background: rgba(255,255,255,.04); border-color: var(--line); }
.plist .iconbtn[disabled] { opacity: .3; }
.suggest { position: absolute; left: 36px; right: 6px; top: calc(100% + 4px); z-index: 20; margin: 0; animation: riseIn .25s var(--ease) both; }
.suggest button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 12px; font-size: 15px; font-weight: 650; text-align: left; }
.suggest button + button { border-top: 1px solid var(--line); }
.suggest button:hover, .suggest button:focus-visible { background: rgba(61,220,151,.1); }
.suggest button span { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.add-row .btn { flex: 1; }
#champRow { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
#champNote { transition: opacity .3s; }
#playersPanel.champoff #champNote { display: none; }
.startrow { display: flex; flex-wrap: nowrap; gap: 10px; margin-bottom: 14px; }
.startrow .btn { flex: 1 1 0; min-width: 0; min-height: 62px; font-size: 15px; line-height: 1.2; padding: 10px 10px; }
.randbtn { background: rgba(61,220,151,.06); border: 1px solid rgba(61,220,151,.5); color: var(--accent-hi); }
.seg button[aria-pressed="true"] { color: var(--accent-ink); background: linear-gradient(135deg, var(--accent-hi), var(--accent)); box-shadow: 0 0 14px -3px var(--glow); }
.seg button { min-height: 44px; }
.custom { display: flex; align-items: center; gap: 10px; margin-top: 10px; color: var(--muted); }
.custom input { width: 100px; height: 46px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(0,0,0,.3); padding: 0 12px; font-size: 18px; text-align: center; }
.custom input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow-soft); }
.brandfoot { margin-top: 18px; flex-wrap: wrap; row-gap: 4px; }
.rules .rulescopy { margin: 14px 0 0; text-align: center; font-size: 11px; color: var(--dim); opacity: .8; letter-spacing: .02em; }
.brandfoot .privacy { flex: 0 0 100%; max-width: 100%; box-sizing: border-box; padding: 0 6%; text-wrap: balance; margin: 8px 0 0; text-align: center; font-size: 11px; line-height: 1.45; color: var(--dim); opacity: .75; letter-spacing: .01em; }
.rules .rulesprivacy { margin: 14px auto 0; max-width: 46ch; text-align: center; font-size: 11px; line-height: 1.45; color: var(--dim); opacity: .75; letter-spacing: .01em; }
.rules .rulesprivacy + .rulescopy { margin-top: 6px; }
.brandfoot .copy { flex-basis: 100%; text-align: center; font-size: 11px; color: var(--dim); opacity: .8; letter-spacing: .02em; }

/* game */
.status { display: flex; gap: 10px; align-items: stretch; margin-bottom: 12px; }
.holebox { background: linear-gradient(180deg, rgba(61,220,151,.16), rgba(61,220,151,.06)); border: 1px solid rgba(61,220,151,.45); color: var(--accent); border-radius: 16px; padding: 8px 14px; text-align: center; min-width: 92px; box-shadow: 0 0 24px -8px var(--glow), inset 0 1px 0 rgba(255,255,255,.06); }
.holebox .lbl { font-size: 10.5px; text-transform: uppercase; letter-spacing: .16em; font-weight: 700; color: #a8f0cd; }
.holebox .val { font-size: 26px; font-weight: 850; line-height: 1.1; font-variant-numeric: tabular-nums; text-shadow: 0 0 18px rgba(61,220,151,.5); }
.holebox .val.bump { animation: bump .5s var(--bounce); }
@keyframes bump { 40% { transform: scale(1.3); color: var(--accent-hi); } }
.dealbox { flex: 1; min-width: 0; background: var(--glass); border: 1px solid var(--line); border-radius: 16px; padding: 8px 12px; display: flex; flex-direction: column; justify-content: center; font-size: 15px; }
.dealbox b { color: var(--ink); }
.dealbox span { color: var(--muted); }
.rulestag { display: inline-block; margin-top: 4px; align-self: flex-start; background: rgba(61,220,151,.12); border: 1px solid rgba(61,220,151,.45); color: #c9f8e2; border-radius: 999px; padding: 1px 9px; font-size: 12px; font-weight: 700; }
.champtag { display: inline-block; margin: 4px 0 0 6px; background: rgba(245,200,75,.12); border: 1px solid rgba(245,200,75,.45); color: var(--gold-hi); border-radius: 999px; padding: 1px 9px; font-size: 12px; font-weight: 700; }
.tagrow { display: flex; flex-wrap: wrap; align-items: center; }
.entry { position: sticky; top: 8px; z-index: 6; background: rgba(12,19,16,.9); border: 1px solid rgba(61,220,151,.55); border-radius: var(--r); padding: 12px; margin-bottom: 12px;
  box-shadow: 0 0 0 1px rgba(61,220,151,.12), 0 0 32px -10px var(--glow), 0 18px 40px -16px rgba(0,0,0,.85); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); transition: border-color .25s, box-shadow .25s; }
.entry .who { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; gap: 8px; }
.entry .who .pn { font-size: 21px; font-weight: 850; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entry .who .pn.swap { animation: riseIn .35s var(--ease) both; }
.entry .who .ph { color: var(--muted); font-size: 14px; white-space: nowrap; }
.entry .row { display: flex; gap: 8px; }
.entry input { flex: 1; min-width: 0; height: 62px; border-radius: 14px; border: 1px solid var(--line-2); background: #050907; font-size: 32px; font-weight: 850; text-align: center; font-variant-numeric: tabular-nums; transition: border-color .2s, box-shadow .2s; }
.entry input::placeholder { color: #7f918a; font-weight: 600; font-size: 20px; }
.entry input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--glow-soft), 0 0 22px -6px var(--glow); }
.entry .pm { width: 62px; height: 62px; font-size: 24px; font-weight: 850; border-radius: 14px; border: 1px solid var(--line-2); background: var(--glass-2); }
.entry .next { height: 62px; min-width: 100px; font-size: 17px; }
.entry .tools { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.entry .tools .btn { min-height: 42px; padding: 8px 12px; font-size: 14px; flex: 1; }
.entry .tools .calcbtn { flex-basis: 100%; background: rgba(61,220,151,.1); border-color: rgba(61,220,151,.45); color: #c9f8e2; }
.entry.editing { border-color: rgba(245,200,75,.7); box-shadow: 0 0 0 1px rgba(245,200,75,.15), 0 0 30px -10px rgba(245,200,75,.5), 0 18px 40px -16px rgba(0,0,0,.85); }
.entry .editnote { color: var(--gold); font-size: 13px; font-weight: 700; }
.gridwrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); background: rgba(0,0,0,.3); -webkit-overflow-scrolling: touch; }
table.card { border-collapse: separate; border-spacing: 0; width: 100%; font-variant-numeric: tabular-nums; }
.card th, .card td { padding: 0; text-align: center; border-bottom: 1px solid rgba(255,255,255,.06); height: 48px; min-width: 64px; }
.card thead th { position: sticky; top: 0; background: var(--solid-2); font-size: 13px; color: var(--muted); font-weight: 700; padding: 6px 4px; max-width: 110px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; z-index: 1; border-bottom: 1px solid var(--line-2); }
.card thead th.leadcol { color: var(--gold-hi); text-shadow: 0 0 12px rgba(245,200,75,.55); }
.card th.h { position: sticky; left: 0; background: var(--solid-2); min-width: 54px; width: 54px; font-weight: 700; color: var(--muted); z-index: 2; font-size: 15px; border-right: 1px solid var(--line); }
.card thead th.h { z-index: 3; }
.card tr.cur th.h { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 18px -2px var(--glow); }
.card tr.cur td { background: rgba(61,220,151,.07); }
.card .dl { display: block; font-size: 10px; font-weight: 700; letter-spacing: .04em; opacity: .85; }
.cell { width: 100%; height: 47px; font-size: 19px; font-weight: 750; border-radius: 0; transition: background-color .15s; }
.cell:hover { background: rgba(255,255,255,.04); }
.cell.empty { color: rgba(255,255,255,.28); font-weight: 400; }
.cell.neg { color: var(--accent-hi); }
.cell.zero { color: var(--gold-hi); }
.cell.sel { outline: 2px solid var(--accent); outline-offset: -3px; background: rgba(61,220,151,.14); box-shadow: inset 0 0 16px rgba(61,220,151,.25); }
.cell.flipin { animation: cellFlip .45s var(--ease) both; }
@keyframes cellFlip { 0% { transform: rotateX(90deg); opacity: .2; } 100% { transform: none; opacity: 1; } }
.card tfoot td, .card tfoot th { background: #080d0b; font-weight: 850; font-size: 19px; border-bottom: 0; border-top: 1px solid var(--line-2); height: 54px; position: sticky; bottom: 0; }
.card tfoot th.h { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.card tfoot td.leadcol { color: var(--gold-hi); text-shadow: 0 0 14px rgba(245,200,75,.6); }
#game .foot, #winner .foot, #standings .foot { gap: 8px; }
#game .foot .btn, #winner .foot .btn, #standings .foot .btn { flex: 1; }
.gamefoot { flex-wrap: nowrap; margin-top: 14px; padding: 0; }
.gamefoot .btn { flex: 1 1 0; min-width: 0; padding-left: 6px; padding-right: 6px; white-space: nowrap; }

/* the felt table (SVG) */
.tablebox { width: 100%; margin: 0 auto; }
.tablebox svg { display: block; width: 100%; height: auto; margin: 0 auto; overflow: visible; }
.gametable { position: relative; border-radius: var(--r); margin-bottom: 12px; padding: 6px 4px;
  background: radial-gradient(80% 70% at 50% 50%, rgba(61,220,151,.08), transparent 70%), rgba(0,0,0,.28); border: 1px solid var(--line); }
.tablebox .tbl { fill: url(#feltG); stroke: #3c2614; stroke-width: 7; filter: drop-shadow(0 0 1.5px rgba(245,200,75,.9)) drop-shadow(0 10px 14px rgba(0,0,0,.7)); }
.tablebox .tblin { stroke: rgba(245,200,75,.3); }
.tablebox text.ctr { fill: rgba(255,255,255,.75); font-family: var(--script); }
.seat .tot { fill: #fff; font-weight: 850; font-variant-numeric: tabular-nums; }
.seat .totbg { fill: rgba(0,0,0,.45); stroke: rgba(255,255,255,.2); stroke-width: 1; }
.seat.leader .totbg { fill: rgba(245,200,75,.18); stroke: var(--gold); }
.seat.leader .tot { fill: var(--gold-hi); }
.seat .pill { fill: rgba(5,10,8,.9); stroke: rgba(255,255,255,.28); stroke-width: 1.2; }
.seat text { fill: var(--ink); font-weight: 700; font-family: var(--font); }
.seat .no { fill: var(--muted); font-weight: 700; }
.seat.dealer .pill { fill: var(--accent); stroke: #b9ffde; stroke-width: 1.5; filter: drop-shadow(0 0 6px rgba(61,220,151,.7)); }
.seat.dealer .nm { fill: var(--accent-ink); }
.seat .dot { fill: #cfe9dd; }
.seat.dealer .dot { fill: var(--accent); stroke: #e8fff4; stroke-width: 2; filter: drop-shadow(0 0 4px rgba(61,220,151,.9)); }
.seat .crown { filter: drop-shadow(0 0 4px rgba(245,200,75,.75)); }
.seat .crown.drop { transform-box: fill-box; transform-origin: 50% 100%; animation: crownDrop .9s cubic-bezier(.3,0,.3,1) both; }
.seat .totc { fill: #fff; font-weight: 850; font-variant-numeric: tabular-nums; pointer-events: none; }
.seat.counting .tot { fill-opacity: 0; }
.seat.bump .totbg { transform-box: fill-box; transform-origin: center; animation: totBump .55s var(--bounce); }
@keyframes totBump { 40% { transform: scale(1.18); } }
.dchip { transition: transform .75s cubic-bezier(.5,0,.2,1.15); pointer-events: none; }
.dchip .ring { fill: var(--accent); stroke: #0b3d27; stroke-width: 2; filter: drop-shadow(0 2px 4px rgba(0,0,0,.6)) drop-shadow(0 0 5px rgba(61,220,151,.7)); }
.dchip .core { fill: #fff; }
.dchip text { fill: #0b1a12; font-weight: 900; font-family: var(--font); }
.dchip.spin .spinner { transform-box: fill-box; transform-origin: center; animation: chipSpin .75s cubic-bezier(.5,0,.2,1); }
@keyframes chipSpin { to { transform: rotate(720deg); } }
.gametable.dealing .seat { transform-box: fill-box; transform-origin: center; animation: dealSeatSvg .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes dealSeatSvg { 0% { opacity: 0; transform: translate(0, 30px) scale(.3) rotate(-25deg); } 100% { opacity: 1; transform: none; } }

/* sheets & dialogs */
.sheet { position: fixed; inset: 0; background: rgba(2,4,3,.66); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); z-index: 80; display: flex; align-items: flex-end; justify-content: center; animation: fadeIn .2s ease-out; }
.sheet .body { background: linear-gradient(180deg, rgba(20,30,26,.97), rgba(9,14,12,.98)); border: 1px solid var(--line-2); border-bottom: 0; border-radius: 24px 24px 0 0; width: 100%; max-width: 560px; max-height: 100%; overflow-y: auto; padding: 14px 14px calc(14px + var(--safe-b));
  box-shadow: 0 -1px 0 rgba(61,220,151,.25), 0 -20px 60px -10px rgba(0,0,0,.7); animation: sheetUp .3s var(--ease); -webkit-user-select: text; user-select: text; }
@keyframes sheetUp { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
@media (min-width: 700px) { .sheet { align-items: center; } .sheet .body { border-radius: 24px; border-bottom: 1px solid var(--line-2); max-height: 92%; } }
.sheet .hd { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.sheet .hd h3 { flex: 1; margin: 0; font-size: 18px; font-weight: 750; letter-spacing: -.02em; }
.sheet .hd .sub { color: var(--muted); font-weight: 500; font-size: 14px; letter-spacing: 0; }
.modal { position: fixed; inset: 0; background: rgba(2,4,3,.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px; animation: fadeIn .18s ease-out; }
.modal .box { background: linear-gradient(180deg, rgba(22,32,28,.98), rgba(11,16,14,.99)); border: 1px solid var(--line-2); border-radius: 22px; padding: 20px; max-width: 380px; width: 100%; box-shadow: 0 0 0 1px rgba(61,220,151,.1), 0 0 40px -14px var(--glow), 0 30px 70px -20px rgba(0,0,0,.85); animation: popin .3s var(--bounce); }
@keyframes popin { from { transform: scale(.9) translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal h3 { margin: 0 0 8px; font-size: 19px; font-weight: 750; letter-spacing: -.02em; }
.modal p { margin: 0 0 16px; color: var(--muted); }
.modal .acts { display: flex; gap: 10px; }
.modal .acts .btn { flex: 1; }
.toast { bottom: calc(26px + var(--safe-b)); pointer-events: none; max-width: calc(100% - 24px); white-space: normal; text-align: center; }
.fld { display: block; margin: 12px 0 0; }
.fld span { display: block; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.fld input, .edrow input { width: 100%; height: 48px; border-radius: 13px; border: 1px solid var(--line-2); background: rgba(0,0,0,.3); padding: 0 12px; font-size: 16.5px; font-weight: 600; box-shadow: inset 0 2px 6px rgba(0,0,0,.35); }
.fld input:focus, .edrow input:focus { outline: none; border-color: rgba(61,220,151,.6); box-shadow: 0 0 0 3px rgba(61,220,151,.14), inset 0 2px 6px rgba(0,0,0,.35); }
#regForm .btn.block { margin-top: 12px; }
.spots { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 700; font-size: 13.5px; margin-bottom: 10px; }
.spots .bar, #regSpots .bar { flex: 1; display: block; height: 6px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; }
.spots .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent-lo), var(--accent-hi)); box-shadow: 0 0 8px var(--glow); transition: width .8s var(--ease); }
.reglist { list-style: none; margin: 0 0 14px; padding: 0; }
.reglist li { display: flex; align-items: center; gap: 10px; padding: 10px 4px; animation: riseIn .4s var(--ease) both; }
.reglist li + li { border-top: 1px solid var(--line); }
.reglist .n { flex: 1; font-weight: 750; }
.reglist .m { color: var(--dim); font-size: 13px; font-variant-numeric: tabular-nums; }
.reglist .empty { color: var(--muted); justify-content: center; }

/* calculator (six-card grid) */
.calc-felt { padding: 18px 12px 16px; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 10px; position: relative; max-width: 330px; margin: 0 auto; }
.slot { position: relative; aspect-ratio: 5/7; max-height: 132px; width: 100%; border-radius: 10px; border: 1.5px dashed rgba(255,255,255,.3); background: rgba(0,0,0,.22); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4px; transition: transform .15s var(--ease), border-color .2s, box-shadow .2s, background .2s; }
.slot.filled { border: 1px solid #fff; background: linear-gradient(160deg, #fffdf7, #efe8d8); color: #141414; box-shadow: 0 8px 16px -4px rgba(0,0,0,.6), 0 0 0 1px rgba(0,0,0,.25); }
.slot.flip { animation: slotFlip .5s var(--ease) both; }
@keyframes slotFlip { 0% { transform: perspective(500px) translateY(-40px) rotateY(180deg) rotate(-10deg); opacity: 0; } 50% { opacity: 1; } 100% { transform: none; opacity: 1; } }
.slot .rk { font-size: 30px; font-weight: 900; line-height: 1; }
.slot .st { position: absolute; left: 6px; top: 4px; font-size: 13px; font-weight: 850; line-height: 1; }
.slot.red { color: var(--red); }
.slot .vl { font-size: 12.5px; font-weight: 800; margin-top: 6px; padding: 1px 8px; border-radius: 999px; color: var(--accent-ink); background: var(--accent); box-shadow: 0 0 8px var(--glow); }
.slot .ph { color: rgba(255,255,255,.55); font-size: 13px; }
.slot.active { outline: 2px solid var(--accent-hi); outline-offset: 3px; box-shadow: 0 0 22px -2px var(--glow); }
.slot.cancel { filter: grayscale(.5) brightness(.85); }
.slot.cancel .vl { text-decoration: line-through; background: #39443f; color: #cfd8d3; box-shadow: none; }
.slot.cancel::after { content: ""; position: absolute; left: -5px; right: -5px; top: 50%; height: 3px; background: var(--accent-hi); box-shadow: 0 0 10px var(--accent); transform: rotate(-30deg); animation: strike .35s ease-out both; border-radius: 2px; }
.slot.bonus { box-shadow: 0 0 0 3px var(--gold-hi), 0 0 22px 2px rgba(245,200,75,.6); }
.slot.bonus .vl { background: var(--gold); color: #2a1e00; }
.slot.quad { box-shadow: 0 0 0 3px var(--gold-hi), 0 0 26px 4px rgba(245,200,75,.7); }
.slot.quad .vl { text-decoration: line-through; background: #39443f; color: #cfd8d3; box-shadow: none; }
.quadbr { position: absolute; top: -6px; bottom: -6px; width: calc((100% - 20px) * 2 / 3 + 22px); border: 2px solid var(--accent); border-radius: 16px; pointer-events: none; z-index: 1;
  box-shadow: 0 0 0 1px rgba(61,220,151,.25), 0 0 22px -2px var(--glow), inset 0 0 18px -6px var(--glow); animation: qglow 1.6s ease-in-out infinite alternate; }
.quadbr.q0 { left: -6px; }
.quadbr.q1 { left: calc((100% - 20px) / 3 + 4px); }
.quadbr span { position: absolute; left: 50%; top: -11px; transform: translateX(-50%); background: var(--gold); color: #2a1e00; font-size: 10.5px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; white-space: nowrap; box-shadow: 0 0 12px rgba(245,200,75,.7); }
@keyframes qglow { from { box-shadow: 0 0 0 1px rgba(61,220,151,.2), 0 0 14px -4px var(--glow), inset 0 0 12px -6px var(--glow); } to { box-shadow: 0 0 0 1px rgba(61,220,151,.35), 0 0 28px 0 var(--glow), inset 0 0 20px -6px var(--glow); } }
.calc-felt .burst { font-size: 84px; }
.colsum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 2px; text-align: center; }
.colsum div { font-size: 13.5px; color: var(--muted); font-weight: 700; border-radius: 8px; padding: 4px 0; }
.colsum div.cx { background: rgba(61,220,151,.14); color: var(--accent); }
.colsum div.bx { background: rgba(245,200,75,.16); color: var(--gold); }
.colsum div.qx { background: rgba(245,200,75,.16); color: var(--gold-hi); border: 1px solid rgba(245,200,75,.6); box-shadow: 0 0 16px -4px rgba(245,200,75,.6); }
.handtotal { display: flex; justify-content: space-between; align-items: center; background: rgba(0,0,0,.35); border: 1px solid var(--line); border-radius: 14px; padding: 8px 14px; margin: 8px 0 10px; }
.handtotal .t { font-size: 32px; font-weight: 900; letter-spacing: -.03em; color: var(--accent-hi); font-variant-numeric: tabular-nums; text-shadow: 0 0 18px rgba(61,220,151,.5); }
.handtotal .t.bump { animation: bump .45s var(--bounce); }
.picker { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.picker button { min-height: 52px; border-radius: 12px; border: 1px solid var(--line); background: var(--glass-2); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; transition: background-color .15s, border-color .15s, transform .1s; }
.picker button b { font-size: 19px; }
.picker button small { font-size: 11px; color: var(--muted); margin-top: 2px; }
.picker button.jk { grid-column: span 2; }
.picker button:active { background: rgba(61,220,151,.22); transform: scale(.94); }
.calcacts { display: flex; gap: 8px; margin-top: 12px; }
.calcacts .btn { flex: 1; }
.calcacts .btn.primary { flex: 2; }

/* rules */
.rsets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rset { border: 1px solid var(--line); border-radius: 14px; padding: 8px 4px 2px; background: rgba(0,0,0,.25); }
.rset .rsh { font-weight: 750; padding: 0 8px 4px; font-size: 14.5px; }
.rset .badge { display: none; background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 1px 8px; font-size: 11px; margin-left: 4px; vertical-align: 2px; font-weight: 800; }
.rset.active { border-color: rgba(61,220,151,.6); background: rgba(61,220,151,.07); box-shadow: 0 0 24px -10px var(--glow); }
.rset.active .badge { display: inline-block; }
.pairnote { color: var(--muted); margin: 10px 0 0; font-size: 14px; }
.pairnote b { color: var(--ink); }
.rtable { width: 100%; border-collapse: collapse; margin: 0; }
.rtable td { padding: 6px 8px; font-size: 14px; border-bottom: 1px solid var(--line); }
.rtable tr:last-child td { border-bottom: 0; }
.rtable td:last-child { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.rtable tr.quadrow td { color: var(--gold-hi); }
.rules h4 { margin: 14px 0 6px; color: var(--accent); font-size: 12px; text-transform: uppercase; letter-spacing: .14em; }
.rules ol, .rules ul { margin: 0; padding-left: 20px; color: #d5e0db; }
.rules li { margin: 5px 0; line-height: 1.45; }
.rules li::marker { color: var(--accent); }
.rulesopt { display: flex; align-items: center; gap: 12px; margin: 16px 0 2px; padding: 10px 14px; min-height: 48px; border: 1px solid var(--line); border-radius: 14px; background: rgba(0,0,0,.25); color: #d5e0db; font-weight: 650; font-size: 14.5px; cursor: pointer; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.rulesopt input { -webkit-appearance: none; appearance: none; flex: none; width: 24px; height: 24px; margin: 0; border-radius: 8px; border: 1.5px solid var(--line-2); background: rgba(0,0,0,.35); display: grid; place-content: center; cursor: pointer; transition: background-color .15s, border-color .15s, box-shadow .2s; }
.rulesopt input::after { content: ''; width: 6px; height: 11px; margin-top: -3px; border: solid var(--accent-ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(0); transition: transform .15s var(--ease); }
.rulesopt input:checked { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 16px -2px var(--glow); }
.rulesopt input:checked::after { transform: rotate(45deg) scale(1); }
.rulesopt:has(input:checked) { border-color: rgba(61,220,151,.55); background: rgba(61,220,151,.07); color: #c9f8e2; }

/* password prompt + nice try */
.rpbox { text-align: center; }
.rpbox .rpicon { font-size: 42px; line-height: 1; margin-bottom: 8px; filter: drop-shadow(0 0 14px rgba(245,200,75,.55)); }
.rpbox input { width: 100%; height: 60px; border-radius: 14px; border: 1px solid var(--line-2); background: #050907; font-size: 26px; font-weight: 800; text-align: center; letter-spacing: .2em; margin: 0 0 16px; }
.rpbox input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--glow-soft), 0 0 22px -6px var(--glow); }
.nope { position: fixed; inset: 0; z-index: 120; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px;
  background: radial-gradient(60% 45% at 50% 38%, rgba(255,96,80,.42) 0%, rgba(150,20,50,.28) 45%, transparent 75%), radial-gradient(120% 90% at 50% 100%, #1a0609 0%, #08040a 70%); background-color: #07040a; }
.nope .rays { position: absolute; inset: -50%; background: repeating-conic-gradient(rgba(255,120,100,.07) 0 10deg, transparent 10deg 20deg); animation: spin 18s linear infinite; pointer-events: none; -webkit-mask-image: radial-gradient(circle, #000 0, transparent 55%); mask-image: radial-gradient(circle, #000 0, transparent 55%); }
.nope > * { position: relative; }
.nope .stage { position: relative; width: 240px; height: 200px; margin-bottom: 6px; }
.cop { position: absolute; left: 50%; top: 22px; width: 110px; height: 150px; margin-left: -55px; background: linear-gradient(180deg, #fff, #eef2f0); border-radius: 14px; border: 2px solid #ff8a7a; box-shadow: 0 0 30px -4px rgba(255,100,90,.6), 0 10px 24px rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; font-size: 58px; animation: wobble 1s ease-in-out infinite; }
.cop .hat { position: absolute; top: -34px; left: 50%; transform: translateX(-50%); font-size: 42px; }
.cop .face { line-height: 1; }
.cop .suit { position: absolute; top: 4px; left: 8px; font-size: 18px; color: #c0392b; font-weight: 900; }
.cop .suit.b { top: auto; left: auto; bottom: 4px; right: 8px; transform: rotate(180deg); }
@keyframes wobble { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
.finger { position: absolute; right: 6px; top: 30px; font-size: 51px; transform-origin: 50% 90%; animation: wag .45s ease-in-out infinite alternate; }
@keyframes wag { from { transform: rotate(-28deg); } to { transform: rotate(28deg); } }
.nope .ball { position: absolute; left: 44px; top: 46px; width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff 0 40%, #d9d9d9 75%, #aaa 100%); box-shadow: 0 0 14px rgba(255,255,255,.35), 0 2px 4px rgba(0,0,0,.4); animation: fly 2.4s cubic-bezier(.3,.1,.3,1) infinite; }
@keyframes fly { 0% { transform: translate(-260px,140px) scale(.6); } 38% { transform: translate(0,0) scale(1); } 46% { transform: translate(-20px,-30px) rotate(200deg); } 100% { transform: translate(-160px,220px) rotate(720deg); } }
.bonk { position: absolute; left: -6px; top: 0; font-weight: 1000; font-size: 32px; color: #ffe14d; -webkit-text-stroke: 2px #5a1200; text-shadow: 0 0 18px rgba(255,210,80,.6); transform: rotate(-14deg); letter-spacing: .04em; animation: bonk 2.4s ease-out infinite; }
@keyframes bonk { 0%, 36% { opacity: 0; transform: rotate(-14deg) scale(.2); } 42% { opacity: 1; transform: rotate(-14deg) scale(1.35); } 60% { opacity: 1; transform: rotate(-14deg) scale(1); } 80%, 100% { opacity: 0; transform: rotate(-14deg) scale(1); } }
.nope h2 { margin: 4px 0 8px; font-size: clamp(34px, 11vw, 54px); font-weight: 900; letter-spacing: -.03em; line-height: 1.05; color: #fff; text-shadow: 0 0 28px rgba(255,90,80,.65), 0 4px 18px rgba(0,0,0,.5); }
.nope h2 span { display: inline-block; animation: bounce .9s ease-in-out infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.nope .snark { font-size: 18px; font-weight: 700; color: #ffe9e4; margin: 0 0 6px; max-width: 320px; }
.nope .snark2 { font-size: 15px; color: #ffbcb0; margin: 0 0 24px; font-style: italic; }
.nope .btn { background: #fff; color: #7a1530; font-size: 18px; min-height: 56px; padding: 12px 26px; border-radius: 999px; box-shadow: 0 0 0 1px rgba(255,255,255,.3), 0 0 30px -4px rgba(255,110,100,.65); }

/* winner */
#winner { text-align: center; }
#winner .wname { font-size: clamp(44px, 17vw, 92px); overflow-wrap: anywhere; line-height: 1.05; }
#winner .wname.long { font-size: clamp(36px, 11vw, 64px); }
.congrats { font-family: var(--script); font-size: 34px; color: #fff; text-shadow: 0 0 18px var(--glow); margin: 2px 0 2px; }
.congrats.go { animation: riseIn .5s 1.05s both; }
.endnote { display: inline-block; margin: 0 0 14px; padding: 5px 12px; border-radius: 999px; background: rgba(0,0,0,.3); border: 1px solid var(--line); color: var(--muted); font-size: 14px; }
#winner .panel { text-align: left; }
.ranks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.ranks li { display: flex; align-items: center; gap: 12px; background: rgba(0,0,0,.28); border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px; }
.ranks.go li { animation: riseIn .45s var(--ease) both; animation-delay: calc(1.25s + var(--i, 0) * 90ms); }
.ranks li.first { background: linear-gradient(135deg, rgba(245,200,75,.18), rgba(245,200,75,.05)); border-color: rgba(245,200,75,.6); box-shadow: 0 0 28px -10px rgba(245,200,75,.6); }
.ranks .rk { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 850; background: rgba(255,255,255,.07); border: 1px solid var(--line); flex: none; color: var(--muted); font-variant-numeric: tabular-nums; }
.ranks li.first .rk { background: linear-gradient(135deg, var(--gold-hi), var(--gold-lo)); color: #2a1e00; border-color: transparent; box-shadow: 0 0 12px rgba(245,200,75,.6); }
.ranks .nm { flex: 1; font-weight: 700; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ranks .atm { color: var(--accent); font-weight: 900; margin-left: 4px; }
.ranks .sc { font-size: 24px; font-weight: 850; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ranks li.first .sc { color: var(--gold-hi); text-shadow: 0 0 16px rgba(245,200,75,.5); }
.commitzone { margin: 6px 0 4px; }
.commitzone .stamp { top: -12px; }
#againBtn { margin-top: 16px; }
.miniboards:empty { display: none; }
.miniboards .mb .r { width: 18px; color: var(--dim); font-weight: 800; font-size: 11px; }

/* standings */
#standings .screen-head { margin-bottom: 14px; }
.board { margin-bottom: 14px; }
.board h2 .hint { margin: 0 0 0 auto; }
.brow .avg { min-width: 70px; }
.empty-board { text-align: center; color: var(--muted); padding: 10px 0 4px; font-size: 14px; }
#editBtn { margin-top: 2px; }
#editBtn.unlocked { border-color: rgba(245,200,75,.55); color: var(--gold-hi); }
.edit { border-color: rgba(245,200,75,.45); box-shadow: 0 0 30px -14px rgba(245,200,75,.6); }
.edit h2 { color: var(--gold-hi); }
.edrow { display: flex; align-items: center; gap: 8px; padding: 8px 0; flex-wrap: wrap; }
.edrow + .edrow { border-top: 1px solid var(--line); }
.edrow .n { flex: 1; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.edrow .btn.sm { min-height: 36px; padding: 6px 10px; font-size: 13px; }
.edrow input { height: 40px; width: 70px; text-align: center; font-size: 16px; }
.edrow .rnd { flex-basis: 100%; color: var(--muted); font-size: 13px; }
.edrow .res { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 14px; }
.edrow .res span b { font-variant-numeric: tabular-nums; }
.edrow .res label { display: flex; align-items: center; gap: 6px; }
.edacts { display: flex; gap: 8px; flex-basis: 100%; }
.edacts .btn { flex: 1; }

@media (min-width: 700px) {
  .screen { padding-left: 24px; padding-right: 24px; }
  .wrap { max-width: 520px; }
}
@media (prefers-reduced-motion: reduce) {
  .nope .ball { transform: translate(-30px, 6px); }
  .nope .bonk { opacity: 1; transform: rotate(-14deg); }
  .finger { transform: rotate(-18deg); }
  .nope .rays, .nope h2 span, .finger, .nope .ball, .bonk, .cop { animation: none !important; }
}

/* fix2: setup note link opens Register; suggestion rows show 'Name @' + a small 'registered' tag */
.note .notelink { display: inline; font: inherit; color: var(--gold-hi); background: none; border: 0; padding: 0; margin: 0; min-height: 0; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(245,200,75,.45); text-underline-offset: 3px; -webkit-tap-highlight-color: rgba(245,200,75,.2); }
.note .notelink b { color: inherit; }
.note .notelink:hover, .note .notelink:focus-visible { color: #fff; }
.suggest button .sn { font-weight: 700; color: var(--ink, #eef4f1); }
.suggest button .sat { font-style: normal; font-weight: 900; color: var(--accent); text-shadow: 0 0 10px var(--glow); }
.suggest button span.regtag { flex: none; color: var(--accent); font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; border: 1px solid rgba(61,220,151,.45); background: rgba(61,220,151,.1); }

/* fix3: menu volume slider (0 = off / muted) */
.mi.volrow { cursor: default; }
.mi.volrow:hover, .mi.volrow:active { background: transparent; }
.mi.volrow .ic { border: 0; color: inherit; cursor: pointer; font-size: 16px; padding: 0; }
.mi.volrow .vlbl { flex: none; }
.mi .volside { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; justify-content: flex-end; min-width: 0; }
.mi .volside output { min-width: 26px; text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12px; font-weight: 800; }
#volSlider { -webkit-appearance: none; appearance: none; flex: 1 1 auto; width: 100%; max-width: 160px; min-width: 90px; height: 36px; background: transparent; margin: 0; touch-action: none; cursor: pointer; --pct: 70%; }
#volSlider::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--accent-hi) 0 var(--pct), rgba(255,255,255,.14) var(--pct) 100%); }
#volSlider::-moz-range-track { height: 6px; border-radius: 6px; background: rgba(255,255,255,.14); }
#volSlider::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--accent-hi); }
#volSlider::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 2px 8px rgba(0,0,0,.5), 0 0 12px -2px var(--glow); }
#volSlider::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 2px 8px rgba(0,0,0,.5); }
#volSlider:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.mi.volrow.muted .ic { background: rgba(255,107,139,.14); }
.mi.volrow.muted #volSlider::-webkit-slider-runnable-track { background: rgba(255,255,255,.14); }


/* ======================= Arcade mode (arcade1) ======================= */
#arcadePanel .arcname { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
#arcadePanel .arcname span { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; white-space: nowrap; }
#arcadePanel .arcname input { flex: 1; min-width: 0; min-height: 44px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(0,0,0,.3); color: var(--ink); font-size: 16px; font-weight: 650; }
#arcadePanel .opt + .opt { margin-top: 12px; }
#arcadePanel #arcStart { margin-top: 12px; }
#game.arcgame #entry, #game.arcgame #endBtn { display: none; }
#game.arcgame .card .cell { pointer-events: none; }
.arcdealrow { margin: 12px 0; }
.arcdealrow .hint { text-align: center; }

#arcade { padding-left: 10px; padding-right: 10px; padding-bottom: calc(12px + var(--safe-b)); }
.arcwrap { max-width: 1000px; margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; }
.arcbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.arcbar .rulestag { margin-top: 0; align-self: center; }
.arcbar .sp { flex: 1; }
.arcbar .btn.sm { min-height: 36px; padding: 6px 11px; font-size: 13px; }
.arcbar #arcSpeed[aria-pressed="true"] { color: var(--accent-hi); border-color: rgba(61,220,151,.5); }
.arcpill { font-weight: 800; font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--glass-2); border: 1px solid var(--line-2); }
.arcpill.dim { color: var(--muted); font-weight: 700; }

.arc-table {
  --cw: clamp(54px, min(19vw, 11.5vh), 128px);
  --pw: clamp(48px, min(14.5vw, 9.6vh), 92px);
  --mw: clamp(26px, min(9vw, 6vh), 60px);
  flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 8px;
  padding: 10px 8px 12px; border-radius: 22px; position: relative;
  background: radial-gradient(ellipse at 50% 42%, #1c7a4c 0%, #145c39 58%, #0b3f27 100%);
  border: 1px solid rgba(255,255,255,.08); box-shadow: inset 0 0 60px rgba(0,0,0,.45), 0 20px 40px -20px #000;
  min-height: calc(100dvh - var(--top-h) - var(--safe-t) - var(--safe-b) - 70px);
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: manipulation;
}
.arc-table.n4 { --mw: clamp(20px, min(6.6vw, 5.2vh), 50px); }
.arc-table.n5, .arc-table.n6 { --mw: clamp(17px, min(5.4vw, 4.4vh), 42px); }
@media (orientation: landscape) and (min-width: 700px) {
  .arc-table { --cw: clamp(54px, min(12vw, 12.5vh), 116px); }
  .arc-table.n5, .arc-table.n6 { --mw: clamp(17px, min(3.6vw, 4.6vh), 44px); }
}

.opps { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; }
.seat { padding: 5px 6px 6px; border-radius: 14px; border: 1px solid transparent; transition: border-color .3s, background .3s; }
.seat.turn { border-color: rgba(245,200,75,.55); background: rgba(0,0,0,.14); }
.snm { display: flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 750; margin: 0 0 4px; white-space: nowrap; color: #e9f5ef; }
.snm .n { overflow: hidden; text-overflow: ellipsis; max-width: 9em; }
.seat.turn .snm .n { color: var(--gold-hi); }
.snm .dchip { width: 17px; height: 17px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 10px; font-weight: 900; color: var(--gold-ink); background: radial-gradient(circle at 35% 30%, var(--gold-hi), var(--gold) 60%, var(--gold-lo)); }
.snm .otag { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 1px 6px; border-radius: 999px; background: rgba(245,200,75,.18); color: var(--gold-hi); }
.snm .hs { margin-left: auto; font-variant-numeric: tabular-nums; padding: 0 6px; border-radius: 8px; background: rgba(0,0,0,.28); color: #cfe9dc; }
.snm .hs.final { background: rgba(245,200,75,.2); color: var(--gold-hi); }
.snm .tt { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 11px; }
.snm .tt::before { content: "Σ "; opacity: .7; }
.grid6 { display: grid; grid-template-columns: repeat(3, auto); gap: 3px; justify-content: center; }
.grid6.mini { --w: var(--mw); gap: 2px; }
.grid6.big { --w: var(--cw); gap: 8px; }
.seat.me { align-self: center; padding: 6px 10px 8px; position: relative; }
.seat.me .snm { font-size: 14px; justify-content: center; }
.seat.me .yt { position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 2px 10px; border-radius: 999px; color: var(--gold-ink); background: var(--gold); opacity: 0; transition: opacity .3s; pointer-events: none; }
.arc-table.myturn .seat.me .yt, .arc-table.myflip .seat.me .yt { opacity: 1; }
.arc-table.myflip .seat.me .yt::after { content: ": flip 2"; }

/* cards: CSS only */
.pc { --w: var(--cw); width: var(--w); height: calc(var(--w) * 1.4); border-radius: calc(var(--w) * .11); position: relative; display: block; flex: none; padding: 0; margin: 0; font: inherit; color: inherit; border: 0; background: none; }
.grid6.mini .pc { --w: var(--mw); }
.pile .pc, .held .pc { --w: var(--pw); }
.pc.face { background: linear-gradient(160deg, #fbf8f0, #ece5d3); color: #1b1b1b; box-shadow: 0 6px 14px -6px #000, 0 0 0 1px rgba(0,0,0,.18); }
.pc.face.red { color: #c2332b; }
.pc .cr { position: absolute; top: 5%; left: 8%; display: flex; flex-direction: column; align-items: center; font-weight: 800; font-size: calc(var(--w) * .25); line-height: .95; letter-spacing: -.03em; }
.pc .cr i { font-style: normal; font-size: .82em; }
.pc .cr.br { top: auto; left: auto; bottom: 5%; right: 8%; transform: rotate(180deg); }
.pc .pip { position: absolute; inset: 0; display: grid; place-items: center; font-size: calc(var(--w) * .46); }
.pc.joker .pip { color: #b07d10; font-size: calc(var(--w) * .5); }
.pc.joker.red .pip { color: #c2332b; }
.pc.joker .cr { font-size: calc(var(--w) * .2); }
.grid6.mini .pc .cr.br, .grid6.mini .pc .pip { display: none; }
.grid6.mini .pc .cr { inset: 0; top: 0; left: 0; justify-content: center; font-size: calc(var(--w) * .4); }
.grid6.mini .pc.joker .cr { font-size: calc(var(--w) * .34); }
.pc.back { background: repeating-linear-gradient(45deg, rgba(255,255,255,.08) 0 2px, transparent 2px 7px), linear-gradient(135deg, #10593a, #073020);
  border: max(2px, calc(var(--w) * .055)) solid #f3efe4; box-shadow: inset 0 0 0 max(1px, calc(var(--w) * .02)) var(--gold), 0 6px 14px -6px #000; }
.pc.back::after { content: "♣"; position: absolute; inset: 0; display: grid; place-items: center; font-size: calc(var(--w) * .42); color: var(--gold); }
.pc.none { border: 2px dashed rgba(255,255,255,.18); }
button.pc { cursor: default; -webkit-tap-highlight-color: transparent; }
.pc.tappable { cursor: pointer; outline: 2px solid rgba(127,245,192,.75); outline-offset: 2px; }
.pc.pair { box-shadow: 0 0 0 2px var(--accent), 0 6px 14px -6px #000; }
.pc.bonus, .pc.quad { box-shadow: 0 0 0 2px var(--gold), 0 6px 14px -6px #000; }

.mid { display: flex; justify-content: center; align-items: flex-end; gap: clamp(12px, 4vw, 36px); }
.pile, .held { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0; background: none; border: 0; color: inherit; font: inherit; -webkit-tap-highlight-color: transparent; }
.pile.tappable .pc { outline: 2px solid rgba(127,245,192,.75); outline-offset: 3px; cursor: pointer; }
.pile .cnt, .held .cnt { font-size: 11px; font-weight: 700; color: rgba(233,245,239,.7); letter-spacing: .04em; min-height: 1.2em; }
.held .pc.none { border-color: transparent; }
.held.on .pc { transform: translateY(-6px); box-shadow: 0 14px 24px -10px #000, 0 0 0 1px rgba(0,0,0,.2); }

.arc-table .status { text-align: center; min-height: 2.6em; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.arc-table .status .ins { font-weight: 800; font-size: 14.5px; color: var(--gold-hi); }
.arc-table .status .ins:empty { display: none; }
.arc-table .status .msg { font-size: 13px; color: #d7ebe1; }

.mid.rv { flex-direction: column; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 16px; background: rgba(0,0,0,.32); border: 1px solid rgba(245,200,75,.3); align-self: center; max-width: 560px; width: 100%; }
.rv-h { font-weight: 800; font-size: 15px; color: var(--gold-hi); }
.rv-o { font-weight: 650; font-size: 12px; color: var(--muted); margin-left: 6px; }
.rv-l { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.rv-l li { display: flex; align-items: baseline; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--glass-2); border: 1px solid var(--line); font-size: 13px; animation: slideUp .45s var(--ease) both; animation-delay: calc(500ms + var(--i) * 90ms); }
.rv-l li.low { border-color: rgba(245,200,75,.55); }
.rv-l .v { font-weight: 850; font-variant-numeric: tabular-nums; }
.rv-l .t { color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.rv-l .t::before { content: "Σ "; }
.mid.rv .btn { min-height: 44px; padding: 8px 20px; }
.mid.rv.rv-in { animation: slideUp .5s var(--ease) both; }

/* calm motion: deal, flip, land, toss (no flashing) */
@keyframes arcDeal { from { opacity: 0; transform: translate(0, -46px) scale(.8) rotate(-4deg); } to { opacity: 1; transform: none; } }
@keyframes arcFlip { 0% { transform: perspective(500px) rotateY(90deg); } 100% { transform: perspective(500px) rotateY(0); } }
@keyframes arcLand { from { opacity: .3; transform: translateY(-16px) scale(1.06); } to { opacity: 1; transform: none; } }
@keyframes arcToss { from { opacity: .2; transform: translate(-14px, -8px) rotate(-8deg); } to { opacity: 1; transform: none; } }
@keyframes arcDraw { from { opacity: 0; transform: translateY(8px) scale(.88); } to { opacity: 1; transform: translateY(-6px); } }
.pc.deal { animation: arcDeal .42s var(--ease) both; animation-delay: var(--d, 0ms); }
.pc.flip { animation: arcFlip .38s var(--ease) both; animation-delay: var(--d, 0ms); }
.pc.land { animation: arcLand .4s var(--ease) both; }
.pc.toss { animation: arcToss .34s var(--ease) both; }
.held .pc.draw { animation: arcDraw .34s var(--ease) both; }
@media (prefers-reduced-motion: reduce) { .pc.deal, .pc.flip, .pc.land, .pc.toss, .held .pc.draw, .rv-l li, .mid.rv.rv-in { animation: none !important; } }
/* phones: everything on one screen, no scrolling during play */
@media (max-width: 520px) {
  #arcade { padding-left: 6px; padding-right: 6px; padding-top: calc(var(--top-h) + 4px + var(--safe-t)); }
  .arcbar { flex-wrap: nowrap; gap: 6px; margin-bottom: 4px; }
  .arcbar #arcSkill, .arcbar #arcSpeed .lbl { display: none; }
  .arcbar .btn.sm { min-height: 34px; padding: 4px 10px; }
  .arc-table { padding: 6px 4px 10px; gap: 4px; border-radius: 18px; min-height: calc(100dvh - var(--top-h) - var(--safe-t) - var(--safe-b) - 56px);
    --cw: clamp(48px, min(19vw, 10.6vh), 100px); --pw: clamp(42px, min(13vw, 8vh), 80px); }
  .arc-table.n5, .arc-table.n6 { --cw: clamp(46px, min(17vw, 8.2vh), 90px); }
  .opps { gap: 2px 6px; }
  .seat { padding: 3px 4px 5px; }
  .snm { font-size: 11.5px; margin-bottom: 3px; }
  .seat.me .snm { font-size: 13px; }
  .grid6.big { gap: 6px; }
  .arc-table .status { min-height: 2.2em; }
  .arc-table .status .ins { font-size: 13px; }
  .arc-table .status .msg { font-size: 12px; }
  .pile .cnt, .held .cnt { font-size: 10.5px; }
}
@media (orientation: landscape) and (min-width: 700px) {
  .arc-table { --cw: clamp(54px, min(11vw, 11.4vh), 112px); --pw: clamp(48px, min(9vw, 9.4vh), 90px); }
}
#game.arcgame .card .cell.sel { outline: none; background: none; box-shadow: none; }
.arc-table.over .status .msg { display: none; }
@media (max-width: 520px) {
  .mid.rv { padding: 6px 8px; gap: 5px; }
  .rv-h { font-size: 14px; }
  .rv-l { gap: 4px; }
  .rv-l li { padding: 2px 8px; font-size: 12px; }
  .mid.rv .btn { min-height: 38px; padding: 6px 16px; font-size: 14px; }
}
