:root {
  --room-glass: rgba(18, 18, 20, 0.58);
  --room-glass-strong: rgba(15, 15, 17, 0.76);
  --room-glass-soft: rgba(255, 255, 255, 0.075);
  --room-line: rgba(255, 255, 255, 0.16);
  --room-line-strong: rgba(255, 255, 255, 0.28);
  --room-ink: #f7f7f8;
  --room-muted: rgba(247, 247, 248, 0.64);
  --room-subtle: rgba(247, 247, 248, 0.42);
  --room-dark-ink: #151517;
  --room-radius-lg: 16px;
  --room-radius-md: 12px;
  --room-radius-sm: 12px;
  --room-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --room-shadow: 0 6px 8px rgba(0, 0, 0, 0.22);
  --room-inset: inset 0 1px rgba(255, 255, 255, 0.14), inset 0 -1px rgba(255, 255, 255, 0.035);
}

::selection {
  color: #111;
  background: rgba(255, 255, 255, 0.9);
}

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

a:focus-visible,
button:focus-visible,
[role="slider"]:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.92);
  outline-offset: 3px;
}

/* Shared floating chrome */
.uiverse-widget-wrapper {
  position: fixed !important;
  top: 1.15rem !important;
  left: 50% !important;
  right: auto !important;
  z-index: 90 !important;
  display: grid;
  width: min(72rem, calc(100% - 3rem)) !important;
  min-height: 3rem;
  padding: 0 !important;
  grid-template-columns: minmax(8rem, 1fr) auto minmax(8rem, 1fr);
  align-items: center;
  gap: 1rem;
  color: var(--room-ink) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  transform: translateX(-50%) !important;
}

.site-wordmark {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 0.46rem;
  color: var(--room-ink);
  font-size: 0.7rem;
  font-weight: 720;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.72);
}

.site-wordmark i {
  width: 1.55rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.42);
}

.uiverse-widget-wrapper .menu {
  display: flex !important;
  padding: 0.25rem !important;
  gap: 0.15rem !important;
  background: rgba(7, 9, 11, 0.28) !important;
  border: 0 !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.15) !important;
  backdrop-filter: blur(14px) saturate(1.15) !important;
}

.uiverse-widget-wrapper .link,
.uiverse-widget-wrapper .link:hover,
.uiverse-widget-wrapper .link:focus {
  display: inline-flex !important;
  width: auto !important;
  min-width: 4.45rem !important;
  height: 2.45rem !important;
  padding: 0 0.7rem !important;
  gap: 0.46rem !important;
  color: rgba(247, 247, 248, 0.58) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 10px !important;
  transform: none !important;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms var(--room-ease) !important;
}

.uiverse-widget-wrapper .link:hover,
.uiverse-widget-wrapper .link:focus-visible {
  color: var(--room-ink) !important;
  background: rgba(255, 255, 255, 0.085) !important;
}

.uiverse-widget-wrapper .link:active {
  transform: scale(0.96) !important;
}

.uiverse-widget-wrapper .link[aria-current="page"] {
  color: #111113 !important;
  background: rgba(250, 250, 251, 0.92) !important;
  box-shadow: none !important;
}

.uiverse-widget-wrapper .link-icon {
  position: static !important;
  display: grid !important;
  width: 1rem !important;
  height: 1rem !important;
  flex: 0 0 1rem !important;
  place-items: center !important;
}

.uiverse-widget-wrapper .link-icon svg {
  width: 1rem !important;
  height: 1rem !important;
}

.uiverse-widget-wrapper .link-title {
  display: block !important;
  width: auto !important;
  opacity: 1 !important;
  color: inherit;
  font-size: 0.76rem !important;
  font-weight: 620 !important;
  letter-spacing: -0.01em !important;
  text-indent: 0 !important;
  transform: none !important;
}

.site-language-toggle {
  justify-self: end;
  min-width: 3.35rem;
  min-height: 2.4rem;
  padding: 0 0.65rem;
  color: rgba(247, 247, 248, 0.8);
  background: rgba(7, 9, 11, 0.18);
  border: 0;
  border-radius: 10px;
  box-shadow: none;
  font-size: 0.72rem;
  font-weight: 650;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms var(--room-ease);
}

.site-language-toggle:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
}

.site-language-toggle:active {
  transform: scale(0.95);
}

