/* ==========================================================================
   TurqHaus Entertainment — site styles
   Change --accent to re-tint every button, badge and highlight at once.
   ========================================================================== */

:root {
  --accent: #00C2D1;          /* dragon turquoise */
  --turq-deep: #00717C;       /* turquoise for text on light grounds */
  --ink: #05181D;             /* logo ink */
  --ink-soft: #34484D;
  --paper: #FBF6EA;
  --cream: #FFF6DE;           /* dragon wing cream */
  --egg-spot: #E4D6AE;
  --mint: #CFE3E5;

  --dusk: #15122B;            /* Grand Movie Tycoon section */
  --dusk-2: #1D1840;
  --dusk-text: #DDD5EC;
  --dusk-muted: #AFA6CA;
  --lamp: #FFB04D;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --section-y: clamp(72px, 9vw, 120px);
  --header-h: 80px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul[role="list"], .make-list, .eggs, .features { list-style: none; padding: 0; }

a { color: var(--turq-deep); }
a:hover { color: var(--ink); }

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid #FF9F2E;
  outline-offset: 3px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.display {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 10px;
  font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--cream); }

/* ---------- Small type ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow--accent { color: var(--accent); }
.eyebrow--turq   { color: var(--turq-deep); }
.eyebrow--lamp   { color: var(--lamp); }
.eyebrow--mint   { color: var(--mint); }

.section-title {
  font-weight: 900;
  font-size: clamp(38px, 4.6vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-top: 16px;
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translate(-1px, -1px); }
.btn:active { transform: translate(2px, 2px); box-shadow: none; }

.btn--ink    { background: var(--ink); color: var(--cream); box-shadow: 4px 4px 0 var(--accent); }
.btn--ink:hover { color: var(--cream); box-shadow: 5px 5px 0 var(--accent); }
.btn--accent { background: var(--accent); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.btn--accent:hover { color: var(--ink); }
.btn--ghost  { background: var(--paper); color: var(--ink); }
.btn--ghost:hover { background: var(--cream); }
.btn--shadow-cream { box-shadow: 4px 4px 0 var(--cream); }
.btn--sm     { min-height: 46px; padding: 0 20px; font-size: 15px; }
.btn--square { border-radius: 14px; border-color: var(--accent); box-shadow: none; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 700;
  color: var(--ink);
  text-underline-offset: 5px;
}
.text-link--cream { color: var(--cream); font-weight: 600; }
.text-link--cream:hover { color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 246, 234, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--ink);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 8px 32px;
  min-height: var(--header-h);
  padding-top: 10px;
  padding-bottom: 10px;
}
.site-header__logo { flex: none; line-height: 0; }
.site-header__logo img { height: 58px; width: auto; }

.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  gap: 0 28px;
  font-size: 15px;
  font-weight: 600;
}
.site-nav a {
  padding: 12px 0;
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(var(--accent), var(--accent)) left 80% / 0 3px no-repeat;
  transition: background-size 0.2s ease;
}
.site-nav a:hover { background-size: 100% 3px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 2px solid var(--ink);
  background: var(--cream);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 6vw, 88px) 0 clamp(64px, 8vw, 112px); }
.hero__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px 64px;
}
.hero__copy { flex: 1 1 480px; min-width: 0; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.pill__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  border: 2px solid var(--ink);
}

.hero__title {
  margin: 28px 0 24px;
  font-weight: 900;
  font-size: clamp(46px, 6.2vw, 92px);
  line-height: 0.96;
  letter-spacing: -0.025em;
}
.hero__title-alt {
  display: block;
  margin-top: 6px;
  font-style: italic;
  font-weight: 500;
  color: var(--turq-deep);
}
.hero__lead {
  max-width: 34em;
  margin-bottom: 36px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 16px; }

.hero__visual {
  flex: 1 1 440px;
  min-width: 0;
  display: flex;
  justify-content: center;
}

/* Game card with the dragon perched on its top edge */
.game-card {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin-top: 140px;
  padding: 24px 14px 14px;
  background: var(--ink);
  border-radius: 22px;
  box-shadow: 10px 10px 0 var(--accent);
  transform: rotate(-1.4deg);
}
.game-card__dragon {
  position: absolute;
  left: 4%;
  bottom: 100%;
  z-index: 2;
  width: 60%;
  max-width: 320px;
  line-height: 0;
  pointer-events: none;
}
/* the ledge at the bottom of the dragon image overlaps into the card */
.game-card__dragon img { width: 100%; transform: translateY(11%); }

