:root {
  --gold: #D4A843;
  --gold-light: #F2D68A;
  --gold-dark: #A07C2E;
  --bg: #0A0A0F;
  --bg-card: #12121A;
  --text: #E8E4DD;
  --text-muted: #e9e5de;
  --text-body: #B0ACA5;
  --heads: #D4A843;
  --tails: #8B9DC3;
  --border: rgba(255,255,255,0.04);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}
body::before {
  content: '';
  position: fixed;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(212,168,67,0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(139,157,195,0.03) 0%, transparent 50%);
  pointer-events: none; z-index: 0;
}
header {
  position: relative; z-index: 1;
  text-align: center; padding: 48px 24px 0;
}
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 14px; font-weight: 400;
  letter-spacing: 5px; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 8px;
}
h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(42px, 8vw, 72px); font-weight: 900;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 40%, var(--gold-dark) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; line-height: 1.1;
}
.subtitle {
  font-size: 15px; color: var(--text-muted);
  margin-top: 10px; font-weight: 300; letter-spacing: 0.5px;
}
.app {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  width: 100%; max-width: 600px;
  padding: 40px 24px 60px;
}
.coin-stage {
  perspective: 800px; width: 220px; height: 220px;
  margin: 40px 0 36px; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.coin {
  width: 100%; height: 100%; position: relative;
  transform-style: preserve-3d; transition: transform 0.15s ease;
}
.coin.flipping { animation: coinFlip 1.6s ease-out forwards; }
.coin.flipping-tails { animation: coinFlipTails 1.6s ease-out forwards; }
.coin.idle-hover:hover { transform: rotateY(12deg) rotateX(-5deg) scale(1.03); }
.coin-face {
  position: absolute; width: 100%; height: 100%;
  border-radius: 50%; backface-visibility: hidden;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-weight: 700;
  box-shadow: 0 0 0 4px rgba(212,168,67,0.15), 0 8px 32px rgba(0,0,0,0.5), inset 0 2px 4px rgba(255,255,255,0.15);
}
.coin-heads { background: linear-gradient(145deg, #F2D68A 0%, #D4A843 30%, #A07C2E 70%, #D4A843 100%); color: #3D2E0A; }
.coin-tails { background: linear-gradient(145deg, #B0C4E8 0%, #8B9DC3 30%, #5C7099 70%, #8B9DC3 100%); color: #1A2540; transform: rotateY(180deg); }
.coin-icon { font-size: 64px; line-height: 1; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15)); }
.coin-label { font-size: 16px; letter-spacing: 4px; text-transform: uppercase; margin-top: 4px; opacity: 0.7; }
.coin-face::before { content: ''; position: absolute; inset: 6px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.2); }
.coin-face::after { content: ''; position: absolute; inset: 12px; border-radius: 50%; border: 1px dashed rgba(255,255,255,0.1); }
@keyframes coinFlip {
  0%{transform:rotateY(0deg) translateY(0) scale(1)}
  15%{transform:rotateY(540deg) translateY(-160px) scale(0.9)}
  30%{transform:rotateY(1080deg) translateY(-220px) scale(0.85)}
  50%{transform:rotateY(1620deg) translateY(-120px) scale(0.92)}
  70%{transform:rotateY(2160deg) translateY(-40px) scale(0.97)}
  85%{transform:rotateY(2520deg) translateY(-8px) scale(1)}
  92%{transform:rotateY(2680deg) translateY(4px) scale(1.01)}
  100%{transform:rotateY(2880deg) translateY(0) scale(1)}
}
@keyframes coinFlipTails {
  0%{transform:rotateY(0deg) translateY(0) scale(1)}
  15%{transform:rotateY(540deg) translateY(-160px) scale(0.9)}
  30%{transform:rotateY(1080deg) translateY(-220px) scale(0.85)}
  50%{transform:rotateY(1620deg) translateY(-120px) scale(0.92)}
  70%{transform:rotateY(2160deg) translateY(-40px) scale(0.97)}
  85%{transform:rotateY(2520deg) translateY(-8px) scale(1)}
  92%{transform:rotateY(2680deg) translateY(4px) scale(1.01)}
  100%{transform:rotateY(2700deg) translateY(0) scale(1)}
}
.coin-shadow { width: 140px; height: 16px; background: radial-gradient(ellipse, rgba(0,0,0,0.35) 0%, transparent 70%); border-radius: 50%; margin-top: -4px; transition: all 0.3s ease; }
.coin-shadow.floating { animation: shadowPulse 1.6s ease-out forwards; }
@keyframes shadowPulse { 0%{transform:scale(1);opacity:1} 30%{transform:scale(0.4);opacity:0.3} 100%{transform:scale(1);opacity:1} }
.result-area { height: 64px; display: flex; align-items: center; justify-content: center; margin: 16px 0 24px; }
.result-text {
  font-family: 'Playfair Display', serif; font-size: 36px; font-weight: 900;
  letter-spacing: 2px; text-transform: uppercase; opacity: 0;
  transform: translateY(12px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.result-text.visible { opacity: 1; transform: translateY(0) scale(1); }
.result-text.heads { color: var(--heads); }
.result-text.tails { color: var(--tails); }
.flip-btn {
  position: relative; font-family: 'DM Sans', sans-serif;
  font-size: 16px; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: #0A0A0F;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border: none; padding: 18px 64px; border-radius: 60px;
  cursor: pointer; overflow: hidden; transition: all 0.3s ease;
  box-shadow: 0 4px 24px rgba(212,168,67,0.25), 0 0 0 1px rgba(212,168,67,0.1);
}
.flip-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(212,168,67,0.35), 0 0 0 1px rgba(212,168,67,0.2); }
.flip-btn:active { transform: translateY(0); }
.flip-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }
.flip-btn::after { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent); transition: left 0.5s ease; }
.flip-btn:hover::after { left: 100%; }
.stats { display: flex; gap: 2px; margin-top: 40px; background: var(--bg-card); border-radius: 16px; overflow: hidden; border: 1px solid var(--border); width: 100%; max-width: 420px; }
.stat { flex: 1; padding: 20px 16px; text-align: center; position: relative; }
.stat + .stat::before { content: ''; position: absolute; left: 0; top: 20%; height: 60%; width: 1px; background: rgba(255,255,255,0.06); }
.stat-value { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 700; margin-bottom: 4px; }
.stat-value.gold { color: var(--heads); }
.stat-value.silver { color: var(--tails); }
.stat-label { font-size: 11px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); }
.bar-container { width: 100%; max-width: 420px; margin-top: 16px; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.04); overflow: hidden; display: flex; }
.bar-heads { height: 100%; background: linear-gradient(90deg, var(--gold-dark), var(--gold)); transition: width 0.6s cubic-bezier(0.34,1.56,0.64,1); border-radius: 3px 0 0 3px; }
.bar-tails { height: 100%; background: linear-gradient(90deg, var(--tails), #6B83B3); transition: width 0.6s cubic-bezier(0.34,1.56,0.64,1); border-radius: 0 3px 3px 0; }
.bar-labels { display: flex; justify-content: space-between; width: 100%; max-width: 420px; margin-top: 8px; }
.bar-label { font-size: 12px; font-weight: 500; color: var(--text-muted); }
.history { margin-top: 32px; display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; max-width: 420px; }
.history-dot { width: 12px; height: 12px; border-radius: 50%; opacity: 0; transform: scale(0); animation: dotAppear 0.4s cubic-bezier(0.34,1.56,0.64,1) forwards; }
.history-dot.heads { background: var(--heads); box-shadow: 0 0 8px rgba(212,168,67,0.3); }
.history-dot.tails { background: var(--tails); box-shadow: 0 0 8px rgba(139,157,195,0.3); }
@keyframes dotAppear { to { opacity: 1; transform: scale(1); } }
.actions-row { display: flex; gap: 12px; margin-top: 24px; align-items: center; }
.share-btn {
  display: flex; align-items: center; gap: 8px;
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-muted); background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 12px 28px; border-radius: 30px;
  cursor: pointer; transition: all 0.3s ease;
  position: relative; overflow: hidden;
}
.share-btn:hover { color: var(--text); border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.04); }
.share-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s ease; }
.share-btn:hover svg { transform: translateY(-1px); }
.share-feedback {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: var(--bg-card); border-radius: 30px; font-size: 13px; font-weight: 500;
  letter-spacing: 1.5px; color: var(--gold); opacity: 0; transform: scale(0.9);
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1); pointer-events: none;
}
.share-feedback.show { opacity: 1; transform: scale(1); }
.reset-btn {
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-muted); background: none;
  border: 1px solid rgba(255,255,255,0.06);
  padding: 12px 28px; border-radius: 30px;
  cursor: pointer; transition: all 0.3s ease;
}
.reset-btn:hover { color: var(--text); border-color: rgba(255,255,255,0.15); }
.burst { position: fixed; pointer-events: none; z-index: 100; }
.particle { position: absolute; border-radius: 50%; }
@keyframes particleFly { 0%{opacity:1} 100%{opacity:0} }
.kbd-hint { margin-top: 14px; font-size: 12px; color: var(--text-muted); opacity: 0.4; }
.kbd-hint kbd { display: inline-block; padding: 2px 8px; border: 1px solid rgba(255,255,255,0.1); border-radius: 4px; font-family: 'DM Sans', sans-serif; font-size: 11px; background: rgba(255,255,255,0.03); }

