/* Bank Heist CTF styles.
   The design tokens are copied from the Night of Chances site
   (www.nightofchances.com, :root and .accent-* rules) so the game
   looks like part of the event. */

:root {
  /* Night of Chances brand tokens */
  --night: #292c39;
  --ink: #252835;
  --mint: #00b2a9;
  --mint-light: #80e3cf;
  --pink: #f51776;
  --yellow: #f2af00;
  --paper: #faf9f6;
  --morning: #f5f0ea;
  --muted: #62636c;
  --line: #dededb;
  --font-heading: "Parkinsans", sans-serif;
  --font-body: "Montserrat", sans-serif;

  /* Derived values used on the site */
  --line-strong: #d4ddce;
  --input-border: #92998a;
  --mint-deep: #007c73;
  --night-raised: #3f4355;
  --on-night: #c7c8d0;
  --on-night-muted: #b2b4c0;
  --night-line: #ffffff24;
  --lift: 0 6px #00000018;
  --radius-input: 4px;
  --radius: 7px;
  --radius-card: 9px;

  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

/* Archetype accents reuse the site's accent-* tints. */
.accent-mint { --accent: #007a74; --tint: #e0eee8; --bright: var(--mint); --bright-soft: var(--mint-light); }
.accent-pink { --accent: #bd155c; --tint: #f7e7ed; --bright: var(--pink); --bright-soft: #ff7fb5; }
.accent-yellow { --accent: #816008; --tint: #f7eed3; --bright: var(--yellow); --bright-soft: #ffd166; }

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--paper); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 650; }
h2 { letter-spacing: -1.5px; font-size: clamp(28px, 3vw, 42px); line-height: 1.17; }
h3 { letter-spacing: -0.5px; font-size: 20px; line-height: 1.25; }
a { color: inherit; }
button, input { font: inherit; }
code, .mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.mint-text { color: var(--mint-light); }
.pink-text { color: var(--pink); }

.eyebrow {
  letter-spacing: 1.65px; font-size: 11px; font-weight: 700; line-height: 1.5;
  text-transform: uppercase; display: flex; align-items: center; gap: 9px;
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint-light); flex-shrink: 0; display: inline-block; }
.status-dot.live { animation: pulse-dot 1.6s infinite; }
.status-dot.idle { background: var(--yellow); }
.status-dot.over { background: var(--pink); }
@keyframes pulse-dot { 0%, 100% { box-shadow: 0 0 0 0 #80e3cf99; } 50% { box-shadow: 0 0 0 6px #80e3cf00; } }

/* ---- buttons (same shape and hover lift as the NoC site) ---- */
.button {
  border: 1px solid transparent; border-radius: var(--radius); cursor: pointer;
  display: inline-flex; justify-content: center; align-items: center; gap: 14px;
  min-height: 54px; padding: 16px 24px; font-size: 13px; font-weight: 750; text-decoration: none;
  transition: transform .2s, background .2s, box-shadow .2s;
}
.button:hover:not(:disabled) { transform: translateY(-3px); box-shadow: var(--lift); }
.button:disabled { opacity: .55; cursor: not-allowed; }
.button-mint { background: var(--mint-light); color: #172e2b; }
.button-mint:hover:not(:disabled) { background: #9aeddb; }
.button-dark { background: var(--night); color: #fff; }
.button-dark:hover:not(:disabled) { background: var(--night-raised); }
.button-light { background: var(--paper); color: var(--night); }
.button-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.button-ghost:hover:not(:disabled) { background: #edf2eb; }
.button-small { min-height: 42px; padding: 10px 17px; font-size: 11px; gap: 10px; }
.button-tiny { min-height: 34px; padding: 6px 12px; font-size: 11px; gap: 8px; }
.button svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ---- forms ---- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label, .label { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.field .help { font-size: 12px; color: var(--muted); }
.input {
  width: 100%; min-height: 46px; padding: 10px 12px; color: var(--ink); background: #fff;
  border: 1px solid var(--input-border); border-radius: var(--radius-input); font-size: 14px;
}
.input:focus-visible, .button:focus-visible, .option:focus-visible { outline: 2px solid var(--mint-deep); outline-offset: 2px; }
.form-error { color: #bd155c; font-size: 13px; font-weight: 600; min-height: 1em; }

/* ---- site header ---- */
.site-header { background: var(--night); color: #fff; }
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.brand img { height: 46px; width: auto; display: block; }
.brand-divider { width: 1px; height: 30px; background: var(--night-line); }
.brand-game { font-family: var(--font-heading); font-weight: 650; font-size: 16px; letter-spacing: -0.3px; }
.header-actions { display: flex; gap: 10px; align-items: center; }

/* ---- hero ---- */
.hero { background: var(--night); color: #fff; position: relative; overflow: hidden; }
.hero-glow {
  pointer-events: none; position: absolute; top: -80px; right: -190px; width: 900px; height: 900px;
  background: radial-gradient(at 65% 45%, #00b2a922 0, #00b2a908 35%, transparent 65%);
}
.hero h1 { letter-spacing: -3px; font-size: clamp(42px, 5vw, 70px); line-height: 1.075; }
.hero-description { color: var(--on-night); max-width: 460px; margin-top: 24px; font-size: 14px; line-height: 1.85; }
.motif { width: 110px; height: 110px; filter: drop-shadow(4px 7px #0002); transform: rotate(-13deg); }

/* ---- cards and chips ---- */
.card { background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-card); padding: 24px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px;
  font-size: 10px; font-weight: 750; letter-spacing: .6px; text-transform: uppercase;
  background: var(--tint, #edf2eb); color: var(--accent, var(--ink));
}
.symbol {
  width: 44px; height: 44px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  background: var(--tint); color: var(--accent); flex-shrink: 0;
}
.symbol svg { width: 24px; height: 24px; }

/* ---- toast ---- */
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 10px; z-index: 50; width: min(440px, 100% - 32px); }
.toast {
  background: var(--night); color: #fff; border-radius: var(--radius-card); padding: 14px 18px; font-size: 14px; font-weight: 600;
  box-shadow: 0 20px 60px #0004; border-left: 5px solid var(--mint-light); animation: toast-in .25s ease-out;
}
.toast.bad { border-left-color: var(--pink); }
.toast.gold { border-left-color: var(--yellow); }
@keyframes toast-in { from { transform: translateY(12px); opacity: 0; } }

/* ---- dialog ---- */
dialog {
  background: var(--paper); color: var(--ink); border: 1px solid #d9ded5; border-radius: 15px;
  width: min(480px, 100% - 32px); padding: 32px; box-shadow: 0 30px 100px #0005;
}
dialog::backdrop { background: #1a1c25cc; }

.site-footer { color: var(--muted); font-size: 12px; padding: 40px 0; border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 640px) {
  .brand img { height: 36px; }
  .brand-divider, .brand-game { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
