/* Blasthole website. Colors are the game's own UI tokens (Assets/UserInterface/StyleSheets/Tokens.uss). */

:root {
  --ink: #140d09;
  --ink-deep: #0c0907;
  --board: rgba(32, 25, 20, 0.92);
  --board-solid: #201914;
  --board-edge: rgba(255, 228, 186, 0.13);
  --board-raised: rgba(255, 236, 210, 0.06);
  --lamp: #ffc646;
  --lamp-hover: #ffdc7c;
  --lamp-depth: #9e4618;
  --heading: #ecbc6a;
  --text: #eee8de;
  --text-strong: #fffbf4;
  --text-dim: rgba(238, 232, 222, 0.76);
  --text-faint: rgba(238, 232, 222, 0.54);
  --on-lamp: #261508;
  --display: 'Lilita One', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --width: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  background: var(--ink-deep);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3,
ul,
ol,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

strong {
  color: var(--text-strong);
  font-weight: 600;
}

:focus-visible {
  outline: 2px solid var(--lamp);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

/* The page sits in the dark like the mine: a lamp-warm glow behind the hero, grain over everything. */
.backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 70% 18%, rgba(255, 170, 60, 0.10), transparent 62%),
    radial-gradient(ellipse 90% 70% at 50% 110%, rgba(0, 0, 0, 0.85), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-deep) 70%);
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: calc(var(--width) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Logo: gold face over a dark-orange depth, tilted, as in the game's main menu. */
.logo {
  position: relative;
  display: inline-block;
  font-family: var(--display);
  font-weight: 400;
  line-height: 1;
  color: var(--lamp);
  transform: rotate(-4deg);
  text-shadow:
    0 0.07em 0 var(--lamp-depth),
    0 0.07em 0 var(--lamp-depth),
    0 0.11em 0.02em rgba(0, 0, 0, 0.6);
  -webkit-text-stroke: 0.035em var(--ink);
  paint-order: stroke fill;
}

.logo--small {
  font-size: 26px;
}

.logo--hero {
  font-size: clamp(64px, 11vw, 124px);
  margin-left: -0.04em;
}

.site-header {
  padding-top: 22px;
}

.site-header a {
  display: inline-block;
  transition: transform 200ms ease;
}

.site-header a:hover {
  transform: translateY(-2px);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.tags__live {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--lamp);
}

.tags__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lamp);
  animation: flicker 2.6s ease-in-out infinite;
}

.tags__sep {
  color: rgba(255, 228, 186, 0.2);
}

@keyframes flicker {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 198, 70, 0.55);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(255, 198, 70, 0);
  }
}

/* Hero */
.hero {
  display: grid;
  gap: 40px;
  padding-block: 56px 80px;
  align-items: center;
}

.hero__title {
  margin-top: 36px;
}

.hero__pitch {
  margin-top: 30px;
  max-width: 34rem;
  font-size: clamp(17px, 2vw, 19px);
  line-height: 1.6;
  color: var(--text-dim);
}

.hero__actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__note {
  margin-top: 22px;
  max-width: 30rem;
  font-size: 14px;
  color: var(--text-faint);
}

.hero__shot {
  position: relative;
}

@media (min-width: 1000px) {
  .hero {
    grid-template-columns: 1fr 1.15fr;
    gap: 56px;
    padding-block: 72px 104px;
  }
}

/* Buttons, after the game's: lamp gold for the main action, dark stone for the rest. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 10px;
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: 0.02em;
  line-height: 1;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

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

.button:active {
  transform: translateY(0);
}

.button--primary {
  background: var(--lamp);
  color: var(--on-lamp);
  box-shadow: inset 0 -4px 0 rgba(158, 70, 24, 0.55), 0 14px 34px -14px rgba(255, 170, 50, 0.6);
}

.button--primary:hover {
  background: var(--lamp-hover);
}

.button--quiet {
  background: var(--board-solid);
  color: var(--text);
  border: 1px solid var(--board-edge);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.35);
}

.button--quiet:hover {
  border-color: rgba(255, 198, 70, 0.45);
}

.button svg {
  flex-shrink: 0;
}

@media (max-width: 520px) {
  .hero__actions .button {
    width: 100%;
  }
}

/* Framed screenshots */
.frame {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--board-edge);
  background: var(--board-solid);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9);
  transition: border-color 250ms ease, transform 250ms ease;
}

a.frame:hover {
  border-color: rgba(255, 198, 70, 0.4);
}

.frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero__shot .frame {
  transform: rotate(1.2deg);
}

/* Sections */
.divider {
  position: relative;
  height: 1px;
  background: rgba(255, 228, 186, 0.1);
}

.divider::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: var(--ink-deep);
  border: 1px solid rgba(255, 198, 70, 0.4);
}

.section {
  padding-block: 88px;
}

.section__head {
  margin-bottom: 44px;
}

.section__title {
  margin-top: 10px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(32px, 4.4vw, 46px);
  line-height: 1.05;
  color: var(--heading);
}

