:root {
  --bg: #0b0b0f;
  --panel: #15151d;
  --panel-2: #20202b;
  --text: #f7f1d0;
  --muted: #c6bd96;
  --yellow: #ffd447;
  --yellow-dark: #c79a18;
  --line: #383844;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 212, 71, 0.16), transparent 32rem),
    linear-gradient(135deg, #08080b 0%, #14141d 50%, #09090d 100%);
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image: linear-gradient(var(--yellow) 1px, transparent 1px), linear-gradient(90deg, var(--yellow) 1px, transparent 1px);
  background-size: 28px 28px;
}

a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(11, 11, 15, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 212, 71, 0.16);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #08080b;
  background: var(--yellow);
  box-shadow: 5px 5px 0 #000;
  border: 2px solid #000;
}

nav {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-weight: 700;
}

nav a {
  text-decoration: none;
}

nav a:hover { color: var(--yellow); }

.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 88px 0;
}

.hero {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 46px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--yellow);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1, h2, h3 { line-height: 1.08; margin: 0; }

h1 {
  max-width: 760px;
  font-size: clamp(3rem, 8vw, 6.8rem);
  letter-spacing: -0.06em;
}

h2 {
  font-size: clamp(2rem, 5vw, 4.3rem);
  letter-spacing: -0.045em;
}

h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.hero-text, .section-heading p, .press-section p, .contact-section p, .about-panel p {
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-text { max-width: 610px; }

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid var(--yellow);
  text-decoration: none;
  font-weight: 900;
  box-shadow: 6px 6px 0 #000;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 #000;
}

.button.primary {
  color: #09090d;
  background: var(--yellow);
}

.button.secondary {
  color: var(--yellow);
  background: transparent;
}

.hero-card, .about-panel, .game-card, .value-card, .press-section, .contact-section {
  background: linear-gradient(180deg, rgba(32, 32, 43, 0.95), rgba(18, 18, 25, 0.95));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 18px;
  transform: rotate(2deg);
}

.hero-card p {
  margin: 16px 4px 4px;
  color: var(--muted);
  font-weight: 800;
}

.pixel-screen {
  position: relative;
  height: 280px;
  overflow: hidden;
  background: var(--yellow);
  border: 4px solid #000;
  box-shadow: inset 0 0 0 8px rgba(0, 0, 0, 0.08);
}

