:root {
  --bg: #07090f;
  --bg-soft: #0d1119;
  --surface: rgba(20, 24, 34, 0.76);
  --surface-strong: rgba(29, 33, 46, 0.92);
  --text: #ebe9e5;
  --text-muted: #b6aca0;
  --line: rgba(184, 154, 111, 0.28);
  --accent: #c88f54;
  --accent-soft: #dfbc7a;
  --emerald: #5c9376;
  --radius: 16px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Segoe UI", "Noto Sans", sans-serif;
  color: var(--text);
  line-height: 1.6;
  background:
    radial-gradient(circle at 16% -8%, rgba(200, 143, 84, 0.16), transparent 36%),
    radial-gradient(circle at 84% -5%, rgba(92, 147, 118, 0.12), transparent 34%),
    linear-gradient(164deg, #07090f 0%, #0c1017 44%, #13131b 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: -1;
}

body::before {
  width: 500px;
  height: 500px;
  left: -180px;
  bottom: -190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 143, 84, 0.16), transparent 68%);
  filter: blur(18px);
}

body::after {
  width: 460px;
  height: 460px;
  right: -180px;
  top: 8vh;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(92, 147, 118, 0.15), transparent 70%);
  filter: blur(18px);
}

.container {
  width: min(1180px, 92vw);
  margin-inline: auto;
}

.section {
  padding-block: 2.2rem;
}

.eyebrow {
  margin: 0;
  color: var(--accent-soft);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow.eyebrow-has-trophies {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.eyebrow .eyebrow-text {
  line-height: 1;
}

.eyebrow .eyebrow-trophy-icon {
  width: 1.08rem;
  height: 1.08rem;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: linear-gradient(to bottom, rgba(8, 10, 15, 0.94), rgba(8, 10, 15, 0.56));
  border-bottom: 1px solid rgba(184, 154, 111, 0.15);
}

.nav-shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  margin-right: auto;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-mark {
  width: 19px;
  height: 19px;
  border-radius: 999px;
  overflow: hidden;
  display: inline-flex;
  margin-left: -2px;
  box-shadow: 0 0 12px rgba(200, 143, 84, 0.36);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.brand-puzzle-link {
  cursor: pointer;
}

.brand-puzzle-link:focus-visible {
  outline: 2px solid rgba(223, 188, 122, 0.92);
  outline-offset: 2px;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(17, 20, 30, 0.85);
  color: var(--text);
  padding: 0.45rem 0.75rem;
  font: inherit;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 0.44rem;
}

.top-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.93rem;
  padding: 0.5rem 0.72rem;
  border-radius: 10px;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.top-nav a:hover,
.top-nav a:focus-visible,
.top-nav a.active {
  color: var(--text);
  background: rgba(200, 143, 84, 0.2);
  transform: translateY(-1px);
  outline: none;
}

.home-main {
  padding-bottom: 0;
}

.hero-stage {
  --mx: 0.5;
  --my: 0.62;
  min-height: calc(100vh - 116px);
  position: relative;
  isolation: isolate;
  overflow: clip;
  background:
    linear-gradient(168deg, rgba(7, 10, 14, 0.92) 0%, rgba(11, 14, 21, 0.84) 44%, rgba(15, 13, 17, 0.84) 100%),
    radial-gradient(ellipse at 50% 8%, rgba(194, 157, 110, 0.28), transparent 52%),
    radial-gradient(ellipse at 50% 110%, rgba(92, 147, 118, 0.18), transparent 54%);
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at calc(var(--mx) * 100%) calc((var(--my) * 100%) + 10%), rgba(228, 191, 141, 0.18), transparent 33%),
    linear-gradient(180deg, rgba(7, 8, 12, 0.28), rgba(7, 8, 12, 0.76));
  z-index: -1;
}

.hero-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, transparent, transparent 32px, rgba(255, 255, 255, 0.02) 33px),
    radial-gradient(circle at 50% 52%, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.64));
  mix-blend-mode: normal;
  opacity: 0.58;
  z-index: -1;
}

.hero-stage.hero-mobile-lite::after {
  opacity: 0.34;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  filter: blur(56px);
  opacity: 0.42;
}

.orb-amber {
  left: 6%;
  top: 16%;
  background: rgba(200, 143, 84, 0.55);
}

