/* Vegas Hunt — "Greetings From" linen postcard theme */
:root {
  --bg: #efe4c8;
  --paper: #fbf5e6;
  --paper2: #f4ead2;
  --ink: #26324d;
  --navy: #1f3462;
  --muted: #6b6457;
  --dim: #9a8f78;
  --red: #c23a2c;
  --pink: #c23a2c;
  --cyan: #2f8f9d;
  --teal: #2f8f9d;
  --gold: #b98d1c;
  --mustard: #e0a93a;
  --orange: #d9703a;
  --lime: #6b7d3a;
  --purple: #6a54a8;
  --card: rgba(255, 252, 240, .7);
  --card2: rgba(255, 252, 240, .9);
  --line: #dccca4;
  --radius: 6px;
  --nav-h: 74px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --display: 'Shrikhand', 'Georgia', serif;
  --script: 'Pacifico', cursive;
  --type: 'Special Elite', 'Courier New', monospace;
  --body: 'Libre Franklin', system-ui, -apple-system, sans-serif;
  --shadow: 1px 2px 0 rgba(255, 255, 255, .5) inset, 2px 5px 14px rgba(80, 55, 20, .2);
  --airmail: repeating-linear-gradient(-45deg, #c23a2c 0 10px, #fbf5e6 10px 16px, #1f3462 16px 26px, #fbf5e6 26px 32px);
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100dvh; color: var(--ink); background: var(--bg) url(img/linen.jpg) 0 0 / 600px;
  font: 16px/1.45 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: var(--red); text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

/* ── Backdrop: linen with a sun-faded edge ─────────────── */
#bg { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(150, 105, 40, .22)), url(img/linen.jpg) 0 0 / 600px, var(--bg); }

/* ── Layout ───────────────────────────────────────────── */
.shell { max-width: 760px; margin: 0 auto; padding: 0 16px calc(var(--nav-h) + var(--safe-b) + 28px); }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 16px 10px; margin: 0 -16px 10px;
  background: rgba(251, 245, 230, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 6px solid; border-image: var(--airmail) 6; }
.topbar .logo { display: inline-flex; flex-direction: column; align-items: flex-start; font: 24px/1 var(--script); color: var(--red); white-space: nowrap; }
.topbar .logo b { font: 400 22px/1 var(--display); color: var(--navy); margin-left: 4px; text-shadow: 1.5px 1.5px 0 var(--mustard); }
/* "Justin's" signed above the logo in navy ink, tilted like it was written on afterwards. */
.logo .own, .brand .own { position: relative; z-index: 1; font: 15px/1 var(--script); color: var(--navy); transform: translate(1.1em, .4em) rotate(-6deg); transform-origin: left bottom; margin: 0 0 -1px 10px; }
.brand { display: flex; flex-direction: column; align-items: center; margin: 16px 0 6px; font: 38px/1 var(--script); color: var(--red); white-space: nowrap; }
.brand .own { font-size: 24px; margin: 0 0 -2px -110px; }
.brand b { font: 400 34px/1 var(--display); color: var(--navy); margin-left: 6px; text-shadow: 2px 2px 0 var(--mustard); }
.topbar .spacer { flex: 1; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px;
  background: var(--paper); border: 1.5px dashed var(--navy); font: 15px var(--display); color: var(--navy); white-space: nowrap; }
.pill .rank { color: var(--red); }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; flex: none;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .35), transparent 60%), var(--c, var(--purple));
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--c, var(--purple)), 1px 2px 4px rgba(60, 40, 10, .3); }
.avatar.sm { width: 28px; height: 28px; font-size: 15px; }
.avatar.lg { width: 64px; height: 64px; font-size: 34px; }
.avatar.xl { width: 96px; height: 96px; font-size: 52px; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; letter-spacing: .2px; color: var(--navy); }
h2 { font-size: 23px; margin: 28px 0 12px; display: flex; align-items: center; gap: 10px; }
h2 .see { margin-left: auto; font: 14px var(--type); color: var(--red); }
h3 { font-size: 18px; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 13px; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 12px; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.boot { min-height: 100dvh; display: grid; place-items: center; text-align: center; padding: 16px; }
.boot .greet { width: min(460px, 92vw); }
.bulbs { display: none; }

/* ── Postcard art ─────────────────────────────────────── */
.postcard { width: 100%; height: auto; border-radius: 4px; box-shadow: 2px 6px 16px rgba(70, 45, 15, .3), 0 0 0 1px rgba(120, 90, 40, .15); }
.shell > .postcard { margin: 6px 0 4px; transform: rotate(-.6deg); }
.greet { max-width: 520px; margin: 8px auto 0; }
.greet .postcard { transform: rotate(-1deg); }
.stampimg { display: block; height: auto; filter: drop-shadow(2px 3px 3px rgba(60, 40, 10, .35)); }
.stampimg.mini { height: 58px; width: auto; transform: rotate(-4deg); }
.mystamp { display: flex; justify-content: center; margin: 22px 0 8px; }
.mystamp .stampimg { height: 170px; width: auto; transform: rotate(-3deg); }
.wish { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 8px; margin: 30px 0 4px; }
.wish .stampimg { height: 54px; width: auto; }
.wish .stampimg:nth-child(odd) { transform: rotate(-5deg); }
.wish .stampimg:nth-child(even) { transform: rotate(4deg) translateY(4px); }
.wish-label { text-align: center; font: 24px var(--script); color: var(--red); }

/* ── Airmail countdown ────────────────────────────────── */
.airmail { margin: 16px 0 6px; padding: 12px 12px 14px; text-align: center; background: var(--paper) padding-box;
  border: 8px solid transparent; border-image: var(--airmail) 8; box-shadow: 2px 5px 14px rgba(80, 55, 20, .2); }
.kicker { font: 21px/1.2 var(--script); color: var(--red); }
/* The theme song button: a postage stamp stuck on the corner of the airmail card (perforations every 8px, so sizes are multiples of 8). */
.airmail { position: relative; }
.songstamp { position: absolute; top: -14px; right: -10px; z-index: 2; width: 48px; height: 56px; padding: 4px; transform: rotate(6deg);
  background: radial-gradient(circle at 4px 4px, transparent 2.5px, #fffdf7 3px) -4px -4px / 8px 8px; filter: drop-shadow(1px 3px 3px rgba(60, 40, 10, .35)); transition: transform .15s; }
.songstamp:active { transform: rotate(6deg) scale(.94); }
.songstamp .in { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; background: var(--navy); color: #fffdf7; border: 1.5px solid var(--mustard); }
.songstamp .ic { font-size: 15px; line-height: 1; color: var(--mustard); }
.songstamp .t { font: 8px/1.05 var(--type); letter-spacing: .5px; text-transform: uppercase; margin-top: 3px; }
.songstamp[aria-pressed="true"] .in { background: var(--red); }
@media (min-width: 600px) {
  .songstamp { top: 50%; right: 22px; width: 72px; height: 80px; padding: 6px; transform: translateY(-50%) rotate(5deg); }
  .songstamp:active { transform: translateY(-50%) rotate(5deg) scale(.94); }
  .songstamp .ic { font-size: 22px; }
  .songstamp .t { font-size: 10px; }
}
.count { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.count .u { min-width: 62px; padding: 8px 6px 6px; border-radius: 3px; background: rgba(255, 250, 238, .8); border: 1.5px dashed var(--red); }
.count .n { font: 28px/1 var(--display); color: var(--navy); font-variant-numeric: tabular-nums; }
.count .l { font: 11px var(--type); letter-spacing: 1px; color: var(--red); text-transform: uppercase; margin-top: 4px; }
.count-label { margin-top: 10px; font: 13px var(--type); color: var(--muted); }
.count-label b { color: var(--navy); font-weight: 400; }

/* ── Cards & buttons ──────────────────────────────────── */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; position: relative; box-shadow: var(--shadow); }
.card.glow { border-top: 6px solid var(--c, var(--red)); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px;
  border-radius: 4px; font: 17px var(--display); letter-spacing: .3px; color: var(--navy); text-decoration: none;
  background: var(--mustard); box-shadow: inset 0 0 0 3px var(--mustard), inset 0 0 0 4.5px rgba(31, 52, 98, .55), 0 3px 0 #8a6414, 2px 6px 12px rgba(80, 55, 20, .25);
  transition: transform .08s, box-shadow .08s; }
.btn:active { transform: translateY(2px); box-shadow: inset 0 0 0 3px var(--mustard), inset 0 0 0 4.5px rgba(31, 52, 98, .55), 0 1px 0 #8a6414; }
.btn.pink { color: var(--paper); background: var(--red); box-shadow: inset 0 0 0 3px var(--red), inset 0 0 0 4.5px rgba(251, 245, 230, .65), 0 3px 0 #7d2219, 2px 6px 12px rgba(80, 55, 20, .25); }
.btn.pink:active { box-shadow: inset 0 0 0 3px var(--red), inset 0 0 0 4.5px rgba(251, 245, 230, .65), 0 1px 0 #7d2219; }
.btn.cyan { color: var(--paper); background: var(--teal); box-shadow: inset 0 0 0 3px var(--teal), inset 0 0 0 4.5px rgba(251, 245, 230, .65), 0 3px 0 #1b5a63, 2px 6px 12px rgba(80, 55, 20, .25); }
.btn.cyan:active { box-shadow: inset 0 0 0 3px var(--teal), inset 0 0 0 4.5px rgba(251, 245, 230, .65), 0 1px 0 #1b5a63; }
.btn.ghost { color: var(--navy); background: transparent; box-shadow: none; border: 1.5px dashed var(--navy); font: 16px var(--type); }
.btn.block { width: 100%; }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: 15px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.link { color: var(--red); font: 15px var(--type); }

input[type=text], input[type=password], input[type=number], input[type=datetime-local], input:not([type]), textarea, select {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 4px; border: 1.5px solid #b9a77c; outline: none;
  background: #fffdf6; color: var(--ink); font-size: 17px; transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 84px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(31, 52, 98, .15); }
::placeholder { color: #b5a98c; }
label.f { display: block; font: 13px var(--type); letter-spacing: 1px; text-transform: uppercase; color: var(--red); margin: 16px 0 6px; }
.pin { letter-spacing: 14px; text-align: center; font: 28px var(--display) !important; color: var(--navy); }
.err { color: var(--red); font-weight: 700; margin-top: 10px; min-height: 1px; }

.tabs { display: flex; gap: 6px; padding: 5px; border-radius: 6px; background: var(--paper2); border: 1px solid var(--line); }
.tabs button { flex: 1; min-height: 42px; border-radius: 4px; font: 15px var(--type); color: var(--muted); }
.tabs button.on { color: var(--paper); background: var(--navy); }

.emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 8px; }
.emoji-grid button { aspect-ratio: 1; border-radius: 4px; font-size: 24px; background: #fffdf6; border: 1px solid var(--line); }
.emoji-grid button.on { border: 2px solid var(--red); background: #fbe6dc; }

.teampick { display: grid; gap: 10px; }
.teampick label { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 6px; background: var(--paper); border: 1px solid var(--line); cursor: pointer; }
.teampick input { position: absolute; opacity: 0; pointer-events: none; }
.teampick label:has(input:checked) { border: 2px solid var(--navy); background: #fff8e4; }

/* ── Point values as postage stamps ───────────────────── */
.chip { --c: var(--red); position: relative; flex: none; width: 48px; height: 56px; padding: 4px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(var(--c), var(--c)) content-box, var(--paper);
  -webkit-mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle, transparent 2.2px, #000 2.6px) 50% 50% / 7.6px 7.6px;
  mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle, transparent 2.2px, #000 2.6px) 50% 50% / 7.6px 7.6px;
  font: 18px/1 var(--display); color: var(--paper); filter: drop-shadow(1px 2px 1.5px rgba(60, 40, 10, .35)); }
.chip::before { content: ''; position: absolute; inset: 7px; border: 1px solid rgba(251, 245, 230, .6); }
.chip::after { content: '¢'; font: 11px var(--type); margin: -8px 0 0 1px; }
.chip.v10 { --c: #41639e; } .chip.v20 { --c: #c94459; } .chip.v25 { --c: #2f8f9d; } .chip.v30 { --c: #6a54a8; }
.chip.v50 { --c: #b98d1c; }
.chip.big { width: 66px; height: 78px; font-size: 26px; padding: 5px; }
.chip.big::before { inset: 9px; }
.chip.sm { width: 34px; height: 40px; font-size: 13px; padding: 3px; }
.chip.sm::before { inset: 5px; }
.chip.sm::after { font-size: 8px; margin-top: -5px; }

/* ── Rubber-stamp badges ──────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 3px; font: 12px var(--type); letter-spacing: 1px; text-transform: uppercase;
  color: var(--muted); border: 1.5px solid currentColor; background: transparent; }
.badge.gold { color: #9a730f; }
.badge.pink { color: var(--red); }
.badge.lime { color: var(--lime); }
.badge.cyan { color: var(--teal); }

/* ── Banners ──────────────────────────────────────────── */
.banner { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 4px; margin: 12px 0; color: var(--ink); background: var(--paper); box-shadow: var(--shadow); border-left: 6px solid var(--c, var(--navy)); }
.banner .ic { font-size: 28px; }
.banner.draft { --c: var(--teal); }
.banner.final { --c: var(--gold); }
.banner.flash { border: 6px solid transparent; border-image: var(--airmail) 6; background: var(--paper) padding-box; animation: pulse 1.6s ease-in-out infinite; cursor: pointer; }
.banner.flash b { font: 400 17px var(--display); color: var(--red); }
@keyframes pulse { 50% { transform: scale(1.015); } }

/* ── Home: team card ──────────────────────────────────── */
.myteam { --c: var(--red); overflow: hidden; }
.myteam .score { font: clamp(48px, 14vw, 68px)/1 var(--display); color: var(--navy); text-shadow: 2px 2px 0 var(--mustard), 4px 4px 0 var(--red); font-variant-numeric: tabular-nums; }
.myteam .ranktag { font: 16px var(--type); color: var(--ink); }
.myteam .ranktag span { color: var(--red) !important; font-family: var(--display); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.stat { padding: 10px 6px; border-radius: 3px; border: 1.5px dashed #c9b88e; text-align: center; }
.stat .v { font: 21px var(--display); color: var(--navy); }
.stat .k { font: 11px var(--type); letter-spacing: 1px; text-transform: uppercase; color: var(--red); }
.cta { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 14px; border-radius: 4px; background: #fdf0e4; border: 1.5px dashed var(--red); color: var(--ink); }
.cta .n { font: 30px var(--display); color: var(--red); }
.cta .chev { color: var(--red); font-size: 24px; }

/* ── Stops ────────────────────────────────────────────── */
.stops { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 4px 16px 10px; scroll-snap-type: x proximity; }
.stops::-webkit-scrollbar { display: none; }
.stopchip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; scroll-snap-align: start;
  background: var(--paper); border: 1.5px solid var(--line); font-weight: 700; font-size: 14px; color: var(--ink); white-space: nowrap; }
.stopchip .ct { font: 12px var(--type); color: var(--muted); }
.stopchip.on { background: var(--c); border-color: var(--c); color: var(--paper); }
.stopchip.on .ct { color: rgba(251, 245, 230, .8); }
.stopgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.stoptile { --c: var(--red); position: relative; padding: 14px 14px 16px; border-radius: 4px; min-height: 96px; color: var(--ink); overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); border-top: 6px solid var(--c); box-shadow: var(--shadow); }
.stoptile .ic { font-size: 28px; }
.stoptile .nm { font: 16px var(--display); margin-top: 6px; line-height: 1.15; color: var(--navy); }
.stoptile .pr { font: 12px var(--type); color: var(--muted); margin-top: 4px; }
.stoptile .bar { position: absolute; left: 0; bottom: 0; height: 5px; background: var(--c); }

/* ── Challenge cards ──────────────────────────────────── */
.clist { display: grid; gap: 10px; }
.ccard { --c: var(--red); position: relative; display: flex; gap: 14px; align-items: center; padding: 14px 14px 14px 18px; border-radius: 4px; color: var(--ink); overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ccard::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--c); }
.ccard .t { font: 17px/1.2 var(--display); color: var(--navy); }
.ccard .d { font-size: 14px; color: var(--muted); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ccard .meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.ccard .box { flex: none; position: relative; width: 30px; height: 30px; border: 2.5px solid var(--navy); border-radius: 4px; background: #fffdf6; box-shadow: inset 1px 1px 0 rgba(31, 52, 98, .12); }
.ccard.done .box { width: 50px; height: 50px; border: 3px solid #fffdf6; border-radius: 0; box-shadow: 1px 2px 5px rgba(60, 40, 10, .35); transform: rotate(-3deg); }
.ccard.done .box img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ccard.done .box::after { content: '✓'; position: absolute; right: -9px; bottom: -9px; width: 24px; height: 24px; border-radius: 50%; background: var(--red); color: #fff;
  font: 700 15px/24px var(--body); text-align: center; box-shadow: 0 1px 3px rgba(60, 40, 10, .4); }
.ccard.done .t { text-decoration: line-through 2px rgba(194, 58, 44, .75); }
.ccard .crn { font-size: 14px; vertical-align: 2px; }
.ccard .d { color: #5a5246; }

/* ── Photo list ───────────────────────────────────────── */
.listhead { text-align: center; margin: 22px 0 16px; }
.listhead h1 { font: clamp(32px, 9vw, 42px)/1.05 var(--display); color: var(--navy); margin: 4px 0 10px; text-shadow: 2px 2px 0 var(--mustard); }
.listhead p { margin: 0 auto; max-width: 30em; font-size: 15px; }
.listhead .prog { height: 12px; margin: 16px 0 6px; background: #fffdf6; border: 1.5px solid var(--line); border-radius: 99px; overflow: hidden; }
.listhead .prog i { display: block; height: 100%; background: var(--red); }
.listhead .progtx { font: 13px var(--type); color: var(--muted); }
h3.grp { --c: var(--red); display: flex; align-items: baseline; gap: 8px; margin: 24px 0 10px; padding-bottom: 6px; border-bottom: 2.5px dashed var(--c); font: 20px var(--display); color: var(--navy); }
h3.grp .ct { margin-left: auto; font: 13px var(--type); color: var(--muted); white-space: nowrap; }
.lede { margin: -4px 0 12px; font-size: 15px; color: #5a5246; }
.listbtn { margin-top: 12px; }
.ccard.done { background: #f1f0dc; }
.ccard.off { opacity: .55; }
.stamp { position: absolute; right: 10px; top: 8px; font: 13px var(--type); letter-spacing: 1px; color: var(--lime); border: 2px solid var(--lime); outline: 1px solid var(--lime); outline-offset: 2px;
  padding: 0 6px; border-radius: 3px; transform: rotate(9deg); text-transform: uppercase; opacity: .85; }

/* ── Challenge detail ─────────────────────────────────── */
.hero { --c: var(--red); position: relative; margin: 6px 0 14px; padding: 26px 18px 22px; border-radius: 4px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--airmail); }
.hero .where { font: 14px var(--type); letter-spacing: 1px; color: var(--c); text-transform: uppercase; }
.hero h1 { font-size: clamp(27px, 7.5vw, 40px); line-height: 1.08; margin: 8px 70px 10px 0; color: var(--navy); }
.hero p { margin: 0; color: var(--ink); font-size: 17px; }
.hero .chip { position: absolute; right: 16px; top: 22px; }
.hero .meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }

.entry { overflow: hidden; padding: 0; }
.entry img { width: 100%; max-height: 70vh; object-fit: cover; }
.entry .bar { padding: 12px 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ── Photo grid: drugstore prints ─────────────────────── */
.pgrid { columns: 2 160px; column-gap: 12px; }
.ptile { --c: var(--red); position: relative; display: block; margin: 0 0 12px; break-inside: avoid; padding: 6px 6px 0; background: #fffdf6; color: var(--ink);
  box-shadow: 1px 3px 8px rgba(60, 40, 10, .28); border-radius: 2px; }
.ptile img { width: 100%; height: auto; min-height: 80px; object-fit: cover; background: #ddd2b8; }
.ptile .ov { padding: 6px 2px 8px; }
.ptile .ov .c { font: 13px/1.2 var(--display); color: var(--navy); }
.ptile .ov .s { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-top: 3px; }
.ptile .tm { position: absolute; left: 12px; top: 12px; width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px #fffdf6; }
.ptile .crownmark { position: absolute; left: 10px; top: 8px; font-size: 22px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); }
.ptile .x2 { position: absolute; right: 12px; top: 12px; }
.stars-mini { color: #c98f12; letter-spacing: 1px; }

/* ── Photo page ───────────────────────────────────────── */
.photo-hero { position: relative; margin: 6px 0 0; padding: 8px; background: #fffdf6; box-shadow: 2px 5px 14px rgba(60, 40, 10, .3); }
.photo-hero img { width: 100%; max-height: 74vh; object-fit: contain; margin: 0 auto; background: #2a2620; }
.photo-hero .crownbig { position: absolute; left: 18px; top: 12px; font-size: 40px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .5)); animation: bob 2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-5px) rotate(-6deg); } }
.photo-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(251, 245, 230, .85); font-size: 22px; display: grid; place-items: center; color: var(--navy); box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.photo-nav.prev { left: 14px; } .photo-nav.next { right: 14px; }
.scorebar { display: flex; align-items: center; gap: 14px; margin: 14px 0; }
.bigstars { font: 28px var(--display); color: #c98f12; }

.rate { display: flex; justify-content: center; gap: 6px; margin: 6px 0; }
.rate button { font-size: 46px; line-height: 1; color: rgba(31, 52, 98, .16); transition: transform .12s, color .12s; padding: 2px; }
.rate button.on { color: var(--mustard); text-shadow: 1.5px 1.5px 0 var(--red); }
.rate button:active { transform: scale(1.3); }
@media (hover: hover) { .rate:hover button { color: var(--mustard); } .rate button:hover ~ button { color: rgba(31, 52, 98, .16); text-shadow: none; } }
.rate-label { text-align: center; font: 22px var(--script); color: var(--red); min-height: 30px; }

.comments { display: grid; gap: 10px; }
.cmt { display: flex; gap: 10px; align-items: flex-start; }
.cmt .bubble { flex: 1; padding: 10px 12px; border-radius: 3px; background: #fffdf6; border: 1px solid var(--line);
  background-image: repeating-linear-gradient(transparent 0 23px, rgba(65, 99, 158, .14) 23px 24px); }
.cmt .cwho { font-weight: 700; font-size: 14px; color: var(--navy); }
.cmt .when { font: 12px var(--type); color: var(--dim); margin-left: 6px; }
.cmt .x { color: var(--dim); font-size: 13px; margin-left: 8px; }

/* ── Judge ────────────────────────────────────────────── */
.judge-card { position: relative; padding: 8px 8px 0; background: #fffdf6; box-shadow: 2px 8px 22px rgba(60, 40, 10, .32); transition: transform .35s cubic-bezier(.5, -0.3, .7, 1.2), opacity .35s; }
.judge-card > img { width: 100%; max-height: 56vh; object-fit: contain; background: #2a2620; }
.judge-card .ov { padding: 12px 8px 14px; }
.judge-card.fly { transform: translateX(120%) rotate(18deg); opacity: 0; }
.judge-card.skip { transform: translateX(-120%) rotate(-14deg); opacity: 0; }
.judge-card.in { animation: cardin .35s ease-out; }
@keyframes cardin { from { transform: scale(.92) translateY(20px) rotate(-2deg); opacity: 0; } }
.progress { height: 10px; border-radius: 2px; background: rgba(31, 52, 98, .1); overflow: hidden; margin: 8px 0 14px; }
.progress i { display: block; height: 100%; background: var(--airmail); transition: width .4s; }

/* ── Leaderboard ──────────────────────────────────────── */
.podium { position: relative; display: grid; grid-template-columns: 1fr 1.1fr 1fr; align-items: end; gap: 8px; margin: 20px 0 8px; }
.pod { text-align: center; }
.pod .avatar { margin: 0 auto 8px; }
.pod .nm { font: 14px/1.15 var(--display); color: var(--navy); margin-bottom: 4px; word-break: break-word; }
.pod .pts { font: 20px var(--display); color: var(--red); margin-bottom: 8px; }
.pod .block { border-radius: 3px 3px 0 0; display: grid; place-items: center; font: 42px var(--display); color: rgba(251, 245, 230, .92); text-shadow: 2px 2px 0 rgba(0, 0, 0, .2);
  animation: rise .9s cubic-bezier(.2, 1.4, .4, 1) both; transform-origin: bottom; box-shadow: inset 0 0 0 4px rgba(251, 245, 230, .5), 2px 4px 10px rgba(60, 40, 10, .25); }
.pod.p1 .block { height: 150px; background: linear-gradient(#e9c25a, #b98d1c); animation-delay: .25s; }
.pod.p2 .block { height: 112px; background: linear-gradient(#c3c9cf, #858d96); animation-delay: .1s; }
.pod.p3 .block { height: 86px; background: linear-gradient(#e0a46e, #a8622e); animation-delay: .4s; }
.pod.p1 .avatar { width: 76px; height: 76px; font-size: 40px; }
.pod .crown1 { font-size: 30px; margin-bottom: -6px; animation: bob 2s ease-in-out infinite; }
@keyframes rise { from { transform: scaleY(0); } }
.ranks { display: grid; gap: 8px; }
.rankrow { --c: var(--red); display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 4px; background: var(--paper); border: 1px solid var(--line); border-left: 6px solid var(--c); color: var(--ink); box-shadow: var(--shadow); }
.rankrow.me { background: #fff8e4; outline: 2px dashed var(--c); outline-offset: -5px; }
.rankrow .r { width: 28px; font: 22px var(--display); color: var(--dim); text-align: center; }
.rankrow .nm { font: 17px/1.15 var(--display); color: var(--navy); }
.rankrow .sub { font-size: 13px; color: var(--muted); }
.rankrow .pts { font: 24px var(--display); color: var(--red); font-variant-numeric: tabular-nums; }
.crownlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.crowncard { position: relative; padding: 6px 6px 0; background: #fffdf6; color: var(--ink); box-shadow: 1px 3px 8px rgba(60, 40, 10, .28); }
.crowncard img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.crowncard .empty { aspect-ratio: 1; display: grid; place-items: center; font-size: 40px; opacity: .35; background: var(--paper2); }
.crowncard .ov { padding: 6px 2px 8px; }
.crowncard .c { font: 13px/1.15 var(--display); color: var(--navy); }
.crowncard .w { font-size: 12px; color: var(--muted); }

/* ── Ticker: lines on the back of a postcard ──────────── */
.ticker { display: grid; padding: 4px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow); }
.tick { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid rgba(65, 99, 158, .22); color: var(--ink); }
.tick:last-child { border-bottom: 0; }
.tick .ic { width: 26px; text-align: center; font-size: 18px; flex: none; }
.tick .tx { flex: 1; font-size: 15px; }
.tick .tm { font: 12px var(--type); color: var(--dim); white-space: nowrap; }
.tick.big .tx { font-weight: 700; color: var(--red); }

/* ── Bottom nav ───────────────────────────────────────── */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; max-width: 760px; margin: 0 auto;
  background: rgba(251, 245, 230, .97); border-top: 6px solid; border-image: var(--airmail) 6; box-shadow: 0 -4px 16px rgba(80, 55, 20, .15); }
.nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--dim); font: 12px var(--type); letter-spacing: .5px; position: relative; padding: 6px 0; }
.nav a svg { width: 26px; height: 26px; }
.nav a.on { color: var(--navy); }
.nav a.on svg { color: var(--red); }
.nav .dot { position: absolute; top: 0; left: calc(50% + 6px); min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--red); color: var(--paper); font: 11px/19px var(--body); font-weight: 700; }
.nav .snap { justify-self: center; width: 70px; height: 70px; margin-top: -34px; border-radius: 50%; display: grid; place-items: center; color: var(--paper);
  background: var(--red); box-shadow: inset 0 0 0 4px var(--red), inset 0 0 0 6px rgba(251, 245, 230, .7), 0 0 0 5px var(--paper), 0 0 0 7px var(--navy), 2px 6px 14px rgba(60, 40, 10, .4); }
.nav .snap svg { width: 32px; height: 32px; }
.nav .snap::after { content: ''; position: absolute; inset: -14px; border-radius: 50%; border: 2px dashed rgba(194, 58, 44, .6); animation: ring 2.2s ease-out infinite; pointer-events: none; }
.nav .snapwrap { position: relative; display: grid; place-items: center; }
@keyframes ring { from { transform: scale(.85) rotate(0); opacity: 1; } to { transform: scale(1.3) rotate(40deg); opacity: 0; } }

/* ── Sheet (upload) ───────────────────────────────────── */
#sheet { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; background: rgba(40, 30, 15, .55); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet { width: 100%; max-width: 640px; max-height: 94dvh; overflow-y: auto; padding: 18px 16px calc(18px + var(--safe-b)); border-radius: 10px 10px 0 0;
  background: var(--paper) url(img/linen.jpg) 0 0 / 600px; border-top: 8px solid; border-image: var(--airmail) 8; box-shadow: 0 -10px 40px rgba(40, 30, 15, .35); animation: up .3s cubic-bezier(.2, 1.2, .4, 1); }
@keyframes up { from { transform: translateY(40%); } }
.sheet .grab { width: 44px; height: 5px; border-radius: 9px; background: rgba(31, 52, 98, .25); margin: -4px auto 12px; }
.sheet .preview { width: 100%; max-height: 42vh; object-fit: contain; background: #2a2620; border: 6px solid #fffdf6; box-shadow: 1px 3px 8px rgba(60, 40, 10, .3); }
.pickc { max-height: 34vh; overflow-y: auto; display: grid; gap: 6px; margin-top: 8px; padding-right: 2px; }
.pickc label { --c: var(--red); display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 4px; background: #fffdf6; border: 1px solid var(--line); border-left: 5px solid var(--c); cursor: pointer; }
.pickc label:has(input:checked) { background: #fff3dc; outline: 2px solid var(--c); outline-offset: -2px; }
.pickc input { accent-color: var(--red); width: 18px; height: 18px; flex: none; }
.pickc .grp { font: 13px var(--type); color: var(--red); letter-spacing: 1px; margin: 8px 2px 0; text-transform: uppercase; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(31, 52, 98, .2); border-top-color: currentColor; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Toasts: telegrams ────────────────────────────────── */
#toasts { position: fixed; z-index: 80; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 10px); transform: translateX(-50%); width: min(94vw, 480px); display: grid; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 3px; color: var(--ink);
  background: #fffaea; border: 1px solid var(--line); border-left: 7px solid var(--navy); box-shadow: 2px 8px 22px rgba(60, 40, 10, .3);
  animation: toastin .35s cubic-bezier(.2, 1.4, .4, 1); font: 15px var(--type); cursor: pointer; }
.toast .ic { font-size: 24px; }
.toast.gold { border-left-color: var(--mustard); }
.toast.err { border-left-color: var(--red); color: var(--red); }
.toast.out { animation: toastout .3s forwards; }
@keyframes toastin { from { transform: translateY(-30px) rotate(-2deg); opacity: 0; } }
@keyframes toastout { to { transform: translateY(-20px); opacity: 0; } }
#fx { position: fixed; inset: 0; z-index: 90; pointer-events: none; width: 100vw; height: 100vh; }

/* ── Lists & misc ─────────────────────────────────────── */
.list { display: grid; gap: 8px; }
.li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 4px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); box-shadow: var(--shadow); }
.li .chev { color: var(--red); font-size: 20px; }
.switch { position: relative; width: 52px; height: 30px; flex: none; border-radius: 99px; background: #d9cca9; transition: background .2s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fffdf6; transition: transform .2s; box-shadow: 0 2px 4px rgba(0, 0, 0, .3); }
.switch.on { background: var(--lime); }
.switch.on::after { transform: translateX(22px); }
.switch.lock { opacity: .6; }
.vote { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 99px; background: #fffdf6; border: 1.5px solid var(--line); font-weight: 700; color: var(--ink); }
.vote.on { background: var(--red); border-color: var(--red); color: var(--paper); }
.rules p, .rules li { color: var(--ink); }
.rules li + li { margin-top: 6px; }
.mult { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; text-align: center; margin: 10px 0; }
.mult div { padding: 10px 2px; border-radius: 3px; border: 1.5px dashed #c9b88e; }
.mult b { display: block; font: 19px var(--display); color: var(--navy); }
.mult span { color: #c98f12; font-size: 13px; }
.empty-state { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty-state .big { font-size: 56px; margin-bottom: 6px; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 12px; }
.seg button { min-height: 36px; padding: 0 14px; border-radius: 99px; background: #fffdf6; border: 1.5px solid var(--line); font: 14px var(--type); color: var(--muted); }
.seg button.on { color: var(--paper); background: var(--navy); border-color: var(--navy); }
.copybox { display: flex; gap: 8px; align-items: center; }
.copybox code { flex: 1; padding: 12px; border-radius: 3px; background: #fffdf6; border: 1.5px dashed #b9a77c; font: 14px var(--type); word-break: break-all; }
details.card summary { cursor: pointer; font: 17px var(--display); color: var(--navy); list-style: none; }
details.card summary::-webkit-details-marker { display: none; }
details.card summary::after { content: '＋'; float: right; color: var(--red); }
details.card[open] summary::after { content: '－'; }
.hostrow { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(65, 99, 158, .18); }
.hostrow select { min-height: 40px; padding: 6px 10px; font-size: 15px; width: auto; }

/* ── Showtime & ceremony ──────────────────────────────── */
.stage { position: fixed; inset: 0; z-index: 50; background: #1d1a15; overflow: hidden; display: grid; place-items: center; color: var(--paper); }
.stage .blur { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); max-width: none; object-fit: cover; filter: blur(40px) brightness(.4) sepia(.4); }
.stage .main { position: relative; max-width: 88vw; max-height: 72vh; object-fit: contain; border: 10px solid #fffdf6; border-bottom-width: 34px; box-shadow: 4px 14px 40px rgba(0, 0, 0, .6); animation: kenburns 7s ease-out both; }
@keyframes kenburns { from { transform: scale(.94) rotate(-1.5deg); opacity: 0; } 12% { opacity: 1; } to { transform: scale(1) rotate(0); } }
.stage .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 24px calc(24px + var(--safe-b)); background: linear-gradient(transparent, rgba(20, 15, 8, .85)); text-align: center; }
.stage .cap .c { font: clamp(22px, 4vw, 44px)/1.1 var(--display); color: var(--paper); text-shadow: 2px 2px 0 var(--red); }
.stage .cap .w { font: clamp(15px, 2vw, 22px) var(--type); color: #e9dcbc; margin-top: 6px; }
.stage .muted { color: #cbbd9c; }
.stage .x { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 14px); right: 14px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; background: rgba(251, 245, 230, .85); color: var(--navy); font-size: 22px; }
.stage .x.snd, .ceremony .x.snd { right: 66px; font-size: 20px; }
.ceremony .x.snd { position: absolute; top: 14px; z-index: 4; width: 44px; height: 44px; border-radius: 50%; background: rgba(0, 0, 0, .5); color: #fff; }
button.li { width: 100%; text-align: left; }
.seenlist { list-style: none; margin: 10px 0 0; padding: 0; }
.seenlist li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px dashed rgba(31, 52, 98, .18); }
.seenlist li:first-child { border-top: 0; }
.seenlist .on { color: #1c8a4a; font-weight: 700; white-space: nowrap; }
.stage .logo-corner { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 14px); left: 18px; z-index: 3; font: 24px var(--display); color: var(--paper); text-shadow: 2px 2px 0 var(--red); }
.stage .greet { width: min(460px, 86vw); }
.ceremony { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; text-align: center; padding: 24px; overflow: hidden; color: var(--ink);
  background: radial-gradient(120% 90% at 50% 40%, transparent 50%, rgba(150, 105, 40, .3)), url(img/linen.jpg) 0 0 / 600px, var(--bg); }
.ceremony::before { content: ''; position: absolute; inset: -50%; background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(224, 169, 58, .16) 0 7deg, transparent 7deg 14deg); animation: spin 90s linear infinite; pointer-events: none; }
.ceremony .cstep { position: relative; z-index: 2; max-width: 820px; width: 100%; animation: reveal .7s cubic-bezier(.2, 1.3, .4, 1) both; }
@keyframes reveal { from { transform: scale(.6) rotate(-4deg); opacity: 0; } }
.ceremony .aw { font: 15px var(--type); letter-spacing: 3px; color: var(--red); text-transform: uppercase; }
.ceremony .ttl { font: clamp(36px, 8vw, 86px)/1 var(--display); color: var(--navy); margin: 14px 0; text-shadow: 2px 2px 0 var(--mustard), 5px 5px 0 var(--red); }
.ceremony .win { font: clamp(26px, 6vw, 60px)/1.05 var(--display); color: var(--navy); margin: 12px 0 6px; }
.ceremony .why { font-size: clamp(16px, 2.4vw, 24px); color: var(--muted); }
.ceremony .ph { max-height: 46vh; max-width: 80vw; margin: 16px auto 0; border: 8px solid #fffdf6; border-bottom-width: 26px; box-shadow: 3px 10px 26px rgba(60, 40, 10, .4); transform: rotate(-1.5deg); }
.ceremony .nav2 { position: absolute; z-index: 3; bottom: calc(24px + var(--safe-b)); left: 0; right: 0; display: flex; justify-content: center; gap: 10px; }
.ceremony .pts { font: clamp(40px, 9vw, 100px)/1 var(--display); color: var(--red); text-shadow: 3px 3px 0 var(--navy); }
.ceremony .gems { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; max-height: 56vh; overflow-y: auto; margin-top: 16px; text-align: left; }
.ceremony .greet { max-width: min(560px, 86vw); margin-bottom: 12px; }
.ceremony .x { background: rgba(31, 52, 98, .85) !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ── Check-in: tap your name ──────────────────────────── */
.couples { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 12px; }
.couple { --c: var(--red); display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px 10px; padding: 12px; border-radius: 4px; background: var(--paper); border: 1px solid var(--line); border-left: 6px solid var(--c); }
.couple .cname { font: 16px var(--display); color: var(--navy); }
.who-row { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.who { min-height: 52px; border-radius: 4px; background: #fffdf6; border: 2px solid var(--line); font: 19px var(--display); color: var(--navy); display: flex; flex-direction: column; align-items: center; justify-content: center; transition: transform .1s; }
.who:active { transform: scale(.96); }
.who.on { background: var(--c); color: var(--paper); border-color: var(--c); }
.who.taken { opacity: .45; }
.who small { font: 11px var(--type); color: var(--muted); }

/* Couple sign-in: one stamp per couple */
.doors { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 14px; margin-top: 16px; }
.door { display: block; padding: 0; background: none; transition: transform .12s; }
.door .stampimg { height: 150px; width: auto; }
.door:nth-child(4n+1) { transform: rotate(-3deg); }
.door:nth-child(4n+2) { transform: rotate(2.5deg); }
.door:nth-child(4n+3) { transform: rotate(-1.5deg); }
.door:nth-child(4n) { transform: rotate(3deg); }
.door:active { transform: scale(.94) rotate(0); }
.door .nm { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.door:not(:has(.stampimg)) { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--paper); border: 1.5px solid var(--line); border-radius: 4px; }
.door:not(:has(.stampimg)) .nm { position: static; width: auto; height: auto; clip: auto; font: 17px var(--display); color: var(--navy); }
form[data-form="door"] .who { border-color: var(--c); min-height: 60px; }

/* ── Glam shots: photo avatars cropped to a circle with a ring in the team color ── */
.avatar { position: relative; overflow: hidden; }
.avatar.face { background: #2a2620; }
.avatar.face img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.avatar.xs { display: inline-grid; vertical-align: -6px; width: 22px; height: 22px; font-size: 12px; margin-right: 2px; box-shadow: 0 0 0 1.5px var(--c); }
.avatar.xxl { width: 132px; height: 132px; font-size: 70px; box-shadow: 0 0 0 4px var(--paper), 0 0 0 7px var(--c), 2px 6px 14px rgba(60, 40, 10, .35); }
/* Couple badge: both faces, overlapping like a photo-booth strip */
.avatar.duo { background: color-mix(in srgb, var(--c) 25%, var(--paper)); overflow: visible; }
.avatar.duo > img, .avatar.duo > b { position: absolute; width: 64%; height: 64%; border-radius: 50%; object-fit: cover; display: grid; place-items: center;
  background: var(--c); font-size: .62em; font-weight: 400; box-shadow: 0 0 0 1.5px var(--paper), 0 0 0 3px var(--c); }
.avatar.duo > :first-child { left: 2%; top: 4%; z-index: 1; }
.avatar.duo > :last-child { right: 2%; bottom: 4%; z-index: 2; }
.avatar.duo.sm > img, .avatar.duo.sm > b { box-shadow: 0 0 0 1px var(--paper), 0 0 0 2px var(--c); }

.facebtn { position: relative; display: inline-block; margin: 0 auto; border-radius: 50%; }
.facebtn .cam { position: absolute; right: -4px; bottom: -2px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 17px;
  background: var(--red); box-shadow: 0 0 0 3px var(--paper), 1px 3px 6px rgba(60, 40, 10, .4); animation: campulse 2.4s ease-in-out infinite; }
@keyframes campulse { 50% { transform: scale(1.12); } }

.facesheet .face-stage { position: relative; width: 176px; height: 176px; margin: 4px auto 0; display: grid; place-items: center;
  border-radius: 50%; border: 2px dashed rgba(194, 58, 44, .5); }
.facesheet .face-stage .avatar { z-index: 2; }
.facesheet .row .btn { padding: 0 10px; white-space: nowrap; }
.snapsheet .snapopts { display: grid; gap: 10px; margin-top: 16px; }
.snapsheet .snapopts .btn { min-height: 58px; font-size: 19px; }
.snapsheet .snapopts .btn.ghost { min-height: 48px; font-size: 16px; }
.facepool { display: flex; gap: 10px; overflow-x: auto; padding: 4px 4px 10px; scroll-snap-type: x mandatory; }
.facepool button { flex: none; width: 66px; height: 66px; border-radius: 50%; overflow: hidden; scroll-snap-align: start;
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--line); transition: transform .12s, box-shadow .12s; }
.facepool button:active { transform: scale(.92); box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--c); }
.facepool img { width: 100%; height: 100%; object-fit: cover; display: block; }

.cropbox { position: relative; width: min(80vw, 340px); aspect-ratio: 1; margin: 12px auto 0; overflow: hidden;
  touch-action: none; cursor: grab; background: #2a2620; border: 8px solid #fffdf6; box-shadow: 1px 4px 12px rgba(60, 40, 10, .35); }
.cropbox:active { cursor: grabbing; }
.cropbox canvas { width: 100%; height: 100%; display: block; }
.cropbox .hole { position: absolute; inset: 8%; border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 0 999px rgba(40, 30, 15, .62), inset 0 0 0 3px var(--paper), inset 0 0 0 5px var(--c); }
.zoomrow { display: flex; align-items: center; gap: 10px; margin: 6px auto 0; max-width: 340px; color: var(--navy); font-size: 20px; }
.zoomrow input { flex: 1; accent-color: var(--red); height: 32px; }
.facepreview { display: flex; align-items: center; gap: 12px; margin-top: 6px; padding: 10px 14px; border-radius: 4px; background: var(--paper); border: 1px solid var(--line); border-left: 6px solid var(--c); }
.facepreview .r { font: 20px var(--display); color: var(--dim); width: 22px; text-align: center; }
.facepreview b { font: 400 17px var(--display); color: var(--navy); }
.facepreview canvas { width: 44px; height: 44px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--c); }
.facepreview .pts { font: 24px var(--display); color: var(--red); }

/* ── Sign-in pitch: what the game is and how to win ───── */
.pitch { text-align: center; margin: 26px 4px 4px; }
.pitch h1 { font: clamp(31px, 8.8vw, 46px)/1.04 var(--display); color: var(--navy); margin: 6px 0 14px; text-shadow: 2px 2px 0 var(--mustard), 4px 4px 0 var(--red); }
.pitch p { font-size: 17px; line-height: 1.5; max-width: 32em; margin: 0 auto 18px; }
.pitch p b { color: var(--red); }
.pitch .btn { min-height: 58px; padding: 0 30px; font-size: 21px; }
h2.sec { justify-content: center; margin: 32px 0 14px; }
h2.sec::before, h2.sec::after { content: ''; flex: 1; max-width: 70px; height: 0; border-top: 2px dashed rgba(194, 58, 44, .45); }
.howto { display: grid; gap: 12px; }
@media (min-width: 640px) { .howto { grid-template-columns: 1fr 1fr; } }
.step { --c: var(--red); display: grid; grid-template-columns: 60px 1fr; gap: 14px; align-items: start; padding: 16px 16px 16px 14px; border-radius: 4px;
  background: var(--paper) repeating-linear-gradient(transparent 0 26px, rgba(65, 99, 158, .11) 26px 27px); background-position: 0 12px;
  border: 1px solid var(--line); border-top: 5px solid var(--c); box-shadow: var(--shadow); }
.step .ic { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; transform: rotate(-10deg);
  border: 2.5px dashed var(--c); box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5.5px var(--c); background: #fffdf6; }
.step .n { font: 12px var(--type); letter-spacing: 2px; text-transform: uppercase; color: var(--c); }
.step h3 { font-size: 21px; margin: 2px 0 6px; }
.step p { margin: 0; font-size: 15.5px; line-height: 1.5; }
.step p b { color: var(--navy); }
.step .scale { display: flex; gap: 8px; margin-top: 10px; }
.teaser { margin: 0 -16px; overflow: hidden; padding: 4px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.teaser .lane { display: flex; gap: 10px; width: max-content; padding: 6px 0; animation: drift 70s linear infinite; }
.teaser .lane.rev { animation-direction: reverse; animation-duration: 80s; }
@keyframes drift { to { transform: translateX(-50%); } }
.tix { display: inline-flex; align-items: center; gap: 10px; padding: 5px 16px 5px 6px; border-radius: 3px; white-space: nowrap;
  background: #fffdf6; border: 1px solid var(--line); box-shadow: 1px 2px 5px rgba(60, 40, 10, .16); font: 15px var(--display); color: var(--navy); }
.tix:nth-child(odd) { transform: rotate(-1deg); }
.tix:nth-child(even) { transform: rotate(1deg); }
.checkin { margin-top: 30px; scroll-margin-top: 14px; border-top: 6px solid var(--red); }

/* ── Kept photos (earlier shots, taken out) ───────────── */
.keptrow { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: none; }
.keptrow::-webkit-scrollbar { display: none; }
.kthumb { --c: var(--navy); flex: none; width: 104px; color: var(--ink); text-align: center; }
.kthumb img { display: block; width: 104px; height: 104px; object-fit: cover; border: 5px solid #fffdf6; border-bottom-width: 18px; box-shadow: 1px 3px 7px rgba(60, 40, 10, .3); transform: rotate(-2deg); }
.kthumb:nth-child(even) img { transform: rotate(2deg); }
.kthumb span { display: block; margin-top: 6px; font: 12px/1.2 var(--type); color: var(--c); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Kept photos (earlier shots, taken out) ───────────── */
.keptrow { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: none; }
.keptrow::-webkit-scrollbar { display: none; }
.kthumb { --c: var(--navy); flex: none; width: 104px; color: var(--ink); text-align: center; }
.kthumb img { display: block; width: 104px; height: 104px; object-fit: cover; border: 5px solid #fffdf6; border-bottom-width: 18px; box-shadow: 1px 3px 7px rgba(60, 40, 10, .3); transform: rotate(-2deg); }
.kthumb:nth-child(even) img { transform: rotate(2deg); }
.kthumb span { display: block; margin-top: 6px; font: 12px/1.2 var(--type); color: var(--c); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Welcome ──────────────────────────────────────────── */
body.noscroll { overflow: hidden; }
.welcome { position: fixed; inset: 0; z-index: 70; overflow-y: auto; padding: calc(env(safe-area-inset-top, 0px) + 18px) 16px calc(var(--safe-b) + 24px);
  background: rgba(40, 30, 15, .5); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fade .25s; }
.wcard { --c: var(--red); position: relative; max-width: 480px; margin: 0 auto; padding: 26px 20px 20px; text-align: center;
  background: var(--paper) url(img/linen.jpg); border: 1px solid var(--line); box-shadow: 0 14px 40px rgba(40, 25, 5, .45); animation: wdrop .5s cubic-bezier(.2, .9, .3, 1.2); }
.wcard::before, .wcard::after { content: ''; position: absolute; left: 0; right: 0; height: 8px; background: var(--airmail); }
.wcard::before { top: 0; } .wcard::after { bottom: 0; }
.wcard .wstamp { display: block; height: 150px; width: auto; margin: 10px auto 4px; transform: rotate(-4deg); filter: drop-shadow(2px 4px 6px rgba(60, 40, 10, .35)); }
.wcard h1 { font: clamp(32px, 9vw, 44px)/1.05 var(--display); color: var(--navy); margin: 6px 0 10px; text-shadow: 2px 2px 0 var(--mustard), 4px 4px 0 var(--c); }
.wcard .hi { font-size: 16px; margin: 0 0 14px; }
.wsteps { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; text-align: left; }
.wsteps li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 12px; background: #fffdf6; border: 1px solid var(--line); border-left: 5px solid var(--c); font-size: 15px; line-height: 1.35; }
.wsteps .ic { font-size: 24px; line-height: 1; }
.wstatus { margin: 0 0 12px; padding: 10px 12px; border: 1.5px dashed var(--red); background: #fdf0e4; font-size: 15px; }
.wcard .btn.block + .btn.block { margin-top: 10px; }
.wcard .wh { font: 18px var(--display); color: var(--navy); margin: 16px 0 10px; }
.wthumbs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.wthumbs img { width: 64px; height: 64px; object-fit: cover; border: 4px solid #fffdf6; border-bottom: 4px solid var(--c); box-shadow: 1px 2px 5px rgba(60, 40, 10, .3); }
.wthumbs img:nth-child(odd) { transform: rotate(-3deg); } .wthumbs img:nth-child(even) { transform: rotate(3deg); }
.wcard .clist { text-align: left; }
@keyframes wdrop { from { opacity: 0; transform: translateY(30px) rotate(-1.5deg); } }
@media (prefers-reduced-motion: reduce) { .wcard, .welcome { animation: none; } }
.crowncard.none .stampimg { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; padding: 10%; background: var(--paper); }

/* ── FAQ & public photo list ──────────────────────────── */
.jump { display: flex; justify-content: center; gap: 18px; margin-top: 14px; font: 15px var(--type); }
.jump a { color: var(--red); }
#plist, #faq { scroll-margin-top: 14px; }
.faq, .plist { display: grid; gap: 8px; }
.faq details, .lgroup { background: var(--paper); border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow); }
.faq summary, .lgroup summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 14px; font: 17px/1.25 var(--display); color: var(--navy); }
.faq summary::-webkit-details-marker, .lgroup summary::-webkit-details-marker { display: none; }
.faq summary > span:first-child, .lgroup summary > span:first-child { flex: 1; }
.faq summary::after, .lgroup summary::after { content: '+'; font: 700 22px/1 var(--body); color: var(--red); }
.faq details[open] summary::after, .lgroup[open] summary::after { content: '–'; }
.faq .a { padding: 0 14px 14px; font-size: 15px; line-height: 1.5; }
.lgroup { border-top: 5px solid var(--c); }
.lgroup summary .ct { font: 13px var(--type); color: var(--muted); }
.lrow { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-top: 1px dashed var(--line); }
.lrow b { display: block; font: 16px/1.2 var(--display); color: var(--navy); font-weight: 400; }
.lrow .d { display: block; margin-top: 3px; font-size: 14px; line-height: 1.4; color: #5a5246; }

/* ── Gallery & viewer ─────────────────────────────────── */
.galbtn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fffdf6; border: 1.5px solid var(--line); font-size: 18px; }
button.stopchip { font-family: var(--body); cursor: pointer; }
.lightbox { position: fixed; inset: 0; z-index: 75; display: flex; flex-direction: column; background: rgba(22, 18, 12, .96); color: var(--paper); animation: fade .2s; }
.lbstage { flex: 1; min-height: 0; display: grid; place-items: center; padding: calc(env(safe-area-inset-top, 0px) + 60px) 10px 8px; }
.lbimg { max-width: 100%; max-height: 100%; object-fit: contain; border: 6px solid #fffdf6; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.lbx { position: absolute; z-index: 2; top: calc(env(safe-area-inset-top, 0px) + 10px); right: 12px; width: 44px; height: 44px; border-radius: 50%; background: rgba(251, 245, 230, .92); color: var(--navy); font-size: 20px; }
.lbcount { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 22px); left: 16px; font: 14px var(--type); color: rgba(251, 245, 230, .75); }
.lbnav { position: absolute; z-index: 2; top: 42%; width: 42px; height: 62px; border-radius: 4px; background: rgba(251, 245, 230, .85); color: var(--navy); font-size: 32px; line-height: 1; }
.lbnav.prev { left: 6px; } .lbnav.next { right: 6px; }
.lbcap { width: 100%; max-width: 640px; margin: 0 auto; padding: 8px 16px calc(var(--safe-b) + 16px); border-top: 4px solid var(--c); }
.lbcap .c { font: 20px/1.2 var(--display); color: #fff; }
.lbcap .w { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; font-size: 14px; color: rgba(251, 245, 230, .85); }
.lbcap .q { margin-top: 6px; font-style: italic; }
.lbacts { gap: 8px; margin-top: 10px; }
.lightbox .btn.ghost { color: var(--paper); border-color: rgba(251, 245, 230, .6); background: transparent; }

/* ── Judges' Table ────────────────────────────────────── */
.jhead { display: flex; align-items: baseline; gap: 10px; margin: 14px 0 0; }
.jhead h2 { margin: 0; flex: 1; font-size: 24px; }
.jleft { font: 14px var(--type); color: var(--muted); }
.progress.jprog { height: 6px; margin: 8px 0 10px; }
.jstage { display: flex; flex-direction: column; gap: 10px; min-height: 430px; }
.jstage .judge-card { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding: 8px; }
.jtop { display: flex; gap: 10px; align-items: flex-start; padding: 2px 2px 8px; }
.jtop h3 { margin: 0; font-size: 19px; line-height: 1.15; }
.jd { margin-top: 3px; font-size: 13.5px; line-height: 1.35; color: #5a5246; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.jphoto { position: relative; flex: 1 1 auto; min-height: 150px; padding: 0; border: 0; background: #2a2620; display: block; width: 100%; overflow: hidden; cursor: zoom-in; }
.jstage .judge-card .jphoto img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: contain; background: transparent; }
.jzoom { position: absolute; right: 8px; bottom: 8px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(251, 245, 230, .82); color: var(--navy); font-size: 17px; }
.jmeta { display: flex; align-items: center; gap: 6px; padding: 8px 2px 0; font-size: 14px; color: var(--navy); }
.jmeta .dim { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jcap { margin: 6px 2px 2px; font-size: 16px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.jdock { flex: none; }
.rate.big { gap: 4px; margin: 0; }
.rate.big button { font-size: 54px; padding: 0 3px; }
.jhint { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-top: 2px; }
.jhint .rate-label { min-height: 0; font-size: 20px; }
.jhint > :last-child { justify-self: end; }
.jhint > :first-child { justify-self: start; }
.jdock.reveal { text-align: center; }
.jcrowd { font: 19px/1.3 var(--display); color: var(--navy); }
.jcrowd b { color: var(--red); }
.jacts { display: flex; gap: 8px; justify-content: center; margin-top: 10px; }
.jnext { position: relative; overflow: hidden; isolation: isolate; }
.jnext.auto::after { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, .28); transform-origin: left; animation: jfill 2600ms linear both; animation-delay: inherit; }
@keyframes jfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* The rating lands on the photo like a postal cancellation stamp. */
.jpost { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-11deg); display: grid; justify-items: center; gap: 2px; padding: 10px 18px 8px;
  border: 4px double var(--red); border-radius: 6px; background: rgba(251, 245, 230, .9); color: var(--red); box-shadow: 0 6px 24px rgba(0, 0, 0, .35); pointer-events: none; }
.jpost .st { font-size: 26px; letter-spacing: 2px; color: var(--mustard); text-shadow: 1px 1px 0 var(--red); }
.jpost .w { font: 30px/1 var(--display); text-transform: uppercase; letter-spacing: 1px; white-space: nowrap; }
.jpost.s5 { border-color: var(--mustard); background: rgba(31, 52, 98, .92); color: var(--mustard); }
.jpost.s5 .st { color: #ffd76a; }
.jpost.slam { animation: slam .32s cubic-bezier(.2, 1.6, .5, 1) both; }
@keyframes slam { from { transform: translate(-50%, -50%) rotate(-24deg) scale(2.3); opacity: 0; } }
.jreview { margin-top: 10px; display: grid; gap: 8px; }
.qpicks { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.qp { padding: 8px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: #fffdf6; font: 15px var(--body); color: var(--navy); }
.qp:active { transform: scale(.95); background: var(--paper2); }
.jreview input { flex: 1; min-width: 0; }
/* The judge as a postage stamp: perforated edge (holes show the linen), red border, typed name. Sizes are multiples of the 14px perforation. */
.judge-stamp { width: 210px; height: 238px; margin: 0 auto 14px; padding: 10px; background: radial-gradient(circle at 7px 7px, transparent 4.5px, #fffdf7 5px) -7px -7px / 14px 14px; filter: drop-shadow(0 4px 6px rgba(31,52,98,.25)); }
.judge-stamp .in { position: relative; height: 100%; padding: 6px; background: #fffdf7; border: 2px solid var(--red); }
.judge-stamp img { display: block; width: 174px; height: 174px; }
.judge-stamp .val { position: absolute; top: 10px; left: 10px; padding: 2px 6px; font: 18px/1 var(--display); color: var(--red); background: #fffdf7; }
.judge-stamp .nm { padding-top: 6px; font: 13px var(--type); letter-spacing: 1px; color: var(--navy); }
.jdone .jstyle { display: flex; gap: 12px; align-items: center; text-align: left; margin: 14px auto 0; max-width: 420px; }
.jdone .jstyle .ic { font-size: 34px; }
.jdone .jstyle b { display: block; font: 18px var(--display); color: var(--navy); }
/* Rate right from the gallery viewer. */
.lbrate { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.lbrate .rate { margin: 0; gap: 2px; }
.lbrate .rate button { font-size: 34px; color: rgba(251, 245, 230, .3); }
.lbrate .rate button.on { color: var(--mustard); }
.lbrl { font: 18px var(--script); color: #ffd76a; }

/* ── Caricature prints: the drawing on its own sheet, taped down a little crooked ── */
.print { position: relative; margin: 0; padding: 8px 8px 0; background: #fffdf6; transform: rotate(var(--tilt, -2deg));
  box-shadow: 1px 2px 0 rgba(255, 255, 255, .6) inset, 2px 6px 14px rgba(60, 40, 10, .28); }
.print::before { content: ''; position: absolute; z-index: 1; top: -9px; left: 50%; width: 84px; height: 22px; margin-left: -42px;
  background: rgba(224, 169, 58, .5); transform: rotate(-3deg); box-shadow: 0 1px 2px rgba(60, 40, 10, .15); }
.print img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: #f3ead2; }
.print figcaption { font: 22px/1.5 var(--script); color: var(--navy); text-align: center; padding: 2px 0 6px; }
.print.soon .blank { display: grid; place-items: center; align-content: center; gap: 10px; aspect-ratio: 1; padding: 10px; text-align: center;
  border: 2px dashed rgba(31, 52, 98, .22); background: repeating-linear-gradient(0deg, transparent 0 22px, rgba(31, 52, 98, .06) 22px 23px), #fbf5e6; }
.print.soon .blank b { font-size: 46px; line-height: 1; opacity: .75; }
.print.soon .blank i { font: 14px/1.3 var(--type); font-style: normal; color: var(--muted); }
.printbtn { display: block; width: min(230px, 64vw); margin: 10px auto 0; padding: 0; border: 0; background: none; cursor: pointer; }
.print.me { --tilt: -1.5deg; padding-bottom: 8px; }
.print.me figcaption { display: none; }
.wcard .print.wprint { width: min(230px, 62vw); margin: 18px auto 14px; --tilt: -3deg; }
.wcard.reveal h1 { margin-top: 8px; }
.print.award { width: min(250px, 60vw, 34vh); margin: 0 auto; --tilt: -2.5deg; }
.print.award figcaption { display: none; }
.print.award { padding-bottom: 8px; }

/* The cast page: one row per couple. */
.casthead { text-align: center; margin: 18px 0 4px; }
.casthead h1 { font: clamp(42px, 13vw, 60px)/1 var(--display); color: var(--navy); margin: 0 0 12px; text-shadow: 2px 2px 0 var(--mustard), 4px 4px 0 var(--red); }
.castpair { margin-top: 30px; }
.castpair .cpt { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 18px; }
.castpair .cpt h3 { font-size: 22px; color: var(--c); text-shadow: 1px 1px 0 var(--paper); }
.castpair .cstamp { height: 46px; width: auto; transform: rotate(-6deg); filter: drop-shadow(1px 2px 3px rgba(60, 40, 10, .3)); }
.prints { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 520px; margin: 0 auto; padding: 0 4px; }
.prints .print:nth-child(even) { --tilt: 2.2deg; margin-top: 14px; }
.prints .print figcaption { font-size: 20px; }

/* Home: the cast in a sideways strip, couple by couple. */
.caststrip { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 6px 16px 12px; scroll-snap-type: x proximity; scrollbar-width: none; }
.caststrip::-webkit-scrollbar { display: none; }
.cpair { flex: none; display: flex; gap: 4px; padding: 12px 10px 8px; color: var(--ink); scroll-snap-align: start;
  background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--c); border-radius: var(--radius); box-shadow: var(--shadow); }
.cpair .cm { display: grid; justify-items: center; gap: 6px; width: 70px; }
.cpair .cm b { font: 13px var(--type); font-weight: 400; }

/* Pitched challenges: the player's card and the host's queue */
.pitch .li .badge { flex: none; }
.ideaq .sg + .sg { border-top: 1px dashed var(--line, #c9bfa8); margin-top: 16px; padding-top: 14px; }
.ideaq .sgacts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.ideaq .sgacts .btn { white-space: nowrap; }
.ideaq .sgacts .ghost { grid-column: 1 / -1; }

/* Reactions: one emoji per person per photo */
.reacts { display: flex; gap: 8px; margin: 4px 0 12px; }
.reacts button { flex: 1; min-height: 44px; border-radius: 22px; background: var(--paper); border: 1px solid var(--line); font-size: 22px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; box-shadow: var(--shadow); transition: transform .12s; }
.reacts button b { font: 700 14px var(--body); color: var(--muted); }
.reacts button.on { background: #fff3cf; border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold) inset; }
.reacts button:active { transform: scale(.9); }
.lbcap .reacts { margin: 10px 0 0; }
.lbcap .reacts button { background: rgba(251, 245, 230, .14); border-color: rgba(251, 245, 230, .3); box-shadow: none; }
.lbcap .reacts button b { color: rgba(251, 245, 230, .85); }
.lbcap .reacts button.on { background: rgba(224, 169, 58, .35); border-color: var(--mustard); box-shadow: none; }
.rfloat { position: fixed; z-index: 90; font-size: 34px; pointer-events: none; transform: translate(-50%, 0); animation: rfloat .9s ease-out forwards; }
@keyframes rfloat { to { transform: translate(-50%, -90px) scale(1.5); opacity: 0; } }

/* Phone alerts */
.card.alerts { border-left: 6px solid var(--teal); }
.card.alerts p { margin: 6px 0 12px; }
.card.alerts .x { position: absolute; top: 8px; right: 10px; width: 32px; height: 32px; color: var(--dim); font-size: 16px; }
.card.alerts > b { display: block; padding-right: 28px; }
.card.alerts .steps { margin: 8px 0 0; padding-left: 20px; }
.card.alerts .steps li + li { margin-top: 4px; }

/* The Morning Line: newsprint */
.banner.paperban { --c: var(--ink); }
.banner.paperban b { font: 900 16px/1.2 Georgia, 'Times New Roman', serif; text-transform: uppercase; letter-spacing: .3px; }
.paper { --news: #f6f0e1; --press: #1d1b18; background: var(--news); color: var(--press); padding: 16px 14px 18px; margin-top: 14px; box-shadow: 2px 5px 18px rgba(60, 40, 10, .3); font-family: Georgia, 'Times New Roman', serif; }
.paperwrap { max-width: 520px; margin: 0 auto; }
.paperwrap .paper { margin-top: 0; }
.paper .mast { display: grid; grid-template-columns: minmax(0, auto) minmax(0, auto); justify-content: space-between; align-items: end; gap: 6px 8px; border-bottom: 3px double var(--press); padding-bottom: 8px; }
.paper .mast h1 { grid-column: 1 / -1; order: -1; margin: 0; font: clamp(26px, 8.2vw, 40px)/1.05 var(--display); color: var(--press); text-align: center; white-space: nowrap; }
.paper .ear { font: 10px/1.25 var(--type); text-transform: uppercase; letter-spacing: .5px; border: 1px solid var(--press); padding: 3px 5px; }
.paper .ear.r { text-align: right; }
.paper .dateline { font: 11px var(--type); text-transform: uppercase; letter-spacing: 1px; text-align: center; border-bottom: 1px solid var(--press); padding: 5px 0; }
.paper .hl { font: 900 clamp(28px, 8.4vw, 40px)/1.02 Georgia, 'Times New Roman', serif; text-transform: uppercase; letter-spacing: -.5px; margin: 14px 0 8px; text-align: center; color: var(--press); }
.paper .deck { font-style: italic; font-size: 17px; line-height: 1.35; text-align: center; margin: 0 0 14px; }
.paper .pod { margin: 0 0 14px; }
.paper .pod img { display: block; width: 100%; max-height: 62vh; object-fit: cover; filter: sepia(.25) contrast(1.05); border: 1px solid var(--press); }
.paper .pod figcaption { font-size: 13px; line-height: 1.35; margin-top: 6px; }
.paper .pcols { columns: 2 230px; column-gap: 16px; column-rule: 1px solid #c9bea3; }
.paper .pbox { break-inside: avoid; margin: 0 0 14px; }
.paper .pbox h4 { font: 700 12px var(--body); text-transform: uppercase; letter-spacing: 2px; border-top: 2px solid var(--press); border-bottom: 1px solid var(--press); padding: 4px 0; margin: 0 0 8px; }
.paper .pbox p, .paper .pbox li { font-size: 15px; line-height: 1.4; margin: 0; }
.paper .pbox ul { margin: 0; padding-left: 18px; }
.paper .pbox li + li { margin-top: 4px; }
.paper .pbox a { color: var(--press); text-decoration: underline; }
.paper .fine { font: 11px/1.3 var(--type) !important; color: #5e574a; margin-top: 6px !important; }
.paper .odds { width: 100%; border-collapse: collapse; font-size: 14px; }
.paper .odds td { padding: 4px 2px; border-bottom: 1px dotted #b3a888; }
.paper .odds td:first-child { width: 18px; font-weight: 700; }
.paper .odds .nm { width: 100%; }
.paper .odds .pt { text-align: right; font-variant-numeric: tabular-nums; }
.paper .odds .od { text-align: right; font: 700 13px var(--type); white-space: nowrap; }
.paper .odds tr.me .nm { font-weight: 700; }
.paper .odds .up { color: #2d6a2d; font-size: 12px; } .paper .odds .dn { color: #a4321f; font-size: 12px; } .paper .odds .eq { color: #8b836f; }
.paper .nums { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; text-align: center; font: 11px var(--type); text-transform: uppercase; }
.paper .nums b { display: block; font: 900 26px/1.1 Georgia, serif; }
.paper blockquote { margin: 0; font-size: 18px; font-style: italic; line-height: 1.35; }
.paper .laugh { display: flex; gap: 10px; align-items: center; text-decoration: none !important; }
.paper .laugh img { width: 72px; height: 72px; object-fit: cover; border: 1px solid var(--press); filter: sepia(.25); }
.paper .pacts { margin-top: 6px; }
.paper .pacts .btn + .btn { margin-top: 10px; }
.paper .parch { display: flex; justify-content: space-between; gap: 8px; border-top: 3px double var(--press); padding-top: 10px; font: 13px var(--type); }
.paper .parch a { color: var(--press); }

/* Grounded couples: the plane outage kept them home. Greyed out, a red X across them, and a rubber stamp. */
.gstamp { display: inline-block; padding: 3px 9px; font: 700 13px/1.2 var(--type); font-style: normal; letter-spacing: 2px; text-transform: uppercase; white-space: nowrap;
  color: var(--red); border: 2.5px solid var(--red); border-radius: 4px; background: rgba(255, 253, 247, .9); transform: rotate(-8deg); }
.rankrow.grounded { border-style: dashed; border-left-style: solid; }
.rankrow.grounded > :not(.gstamp) { filter: grayscale(1); opacity: .6; }
.xout { position: relative; }
.xout > :not(.gstamp) { filter: grayscale(1); opacity: .55; }
.xout::after { content: ''; position: absolute; inset: 4px; z-index: 2; pointer-events: none;
  background: linear-gradient(to top right, transparent calc(50% - 2.5px), rgba(194, 58, 44, .85) calc(50% - 2.5px), rgba(194, 58, 44, .85) calc(50% + 2.5px), transparent calc(50% + 2.5px)),
              linear-gradient(to bottom right, transparent calc(50% - 2.5px), rgba(194, 58, 44, .85) calc(50% - 2.5px), rgba(194, 58, 44, .85) calc(50% + 2.5px), transparent calc(50% + 2.5px)); }
.xout > .gstamp { position: absolute; left: 50%; top: 50%; z-index: 3; transform: translate(-50%, -50%) rotate(-12deg); }
.prints.xout > .gstamp { font-size: 22px; padding: 6px 16px; border-width: 4px; }
.castpair.grounded h3 { opacity: .7; }
.gnote { margin-top: 14px; }