.uiverse-social-wrapper,
body[data-profile-active="true"] .uiverse-social-wrapper {
  position: fixed !important;
  left: 1.25rem !important;
  bottom: 1.25rem !important;
  z-index: 70 !important;
  display: block !important;
  color: var(--room-ink) !important;
  transform: none !important;
}

.uiverse-social-wrapper .card {
  display: flex !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  gap: 0.18rem !important;
  background: transparent !important;
  border: 0;
  border-radius: 0 !important;
  box-shadow: none;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.uiverse-social-wrapper .card a {
  display: grid !important;
  width: 2.3rem !important;
  height: 2.3rem !important;
  place-items: center !important;
  color: rgba(247, 247, 248, 0.58) !important;
  background: rgba(7, 9, 11, 0.16) !important;
  border-radius: 11px !important;
  text-shadow: 0 1px 7px rgba(0, 0, 0, 0.7);
  transition: color 180ms ease, background-color 180ms ease, transform 180ms var(--room-ease) !important;
}

.uiverse-social-wrapper .card a:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.11) !important;
  animation: none !important;
  transform: translateY(-1px) !important;
}

.uiverse-social-wrapper .card a:active {
  transform: scale(0.94) !important;
}

.uiverse-social-wrapper .card svg {
  position: static !important;
  width: 1rem !important;
  height: 1rem !important;
}

/* Home */
body[data-uiverse-route="home"] .hero-section > .home-stage {
  position: relative;
  z-index: 1;
  display: grid !important;
  width: min(100%, 92rem) !important;
  min-height: 100svh !important;
  padding: 7.5rem clamp(1rem, 5vw, 4rem) 6rem !important;
  margin: 0 auto !important;
  place-items: center !important;
}

.home-console {
  width: min(48rem, 100%);
  padding: 0.78rem;
  color: var(--room-ink);
  background: rgba(16, 16, 18, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: var(--room-radius-lg);
  box-shadow: var(--room-shadow), var(--room-inset);
  -webkit-backdrop-filter: blur(34px) saturate(1.28);
  backdrop-filter: blur(34px) saturate(1.28);
  animation: room-panel-enter 720ms var(--room-ease) both;
}

.home-console-bar {
  display: flex;
  min-height: 2.4rem;
  padding: 0.2rem 0.72rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--room-subtle);
  font-size: 0.68rem;
  font-weight: 590;
  letter-spacing: 0.05em;
}

.home-signal {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
}

.home-signal i {
  width: 0.47rem;
  height: 0.47rem;
  background: #d9dfd8;
  border-radius: 50%;
  box-shadow: 0 0 0 0.25rem rgba(217, 223, 216, 0.1);
}

.home-copy {
  padding: clamp(2rem, 6vw, 4.6rem) clamp(1rem, 7vw, 4.7rem) clamp(2.2rem, 5vw, 3.6rem);
  text-align: center;
}

.home-kicker {
  margin: 0 0 1rem;
  color: rgba(247, 247, 248, 0.62);
  font-size: clamp(0.78rem, 1.3vw, 0.9rem);
  font-weight: 590;
}

.home-copy h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(3.3rem, 8vw, 5.8rem) !important;
  font-weight: 670 !important;
  line-height: 0.94 !important;
  letter-spacing: -0.04em !important;
  text-wrap: balance;
}

.home-summary {
  max-width: 42rem;
  margin: 1.45rem auto 0 !important;
  color: rgba(247, 247, 248, 0.68) !important;
  font-size: clamp(0.96rem, 1.8vw, 1.14rem) !important;
  line-height: 1.7 !important;
  text-wrap: pretty;
}

.home-shortcuts {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 0.62rem;
}

.home-shortcut {
  display: grid;
  min-height: 5.7rem;
  padding: 0.86rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.72rem;
  color: var(--room-ink);
  background: rgba(255, 255, 255, 0.085);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--room-radius-md);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
  text-decoration: none;
  transition: background-color 220ms ease, border-color 220ms ease, transform 220ms var(--room-ease);
}

.home-shortcut:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.19);
  transform: translateY(-3px);
}

.home-shortcut:active {
  transform: scale(0.98);
}

.home-shortcut-icon {
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.11);
}