.orb-emerald {
  right: 8%;
  bottom: 14%;
  background: rgba(92, 147, 118, 0.42);
}

.sigil {
  position: absolute;
  letter-spacing: 0.2em;
  font-size: 0.66rem;
  color: rgba(233, 220, 201, 0.58);
  border: 1px solid rgba(184, 154, 111, 0.35);
  border-radius: 999px;
  padding: 0.28rem 0.74rem;
  background: rgba(11, 14, 21, 0.62);
}

.sigil-left {
  left: 8%;
  bottom: 18%;
}

.sigil-right {
  right: 8%;
  top: 18%;
}

.hero-shell {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  gap: 0.9rem;
  padding-block: clamp(4rem, 13vh, 8rem);
}

.global-trophy-drops {
  position: absolute;
  inset: 0;
  z-index: 10;
  overflow: hidden;
  pointer-events: none;
}

.global-trophy-drop {
  position: absolute;
  --drop-scale: 1;
  width: calc(184px * var(--drop-scale));
  height: calc(224px * var(--drop-scale));
  transform: translate(-50%, -50%);
  cursor: grab;
  user-select: none;
  touch-action: none;
  will-change: transform;
  z-index: 2;
  pointer-events: auto;
}

.global-trophy-drop.dragging {
  cursor: grabbing;
  z-index: 12;
}

.global-trophy-drop img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.42));
}

.global-trophy-drop .global-trophy-count {
  position: absolute;
  right: calc(-10px * var(--drop-scale));
  top: calc(-10px * var(--drop-scale));
  min-width: calc(44px * var(--drop-scale));
  height: calc(44px * var(--drop-scale));
  padding: 0 calc(10px * var(--drop-scale));
  border-radius: 999px;
  border: 1px solid rgba(223, 188, 122, 0.6);
  background: rgba(16, 20, 29, 0.9);
  color: #efe5d4;
  font-weight: 900;
  font-size: calc(1.18rem * var(--drop-scale));
  line-height: calc(40px * var(--drop-scale));
  text-align: center;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.hero-shell h1 {
  margin: 0;
  font-size: clamp(2.3rem, 6.4vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: 0.02em;
  font-family: "Sora", "Avenir Next", sans-serif;
  text-shadow: 0 0 34px rgba(200, 143, 84, 0.18);
  position: relative;
  min-height: 1.1em;
}

.hero-shell h1.title-physics-active .hero-letter-seed {
  visibility: hidden;
}

.hero-shell h1.title-physics-active {
  text-shadow: none;
}

.title-letters-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 9;
}

.word-item-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 12;
}

.word-spell-item {
  position: absolute;
  width: 120px;
  height: 120px;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  cursor: grab;
  will-change: transform;
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.42));
}

.word-spell-item.dragging {
  cursor: grabbing;
  z-index: 24;
}

.word-spell-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.spelling-hud {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 14;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.56rem;
  border-radius: 12px;
  border: 1px solid rgba(184, 154, 111, 0.44);
  background: rgba(9, 13, 20, 0.8);
  color: #efe3d0;
  min-width: 64px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.32);
}

.spelling-hud-trophy {
  width: 24px;
  height: 24px;
  display: block;
}

.spelling-hud-count {
  font-size: 0.95rem;
  line-height: 1;
  font-weight: 800;
  color: #f1e6d6;
  font-variant-numeric: tabular-nums;
}

.spelling-trash {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 14;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(223, 188, 122, 0.66);
  border-radius: 12px;
  padding: 0.4rem 0.62rem;
  color: #f0e0c9;
  background: rgba(33, 17, 18, 0.76);
  pointer-events: none;
  user-select: none;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.34);
}

.spelling-trash .trash-icon {
  font-size: 1rem;
  line-height: 1;
}

.spelling-trash[hidden] {
  display: none !important;
}

.hero-letter-physics {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: pre;
  font: inherit;
  color: var(--text);
  text-shadow: 0 0 34px rgba(200, 143, 84, 0.18);
  cursor: grab;
  user-select: none;
  pointer-events: auto;
  touch-action: none;
}

.hero-letter-physics.letter-grabbing {
  cursor: grabbing;
}

