/* ═══════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0d0d1a;
  --bg2:       #13132a;
  --bg3:       #1a1a35;
  --border:    rgba(255,255,255,0.08);
  --accent:    #7c5cfc;
  --accent2:   #a78bfa;
  --accent-g:  linear-gradient(135deg, #7c5cfc, #c084fc);
  --yes:       #22d3a5;
  --no:        #f43f5e;
  --text:      #e2e2f0;
  --muted:     #8585a8;
  --card:      rgba(255,255,255,0.04);
  --card-b:    rgba(255,255,255,0.06);
  --radius:    16px;
  --shadow:    0 8px 32px rgba(0,0,0,0.4);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ═══════════════════════════════════════════
   HEADER
═══════════════════════════════════════════ */
header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px 24px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.logo-icon { font-size: 1.6rem; }
.logo-dot { color: var(--accent2); }

.tabs {
  justify-self: center;
  display: flex;
  gap: 4px;
  background: var(--bg3);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.tab {
  background: none;
  border: none;
  color: var(--muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}
.tab:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.tab.active {
  background: var(--accent-g);
  color: #fff;
  box-shadow: 0 2px 12px rgba(124,92,252,0.4);
}

/* ═══════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════ */
.layout {
  display: flex;
  flex: 1;
  gap: 0;
  align-items: flex-start;
}

.main {
  flex: 1;
  min-width: 0;
  padding: 36px 24px;
}

/* ═══════════════════════════════════════════
   ADS
═══════════════════════════════════════════ */
.ad-sidebar {
  width: 180px;
  flex-shrink: 0;
  padding: 24px 12px;
  display: flex;
  justify-content: center;
}

.ad-unit { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ad-label { font-size: 0.65rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }

.ad-placeholder {
  width: 160px;
  height: 600px;
  background: var(--bg3);
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 1.1rem;
  gap: 4px;
}
.ad-placeholder small { font-size: 0.7rem; opacity: 0.6; }
.ad-placeholder-h {
  width: min(728px, 100%);
  height: 90px;
  flex-direction: row;
  gap: 12px;
}

.ad-banner-wrap {
  display: flex;
  justify-content: center;
  padding: 12px 24px 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
}
.ad-unit.ad-horizontal { flex-direction: column; }

/* ═══════════════════════════════════════════
   PANELS
═══════════════════════════════════════════ */
.panel { display: none; }
.panel.active { display: block; }

.panel-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  background: var(--accent-g);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}
.panel-sub {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

/* ═══════════════════════════════════════════
   YES / NO ORACLE
═══════════════════════════════════════════ */
.oracle-wrapper {
  max-width: 560px;
  margin: 0 auto;
}

.oracle-card {
  background: var(--card);
  border: 1px solid var(--card-b);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.oracle-input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  padding: 14px 16px;
  resize: none;
  transition: border-color 0.2s;
  outline: none;
}
.oracle-input::placeholder { color: var(--muted); }
.oracle-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,92,252,0.2); }

.privacy-note { font-size: 0.78rem; color: var(--muted); text-align: center; }

/* ── Buttons ── */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent-g);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 28px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 20px rgba(124,92,252,0.35);
  width: 100%;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(124,92,252,0.5); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-ghost {
  background: transparent;
  color: var(--accent2);
  border: 1px solid var(--accent);
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 10px 22px;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  margin-top: 12px;
}
.btn-ghost:hover { background: rgba(124,92,252,0.15); transform: translateY(-1px); }

.btn-sm { font-size: 0.82rem; padding: 8px 14px; margin-top: 0; }

.btn-icon { font-size: 1.1rem; }

/* ── Oracle Ball ── */
.oracle-answer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.oracle-ball {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 35% 35%, #2a2060, #0d0d1a);
  border: 3px solid rgba(255,255,255,0.1);
  box-shadow: 0 0 60px rgba(124,92,252,0.3), inset 0 0 40px rgba(0,0,0,0.5);
  transition: all 0.5s;
  position: relative;
  overflow: hidden;
}
.oracle-ball::after {
  content: '';
  position: absolute;
  top: 14%;
  left: 22%;
  width: 28%;
  height: 18%;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  filter: blur(4px);
}