.home-shortcut-icon svg {
  width: 1.22rem;
  height: 1.22rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.home-shortcut-copy {
  display: grid;
  min-width: 0;
  gap: 0.24rem;
}

.home-shortcut-copy strong {
  font-size: 0.84rem;
  font-weight: 640;
}

.home-shortcut-copy small {
  overflow: hidden;
  color: rgba(247, 247, 248, 0.5);
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-shortcut-arrow {
  color: rgba(247, 247, 248, 0.42);
  font-size: 0.82rem;
  transition: color 180ms ease, transform 180ms var(--room-ease);
}

.home-shortcut:hover .home-shortcut-arrow {
  color: #fff;
  transform: translate(2px, -2px);
}

.home-audio {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 65;
  width: min(21rem, calc(100vw - 2rem));
  padding: 0.42rem;
  color: var(--room-ink);
  background: rgba(18, 18, 20, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.27), var(--room-inset);
  -webkit-backdrop-filter: blur(28px) saturate(1.3);
  backdrop-filter: blur(28px) saturate(1.3);
  animation: room-panel-enter 720ms 110ms var(--room-ease) both;
}

.home-audio-heading {
  display: flex;
  padding: 0.52rem 0.65rem 0.4rem;
  align-items: center;
  justify-content: space-between;
  color: var(--room-subtle);
  font-size: 0.65rem;
}

body[data-uiverse-route="home"] .hero-side,
body[data-uiverse-route="home"] .music-player-scale {
  position: static !important;
  right: auto !important;
  bottom: auto !important;
  z-index: auto !important;
  width: 100% !important;
}

/* Game */
.game-page {
  position: relative;
  display: grid !important;
  min-height: 100svh !important;
  padding: 7.5rem clamp(1rem, 5vw, 4rem) 5.5rem;
  place-items: center end !important;
  overflow: clip;
}

.game-page::before {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.3) 56%, rgba(0, 0, 0, 0.5)) !important;
}

.game-visual {
  display: none !important;
}

.game-content {
  position: relative;
  z-index: 2;
  width: min(100%, 48rem) !important;
  padding: 0 !important;
  margin: 0 clamp(0rem, 4vw, 4rem) 0 auto !important;
}