.hero-letter-physics.u-drop-mark {
  text-decoration-line: underline;
  text-decoration-thickness: 0.11em;
  text-underline-offset: 0.1em;
}

.hero-copy {
  margin: 0;
  max-width: 66ch;
  color: #d1c5b7;
  font-size: clamp(1rem, 1.9vw, 1.2rem);
}

.magic8ball {
  --ball-size: clamp(130px, 13vw, 190px);
  position: absolute;
  width: var(--ball-size);
  height: var(--ball-size);
  z-index: 11;
  left: 74%;
  top: 50%;
  transform: translate(-50%, -50%);
  touch-action: none;
  user-select: none;
  cursor: default;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.42));
}

.magic8ball.ball-grabbable {
  cursor: grab;
}

.magic8ball.ball-grabbing {
  cursor: grabbing;
}

.magic8ball img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  pointer-events: none;
}

.magic8ball picture {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
}

.magic8ball-window {
  position: absolute;
  left: 50%;
  top: 51%;
  transform: translate(-50%, -50%);
  width: 34%;
  height: 34%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 24%, rgba(88, 129, 252, 0.72), rgba(20, 29, 62, 0.95) 58%, rgba(8, 10, 22, 0.96) 100%);
  border: 1px solid rgba(178, 201, 255, 0.58);
  box-shadow: 0 0 14px rgba(80, 112, 255, 0.46), inset 0 0 16px rgba(8, 12, 35, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.45rem;
  pointer-events: none;
}

.magic8ball-window span {
  color: #d6e3ff;
  font-size: clamp(0.48rem, 0.73vw, 0.75rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-shadow: 0 0 6px rgba(121, 153, 255, 0.52);
}

.magic8ball.flash .magic8ball-window {
  box-shadow: 0 0 18px rgba(115, 145, 255, 0.86), inset 0 0 16px rgba(8, 12, 35, 0.62);
}

.gateway-grid {
  margin-top: 1rem;
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 0.95rem;
}

.gateway-card {
  text-decoration: none;
  color: var(--text);
  border: 1px solid rgba(184, 154, 111, 0.3);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(20, 24, 34, 0.8), rgba(12, 14, 20, 0.84));
  box-shadow: var(--shadow);
  min-height: 152px;
  padding: 1rem 0.8rem;
  display: grid;
  place-items: center;
  gap: 0.46rem;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.gateway-card:hover,
.gateway-card:focus-visible {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(223, 188, 122, 0.72);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.56), 0 0 22px rgba(200, 143, 84, 0.28);
  outline: none;
}

.gateway-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: #f2e2cf;
  border: 1px solid rgba(223, 188, 122, 0.5);
  background: radial-gradient(circle at 35% 28%, rgba(223, 188, 122, 0.32), rgba(23, 26, 36, 0.84) 76%);
}

.gateway-label {
  font-size: 0.93rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ded2c4;
}

.lower-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: -1.3rem;
  position: relative;
  z-index: 5;
}

.strip-card {
  border: 1px solid rgba(184, 154, 111, 0.24);
  border-radius: var(--radius);
  padding: 1rem;
  background: linear-gradient(180deg, rgba(25, 30, 42, 0.85), rgba(14, 17, 25, 0.88));
  box-shadow: var(--shadow);
}

.strip-card h2 {
  margin: 0;
  font-size: 1.03rem;
  letter-spacing: 0.01em;
  font-family: "Sora", "Avenir Next", sans-serif;
}

.strip-card p {
  margin: 0.55rem 0 0.8rem;
  color: #c2b7ab;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 12px;
  padding: 0.62rem 1rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.35);
  outline: none;
}

.btn-secondary {
  border-color: var(--line);
  color: var(--text);
  background: rgba(20, 24, 34, 0.78);
}

.page-main {
  padding-top: 2.4rem;
}

.page-hero,
.page-body {
  border: 1px solid rgba(184, 154, 111, 0.2);
  border-radius: var(--radius);
  padding: 1.15rem;
  background: linear-gradient(180deg, rgba(24, 30, 43, 0.78), rgba(14, 17, 26, 0.82));
  box-shadow: var(--shadow);
}

.page-body + .page-body {
  margin-top: 1rem;
}

.page-title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.08;
  font-family: "Sora", "Avenir Next", sans-serif;
}

