/* Pants on Fire — styling
   Mobile-first, Kahoot-aktig følelse: store knapper, klar typografi,
   leken fargekombinasjon (denim-blå bunn + flamme-orange aksenter).
*/

:root {
  --bg: #0f172a;
  --bg-2: #1e293b;
  --card: #ffffff;
  --card-fg: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;

  --primary: #f97316;
  --primary-2: #ea580c;
  --primary-fg: #ffffff;

  --secondary: #3b82f6;
  --secondary-2: #2563eb;

  --danger: #dc2626;
  --success: #16a34a;
  --warning: #f59e0b;
  /* Pantsy = rose-rød signaturfarge — sterkere enn standard rød */
  --pantsy: #e11d48;
  --pantsy-2: #be123c;
  --pantsy-deep: #881337;
  --gold: #fbbf24;

  --radius: 18px;
  --shadow: 0 10px 30px rgba(0,0,0,.20);
  --shadow-lg: 0 20px 50px rgba(0,0,0,.35);

  /* Brand-font for headings og display. Body bruker system-fonter (raskere). */
  --font-display: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  background: linear-gradient(160deg, #0f172a 0%, #1e1b4b 50%, #2a0613 100%);
  background-attachment: fixed;
  color: #f8fafc;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Display-fonten brukes til store displays og hovedoverskrifter for brand-personlighet */
.brand,
.hero h1,
h2,
.code-display,
.reveal-card .word,
.share-card .share-winner .name,
.share-card .share-brand,
.recap-card .player-name,
.timer span:not(.label) {
  font-family: var(--font-display);
  font-feature-settings: "ss01", "ss02";
  letter-spacing: -0.01em;
}

.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  /* env(safe-area-inset-*) tar høyde for iPhone-notch og bunnen.
     Padding-bottom er viktig så CTA-knapper ikke gjemmes bak Home-indicator. */
  padding: 16px max(12px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-right));
}

/* Større padding på iPad og oppover */
@media (min-width: 600px) {
  .app { padding-left: 20px; padding-right: 20px; }
}

/* ---------------- Top bar ---------------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
  color: rgba(255,255,255,.7);
}
.topbar-right { display: flex; align-items: center; gap: 8px; }
.topbar .brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffffff;
  font-size: 16px;
}
.topbar .brand .flame {
  display: inline-block;
  filter: drop-shadow(0 0 6px rgba(249,115,22,.6));
}
.lang-toggle, .icon-btn {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.15);
  color: white;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
}
.icon-btn { padding: 6px 10px; font-size: 16px; }
.icon-btn.muted { opacity: 0.5; }

/* ---------------- Screens ---------------- */
.screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: slideIn .25s ease;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------------- Hero (home) ---------------- */
.hero {
  text-align: center;
  padding: 40px 16px 24px;
}
.hero .logo {
  font-size: 64px;
  line-height: 1;
  filter: drop-shadow(0 6px 20px rgba(249,115,22,.5));
  animation: flicker 2s ease-in-out infinite alternate;
}
@keyframes flicker {
  0%   { transform: rotate(-2deg) scale(1); }
  50%  { transform: rotate(2deg) scale(1.04); }
  100% { transform: rotate(-1deg) scale(1); }
}
.hero h1 {
  margin: 16px 0 4px;
  /* clamp gjør at tittelen aldri sprenger smale skjermer (iPhone SE = 375px) */
  font-size: clamp(32px, 11vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  background: linear-gradient(180deg, #fff 0%, #fed7aa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.tagline {
  font-size: 16px;
  color: rgba(255,255,255,.75);
  margin: 0 0 28px;
}

/* ---------------- Cards ---------------- */
.card {
  background: rgba(255,255,255,.97);
  color: var(--card-fg);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.card.sm { padding: 12px 14px; }
.card .label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 4px;
}
.card-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* ---------------- Inputs ---------------- */
input[type="text"], input[type="number"], select, textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 17px;
  font-family: inherit;
  background: white;
  color: var(--card-fg);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(249,115,22,.15);
}
textarea {
  min-height: 120px;
  resize: vertical;
  font-size: 15px;
  line-height: 1.4;
}
input.code-input {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-weight: 800;
  font-size: 28px;
  padding: 18px 12px;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 22px;
  border-radius: 14px;
  border: none;
  font-size: 17px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform .08s, box-shadow .12s, background .15s;
  width: 100%;
  min-height: 56px;
  user-select: none;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-2) 100%);
  color: var(--primary-fg);
  box-shadow: 0 6px 18px rgba(249,115,22,.35);
}
.btn-secondary {
  background: linear-gradient(180deg, var(--secondary) 0%, var(--secondary-2) 100%);
  color: white;
  box-shadow: 0 6px 18px rgba(59,130,246,.35);
}
.btn-ghost {
  background: rgba(255,255,255,.08);
  color: white;
  border: 1px solid rgba(255,255,255,.15);
}
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.btn-danger {
  background: var(--danger);
  color: white;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }
