:root {
  --bg: #03040c;
  --bg-2: #07081a;
  --cyan: #13dfff;
  --cyan-soft: rgba(19, 223, 255, .24);
  --magenta: #ff2cda;
  --magenta-soft: rgba(255, 44, 218, .24);
  --purple: #8b35ff;
  --yellow: #ffe86b;
  --text: #f4f7ff;
  --muted: #a8b2d8;
  --panel: rgba(7, 10, 30, .72);
  --panel-strong: rgba(7, 9, 24, .94);
  --border: rgba(45, 222, 255, .42);
  --shadow-cyan: 0 0 22px rgba(19, 223, 255, .38);
  --shadow-magenta: 0 0 24px rgba(255, 44, 218, .34);
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Rajdhani", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 44, 218, .24), transparent 34%),
    radial-gradient(circle at 82% 10%, rgba(19, 223, 255, .20), transparent 32%),
    linear-gradient(180deg, rgba(3,4,12,.86), rgba(3,4,12,.98)),
    url("assets/hero-bg.webp") center top / cover fixed no-repeat,
    var(--bg);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -3;
  background:
    conic-gradient(from 45deg at 50% 50%, transparent 0deg, rgba(19,223,255,.09) 70deg, transparent 120deg, rgba(255,44,218,.11) 210deg, transparent 300deg),
    radial-gradient(circle at 50% 120%, rgba(139,53,255,.22), transparent 45%);
  animation: orbitalGlow 22s linear infinite;
  filter: blur(20px);
}

@keyframes orbitalGlow {
  from { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.06); }
  to { transform: rotate(360deg) scale(1); }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }

#neonBackground {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
  opacity: .72;
}
.noise,
.scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
}
.noise {
  opacity: .07;
  background-image:
    linear-gradient(115deg, transparent 0 48%, rgba(255,255,255,.7) 50%, transparent 52% 100%),
    radial-gradient(circle, rgba(255,255,255,.22) 1px, transparent 1px);
  background-size: 180px 180px, 4px 4px;
  mix-blend-mode: screen;
}
.scanlines {
  opacity: .13;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.08) 0 1px, transparent 1px 4px);
}
.cursor-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(19,223,255,.18), rgba(255,44,218,.12) 35%, transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  filter: blur(6px);
  opacity: .7;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: min(calc(100% - 28px), 1420px);
  margin: 14px auto 0;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 13px 24px;
  border: 1px solid rgba(255, 44, 218, .38);
  background: linear-gradient(90deg, rgba(4, 5, 18, .78), rgba(8, 10, 32, .88));
  box-shadow: var(--shadow-magenta), inset 0 0 28px rgba(19, 223, 255, .06);
  backdrop-filter: blur(18px);
  clip-path: polygon(0 0, 98% 0, 100% 24%, 100% 100%, 2% 100%, 0 76%);
}
.brand {
  display: inline-grid;
  min-width: 178px;
  line-height: .9;
  letter-spacing: .19em;
  font-family: "Orbitron", sans-serif;
  text-transform: uppercase;
  filter: drop-shadow(0 0 10px rgba(19,223,255,.55));
  white-space: nowrap;
}
.brand-main {
  font-size: clamp(1.08rem, 1.45vw, 1.55rem);
  font-weight: 900;
  color: var(--cyan);
}
.brand-sub {
  font-size: clamp(.62rem, .82vw, .74rem);
  color: var(--magenta);
  margin-top: 5px;
  letter-spacing: .42em;
}