.page-subtitle {
  margin-top: 0.9rem;
  max-width: 56ch;
  color: #c5b8ab;
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.about-page-main {
  min-height: calc(100vh - 116px);
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.about-panel {
  max-width: 820px;
  text-align: center;
  position: relative;
  z-index: 3;
}

.frogsnake-launch {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -74%);
  border: none;
  background: transparent;
  width: 186px;
  height: 186px;
  padding: 0;
  cursor: pointer;
  z-index: 5;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.45));
  transition: transform 0.16s ease, filter 0.16s ease;
}

.frogsnake-launch:hover,
.frogsnake-launch:focus-visible {
  transform: translate(-50%, -76%);
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.52));
  outline: none;
}

.frogsnake-launch img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.frogsnake-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 70;
  pointer-events: none;
}

body.frogsnake-active {
  overflow: hidden;
}

.about-copy {
  margin: 0.85rem auto 0;
  max-width: 62ch;
  color: #d3c8bc;
  font-size: 1.04rem;
  line-height: 1.82;
}

.about-divider {
  border: none;
  height: 1px;
  width: min(260px, 70%);
  margin: 1.2rem auto 0.9rem;
  background: linear-gradient(90deg, transparent, rgba(223, 188, 122, 0.55), transparent);
}

.contact-label {
  margin: 0;
  color: var(--accent-soft);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.contact-link {
  color: #e8d6bd;
  text-decoration: none;
  border-bottom: 1px solid rgba(223, 188, 122, 0.45);
}

.contact-link:hover,
.contact-link:focus-visible {
  color: #f3e6d4;
  border-bottom-color: rgba(223, 188, 122, 0.9);
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1rem;
}

.project-icon-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  padding: 0.85rem;
  border-radius: 16px;
  border: 1px solid rgba(184, 154, 111, 0.26);
  background: linear-gradient(180deg, rgba(30, 24, 21, 0.82), rgba(16, 13, 12, 0.9));
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.project-icon-card:hover,
.project-icon-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(223, 188, 122, 0.74);
  outline: none;
}

.project-icon-card img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 26px;
  display: block;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.42);
}

.project-icon-card picture {
  display: block;
}

.project-icon-card span {
  text-align: center;
  font-size: 0.92rem;
  color: #dbd2ca;
}

.music-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 900px;
  margin-inline: auto;
}

.music-card {
  border: 1px solid rgba(184, 154, 111, 0.24);
  border-radius: var(--radius);
  padding: 1rem;
  background: linear-gradient(180deg, rgba(18, 23, 34, 0.86), rgba(10, 13, 20, 0.9));
}

.music-card h2 {
  margin: 0;
  font-size: 1.08rem;
  font-family: "Sora", "Avenir Next", sans-serif;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 1.5em;
}

.music-card p {
  margin: 0.55rem 0 0.9rem;
  color: #c1b6aa;
}

.music-card audio {
  width: 100%;
  margin-bottom: 0.85rem;
}

.music-status,
.music-empty {
  margin: 0;
  color: #cdbfae;
}

.apps-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 1rem;
  align-items: start;
  margin-top: 1rem;
}

.apps-downloads {
  align-content: start;
  grid-auto-rows: min-content;
}

.apps-downloads .project-icon-card {
  align-self: start;
}

.apps-emulator-panel {
  display: grid;
  gap: 0.75rem;
  position: sticky;
  top: 88px;
  max-height: calc(100dvh - 108px);
  overflow: auto;
}

.apps-disclaimer {
  margin: 0;
  color: #d7cabb;
  line-height: 1.7;
}

.apps-emulator-list {
  display: grid;
  gap: 0.62rem;
}

.apps-emulator-item {
  border: 1px solid rgba(184, 154, 111, 0.26);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(20, 24, 34, 0.8), rgba(12, 15, 22, 0.9));
  padding: 0.68rem 0.72rem;
}

.apps-emulator-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.apps-emulator-head h2 {
  margin: 0;
  font-size: 0.98rem;
  font-family: "Sora", "Avenir Next", sans-serif;
}

.apps-expand-btn {
  border: 1px solid rgba(223, 188, 122, 0.36);
  border-radius: 10px;
  background: rgba(17, 22, 32, 0.82);
  color: #eadfce;
  font: inherit;
  font-size: 0.85rem;
  padding: 0.32rem 0.62rem;
  cursor: pointer;
}