.sun { position: absolute; right: 32px; top: 28px; width: 58px; height: 58px; background: #000; border-radius: 50%; }
.hills { position: absolute; left: -20px; right: -20px; bottom: 86px; height: 90px; background: #000; clip-path: polygon(0 100%, 15% 45%, 28% 100%, 44% 25%, 60% 100%, 78% 38%, 100% 100%); }
.water { position: absolute; left: 0; right: 0; bottom: 0; height: 94px; background: repeating-linear-gradient(0deg, #000 0 10px, var(--yellow) 10px 18px); }
.boat { position: absolute; left: 70px; bottom: 66px; width: 96px; height: 28px; background: #000; clip-path: polygon(0 0, 100% 0, 78% 100%, 18% 100%); }

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.single-game-grid {
  grid-template-columns: minmax(0, 1fr);
  max-width: 720px;
}

.game-card {
  overflow: hidden;
}

.game-card.featured {
  transform: translateY(-10px);
}

.game-art {
  min-height: 230px;
  border-bottom: 1px solid var(--line);
  background-color: var(--yellow);
}

.fishing-art {
  background:
    radial-gradient(circle at 78% 22%, #000 0 30px, transparent 31px),
    linear-gradient(135deg, transparent 0 62%, #000 63% 68%, transparent 69%),
    repeating-linear-gradient(0deg, #000 0 8px, var(--yellow) 8px 18px);
}

.bowling-art {
  background:
    radial-gradient(circle at 50% 26%, #000 0 20px, transparent 21px),
    radial-gradient(circle at 43% 20%, var(--yellow) 0 4px, transparent 5px),
    radial-gradient(circle at 50% 16%, var(--yellow) 0 4px, transparent 5px),
    radial-gradient(circle at 57% 20%, var(--yellow) 0 4px, transparent 5px),
    linear-gradient(90deg, transparent 0 18%, #000 18% 21%, transparent 21% 79%, #000 79% 82%, transparent 82%),
    linear-gradient(180deg, var(--yellow) 0 100%);
}

.game-info { padding: 28px; }
.platform {
  margin: 0 0 10px;
  color: var(--yellow);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
}

.game-info p, .game-info li, .value-card p { color: var(--muted); }
.game-info ul { padding-left: 20px; margin-bottom: 0; }

.itch-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.itch-game-card {
  overflow: hidden;
  background: linear-gradient(180deg, rgba(32, 32, 43, 0.95), rgba(18, 18, 25, 0.95));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.itch-game-art {
  display: block;
  padding: 14px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.itch-game-art img {
  display: block;
  width: 100%;
  aspect-ratio: 315 / 250;
  object-fit: cover;
  background: #fff;
  border: 3px solid #000;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.itch-game-info {
  padding: 24px;
}

.itch-game-info p {
  color: var(--muted);
}

.itch-game-info .button {
  margin-top: 14px;
}

.about-section {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: start;
}

.about-panel { padding: 34px; }
.values-grid { display: grid; gap: 18px; }
.value-card { padding: 24px; }

.press-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 40px;
}

.contact-section {
  text-align: center;
  padding: 56px 28px;
}

.contact-section .button { margin-top: 16px; }

.site-footer {
  padding: 28px 18px 42px;
  text-align: center;
  color: var(--muted);
}

.footer-legal {
  margin: 8px 0 0;
  font-size: 0.78rem;
}

.footer-legal a {
  color: inherit;
}

@media (max-width: 820px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .hero, .game-grid, .about-section, .press-section {
    grid-template-columns: 1fr;
  }

  .hero { min-height: auto; padding-top: 56px; }
  .hero-card, .game-card.featured { transform: none; }
  nav { flex-wrap: wrap; }

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

@media (min-width: 821px) and (max-width: 1040px) {
  .itch-game-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.media-art,
.day-ticket-gif {
  min-height: 0;
  background: #fff;
  display: grid;
  place-items: center;
  padding: 18px;
}

.media-art img,
.day-ticket-gif img,
.gif-card img {
  width: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background: #fff;
  border: 3px solid #000;
}

.gameplay-section {
  padding-top: 36px;
}

.gif-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.gif-card {
  margin: 0;
  padding: 16px;
  background: linear-gradient(180deg, rgba(32, 32, 43, 0.95), rgba(18, 18, 25, 0.95));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.gif-card figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}

@media (max-width: 820px) {
  .gif-grid {
    grid-template-columns: 1fr;
  }
}


.bowling-gallery .gif-card img {
  object-fit: contain;
  max-height: 320px;
}

.developer-section {
  grid-template-columns: 0.8fr 1.2fr;
}

.developer-photo-card {
  background: linear-gradient(180deg, rgba(32, 32, 43, 0.95), rgba(18, 18, 25, 0.95));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 16px;
  transform: rotate(-1deg);
}

.developer-photo-card img {
  display: block;
  width: 100%;
  border: 3px solid #000;
  filter: contrast(1.05);
}

.role-line {
  color: var(--yellow) !important;
  font-weight: 900;
  margin-top: 12px;
}

.devlog-hero {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
  gap: 42px;
}

.devlog-copy p {
  color: var(--muted);
  font-size: 1.12rem;
}

.devlog-screen,
.wide-media,
.asteroid-strip {
  background: linear-gradient(180deg, rgba(32, 32, 43, 0.95), rgba(18, 18, 25, 0.95));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 18px;
}

.devlog-screen img,
.wide-media img,
.asteroid-strip img {
  display: block;
  width: 100%;
  background: #fff;
  border: 3px solid #000;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.devlog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.devlog-media {
  display: grid;
  gap: 24px;
  padding-top: 36px;
}

.wide-media {
  width: min(760px, 100%);
  margin: 0 auto;
}

.asteroid-strip {
  width: min(520px, 100%);
  margin: 0 auto;
}

.asteroid-strip img {
  object-fit: contain;
}

.orebound-flight-ship {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9;
  width: 48px;
  height: 48px;
  pointer-events: none;
  background-image: url("assets/mule7-rotations-table-48-48.png");
  background-repeat: no-repeat;
  background-size: 3072px 48px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  will-change: transform;
  filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.75));
}

.orebound-touch-controls {
  display: none;
}

.orebound-touch-button {
  min-width: 76px;
  min-height: 52px;
  border: 2px solid var(--yellow);
  color: var(--yellow);
  background: rgba(11, 11, 15, 0.9);
  box-shadow: 4px 4px 0 #000;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  touch-action: none;
  user-select: none;
}

.orebound-touch-button.thrust {
  color: #09090d;
  background: var(--yellow);
}

.orebound-touch-button:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #000;
}

@media (max-width: 820px) {
  .devlog-hero,
  .devlog-grid {
    grid-template-columns: 1fr;
  }

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

@media (hover: none), (pointer: coarse), (max-width: 820px) {
  body:has(.devlog-hero) {
    padding-bottom: 132px;
  }

  .orebound-touch-controls {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
    padding: 14px max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
    pointer-events: none;
    touch-action: none;
    user-select: none;
    background: linear-gradient(180deg, transparent, rgba(11, 11, 15, 0.86) 38%, rgba(11, 11, 15, 0.96));
  }

  .orebound-touch-cluster {
    display: flex;
    gap: 10px;
    pointer-events: auto;
  }

  .orebound-touch-button {
    min-width: 68px;
    min-height: 50px;
  }
}

@supports not selector(:has(*)) {
  @media (hover: none), (pointer: coarse), (max-width: 820px) {
    body {
      padding-bottom: 132px;
    }
  }
}

.full-width-values {
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 820px) {
  .developer-section,
  .full-width-values {
    grid-template-columns: 1fr;
  }

  .developer-photo-card {
    transform: none;
  }
}

.logo-showcase {
  padding: 18px;
  transform: rotate(2deg);
}

.logo-showcase img {
  display: block;
  width: 100%;
  height: auto;
  border: 4px solid #000;
  background: var(--yellow);
  box-shadow: 8px 8px 0 #000;
}