.main-nav { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 38px); }
.main-nav a,
.music-toggle {
  position: relative;
  color: #dce6ff;
  font-family: "Orbitron", sans-serif;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: color .25s, text-shadow .25s, border-color .25s, box-shadow .25s;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  height: 2px;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  box-shadow: var(--shadow-cyan);
  transition: transform .25s;
}
.main-nav a:hover,
.main-nav a.active { color: var(--cyan); text-shadow: 0 0 14px rgba(19,223,255,.75); }
.main-nav a:hover::after,
.main-nav a.active::after { transform: scaleX(1); }
.music-toggle {
  border: 1px solid rgba(19,223,255,.45);
  background: rgba(19,223,255,.08);
  color: var(--cyan);
  padding: 10px 13px;
  cursor: pointer;
  clip-path: polygon(10% 0, 100% 0, 100% 75%, 90% 100%, 0 100%, 0 25%);
  box-shadow: inset 0 0 18px rgba(19,223,255,.12);
}
.music-toggle[aria-pressed="true"] {
  border-color: rgba(255,44,218,.75);
  color: #ffe1ff;
  box-shadow: inset 0 0 18px rgba(255,44,218,.18), var(--shadow-magenta);
}
.nav-toggle { display: none; background: none; border: 0; padding: 7px; }
.nav-toggle span { display: block; width: 26px; height: 2px; margin: 5px; background: var(--cyan); box-shadow: var(--shadow-cyan); }

main {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 28px), var(--max));
  margin: 22px auto 0;
}

.hud-panel {
  position: relative;
  border: 1px solid rgba(19, 223, 255, .34);
  background: linear-gradient(135deg, rgba(8, 11, 32, .82), rgba(5, 7, 22, .58));
  box-shadow: inset 0 0 40px rgba(19,223,255,.05), var(--shadow-cyan);
  overflow: hidden;
}
.hud-panel::before,
.hud-panel::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 42px;
  pointer-events: none;
}
.hud-panel::before {
  left: -1px;
  top: -1px;
  border-left: 3px solid var(--magenta);
  border-top: 3px solid var(--magenta);
  filter: drop-shadow(0 0 10px rgba(255,44,218,.75));
}
.hud-panel::after {
  right: -1px;
  bottom: -1px;
  border-right: 3px solid var(--cyan);
  border-bottom: 3px solid var(--cyan);
  filter: drop-shadow(0 0 10px rgba(19,223,255,.75));
}

.hero {
  min-height: 670px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(310px, .92fr);
  gap: 34px;
  align-items: center;
  padding: clamp(34px, 6vw, 74px) clamp(24px, 6vw, 82px);
  clip-path: polygon(0 0, 100% 0, 100% 80%, 96% 100%, 4% 100%, 0 80%);
}
.hero-bg-layer {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(19,223,255,.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,44,218,.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(3,4,12,.92) 0%, rgba(3,4,12,.68) 46%, rgba(3,4,12,.18) 100%),
    url("assets/hero-bg.webp") center / cover no-repeat;
  background-size: 64px 64px, 64px 64px, cover, cover;
  opacity: .95;
  transform: scale(1.02);
  z-index: -2;
  animation: slowPan 18s ease-in-out infinite alternate;
}
.hero-bg-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 45%, rgba(255,44,218,.26), transparent 32%),
    radial-gradient(circle at 30% 10%, rgba(19,223,255,.18), transparent 26%),
    linear-gradient(180deg, transparent 70%, rgba(3,4,12,.96));
}
@keyframes slowPan {
  from { transform: scale(1.03) translate3d(-8px, -6px, 0); }
  to { transform: scale(1.07) translate3d(12px, 8px, 0); }
}
.hero-copy { max-width: 680px; }
.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--cyan);
  font-family: "Orbitron", sans-serif;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-shadow: 0 0 16px rgba(19,223,255,.56);
}
.hero h1 {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(3.8rem, 9vw, 8.2rem);
  line-height: .86;
  letter-spacing: .055em;
  text-transform: uppercase;
  color: var(--magenta);
  text-shadow: 0 0 18px rgba(255,44,218,.78), 0 0 42px rgba(255,44,218,.32);
}
.hero h1 span {
  display: block;
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(19,223,255,.8), 0 0 48px rgba(19,223,255,.32);
}
.hero h1 em {
  display: block;
  font-style: normal;
  font-size: .82em;
  letter-spacing: .035em;
}
.hero-text {
  max-width: 650px;
  margin: 26px 0 30px;
  color: #d8e2ff;
  font-size: clamp(1.18rem, 2vw, 1.48rem);
  line-height: 1.35;
}
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }
.btn {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 54px;
  padding: 0 28px;
  border: 1px solid currentColor;
  color: var(--text);
  font-family: "Orbitron", sans-serif;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(5, 10, 26, .72);
  cursor: pointer;
  clip-path: polygon(9% 0, 100% 0, 100% 72%, 91% 100%, 0 100%, 0 28%);
  transition: transform .22s ease, filter .22s ease, box-shadow .22s ease;
}
.btn b { font-size: 1.5em; margin-left: 12px; }
.btn-primary {
  color: #eaffff;
  border-color: rgba(19, 223, 255, .76);
  background: linear-gradient(90deg, rgba(19,223,255,.16), rgba(19,223,255,.05));
  box-shadow: inset 0 0 24px rgba(19,223,255,.2), var(--shadow-cyan);
}
.btn-ghost {
  color: #ffd7ff;
  border-color: rgba(255, 44, 218, .65);
  box-shadow: inset 0 0 22px rgba(255,44,218,.1), var(--shadow-magenta);
}
.btn:hover { transform: translateY(-3px); filter: brightness(1.15); }

