:root {
  --bg: #0b0b12;
  --bg2: #15151f;
  --card: #1b1b28;
  --line: #2a2a3a;
  --text: #f6f5ff;
  --muted: #9b99b3;
  --yellow: #ffe600;
  --truth: #33d6ff;
  --dare: #ff3d8b;
  --ok: #3ddc84;
  --bad: #ff5a5a;
  --late: #ffb020;
  --radius: 22px;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --navh: 68px;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; -webkit-text-size-adjust: 100%; }
/* Never put overflow on html/body: on iOS that makes <body> its own scroll box (no momentum, stuck scrolling). */
body { min-height: 100dvh; -webkit-font-smoothing: antialiased; }
#app { max-width: 100vw; overflow-x: hidden; }
@supports (overflow: clip) { #app { overflow-x: clip; } }
body.noscroll { overflow: hidden; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: var(--yellow); }
img, video { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.15; letter-spacing: -.01em; }
p { margin: .3em 0 .6em; line-height: 1.4; }
.muted { color: var(--muted); }
.small { font-size: .84rem; }
.center { text-align: center; }
.row { display: flex; align-items: center; }
.col { display: flex; flex-direction: column; }
.gap { gap: 10px; }
.wrap { flex-wrap: wrap; }
.end { justify-content: flex-end; }
.grow { flex: 1; }
[hidden] { display: none !important; }
.boot { display: grid; place-items: center; height: 100dvh; font-size: 64px; animation: wob 1s ease-in-out infinite; }
@keyframes wob { 50% { transform: rotate(-14deg) scale(1.08); } }

/* ---------- layout ---------- */
.view { max-width: 640px; margin: 0 auto; padding: calc(var(--sat) + 8px) calc(16px + var(--sar)) calc(var(--navh) + var(--sab) + 28px) calc(16px + var(--sal)); min-height: 100dvh; }
body.bare .nav { display: none; }
body.bare .view { max-width: none; padding: 0; }

.nav { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; height: calc(var(--navh) + var(--sab)); padding: 0 calc(8px + var(--sar)) var(--sab) calc(8px + var(--sal));
  display: flex; align-items: center; justify-content: space-around; background: rgba(11,11,18,.88); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--line); }