.game-glass-panel {
  padding: 0.75rem;
  color: var(--room-ink);
  background: rgba(15, 15, 17, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: var(--room-radius-lg);
  box-shadow: var(--room-shadow), var(--room-inset);
  -webkit-backdrop-filter: blur(34px) saturate(1.28);
  backdrop-filter: blur(34px) saturate(1.28);
  animation: room-panel-enter 720ms var(--room-ease) both;
}

.game-panel-bar {
  display: flex;
  min-height: 2.6rem;
  padding: 0.2rem 0.65rem;
  align-items: center;
  justify-content: space-between;
  color: var(--room-subtle);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
}

.game-status {
  display: inline-flex !important;
  margin: 0 !important;
  align-items: center;
  gap: 0.5rem;
  color: rgba(247, 247, 248, 0.66) !important;
  font-size: inherit !important;
  font-weight: 590 !important;
}

.game-status > span:first-child {
  width: 0.48rem;
  height: 0.48rem;
  background: #dce2da !important;
  border-radius: 50%;
  box-shadow: 0 0 0 0.25rem rgba(220, 226, 218, 0.09) !important;
}

.game-status > span:last-child {
  width: auto !important;
  height: auto !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.game-heading {
  padding: clamp(2rem, 6vw, 4.8rem) clamp(1rem, 7vw, 4.8rem) 0;
}

.game-heading > p {
  margin: 0 0 0.85rem;
  color: rgba(247, 247, 248, 0.55);
  font-size: 0.82rem;
  font-weight: 590;
}

.game-content h1 {
  max-width: none !important;
  margin: 0 !important;
  color: #fff !important;
  font-size: clamp(3.3rem, 8vw, 5.8rem) !important;
  font-weight: 670 !important;
  line-height: 0.94 !important;
  letter-spacing: -0.04em !important;
}

.game-summary {
  max-width: 39rem !important;
  margin: 1.4rem 0 0 !important;
  padding: 0 clamp(1rem, 7vw, 4.8rem);
  color: rgba(247, 247, 248, 0.68) !important;
  font-size: clamp(0.96rem, 1.7vw, 1.12rem) !important;
  line-height: 1.7 !important;
}

.game-actions {
  display: flex !important;
  margin: 1.8rem 0 0 !important;
  padding: 0 clamp(1rem, 7vw, 4.8rem);
  flex-wrap: wrap;
  gap: 0.62rem !important;
}

.game-action {
  display: inline-flex !important;
  min-height: 3rem !important;
  padding: 0.75rem 1.05rem !important;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.09);
  font-size: 0.82rem !important;
  font-weight: 650 !important;
  text-decoration: none;
  transition: background-color 180ms ease, transform 180ms var(--room-ease) !important;
}

.game-action:hover {
  transform: translateY(-2px) !important;
}

.game-action:active {
  transform: scale(0.97) !important;
}

.game-action-primary {
  color: #111113 !important;
  background: rgba(250, 250, 251, 0.96) !important;
}

.game-action-secondary {
  color: var(--room-ink) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.game-notes {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  max-width: none !important;
  margin: clamp(2rem, 5vw, 3.3rem) 0 0 !important;
  padding: 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.11) !important;
}

.game-notes div {
  min-width: 0;
  padding: 1.2rem !important;
}

.game-notes div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.game-notes dt {
  color: rgba(247, 247, 248, 0.42) !important;
  font-size: 0.66rem !important;
}

.game-notes dd {
  margin: 0.4rem 0 0 !important;
  color: rgba(247, 247, 248, 0.78) !important;
  font-size: 0.8rem !important;
  line-height: 1.45 !important;
}

/* Keep the Logs chat language, but place it in the new system. */
body[data-uiverse-route="logs"] .logs-ui-root {
  padding: 7rem 1rem 5.5rem !important;
}

body[data-uiverse-route="logs"] .logs-archive {
  width: min(100%, 72rem) !important;
  background: rgba(10, 10, 12, 0.62) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 24px !important;
  box-shadow: var(--room-shadow), var(--room-inset) !important;
  -webkit-backdrop-filter: blur(32px) saturate(1.22) !important;
  backdrop-filter: blur(32px) saturate(1.22) !important;
}

@keyframes room-panel-enter {
  from { opacity: 0; transform: translateY(16px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 1080px) {
  .home-audio {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(48rem, 100%);
    margin-top: 1rem;
  }

  body[data-uiverse-route="home"] .hero-section > .home-stage {
    align-content: center !important;
  }
}

@media (max-width: 760px) {
  .uiverse-widget-wrapper {
    top: max(0.7rem, env(safe-area-inset-top)) !important;
    right: 0.75rem !important;
    left: 0.75rem !important;
    width: auto !important;
    height: 3.3rem !important;
    max-height: 3.3rem !important;
    min-height: 3.3rem;
    padding: 0.4rem 0.42rem 0.4rem 0.82rem !important;
    grid-template-columns: minmax(0, 1fr) auto;
    background: transparent !important;
    border: 0 !important;
    border-radius: 17px !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    transform: none !important;
  }

  .uiverse-widget-wrapper::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(18, 18, 20, 0.64);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: inherit;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25), var(--room-inset);
    -webkit-backdrop-filter: blur(28px) saturate(1.35);
    backdrop-filter: blur(28px) saturate(1.35);
    pointer-events: none;
    content: "";
  }

  .uiverse-widget-wrapper .menu {
    position: fixed !important;
    left: 50% !important;
    bottom: max(0.7rem, env(safe-area-inset-bottom)) !important;
    z-index: 91 !important;
    display: grid !important;
    width: min(31rem, calc(100vw - 1.5rem)) !important;
    min-height: 4.25rem;
    padding: 0.38rem !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.18rem !important;
    background: rgba(18, 18, 20, 0.68) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 22px !important;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.3), var(--room-inset) !important;
    -webkit-backdrop-filter: blur(30px) saturate(1.35) !important;
    backdrop-filter: blur(30px) saturate(1.35) !important;
    transform: translateX(-50%) !important;
  }

  .uiverse-widget-wrapper .link,
  .uiverse-widget-wrapper .link:hover,
  .uiverse-widget-wrapper .link:focus {
    min-width: 0 !important;
    height: 3.45rem !important;
    padding: 0.36rem !important;
    flex-direction: column;
    gap: 0.25rem !important;
    border-radius: 16px !important;
  }

  .uiverse-widget-wrapper .link-title {
    font-size: 0.62rem !important;
    font-weight: 600 !important;
  }

  .uiverse-widget-wrapper .link-icon,
  .uiverse-widget-wrapper .link-icon svg {
    width: 1.08rem !important;
    height: 1.08rem !important;
  }

  .site-wordmark {
    font-size: 0.65rem;
  }

  .site-language-toggle {
    min-width: 3.25rem;
    min-height: 2.4rem;
  }

  .uiverse-social-wrapper,
  body[data-profile-active="true"] .uiverse-social-wrapper {
    top: calc(max(0.7rem, env(safe-area-inset-top)) + 4.05rem) !important;
    right: 0.75rem !important;
    bottom: auto !important;
    left: auto !important;
  }

  .uiverse-social-wrapper .card {
    padding: 0.22rem !important;
    border-radius: 14px !important;
  }

  .uiverse-social-wrapper .card a {
    width: 2rem !important;
    height: 2rem !important;
    border-radius: 10px !important;
  }

  body[data-uiverse-route="home"] .hero-section > .home-stage {
    padding: 6.25rem 0.75rem 6.5rem !important;
  }

  .home-console {
    padding: 0.58rem;
    border-radius: 23px;
  }

  .home-console-bar {
    padding-inline: 0.55rem;
  }

  .home-copy {
    padding: 2.8rem 0.8rem 2.5rem;
  }

  .home-copy h1 {
    font-size: clamp(3rem, 16vw, 4.75rem) !important;
  }

  .home-summary {
    max-width: 32rem;
    font-size: 0.94rem !important;
  }

  .home-shortcuts {
    grid-template-columns: 1fr;
  }

  .home-shortcut {
    min-height: 4.7rem;
    border-radius: 16px;
  }

  .home-audio {
    margin-top: 0.7rem;
    border-radius: 19px;
  }

  .game-page {
    padding: 6.35rem 0.75rem 6.6rem;
    place-items: center !important;
  }

  .game-content {
    margin: 0 !important;
  }

  .game-glass-panel {
    padding: 0.58rem;
    border-radius: 23px;
  }

  .game-heading {
    padding: 2.8rem 0.8rem 0;
  }

  .game-content h1 {
    font-size: clamp(3rem, 16vw, 4.75rem) !important;
  }

  .game-summary,
  .game-actions {
    padding-inline: 0.8rem;
  }

  .game-notes {
    grid-template-columns: 1fr !important;
  }

  .game-notes div + div {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 0;
  }

  body[data-uiverse-route="logs"] .logs-ui-root {
    padding: 6.25rem 0.65rem 6.5rem !important;
  }

  body[data-uiverse-route="logs"] .logs-archive {
    border-radius: 20px !important;
  }

  body[data-uiverse-route="logs"] .logs-index-list {
    display: grid !important;
    grid-template-columns: 1fr !important;
    padding-bottom: 0 !important;
    overflow: visible !important;
    scrollbar-width: none;
  }

  body[data-uiverse-route="logs"] .logs-index-list li {
    flex: initial !important;
  }
}

