/* ============================================================
   GiverGames "Giving Ticket" layer for game pages.
   Loaded last on every game page. Each game keeps its own colors;
   this adds the shared ticket pieces:
   - the top bar (navy, new wordmark, teal Play button)
   - the score stamped onto the end screen
   - the game code printed as a ticket stub
   ============================================================ */

:root {
  --tk-navy:   #14263D;
  --tk-paper:  #FFF6E2;
  --tk-ink:    #14263D;
  --tk-ink-soft: #4E5F73;
  --tk-coral:  #FF7A5C;
  --tk-display: "Bricolage Grotesque", "Arial Black", Inter, system-ui, sans-serif;
  --tk-mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

/* ---------- Top bar ---------- */
html body .site-nav { background: rgba(20, 38, 61, .94); border-bottom-color: rgba(255,255,255,.08); }
html body .nav-wordmark { font-family: var(--tk-display); font-weight: 800; letter-spacing: -0.01em; }
html body .btn-nav { background: #13C7B6; color: var(--tk-navy); font-family: var(--tk-display); font-weight: 800; box-shadow: 0 4px 0 #0B8F83; }
html body .btn-nav:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #0B8F83; }

/* ---------- Headings ---------- */
html body .dnd-card h2, html body .gn-card h2, html body .result-kicker, html body .gn-kicker { font-family: var(--tk-display); }

/* ---------- Score: stamped on ---------- */
html body .result-points, html body .gn-score {
  display: inline-block; margin-top: 6px;
  padding: .06em .24em .1em; border: 5px solid currentColor; border-radius: 16px;
  font-family: var(--tk-display); font-weight: 800; letter-spacing: -0.03em; text-shadow: none;
  transform: rotate(-4deg);
  animation: tk-stamp .45s .15s cubic-bezier(.3,1.6,.5,1) both;
}
html body .result-unit { font-family: var(--tk-mono); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: inherit; }
html body .gn-scorelabel { font-family: var(--tk-mono); font-weight: 500; margin-top: 10px; }
@keyframes tk-stamp {
  0% { transform: rotate(-4deg) scale(1.9); opacity: 0; }
  60% { transform: rotate(-4deg) scale(.94); opacity: 1; }
  100% { transform: rotate(-4deg) scale(1); opacity: 1; }
}

/* ---------- Game code: a ticket stub ---------- */
html body .code-box {
  position: relative; gap: 12px; padding: 16px 20px 20px;
  background: var(--tk-paper); color: var(--tk-ink); border: 0; border-radius: 14px;
  box-shadow: 0 14px 28px rgba(0,0,0,.3);
  -webkit-mask: radial-gradient(circle at 0 44px, transparent 11px, #000 11.5px) left / 51% 100% no-repeat,
                radial-gradient(circle at 100% 44px, transparent 11px, #000 11.5px) right / 51% 100% no-repeat;
          mask: radial-gradient(circle at 0 44px, transparent 11px, #000 11.5px) left / 51% 100% no-repeat,
                radial-gradient(circle at 100% 44px, transparent 11px, #000 11.5px) right / 51% 100% no-repeat;
  animation: tk-print .7s .35s cubic-bezier(.2,.9,.25,1) both;
}
html body .code-box::before {
  content: ""; position: absolute; left: 16px; right: 16px; top: 43px; border-top: 2px dashed rgba(20,38,61,.25);
}
html body .code-label { font-family: var(--tk-mono); font-weight: 500; letter-spacing: .14em; color: var(--tk-ink-soft); padding-bottom: 14px; }
html body .code-label::after { content: " \00b7  admit one"; }
html body .code-value { font-family: var(--tk-mono); font-weight: 500; color: var(--tk-ink); letter-spacing: .08em; }
html body .code-box .btn-primary { background: #13C7B6; color: var(--tk-navy); font-family: var(--tk-display); font-weight: 800; box-shadow: 0 4px 0 #0B8F83; border: 0; }
html body .code-box .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #0B8F83; }
@keyframes tk-print { from { transform: translateY(22px) rotate(-1.5deg); opacity: 0; } to { transform: none; opacity: 1; } }

/* Givernaire's code */
html body .gn-label { font-family: var(--tk-mono); font-weight: 500; letter-spacing: .14em; }
html body .gn-code {
  position: relative; background: var(--tk-paper); color: var(--tk-ink); border: 0; border-radius: 14px;
  font-family: var(--tk-mono); font-weight: 500; padding: 18px 16px;
  box-shadow: 0 14px 28px rgba(0,0,0,.3);
  -webkit-mask: radial-gradient(circle at 0 50%, transparent 10px, #000 10.5px) left / 51% 100% no-repeat,
                radial-gradient(circle at 100% 50%, transparent 10px, #000 10.5px) right / 51% 100% no-repeat;
          mask: radial-gradient(circle at 0 50%, transparent 10px, #000 10.5px) left / 51% 100% no-repeat,
                radial-gradient(circle at 100% 50%, transparent 10px, #000 10.5px) right / 51% 100% no-repeat;
  animation: tk-print .7s .35s cubic-bezier(.2,.9,.25,1) both;
}

/* Steps under the code: mono numbers */
html body .code-steps { font-size: .93rem; }
html body .code-steps li::marker { font-family: var(--tk-mono); color: #13C7B6; }

@media (prefers-reduced-motion: reduce) {
  html body .result-points, html body .gn-score, html body .code-box, html body .gn-code { animation: none; }
}

/* Board pick: Facebook, Instagram, Site & App on one row. */
html body .platform-pick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
html body .platform-opt span { padding-left: 6px; padding-right: 6px; text-align: center; white-space: nowrap; font-size: .88rem; }
html body .platform-opt input:disabled + span, html body .gn-platforms input:disabled + span { opacity: .45; cursor: default; }
html body .gg-again { border-color: rgba(255,255,255,.28); }