.oracle-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 20px currentColor;
  z-index: 1;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.4s 0.1s, transform 0.4s 0.1s;
}

.oracle-ball.yes {
  background: radial-gradient(circle at 35% 35%, #0d3330, #0d0d1a);
  border-color: var(--yes);
  box-shadow: 0 0 80px rgba(34,211,165,0.4), inset 0 0 40px rgba(0,0,0,0.5);
}
.oracle-ball.no {
  background: radial-gradient(circle at 35% 35%, #3a0d1a, #0d0d1a);
  border-color: var(--no);
  box-shadow: 0 0 80px rgba(244,63,94,0.4), inset 0 0 40px rgba(0,0,0,0.5);
}
.oracle-ball.yes .oracle-text  { color: var(--yes); opacity: 1; transform: scale(1); }
.oracle-ball.no .oracle-text   { color: var(--no);  opacity: 1; transform: scale(1); }

.oracle-message {
  font-size: 1.05rem;
  color: var(--text);
  text-align: center;
  max-width: 380px;
  font-style: italic;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s 0.3s, transform 0.4s 0.3s;
  min-height: 1.5em;
}
.oracle-message.visible { opacity: 1; transform: translateY(0); }

/* Shake animation */
@keyframes shake {
  0%,100% { transform: translateX(0) rotate(0); }
  15%      { transform: translateX(-8px) rotate(-4deg); }
  30%      { transform: translateX(8px)  rotate(4deg); }
  45%      { transform: translateX(-6px) rotate(-2deg); }
  60%      { transform: translateX(6px)  rotate(2deg); }
  75%      { transform: translateX(-3px) rotate(-1deg); }
  90%      { transform: translateX(3px)  rotate(1deg); }
}
.oracle-ball.shaking { animation: shake 0.7s ease-in-out; }

@keyframes pulse-glow {
  0%,100% { box-shadow: 0 0 80px rgba(34,211,165,0.4), inset 0 0 40px rgba(0,0,0,0.5); }
  50%     { box-shadow: 0 0 120px rgba(34,211,165,0.7), inset 0 0 40px rgba(0,0,0,0.5); }
}
.oracle-ball.yes { animation: pulse-glow 2s ease-in-out infinite; }
@keyframes pulse-glow-no {
  0%,100% { box-shadow: 0 0 80px rgba(244,63,94,0.4), inset 0 0 40px rgba(0,0,0,0.5); }
  50%     { box-shadow: 0 0 120px rgba(244,63,94,0.7), inset 0 0 40px rgba(0,0,0,0.5); }
}
.oracle-ball.no { animation: pulse-glow-no 2s ease-in-out infinite; }

.hidden { display: none !important; }

/* ═══════════════════════════════════════════
   SPIN THE WHEEL
═══════════════════════════════════════════ */
.wheel-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  max-width: 860px;
  margin: 0 auto;
}

.wheel-left {
  flex: 0 0 240px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wheel-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.option-adder {
  display: flex;
  gap: 8px;
}

.option-input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.2s;
  min-width: 0;
}
.option-input::placeholder { color: var(--muted); }
.option-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,92,252,0.2); }

.btn-add {
  background: var(--accent-g);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-add:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(124,92,252,0.4); }

.options-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 4px;
}
.options-list::-webkit-scrollbar { width: 4px; }
.options-list::-webkit-scrollbar-track { background: transparent; }
.options-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.option-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.88rem;
  animation: slideIn 0.2s ease;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: translateX(0); }
}
.option-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.option-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.option-del {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  transition: color 0.15s;
  flex-shrink: 0;
}
.option-del:hover { color: var(--no); }