/* ========== CONTENT SECTIONS ========== */
.content-wrap { position: relative; z-index: 1; width: 100%; border-top: 1px solid var(--border); }
.content-inner { max-width: 780px; margin: 0 auto; padding: 0 28px; }
.section { padding: 72px 0; border-bottom: 1px solid var(--border); }
.section:last-child { border-bottom: none; }
.section-eyebrow {
  font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: 4px; text-transform: uppercase; color: var(--gold); margin-bottom: 16px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 5vw, 40px); font-weight: 900;
  color: var(--text); line-height: 1.2; margin-bottom: 28px;
}
.section p { font-size: 16px; line-height: 1.8; color: var(--text-body); margin-bottom: 20px; }
.section p:last-child { margin-bottom: 0; }
.section p strong { color: var(--text); font-weight: 600; }
.uses-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
.use-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px 24px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.use-card:hover { border-color: rgba(255,255,255,0.08); transform: translateY(-2px); }
.use-card-icon { font-size: 28px; margin-bottom: 14px; display: block; }
.use-card-title { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.use-card-text { font-size: 14px; line-height: 1.7; color: var(--text-muted); }
.timeline { margin-top: 36px; position: relative; padding-left: 32px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(180deg, var(--gold) 0%, var(--tails) 50%, rgba(255,255,255,0.06) 100%); }
.timeline-item { position: relative; padding-bottom: 36px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ''; position: absolute; left: -32px; top: 8px;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--gold); z-index: 1;
}
.timeline-item:nth-child(2)::before { border-color: #C4935A; }
.timeline-item:nth-child(3)::before { border-color: #A5A0C3; }
.timeline-item:nth-child(4)::before { border-color: var(--tails); }
.timeline-item:nth-child(5)::before { border-color: #7A7670; }
.timeline-era {
  font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 6px;
}
.timeline-item:nth-child(2) .timeline-era { color: #C4935A; }
.timeline-item:nth-child(3) .timeline-era { color: #A5A0C3; }
.timeline-item:nth-child(4) .timeline-era { color: var(--tails); }
.timeline-item:nth-child(5) .timeline-era { color: #7A7670; }
.timeline-heading { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.timeline-text { font-size: 15px; line-height: 1.75; color: var(--text-body); }
.pullquote {
  font-family: 'Playfair Display', serif; font-style: italic;
  font-size: clamp(18px, 3vw, 22px); line-height: 1.6; color: var(--text);
  padding: 32px 0; margin: 12px 0;
  border-left: 3px solid var(--gold); padding-left: 28px;
}
.pullquote-attr {
  font-family: 'DM Sans', sans-serif; font-style: normal;
  font-size: 13px; color: var(--text-muted);
  margin-top: 12px; display: block; letter-spacing: 0.5px;
}
.faq-list { margin-top: 8px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-question {
  width: 100%; background: none; border: none; text-align: left;
  padding: 24px 40px 24px 0;
  font-family: 'DM Sans', sans-serif; font-size: 17px; font-weight: 600;
  color: var(--text); cursor: pointer; position: relative;
  transition: color 0.3s ease; line-height: 1.4;
}
.faq-question:hover { color: var(--gold); }
.faq-question::after {
  content: '+'; position: absolute; right: 0; top: 50%;
  transform: translateY(-50%); font-size: 24px; font-weight: 300;
  color: var(--text-muted); transition: transform 0.3s ease, color 0.3s ease;
}
.faq-item.open .faq-question::after { content: '\2212'; color: var(--gold); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease; }
.faq-item.open .faq-answer { max-height: 400px; padding-bottom: 24px; }
.faq-answer p { font-size: 15px; line-height: 1.8; color: var(--text-body); }
.about-features { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-top: 32px; }
.about-feature {
  text-align: center; padding: 28px 16px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
}
.about-feature-icon { font-size: 24px; margin-bottom: 12px; display: block; }
.about-feature-label { font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--text); margin-bottom: 6px; }
.about-feature-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
footer {
  position: relative; z-index: 1; text-align: center; padding: 40px 24px;
  font-size: 12px; color: var(--text-muted); letter-spacing: 0.5px;
  opacity: 0.5; border-top: 1px solid var(--border); width: 100%;
}
@media (max-width: 640px) {
  .uses-grid { grid-template-columns: 1fr; }
  .about-features { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
}
@media (max-width: 480px) {
  header { padding-top: 32px; }
  .coin-stage { width: 180px; height: 180px; margin: 28px 0 24px; }
  .result-text { font-size: 28px; }
  .flip-btn { padding: 16px 48px; font-size: 14px; }
  .stats { max-width: 100%; }
  .stat-value { font-size: 24px; }
  .kbd-hint { display: none; }
  .share-btn, .reset-btn { padding: 10px 20px; font-size: 12px; }
  .content-inner { padding: 0 20px; }
  .timeline { padding-left: 28px; }
}

/* ============================================
   Privacy Policy Page
   ============================================ */

.page-header {
  position: relative; z-index: 1;
  text-align: center;
  padding: 48px 24px 40px;
  border-bottom: 1px solid var(--border);
}
.logo-link {
  text-decoration: none;
  display: inline-block;
  margin-bottom: 24px;
}
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 14px; font-weight: 400;
  letter-spacing: 5px; text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s ease;
}
.logo-link:hover .logo { color: var(--gold); }
.page-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 6vw, 52px); font-weight: 900;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 40%, var(--gold-dark) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; line-height: 1.1;
}
.page-subtitle {
  font-size: 15px; color: var(--text-muted);
  margin-top: 12px; font-weight: 300; letter-spacing: 0.5px;
}

/* Content */
.content {
  position: relative; z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 28px 80px;
  flex: 1;
}

/* Policy sections */
.policy-section {
  margin-bottom: 48px;
}
.policy-section:last-child { margin-bottom: 0; }

.policy-heading {
  font-family: 'Playfair Display', serif;
  font-size: 24px; font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.policy-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-body);
  margin-bottom: 16px;
}
.policy-text:last-child { margin-bottom: 0; }
.policy-text strong { color: var(--text); font-weight: 600; }
.policy-text a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(212,168,67,0.3);
  transition: border-color 0.3s ease;
}
.policy-text a:hover { border-color: var(--gold); }

/* Highlight box */
.highlight-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 0 12px 12px 0;
  padding: 24px 28px;
  margin: 24px 0;
}
.highlight-box p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-body);
  margin: 0;
}
.highlight-box strong { color: var(--text); }

