:root {
  --bg: #13070a;
  --black: #020202;
  --paper: #fff1cf;
  --ink: #12090c;
  --red: #ef334b;
  --red-deep: #581018;
  --cyan: #38cad7;
  --green: #8ed75e;
  --purple: #7f63ff;
  --yellow: #ffd05a;
  --line: rgba(255, 241, 207, 0.18);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  --ui: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body-glow-top: rgba(255, 209, 112, 0.24);
  --body-glow-left: rgba(239, 51, 75, 0.42);
  --body-top: #7d1720;
  --body-mid: #351017;
  --body-bottom: #12070a;
  --stage-glow-left: rgba(255, 92, 67, 0.52);
  --stage-glow-right: rgba(122, 17, 42, 0.72);
  --stage-glow-low: rgba(38, 5, 16, 0.9);
  --stage-top: #b4222b;
  --stage-mid: #741420;
  --stage-low: #2a0810;
  --stage-bottom: #070204;
  --stage-wash-a: rgba(239, 51, 75, 0.36);
  --stage-wash-b: rgba(56, 202, 215, 0.22);
  --stage-wash-c: rgba(255, 208, 90, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
  background:
    radial-gradient(circle at 48% 8%, var(--body-glow-top), transparent 22rem),
    radial-gradient(circle at 18% 28%, var(--body-glow-left), transparent 30rem),
    linear-gradient(180deg, var(--body-top) 0%, var(--body-mid) 46%, var(--body-bottom) 100%);
  color: var(--paper);
  font-family: var(--ui);
  overflow-x: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

body.is-presskit .stage {
  display: none;
}

body.is-presskit .presskit {
  display: block;
}

.stage {
  position: relative;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 30% 18%, var(--stage-glow-left), transparent 23rem),
    radial-gradient(circle at 73% 32%, var(--stage-glow-right), transparent 28rem),
    radial-gradient(circle at 52% 78%, var(--stage-glow-low), transparent 34rem),
    linear-gradient(145deg, var(--stage-top) 0%, var(--stage-mid) 34%, var(--stage-low) 68%, var(--stage-bottom) 100%);
  touch-action: manipulation;
}

.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 21% 15%, var(--stage-wash-a), transparent 24rem),
    radial-gradient(circle at 82% 20%, var(--stage-wash-b), transparent 22rem),
    radial-gradient(circle at 52% 72%, var(--stage-wash-c), transparent 24rem);
  pointer-events: none;
}

.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 38px 38px;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.fragment-canvas {
  position: absolute;
  inset: 0;
  z-index: 9;
  width: 100%;
  height: 100%;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
}

.webgl-layer {
  position: absolute;
  inset: 0;
  z-index: 10;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
}

.webgl-layer canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.hero-center {
  position: absolute;
  z-index: 20;
  left: 50%;
  top: 43%;
  width: min(98rem, calc(100dvw - 1rem));
  display: grid;
  justify-items: center;
  gap: 3.1rem;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.ransom-logo {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: clamp(0.04rem, 0.45vw, 0.22rem);
  margin: 0;
  line-height: 0.86;
  white-space: nowrap;
}

.ransom-logo span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0.52em;
  padding: 0.03em 0.07em 0.08em;
  color: var(--letter-ink, var(--ink));
  background: var(--letter-bg, var(--paper));
  border: 1px solid rgba(18, 9, 12, 0.45);
  box-shadow: 0 0.14em 0 rgba(0, 0, 0, 0.36);
  font-family: var(--letter-font, Georgia, serif);
  font-size: clamp(2.1rem, 7vw, 7.2rem);
  font-style: var(--letter-style, normal);
  font-weight: var(--letter-weight, 900);
  text-transform: uppercase;
  border-radius: var(--letter-radius, 0);
  transform: rotate(var(--letter-rot, 0deg)) translateY(var(--letter-y, 0)) scaleX(var(--letter-x, 1)) scaleY(var(--letter-scale-y, 1));
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  pointer-events: auto;
}

.hero-btn,
.btn-pk {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
  border: 1px solid rgba(255, 241, 207, 0.28);
  padding: 0.72rem 1rem;
  background: rgba(0, 0, 0, 0.72);
  color: var(--paper);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.hero-btn img {
  width: 1rem;
  height: 1rem;
  margin-right: 0.45rem;
}

.hero-btn.primary {
  background: var(--paper);
  color: var(--ink);
}

.hero-btn.primary img {
  filter: invert(1);
}

.hero-btn:hover,
.btn-pk:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 241, 207, 0.75);
}

.presskit {
  position: relative;
  z-index: 3;
  min-height: 100svh;
  padding: clamp(3rem, 8vw, 6rem) 1rem;
  background:
    radial-gradient(circle at 18% 0%, rgba(239, 51, 75, 0.22), transparent 28rem),
    linear-gradient(180deg, #14070a 0%, #070304 100%);
}

.presskit[hidden] {
  display: none;
}

.presskit-card {
  width: min(72rem, 100%);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: rgba(0, 0, 0, 0.45);
  box-shadow: var(--shadow);
}

.pk-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.25rem clamp(1rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line);
}

.pk-header h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 3.5rem);
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
}

