:root {
  color-scheme: light;
  --ink: #17201d;
  --muted: #5f6a64;
  --paper: #fffaf0;
  --surface: #ffffff;
  --line: #d9e1d5;
  --forest: #0b5147;
  --fern: #49a078;
  --gold: #f4b942;
  --coral: #df3d45;
  --night: #121b24;
  --shadow: 0 18px 50px rgba(19, 38, 33, 0.15);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(255, 250, 240, 0.92);
  border-bottom: 1px solid rgba(11, 81, 71, 0.14);
  backdrop-filter: blur(14px);
}

.brand img {
  width: 176px;
}

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

.site-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--forest);
  font-weight: 800;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--forest);
  color: #fff;
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 86px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(38px, 7vw, 92px) 0 38px;
}

.kicker {
  margin: 0 0 10px;
  color: var(--coral);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

.hero h1,
.page-heading h1 {
  margin-bottom: 18px;
  font-size: clamp(2.55rem, 7vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero p,
.page-heading p,
.content-band p {
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions,
.seed-actions,
.bracket-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.seed-actions {
  justify-content: center;
}

.button,
button,
.learn-more {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.button-primary,
#default-seeds,
#next-button {
  background: var(--coral);
  color: #fff;
}

.button-secondary,
#random-seeds,
#restart-tournament,
#back-button {
  background: var(--forest);
  color: #fff;
}

button:disabled {
  cursor: not-allowed;
  background: #cbd5cf;
  color: #65716b;
}

.hero-art {
  margin: 0;
  border: 10px solid #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotate(1deg);
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0 0 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--line);
}

.feature-strip article,
.content-band,
.tournament-card {
  background: var(--surface);
}

.feature-strip article {
  padding: 24px;
}

.feature-strip span {
  color: var(--fern);
  font-weight: 900;
}

.feature-strip h2,
.content-band h2,
.tournament-card span {
  margin: 6px 0 8px;
  font-size: 1.25rem;
}

.content-band {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 30px;
  margin-bottom: 56px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.page-heading {
  padding: 62px 0 28px;
}

.tournament-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 64px;
}

.tournament-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(18, 27, 36, 0.04);
}

.tournament-card:hover {
  border-color: var(--fern);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.tournament-card img {
  width: 100%;
  height: 116px;
  object-fit: contain;
  margin-bottom: auto;
}

.tournament-card span {
  color: var(--forest);
  font-weight: 900;
}

.tournament-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.featured {
  background: #e8f4ef;
  border-color: rgba(11, 81, 71, 0.24);
}

.site-footer {
  padding: 30px;
  background: var(--night);
  color: #fff;
  text-align: center;
}

.site-footer nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.site-footer a {
  font-weight: 800;
  text-decoration: none;
}

.article-page {
  width: min(1180px, calc(100% - 32px));
}

.article-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: stretch;
  padding: clamp(30px, 6vw, 70px) 0 32px;
}

.article-hero > img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.article-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.article-hero h1 {
  margin-bottom: 18px;
  color: var(--forest);
  font-size: clamp(2.65rem, 6vw, 5.4rem);
  line-height: 0.95;
}

.article-hero p {
  color: var(--muted);
  font-size: 1.1rem;
}

.article-hero .button {
  width: max-content;
  margin-top: 20px;
}

.article-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: clamp(22px, 4vw, 52px);
  align-items: start;
  margin: 16px 0 48px;
}

.article-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 10px;
}