.btn.btn-sm {
  padding: 10px 16px;
  font-size: 14px;
  min-height: 40px;
}

/* ---------------- Player list ---------------- */
.player-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.player {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
}
.player .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316, #ec4899);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: white;
  flex-shrink: 0;
}
.player .name { flex: 1; font-weight: 600; }
.player .score {
  font-weight: 800;
  font-size: 18px;
  color: white;
  background: rgba(0,0,0,.25);
  padding: 4px 10px;
  border-radius: 999px;
  min-width: 44px;
  text-align: center;
}
.player .badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}
.badge-host { background: rgba(249,115,22,.25); color: #fed7aa; }
.badge-you { background: rgba(59,130,246,.25); color: #bfdbfe; }
.badge-disc { background: rgba(0,0,0,.3); color: #94a3b8; }
.badge-pantsy { background: var(--pantsy); color: white; }
.badge-gold { background: var(--gold); color: #1f2937; }
.player.dimmed { opacity: 0.55; }
.player.winner {
  background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%);
  color: #1f2937;
  border: none;
}
.player.winner .score { background: rgba(0,0,0,.15); color: #1f2937; }
.player.winner .name { color: #1f2937; }

/* Vote buttons */
.vote-list { display: flex; flex-direction: column; gap: 10px; }
.vote-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(255,255,255,.95);
  color: var(--card-fg);
  border: 3px solid transparent;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s;
}
.vote-btn:hover { transform: translateY(-1px); }
.vote-btn:active { transform: scale(0.98); }
.vote-btn.selected {
  border-color: var(--primary);
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
}
.vote-btn.disabled { opacity: 0.4; cursor: not-allowed; }

/* ---------------- Reveal card ---------------- */
.reveal-card {
  background: white;
  color: var(--card-fg);
  border-radius: 22px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.reveal-card.pantsy {
  background: linear-gradient(150deg, var(--pantsy) 0%, var(--pantsy-deep) 100%);
  color: white;
}
.reveal-card .cat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  opacity: 0.7;
}
.reveal-card .word {
  /* skalerer ned ved smale skjermer slik at lange ord ikke sprenger */
  font-size: clamp(28px, 8vw, 38px);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 8px 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.reveal-card .pantsy-emoji { font-size: 56px; }
.reveal-card .hint {
  font-size: 14px;
  opacity: 0.85;
  margin-top: 6px;
}

.reverse-options-card {
  background: white;
  color: var(--card-fg);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
}
.reverse-options-card .options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.reverse-options-card .opt-tile {
  padding: 16px 12px;
  background: #f8fafc;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-weight: 700;
  text-align: center;
  font-size: 15px;
}

.tap-cover {
  background: linear-gradient(150deg, #1e293b 0%, #0f172a 100%);
  color: white;
  border-radius: 22px;
  padding: 60px 24px;
  text-align: center;
  cursor: pointer;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  border: 2px dashed rgba(255,255,255,.2);
}
.tap-cover .icon { font-size: 56px; }

/* ---------------- Discuss screen ---------------- */
.starter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #1f2937;
  font-weight: 800;
  border-radius: 999px;
  align-self: center;
  box-shadow: 0 4px 12px rgba(251,191,36,.4);
}
.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  align-self: center;
}

/* ---------------- Timer ---------------- */
.timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(255,255,255,.85));
  color: #1f2937;
  border-radius: 16px;
  font-size: 28px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  box-shadow: var(--shadow);
}
.timer .label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--muted);
}
.timer.warning {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
}
.timer.danger {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  animation: pulse 1s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

/* ---------------- Result ---------------- */
.banner {
  text-align: center;
  padding: 24px 18px;
  border-radius: 18px;
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 8px;
}
.banner.caught { background: linear-gradient(135deg, #16a34a, #15803d); color: white; }
.banner.escaped { background: linear-gradient(135deg, var(--pantsy), var(--pantsy-2)); color: white; }
.banner .emoji { font-size: 36px; display: block; margin-bottom: 6px; }

.delta-up { color: var(--success); font-weight: 700; }
.delta-down { color: var(--danger); font-weight: 700; }

/* Drama-reveal animation */
.drama-row {
  opacity: 0;
  transform: translateX(-12px);
  animation: dramaSlide .35s ease forwards;
}
@keyframes dramaSlide {
  to { opacity: 1; transform: translateX(0); }
}

/* ---------------- Misc ---------------- */
h2 { font-size: 24px; margin: 0 0 4px; font-weight: 800; }
h3 { font-size: 18px; margin: 0 0 8px; font-weight: 700; }
.subtitle { color: rgba(255,255,255,.7); margin: 0 0 8px; font-size: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.row { display: flex; gap: 10px; align-items: center; }
.row > * { flex: 1; }
.center { text-align: center; }
.muted { color: rgba(255,255,255,.65); font-size: 14px; }
.tiny { font-size: 12px; }
.divider { height: 1px; background: rgba(255,255,255,.10); margin: 12px 0; }
.hidden { display: none !important; }

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15,23,42,.95);
  color: white;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  animation: toastIn .25s ease;
}
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.code-display {
  /* clamp for små skjermer (smal iPhone SE = 375px) */
  font-size: clamp(40px, 14vw, 56px);
  font-weight: 900;
  letter-spacing: 0.2em;
  text-align: center;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  color: white;
  text-shadow: 0 4px 18px rgba(249,115,22,.5);
  padding: 10px 0;
}

.connection-status {
  font-size: 12px;
  color: rgba(255,255,255,.6);
  text-align: center;
  padding: 4px 0;
}
.connection-status.error { color: #fca5a5; }

/* ---------------- New: Settings widgets ---------------- */

/* Toggle switch */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  gap: 10px;
}
.toggle-row .label-block {
  flex: 1;
  min-width: 0;
}
.toggle-row .label-block .lbl {
  font-weight: 700;
  font-size: 15px;
  color: #1f2937;
}
.toggle-row .label-block .desc {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.35;
}
.switch {
  position: relative;
  width: 48px;
  height: 28px;
  background: #cbd5e1;
  border-radius: 14px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .2s;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,.2);
  transition: left .2s;
}
.switch.on { background: var(--primary); }
.switch.on::after { left: 23px; }
.switch.disabled { opacity: 0.4; cursor: not-allowed; }

/* Segmented control (for difficulty, timer etc.) */
.segmented {
  display: flex;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 4px;
  gap: 2px;
}
.segmented button {
  flex: 1;
  border: none;
  background: transparent;
  padding: 9px 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  border-radius: 9px;
  font-family: inherit;
  transition: all .15s;
}
.segmented button.active {
  background: white;
  color: #1f2937;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
}

/* Multi-select category checkboxes */
.cat-grid {
  display: grid;
  /* minmax(0, 1fr) tillater at celler kan skrumpe under sitt min-content, så
     lange kategorinavn ikke pusher griden bredere enn parent-kortet */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}
.cat-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  text-align: left;
  transition: all .15s;
  user-select: none;
}
.cat-pill .cat-icon { font-size: 18px; }
.cat-pill .cat-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-pill .cat-count { font-size: 11px; color: var(--muted); font-weight: 600; }
.cat-pill.adult { border-color: #e9d5ff; background: #faf5ff; }
.cat-pill.selected {
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  border-color: var(--primary);
  color: var(--primary-2);
}
.cat-pill.selected.adult {
  background: linear-gradient(135deg, #faf5ff, #f3e8ff);
  border-color: #9333ea;
  color: #6b21a8;
}
.cat-pill.custom {
  background: linear-gradient(135deg, #ecfeff, #cffafe);
  border-color: #06b6d4;
}

/* QR code */
.qr-container {
  display: flex;
  justify-content: center;
  padding: 16px;
  background: white;
  border-radius: 12px;
  margin-top: 12px;
}
.qr-container > div { display: block; }
.qr-container img, .qr-container canvas { display: block; }

/* Confidence vote stars */
.confidence-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 12px 0;
}
.confidence-star {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.10);
  border: 2px solid rgba(255,255,255,.2);
  color: white;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.confidence-star.selected {
  background: linear-gradient(135deg, var(--gold), var(--primary));
  border-color: transparent;
  color: #1f2937;
  transform: scale(1.1);
}

/* Onboarding modal */
.onboard-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.onboard-modal {
  background: white;
  color: #1f2937;
  border-radius: 24px;
  max-width: 380px;
  width: 100%;
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: slideIn .3s ease;
}
.onboard-modal .step-icon { font-size: 56px; margin-bottom: 8px; }
.onboard-modal h2 { color: #1f2937; }
.onboard-modal .desc {
  font-size: 15px;
  color: #475569;
  line-height: 1.5;
  margin: 12px 0 20px;
}
.onboard-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 16px 0;
}
.onboard-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
}
.onboard-dot.active { background: var(--primary); width: 24px; border-radius: 4px; }

/* Recap */
.recap-card {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #1f2937;
  border-radius: 18px;
  padding: 18px;
  text-align: center;
}
.recap-card .label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: #92400e;
}
.recap-card .player-name {
  font-size: 22px;
  font-weight: 900;
  margin: 6px 0 2px;
}
.recap-card .stat {
  font-size: 13px;
  color: #78350f;
  font-weight: 600;
}
.recap-card .emoji {
  font-size: 36px;
  margin-bottom: 4px;
}
.recap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.history-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255,255,255,.08);
  border-radius: 10px;
  font-size: 13px;
}
.history-row .word { font-weight: 800; color: white; }
.history-row .pantsy { color: var(--gold); font-weight: 600; }
.history-row .badge-tiny {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 700;
  text-transform: uppercase;
}
.history-row .badge-tiny.caught { background: rgba(22,163,74,.3); color: #86efac; }
.history-row .badge-tiny.escaped { background: rgba(225,29,72,.3); color: #fda4af; }

/* ---------------- Share card (end-of-night) ---------------- */
.share-card {
  background: linear-gradient(160deg, #0f172a 0%, #1e1b4b 50%, #2a0613 100%);
  color: white;
  border-radius: 24px;
  padding: 24px 20px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.share-card::before {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(249,115,22,.4), transparent 70%);
  pointer-events: none;
}
.share-card .share-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
  position: relative;
}
.share-card .share-brand {
  font-size: 20px; font-weight: 900;
  display: flex; align-items: center; gap: 6px;
}
.share-card .share-date {
  font-size: 11px; opacity: .65;
  text-transform: uppercase; letter-spacing: .08em; font-weight: 700;
}
.share-card .share-winner {
  text-align: center;
  padding: 18px 0 10px;
  position: relative;
}
.share-card .share-winner .crown { font-size: 42px; }
.share-card .share-winner .name {
  font-size: 32px; font-weight: 900; line-height: 1.1;
  margin: 4px 0;
  background: linear-gradient(180deg, #fff, #fed7aa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.share-card .share-winner .pts {
  font-size: 14px; opacity: .8;
  font-weight: 600;
}
.share-card .share-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}
.share-card .share-stat {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 10px 12px;
  text-align: center;
}
.share-card .share-stat .icon { font-size: 20px; line-height: 1; }
.share-card .share-stat .lbl {
  font-size: 9px; text-transform: uppercase; letter-spacing: .08em;
  font-weight: 800; opacity: .7; margin: 4px 0 2px;
}
.share-card .share-stat .val {
  font-size: 14px; font-weight: 800;
}
.share-card .share-stat .sub {
  font-size: 10px; opacity: .65; font-weight: 600;
}
.share-card .share-rounds {
  margin-top: 14px;
  background: rgba(0,0,0,.20);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 11px;
}
.share-card .share-rounds .lbl {
  text-transform: uppercase; letter-spacing: .08em;
  font-weight: 800; opacity: .65;
  margin-bottom: 6px;
  font-size: 10px;
}
.share-card .share-rounds .row {
  display: flex; justify-content: space-between;
  padding: 3px 0;
  border-top: 0.5px solid rgba(255,255,255,.08);
}
.share-card .share-rounds .row:first-of-type { border-top: none; }
.share-card .share-footer {
  text-align: center;
  margin-top: 14px;
  font-size: 10px;
  opacity: .55;
  text-transform: uppercase; letter-spacing: .08em;
  font-weight: 700;
}