.pk-header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.pk-language-select,
.back-btn,
.copy-btn {
  min-height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 0.22rem;
  padding: 0.62rem 0.9rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.pk-language-select {
  min-width: 10rem;
  background: rgba(0, 0, 0, 0.52);
  color: var(--paper);
}

.pk-language-select option {
  background: #111;
  color: #fff;
}

.back-btn,
.copy-btn {
  background: var(--paper);
  color: var(--ink);
}

.pk-grid {
  display: grid;
  grid-template-columns: 17rem minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1rem, 3vw, 2rem);
  align-items: start;
}

.pk-sidebar {
  position: sticky;
  top: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.42);
}

.pk-section-title,
.pk-block h3 {
  margin: 0 0 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(255, 241, 207, 0.16);
  color: var(--yellow);
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pk-fact {
  margin-bottom: 0.9rem;
}

.pk-fact strong {
  display: block;
  margin-bottom: 0.2rem;
  color: rgba(255, 241, 207, 0.5);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pk-fact span,
.pk-fact a {
  display: block;
  color: var(--paper);
  font-size: 0.92rem;
  line-height: 1.35;
}

.pk-fact a,
.pk-block a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.pk-block {
  margin-bottom: 2.3rem;
}

.pk-block p,
.pk-block li {
  color: rgba(255, 241, 207, 0.78);
  line-height: 1.68;
}

.pk-block ul {
  margin: 0;
  padding-left: 1.15rem;
}

.pk-copy-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(255, 241, 207, 0.16);
}

.pk-copy-heading h3 {
  margin: 0;
  padding: 0;
  border: 0;
}

.copy-btn {
  min-height: 2.25rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--paper);
}

.copy-btn:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink);
}

.pk-copy {
  border-left: 3px solid var(--cyan);
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.06);
}

.asset-note {
  margin: 0.75rem 0 0;
  color: rgba(255, 241, 207, 0.56);
  font-size: 0.82rem;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.media-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: #050505;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.site-footer {
  width: 100%;
  padding: 4.4rem 1rem 5rem;
  border-top: 1px solid rgba(255, 241, 207, 0.16);
  background: var(--black);
  color: rgba(255, 241, 207, 0.66);
  text-align: center;
}

.footer-content {
  max-width: 54rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.35rem;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.82;
  transition: opacity 160ms ease, transform 160ms ease;
}

.footer-logo:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.footer-logo img {
  width: clamp(3rem, 4.3vw, 4rem);
  height: auto;
  display: block;
}

.footer-socials {
  width: min(34rem, 100%);
  margin-top: 0.55rem;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.social {
  --piece-rot: 0deg;
  width: 2.45rem;
  height: 2.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(18, 9, 12, 0.72);
  border-radius: 0.12rem 0.28rem 0.16rem 0.24rem;
  background: var(--piece-bg, rgba(255, 241, 207, 0.8));
  box-shadow: 0 0.18rem 0 rgba(0, 0, 0, 0.42);
  clip-path: polygon(7% 0, 100% 8%, 92% 100%, 0 88%);
  transform: rotate(var(--piece-rot));
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.social img {
  display: block;
  width: 1.12rem;
  height: 1.12rem;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.45));
}

.social:hover {
  transform: translateY(-2px) rotate(var(--piece-rot));
  background: rgba(255, 241, 207, 0.13);
  border-color: rgba(255, 241, 207, 0.65);
}

.social:nth-child(1) { --piece-bg: #fff1cf; --piece-rot: -3deg; }
.social:nth-child(2) { --piece-bg: #101018; --piece-rot: 2deg; }
.social:nth-child(3) { --piece-bg: #38cad7; --piece-rot: -1deg; }
.social:nth-child(4) { --piece-bg: #ef334b; --piece-rot: 3deg; }
.social:nth-child(5) { --piece-bg: #ffd05a; --piece-rot: -2deg; }
.social:nth-child(6) { --piece-bg: #f48aa6; --piece-rot: 1deg; }
.social:nth-child(7) { --piece-bg: #8ed75e; --piece-rot: -3deg; }
.social:nth-child(1) img,
.social:nth-child(5) img,
.social:nth-child(6) img,
.social:nth-child(7) img {
  filter: invert(1) drop-shadow(0 1px 0 rgba(255, 255, 255, 0.25));
}

.legal-text {
  max-width: 40rem;
  color: rgba(255, 241, 207, 0.48);
  font-size: 0.72rem;
  line-height: 1.5;
}

.steam-legal {
  color: rgba(255, 241, 207, 0.34);
  font-size: 0.66rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 760px) {
  .hero-center {
    top: 43%;
    width: 100dvw;
    gap: 2rem;
  }

  .ransom-logo {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    justify-items: center;
    width: 98%;
    max-width: 98dvw;
    margin: 0 auto;
    gap: clamp(0.01rem, 0.16vw, 0.05rem);
  }

  .ransom-logo span {
    width: 100%;
    min-width: 0;
    padding: 0.03em 0.02em 0.06em;
    font-size: clamp(1.18rem, 5.7vw, 1.82rem);
    transform: rotate(var(--letter-rot, 0deg)) translateY(var(--letter-y, 0)) scaleX(0.9) scaleY(1);
  }

  .hero-btn {
    min-height: 2.35rem;
    padding: 0.58rem 0.7rem;
    font-size: 0.66rem;
  }

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

  .pk-sidebar {
    position: static;
  }

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

  .footer-socials {
    justify-content: center;
    gap: 0.75rem;
  }
}

@media (max-width: 360px) {
  .ransom-logo span {
    font-size: clamp(1.06rem, 5.4vw, 1.38rem);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