.fact-card {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.fact-card span {
  display: block;
  margin-bottom: 4px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fact-card strong {
  color: var(--forest);
  font-size: 1.05rem;
}

.article-body {
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.article-body p {
  margin-bottom: 22px;
  color: #33413b;
  font-size: 1.08rem;
}

.article-body h2 {
  margin: 38px 0 12px;
  color: var(--forest);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.08;
}

.article-body h2:first-of-type {
  margin-top: 8px;
}

.article-video {
  margin: 34px 0;
}

.article-video video {
  width: 100%;
  border-radius: 14px;
  background: var(--night);
  box-shadow: 0 14px 40px rgba(18, 27, 36, 0.2);
}

.related-posts {
  margin: 0 0 64px;
}

.related-posts h2 {
  margin-bottom: 18px;
  color: var(--forest);
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.related-grid a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--forest);
  font-weight: 900;
  text-decoration: none;
}

.related-grid a:hover {
  border-color: var(--fern);
  box-shadow: var(--shadow);
}

.related-grid img {
  width: 74px;
  height: 74px;
  object-fit: cover;
  border-radius: 10px;
  background: #f4f1e9;
}

.policy-card {
  max-width: 880px;
  margin: 0 auto 48px;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid rgba(11, 81, 71, 0.12);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.policy-card h2 {
  margin: 28px 0 10px;
  color: var(--forest);
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.policy-card h2:first-child {
  margin-top: 0;
}

.policy-card h3 {
  margin: 18px 0 8px;
  color: var(--ink);
}

.policy-card p,
.policy-card li {
  color: var(--muted);
}

.policy-card a {
  color: var(--forest);
  font-weight: 900;
}

.contact-card {
  min-height: 260px;
}

.contact-card iframe {
  display: block;
}
.app-body {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(18, 27, 36, 0.82), rgba(18, 27, 36, 0.96)),
    url("images/Dino Bracket Champion.png") center / cover fixed;
  color: #fff;
}

.bracket-app {
  width: min(1060px, calc(100% - 28px));
  padding: 34px 0 54px;
}

.intro-screen {
  width: min(860px, 100%);
  margin: 8vh auto 0;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(18, 27, 36, 0.82);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.32);
  text-align: center;
  backdrop-filter: blur(16px);
}

.intro-screen img {
  width: min(620px, 100%);
  max-height: 300px;
  margin: 0 auto 24px;
  object-fit: contain;
}

.intro-screen h1,
.round-header h1 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 6vw, 4.2rem);
  line-height: 1;
}

.hidden {
  display: none !important;
}

.round-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  align-items: end;
  gap: 24px;
  margin: 18px 0 22px;
}

.round-header p {
  color: rgba(255, 255, 255, 0.78);
}

.matchup-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}


.movie-body {
  background:
    linear-gradient(180deg, rgba(18, 27, 36, 0.82), rgba(18, 27, 36, 0.96)),
    url("tournament-pages/box-office-hits/images/Box Office Hits Tournament.png") center / cover fixed;
}

.movie-card img,
.movie-champion-card img {
  object-fit: cover;
  background: #0f1720;
}

.movie-card .trailer-link {
  background: var(--coral);
}

.movie-card .trailer-link:hover {
  background: #b24e32;
}


.cryptid-body {
  background:
    linear-gradient(180deg, rgba(18, 27, 36, 0.82), rgba(18, 27, 36, 0.96)),
    url("tournament-pages/cryptids/images/Phantom Four Logo.png") center / cover fixed;
}

.cryptid-card img,
.cryptid-champion-card img {
  object-fit: cover;
  background: #141817;
}
.dog-body {
  background:
    linear-gradient(180deg, rgba(18, 27, 36, 0.82), rgba(18, 27, 36, 0.96)),
    url("tournament-pages/dog-breeds/images/Faithful Four Logo.png") center / cover fixed;
}

.dog-card img,
.dog-champion-card img {
  object-fit: cover;
  background: #141817;
}


.flower-body {
  background:
    linear-gradient(180deg, rgba(18, 27, 36, 0.82), rgba(18, 27, 36, 0.96)),
    url("tournament-pages/flowers/images/Fresh Four logo.png") center / cover fixed;
}

.flower-card img,
.flower-champion-card img {
  object-fit: cover;
  background: #141817;
}

