/* ------------------------------------------------------------------
   luumedev — single-page site
   Palette: #ec273f field · #fff4e6 cream · #14131a ink · #ffc845 gold
   Type: Reddit Mono (brand) · Londrina Solid (game)
   ------------------------------------------------------------------ */

@font-face {
  font-family: "Reddit Mono";
  src: url("assets/fonts/RedditMono-Bold.woff2") format("woff2"),
       url("assets/fonts/RedditMono-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Reddit Mono";
  src: url("assets/fonts/RedditMono-Black.woff2") format("woff2"),
       url("assets/fonts/RedditMono-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Londrina Solid";
  src: url("assets/fonts/LondrinaSolid-Regular.woff2") format("woff2"),
       url("assets/fonts/LondrinaSolid-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --red: #ec273f;
  --red-deep: #a5102a;
  --ink: #14131a;
  --ink-soft: #1d1c26;
  --cream: #fff4e6;
  --cream-70: rgba(255, 244, 230, 0.72);
  --cream-45: rgba(255, 244, 230, 0.45);
  --gold: #ffc845;
  --max: 1120px;
  --pad: clamp(20px, 5vw, 48px);
}

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

html { scroll-padding-top: 84px; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100%;
  background-color: var(--red);
  background-image: radial-gradient(rgba(20, 19, 26, 0.13) 1px, transparent 1px);
  background-size: 26px 26px;
  color: var(--cream);
  font-family: "Reddit Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

::selection { background: var(--ink); color: var(--cream); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--cream);
  color: var(--ink);
  padding: 12px 18px;
  z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ----------------------------- header ----------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #e3243b;
  border-bottom: 1px solid rgba(20, 19, 26, 0.22);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 17px;
  letter-spacing: -0.03em;
  text-transform: lowercase;
}

.brand__mark {
  width: auto;
  height: 24px;
  color: var(--cream);
  transition: transform 0.3s ease;
}
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.08); }

.brand__dev {
  display: inline-block;
  margin-left: 3px;
  padding: 1px 4px;
  border-radius: 4px;
  background: var(--ink);
  color: var(--cream);
  font-size: 10px;
  letter-spacing: 0.04em;
  vertical-align: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 28px);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav a {
  padding-block: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, opacity 0.15s ease;
}
.nav a:hover { border-color: var(--cream); }
.nav a .arrow { opacity: 0.55; }

@media (max-width: 520px) {
  .nav { gap: 14px; font-size: 11px; letter-spacing: 0.06em; }
  .nav a[data-hide-sm] { display: none; }
}

/* ------------------------------ hero ------------------------------ */

.hero {
  position: relative;
  padding-block: clamp(56px, 9vw, 116px) clamp(44px, 6vw, 84px);
}

.hero__inner { position: relative; z-index: 2; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 clamp(18px, 2.4vw, 28px);
  padding: 6px 12px 6px 10px;
  border: 1px solid rgba(20, 19, 26, 0.5);
  border-radius: 999px;
  background: rgba(20, 19, 26, 0.12);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 200, 69, 0.25);
  animation: pulse 2.6s ease-in-out infinite;
}

@keyframes pulse {
  50% { box-shadow: 0 0 0 6px rgba(255, 200, 69, 0); }
}

.hero__title {
  margin: 0;
  font-size: clamp(3.5rem, 13.4vw, 10rem);
  font-weight: 900;
  line-height: 0.84;
  letter-spacing: -0.065em;
  text-shadow: 0.045em 0.045em 0 var(--ink);
}

.hero__title .dev {
  display: inline-block;
  margin-left: 0.016em;
  color: var(--ink);
  -webkit-text-stroke: 0.013em var(--cream);
  text-shadow: none;
}

.hero__lede {
  max-width: 44ch;
  margin: clamp(22px, 3vw, 32px) 0 0;
  font-size: clamp(15px, 1.5vw, 17.5px);
  line-height: 1.6;
  color: var(--cream);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(26px, 3.4vw, 38px);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.82em 1.25em;
  border: 2px solid var(--ink);
  border-radius: 11px;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  text-transform: lowercase;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
}
.btn:hover {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--ink);
}
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }

.btn--primary { background: var(--cream); color: var(--ink); }
.btn--primary:hover { background: var(--gold); }

.btn--ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
  box-shadow: 4px 4px 0 rgba(20, 19, 26, 0.9);
}
.btn--ghost:hover { background: rgba(20, 19, 26, 0.16); }

.hero__deco {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.deco {
  position: absolute;
  width: clamp(110px, 13vw, 190px);
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.1;
  image-rendering: pixelated;
}
.deco--1 { top: 2%; right: 6%; transform: rotate(12deg); width: clamp(150px, 18vw, 260px); }
.deco--2 { top: 46%; right: 22%; transform: rotate(-14deg); }
.deco--3 { bottom: -6%; right: 2%; transform: rotate(6deg); width: clamp(130px, 16vw, 230px); }

@media (max-width: 860px) {
  .hero__deco { display: none; }
}

/* ----------------------------- ticker ----------------------------- */

.ticker {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  border-block: 2px solid var(--ink);
  padding-block: 11px;
  user-select: none;
}

.ticker::before,
.ticker::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(32px, 6vw, 80px);
  z-index: 2;
  pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(90deg, var(--ink), transparent); }
