/* Project Roblox — G1 Finalist Review · mini-site stylesheet
   Design language: Roblox-fan-site (CHARTER §374-403).
   Blocky shadows, primary colours, friendly type, satisfying hover lifts. */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Lilita+One&display=swap');

:root {
  /* Roblox-fan-site palette (NOT trademark) */
  --rb-blue:    #3DA8F5;
  --rb-blue-d:  #1C7BC4;
  --rb-yellow:  #FFE066;
  --rb-orange:  #FFA53D;
  --rb-red:     #FF6F61;
  --rb-pink:    #FF9DD6;
  --rb-green:   #7FCB6E;
  --rb-purple:  #6F3DFF;

  --ink:        #1A1A1A;
  --ink-soft:   #2C2C2C;
  --paper:      #FFFFFF;
  --paper-soft: #F5F1EA;
  --bg:         #0F1A2E;
  --bg-mid:     #1B2B49;
  --bg-soft:    #243A60;

  --shadow-block: 0 4px 0 var(--ink);
  --shadow-lift:  0 8px 0 var(--ink);
  --radius-card:  14px;
  --radius-pill:  999px;
  --grid-gap:     28px;

  --font-display: 'Lilita One', 'Fredoka', system-ui, sans-serif;
  --font-body:    'Fredoka', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--paper);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at top, #2A3E66 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, #4A2A66 0%, transparent 50%);
  background-attachment: fixed;
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── nav ─────────────────────────────────────────────────── */

.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 16px;
  padding: 14px 28px;
  background: var(--ink);
  border-bottom: 4px solid var(--rb-yellow);
}
.brand {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--rb-yellow);
  letter-spacing: 1px;
  text-decoration: none;
}
.brand .accent { color: var(--rb-blue); }
.topbar nav { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.topbar nav a {
  font-family: var(--font-body); font-weight: 700;
  font-size: 15px;
  color: var(--paper);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: background .15s, transform .15s;
}
.topbar nav a:hover { background: var(--rb-blue); transform: translateY(-2px); }

/* ── hero ────────────────────────────────────────────────── */

.hero {
  padding: 56px 28px 40px;
  text-align: center;
  position: relative;
}
.hero .kicker {
  display: inline-block;
  background: var(--rb-yellow);
  color: var(--ink);
  font-family: var(--font-body); font-weight: 700;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-block);
  margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.5vw, 64px);
  line-height: 1.05;
  margin: 0 0 16px;
  color: var(--paper);
  text-shadow: 4px 4px 0 var(--ink);
  letter-spacing: 1px;
}
.hero h1 .pop { color: var(--rb-yellow); }
.hero .sub {
  max-width: 720px; margin: 0 auto 28px;
  font-size: 19px; color: #DCE6F5;
}
.hero .meta {
  display: inline-flex; gap: 10px; flex-wrap: wrap;
  justify-content: center;
}
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  padding: 8px 14px;
  border: 3px solid var(--ink);
  border-radius: var(--radius-pill);
  font-size: 14px;
  box-shadow: var(--shadow-block);
}
.chip.is-blue   { background: var(--rb-blue);   color: var(--paper); }
.chip.is-yellow { background: var(--rb-yellow); color: var(--ink); }
.chip.is-pink   { background: var(--rb-pink);   color: var(--ink); }
.chip.is-green  { background: var(--rb-green);  color: var(--ink); }
.chip.is-red    { background: var(--rb-red);    color: var(--paper); }

/* ── G1 decision callout ─────────────────────────────────── */

.g1-callout {
  margin: 28px auto 0;
  max-width: 920px;
  background: var(--rb-yellow);
  color: var(--ink);
  border: 4px solid var(--ink);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lift);
  padding: 22px 26px;
  text-align: left;
}
.g1-callout h2 {
  font-family: var(--font-display);
  font-size: 24px; margin: 0 0 8px;
  display: flex; align-items: center; gap: 12px;
}
.g1-callout .gate-badge {
  background: var(--ink); color: var(--rb-yellow);
  padding: 4px 12px; border-radius: 8px;
  font-size: 16px; letter-spacing: 1px;
}
.g1-callout ul { margin: 8px 0 0 0; padding-left: 20px; }
.g1-callout li { margin: 4px 0; }
.g1-callout li::marker { color: var(--rb-red); content: "⬢ "; }

/* ── section ─────────────────────────────────────────────── */

.section { padding: 60px 28px; max-width: 1280px; margin: 0 auto; }
.section h2.title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 8px;
  color: var(--paper);
  text-shadow: 3px 3px 0 var(--ink);
}
.section .lead { color: #B6C5DE; max-width: 700px; margin: 0 0 32px; font-size: 17px; }

/* ── finalist grid + cards ───────────────────────────────── */

.grid {
  display: grid;
  gap: var(--grid-gap);
  grid-template-columns: 1fr;
}
@media (min-width: 720px)  { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .grid { grid-template-columns: 1fr 1fr 1fr; } }

.finalist {
  background: var(--paper);
  color: var(--ink);
  border: 4px solid var(--ink);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-block);
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex; flex-direction: column;
}
.finalist:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.finalist:focus-within { outline: 4px dashed var(--rb-yellow); outline-offset: 4px; }