@media (max-width: 420px) {
  .site-wordmark i {
    width: 0.8rem;
  }

  .uiverse-social-wrapper .card a {
    width: 1.85rem !important;
    height: 1.85rem !important;
  }

  .home-console-bar > span:last-child,
  .game-build {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-console,
  .home-audio,
  .game-glass-panel,
  .home-shortcut,
  .home-shortcut-arrow,
  .game-action,
  .uiverse-widget-wrapper .link,
  .site-language-toggle,
  .uiverse-social-wrapper .card a {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}

/* Cinematic route language: the scene stays primary; UI behaves like quiet captions. */
body[data-uiverse-route="home"] .hero-section::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(4, 5, 6, 0.34) 0%, transparent 30%),
    linear-gradient(180deg, transparent 42%, rgba(3, 4, 5, 0.34) 64%, rgba(3, 4, 5, 0.88) 100%);
  pointer-events: none;
  content: "";
}

body[data-uiverse-route="home"] .hero-section > div.home-stage:last-child {
  position: relative;
  z-index: 1;
  display: grid !important;
  width: min(100%, 92rem) !important;
  min-height: 100svh !important;
  padding: 7.25rem clamp(1.25rem, 5vw, 4.5rem) 2.6rem !important;
  margin: 0 auto !important;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 21rem);
  grid-template-rows: 1fr auto;
  align-items: end;
  column-gap: clamp(2.25rem, 5vw, 5rem);
}

.home-intro {
  width: min(49rem, 100%);
  padding-bottom: clamp(2.75rem, 7vh, 5rem);
  grid-column: 1;
  grid-row: 1;
  align-self: end;
}