.brand { display: none; }
.nav-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: var(--muted); font-size: .7rem; font-weight: 700; min-width: 64px; padding: 6px 0; }
.nav-ico { font-size: 1.45rem; filter: grayscale(.7); opacity: .75; transition: transform .15s; }
.nav-item.active { color: var(--text); }
.nav-item.active .nav-ico { filter: none; opacity: 1; transform: scale(1.1); }
.nav-cam { display: grid; place-items: center; text-decoration: none; order: 0; }
.nav-cam .nav-label { display: none; }
.cam-ring { width: 54px; height: 54px; border-radius: 50%; border: 4px solid var(--yellow); box-shadow: 0 0 0 3px rgba(255,230,0,.18), 0 6px 20px rgba(255,230,0,.25); transform: translateY(-8px); background: radial-gradient(circle, rgba(255,230,0,.25) 0 40%, transparent 41%); }
.admin-link, .nav .desk-only { display: none; }
.nav-item { min-width: 58px; }
.badge { position: absolute; top: 0; right: 12px; background: var(--dare); color: #fff; font-size: .68rem; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 5px; }

@media (min-width: 900px) {
  .nav { top: 0; right: auto; width: 230px; height: auto; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 4px; padding: 26px 16px; border-top: 0; border-right: 1px solid var(--line); background: var(--bg); }
  .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 900; font-size: 1.5rem; margin: 0 8px 22px; }
  .logo-dot { font-size: 1.8rem; }
  .nav-item, .nav-cam { flex-direction: row; justify-content: flex-start; gap: 14px; font-size: 1.02rem; padding: 12px 14px; border-radius: 14px; order: initial !important; }
  .nav-item:hover, .nav-cam:hover { background: var(--bg2); }
  .nav-item.active { background: var(--card); }
  .nav-cam { display: flex; align-items: center; color: var(--text); font-weight: 800; background: var(--yellow); color: #111; margin: 6px 0; }
  .nav-cam:hover { background: #fff27a; }
  .nav-cam .nav-label { display: inline; }
  .cam-ring { width: 22px; height: 22px; border-width: 3px; border-color: #111; box-shadow: none; transform: none; background: none; }
  .admin-link:not([hidden]), .nav .desk-only { display: flex; }
  .people-tabs { display: none !important; }
  .badge { position: static; margin-left: auto; }
  .view { padding: 28px 24px 60px; margin-left: max(230px, calc(50vw - 320px + 115px)); margin-right: auto; }
  body.bare .view { margin: 0; }
}

/* ---------- common ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 14px; }
.page-title { font-size: 1.9rem; font-weight: 900; margin: 0; }
.top-chips { display: flex; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 999px; background: var(--card); font-weight: 800; font-size: .92rem; border: 1px solid var(--line); }
.chip.fire { background: linear-gradient(135deg, #ff7a18, #ff3d8b); border: 0; }
.chip.truth { background: var(--truth); color: #06202a; border: 0; }
.chip.dare { background: var(--dare); color: #fff; border: 0; }
.tag { display: inline-flex; align-items: center; gap: 3px; padding: 3px 9px; border-radius: 999px; font-size: .74rem; font-weight: 800; background: rgba(255,255,255,.1); white-space: nowrap; }
.tag.truth { background: var(--truth); color: #04232e; letter-spacing: .06em; }
.tag.dare { background: var(--dare); color: #fff; letter-spacing: .06em; }
.tag.late { background: rgba(255,176,32,.18); color: var(--late); }
.tag.ok { background: rgba(61,220,132,.16); color: var(--ok); }
.tag.bad { background: rgba(255,90,90,.16); color: var(--bad); }
.tag.fire { background: rgba(255,122,24,.18); color: #ffa45c; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 20px; border-radius: 999px; background: var(--yellow); color: #111; font-weight: 900; text-decoration: none; transition: transform .1s, opacity .2s; min-height: 46px; }
.btn:active { transform: scale(.96); }
.btn:disabled { opacity: .5; }
.btn.ghost { background: var(--card); color: var(--text); border: 1px solid var(--line); }
.btn.danger { background: var(--bad); color: #fff; }
.btn.small { padding: 7px 14px; min-height: 34px; font-size: .86rem; }
.btn.big { padding: 15px 24px; font-size: 1.08rem; min-height: 54px; }
.btn.full { width: 100%; }
.link { color: var(--yellow); text-decoration: underline; padding: 4px 0; }
.round-btn { width: 46px; height: 46px; border-radius: 50%; background: rgba(0,0,0,.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 1.3rem; display: grid; place-items: center; }
.round-btn.sm { width: 36px; height: 36px; background: var(--card); font-size: 1.2rem; }
.round-btn:disabled { opacity: .35; }

input, textarea { width: 100%; background: var(--bg2); border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 14px; outline: none; font-size: 16px; }
input:focus, textarea:focus { border-color: var(--yellow); }
textarea { resize: none; }
.field { display: block; margin: 0 0 12px; }
.field > span { display: block; font-size: .8rem; font-weight: 800; color: var(--muted); margin: 0 0 6px 4px; text-transform: uppercase; letter-spacing: .05em; }
.check { display: flex; gap: 10px; align-items: center; margin: 4px 0 14px; font-weight: 700; }
.check input { width: 22px; height: 22px; accent-color: var(--yellow); }

.section { margin: 22px 0; }
.section-title { font-size: 1.05rem; font-weight: 900; margin: 0 0 10px; }
.empty, .compose-empty, .empty-card, .add-card { text-align: center; padding: 30px 18px; }
.empty-card { background: var(--card); border-radius: var(--radius); margin: 22px 0; border: 1px solid var(--line); }
.big-emoji { font-size: 3.2rem; margin-bottom: 8px; }
.banner { border-radius: 16px; padding: 12px 14px; margin: 12px 0; background: var(--card); }
.banner.bad { background: rgba(255,90,90,.1); border: 1px solid rgba(255,90,90,.3); }
.banner .row { margin-top: 10px; flex-wrap: wrap; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(255,255,255,.2); border-top-color: var(--yellow); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

#toast { position: fixed; z-index: 100; left: 50%; top: calc(var(--sat) + 14px); transform: translate(-50%, -150%); background: #fff; color: #111; padding: 11px 18px; border-radius: 999px; font-weight: 800; box-shadow: 0 8px 30px rgba(0,0,0,.4); transition: transform .25s cubic-bezier(.2,1.4,.4,1); max-width: calc(100vw - 32px); text-align: center; font-size: .92rem; }
#toast.show { transform: translate(-50%, 0); }
#toast.err { background: var(--bad); color: #fff; }

/* sheet */
.sheet-back { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,0); display: flex; align-items: flex-end; justify-content: center; transition: background .2s; }
.sheet-back.open { background: rgba(0,0,0,.55); }
.sheet { width: 100%; max-width: 520px; max-height: 88dvh; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; background: var(--bg2); border-radius: 26px 26px 0 0; padding: 10px 20px calc(22px + var(--sab)); transform: translateY(100%); transition: transform .22s ease-out; border: 1px solid var(--line); border-bottom: 0; }
.sheet-back.open .sheet { transform: none; }
.sheet-grip { width: 42px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 14px; }
.sheet h3 { font-size: 1.25rem; }
.sheet textarea, .sheet input { margin: 8px 0 12px; }
@media (min-width: 700px) { .sheet-back { align-items: center; } .sheet { border-radius: 26px; border-bottom: 1px solid var(--line); padding-bottom: 22px; } }
.menu { display: flex; flex-direction: column; gap: 4px; }
.menu-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.menu-item { text-align: left; padding: 15px 14px; border-radius: 14px; font-weight: 800; background: var(--card); }
.menu-item.danger { color: var(--bad); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.pill { padding: 9px 14px; border-radius: 999px; background: var(--card); border: 1.5px solid var(--line); font-weight: 700; font-size: .9rem; }
.pill.on { border-color: var(--yellow); color: var(--yellow); }
.note { background: rgba(255,230,0,.08); border-radius: 12px; padding: 10px; }

/* avatar */
.avatar { border-radius: 50%; display: grid; place-items: center; flex: none; line-height: 1; box-shadow: inset 0 -4px 0 rgba(0,0,0,.15); }

/* ---------- auth ---------- */
.auth { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: calc(var(--sat) + 24px) 18px calc(var(--sab) + 24px); gap: 22px;
  background: radial-gradient(800px 500px at 15% -10%, rgba(255,61,139,.35), transparent 60%), radial-gradient(700px 500px at 100% 110%, rgba(51,214,255,.25), transparent 60%), var(--bg); }
.auth-hero { text-align: center; }
.hero-dice { font-size: 4.2rem; line-height: 1.1; margin-bottom: 6px; animation: wob 2.4s ease-in-out infinite; }
.logo-text { font-size: 3rem; font-weight: 950; margin: 0; background: linear-gradient(90deg, var(--yellow), #ff9a3d, var(--dare)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tagline { font-size: 1.1rem; font-weight: 700; color: #d8d6ef; }
.hero-chips { display: flex; justify-content: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.auth-card { width: 100%; max-width: 400px; background: rgba(27,27,40,.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 26px; padding: 22px; }
.auth-card h2 { font-size: 1.35rem; margin-bottom: 14px; }
.form-err { color: var(--bad); font-weight: 700; min-height: 1em; margin: 0 0 8px; }
.switch { text-align: center; margin-top: 16px; color: var(--muted); }
.invite-note { background: rgba(255,230,0,.1); border-radius: 12px; padding: 10px 12px; font-weight: 700; }
@media (min-width: 900px) { .auth { flex-direction: row; gap: 80px; } .auth-hero { text-align: left; max-width: 420px; } .hero-chips { justify-content: flex-start; } .logo-text { font-size: 4.2rem; } }

/* ---------- stories ---------- */
.stories { display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; touch-action: pan-x pan-y; -webkit-overflow-scrolling: touch; padding: 4px 2px 12px; margin: 0 -16px 6px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.stories::-webkit-scrollbar { display: none; }
.story { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; flex: none; width: 74px; }
.story-ring { padding: 3px; border-radius: 50%; background: var(--line); }
.story.unseen .story-ring { background: conic-gradient(var(--yellow), var(--dare), var(--truth), var(--yellow)); }
.story-ring .avatar { border: 3px solid var(--bg); }
.story.locked .avatar { filter: blur(3px) saturate(.6); }
.story-lock { position: absolute; top: 22px; font-size: 1.2rem; }
.story-name { font-size: .74rem; font-weight: 700; max-width: 74px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story-streak { position: absolute; top: 46px; right: 0; font-size: .68rem; font-weight: 900; background: var(--bg); border-radius: 999px; padding: 1px 5px; }

/* ---------- drop card ---------- */
.drop { background: var(--card); border-radius: 28px; padding: 18px; border: 1px solid var(--line); margin: 6px 0 4px; }
.drop-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; }
.drop-title { font-weight: 900; font-size: 1.15rem; }
.drop.pending { text-align: center; padding: 42px 22px; position: relative; overflow: hidden;
  background: radial-gradient(400px 220px at 50% 0%, rgba(122,61,255,.35), transparent 70%), radial-gradient(300px 200px at 0% 100%, rgba(255,61,139,.2), transparent 70%), var(--card); }
.fog { font-size: 3.4rem; animation: drift 5s ease-in-out infinite; }
@keyframes drift { 50% { transform: translateX(10px) scale(1.06); opacity: .75; } }
.pulse-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.pulse-dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); animation: pd 1.4s infinite; }
.pulse-dots span:nth-child(2) { animation-delay: .2s; } .pulse-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes pd { 0%, 100% { opacity: .2; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.1); } }
.choices { display: grid; gap: 12px; margin-top: 10px; }
.choices.compact .choice { min-height: 0; padding: 14px; }
.choice { text-align: left; border-radius: 22px; padding: 18px; min-height: 140px; display: flex; flex-direction: column; gap: 8px; transition: transform .12s; position: relative; overflow: hidden; }
.choice:active { transform: scale(.97); }
.choice.truth { background: linear-gradient(140deg, #33d6ff, #2a7bff); color: #03141c; }
.choice.dare { background: linear-gradient(140deg, #ff3d8b, #ff7a18); color: #fff; }
.choice-kind { font-weight: 950; letter-spacing: .14em; font-size: .82rem; opacity: .85; }
.choice-text { font-weight: 900; font-size: 1.28rem; line-height: 1.2; }
.choice-hint { margin-top: auto; font-weight: 800; font-size: .84rem; opacity: .85; }
@media (min-width: 560px) { .choices:not(.compact) { grid-template-columns: 1fr 1fr; } .choices:not(.compact) .choice { min-height: 190px; } }
.prompt-small { font-weight: 800; color: #d8d6ef; }
.mypost { display: flex; gap: 14px; align-items: flex-start; }
.mypost-thumb { position: relative; width: 96px; height: 128px; border-radius: 16px; overflow: hidden; background: #000; flex: none; display: grid; place-items: center; font-size: 1.5rem; }
.mypost-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mypost-text { flex: 1; text-align: left; background: var(--bg2); border-radius: 16px; padding: 14px; font-weight: 800; font-size: 1.05rem; }
.mypost-meta { flex: 1; min-width: 0; }
.mypost .mypost-text + .mypost-meta { display: none; }
.caption { font-weight: 700; }
.processing { display: flex; gap: 10px; align-items: center; margin: 10px 0; color: var(--muted); font-weight: 700; }
.play { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.6rem; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.6); pointer-events: none; }

/* friends today grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.tile { position: relative; aspect-ratio: 3/4; border-radius: 18px; overflow: hidden; background: var(--bg2); border: 1px solid var(--line); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile-text { position: absolute; inset: 0; padding: 38px 12px 44px; font-weight: 800; font-size: .95rem; text-align: left; overflow: hidden; background: linear-gradient(160deg, #22223a, #15151f); display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; }
.tile-foot { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 6px; align-items: center; padding: 26px 10px 9px; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.tile-name { font-weight: 800; font-size: .84rem; flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-late { position: absolute; top: 8px; right: 8px; font-size: .7rem; font-weight: 900; background: rgba(0,0,0,.6); color: var(--late); border-radius: 999px; padding: 2px 7px; }
.dot-new { position: absolute; top: 9px; left: 9px; width: 11px; height: 11px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 3px rgba(0,0,0,.4); }
.tile.locked .tile-blur { position: absolute; inset: -20px; display: grid; place-items: center; font-size: 4rem; filter: blur(16px) saturate(1.3); opacity: .85; }
.tile-lock { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2rem; }
.waiting { margin-top: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.waiting-list { display: flex; gap: 6px; flex-wrap: wrap; }
.waiting-item { position: relative; opacity: .6; }
.waiting-item .risk { position: absolute; right: -4px; bottom: -4px; font-size: .8rem; }

/* ---------- viewer ---------- */
.viewer { position: fixed; inset: 0; z-index: 60; background: #000; display: grid; place-items: center; animation: vin .18s ease-out; }
.viewer.closing { animation: vout .18s ease-in forwards; }
@keyframes vin { from { opacity: 0; transform: scale(.96); } }
@keyframes vout { to { opacity: 0; transform: translateY(40px); } }
.viewer-stage { position: relative; width: 100%; height: 100%; overflow: hidden; background: #000; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
@media (min-width: 700px) { .viewer { background: rgba(5,5,10,.94); } .viewer-stage { width: auto; height: min(94dvh, 900px); aspect-ratio: 9/16; border-radius: 22px; } }
.v-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 700px) { .v-media { object-fit: contain; } }
.v-text { position: absolute; inset: 0; display: grid; place-items: center; padding: 120px 28px 200px; background: linear-gradient(160deg, #2a2a48, #101018); }
.v-text.truth { background: linear-gradient(160deg, #0f6e8c, #142048); }
.v-text p { font-size: clamp(1.4rem, 6vw, 2.1rem); font-weight: 900; text-align: center; line-height: 1.25; overflow-wrap: anywhere; }
.v-tap { position: absolute; top: 0; bottom: 0; }
.v-tap.left { left: 0; width: 33%; } .v-tap.right { right: 0; width: 67%; }
.v-head { position: absolute; top: 0; left: 0; right: 0; padding: calc(var(--sat) + 8px) 12px 30px; background: linear-gradient(rgba(0,0,0,.65), transparent); }
.pbars { display: flex; gap: 4px; margin-bottom: 10px; }
.pbar { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.3); overflow: hidden; }
.pbar i { display: block; height: 100%; width: 0; background: #fff; }
.pbar.done i { width: 100%; }
.v-user { display: flex; align-items: center; gap: 10px; }
.v-user-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.v-user-txt strong { font-size: .98rem; }
.v-user-txt .small { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; color: #ddd; }
.v-btn { width: 38px; height: 38px; border-radius: 50%; font-size: 1.15rem; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.12); flex: none; }
.v-prompt { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; font-weight: 800; font-size: .95rem; text-shadow: 0 1px 6px rgba(0,0,0,.7); }
.v-prompt .tag { flex: none; margin-top: 1px; }
.v-foot { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 12px calc(var(--sab) + 14px); background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.v-caption { font-weight: 800; font-size: 1.05rem; text-align: center; margin-bottom: 12px; text-shadow: 0 1px 6px rgba(0,0,0,.7); overflow-wrap: anywhere; }
.v-reacts { display: flex; justify-content: center; gap: 6px; margin-bottom: 10px; }
.v-react { display: flex; align-items: center; gap: 2px; font-size: 1.5rem; padding: 6px 9px; border-radius: 999px; background: rgba(255,255,255,.12); transition: transform .15s; }
.v-react b { font-size: .78rem; min-width: 0; }
.v-react.on { background: rgba(255,230,0,.3); }
.v-react.pop { transform: scale(1.3); }
.v-reviews { display: flex; gap: 8px; }
.v-review { flex: 1; padding: 11px; border-radius: 999px; font-weight: 900; background: rgba(255,255,255,.12); font-size: .92rem; }
.v-review.ok.on { background: var(--ok); color: #04210f; }
.v-review.no.on { background: var(--bad); color: #fff; }
.v-own { text-align: center; display: flex; flex-direction: column; gap: 6px; font-weight: 800; }
.viewer.paused .v-head, .viewer.paused .v-foot { opacity: .35; transition: opacity .2s; }

/* ---------- compose / camera ---------- */
.compose { position: fixed; inset: 0; background: #000; }
.compose-pick { -webkit-overflow-scrolling: touch; overscroll-behavior: contain; min-height: 100%; padding: calc(var(--sat) + 60px) 18px calc(var(--sab) + 20px); max-width: 640px; margin: 0 auto; overflow-y: auto; height: 100%; }
.compose-pick h2 { font-size: 1.8rem; font-weight: 900; }
.compose-pick .x-btn { position: absolute; top: calc(var(--sat) + 12px); left: 12px; }
.compose-empty { padding-top: calc(var(--sat) + 80px); }
.cam { position: absolute; inset: 0; overflow: hidden; }
@media (min-width: 700px) { .cam { left: 50%; right: auto; width: min(100vw, calc(100dvh * 9 / 16)); transform: translateX(-50%); } }
.cam-preview, .review-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #111; }
.cam-preview.mirror { transform: scaleX(-1); }
.cam-top { position: absolute; top: 0; left: 0; right: 0; display: flex; gap: 10px; align-items: flex-start; padding: calc(var(--sat) + 12px) 12px 30px; background: linear-gradient(rgba(0,0,0,.6), transparent); z-index: 2; }
.x-btn { width: 44px; height: 44px; border-radius: 50%; background: rgba(0,0,0,.45); font-size: 1.15rem; display: grid; place-items: center; flex: none; color: #fff; }
.x-spacer { width: 46px; flex: none; }
.cam-prompt { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-weight: 900; font-size: 1.02rem; text-shadow: 0 1px 8px rgba(0,0,0,.8); padding-top: 4px; }
.cam-msg { position: absolute; inset: 0; display: grid; place-items: center; padding: 30px; text-align: center; font-weight: 800; color: #ddd; z-index: 1; }
.rec-time { position: absolute; top: calc(var(--sat) + 120px); left: 50%; transform: translateX(-50%); background: var(--bad); padding: 4px 12px; border-radius: 999px; font-weight: 900; z-index: 2; font-variant-numeric: tabular-nums; }
.cam-bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px calc(var(--sab) + 16px); background: linear-gradient(transparent, rgba(0,0,0,.65)); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cam-bottom.review { align-items: stretch; }
.mode-switch { display: flex; background: rgba(0,0,0,.5); border-radius: 999px; padding: 4px; gap: 2px; }
.mode-switch button { padding: 8px 16px; border-radius: 999px; font-weight: 800; font-size: .9rem; color: #ccc; }
.mode-switch button.on { background: #fff; color: #111; }
.cam-controls { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 340px; }
.upload-btn { width: 64px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 1.6rem; cursor: pointer; font-weight: 800; }
.upload-btn.ghosty { font-size: .95rem; color: #ccc; }
.shutter { position: relative; width: 84px; height: 84px; border-radius: 50%; border: 6px solid #fff; display: grid; place-items: center; }
.shutter:disabled { opacity: .35; }
.shutter::after { content: ''; width: 62px; height: 62px; border-radius: 50%; background: rgba(255,255,255,.9); transition: all .2s; }
.shutter.vid::after { background: var(--bad); }
.shutter.recording::after { width: 30px; height: 30px; border-radius: 8px; }
.shutter-fill { --p: 0; position: absolute; inset: -6px; border-radius: 50%; background: conic-gradient(var(--yellow) calc(var(--p) * 360deg), transparent 0); -webkit-mask: radial-gradient(circle, transparent 36px, #000 37px); mask: radial-gradient(circle, transparent 36px, #000 37px); }
.cam-hint { font-size: .8rem; color: #ccc; margin: 0; font-weight: 700; }
.text-mode { background: #0b0b12; }
.text-card { position: absolute; top: calc(var(--sat) + 150px); left: 16px; right: 16px; bottom: calc(var(--sab) + 160px); border-radius: 26px; padding: 18px; display: flex; flex-direction: column; }
.text-card.truth { background: linear-gradient(150deg, #33d6ff, #2a7bff); }
.text-card .text-answer { flex: 1; background: transparent; border: 0; font-size: 1.6rem; font-weight: 900; color: #03141c; padding: 0; }
.text-card .text-answer::placeholder { color: rgba(3,20,28,.45); }
.text-card .small { color: rgba(3,20,28,.65); text-align: right; }
.text-actions { width: 100%; max-width: 420px; }
.caption-input { background: rgba(0,0,0,.55); border-color: rgba(255,255,255,.2); }

/* ---------- friends ---------- */
.invite-card { background: linear-gradient(135deg, rgba(255,61,139,.2), rgba(122,61,255,.2)); border: 1px solid rgba(255,61,139,.35); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.invite-link code { display: block; background: rgba(0,0,0,.35); border-radius: 12px; padding: 10px 12px; font-size: .88rem; overflow-wrap: anywhere; }
.search { margin-bottom: 10px; }
.list { display: flex; flex-direction: column; gap: 6px; }
.urow { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 18px; background: var(--card); text-align: left; width: 100%; }
.urow-txt { display: flex; flex-direction: column; min-width: 0; }
.urow-txt strong, .urow-txt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av-wrap { position: relative; }
.av-check { position: absolute; right: -3px; bottom: -3px; width: 18px; height: 18px; border-radius: 50%; background: var(--ok); color: #04210f; font-size: .7rem; font-weight: 900; display: grid; place-items: center; border: 2px solid var(--card); }
.streak-big { font-weight: 950; font-size: 1.1rem; white-space: nowrap; }
.streak-big.risk { color: var(--late); }
.add-card { display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 420px; margin: 40px auto; background: var(--card); border-radius: 28px; border: 1px solid var(--line); }
.add-card h2 { margin: 8px 0 0; }

/* ---------- profile ---------- */
.profile-head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.profile-head h2 { margin: 10px 0 0; font-size: 1.6rem; }
.av-edit { position: relative; }
.av-pen { position: absolute; right: -2px; bottom: 2px; background: var(--card); border-radius: 50%; width: 32px; height: 32px; display: grid; place-items: center; font-size: .9rem; border: 2px solid var(--bg); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; margin: 14px 0 6px; }
.stat { background: var(--card); border-radius: 18px; padding: 12px 6px; display: flex; flex-direction: column; gap: 2px; }
.stat b { font-size: 1.3rem; }
.stat span { font-size: .75rem; color: var(--muted); font-weight: 700; }
.cal { background: var(--card); border-radius: var(--radius); padding: 14px; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-dow { text-align: center; font-size: .72rem; color: var(--muted); font-weight: 800; }
.cal-day { position: relative; aspect-ratio: 1; border-radius: 10px; background: var(--bg2); font-size: .8rem; font-weight: 800; display: grid; place-items: center; color: var(--muted); }
.cal-day.truth { background: var(--truth); color: #04232e; }
.cal-day.dare { background: var(--dare); color: #fff; }
.cal-day.frozen { background: rgba(130,200,255,.18); }
.cal-day.today { outline: 2px solid var(--yellow); }
.cal-day.future { opacity: .35; }
.cal-day i { position: absolute; right: 1px; bottom: 0; font-style: normal; font-size: .62rem; }
.cal-legend { margin-top: 10px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.lg { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-left: 4px; }
.lg.truth { background: var(--truth); } .lg.dare { background: var(--dare); }
.settings { display: flex; flex-direction: column; gap: 6px; }
.setting { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border-radius: 18px; background: var(--card); text-align: left; width: 100%; text-decoration: none; color: var(--text); }
.setting p { margin: 2px 0 0; }
.setting.danger strong { color: var(--bad); }
.switch { position: relative; }
label.switch { width: 52px; height: 30px; flex: none; margin: 0; }
label.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.slider { position: absolute; inset: 0; background: var(--line); border-radius: 999px; transition: .2s; }
.slider::before { content: ''; position: absolute; width: 24px; height: 24px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
label.switch input:checked + .slider { background: var(--ok); }
label.switch input:checked + .slider::before { transform: translateX(22px); }
label.switch input:disabled + .slider { opacity: .4; }
.emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; margin: 12px 0; }
.emoji-grid button { font-size: 1.6rem; padding: 6px; border-radius: 12px; background: var(--card); }
.color-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.color { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(255,255,255,.2); }
.quote { font-weight: 800; font-size: 1.1rem; }
.detail-thumb { border-radius: 16px; max-height: 300px; }
.footer-note { margin-top: 30px; }
.install-steps { display: flex; flex-direction: column; gap: 10px; }
.install-block { background: var(--card); border-radius: 16px; padding: 12px 14px; border: 1.5px solid transparent; }
.install-block.hl { border-color: var(--yellow); }
.install-block ol { margin: 6px 0 0; padding-left: 20px; line-height: 1.6; }
.kbd { background: var(--line); border-radius: 6px; padding: 0 5px; }

/* ---------- admin ---------- */
.report { background: var(--card); border-radius: 18px; padding: 14px; }
.report.resolved { opacity: .55; }
.report-post { background: var(--bg2); border-radius: 14px; padding: 10px; margin: 8px 0; }
.report-media { max-height: 300px; border-radius: 12px; margin-top: 8px; }

/* ---------- phase 2 ---------- */
.seg { overscroll-behavior-x: contain; touch-action: pan-x pan-y; display: flex; gap: 4px; background: var(--bg2); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin: 0 0 12px; overflow-x: auto; scrollbar-width: none; }
.seg > * { flex: 1; text-align: center; padding: 9px 12px; border-radius: 999px; font-weight: 800; font-size: .9rem; color: var(--muted); text-decoration: none; white-space: nowrap; }
.seg > .on { background: var(--text); color: #111; }
.seg.small-seg > * { padding: 6px 10px; font-size: .82rem; }
.people-tabs { margin-top: 6px; }
.dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
@media (min-width: 900px) { .dgrid { grid-template-columns: repeat(3, 1fr); } }
.dcard { background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.dcard-media { position: relative; aspect-ratio: 3/4; background: var(--bg2); overflow: hidden; width: 100%; }
.dcard-media img { width: 100%; height: 100%; object-fit: cover; }
.dcard.locked .tile-blur { position: absolute; inset: -20px; display: grid; place-items: center; font-size: 4rem; filter: blur(16px) saturate(1.3); opacity: .85; }
.dcard-foot { padding: 10px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dcard-user strong { font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ulink { color: var(--text); text-decoration: none; min-width: 0; }
.btn.follow { padding: 4px 10px; min-height: 28px; font-size: .76rem; }
.dcard-prompt { font-size: .8rem; color: var(--muted); font-weight: 700; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vis-toggle { width: 100%; }
.vis-toggle .seg { background: rgba(0,0,0,.55); border-color: rgba(255,255,255,.15); margin: 0; }
.vis-toggle .seg > * { color: #ddd; }
.vis-toggle .seg > .on { background: #fff; color: #111; }
.vis-toggle .seg > [aria-disabled="true"] { opacity: .5; }
.vis-hint { font-size: .76rem; color: #ccc; text-align: center; margin: 6px 0 0; font-weight: 700; }
.text-actions { display: flex; flex-direction: column; gap: 12px; }
.text-mode .vis-toggle .seg { background: var(--bg2); }
.v-av { border-radius: 50%; flex: none; }
.v-follow { background: #fff; color: #111; font-weight: 900; font-size: .8rem; padding: 7px 12px; border-radius: 999px; flex: none; }
.v-review.share { flex: none; width: 100%; background: var(--yellow); color: #111; margin-top: 4px; }
.lrow { color: var(--text); text-decoration: none; }
.lrow.me { outline: 2px solid var(--yellow); }
.rank { width: 38px; text-align: center; font-weight: 950; color: var(--muted); font-size: .95rem; flex: none; }
.rank.top1, .rank.top2, .rank.top3 { font-size: 1.5rem; }
.pts { font-weight: 950; white-space: nowrap; }
.my-score { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; background: linear-gradient(135deg, rgba(255,230,0,.14), rgba(255,61,139,.14)); border: 1px solid rgba(255,230,0,.3); border-radius: 18px; padding: 12px 14px; margin-bottom: 12px; }
.my-score b { font-size: 1.35rem; }
details.earn { margin-top: 20px; background: var(--card); border-radius: 18px; padding: 12px 14px; }
details.earn summary { font-weight: 900; cursor: pointer; }
details.earn li { margin: 6px 0; color: #d8d6ef; font-size: .9rem; }
.invite-title { font-size: 1.1rem; }
.ref-list { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 10px; }
.ref-row { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; }
.stat-row.four { grid-template-columns: repeat(4, 1fr); }
.stat-row.four .stat b { font-size: 1.1rem; }
a.stat { color: var(--text); text-decoration: none; }
.profile-head.pub .row { justify-content: center; }
.center-row { justify-content: center; margin: 8px 0; }
.buddy-line { font-weight: 900; color: #ffa45c; }
.landing { min-height: 100dvh; padding: calc(var(--sat) + 30px) 16px calc(var(--sab) + 30px); max-width: 1100px; margin: 0 auto;
  background: radial-gradient(800px 500px at 15% -10%, rgba(255,61,139,.3), transparent 60%), radial-gradient(700px 500px at 100% 100%, rgba(51,214,255,.18), transparent 60%); }
.landing-hero { text-align: center; padding: 20px 0 26px; }
.landing-cta { display: flex; gap: 10px; justify-content: center; margin: 18px 0 8px; flex-wrap: wrap; }
.landing-cta .btn { min-width: 150px; }
.landing-preview { max-width: 820px; margin: 0 auto; }
.landing .tile-late { color: #fff; }
@media (min-width: 900px) { .landing-hero .tagline { max-width: 560px; margin-left: auto; margin-right: auto; } .landing .grid { grid-template-columns: repeat(6, 1fr); } }
.welcome { max-width: 460px; margin: 20px auto; text-align: center; display: flex; flex-direction: column; gap: 14px; }
.welcome h1 { font-size: 1.8rem; font-weight: 950; }
.invite-hero { background: linear-gradient(150deg, rgba(255,61,139,.25), rgba(122,61,255,.25)); border: 1px solid rgba(255,61,139,.4); border-radius: 26px; padding: 22px 18px; display: flex; flex-direction: column; gap: 10px; }
.invite-hero h2 { margin: 0; font-size: 1.5rem; }
.reward { font-size: 2rem; font-weight: 950; color: var(--yellow); margin: 0; }
.invite-dots { display: flex; justify-content: center; gap: 12px; }
.invite-dots span { width: 46px; height: 46px; border-radius: 50%; border: 2px dashed rgba(255,255,255,.4); display: grid; place-items: center; font-weight: 900; color: var(--muted); }
.export-preview { max-height: 55dvh; margin: 10px auto 14px; border-radius: 16px; }

a.urow, a.menu-item { color: var(--text); text-decoration: none; }
.nowrap { white-space: nowrap; }
.follow-dot { width: 28px; height: 28px; border-radius: 50%; background: var(--yellow); color: #111; font-weight: 950; font-size: 1.1rem; flex: none; display: grid; place-items: center; }
.follow-dot.on { background: var(--card); color: var(--ok); border: 1px solid var(--line); }
.vis-hint { text-shadow: 0 1px 6px rgba(0,0,0,.9); }
.dcard-user { min-width: 0; }
.dcard-user .ulink { flex: 1; overflow: hidden; }
a.chip { color: var(--text); text-decoration: none; }
.dcard-user strong { min-width: 0; flex: 1; }

/* ---------- phase 3: guests + duels ---------- */
.guest-bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 8px; padding: calc(var(--sat) + 10px) calc(14px + var(--sar)) 10px calc(14px + var(--sal)); background: rgba(11,11,18,.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.brand-g { display: flex; align-items: center; gap: 6px; font-weight: 950; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.gb-link { color: var(--muted); font-weight: 800; text-decoration: none; font-size: .9rem; margin-right: 4px; }
@media (max-width: 380px) { .gb-link { display: none; } }
body.guest .view { padding-top: 14px; padding-bottom: calc(var(--sab) + 30px); margin-left: auto; }
.g-hero { margin: 4px 0 10px; }
.g-kicker { font-weight: 950; letter-spacing: .14em; font-size: .8rem; color: var(--yellow); margin: 0 0 6px; }
.g-sub { color: #d8d6ef; font-weight: 700; text-align: center; margin-top: 12px; }
.g-how { display: grid; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 24px 0; }
@media (min-width: 700px) { .g-how { grid-template-columns: repeat(3, 1fr); } .g-how .btn { grid-column: 1 / -1; } }
.invite-banner { background: rgba(255,230,0,.1); border: 1px solid rgba(255,230,0,.3); font-weight: 700; }
.auth-sheet .auth-form { margin-top: 10px; }
.duel-list { display: flex; flex-direction: column; gap: 14px; }
.duel { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 14px; }
.duel-head { display: flex; align-items: center; gap: 8px; }
.duel-prompt { display: block; font-weight: 900; font-size: 1.05rem; color: var(--text); text-decoration: none; margin: 8px 0 12px; }
.duel-sides { display: grid; grid-template-columns: 1fr; gap: 10px; align-items: start; }
@media (min-width: 600px) { .duel-sides { grid-template-columns: 1fr auto 1fr; } }
.vs { justify-self: center; align-self: center; width: 44px; height: 44px; border-radius: 50%; background: var(--yellow); color: #111; font-weight: 950; display: grid; place-items: center; }
.duel-side { display: flex; flex-direction: column; gap: 8px; min-width: 0; border-radius: 18px; }
.duel-side.won .duel-media { outline: 3px solid var(--yellow); }
.duel-media, .duel-empty { position: relative; aspect-ratio: 3/4; border-radius: 16px; overflow: hidden; background: var(--bg2); width: 100%; }
@media (max-width: 599px) { .duel-media, .duel-empty { aspect-ratio: 4/3; } }
.duel-media img { width: 100%; height: 100%; object-fit: cover; }
.duel-media.locked .tile-blur { position: absolute; inset: -20px; display: grid; place-items: center; font-size: 4rem; filter: blur(16px); opacity: .85; }
.duel-empty { display: grid; place-items: center; text-align: center; color: var(--muted); border: 2px dashed var(--line); padding: 10px; }
.duel-user { color: var(--text); text-decoration: none; }
.duel-user strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vbar { position: relative; height: 26px; border-radius: 999px; background: var(--bg2); overflow: hidden; }
.vbar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--dare), #ff7a18); }
.vbar span { position: relative; display: block; text-align: center; font-weight: 900; font-size: .8rem; line-height: 26px; }
.duel-actions { margin-top: 12px; }
.duel-how { font-size: .9rem; }
.duel-banner { display: block; color: var(--text); text-decoration: none; background: linear-gradient(135deg, rgba(255,61,139,.2), rgba(255,122,24,.2)); border: 1px solid rgba(255,61,139,.4); }
.duel-me { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 8px; font-weight: 800; font-size: .85rem; text-shadow: 0 1px 6px rgba(0,0,0,.9); }
.duel-me input { width: 20px; height: 20px; accent-color: var(--yellow); }
.duel-note { text-align: center; font-weight: 900; margin: 0; text-shadow: 0 1px 6px rgba(0,0,0,.9); }
.single { max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.single-prompt { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.single-prompt h2 { font-size: 1.4rem; }
.single-media { position: relative; width: 100%; aspect-ratio: 3/4; max-height: 70dvh; border-radius: 22px; overflow: hidden; background: var(--bg2); }
.single-media img { width: 100%; height: 100%; object-fit: cover; }
.single-text { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; font-weight: 900; font-size: 1.5rem; background: linear-gradient(160deg, #0f6e8c, #142048); }
.single-media.locked .tile-blur { position: absolute; inset: -20px; display: grid; place-items: center; font-size: 6rem; filter: blur(18px); opacity: .85; }
.single-lock { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-weight: 800; }
.big-play { font-size: 3rem; }
.single-cta { background: linear-gradient(150deg, rgba(255,61,139,.2), rgba(122,61,255,.2)); border: 1px solid rgba(255,61,139,.35); border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }

.guest-bar .btn { white-space: nowrap; }
@media (max-width: 420px) { .gb-link { display: none; } .guest-bar .btn.small { padding: 7px 11px; } }
.dgrid > .duel-page { grid-column: 1 / -1; }
.chip:empty { display: none; }
/* desktop sidebar is opaque: a full-height backdrop blur repaints on every scroll frame in Chrome */
@media (min-width: 900px) { .nav { backdrop-filter: none; -webkit-backdrop-filter: none; } }
.drop.mine .row.end { flex-wrap: wrap; }
.drop.mine .row.end .btn { white-space: nowrap; }

/* ---------- phase 4: deck matches ---------- */
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--line); }
.dots i.on { background: var(--yellow); border-color: var(--yellow); box-shadow: 0 0 6px rgba(255,230,0,.5); }
.play-hero { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text); padding: 16px; border-radius: var(--radius); margin: 4px 0 8px;
  background: linear-gradient(135deg, rgba(255,61,139,.28), rgba(122,61,255,.28) 60%, rgba(51,214,255,.22)); border: 1px solid rgba(255,61,139,.4); }
.play-hero p { margin: 2px 0 0; color: #d8d6ef; }
.play-hero-cards { position: relative; width: 64px; height: 56px; flex: none; }
.pc { position: absolute; width: 38px; height: 50px; border-radius: 8px; display: grid; place-items: center; font-size: 1.2rem; background: var(--card); border: 2px solid rgba(255,255,255,.3); }
.pc.c1 { left: 0; transform: rotate(-14deg); } .pc.c2 { left: 13px; top: -2px; background: var(--dare); } .pc.c3 { left: 26px; transform: rotate(14deg); background: var(--truth); }
.play-go { font-size: 1.6rem; font-weight: 900; margin-left: auto; }
.mrow-wrap { display: flex; flex-direction: column; gap: 6px; }
.mrow { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 18px; background: var(--card); color: var(--text); text-decoration: none; border-left: 4px solid var(--deck, var(--line)); min-width: 0; }
.mrow.hot { box-shadow: 0 0 0 2px rgba(255,230,0,.35); }
.mrow-deck { font-size: 1.3rem; }
.mrow-txt { display: flex; flex-direction: column; min-width: 0; }
.mrow-txt strong, .mrow-txt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrow-score { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.mrow-score .dots i { width: 8px; height: 8px; border-width: 1.5px; }
.mrow-actions { padding-left: 54px; }
.avatar.q { background: var(--bg2); font-size: 20px; }
.deadline { color: var(--late); font-weight: 800; white-space: nowrap; }
.deck-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.deck-card { position: relative; text-align: left; border-radius: 20px; padding: 14px; min-height: 170px; display: flex; flex-direction: column; gap: 6px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--deck) 70%, #000), #15151f 85%); border: 2px solid transparent; transition: transform .12s; }
.deck-card:active { transform: scale(.97); }
.deck-card.on { border-color: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--deck) 60%, transparent); }
.deck-card.locked { filter: grayscale(.7); opacity: .7; }
.deck-emoji { font-size: 2rem; }
.deck-name { font-size: 1.1rem; font-weight: 950; }
.deck-vibe { font-size: .78rem; color: #e6e4f5; line-height: 1.3; }
.deck-count { margin-top: auto; font-size: .74rem; font-weight: 800; color: rgba(255,255,255,.75); }
.deck-18 { position: absolute; top: 10px; right: 10px; background: var(--bad); color: #fff; font-weight: 900; font-size: .7rem; border-radius: 999px; padding: 2px 7px; }
.urow.dim { opacity: .5; }
.random-opp { border: 1.5px dashed rgba(255,230,0,.5); }
.match-top { gap: 10px; }
.deck-pill { background: color-mix(in srgb, var(--deck) 30%, var(--card)); border-radius: 999px; padding: 5px 12px; font-weight: 900; font-size: .9rem; }
.scoreboard { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; background: var(--card); border-radius: var(--radius); padding: 14px 10px; border: 1px solid var(--line); }
.sb-side { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; text-align: center; opacity: .6; transition: opacity .2s; }
.sb-side.active { opacity: 1; }
.sb-side.active .avatar { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--yellow); }
.sb-side strong { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-mid { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.sb-vs { width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); color: #111; font-weight: 950; display: grid; place-items: center; }
.mpanel { margin: 16px 0; display: flex; flex-direction: column; align-items: stretch; gap: 12px; text-align: center; }
.mpanel h2 { margin: 0; }
.deck-back { align-self: center; width: min(62vw, 240px); aspect-ratio: 5/7; border-radius: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--deck) 85%, #000) 0 14px, color-mix(in srgb, var(--deck) 65%, #000) 14px 28px); border: 4px solid #fff;
  box-shadow: 0 14px 40px rgba(0,0,0,.5), 6px 6px 0 -2px #2a2a3a, 12px 12px 0 -4px #222232; animation: bob 2.4s ease-in-out infinite; }
.deck-back.drawing { animation: pull .5s ease-in forwards; }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-1deg); } }
@keyframes pull { to { transform: translateY(-40px) scale(1.06) rotate(4deg); opacity: .4; } }
.deck-back-emoji { font-size: 3.4rem; }
.deck-back-label { background: rgba(0,0,0,.45); border-radius: 999px; padding: 6px 14px; font-weight: 950; }
.flip { perspective: 1200px; }
.flip-inner { position: relative; transform-style: preserve-3d; }
.flip.anim .flip-inner { animation: flipin .8s cubic-bezier(.3,1.3,.5,1) both; }
@keyframes flipin { from { transform: rotateY(180deg) scale(.9); } to { transform: rotateY(0) scale(1); } }
.flip-front { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip-back { position: absolute; inset: 0; transform: rotateY(180deg); backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 22px; display: grid; place-items: center; font-size: 4rem;
  background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--deck) 85%, #000) 0 14px, color-mix(in srgb, var(--deck) 65%, #000) 14px 28px); border: 4px solid #fff; }
.mcards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mcards.single { grid-template-columns: 1fr; }
@media (max-width: 420px) { .mcards:not(.single) { grid-template-columns: 1fr; } }
.mcard { text-align: left; border-radius: 20px; padding: 16px; min-height: 160px; display: flex; flex-direction: column; gap: 8px; border: 3px solid rgba(255,255,255,.85); box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.mcards.single .mcard { min-height: 0; }
.mcard.truth { background: linear-gradient(140deg, #33d6ff, #2a7bff); color: #03141c; }
.mcard.dare { background: linear-gradient(140deg, #ff3d8b, #ff7a18); color: #fff; }
.mcard:disabled { opacity: 1; }
.mcard-kind { font-weight: 950; letter-spacing: .14em; font-size: .8rem; opacity: .85; }
.mcard-text { font-weight: 900; font-size: 1.15rem; line-height: 1.25; }
.mcard-hint { margin-top: auto; font-weight: 800; font-size: .8rem; opacity: .85; }
.chicken { align-self: center; }
.redo-note { font-weight: 800; color: var(--bad); margin: 0; }
.ans { border-radius: 18px; overflow: hidden; background: #000; }
.ans img, .ans video { width: 100%; max-height: 60dvh; object-fit: contain; display: block; margin: 0 auto; }
.ans-text { padding: 26px 18px; background: linear-gradient(160deg, #0f6e8c, #142048); }
.ans-text.dare { background: linear-gradient(160deg, #8c0f4a, #2a1446); }
.ans-text p { font-size: 1.25rem; font-weight: 900; margin: 0; overflow-wrap: anywhere; }
.ans-cap { padding: 8px 12px; margin: 0; font-weight: 800; background: var(--card); }
.ans-wait { padding: 30px; display: flex; gap: 10px; align-items: center; justify-content: center; background: var(--card); color: var(--muted); }
.laugh { display: flex; gap: 8px; align-items: center; justify-content: center; font-weight: 800; }
.laugh input { width: 20px; height: 20px; accent-color: var(--yellow); }
.rate-row .btn { flex: 1; }
.btn.ok { background: var(--ok); color: #04210f; }
.btn.no { background: var(--bad); color: #fff; }
.win { position: relative; overflow: hidden; background: var(--card); border-radius: var(--radius); padding: 26px 16px; border: 1px solid var(--line); }
.win.won { background: radial-gradient(400px 260px at 50% 0%, rgba(255,230,0,.25), transparent 70%), var(--card); border-color: rgba(255,230,0,.5); }
.trophy { font-size: 4.4rem; animation: pop .7s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes pop { from { transform: scale(.2) rotate(-20deg); opacity: 0; } }
.final-score { font-size: 2rem; font-weight: 950; margin: 0; }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; animation: fall 2.6s linear infinite; }
@keyframes fall { to { transform: translateY(420px) rotate(540deg); opacity: .2; } }
.hist-list { display: flex; flex-direction: column; gap: 6px; }
.hist { background: var(--card); border-radius: 14px; padding: 10px 12px; text-align: left; border-left: 3px solid var(--line); }
.hist.mine { border-left-color: var(--yellow); }
.hist-card { margin: 4px 0; color: #d8d6ef; }
.spin-slow { animation: spin 3s linear infinite; display: inline-block; }
.admin-deck { background: var(--card); border-radius: 14px; padding: 10px 12px; margin-bottom: 8px; }
.admin-deck summary { font-weight: 900; cursor: pointer; }
.admin-cards { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; max-height: 420px; overflow-y: auto; }
.admin-card { display: flex; gap: 8px; align-items: flex-start; font-size: .86rem; }
.admin-card.off { opacity: .45; text-decoration: line-through; }
.admin-card input { width: 18px; height: 18px; flex: none; }
@media (prefers-reduced-motion: reduce) { .deck-back, .hero-dice, .fog, .boot, .spin-slow, .confetti i { animation: none !important; } }
.mrow-txt span { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ---------- phase 5: squads ---------- */
.people-tabs > * { padding: 9px 6px; font-size: .86rem; }
.sq-avatar { border-radius: 30%; display: grid; place-items: center; flex: none; line-height: 1; box-shadow: inset 0 -4px 0 rgba(0,0,0,.15); }
.sq-list { margin-top: 4px; }
.sq-row { color: var(--text); text-decoration: none; padding: 12px; }
.sq-row .urow-txt { flex: 1; }
.sq-row .urow-txt .row { min-width: 0; }
.sq-row .urow-txt strong { min-width: 0; }
.sq-row.unread strong { color: #fff; }
.sq-row.unread .urow-txt > .small { color: var(--text); font-weight: 700; }
.sq-row > .grow { display: none; }
.sq-row-end { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.sq-unread { background: var(--dare); color: #fff; font-size: .74rem; font-weight: 900; min-width: 22px; height: 22px; border-radius: 11px; display: grid; place-items: center; padding: 0 6px; }
.sq-empty .btn { margin-top: 8px; }
.sq-look-preview { margin: 4px 0 12px; font-size: 1.15rem; }
.emoji-grid button.on { outline: 2px solid var(--yellow); }
.color.on { border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.25); }
.sq-join .sq-avatar { margin-bottom: 6px; }
.sq-join-list { text-align: left; padding: 0 0 0 4px; list-style: none; margin: 6px 0 14px; display: flex; flex-direction: column; gap: 6px; font-weight: 700; }

/* chat screen: fixed, full height (phones hide the tab bar; desktop keeps the sidebar) */
body.chat .view { padding: 0; max-width: none; min-height: 0; }
@media (max-width: 899px) { body.chat .nav { display: none; } }
@media (min-width: 900px) { body.chat .view { margin-left: 230px; } }
.chat { position: fixed; z-index: 5; left: 0; right: 0; top: var(--vvt, 0px); height: var(--vvh, 100dvh); display: flex; flex-direction: column; background: var(--bg); }
@media (min-width: 900px) { .chat { left: 230px; } }
.chat-head, .chat-strip, .chat-reply, .chat-compose { width: 100%; max-width: 780px; margin: 0 auto; }
.chat-head { display: flex; align-items: center; gap: 8px; padding: calc(var(--sat) + 8px) calc(12px + var(--sar)) 8px calc(8px + var(--sal)); border-bottom: 1px solid var(--line); flex: none; }
.chat-back { font-size: 2rem; line-height: 1; color: var(--text); text-decoration: none; padding: 0 8px 4px 4px; }
.chat-title { display: flex; align-items: center; gap: 10px; min-width: 0; text-align: left; }
.chat-title-txt { display: flex; flex-direction: column; min-width: 0; }
.chat-title-txt strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.05rem; }
.chat-streak { padding: 5px 10px; font-size: .88rem; flex: none; }
.chat-strip { display: flex; flex-direction: column; gap: 6px; padding: 8px calc(12px + var(--sar)) 6px calc(12px + var(--sal)); flex: none; max-height: 42dvh; overflow-y: auto; }
.strip-card { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; text-align: left; width: 100%; }
.strip-card.dare { background: linear-gradient(135deg, rgba(255,61,139,.14), rgba(51,214,255,.10)), var(--card); }
.strip-card.party { background: linear-gradient(135deg, rgba(255,230,0,.12), rgba(122,61,255,.12)), var(--card); }
.strip-card p { margin: 2px 0 0; }
.strip-ico { font-size: 1.5rem; flex: none; }
.strip-prompt { font-weight: 900; font-size: .98rem; line-height: 1.25; margin: 4px 0 2px !important; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.strip-wait { margin: 0 !important; }
.strip-actions { align-items: stretch; flex: none; }
.chat-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 6px calc(10px + var(--sar)) 10px calc(10px + var(--sal)); }
.chat-list, .chat-older { max-width: 780px; margin: 0 auto; }
.chat-older { text-align: center; min-height: 8px; }
.chat-newpill { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(var(--sab) + 76px); background: var(--yellow); color: #111; font-weight: 900; border-radius: 999px; padding: 8px 14px; box-shadow: 0 6px 20px rgba(0,0,0,.4); z-index: 3; }
.chat-reply { display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: var(--bg2); border-top: 1px solid var(--line); flex: none; }
.chat-reply p { margin: 0; }
.chat-compose { display: flex; align-items: flex-end; gap: 8px; padding: 8px calc(10px + var(--sar)) calc(var(--sab) + 8px) calc(10px + var(--sal)); border-top: 1px solid var(--line); flex: none; background: var(--bg); }
.chat-plus { width: 42px; height: 42px; border-radius: 50%; background: var(--card); font-size: 1.4rem; flex: none; display: grid; place-items: center; }
.chat-input { flex: 1; min-height: 42px; max-height: 120px; border-radius: 21px; padding: 10px 14px; line-height: 1.3; }
.chat-send { width: 42px; height: 42px; border-radius: 50%; background: var(--yellow); color: #111; font-size: 1.2rem; font-weight: 900; flex: none; display: grid; place-items: center; }
.chat-send:disabled { opacity: .5; }
.msg-day { text-align: center; margin: 14px 0 8px; }
.msg-day span, .msg-sys span { display: inline-block; font-size: .74rem; font-weight: 800; color: var(--muted); background: var(--bg2); border-radius: 999px; padding: 4px 10px; }
.msg-sys { text-align: center; margin: 8px 0; }
.msg-sys span { max-width: 92%; white-space: normal; line-height: 1.35; }
.msg-sys.dare span { color: var(--text); background: linear-gradient(135deg, rgba(255,61,139,.22), rgba(51,214,255,.18)); font-size: .84rem; padding: 7px 12px; }
.msg { display: flex; align-items: flex-end; gap: 8px; margin: 10px 0 0; }
.msg.cont { margin-top: 3px; }
.msg.mine { justify-content: flex-end; }
.msg-av { flex: none; text-decoration: none; }
.msg-av-space { width: 30px; flex: none; }
.msg-col { display: flex; flex-direction: column; gap: 3px; max-width: min(78%, 520px); min-width: 0; }
.msg.mine .msg-col { align-items: flex-end; }
.msg.wide .msg-col { max-width: min(92%, 560px); width: 100%; }
.msg-name { font-size: .74rem; font-weight: 800; color: var(--muted); margin-left: 10px; }
.bubble { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 18px 18px 18px 6px; padding: 8px 12px 6px; min-width: 60px; overflow-wrap: anywhere; cursor: pointer; }
.msg.mine .bubble { background: #2b2440; border-color: #3b3156; border-radius: 18px 18px 6px 18px; }
.msg.cont:not(.mine) .bubble { border-top-left-radius: 8px; }
.bubble.deleted { font-style: italic; color: var(--muted); }
.bubble.photo { padding: 4px; }
.bubble.photo .msg-text { padding: 4px 8px 0; }
.msg-text { margin: 0; white-space: pre-wrap; line-height: 1.35; }
.msg-time { display: block; text-align: right; font-size: .66rem; color: var(--muted); margin-top: 2px; }
.bubble.photo .msg-time { padding: 0 8px 2px; }
.msg-photo { border-radius: 14px; max-height: 320px; width: auto; max-width: 100%; object-fit: cover; }
.msg-quote { display: flex; flex-direction: column; text-align: left; border-left: 3px solid var(--yellow); background: rgba(255,255,255,.06); border-radius: 8px; padding: 4px 8px; margin: 2px 0 6px; font-size: .8rem; max-width: 100%; }
.msg-quote span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-reacts { display: flex; flex-wrap: wrap; gap: 4px; }
.msg-react { display: inline-flex; align-items: center; gap: 3px; background: var(--bg2); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; font-size: .9rem; }
.msg-react span { font-size: .74rem; font-weight: 800; color: var(--muted); }
.msg-react.on { border-color: var(--yellow); }
.mention { color: var(--yellow); }
.msg.flash .bubble, .msg.flash .msg-card { box-shadow: 0 0 0 3px var(--yellow); transition: box-shadow .3s; }
.msg-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; width: 100%; cursor: pointer; }
.msg-card.answer { background: linear-gradient(160deg, rgba(255,61,139,.10), rgba(51,214,255,.07)), var(--card); }
.msg-card.party { background: linear-gradient(160deg, rgba(255,230,0,.08), rgba(122,61,255,.10)), var(--card); cursor: default; }
.msg-card p { margin: 0; }
.msg-card-head { font-weight: 900; color: var(--muted); }
.msg-card-prompt { font-weight: 800; font-size: .9rem; margin: 0 0 6px !important; }
.msg-media { width: 100%; max-height: 420px; object-fit: contain; border-radius: 14px; background: #000; }
.msg-answer-text { font-weight: 900; font-size: 1.08rem; border-radius: 14px; padding: 14px; background: var(--bg2); line-height: 1.3; }
.msg-answer-text.truth { background: linear-gradient(160deg, #0f6e8c, #142048); }
.msg-cap { margin-top: 4px !important; }
.msg-locked { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 90px; border-radius: 14px; background: repeating-linear-gradient(45deg, #1d1d2c 0 10px, #222235 10px 20px); font-weight: 800; }
.msg-duel { width: 100%; }
.msg-duel .duel { margin: 0; }
.react-pick { display: flex; justify-content: space-between; gap: 6px; margin-bottom: 12px; }
.react-pick button { font-size: 1.7rem; width: 48px; height: 48px; border-radius: 50%; background: var(--card); }
.react-pick button.on { outline: 2px solid var(--yellow); }
.photo-full img { width: 100%; border-radius: 16px; }
.party-players { display: flex; flex-wrap: wrap; gap: 6px; }
.party-player { display: inline-flex; align-items: center; gap: 5px; background: var(--bg2); border-radius: 999px; padding: 3px 10px 3px 3px; }
.party-player.turn { outline: 2px solid var(--yellow); }
.party-player b { font-weight: 950; }
.party-actions { margin-top: 6px; }
.party-actions .btn { max-width: 100%; }
.btn.truthbtn { background: var(--truth); color: #04232e; }
.btn.darebtn { background: var(--dare); color: #fff; }
.ell { display: inline-block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; font-weight: 700; }
.btn.ok.on, .btn.no.on { outline: 3px solid #fff; }
.deck-grid.compact .deck-card { min-height: 120px; }
.sq-info .invite-link { margin-bottom: 10px; }
.sq-info .section { margin: 18px 0; }
.setting.danger span { color: var(--bad); font-weight: 800; }
/* polls */
.poll { display: flex; flex-direction: column; gap: 6px; }
.poll-opts { display: flex; flex-direction: column; gap: 6px; }
.poll-opt-row { display: flex; gap: 6px; align-items: stretch; }
.poll-opt { position: relative; flex: 1; display: flex; align-items: center; gap: 8px; text-align: left; background: var(--bg2); border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 12px; overflow: hidden; min-width: 0; }
.poll-opt > * { position: relative; }
.poll-opt.on { border-color: var(--yellow); }
.poll-opt:disabled { opacity: .85; }
.poll-bar { position: absolute !important; left: 0; top: 0; bottom: 0; background: rgba(255,230,0,.14); transition: width .3s; }
.poll-text { flex: 1; font-weight: 800; font-size: .92rem; line-height: 1.25; min-width: 0; overflow-wrap: anywhere; }
.poll-count { font-weight: 900; font-size: .9rem; flex: none; }
.poll-more { width: 34px; border-radius: 12px; background: var(--bg2); color: var(--muted); flex: none; }
.poll-meta { margin: 2px 0 0; }
.poll-write { margin-top: 6px; }
.poll-write p { margin: 0 0 6px; }
.poll-write .seg { margin: 0 0 8px; width: max-content; }
.poll-input { padding: 10px 12px; }
/* prompt picker */
.pp-options { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.pp-opt { display: flex; align-items: flex-start; gap: 8px; text-align: left; background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; padding: 11px 12px; font-weight: 800; line-height: 1.25; }
.pp-opt.on { border-color: var(--yellow); background: rgba(255,230,0,.08); }
.pp-label { margin: 8px 0 6px; }
.pp-own { margin-top: 6px !important; }
.duel-sides.mini { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.duel-sides.mini .vs { width: 34px; height: 34px; font-size: .8rem; }
.msg-duel .duel-media, .msg-duel .duel-empty { aspect-ratio: 4/3; }
.msg-duel .duel { padding: 12px; }
/* compact strip on phones */
.strip-card { padding: 8px 10px; }
.strip-card.dare .strip-prompt { font-size: .92rem; -webkit-line-clamp: 2; margin: 0 0 2px !important; }
.strip-card.dare.done .strip-prompt { -webkit-line-clamp: 1; }
.strip-card .tag { vertical-align: 1px; }
.strip-actions { align-self: center; }
.strip-party-line { margin: 0 !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.strip-card.party .party-actions { margin-top: 4px; }
/* duels in the chat: answers side by side, smaller */
.msg-duel .duel-sides:not(.mini) { grid-template-columns: 1fr auto 1fr; gap: 6px; }
.msg-duel .duel-media, .msg-duel .duel-empty { aspect-ratio: 3/4; }
.msg-duel .vs { width: 30px; height: 30px; font-size: .72rem; }
.msg-duel .duel-prompt { font-size: .98rem; margin: 6px 0 10px; }
.msg-duel .duel-user { font-size: .86rem; gap: 6px; }
.msg-photo { max-width: min(260px, 100%); max-height: 300px; }
.strip-card > .grow { min-width: 0; }
.chat-scroll { display: flex; flex-direction: column; }
.chat-older { margin-top: auto; width: 100%; }
.chat-list { width: 100%; }

/* ================= phase 6: ranks, badges, celebrations, rivalry, recap, Hall of Fame ================= */
.avatar { position: relative; }
.av-rank { position: absolute; right: -3px; bottom: -3px; display: grid; place-items: center; border-radius: 50%; background: #0b0b12; box-shadow: 0 0 0 2px #0b0b12, 0 1px 4px rgba(0,0,0,.5); line-height: 1; pointer-events: auto; }
.rank-chip { display: inline-flex; align-items: center; gap: 2px; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.08); font-size: .78rem; font-weight: 800; white-space: nowrap; }
.rank-chip.big { font-size: .9rem; padding: 5px 12px; background: linear-gradient(90deg, rgba(255,230,0,.16), rgba(255,61,139,.16)); border: 1px solid rgba(255,230,0,.25); }
.lvl-bar { height: 10px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; margin: 7px 0 5px; }
.lvl-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffe600, #ff8a3d, #ff3d8b); box-shadow: 0 0 12px rgba(255,138,61,.6); transition: width .6s ease-out; }
.lvl-bar.sm { height: 7px; margin: 6px 0 4px; }

/* level card (own profile) */
.level-card { display: flex; gap: 14px; align-items: center; width: 100%; text-align: left; margin: 14px 0 4px; padding: 14px 16px; border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,230,0,.10), rgba(255,61,139,.10) 60%, rgba(51,214,255,.08)); border: 1px solid rgba(255,230,0,.22); }
.lc-rank { flex: none; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #2c2c44, #12121c); box-shadow: 0 0 0 3px rgba(255,230,0,.5), 0 0 22px rgba(255,180,0,.35); }
.lc-emoji { font-size: 2rem; }
.lc-name { font-weight: 900; color: var(--yellow); }
.lc-next { display: block; }

/* badge medallions: a rarity ring around a dark face */
.medal { --m: 64px; position: relative; width: var(--m); height: var(--m); flex: none; display: inline-block; }
.medal-ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 210deg, #f4f5fa, #8a8fa0, #e3e5ee, #7d8293, #f4f5fa); box-shadow: 0 3px 10px rgba(0,0,0,.45); }
.medal-face { position: absolute; inset: calc(var(--m) * .085); border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 28%, #34344f, #14141f 70%); box-shadow: inset 0 2px 6px rgba(255,255,255,.08), inset 0 -4px 10px rgba(0,0,0,.6); overflow: hidden; }
.medal-face::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(140deg, rgba(255,255,255,.18), transparent 45%); pointer-events: none; }
.medal-emoji { font-size: calc(var(--m) * .46); line-height: 1; filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); }
.medal.r-rare .medal-ring { background: conic-gradient(from 210deg, #9ff0ff, #2a6bff, #33d6ff, #1b3fd1, #9ff0ff); box-shadow: 0 3px 12px rgba(51,150,255,.45); }
.medal.r-epic .medal-ring { background: conic-gradient(from 210deg, #f0d4ff, #8a3dff, #ff3d8b, #6a1fd1, #f0d4ff); box-shadow: 0 3px 14px rgba(179,90,255,.5); }
.medal.r-legendary .medal-ring { background: conic-gradient(from 0deg, #fff6b0, #ffc400, #b8860b, #ffe680, #ffb000, #fff6b0); box-shadow: 0 0 18px rgba(255,196,0,.55), 0 3px 12px rgba(0,0,0,.4); animation: ringspin 6s linear infinite; }
.medal.secret .medal-ring { background: conic-gradient(from 0deg, #ff3d8b, #ffe600, #7cff6b, #33d6ff, #b388ff, #ff3d8b); box-shadow: 0 0 16px rgba(179,136,255,.6); animation: ringspin 4s linear infinite; }
.medal.locked .medal-ring { background: repeating-conic-gradient(#3a3a4f 0 8deg, #26263a 8deg 16deg); box-shadow: none; animation: none; }
.medal.locked .medal-emoji { filter: grayscale(1) brightness(.55); opacity: .7; }
@keyframes ringspin { to { transform: rotate(360deg); } }

.badge-count { font-weight: 900; color: var(--yellow); font-size: .95rem; }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px 6px; margin-top: 8px; }
.badge-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 4px 8px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); transition: transform .12s; }
.badge-tile:active { transform: scale(.95); }
.badge-tile.locked { background: transparent; border-style: dashed; }
.badge-name { font-size: .74rem; font-weight: 800; line-height: 1.15; text-align: center; min-height: 2.3em; display: flex; align-items: center; }
.badge-tile.locked .badge-name { color: var(--muted); }
.badge-rar { font-size: .62rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: #c9ccd6; }
.badge-rar.r-rare { color: #5cc8ff; } .badge-rar.r-epic { color: #d08bff; } .badge-rar.r-legendary { color: #ffc400; }
.badge-rar.big { font-size: .74rem; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.07); }
.badge-prog { width: 70%; height: 5px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; }
.badge-prog i { display: block; height: 100%; background: var(--yellow); border-radius: inherit; }
.badge-prog.wide { width: 100%; height: 8px; }
.badge-pin { position: absolute; top: 4px; right: 6px; font-size: .8rem; }
.pinned-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 2px 0 6px; }
.pin-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.badge-detail { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 0 4px; }
.badge-detail h2 { margin: 8px 0 0; font-size: 1.5rem; }
.bd-glow { position: relative; padding: 14px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.12), transparent 65%); }
.bd-glow.r-legendary { background: radial-gradient(circle, rgba(255,196,0,.35), transparent 65%); }
.bd-glow.r-epic { background: radial-gradient(circle, rgba(179,90,255,.32), transparent 65%); }
.bd-glow.r-rare { background: radial-gradient(circle, rgba(51,150,255,.3), transparent 65%); }
.bd-desc { font-size: 1.02rem; font-weight: 700; max-width: 340px; }
.bd-prog { width: 100%; max-width: 300px; display: flex; flex-direction: column; gap: 4px; align-items: center; }
.badge-detail .btn { margin-top: 8px; }

/* public profile: rank + pinned badges + rivalry teaser */
.pub-rank { margin: 6px 0 2px; }
.pub-badges { display: flex; align-items: flex-start; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 8px 0 4px; padding: 8px 12px; border-radius: 18px; }
.pub-badges:active { background: rgba(255,255,255,.04); }
.pub-badge { display: flex; flex-direction: column; align-items: center; gap: 3px; max-width: 76px; }
.pub-badge .small { font-size: .68rem; font-weight: 800; line-height: 1.1; }
.pub-badge-count { align-self: center; color: var(--muted); font-weight: 800; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); }
.riv-mini { --pair: linear-gradient(135deg, #2a1f3d, #1b1b28); display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; margin-top: 12px; padding: 12px 14px; border-radius: 18px; color: var(--text); text-decoration: none;
  background: var(--pair); border: 1px solid rgba(255,255,255,.12); position: relative; overflow: hidden; }
.riv-mini::before, .riv-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,11,18,.55), rgba(11,11,18,.25)); pointer-events: none; }
.riv-mini > * { position: relative; }
.riv-mini .small { display: block; opacity: .9; }
.riv-go { font-size: 1.3rem; font-weight: 900; }
.fl-chip { flex: none; padding: 4px 8px; border-radius: 999px; font-size: .74rem; font-weight: 900; background: rgba(255,61,139,.15); color: #ff8fc0; text-decoration: none; margin-right: 6px; }

/* reaction bar */
.rbar { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.rbtn { display: inline-flex; align-items: center; gap: 3px; font-size: 1.25rem; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid transparent; transition: transform .15s; line-height: 1.2; }
.rbtn b { font-size: .74rem; }
.rbtn.on { background: rgba(255,230,0,.22); border-color: rgba(255,230,0,.5); }
.rbtn.pop { transform: scale(1.3); }
.rbar.small .rbtn { font-size: 1.05rem; padding: 3px 8px; }
.rbar-own { padding: 2px 0; }

/* celebrations */
.celebrate { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(5,5,10,.78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity .22s; overflow-y: auto; }
.celebrate.in { opacity: 1; }
.celebrate.out { opacity: 0; }
.cele-card { position: relative; width: 100%; max-width: 400px; text-align: center; padding: 26px 22px 22px; border-radius: 28px; background: linear-gradient(170deg, #22223a, #121219 70%); border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 30px 80px rgba(0,0,0,.6); overflow: hidden; transform: scale(.85); transition: transform .35s cubic-bezier(.2,1.6,.4,1); }
.celebrate.in .cele-card { transform: none; }
.cele-card > * { position: relative; }
.cele-card .confetti { position: absolute; z-index: 0; }
.confetti.big i { width: 9px; height: 16px; animation-duration: 2.2s; }
.cele-kicker { font-weight: 900; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; color: var(--yellow); margin: 0 0 10px; }
.cele-card h2 { font-size: 1.7rem; margin: 12px 0 6px; }
.cele-desc { font-weight: 700; color: #d9d7ee; margin: 8px auto 14px; max-width: 320px; }
.cele-medal, .cele-rank { position: relative; display: grid; place-items: center; width: 210px; height: 210px; margin: 0 auto; }
.rays { position: absolute; inset: 0; border-radius: 50%; background: repeating-conic-gradient(rgba(255,230,0,.22) 0 10deg, transparent 10deg 24deg); -webkit-mask: radial-gradient(circle, #000 30%, transparent 70%); mask: radial-gradient(circle, #000 30%, transparent 70%); animation: ringspin 14s linear infinite; }
.cele-medal.r-epic .rays { background: repeating-conic-gradient(rgba(208,139,255,.28) 0 10deg, transparent 10deg 24deg); }
.cele-medal.r-rare .rays { background: repeating-conic-gradient(rgba(92,200,255,.26) 0 10deg, transparent 10deg 24deg); }
.cele-medal .medal { animation: medalin .7s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes medalin { from { transform: scale(.2) rotate(-30deg); opacity: 0; } }
.cele-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 12px 8px; margin: 6px 0 4px; }
.cele-mini { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: .74rem; font-weight: 800; animation: medalin .6s cubic-bezier(.2,1.6,.4,1) both; }
.cele-mini:nth-child(2) { animation-delay: .08s; } .cele-mini:nth-child(3) { animation-delay: .16s; } .cele-mini:nth-child(4) { animation-delay: .24s; } .cele-mini:nth-child(n+5) { animation-delay: .32s; }
.cele-btns { margin-top: 6px; }
.cele-rank-emoji { position: relative; font-size: 104px; line-height: 1; filter: drop-shadow(0 8px 20px rgba(255,170,0,.45)); animation: medalin .8s cubic-bezier(.2,1.6,.4,1) both; }
.cele-level { font-size: 2.4rem !important; margin: 4px 0 0 !important; background: linear-gradient(90deg, #ffe600, #ff8a3d, #ff3d8b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cele-rankname { font-weight: 900; font-size: 1.15rem; margin: 2px 0; }
.cele-card .btn.big { margin-top: 12px; }

/* recap card */
.cele-card.recap { text-align: left; background: linear-gradient(165deg, #2b1840, #161626 45%, #10241f); }
.recap-head h2 { margin: 2px 0 14px; font-size: 1.45rem; }
.recap-kicker { font-weight: 900; letter-spacing: .08em; text-transform: uppercase; font-size: .76rem; color: var(--yellow); }
.recap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rtile { display: flex; flex-direction: column; gap: 2px; padding: 14px 12px; border-radius: 18px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); }
.rtile b { font-size: 1.9rem; line-height: 1.05; font-weight: 900; }
.rtile span { font-size: .8rem; font-weight: 800; color: #d4d2ea; }
.rtile em { font-style: normal; font-size: .8rem; color: var(--muted); font-weight: 700; }
.rtile.rx { background: linear-gradient(150deg, rgba(255,61,139,.22), rgba(255,255,255,.04)); }
.rtile.pts { background: linear-gradient(150deg, rgba(255,230,0,.2), rgba(255,255,255,.04)); }
.rtile.rdisc { background: linear-gradient(150deg, rgba(51,214,255,.2), rgba(255,255,255,.04)); }
.rtile.streak.kept, .rtile.streak.saved { background: linear-gradient(150deg, rgba(255,138,61,.24), rgba(255,255,255,.04)); }
.rtile.streak.lost { background: linear-gradient(150deg, rgba(255,90,90,.2), rgba(255,255,255,.04)); }
.recap-pairs { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.rp-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 14px; background: rgba(255,255,255,.05); font-weight: 800; }
.rp-row.lost { background: rgba(255,90,90,.08); }
.rp-avs { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.rp-av { position: relative; }
.rp-av i { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); font-style: normal; font-size: .62rem; font-weight: 900; background: #0b0b12; padding: 0 4px; border-radius: 999px; }
.recap-badges { margin-top: 12px; }
.rb { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 999px; background: rgba(255,255,255,.06); margin-top: 6px; }

/* rivalry card */
.riv-hero { --pair: linear-gradient(135deg, #3a1f52, #1b1b28 55%, #123042); position: relative; overflow: hidden; border-radius: 26px; padding: 20px 16px 16px; background: var(--pair); border: 1px solid rgba(255,255,255,.12); margin-bottom: 12px; }
.riv-hero > * { position: relative; }
.riv-faces { display: flex; align-items: center; justify-content: space-around; gap: 8px; }
.riv-face { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text); text-decoration: none; min-width: 0; max-width: 40%; }
.riv-face strong { font-size: 1rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.riv-vs span { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; font-weight: 900; font-size: 1.1rem; background: #0b0b12; color: var(--yellow); box-shadow: 0 0 0 3px rgba(255,230,0,.4), 0 0 24px rgba(255,61,139,.45); transform: rotate(-8deg); }
.riv-level { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 10px 12px; border-radius: 16px; background: rgba(0,0,0,.35); }
.riv-level .small { color: #d4d2ea; }
.riv-lv { flex: none; width: 52px; height: 52px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(150deg, #ff3d8b, #b388ff); box-shadow: 0 4px 14px rgba(255,61,139,.4); transform: rotate(-4deg); }
.riv-lv b { font-size: 1.35rem; line-height: 1; }
.riv-lv span { font-size: .56rem; font-weight: 900; letter-spacing: .1em; }
.riv-lv.sm { width: 44px; height: 44px; }
.riv-lv.sm b { font-size: 1.15rem; }
.riv-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.rstat { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 12px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); color: var(--text); text-decoration: none; min-width: 0; }
.rs-ico { font-size: 1.2rem; }
.rstat b { font-size: 1.35rem; font-weight: 900; }
.rs-label { font-size: .78rem; font-weight: 800; }
.rs-sub { font-size: .72rem; color: var(--muted); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.riv-actions { margin: 12px 0 4px; }
.pin-strip { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; overscroll-behavior-x: contain; }
.pin-strip::-webkit-scrollbar { display: none; }
.pin-tile, .pin-add { position: relative; flex: none; width: 104px; height: 140px; border-radius: 16px; overflow: hidden; background: linear-gradient(160deg, #22223a, #15151f); border: 1px solid var(--line); }
.pin-tile.truth { box-shadow: inset 0 0 0 2px rgba(51,214,255,.35); } .pin-tile.dare { box-shadow: inset 0 0 0 2px rgba(255,61,139,.35); }
.pin-tile img { width: 100%; height: 100%; object-fit: cover; }
.pin-text { position: absolute; inset: 0 0 26px; padding: 12px 10px 0; font-weight: 800; font-size: .8rem; text-align: left; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; }
.pin-kind { position: absolute; left: 6px; bottom: 6px; font-size: .58rem; font-weight: 900; letter-spacing: .05em; padding: 2px 6px; border-radius: 999px; background: rgba(0,0,0,.6); }
.pin-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-style: dashed; color: var(--muted); background: transparent; }
.pin-add span:first-child { font-size: 1.8rem; color: var(--yellow); }
.pin-empty { align-self: center; }
.pin-detail { display: flex; flex-direction: column; gap: 8px; }
.pin-detail h3 { margin: 4px 0; }
.pin-media { width: 100%; max-height: 60dvh; object-fit: contain; border-radius: 16px; background: #000; }
.big-quote { font-size: 1.25rem; padding: 18px; border-radius: 18px; background: var(--card); }
.pick-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.pick-item { display: flex; gap: 10px; align-items: center; text-align: left; padding: 8px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.pick-item img, .pick-txt { flex: none; width: 54px; height: 54px; border-radius: 10px; object-fit: cover; }
.pick-txt { display: grid; place-items: center; padding: 4px; font-size: .6rem; font-weight: 800; overflow: hidden; background: #22223a; }
.pick-item p { margin: 2px 0 0; }
.deck-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.my-cards { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.my-card { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-weight: 700; font-size: .9rem; }
.add-card-box { padding: 12px; border-radius: 18px; background: var(--bg2); border: 1px solid var(--line); }
.add-card-box textarea { width: 100%; margin: 8px 0 4px; }
.deck-play { margin-top: 12px; background: linear-gradient(90deg, #ff3d8b, #b388ff); color: #fff; }
.lockbox { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 18px; background: var(--card); border: 1px dashed var(--line); }
.lockbox p { margin: 0; }
.pair-colors { margin-bottom: 6px; }
.pair-color { width: 40px; height: 40px; display: grid; place-items: center; font-size: .8rem; }
.pair-color.on { border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.35); }
.pair-color.locked { opacity: .45; }

/* match: cards written by a player (shared deck), shared decks in the picker */
.mcard.written { box-shadow: 0 0 0 2px rgba(255,61,139,.55), 0 10px 30px rgba(0,0,0,.35); }
.mcard-by { font-size: .72rem; font-weight: 900; opacity: .85; }
.deck-card.shared { background: var(--pair, linear-gradient(160deg, #6b1c47, #15151f 85%)); }
.center-row { justify-content: center; }

/* Hall of Fame */
.hof-hero { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 22px; margin-bottom: 12px; background: linear-gradient(135deg, rgba(255,196,0,.2), rgba(184,134,11,.1) 50%, rgba(255,255,255,.03)); border: 1px solid rgba(255,196,0,.3); }
.hof-hero h2 { margin: 0 0 2px; background: linear-gradient(90deg, #fff3a0, #ffc400); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hof-hero p { margin: 0; }
.hof-columns { font-size: 2.6rem; filter: drop-shadow(0 4px 12px rgba(255,196,0,.4)); }
.hof-weeks { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 6px; scrollbar-width: none; overscroll-behavior-x: contain; }
.hof-weeks .pill { flex: none; white-space: nowrap; }
.hof-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.hof-card { display: flex; flex-direction: column; text-align: left; border-radius: 18px; overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.hof-card.gold { grid-column: 1 / -1; border: 2px solid #ffc400; box-shadow: 0 0 24px rgba(255,196,0,.3); }
.hof-card.podium { border-color: rgba(255,255,255,.25); }
.hof-media { position: relative; aspect-ratio: 3 / 4; background: #000; }
.hof-card.gold .hof-media { aspect-ratio: 16 / 10; }
.hof-media img { width: 100%; height: 100%; object-fit: cover; }
.hof-rank { position: absolute; top: 8px; left: 8px; font-size: 1.3rem; font-weight: 900; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.6); }
.pin-detail .hof-rank { position: static; }
.hof-foot { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 4px; }
@media (prefers-reduced-motion: reduce) { .medal-ring, .rays, .cele-medal .medal, .cele-mini, .cele-rank-emoji { animation: none !important; } }
/* colour emoji first for the big emoji bits (some desktop fonts carry monochrome emoji glyphs) */
.medal-emoji, .cele-rank-emoji, .av-rank, .rbtn, .lc-emoji, .v-react, .rs-ico, .hof-columns { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", var(--font); }
.confetti.big i { animation-iteration-count: 2; animation-fill-mode: forwards; }
.rbtn b, .v-react b { font-family: var(--font); }
.hof-page { grid-column: 1 / -1; min-width: 0; }
.cele-grid { grid-template-columns: repeat(auto-fit, minmax(84px, 108px)); justify-content: center; }
.hof-media img { position: absolute; inset: 0; }