.finalist .hero-img {
  background: linear-gradient(135deg, var(--rb-blue) 0%, var(--rb-purple) 100%);
  border-bottom: 4px solid var(--ink);
  display: block; width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
}
.finalist .pad { padding: 22px 22px 26px; flex: 1; display: flex; flex-direction: column; }
.finalist .rank-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.finalist .rank {
  font-family: var(--font-display);
  font-size: 18px;
  background: var(--ink); color: var(--rb-yellow);
  padding: 4px 12px; border-radius: 8px;
}
.finalist .score {
  background: var(--rb-yellow); color: var(--ink);
  padding: 4px 10px; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 14px;
  border: 2px solid var(--ink);
}
.finalist h3 {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.1;
  margin: 0 0 6px;
  color: var(--ink);
}
.finalist .genre {
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--rb-blue-d);
  margin-bottom: 12px;
}
.finalist .pitch {
  font-size: 16px; color: var(--ink-soft);
  margin: 0 0 14px;
}
.finalist .twin-row {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 6px 0 14px;
}
.finalist .twin-tag {
  background: var(--paper-soft);
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 3px 10px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 700;
}

.finalist details {
  margin-top: auto;
  border-top: 3px dashed #DCD3C4;
  padding-top: 14px;
}
.finalist summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  color: var(--rb-blue-d);
  font-size: 15px;
  display: flex; align-items: center; gap: 8px;
  user-select: none;
}
.finalist summary::-webkit-details-marker { display: none; }
.finalist summary::after {
  content: "▾";
  margin-left: auto;
  transition: transform .15s;
}
.finalist details[open] summary::after { transform: rotate(180deg); }
.finalist .deep { padding-top: 12px; font-size: 15px; color: var(--ink-soft); }
.finalist .deep h4 {
  font-family: var(--font-body); font-weight: 700;
  font-size: 13px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--rb-blue-d);
  margin: 14px 0 4px;
}
.finalist .deep h4:first-child { margin-top: 0; }
.finalist .deep ul { margin: 4px 0 0; padding-left: 20px; }
.finalist .deep ul li::marker { color: var(--rb-orange); content: "⬢ "; }
.finalist .deep .hero-quote {
  background: var(--paper-soft);
  border-left: 4px solid var(--rb-yellow);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  border-radius: 4px;
  white-space: pre-wrap;
}

/* ── finalist-card accent stripes (one colour per slot) ──── */
.finalist.f1 .hero-img { background: linear-gradient(135deg, #FF9DD6 0%, #FFA53D 100%); }
.finalist.f2 .hero-img { background: linear-gradient(135deg, #FFD56B 0%, #FF6F61 100%); }
.finalist.f3 .hero-img { background: linear-gradient(135deg, #6F3DFF 0%, #3A2E55 100%); }
.finalist.f4 .hero-img { background: linear-gradient(135deg, #FF3D7F 0%, #6F3DFF 100%); }
.finalist.f5 .hero-img { background: linear-gradient(135deg, #2A1A3F 0%, #0F0820 100%); }
.finalist.f4 { outline: 4px solid var(--rb-yellow); outline-offset: -8px; }
.finalist.f4 .v-badge {
  position: absolute;
  background: var(--rb-yellow); color: var(--ink);
  font-family: var(--font-display);
  padding: 6px 12px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  font-size: 14px;
  transform: translate(12px, 12px);
  box-shadow: var(--shadow-block);
  letter-spacing: 1px;
}
.finalist.f4 { position: relative; }

/* ── coverage strip ──────────────────────────────────────── */

.coverage {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.cov-card {
  background: var(--bg-soft);
  border: 3px solid var(--ink);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: var(--shadow-block);
}
.cov-card .k {
  font-family: var(--font-display);
  color: var(--rb-yellow); font-size: 13px;
  letter-spacing: 1px; text-transform: uppercase;
}
.cov-card .v {
  margin-top: 4px; font-weight: 700; color: var(--paper);
  font-size: 15px;
}

/* ── decision pack ───────────────────────────────────────── */

.dpack {
  background: var(--paper);
  color: var(--ink);
  border: 4px solid var(--ink);
  border-radius: var(--radius-card);
  padding: 28px 30px;
  box-shadow: var(--shadow-lift);
}
.dpack h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0 0 8px;
}
.dpack ol { padding-left: 22px; }
.dpack ol li { margin: 6px 0; font-size: 16px; }

/* ── footer ──────────────────────────────────────────────── */

footer {
  text-align: center;
  padding: 40px 20px 30px;
  color: #7F90AB;
  font-size: 13px;
}
footer a { color: var(--rb-yellow); }
footer .easter {
  margin-top: 8px;
  opacity: 0.4;
  font-size: 11px;
}

/* ── motion + a11y ───────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
}

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 4px solid var(--rb-yellow);
  outline-offset: 3px;
}

/* phones — shrink brand, scroll-row the nav so 4+ links don't wrap */
@media (max-width: 640px) {
  .topbar {
    padding: 10px 14px;
    gap: 10px;
    min-width: 0;
  }
  .brand {
    font-size: 17px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex: 0 0 auto;
  }
  .brand__project { display: none; }   /* hide "PROJECT" word; keep "⬢ ROBLOX" */
  .topbar nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 4px;
    min-width: 0;
    flex: 1 1 auto;
    justify-content: flex-end;
  }
  .topbar nav::-webkit-scrollbar { display: none; }
  .topbar nav a {
    flex: 0 0 auto;
    padding: 6px 11px;
    font-size: 13px;
    letter-spacing: 0.2px;
  }
}

/* very compact phones */
@media (max-width: 480px) {
  .section { padding: 40px 16px; }
  .finalist .pad { padding: 18px; }
  .hero { padding: 36px 16px 28px; }
}