.hero-art {
  position: relative;
  width: min(100%, 430px);
  justify-self: end;
  border: 1px solid rgba(19,223,255,.55);
  background: rgba(3,4,12,.6);
  box-shadow: 0 0 40px rgba(19,223,255,.32), 0 0 80px rgba(255,44,218,.22);
  clip-path: polygon(9% 0, 100% 0, 100% 90%, 91% 100%, 0 100%, 0 10%);
  overflow: hidden;
}
.hero-art img { aspect-ratio: 1 / 1; object-fit: cover; transform: scale(1.02); }
.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 1px solid rgba(255,44,218,.42);
  clip-path: inherit;
  pointer-events: none;
}
.hero-art-label {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  padding: 14px 16px;
  background: linear-gradient(90deg, rgba(3,4,12,.86), rgba(3,4,12,.45));
  border: 1px solid rgba(19,223,255,.36);
  box-shadow: inset 0 0 22px rgba(19,223,255,.09);
}
.hero-art-label span,
.tag {
  display: inline-flex;
  color: #fff;
  background: linear-gradient(90deg, var(--magenta), var(--purple));
  font-family: "Orbitron", sans-serif;
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .12em;
  padding: 5px 9px;
  text-transform: uppercase;
}
.hero-art-label strong { display: block; margin-top: 8px; font-size: 1.45rem; color: var(--cyan); text-transform: uppercase; }
.side-text {
  position: absolute;
  top: 50%;
  margin: 0;
  color: rgba(19,223,255,.86);
  font-family: "Orbitron", sans-serif;
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  text-shadow: var(--shadow-cyan);
}
.side-left { left: 20px; transform: translateY(-50%) rotate(180deg); }
.side-right { right: 20px; transform: translateY(-50%); color: rgba(255,44,218,.86); text-shadow: var(--shadow-magenta); }

.about-panel {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 120px minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 24px;
  align-items: center;
  padding: 28px;
  clip-path: polygon(3% 0, 100% 0, 100% 74%, 97% 100%, 0 100%, 0 26%);
}
.avatar-chip {
  width: 96px;
  aspect-ratio: 1;
  border: 1px solid rgba(19,223,255,.58);
  display: grid;
  place-items: center;
  background: rgba(19,223,255,.05);
  box-shadow: inset 0 0 24px rgba(19,223,255,.18), var(--shadow-cyan);
  clip-path: polygon(50% 0, 92% 14%, 100% 50%, 84% 92%, 50% 100%, 14% 92%, 0 50%, 14% 14%);
}
.avatar-chip img { width: 72%; filter: drop-shadow(0 0 14px rgba(19,223,255,.5)); }
.about-copy h2,
.section-head h2,
.contact h2 {
  margin: 0 0 10px;
  font-family: "Orbitron", sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.about-copy p:not(.section-kicker),
.contact p {
  margin: 0;
  color: #d3dcfb;
  font-size: 1.12rem;
  line-height: 1.45;
}
.feature-list {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.feature-list article {
  min-height: 124px;
  padding: 16px 14px;
  border: 1px solid rgba(255,44,218,.28);
  background: rgba(5, 7, 22, .55);
  box-shadow: inset 0 0 22px rgba(255,44,218,.06);
}
.feature-list span { color: var(--cyan); font-size: 1.65rem; text-shadow: var(--shadow-cyan); }
.feature-list strong { display: block; margin: 6px 0 3px; color: var(--magenta); font-family: "Orbitron", sans-serif; font-size: .8rem; text-transform: uppercase; }
.feature-list small { color: var(--muted); font-size: .98rem; }

.projects { margin-top: 34px; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}
.section-head h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.25rem); }
.slider-controls { display: flex; gap: 12px; }
.arrow {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255,44,218,.56);
  color: var(--magenta);
  background: rgba(255,44,218,.06);
  cursor: pointer;
  font-size: 2.2rem;
  line-height: 1;
  box-shadow: inset 0 0 18px rgba(255,44,218,.1), var(--shadow-magenta);
  clip-path: polygon(18% 0, 100% 0, 100% 82%, 82% 100%, 0 100%, 0 18%);
  transition: transform .2s, filter .2s;
}
.arrow:hover { transform: translateY(-2px); filter: brightness(1.2); }