.ticker::after { right: 0; background: linear-gradient(270deg, var(--ink), transparent); }

.ticker__track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
}

.ticker__group {
  display: flex;
  align-items: center;
  gap: 26px;
  padding-right: 26px;
}

.tick {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--cream);
}

.tick img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  image-rendering: pixelated;
}

.tick .sep {
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
  .dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ------------------------------ games ----------------------------- */

.games {
  padding-block: clamp(56px, 8vw, 96px) clamp(64px, 9vw, 120px);
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: clamp(24px, 3.4vw, 38px);
}

.section-head h2 {
  margin: 0;
  font-family: "Londrina Solid", "Reddit Mono", sans-serif;
  font-weight: 400;
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  line-height: 1;
  letter-spacing: 0.01em;
}

.section-head .rule {
  flex: 1;
  height: 2px;
  background: rgba(20, 19, 26, 0.35);
}

.section-head .count {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink);
  opacity: 0.75;
}

.game {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  grid-template-areas:
    "art  body"
    "shop body";
  align-content: start;
  gap: clamp(18px, 2.4vw, 26px) clamp(24px, 3.6vw, 46px);
  padding: clamp(18px, 2.6vw, 30px);
  background: var(--ink);
  border: 2px solid rgba(255, 244, 230, 0.14);
  border-radius: 22px;
  box-shadow: 12px 12px 0 var(--red-deep);
}

.game__art {
  grid-area: art;
  position: relative;
  margin: 0;
}

.game__art img {
  width: 100%;
  height: auto;
  border-radius: 13px;
  border: 2px solid rgba(255, 244, 230, 0.12);
}

.game__art figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-45);
}

.game__body {
  grid-area: body;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.game__kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.game__kicker .bar {
  flex: 1;
  max-width: 90px;
  height: 1px;
  background: rgba(255, 200, 69, 0.4);
}

.game__title {
  margin: 0;
  font-family: "Londrina Solid", "Reddit Mono", sans-serif;
  font-weight: 400;
  font-size: clamp(2.3rem, 4.6vw, 3.3rem);
  line-height: 0.95;
  letter-spacing: 0.005em;
}

.game__sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 10px 0 0;
}

.pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--cream);
  color: var(--ink);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pill--outline {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(255, 244, 230, 0.28);
}

.game__desc {
  margin: 16px 0 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--cream-70);
  text-wrap: pretty;
}

.game__features {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.game__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--cream);
}

.game__features img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  image-rendering: pixelated;
  flex: none;
  opacity: 0.9;
}

.game__features span { color: var(--cream-70); }

.game__facts {
  margin: clamp(18px, 2.4vw, 24px) 0 0;
  padding: 0;
  border-top: 1px solid rgba(255, 244, 230, 0.12);
}

.game__facts > div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 244, 230, 0.09);
}

.game__facts dt {
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--cream-45);
  padding-top: 2px;
}

.game__facts dd {
  margin: 0;
  font-size: 12.5px;
  color: var(--cream-70);
}

.game__link {
  align-self: flex-start;
  margin-top: clamp(18px, 2.4vw, 24px);
  padding-bottom: 3px;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--cream-70);
  border-bottom: 1px solid rgba(255, 244, 230, 0.32);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.game__link:hover { color: var(--gold); border-color: var(--gold); }

.widget {
  grid-area: shop;
  margin-top: 4px;
  padding-top: clamp(14px, 2vw, 20px);
  border-top: 1px dashed rgba(255, 244, 230, 0.18);
}

.widget__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-45);
}

.widget__label .live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cream-70);
}

.widget__label .live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.widget iframe {
  display: block;
  width: 100%;
  max-width: 646px;
  height: 190px;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #1b2838;
}

.widget__fallback {
  margin: 10px 0 0;
  font-size: 11.5px;
  color: var(--cream-45);
}
.widget__fallback a {
  color: var(--cream-70);
  border-bottom: 1px solid rgba(255, 244, 230, 0.35);
}
.widget__fallback a:hover { color: var(--gold); border-color: var(--gold); }

/* Mobile wishlist CTA — replaces the iframe when it would be too narrow */
.wishlist {
  display: none;
  grid-area: shop;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  min-height: 70px;
  border-radius: 12px;
  background: #1b2838;
  border: 1px solid rgba(255, 244, 230, 0.16);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}
.wishlist:hover {
  background: #223247;
  border-color: rgba(255, 244, 230, 0.38);
}
.wishlist__icon {
  flex: none;
  width: 26px;
  height: 26px;
  color: var(--cream);
}
.wishlist__icon svg { width: 100%; height: 100%; display: block; }
.wishlist__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.wishlist__text strong {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.01em;
}
.wishlist__text span {
  font-size: 11px;
  letter-spacing: 0.03em;
  color: rgba(255, 244, 230, 0.55);
}
.wishlist__arrow {
  margin-left: auto;
  font-size: 15px;
  color: var(--cream);
}