/* Summary grid */
.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0;
}
.summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
}
.summary-icon { font-size: 24px; margin-bottom: 10px; display: block; }
.summary-label {
  font-size: 14px; font-weight: 600;
  color: var(--text); margin-bottom: 4px;
}
.summary-desc {
  font-size: 13px; color: var(--text-muted); line-height: 1.5;
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  margin-top: 48px;
  padding: 12px 24px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 30px;
  transition: all 0.3s ease;
}
.back-link:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.15);
}
.back-link svg {
  width: 16px; height: 16px;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* Footer */
footer {
  position: relative; z-index: 1;
  text-align: center; padding: 32px 24px;
  font-size: 12px; color: var(--text-muted);
  letter-spacing: 0.5px; opacity: 0.5;
  border-top: 1px solid var(--border);
}
footer a {
  color: var(--text-muted);
}
footer a:hover {
  color: #fff;
}
footer span {
  color: var(--text-muted);
  margin:0 .5rem;
}

@media (max-width: 480px) {
  .page-header { padding: 32px 20px 32px; }
  .content { padding: 40px 20px 60px; }
  .summary-grid { grid-template-columns: 1fr; }
  .policy-heading { font-size: 20px; }
}

/* ============================================
   404 Error Page
   ============================================ */

.error-page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 24px;
  max-width: 520px;
}