.pope-body {
  background:
    linear-gradient(180deg, rgba(18, 27, 36, 0.78), rgba(18, 27, 36, 0.96)),
    url("tournament-pages/popes/images/Holy Quadrinity.png") center / cover fixed;
}

.pope-card img,
.pope-champion-card img {
  object-fit: cover;
  background: #141817;
}

.shark-body {
  background:
    linear-gradient(180deg, rgba(18, 27, 36, 0.78), rgba(18, 27, 36, 0.96)),
    url("tournament-pages/sharks/images/FIN-al Four Logo.png") center / cover fixed;
}

.shark-card img,
.shark-champion-card img {
  object-fit: cover;
  background: #141817;
}
.dino-card {
  position: relative;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 250, 240, 0.94);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.25);
}

.dino-card:hover {
  outline: 4px solid var(--gold);
  transform: translateY(-3px);
}

.dino-card img {
  width: 100%;
  height: 270px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
}

.dino-card .seed {
  width: max-content;
  margin-top: -24px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--night);
  font-weight: 950;
}

.dino-card h2 {
  margin: 14px 0 10px;
  color: var(--forest);
  font-size: 1.7rem;
  line-height: 1.1;
}

.dino-card p {
  margin-bottom: 8px;
  color: var(--muted);
}

.learn-more {
  width: max-content;
  margin-top: auto;
  background: var(--forest);
  color: #fff;
}

.ad-link {
  margin: 20px 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.78);
}

.ad-link a {
  color: var(--gold);
  font-weight: 900;
}

.live-bracket {
  margin-top: 26px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(18, 27, 36, 0.76);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.2);
}

.live-bracket-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.live-bracket-header h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  line-height: 1;
}

.live-bracket-board {
  overflow-x: auto;
  padding-bottom: 6px;
}

.live-bracket-grid {
  display: grid;
  gap: 18px;
  min-width: 980px;
}

.division-bracket {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.division-bracket h3 {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 1rem;
  text-transform: uppercase;
}

.bracket-rounds {
  display: grid;
  grid-template-columns: 2fr 1.45fr 1.1fr 0.95fr;
  gap: 10px;
}

.finals-rounds {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bracket-round h4 {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.bracket-match {
  display: grid;
  gap: 4px;
  margin-bottom: 8px;
  padding: 5px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
}

.bracket-match.is-current {
  outline: 2px solid var(--gold);
}

.bracket-slot {
  min-height: 30px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.9);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.15;
}

.bracket-slot span {
  color: var(--forest);
  font-weight: 950;
}

.bracket-slot.is-active {
  color: var(--ink);
}

.bracket-slot.is-winner {
  background: var(--gold);
  color: var(--night);
}

.champion-card {
  width: min(540px, 100%);
  margin: 0 auto;
  padding: 22px;
  border-radius: 18px;
  background: rgba(255, 250, 240, 0.96);
  color: var(--ink);
  text-align: center;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.25);
}

.champion-card img {
  width: 100%;
  height: 280px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
}

.champion-card h2 {
  margin: 10px 0;
  color: var(--forest);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(18, 27, 36, 0.74);
}

.modal > div {
  width: min(420px, 100%);
  padding: 24px;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  text-align: center;
  box-shadow: var(--shadow);
}

@media (max-width: 820px) {
  .site-header,
  .site-nav,
  .hero-actions,
  .seed-actions,
  .bracket-controls {
    align-items: stretch;
  }

  .site-header {
    position: static;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    justify-content: center;
  }

  .hero,
  .content-band,
  .article-hero,
  .article-layout,
  .round-header,
  .matchup-container {
    grid-template-columns: 1fr;
  }

  .feature-strip,
  .related-grid,
  .tournament-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 34px;
  }

  .hero-art {
    transform: none;
  }

  .dino-card {
    min-height: auto;
  }

  .dino-card img {
    height: 220px;
  }

  .article-hero > img {
    min-height: 260px;
  }

  .article-hero .button {
    width: 100%;
  }

  .article-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