.apps-expand-btn:hover,
.apps-expand-btn:focus-visible {
  border-color: rgba(223, 188, 122, 0.76);
  outline: none;
}

.apps-emulator-body {
  margin-top: 0.56rem;
  color: #d4c7b9;
  font-size: 0.94rem;
  line-height: 1.64;
}

.apps-emulator-body p {
  margin: 0 0 0.42rem;
}

.apps-emulator-body a {
  color: #ecd8b9;
  text-decoration: none;
  border-bottom: 1px solid rgba(223, 188, 122, 0.5);
}

.apps-emulator-body a:hover,
.apps-emulator-body a:focus-visible {
  border-bottom-color: rgba(223, 188, 122, 0.95);
}

.studio-home-btn {
  position: fixed;
  left: 12px;
  top: 82px;
  z-index: 35;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid rgba(184, 154, 111, 0.32);
  border-radius: 12px;
  padding: 0.5rem 0.85rem;
  color: #efe7df;
  background: rgba(16, 18, 25, 0.76);
}

.studio-home-btn:hover,
.studio-home-btn:focus-visible {
  border-color: rgba(223, 188, 122, 0.78);
}

.site-footer {
  margin-top: 0;
  border-top: none;
  background: rgba(8, 10, 16, 0.14);
}

.footer-shell {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

@media (max-width: 1080px) {
  .gateway-grid {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }

  .lower-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 880px) {
  .nav-toggle {
    display: inline-flex;
  }

  .top-nav {
    position: absolute;
    left: 4vw;
    right: 4vw;
    top: 68px;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.65rem;
    border-radius: 14px;
    border: 1px solid rgba(184, 154, 111, 0.2);
    background: rgba(10, 12, 18, 0.97);
    transform: scale(0.98);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .site-header.nav-open .top-nav {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
  }

  .top-nav a {
    padding: 0.58rem 0.65rem;
  }

  .studio-home-btn {
    top: 74px;
  }

  .hero-shell {
    padding-block: 3.8rem 4.2rem;
  }

  .global-trophy-drops {
    inset: 0;
  }

  .hero-shell h1 {
    font-size: clamp(2.2rem, 9.5vw, 3.9rem);
  }

  .hero-stage {
    min-height: calc(100dvh - 84px);
  }

  .gateway-card {
    min-height: 132px;
  }

  .gateway-icon {
    width: 62px;
    height: 62px;
    font-size: 1.7rem;
  }

  .footer-shell {
    min-height: 40px;
  }

  .page-main {
    padding-top: 1.5rem;
  }

  .icon-grid {
    grid-template-columns: repeat(auto-fill, minmax(154px, 1fr));
    gap: 0.78rem;
  }

  .project-icon-card img {
    width: 136px;
    height: 136px;
  }

  .music-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    max-width: 100%;
  }

  .apps-layout {
    grid-template-columns: 1fr;
  }

  .apps-emulator-panel {
    position: static;
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(1180px, 94vw);
  }

  .brand {
    font-size: 0.97rem;
  }

  .magic8ball {
    --ball-size: 104px;
  }

  .magic8ball-window span {
    font-size: 0.47rem;
  }

  .gateway-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
  }

  .gateway-card {
    min-height: 118px;
    padding: 0.8rem 0.55rem;
  }

  .sigil {
    font-size: 0.58rem;
    letter-spacing: 0.12em;
  }

  .hero-copy {
    font-size: 0.96rem;
  }

  .gateway-grid {
    margin-top: 0.65rem;
  }

  .gateway-label {
    font-size: 0.86rem;
  }

  .eyebrow {
    font-size: 0.92rem;
  }

  .project-icon-card {
    padding: 0.62rem;
  }

  .project-icon-card img {
    width: 120px;
    height: 120px;
    border-radius: 20px;
  }

  .music-card {
    padding: 0.85rem;
  }

  .music-card h2 {
    font-size: 1.02rem;
  }

  .about-copy {
    font-size: 0.98rem;
    line-height: 1.72;
  }
}

@media (pointer: coarse) {
  .site-header {
    backdrop-filter: blur(7px);
  }

  .orb {
    filter: blur(42px);
    opacity: 0.3;
  }
}