.project-slider {
  min-height: 420px;
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 22px;
  align-items: center;
  perspective: 1200px;
}
.project-card {
  position: relative;
  aspect-ratio: 1 / 1;
  min-height: 350px;
  border: 1px solid rgba(19,223,255,.34);
  background: rgba(5, 7, 22, .72);
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(19,223,255,.07), 0 0 28px rgba(19,223,255,.16);
  clip-path: polygon(8% 0, 100% 0, 100% 88%, 88% 100%, 0 100%, 0 8%);
  transform: scale(.94);
  opacity: .72;
  transition: transform .35s ease, opacity .35s ease, border-color .35s ease, box-shadow .35s ease, filter .35s ease;
}
.project-card.is-active {
  transform: scale(1.04);
  opacity: 1;
  border-color: rgba(19,223,255,.88);
  box-shadow: inset 0 0 34px rgba(19,223,255,.10), 0 0 36px rgba(19,223,255,.36), 0 0 58px rgba(255,44,218,.18);
  z-index: 3;
}
.card-bg {
  position: absolute;
  inset: 0;
  background: center / cover no-repeat;
  opacity: .88;
  transform: scale(1.04);
  transition: transform .55s ease, opacity .35s;
}
.project-card:hover .card-bg { transform: scale(1.10); }
.stick-card-bg { background-image: linear-gradient(180deg, rgba(3,4,12,.1), rgba(3,4,12,.88)), url("assets/stick-survivors-cover.webp"); }
.dungeon-card-bg {
  background:
    radial-gradient(circle at 50% 22%, rgba(255,232,107,.30), transparent 20%),
    radial-gradient(circle at 70% 70%, rgba(139,53,255,.32), transparent 28%),
    linear-gradient(180deg, rgba(3,4,12,.16), rgba(3,4,12,.92)),
    repeating-linear-gradient(90deg, rgba(255,232,107,.1) 0 2px, transparent 2px 46px),
    linear-gradient(135deg, #160915, #06111f 55%, #19041f);
}
.ghost-card-bg {
  background:
    radial-gradient(circle at 50% 40%, rgba(255,44,218,.22), transparent 28%),
    linear-gradient(180deg, rgba(3,4,12,.2), rgba(3,4,12,.94)),
    url("assets/hero-bg.webp") center / cover no-repeat;
  opacity: .42;
}
.tag { position: absolute; left: 20px; top: 18px; z-index: 3; }
.tag-purple { background: linear-gradient(90deg, var(--purple), var(--magenta)); }
.game-logo {
  position: relative;
  z-index: 2;
  width: 78%;
  margin: 94px auto 0;
  filter: drop-shadow(0 0 18px rgba(19,223,255,.65));
}
.stick-logo { margin-top: 112px; }
.dungeon-logo {
  position: relative;
  z-index: 2;
  width: calc(100% - 48px);
  margin: 98px auto 0;
  padding: 18px 10px;
  border: 1px solid rgba(255,232,107,.42);
  background: rgba(4, 5, 18, .62);
  text-align: center;
  text-transform: uppercase;
  font-family: "Orbitron", sans-serif;
  box-shadow: inset 0 0 22px rgba(255,232,107,.12), 0 0 28px rgba(255,232,107,.18);
  clip-path: polygon(9% 0, 100% 0, 100% 78%, 91% 100%, 0 100%, 0 22%);
}
.dungeon-logo strong,
.dungeon-logo span { display: block; line-height: .86; }
.dungeon-logo strong { color: var(--yellow); font-size: clamp(2.1rem, 5vw, 3.1rem); text-shadow: 0 0 18px rgba(255,232,107,.55); }
.dungeon-logo span { color: var(--magenta); font-size: clamp(2.4rem, 5.2vw, 3.3rem); text-shadow: 0 0 18px rgba(255,44,218,.65); }
.game-subtitle {
  position: relative;
  z-index: 2;
  margin: 14px 24px 0;
  color: var(--cyan);
  font-family: "Orbitron", sans-serif;
  font-size: .9rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
  text-shadow: var(--shadow-cyan);
}
.project-meta {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 18px 20px 0;
}
.project-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid rgba(19,223,255,.3);
  background: rgba(3,4,12,.52);
  color: #dce8ff;
  font-size: .88rem;
  font-weight: 700;
}
.project-card .launch-btn {
  position: absolute;
  z-index: 4;
  left: 28px;
  right: 28px;
  bottom: 24px;
  width: calc(100% - 56px);
}
.ghost-card {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 34px;
  border-color: rgba(255,44,218,.33);
}
.triangle-mark {
  position: relative;
  z-index: 2;
  width: 110px;
  aspect-ratio: 1;
  border: 2px solid rgba(255,44,218,.54);
  clip-path: polygon(50% 0, 100% 86%, 0 86%);
  filter: drop-shadow(0 0 18px rgba(255,44,218,.5));
}
.ghost-card p {
  position: relative;
  z-index: 2;
  margin: 6px 0 0;
  color: var(--magenta);
  font-family: "Orbitron", sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: .18em;
}
.ghost-card small {
  position: relative;
  z-index: 2;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .12em;
}
.ghost-meta { margin-top: -10px; }
.dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 20px;
}
.dots span {
  width: 34px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255,44,218,.42);
  box-shadow: var(--shadow-magenta);
  opacity: .65;
}
.dots span.active {
  background: var(--cyan);
  box-shadow: var(--shadow-cyan);
  opacity: 1;
}