.game-card__shot {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--dusk);
  cursor: zoom-in;
  line-height: 0;
}
.game-card__shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.game-card__shot:hover img { transform: scale(1.03); }
.game-card__zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  border: 2px solid var(--ink);
}
.game-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 16px 8px 6px;
  color: var(--cream);
}
.game-card__meta > span:first-child { display: flex; flex-direction: column; }
.game-card__title { font-weight: 800; font-size: 24px; line-height: 1.2; }

/* ---------- Ticker ---------- */
.ticker {
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
  border-block: 2px solid var(--ink);
}
.ticker__track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  padding: 18px 0;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  animation: ticker 36s linear infinite;
}
.ticker__track i {
  width: 10px;
  height: 10px;
  background: var(--accent);
  transform: rotate(45deg);
  flex: none;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 14px)); }
}

/* ---------- Grand Movie Tycoon ---------- */
.games {
  background: var(--dusk);
  color: #F6EEDB;
  padding: clamp(72px, 9vw, 128px) 0;
}
.games__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 48px 64px;
}
.games__intro { flex: 1 1 520px; min-width: 0; }
.games__title {
  margin: 18px 0 24px;
  font-weight: 900;
  font-size: clamp(44px, 5.6vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.games__lead {
  max-width: 32em;
  margin-bottom: 36px;
  font-size: 20px;
  line-height: 1.6;
  color: var(--dusk-text);
}
.games__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

.facts {
  flex: 1 1 360px;
  min-width: 0;
  padding: 8px 28px;
  border: 2px solid rgba(246, 238, 219, 0.22);
  border-radius: 22px;
  background: var(--dusk-2);
}
.facts__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(246, 238, 219, 0.14);
}
.facts__row:last-child { border-bottom: 0; }
.facts dt {
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dusk-muted);
}
.facts dd {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-align: right;
  font-weight: 600;
}
.facts__dot { width: 10px; height: 10px; border-radius: 999px; background: var(--lamp); }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 72px;
}
.feature {
  padding: 28px;
  border-radius: 22px;
  background: var(--dusk-2);
  border: 2px solid rgba(246, 238, 219, 0.14);
}
.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  border: 2px solid var(--ink);
}
.feature h3 { margin: 20px 0 10px; font-weight: 800; font-size: 24px; line-height: 1.2; }
.feature p { font-size: 16px; color: #CFC7E2; }

/* ---------- Hatchery ---------- */
.hatchery { padding: var(--section-y) 0; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 48px;
}
.section-head > div { flex: 1 1 460px; min-width: 0; }
.section-head__lead {
  flex: 1 1 380px;
  min-width: 0;
  max-width: 30em;
  font-size: 18px;
  color: var(--ink-soft);
}

.eggs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 56px;
}
.egg-card {
  padding: 28px;
  border-radius: 24px;
  background: var(--cream);
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
}
.egg-card--live { box-shadow: 6px 6px 0 var(--accent); }
.egg-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.egg-card h3 { margin: 24px 0 6px; font-weight: 800; font-size: 28px; line-height: 1.15; }
.egg-card__sub { margin-bottom: 18px; color: var(--ink-soft); }
.egg-card__note { min-height: 44px; display: flex; align-items: center; font-weight: 600; color: var(--ink-soft); }
.egg__spot--accent { fill: var(--accent); }
.egg-card--live .egg { animation: wobble 3.2s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes wobble {
  0%, 70%, 100% { transform: rotate(0); }
  76% { transform: rotate(-6deg); }
  82% { transform: rotate(5deg); }
  88% { transform: rotate(-3deg); }
  94% { transform: rotate(2deg); }
}

.status {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--paper);
  border: 2px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.status--hatching { background: var(--accent); }

/* ---------- Studio ---------- */
.studio { padding-bottom: var(--section-y); }
.studio__panel {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 56px;
  padding: clamp(28px, 5vw, 64px);
  border-radius: 32px;
  background: var(--accent);
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
}
.studio__copy { flex: 1 1 440px; min-width: 0; }
.studio__copy .section-title { margin-bottom: 24px; }
.studio__copy p:not(.eyebrow) { max-width: 32em; font-size: 18px; line-height: 1.6; }
.studio__copy p + p { margin-top: 16px; }

.make-list {
  flex: 1 1 360px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.make-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 18px;
  background: var(--cream);
  border: 2px solid var(--ink);
}
.make-list__icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
}
.make-list strong { display: block; font-weight: 800; font-size: 20px; }
.make-list strong + span { font-size: 15px; color: var(--ink-soft); }