/* Animated lost coin */
.lost-coin {
  width: 140px;
  height: 140px;
  margin-bottom: 40px;
  perspective: 600px;
}
.lost-coin-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: coinSpin 4s ease-in-out infinite;
}
.lost-coin-face {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  box-shadow:
    0 0 0 3px rgba(212,168,67,0.12),
    0 8px 32px rgba(0,0,0,0.4),
    inset 0 2px 4px rgba(255,255,255,0.12);
}
.lost-coin-face::before {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
}
.lost-coin-heads {
  background: linear-gradient(145deg, #F2D68A 0%, #D4A843 30%, #A07C2E 70%, #D4A843 100%);
}
.lost-coin-tails {
  background: linear-gradient(145deg, #B0C4E8 0%, #8B9DC3 30%, #5C7099 70%, #8B9DC3 100%);
  transform: rotateY(180deg);
}

@keyframes coinSpin {
  0% { transform: rotateY(0deg) translateY(0px); }
  25% { transform: rotateY(180deg) translateY(-12px); }
  50% { transform: rotateY(360deg) translateY(0px); }
  75% { transform: rotateY(540deg) translateY(-8px); }
  100% { transform: rotateY(720deg) translateY(0px); }
}

/* Coin shadow */
.lost-coin-shadow {
  width: 90px;
  height: 10px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.25) 0%, transparent 70%);
  border-radius: 50%;
  margin-top: -8px;
  margin-bottom: 32px;
  animation: shadowFloat 4s ease-in-out infinite;
}
@keyframes shadowFloat {
  0%, 50%, 100% { transform: scale(1); opacity: 0.8; }
  25%, 75% { transform: scale(0.7); opacity: 0.4; }
}