/* ------------------------------ 404 ------------------------------- */

.nf {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(64px, 10vw, 120px);
}

.nf__code {
  margin: 0;
  font-size: clamp(5rem, 22vw, 14rem);
  font-weight: 900;
  line-height: 0.78;
  letter-spacing: -0.06em;
  text-shadow: 0.045em 0.045em 0 var(--ink);
}

.nf__text {
  max-width: 34ch;
  margin: 26px 0 30px;
  font-size: clamp(15px, 2vw, 18px);
  color: var(--cream);
}

/* ----------------------------- footer ----------------------------- */
.site-footer {
  border-top: 1px solid rgba(20, 19, 26, 0.28);
  padding-block: 30px 38px;
  font-size: 12px;
  color: var(--ink);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
}

.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--cream);
}

.foot-brand svg { width: auto; height: 19px; color: var(--cream); }

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-self: end;
}

.foot-links a {
  letter-spacing: 0.06em;
  border-bottom: 1px solid transparent;
}
.foot-links a:hover { border-color: rgba(20, 19, 26, 0.6); }

/* --------------------------- responsive --------------------------- */

@media (max-width: 900px) {
  .game {
    grid-template-columns: 1fr;
    grid-template-areas:
      "art"
      "body"
      "shop";
  }
  .game__title { font-size: clamp(2.2rem, 8vw, 3rem); }
}

@media (max-width: 560px) {
  .site-header__inner { height: 62px; gap: 12px; }

  .brand { font-size: 16px; gap: 8px; }
  .brand__mark { width: 22px; }
  .brand__dev { font-size: 9.5px; padding: 1px 4px; }

  .nav { gap: 6px; font-size: 11.5px; letter-spacing: 0.04em; }
  .nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 8px;
  }
  .nav a:last-child { padding-right: 0; }

  .hero { padding-block: 40px 40px; }
  .eyebrow { font-size: 10.5px; padding: 5px 11px 5px 9px; }

  .hero__title {
    font-size: clamp(3rem, 15.4vw, 5.2rem);
    text-shadow: 0.05em 0.05em 0 var(--ink);
  }
  .hero__title .dev { -webkit-text-stroke-width: 0.016em; }

  .hero__lede {
    margin-top: 20px;
    font-size: 15.5px;
    line-height: 1.55;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 26px;
  }

  .btn {
    justify-content: center;
    min-height: 50px;
    padding: 0.9em 1.1em;
    font-size: 14px;
  }

  .ticker { padding-block: 10px; }
  .tick { font-size: 12.5px; gap: 8px; }
  .tick img { width: 24px; height: 24px; }
  .ticker__group { gap: 22px; padding-right: 22px; }

  .games { padding-block: 44px 48px; }
  .section-head { margin-bottom: 20px; gap: 12px; }
  .section-head h2 { font-size: 2rem; }
  .section-head .rule { display: none; }
  .section-head .count { font-size: 11px; }

  .game {
    gap: 20px;
    padding: 16px;
    border-radius: 18px;
    box-shadow: 8px 8px 0 var(--red-deep);
  }

  .game__art img { border-radius: 11px; }
  .game__art figcaption { font-size: 10px; letter-spacing: 0.1em; color: rgba(255, 244, 230, 0.55); }

  .game__kicker { font-size: 10.5px; margin-bottom: 10px; }
  .game__title { font-size: clamp(2.1rem, 10.5vw, 2.8rem); }

  .game__sub { gap: 7px; margin-top: 12px; }
  .pill { font-size: 9.5px; padding: 4px 9px; }

  .game__desc { font-size: 15px; line-height: 1.6; margin-top: 14px; }

  .game__features { gap: 9px; margin-top: 16px; }
  .game__features li { font-size: 13.5px; line-height: 1.45; gap: 9px; }
  .game__features img { width: 22px; height: 22px; }

  .game__facts > div { grid-template-columns: 88px 1fr; gap: 10px; padding: 9px 0; }
  .game__facts > div.wide { grid-template-columns: 1fr; gap: 3px; }
  .game__facts dt { font-size: 10px; }
  .game__facts dd { font-size: 13px; }

  .widget { display: none; }
  .wishlist { display: flex; }

  .game__link {
    font-size: 11.5px;
    padding-block: 10px;
    align-self: stretch;
  }

  .foot-links a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding-block: 4px;
    font-size: 12px;
  }

  .site-footer { padding-block: 24px 30px; }
  .site-footer__inner {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 10px;
  }
  .foot-links { justify-self: auto; gap: 2px 18px; }
  .foot-links a { padding-block: 8px; font-size: 12px; }
}

@media (max-width: 360px) {
  .brand__dev { display: none; }
  .hero__title { font-size: 2.9rem; }
  .nav { font-size: 11px; gap: 2px; }
}