.home-signal {
  display: flex;
  width: min(32rem, 100%);
  margin: 0 0 1.5rem;
  align-items: center;
  gap: 0.55rem;
  color: rgba(247, 247, 248, 0.72);
  font-size: 0.7rem;
  font-weight: 620;
  letter-spacing: 0.025em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.76);
}

.home-signal i {
  width: 0.42rem;
  height: 0.42rem;
  flex: 0 0 auto;
  background: #e7eee7;
  border-radius: 50%;
  box-shadow: 0 0 0 0.24rem rgba(231, 238, 231, 0.11);
}

.home-signal-place {
  margin-left: auto;
  color: rgba(247, 247, 248, 0.42);
  font-variant-numeric: tabular-nums;
}

.home-copy {
  padding: 0;
  text-align: left;
}

.home-copy h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(4rem, 8.5vw, 6rem) !important;
  font-weight: 640 !important;
  line-height: 0.92 !important;
  letter-spacing: -0.038em !important;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.42);
  text-wrap: balance;
}

.home-summary {
  max-width: 39rem;
  margin: 1.45rem 0 0 !important;
  color: rgba(247, 247, 248, 0.82) !important;
  font-size: clamp(1rem, 1.65vw, 1.16rem) !important;
  line-height: 1.7 !important;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.72);
  text-wrap: pretty;
}

.home-enter {
  display: inline-flex;
  width: min(25rem, 100%);
  margin-top: 2rem;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 660;
  text-decoration: none;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.68);
}

.home-enter i {
  height: 1px;
  flex: 1;
  background: rgba(255, 255, 255, 0.58);
  transform-origin: left;
  transition: transform 260ms var(--room-ease), background-color 180ms ease;
}

.home-enter:hover i {
  background: #fff;
  transform: scaleX(0.94);
}

.home-enter > span:last-child {
  transition: transform 220ms var(--room-ease);
}

.home-enter:hover > span:last-child {
  transform: translate(3px, -3px);
}

.home-shortcuts {
  display: grid;
  min-width: 0;
  grid-column: 1;
  grid-row: 2;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: clamp(0.85rem, 2vw, 1.6rem);
}

.home-shortcut {
  display: flex;
  min-width: 0;
  min-height: 4.55rem;
  padding: 0.9rem 0.15rem 0.45rem;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  color: var(--room-ink);
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 0;
  box-shadow: none;
  text-decoration: none;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
  transition: border-color 200ms ease, transform 220ms var(--room-ease);
}

.home-shortcut:hover {
  background: transparent;
  border-color: #fff;
  transform: translateY(-3px);
}

.home-shortcut:active {
  transform: translateY(-1px);
}

.home-shortcut-copy {
  display: grid;
  min-width: 0;
  gap: 0.28rem;
}

.home-shortcut-copy strong {
  font-size: 0.82rem;
  font-weight: 660;
}

.home-shortcut-copy small {
  overflow: hidden;
  color: rgba(247, 247, 248, 0.54);
  font-size: 0.67rem;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-shortcut-arrow {
  color: rgba(247, 247, 248, 0.52);
  font-size: 0.78rem;
  transition: color 180ms ease, transform 180ms var(--room-ease);
}

.home-shortcut:hover .home-shortcut-arrow {
  color: #fff;
  transform: translate(2px, -2px);
}

.home-audio {
  position: relative;
  right: auto;
  bottom: auto;
  z-index: 2;
  width: 100%;
  padding: 0.42rem;
  color: var(--room-ink);
  background: rgba(7, 9, 11, 0.4);
  border: 0;
  border-radius: 12px;
  box-shadow: none;
  -webkit-backdrop-filter: blur(12px) saturate(1.08);
  backdrop-filter: blur(12px) saturate(1.08);
  animation: room-panel-enter 680ms 120ms var(--room-ease) both;
  grid-column: 2;
  grid-row: 2;
}

.home-audio-heading {
  display: flex;
  padding: 0.42rem 0.55rem 0.3rem;
  align-items: center;
  justify-content: space-between;
  color: rgba(247, 247, 248, 0.52);
  font-size: 0.63rem;
}

body[data-uiverse-route="home"] .hero-side,
body[data-uiverse-route="home"] .music-player-scale {
  position: static !important;
  width: 100% !important;
}

body[data-uiverse-route="games"]::after {
  background: rgba(0, 0, 0, 0.08);
}

.game-page {
  position: relative;
  display: grid !important;
  min-height: 100svh !important;
  padding: 0;
  grid-template-columns: minmax(0, 1fr) minmax(31rem, 45rem);
  place-items: stretch !important;
  overflow: clip;
}

.game-page::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(2, 4, 8, 0.08) 0%, rgba(2, 4, 8, 0.02) 44%, rgba(2, 4, 8, 0.32) 100%) !important;
  pointer-events: none;
  content: "";
}

