/* Fortnite Treasure Odds — original design
   Palette drawn from Treasure Hunters SERP: deep navy/indigo night,
   gold chest/reward tones, cyan compass accents, poster-style type. */

:root {
  --navy-deep: #060a1c;
  --navy: #0c1230;
  --navy-light: #141c42;
  --panel: #111a3a;
  --gold: #e6c165;
  --gold-bright: #ffd873;
  --gold-dim: #caa14b;
  --cyan: #1fb6c9;
  --red: #ff5d5d;
  --ink: #0c0a06;
  --text: #ecebe3;
  --text-dim: #aab0c8;
  --border: rgba(230, 193, 101, 0.25);
  --font-display: "Georgia", "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--navy-deep);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--font-display); color: var(--gold-bright); letter-spacing: 0.01em; }

/* ---------- Header ---------- */

.site-header {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-bright);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.main-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 6px 4px;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover {
  color: var(--gold-bright);
  border-bottom-color: var(--gold);
  text-decoration: none;
}

/* ---------- Hero / calculator ---------- */

.hero {
  position: relative;
  padding: 56px 24px 64px;
  background:
    radial-gradient(ellipse at 20% -10%, rgba(31,182,201,0.18), transparent 55%),
    radial-gradient(ellipse at 90% 10%, rgba(230,193,101,0.14), transparent 50%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 70%);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.9;
}

.compass {
  position: absolute;
  top: -40px;
  right: -40px;
  opacity: 0.35;
}

.map-route {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 160px;
  opacity: 0.5;
}

.hero-inner {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--navy-deep);
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-dim));
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 0 0 18px;
  text-shadow: 0 2px 18px rgba(230,193,101,0.35);
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--text);
  max-width: 720px;
  margin: 0 auto 14px;
}

.version-line {
  font-size: 0.85rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: inline-block;
  padding: 8px 18px;
  margin: 8px auto 32px;
}

.calculator-card {
  position: relative;
  text-align: left;
  background: linear-gradient(180deg, var(--panel), var(--navy-light));
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 28px clamp(18px, 4vw, 36px) 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.04);
}

.calculator-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-bright), var(--cyan));
  border-radius: 14px 14px 0 0;
}

.calc-note {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-top: 0;
  margin-bottom: 22px;
}

.calc-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  align-items: end;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.field input,
.field select {
  background: var(--navy-deep);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 10px 12px;
  font-size: 0.98rem;
  font-family: var(--font-body);
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(31,182,201,0.25);
}

#calculate-button {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 4px;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-dim));
  color: var(--ink);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: none;
  border-radius: 8px;
  padding: 12px 32px;
  cursor: pointer;
  font-size: 0.95rem;
  box-shadow: 0 6px 18px rgba(230,193,101,0.3);
  transition: transform 0.15s ease;
}

#calculate-button:hover { transform: translateY(-2px); }

.odds-result {
  margin-top: 24px;
  background: var(--navy-deep);
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 20px;
  min-height: 60px;
}

.result-placeholder {
  color: var(--text-dim);
  font-style: italic;
  margin: 0;
}

.model-note {
  margin-top: 18px;
  font-size: 0.82rem;
  color: var(--text-dim);
  border-left: 3px solid var(--cyan);
  padding-left: 12px;
}

/* ---------- Content sections ---------- */

.content-section {
  max-width: 880px;
  margin: 0 auto;
  padding: 48px 24px;
}

.content-section.alt {
  max-width: none;
  background: var(--navy);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.content-section.alt > * {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.content-section h2 {
  font-size: 1.7rem;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}

.content-section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
}

.content-section p {
  color: var(--text);
  margin: 0 0 16px;
}

/* ---------- Table ---------- */

.table-wrap {
  overflow-x: auto;
  margin-top: 24px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.odds-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  background: var(--panel);
}

.odds-table th,
.odds-table td {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--border);
}

.odds-table th {
  background: linear-gradient(180deg, var(--navy-light), var(--panel));
  color: var(--gold-bright);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.78rem;
}

.odds-table tr:last-child td { border-bottom: none; }

.odds-table tr:hover td { background: rgba(31,182,201,0.06); }

.odds-table td:first-child { color: var(--gold); font-weight: 600; }

/* ---------- Explore cards ---------- */

.explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.explore-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  color: var(--text);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.explore-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  text-decoration: none;
}

.explore-icon { display: inline-flex; }

.explore-title {
  color: var(--gold-bright);
  font-weight: 700;
  font-size: 1rem;
}

.explore-desc {
  color: var(--text-dim);
  font-size: 0.88rem;
}

/* ---------- FAQ ---------- */

.faq details {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 12px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--gold-bright);
  font-size: 1.02rem;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::before {
  content: "+";
  display: inline-block;
  width: 18px;
  color: var(--cyan);
  font-weight: 900;
}

.faq details[open] summary::before { content: "–"; }

.faq details p {
  margin: 12px 0 2px;
  color: var(--text-dim);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  border-top: 2px solid var(--border);
  padding: 44px 24px 28px;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

.footer-brand {
  max-width: 440px;
}

.footer-disclaimer {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: 12px;
}

.footer-updated {
  color: var(--text-dim);
  font-size: 0.8rem;
  opacity: 0.8;
}

.footer-nav {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-col h3 {
  font-size: 0.82rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.footer-col a {
  display: block;
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.footer-col a:hover { color: var(--gold-bright); }

@media (max-width: 600px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  #calculate-button { width: 100%; justify-self: stretch; text-align: center; }
}

/* ---------- Calculator result ---------- */

.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.report-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
}

.report-card span {
  display: block;
  color: var(--text-dim);
  font-size: 0.78rem;
  min-height: 2.4em;
}

.report-card strong {
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 1.8rem;
}

.thresholds {
  margin-top: 16px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  color: var(--text);
}

.thresholds h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.thresholds div {
  margin: 4px 0;
  color: var(--text-dim);
}

.thresholds b { color: var(--cyan); }

.report-note {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin: 14px 0 0;
}

/* ---------- Inner pages ---------- */

.page-hero {
  position: relative;
  padding: 58px 24px 46px;
  text-align: center;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(31,182,201,0.15), transparent 50%),
    radial-gradient(ellipse at 85% 10%, rgba(230,193,101,0.12), transparent 48%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin: 0 auto 16px;
  max-width: 920px;
}

.page-hero .hero-lead {
  max-width: 790px;
  margin: 0 auto 14px;
  color: var(--text);
}

.crumbs {
  max-width: 880px;
  margin: 0 auto;
  padding: 18px 24px 0;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.crumbs a { color: var(--cyan); }
.crumbs span { margin: 0 4px; }

code {
  color: var(--gold-bright);
  background: rgba(230,193,101,0.1);
  padding: 2px 5px;
  border-radius: 5px;
}

.mini-calc {
  margin-top: 22px;
}

.time-table td:nth-child(n+2) {
  white-space: nowrap;
}

.trust-hero {
  padding-bottom: 34px;
}

.trust-page h2 {
  margin-top: 28px;
}

.contact-email {
  display: inline-block;
  color: var(--gold-bright);
  font-weight: 800;
  font-size: 1.35rem;
  margin: 8px 0 12px;
}
