/* Shared cinematic chrome — Display layer for all COYG pages.
   Tokens from DESIGN.md (High-Octane cinematic). Sharp corners only. */

:root {
  --pitch-black: #0a0a0a;
  --surface: #210e0c;
  --surface-bright: #4b3330;
  --on-surface: #ffdad5;
  --on-surface-variant: #eabcb5;
  --outline: #b08781;
  --outline-variant: #5f3e3a;
  --primary: #ffb4a9;
  --flash-from: #ef0107;
  --flash-to: #990005;
  --flash-red: #ef0107;
  --on-primary: #690001;
  --tertiary: #afc6ff;
  --glass-fill: rgba(10, 10, 10, 0.62);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-glow: rgba(239, 1, 7, 0.2);
  --flash-gradient: linear-gradient(135deg, #ef0107 0%, #990005 100%);
  --font-display: "Archivo Narrow", "Arial Narrow", Impact, sans-serif;
  --font-body: "Geist", Inter, system-ui, sans-serif;
  --gutter: 24px;
  --margin: 40px;
}

.cine-grain {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body.cine {
  background: var(--pitch-black);
  color: #fff;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

.site-header {
  position: relative;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px var(--margin);
  background: #000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.wordmark {
  justify-self: start;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  letter-spacing: 0.06em;
  color: var(--flash-red);
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: 0 0 24px rgba(239, 1, 7, 0.45);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a,
.login-link {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.login-link:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--flash-red);
}

.login-link { justify-self: end; }

.site-footer {
  position: relative;
  z-index: 20;
  background: #000;
  padding: 28px var(--margin);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer .wordmark {
  font-size: 1.15rem;
  text-shadow: none;
}

.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
}

.footer-links a:hover { color: var(--flash-red); }

.footer-legal {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  max-width: 420px;
  text-align: right;
}

.footer-legal a { color: rgba(255, 255, 255, 0.7); text-decoration: none; }
.footer-legal a:hover { color: var(--flash-red); }

.btn-flash {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--flash-gradient);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
}

.btn-flash:hover {
  filter: brightness(1.12);
  box-shadow: 0 0 20px rgba(239, 1, 7, 0.7);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid var(--flash-red);
  color: var(--flash-red);
  background: transparent;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.btn-ghost:hover {
  background: rgba(239, 1, 7, 0.12);
  box-shadow: 0 0 20px rgba(239, 1, 7, 0.45);
}

.glass {
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 0 18px 0 var(--glass-glow);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.page-shell {
  max-width: 880px;
  margin: 0 auto;
  padding: 40px var(--margin) 80px;
}

.page-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4rem);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 0.95;
  margin: 0 0 16px;
}

.page-lead {
  color: var(--on-surface-variant);
  font-size: 16px;
  line-height: 24px;
  margin: 0 0 24px;
}

body.cine input,
body.cine select,
body.cine textarea {
  width: 100%;
  background: #0a0a0a;
  color: #fff;
  border: 1px solid var(--glass-border);
  border-radius: 0;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 16px;
}

body.cine input:focus,
body.cine select:focus,
body.cine textarea:focus {
  outline: none;
  border-color: var(--flash-red);
  box-shadow: 0 0 18px rgba(239, 1, 7, 0.28);
}

body.cine label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  :root { --margin: 20px; }
  .site-header {
    grid-template-columns: 1fr auto;
    padding: 14px var(--margin);
  }
  .site-nav {
    grid-column: 1 / -1;
    width: 100%;
    gap: 16px;
    overflow-x: auto;
    padding-top: 4px;
  }
  .site-footer { flex-direction: column; align-items: flex-start; }
  .footer-legal { text-align: left; }
}