.section__lede {
  margin-top: 16px;
  max-width: 40rem;
  font-size: 18px;
  color: var(--text-dim);
}

@media (min-width: 900px) {
  .section {
    padding-block: 112px;
  }

  .split {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 64px;
  }

  .split .section__head {
    margin-bottom: 0;
  }
}

.prose {
  max-width: 42rem;
  display: grid;
  gap: 22px;
  font-size: 17px;
  color: var(--text-dim);
}

.prose h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.15;
  color: var(--text-strong);
  margin-top: 14px;
}

.prose h3:first-child {
  margin-top: 0;
}

/* The kit */
.kit {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .kit {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .kit {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.card {
  height: 100%;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--board-edge);
  background: var(--board);
  transition: border-color 250ms ease, background-color 250ms ease;
}

.card:hover {
  border-color: rgba(255, 198, 70, 0.3);
  background: rgba(40, 31, 24, 0.95);
}

.card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  background: var(--board-raised);
  border: 1px solid var(--board-edge);
  color: var(--lamp);
}

.card h3 {
  margin-top: 18px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 23px;
  line-height: 1.1;
  color: var(--text-strong);
}

.card p {
  margin-top: 10px;
  font-size: 15px;
  color: var(--text-dim);
}

/* Screenshots */
.gallery {
  display: grid;
  gap: 16px;
}

@media (min-width: 700px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
}

.gallery figure {
  margin: 0;
}

.gallery figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-faint);
}

.gallery figcaption strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 400;
  color: var(--text);
}

/* Rules list */
.rules {
  display: grid;
  gap: 14px;
}

@media (min-width: 800px) {
  .rules {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.rule {
  padding: 22px 24px;
  border-left: 3px solid var(--lamp);
  background: var(--board);
  border-radius: 0 10px 10px 0;
}

.rule__label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lamp);
}

.rule p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--text-dim);
}

/* Status */
.status {
  padding: 28px;
  border-radius: 14px;
  border: 1px solid var(--board-edge);
  background: var(--board);
}

@media (min-width: 900px) {
  .status {
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
  }
}

.status__text {
  display: grid;
  gap: 14px;
  max-width: 44rem;
  color: var(--text-dim);
}

.status__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.1;
  color: var(--text-strong);
}

.status__actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (min-width: 900px) {
  .status__actions {
    margin-top: 0;
    flex-direction: column;
  }
}

/* Facts */
.facts {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px 24px;
  margin-top: 30px;
  font-size: 15px;
}

.facts dt {
  padding-top: 2px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.facts dd {
  color: var(--text);
}

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

.link {
  text-decoration: underline;
  text-decoration-color: rgba(238, 232, 222, 0.35);
  text-underline-offset: 4px;
  transition: color 150ms ease;
}

.link:hover {
  color: var(--lamp);
}

/* Footer */
.site-footer {
  padding-block: 40px 56px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-faint);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.site-footer a:hover,
.site-footer button:hover {
  color: var(--lamp);
}

/* Consent banner: non-blocking, Accept and Decline equally prominent. */
.consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 16px;
}

.consent__panel {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 22px;
  border-radius: 12px;
  border: 1px solid var(--board-edge);
  background: var(--board-solid);
  box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.8);
}

.consent__panel p {
  font-size: 14px;
  color: var(--text-dim);
}

.consent__buttons {
  display: flex;
  gap: 12px;
}

.consent__buttons .button {
  flex: 1;
  min-height: 46px;
  font-size: 18px;
}

@media (min-width: 700px) {
  .consent__panel {
    flex-direction: row;
    align-items: center;
    gap: 28px;
  }

  .consent__buttons {
    flex-shrink: 0;
  }

  .consent__buttons .button {
    flex: none;
  }
}

/* Entrance */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.rise {
  opacity: 0;
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.hero__shot.rise {
  animation-name: rise;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .rise {
    opacity: 1;
    animation: none;
  }

  .tags__dot {
    animation: none;
  }

  .button,
  .frame,
  .card,
  .site-header a {
    transition: none;
  }

  .button:hover,
  .site-header a:hover {
    transform: none;
  }
}

/* Privacy page */
.policy {
  max-width: 46rem;
  padding: 56px 0 96px;
  font-size: 16px;
}

.policy h1 {
  margin-top: 10px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 46px);
  line-height: 1.05;
  color: var(--heading);
}

.policy h2 {
  margin-top: 40px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 24px;
  color: var(--text-strong);
}

.policy p,
.policy li {
  margin-top: 12px;
  line-height: 1.7;
  color: var(--text-dim);
}

.policy a {
  text-decoration: underline;
  text-decoration-color: rgba(238, 232, 222, 0.4);
  text-underline-offset: 4px;
}

.policy a:hover {
  color: var(--lamp);
}

.card__icon--picture {
  width: 72px;
  height: 72px;
  padding: 6px;
}

.card__icon--picture img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
}