.contact {
  margin-top: 34px;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  clip-path: polygon(3% 0, 100% 0, 100% 76%, 97% 100%, 0 100%, 0 24%);
}
.copy-discord.copied::after {
  content: "Copied";
  position: absolute;
  right: 14px;
  top: -28px;
  color: var(--cyan);
  font-size: .72rem;
  text-shadow: var(--shadow-cyan);
}
.site-footer {
  width: min(calc(100% - 28px), var(--max));
  margin: 26px auto 34px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: .98rem;
}
.site-footer a { color: var(--cyan); }

.game-modal {
  width: min(1200px, calc(100vw - 34px));
  height: min(820px, calc(100vh - 34px));
  padding: 0;
  border: 1px solid rgba(19,223,255,.64);
  background: rgba(3,4,12,.96);
  color: var(--text);
  box-shadow: 0 0 50px rgba(19,223,255,.35), 0 0 80px rgba(255,44,218,.22);
}
.game-modal::backdrop { background: rgba(0,0,0,.76); backdrop-filter: blur(8px); }
.modal-shell { display: grid; grid-template-rows: 58px 1fr; height: 100%; }
.modal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(19,223,255,.32);
  background: linear-gradient(90deg, rgba(19,223,255,.08), rgba(255,44,218,.08));
  font-family: "Orbitron", sans-serif;
  text-transform: uppercase;
}
.modal-topbar div { display: flex; align-items: center; gap: 12px; }
.modal-topbar a { color: var(--cyan); font-size: .78rem; }
#closeGame {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,44,218,.58);
  background: rgba(255,44,218,.08);
  color: #fff;
  cursor: pointer;
  font-size: 1.5rem;
}
#gameFrame { width: 100%; height: 100%; border: 0; background: #02030a; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { justify-self: start; width: min(100%, 380px); }
  .about-panel { grid-template-columns: 90px 1fr; }
  .feature-list { grid-column: 1 / -1; }
  .project-slider { grid-template-columns: 1fr; }
  .project-card { width: min(100%, 430px); margin: 0 auto; display: none; }
  .project-card.is-active { display: block; transform: scale(1); }
  .ghost-card.is-active { display: grid; }
}