/* Logo */
.logo-link {
  text-decoration: none;
  display: inline-block;
  margin-bottom: 32px;
}
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 13px; font-weight: 400;
  letter-spacing: 5px; text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s ease;
}
.logo-link:hover .logo { color: var(--gold); }

/* Error code */
.error-code {
  font-family: 'Playfair Display', serif;
  font-size: clamp(80px, 18vw, 140px);
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 40%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -2px;
}

.error-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.3;
}

.error-message {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  max-width: 400px;
  margin-bottom: 40px;
}

/* Buttons */
.error-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  color: #0A0A0F;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  padding: 16px 36px;
  border-radius: 60px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 24px rgba(212,168,67,0.25);
  position: relative;
  overflow: hidden;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(212,168,67,0.35);
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.5s ease;
}
.btn-primary:hover::after { left: 100%; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 14px 28px;
  border-radius: 30px;
  transition: all 0.3s ease;
}
.btn-secondary:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.15);
}
.btn-secondary svg {
  width: 16px; height: 16px;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* Fun fact */
.fun-fact {
  margin-top: 56px;
  padding: 20px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  max-width: 420px;
}
.fun-fact-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.fun-fact-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Floating particles background */
.bg-particles {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.bg-particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

@media (max-width: 480px) {
  .error-page { padding: 32px 20px; }
  .lost-coin { width: 110px; height: 110px; margin-bottom: 28px; }
  .lost-coin-face { font-size: 36px; }
  .error-actions { flex-direction: column; width: 100%; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .fun-fact { margin-top: 40px; }
}