/* ---------- Devlog & contact ---------- */
.contact { padding-bottom: var(--section-y); }
.contact__inner { display: flex; flex-wrap: wrap; gap: 28px; }

.devlog {
  flex: 1 1 520px;
  min-width: 0;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 28px;
  background: var(--ink);
  color: var(--cream);
}
.devlog .section-title { font-size: clamp(36px, 4.2vw, 56px); margin-bottom: 16px; }
.devlog__lead { max-width: 30em; margin-bottom: 28px; font-size: 18px; color: var(--mint); }
.devlog__form { display: flex; flex-direction: column; gap: 10px; }
.devlog__row { display: flex; flex-wrap: wrap; gap: 12px; }
.devlog__row input {
  flex: 1 1 260px;
  min-width: 0;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 14px;
  border: 2px solid #4E6B71;
  background: #0C2830;
  color: var(--cream);
  font: inherit;
  font-size: 17px;
}
.devlog__row input::placeholder { color: #8FA5A9; }
.devlog__row input:focus { border-color: var(--accent); }
.devlog__thanks {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 16px;
  background: #0C2830;
  border: 2px solid var(--accent);
  font-weight: 600;
}
.devlog__thanks[hidden] { display: none; }
.devlog__check {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
}

.contact-cards {
  flex: 1 1 340px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-card {
  padding: 24px;
  border-radius: 22px;
  background: var(--cream);
  border: 2px solid var(--ink);
}
.contact-card__title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 22px;
}
.contact-card p { margin: 10px 0 6px; color: var(--ink-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.chip:hover { background: var(--accent); color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 64px 0 28px;
}
.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px 56px;
}
.site-footer__brand { flex: 1 1 280px; min-width: 0; }
.site-footer__brand img { width: 260px; }
.site-footer__brand p { margin-top: 20px; max-width: 22em; color: var(--mint); }
.site-footer__col {
  flex: 0 1 180px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.site-footer__col .eyebrow { margin-bottom: 8px; }
.site-footer__col a { padding: 8px 0; color: var(--cream); text-decoration: none; }
.site-footer__col a:hover { color: var(--accent); }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 246, 222, 0.16);
  font-size: 14px;
  color: #A9C2C6;
}

/* ---------- Lightbox ---------- */
.lightbox {
  width: min(1280px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(9, 8, 22, 0.88); }
.lightbox img {
  width: 100%;
  max-height: calc(100vh - 96px);
  object-fit: contain;
  border-radius: 16px;
  border: 2px solid #F6EEDB;
  background: var(--dusk);
}
.lightbox figcaption { margin-top: 12px; color: #F6EEDB; }
.lightbox__close {
  position: absolute;
  top: -18px;
  right: -10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  border: 2px solid var(--ink);
  cursor: pointer;
}

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  :root { --header-h: 72px; }
  .site-header__logo img { height: 48px; }
  .nav-toggle { display: inline-flex; }
  .site-header__cta { display: none; }

  .site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    gap: 0;
    padding: 8px 0 12px;
    font-size: 18px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 0; border-top: 1px solid rgba(5, 24, 29, 0.12); background: none; }
  .site-header__inner { flex-wrap: wrap; }

  .game-card { margin-top: 110px; }
  .facts dd { text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__track,
  .egg-card--live .egg { animation: none; }
  .btn, .game-card__shot img { transition: none; }
}