.wheel-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 4px;
}
.preset-label { font-size: 0.82rem; color: var(--muted); width: 100%; }
.preset-btn {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 20px;
  font-size: 0.88rem;
  font-family: 'Inter', sans-serif;
  padding: 6px 14px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.preset-btn:hover { border-color: var(--accent); color: var(--accent2); }
.preset-btn.active { background: var(--accent-g); color: #fff; border-color: transparent; }
.wheel-clear-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 20px;
  font-size: 0.88rem;
  font-family: 'Inter', sans-serif;
  padding: 6px 14px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  margin-top: 8px;
  width: 100%;
}
.wheel-clear-btn:hover { border-color: var(--no); color: var(--no); }

/* ── Wheel Canvas ── */
.wheel-container {
  position: relative;
  display: inline-block;
}

.wheel-pointer {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.8rem;
  color: #fff;
  text-shadow: 0 0 12px rgba(124,92,252,0.8);
  z-index: 2;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.8));
}

#wheel-canvas, #tord-canvas {
  border-radius: 50%;
  display: block;
  box-shadow: 0 0 40px rgba(124,92,252,0.25), 0 8px 32px rgba(0,0,0,0.6);
  cursor: pointer;
}

.btn-spin { max-width: 240px; }

/* ── Wheel Result ── */
.wheel-result, .tord-choice, .tord-card {
  background: var(--card);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-align: center;
  width: 100%;
  max-width: 360px;
  animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

.result-label { font-size: 0.85rem; color: var(--muted); margin-bottom: 8px; }
.result-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  background: var(--accent-g);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}
.result-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* ═══════════════════════════════════════════
   TRUTH OR DARE
═══════════════════════════════════════════ */
.tord-buttons { display: flex; gap: 12px; justify-content: center; margin-top: 10px; }

.btn-truth {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 14px 28px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 16px rgba(59,130,246,0.35);
}
.btn-truth:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(59,130,246,0.5); }

.btn-dare {
  background: linear-gradient(135deg, #f43f5e, #f97316);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 14px 28px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 16px rgba(244,63,94,0.35);
}
.btn-dare:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(244,63,94,0.5); }

.tord-card-type {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.tord-card-type.truth { color: #6366f1; }
.tord-card-type.dare  { color: #f43f5e; }

.tord-card-text {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 14px;
  min-height: 3em;
}

/* ═══════════════════════════════════════════
   TRUTH OR DARE — ROUND TABLE
═══════════════════════════════════════════ */
/* Truth or Dare two-column layout (mirrors .wheel-layout) */
.tord-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  max-width: 860px;
  margin: 0 auto;
}

.tord-left {
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tord-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* Player list styled like wheel options list */
.tord-chips-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.table-stage { position: relative; }

#tord-canvas {
  display: block;
  border-radius: 50%;
  box-shadow: 0 0 50px rgba(124,92,252,0.2), 0 8px 40px rgba(0,0,0,0.6);
  max-width: 100%;
}

/* Player chips */
.player-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
  max-width: 480px;
}

.player-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 10px 5px 8px;
  font-size: 0.82rem;
  animation: slideIn 0.2s ease;
}

.player-chip-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.player-chip-del {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  transition: color 0.15s;
}
.player-chip-del:hover { color: var(--no); }

/* Controls row */
.tord-controls {
  display: flex;
  gap: 8px;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-share {
  background: var(--bg3);
  border: 1px solid var(--accent);
  color: var(--accent2);
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 10px 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, transform 0.15s;
}
.btn-share:hover { background: rgba(124,92,252,0.15); transform: translateY(-1px); }

.btn-spin-bottle { max-width: 240px; }

.tord-chosen-name {
  font-weight: 700;
  background: var(--accent-g);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Share Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  backdrop-filter: blur(6px);
}

.modal-box {
  background: var(--bg2);
  border: 1px solid var(--accent);
  border-radius: 20px;
  padding: 28px;
  max-width: 360px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.55);
  animation: popIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.modal-header h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
}
.modal-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.modal-close:hover { color: var(--no); background: rgba(244,63,94,0.1); }

.modal-sub {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

#share-qr {
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  line-height: 0;
}

.share-url-row {
  display: flex;
  gap: 8px;
  width: 100%;
}