@media (max-width: 800px) {
  .site-header { min-height: 70px; padding: 12px 18px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    left: 14px;
    right: 14px;
    top: calc(100% + 10px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px;
    border: 1px solid rgba(19,223,255,.4);
    background: rgba(3,4,12,.95);
    box-shadow: var(--shadow-cyan);
  }
  .main-nav.open { display: flex; }
  .main-nav a,
  .music-toggle { padding: 13px 4px; width: 100%; text-align: left; background: transparent; border: 0; clip-path: none; }
  .main-nav a::after { bottom: 4px; transform-origin: left; }
  .hero { min-height: 620px; padding: 54px 22px; }
  .hero h1 { font-size: clamp(3.1rem, 18vw, 5.4rem); }
  .side-text { display: none; }
  .about-panel { grid-template-columns: 1fr; padding: 24px; }
  .feature-list { grid-template-columns: 1fr; }
  .contact { flex-direction: column; align-items: flex-start; }
  .site-footer { flex-direction: column; }
}

@media (max-width: 520px) {
  body { background-attachment: scroll; }
  main { width: min(calc(100% - 16px), var(--max)); }
  .site-header { width: min(calc(100% - 16px), 1420px); }
  .brand { min-width: 142px; }
  .hero { clip-path: polygon(0 0, 100% 0, 100% 92%, 94% 100%, 6% 100%, 0 92%); }
  .hero-actions .btn { width: 100%; }
  .project-card { min-height: auto; }
  .game-logo { margin-top: 92px; }
  .stick-logo { margin-top: 106px; }
  .project-meta span { font-size: .78rem; }
  .project-card .launch-btn { left: 18px; right: 18px; width: calc(100% - 36px); bottom: 18px; padding-inline: 14px; }
}


/* === Final polish update === */
.tag-gold {
  background: linear-gradient(90deg, rgba(255, 232, 107, .92), rgba(255, 150, 76, .88));
  color: #241106;
  text-shadow: none;
}
.game-card {
  display: flex;
  flex-direction: column;
  padding-bottom: 24px;
}
.dungeon-card-bg {
  background:
    linear-gradient(180deg, rgba(3,4,12,.06) 0%, rgba(3,4,12,.30) 42%, rgba(3,4,12,.94) 100%),
    url("assets/dungeon-dealer-cover.png") center top / cover no-repeat;
  opacity: .98;
}
.cover-spacer {
  position: relative;
  z-index: 2;
  min-height: 210px;
}
.dungeon-card .game-subtitle {
  color: #ffe7a6;
  text-shadow: 0 0 14px rgba(255,232,107,.32);
}
.dungeon-card .project-meta span {
  border-color: rgba(255,232,107,.34);
  background: rgba(8, 6, 14, .68);
}
.project-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}
.project-meta span {
  justify-content: center;
  text-align: center;
  min-width: 0;
}
.project-meta span:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
.project-card .launch-btn {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  width: calc(100% - 56px);
  margin: auto 28px 0;
}
.btn[disabled],
.btn.is-disabled {
  cursor: not-allowed;
  color: #fff5cb;
  border-color: rgba(255,232,107,.45);
  background: linear-gradient(90deg, rgba(255,232,107,.14), rgba(255,160,80,.10));
  box-shadow: inset 0 0 18px rgba(255,232,107,.12), 0 0 16px rgba(255,232,107,.12);
  opacity: .9;
}
.btn[disabled]:hover,
.btn.is-disabled:hover {
  transform: none;
  filter: none;
}
@media (max-width: 1080px) {
  .game-card.is-active { display: flex; }
}
@media (max-width: 520px) {
  .project-card .launch-btn {
    left: auto;
    right: auto;
    bottom: auto;
    width: calc(100% - 36px);
    margin-inline: 18px;
    padding-inline: 14px;
  }
  .cover-spacer {
    min-height: 188px;
  }
}
