@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700;800&family=Inter:wght@400;600;700&display=swap');

:root {
  --ink: #090706;
  --deep: #120b08;
  --wood: #24130d;
  --red: #7b1515;
  --red2: #a41e1e;
  --gold: #d6a83d;
  --gold2: #f0cf72;
  --cream: #f6ead0;
  --muted: #c9bca6;
  --line: rgba(214,168,61,.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* ANIMATED PIRATE HARBOR BACKGROUND */

.harbor-background {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
}

.harbor-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(
      circle at center,
      rgba(5, 4, 4, .28),
      rgba(5, 4, 4, .58) 70%,
      rgba(5, 4, 4, .78)
    );
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--cream);
  font-family: Inter, system-ui, sans-serif;
  
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .28;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0 7px,
      rgba(0,0,0,.18) 8px
    );
}

main {
  width: min(760px, calc(100% - 28px));
  margin: auto;
  padding: 54px 0 34px;
  position: relative;
  z-index: 2;
}

.hero {
  text-align: center;
  padding: 20px 8px 36px;
}

.emblem {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  font-size: 44px;
  color: var(--gold2);
  background:
    radial-gradient(circle, #45120f, #160b08 70%);
  box-shadow:
    0 0 0 7px rgba(214,168,61,.08),
    0 16px 45px #000;
}

.eyebrow,
.kicker {
  margin: 0 0 8px;
  color: var(--gold2);
  letter-spacing: .22em;
  font-size: .72rem;
  font-weight: 800;
}

h1,
h2,
footer strong {
  font-family: Cinzel, Georgia, serif;
}

h1 {
  margin: 0;
  font-size: clamp(2.7rem, 12vw, 5.7rem);
  line-height: .95;
  letter-spacing: .035em;
  color: #fff5df;
  text-shadow:
    0 3px 0 #5e1212,
    0 9px 30px #000;
}

.tagline {
  color: var(--gold2);
  font-family: Cinzel, Georgia, serif;
  font-weight: 700;
  margin: 15px 0 0;
}

.intro {
  color: var(--muted);
  max-width: 560px;
  margin: 14px auto 0;
  line-height: 1.65;
}

.panel {
  position: relative;
  overflow: hidden;
  margin: 18px 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(123,21,21,.16), transparent 45%),
    rgba(20,13,10,.91);
  box-shadow: 0 18px 55px rgba(0,0,0,.3);
}

.panel::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(214,168,61,.08);
  border-radius: 14px;
  pointer-events: none;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(1.45rem, 6vw, 2rem);
}

.links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.button {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid rgba(214,168,61,.48);
  border-radius: 13px;
  color: #fff8e8;
  text-decoration: none;
  font-weight: 800;
  background:
    linear-gradient(
      180deg,
      rgba(135,27,24,.92),
      rgba(74,14,13,.95)
    );
  transition:
    transform .15s ease,
    border-color .15s ease,
    filter .15s ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: var(--gold2);
  filter: brightness(1.12);
}

.button span {
  color: var(--gold2);
  font-size: 1.1rem;
}

.discord p:not(.kicker) {
  color: var(--muted);
  line-height: 1.6;
}

.primary {
  margin-top: 18px;
  background:
    linear-gradient(180deg, var(--red2), #68110f);
}

/* ================================
   CURRENT GAMES
   ================================ */

.game-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.game-grid article {
  position: relative;
  display: grid;
  gap: 7px;
  min-height: 105px;
  padding: 20px;
  border: 1px solid rgba(214,168,61,.22);
  border-left: 3px solid var(--gold);
  border-radius: 12px;
  background:
    linear-gradient(
      135deg,
      rgba(123,21,21,.18),
      transparent 65%
    ),
    rgba(255,255,255,.035);
  box-shadow:
    0 10px 25px rgba(0,0,0,.18);
  transition:
    transform .18s ease,
    border-color .18s ease,
    box-shadow .18s ease;
}

.game-grid article:hover {
  transform: translateY(-3px);
  border-color: rgba(240,207,114,.55);
  border-left-color: var(--gold2);
  box-shadow:
    0 14px 32px rgba(0,0,0,.3);
}

.game-grid strong {
  font-family: Cinzel, Georgia, serif;
  color: #fff5df;
  font-size: 1.05rem;
}

.game-grid span {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.45;
}

footer {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 35px 10px 10px;
  color: var(--muted);
  text-align: center;
}

footer strong {
  color: var(--gold2);
  letter-spacing: .12em;
}

footer small {
  margin-top: 9px;
  opacity: .65;
}

/* ================================
   LIVE STREAM STATUS
   ================================ */

.stream-status {
  position: relative;
  overflow: hidden;
}

.status-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 16px;
}

.status-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--muted);
  box-shadow:
    0 0 0 4px rgba(255,255,255,.04);
}

.status-label {
  font-weight: 700;
  letter-spacing: .12em;
  font-size: .8rem;
  color: var(--muted);
}

.stream-status h2 {
  margin-bottom: 10px;
}

.stream-status .stream-game {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

.stream-button {
  width: 100%;
}

/* LIVE state */

.stream-status.is-live {
  border-color: var(--red2);
  box-shadow:
    0 0 25px rgba(164,30,30,.18),
    inset 0 0 30px rgba(164,30,30,.05);
}

.stream-status.is-live .status-dot {
  background: #e84b4b;
  box-shadow:
    0 0 12px rgba(232,75,75,.8);
  animation: livePulse 1.5s infinite;
}

.stream-status.is-live .status-label {
  color: #ff7777;
}

@keyframes livePulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.35);
    opacity: .65;
  }
}

/* ================================
   MOBILE
   ================================ */

@media (max-width: 520px) {
  main {
    padding-top: 28px;
  }

  .panel {
    padding: 23px 18px;
  }

  .links {
    grid-template-columns: 1fr;
  }

  .button {
    min-height: 62px;
  }

  .game-grid {
    grid-template-columns: 1fr;
  }
}