.share-url-input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.75rem;
  padding: 8px 10px;
  outline: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.btn-copy {
  background: var(--accent-g);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-copy:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(124,92,252,0.4); }

.modal-note {
  font-size: 0.7rem;
  color: var(--muted);
  text-align: center;
}

/* ═══════════════════════════════════════════
   TOSS A COIN
═══════════════════════════════════════════ */
.coin-wrapper {
  max-width: 480px;
  margin: 0 auto;
}

.coin-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

/* 3-D perspective container */
.coin-scene {
  width: 220px;
  height: 220px;
  perspective: 700px;
}

.coin {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.1s;
  cursor: pointer;
}

.coin-face {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: inset 0 -6px 0 rgba(0,0,0,0.25), 0 8px 32px rgba(0,0,0,0.5);
}

.coin-heads {
  background: radial-gradient(circle at 38% 32%, #fde68a, #f59e0b 55%, #b45309);
  border: 4px solid #fbbf24;
}

.coin-tails {
  background: radial-gradient(circle at 38% 32%, #fde68a, #f59e0b 55%, #b45309);
  border: 4px solid #fbbf24;
  transform: rotateX(180deg);
}

.coin-animal {
  font-size: 5rem;
  line-height: 1;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.25));
}

/* Fox tail SVG on tails face */
.coin-fox-tail-svg {
  width: 108px;
  height: 116px;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,0.4));
}

/* Animation is JS-driven (translateY arc + rotateX tumble) — no CSS keyframes needed */

/* Glow on result */
.coin.glow-heads .coin-heads {
  box-shadow: inset 0 -6px 0 rgba(0,0,0,0.25), 0 0 40px rgba(251,191,36,0.7), 0 8px 32px rgba(0,0,0,0.5);
}
.coin.glow-tails .coin-tails {
  box-shadow: inset 0 -6px 0 rgba(0,0,0,0.25), 0 0 40px rgba(251,191,36,0.7), 0 8px 32px rgba(0,0,0,0.5);
}

.coin-result-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.coin-result-text.heads-text { color: #fbbf24; text-shadow: 0 0 20px rgba(251,191,36,0.5); }
.coin-result-text.tails-text { color: #fbbf24; text-shadow: 0 0 20px rgba(251,191,36,0.5); }

.coin-btn { max-width: 200px; }

/* Score tracker */
.coin-score {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 8px 20px;
  font-size: 0.9rem;
  color: var(--muted);
}
.coin-score strong { color: var(--text); }
.score-sep { opacity: 0.4; }
.score-reset {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  padding: 6px 16px;
  border-radius: 20px;
  transition: color 0.15s, border-color 0.15s;
}
.score-reset:hover { color: var(--no); border-color: var(--no); }

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
footer {
  text-align: center;
  padding: 18px;
  color: var(--muted);
  font-size: 0.8rem;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  margin-top: 12px;
}

.footer-links {
  margin-top: 6px;
  font-size: 0.8rem;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text); }

.static-page-wrapper {
  max-width: 720px;
  margin: 0 auto;
}

.static-content {
  background: var(--card);
  border: 1px solid var(--card-b);
  border-radius: var(--radius);
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.static-content h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent2);
  margin-top: 8px;
}

.static-content p, .static-content li {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.7;
}

.static-content ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
}

.contact-link {
  color: var(--accent2);
  text-decoration: none;
}
.contact-link:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════
   READY FOR MARRIAGE QUIZ
═══════════════════════════════════════════ */
.quiz-wrapper {
  max-width: 680px;
  margin: 0 auto;
}

.quiz-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.quiz-card {
  background: var(--card);
  border: 1px solid var(--card-b);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: border-color 0.2s;
}

.quiz-card:has(.quiz-opt.selected) {
  border-color: rgba(124,92,252,0.35);
}

.quiz-q {
  font-size: 0.98rem;
  line-height: 1.55;
  margin-bottom: 14px;
  color: var(--text);
}

.quiz-num {
  font-weight: 700;
  color: var(--accent2);
  margin-right: 6px;
}

.quiz-options {
  display: flex;
  gap: 10px;
}