.game-visual {
  display: block !important;
  grid-column: 1;
}

.game-content {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100% !important;
  min-height: 100svh;
  padding: 5.75rem clamp(2rem, 5vw, 4.8rem) 2rem !important;
  margin: 0 !important;
  grid-column: 2;
  align-items: flex-end;
  background: linear-gradient(90deg, rgba(5, 8, 14, 0) 0%, rgba(5, 8, 14, 0.68) 15%, rgba(5, 8, 14, 0.91) 48%, rgba(5, 8, 14, 0.96) 100%);
}

.game-glass-panel {
  width: 100%;
  padding: 0;
  color: var(--room-ink);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  animation: game-dossier-enter 760ms var(--room-ease) both;
}

.game-panel-bar {
  display: flex;
  min-height: 0;
  padding: 0 0 0.9rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(247, 247, 248, 0.42);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.66rem;
  letter-spacing: 0.03em;
}

.game-status {
  display: inline-flex !important;
  margin: 0 !important;
  align-items: center;
  gap: 0.5rem;
  color: rgba(247, 247, 248, 0.7) !important;
  font-size: inherit !important;
  font-weight: 610 !important;
}

.game-status > span:first-child {
  width: 0.42rem;
  height: 0.42rem;
  background: #e2e9df !important;
  border-radius: 50%;
  box-shadow: 0 0 0 0.24rem rgba(226, 233, 223, 0.09) !important;
}

.game-status > span:last-child {
  width: auto !important;
  height: auto !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.game-heading {
  padding: clamp(2.2rem, 8vh, 5rem) 0 0;
}

.game-heading > p {
  margin: 0 0 0.8rem;
  color: rgba(247, 247, 248, 0.54);
  font-size: 0.78rem;
  font-weight: 600;
}

.game-content h1 {
  max-width: 7ch !important;
  margin: 0 !important;
  color: #fff !important;
  font-size: clamp(4.15rem, 7.4vw, 6rem) !important;
  font-weight: 640 !important;
  line-height: 0.78 !important;
  letter-spacing: -0.038em !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.36);
}

.game-content h1 span {
  display: block;
  margin-left: 0.72em;
  color: rgba(247, 247, 248, 0.72);
  font-weight: 420;
}

.game-summary {
  max-width: 33rem !important;
  margin: 1.6rem 0 0 !important;
  padding: 0;
  color: rgba(247, 247, 248, 0.76) !important;
  font-size: clamp(0.96rem, 1.45vw, 1.08rem) !important;
  line-height: 1.68 !important;
  text-wrap: pretty;
}