.quiz-opt {
  flex: 1;
  padding: 10px 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.quiz-opt:hover { border-color: rgba(255,255,255,0.2); color: var(--text); }

.quiz-yes.selected {
  background: rgba(34,211,165,0.15);
  border-color: #22d3a5;
  color: #22d3a5;
}

.quiz-no.selected {
  background: rgba(244,63,94,0.15);
  border-color: #f43f5e;
  color: #f43f5e;
}

.quiz-feedback {
  font-size: 0.82rem;
  margin-top: 10px;
  font-style: italic;
  transition: opacity 0.2s;
}
.quiz-feedback.hidden  { display: none; }
.quiz-feedback.visible { display: block; }
.fb-yes { color: #22d3a5; }
.fb-no  { color: #f43f5e; }

.quiz-submit-btn {
  width: 100%;
  max-width: 680px;
  display: block;
  margin: 0 auto 32px;
}
.quiz-submit-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Result */
.quiz-result {
  background: var(--card);
  border: 1px solid var(--card-b);
  border-radius: var(--radius);
  padding: 36px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 680px;
  margin: 0 auto;
}

.quiz-result-badge {
  font-size: 3.5rem;
  line-height: 1;
}

.quiz-result-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--accent-g);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.quiz-result-msg {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 480px;
}

.quiz-score-bar-wrap {
  width: 100%;
  height: 10px;
  background: var(--bg3);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 6px;
}

.quiz-score-bar {
  height: 100%;
  background: var(--accent-g);
  border-radius: 99px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
}

.quiz-score-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.quiz-result-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.quiz-share-row {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

/* Frozen answer buttons */
.quiz-opt.frozen:not(.selected) {
  opacity: 0.35;
  cursor: not-allowed;
}
.quiz-opt.frozen.selected {
  cursor: default;
}

/* Perfect score glow */
.quiz-result.perfect-score {
  border-color: rgba(250, 204, 21, 0.5);
  box-shadow: 0 0 40px rgba(250, 204, 21, 0.15);
}
.quiz-result.perfect-score .quiz-result-badge {
  animation: trophy-bounce 0.6s ease 0.5s both;
}
@keyframes trophy-bounce {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.4); }
  60%  { transform: scale(0.95); }
  80%  { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Confetti */
.confetti-container {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 999;
  overflow: hidden;
}
.confetti-piece {
  position: absolute;
  top: -20px;
  animation: confetti-fall linear forwards;
}
@keyframes confetti-fall {
  0%   { transform: translateY(0) rotate(0deg);   opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateY(105vh) rotate(720deg); opacity: 0; }
}

/* ═══════════════════════════════════════════
   PAGE CONTENT (SEO / AdSense support)
═══════════════════════════════════════════ */
.page-content {
  max-width: 720px;
  margin: 96px auto 0;
  padding-top: 48px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.page-content h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.page-content p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.page-content ul {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.faq-item p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 900px) {
  .ad-sidebar { display: none; }
}

@media (max-width: 680px) {
  .wheel-layout, .tord-layout { flex-direction: column; }
  .wheel-left, .tord-left { flex: none; width: 100%; }
  .tord-right { width: 100%; }
  #wheel-canvas { width: 300px; height: 300px; }
  #tord-canvas  { width: 300px !important; height: 300px !important; }
  .panel-title { font-size: 1.6rem; }

  /* Header: stack logo above tabs on mobile */
  header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 12px;
    gap: 8px;
  }
  .logo { justify-self: unset; }
  .tabs { justify-self: unset; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; flex-wrap: nowrap; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: 0 0 auto; text-align: center; padding: 8px 12px; font-size: 0.78rem; white-space: nowrap; }

  /* Hide 728×90 leaderboard — wrong size for mobile */
  .ad-banner-wrap { display: none; }
}

@media (max-width: 420px) {
  #wheel-canvas { width: 260px; height: 260px; }
  #tord-canvas  { width: 260px !important; height: 260px !important; }
  .tab { font-size: 0.7rem; padding: 7px 2px; }
}