.game-notes {
  display: grid !important;
  grid-template-columns: 1fr !important;
  max-width: none !important;
  margin: clamp(2rem, 6vh, 3.3rem) 0 0 !important;
  padding: 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.game-notes div {
  display: grid;
  min-width: 0;
  padding: 0.78rem 0 !important;
  grid-template-columns: minmax(4.6rem, 0.34fr) minmax(0, 1fr);
  align-items: baseline;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.game-notes div + div {
  border-left: 0;
}

.game-notes dt {
  color: rgba(247, 247, 248, 0.42) !important;
  font-size: 0.66rem !important;
}

.game-notes dd {
  margin: 0 !important;
  color: rgba(247, 247, 248, 0.82) !important;
  font-size: 0.8rem !important;
  line-height: 1.45 !important;
}

.game-actions {
  display: flex !important;
  margin: 1.55rem 0 0 !important;
  padding: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 1.25rem !important;
}

.game-action {
  display: inline-flex !important;
  min-height: 2.85rem !important;
  padding: 0.7rem 0.95rem !important;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  border: 0;
  border-radius: 10px !important;
  box-shadow: none;
  font-size: 0.78rem !important;
  font-weight: 650 !important;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms var(--room-ease) !important;
}

.game-action:hover {
  transform: translateY(-2px) !important;
}

.game-action:active {
  transform: translateY(0) !important;
}

.game-action-primary {
  color: #111113 !important;
  background: rgba(250, 250, 251, 0.94) !important;
}

.game-action-secondary {
  padding-inline: 0 !important;
  color: rgba(247, 247, 248, 0.62) !important;
  background: transparent !important;
  border-radius: 0 !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.game-action-secondary:hover {
  color: #fff !important;
}

@keyframes game-dossier-enter {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 1080px) {
  body[data-uiverse-route="home"] .hero-section > div.home-stage:last-child {
    grid-template-columns: minmax(0, 1fr) minmax(17rem, 19rem);
    column-gap: 2rem;
  }

  .home-intro {
    padding-bottom: 2.75rem;
  }

  .game-page {
    grid-template-columns: minmax(0, 1fr) minmax(28rem, 38rem);
  }
}

@media (max-width: 820px) {
  body[data-uiverse-route="home"] .hero-section > div.home-stage:last-child {
    padding: 6.4rem 1.25rem 7rem !important;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    align-content: end;
    gap: 1.4rem;
  }

  .home-intro,
  .home-shortcuts,
  .home-audio {
    grid-column: 1;
    grid-row: auto;
  }

  .home-intro {
    padding-bottom: 1.5rem;
  }

  .home-shortcuts {
    grid-template-columns: 1fr 1fr;
  }

  .home-shortcut--wide {
    grid-column: 1 / -1;
  }

  .home-audio {
    width: min(22rem, 100%);
    margin-left: auto;
  }

  .game-page {
    grid-template-columns: 1fr;
  }

  .game-visual {
    display: none !important;
  }

  .game-content {
    min-height: 100svh;
    padding: 7rem 1.25rem 6.8rem !important;
    grid-column: 1;
    background: linear-gradient(180deg, rgba(5, 8, 14, 0.04) 3%, rgba(5, 8, 14, 0.48) 36%, rgba(5, 8, 14, 0.94) 66%, rgba(5, 8, 14, 0.98) 100%);
  }

  .game-glass-panel {
    max-width: 36rem;
  }
}

@media (max-width: 520px) {
  .uiverse-widget-wrapper {
    top: max(0.7rem, env(safe-area-inset-top)) !important;
    right: 0.75rem !important;
    left: 0.75rem !important;
    width: auto !important;
  }

  .uiverse-widget-wrapper::before {
    background: rgba(7, 9, 11, 0.28);
    border: 0;
    box-shadow: none;
    -webkit-backdrop-filter: blur(14px) saturate(1.1);
    backdrop-filter: blur(14px) saturate(1.1);
  }

  .uiverse-widget-wrapper .menu {
    background: rgba(7, 9, 11, 0.48) !important;
    border: 0 !important;
    border-radius: 16px !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: blur(16px) saturate(1.12) !important;
    backdrop-filter: blur(16px) saturate(1.12) !important;
  }

  body[data-uiverse-route="home"] .hero-section > div.home-stage:last-child {
    padding: 5.8rem 0.85rem 6.6rem !important;
    gap: 1.2rem;
  }

  .home-copy h1 {
    max-width: 8ch;
    font-size: clamp(3.7rem, 17vw, 5rem) !important;
  }

  .home-summary {
    max-width: 31rem;
    font-size: 0.94rem !important;
    line-height: 1.62 !important;
  }

  .home-shortcuts {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .home-shortcut--wide {
    grid-column: auto;
  }

  .home-shortcut {
    min-height: 3.9rem;
    padding-top: 0.72rem;
  }

  .home-audio {
    width: 100%;
  }

  .game-content {
    padding: 6rem 0.9rem 6.3rem !important;
  }

  .game-panel-bar {
    padding-bottom: 0.7rem;
  }

  .game-heading {
    padding-top: 2.5rem;
  }

  .game-content h1 {
    font-size: clamp(3.65rem, 18vw, 4.8rem) !important;
  }

  .game-summary {
    font-size: 0.93rem !important;
    line-height: 1.62 !important;
  }

  .game-notes {
    margin-top: 1.65rem !important;
  }

  .game-notes div {
    grid-template-columns: 4.25rem minmax(0, 1fr);
    gap: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-audio,
  .game-glass-panel,
  .home-enter i,
  .home-enter > span:last-child {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}
