:root {
  --apple-ink: #f5f5f7;
  --apple-muted: rgba(245, 245, 247, 0.68);
  --apple-line: rgba(255, 255, 255, 0.14);
  --apple-surface: rgba(24, 24, 27, 0.72);
  --apple-ease: cubic-bezier(0.16, 1, 0.3, 1);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
}

html,
body,
button,
input,
textarea,
select {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif !important;
}

body::after {
  background: rgba(0, 0, 0, 0.3) !important;
}

body[data-uiverse-route="home"]::before {
  background-image: url("/assets/home-minimal-landscape.png") !important;
  background-position: center 62% !important;
}

body[data-uiverse-route="games"]::before {
  background-image: url("/assets/erix-room-background.png") !important;
  background-position: center bottom !important;
}

body[data-uiverse-route="logs"]::before {
  background-image: url("/assets/logs-background-reference.png") !important;
  background-position: center !important;
}

body[data-uiverse-route="about"]::before {
  background-image: url("/assets/about-background.png") !important;
  background-position: center !important;
  filter: grayscale(1) brightness(0.42);
}

.uiverse-widget-wrapper {
  position: fixed !important;
  top: 1.25rem !important;
  left: 50% !important;
  z-index: 90 !important;
  width: auto;
  color: var(--apple-ink) !important;
  transform: translateX(-50%) !important;
  transform-origin: center !important;
}

.uiverse-widget-wrapper .menu {
  gap: 0.25rem;
  padding: 0.35rem !important;
  background: rgba(18, 18, 20, 0.66) !important;
  border: 1px solid var(--apple-line);
  border-radius: 14px !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  backdrop-filter: blur(24px) saturate(1.4);
}

.uiverse-widget-wrapper .link,
.uiverse-widget-wrapper .link:hover,
.uiverse-widget-wrapper .link:focus {
  position: relative;
  display: inline-flex;
  width: auto !important;
  min-width: 5.75rem;
  height: 2.65rem;
  padding: 0 0.8rem;
  gap: 0.5rem;
  color: rgba(245, 245, 247, 0.62);
  border-radius: 10px !important;
  outline: 0;
  transform: none !important;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease !important;
}

.uiverse-widget-wrapper .link::before {
  display: none !important;
}

.uiverse-widget-wrapper .link:hover,
.uiverse-widget-wrapper .link:focus-visible {
  color: var(--apple-ink);
  background: rgba(255, 255, 255, 0.07);
}

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

.uiverse-widget-wrapper .link[aria-current="page"] {
  color: #111113;
  background: rgba(245, 245, 247, 0.94);
}

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

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

.uiverse-widget-wrapper .link-title {
  width: auto !important;
  opacity: 1 !important;
  transform: none !important;
  text-indent: 0 !important;
  font-size: 0.78rem;
  font-weight: 560;
  letter-spacing: -0.01em;
}

.uiverse-social-wrapper {
  left: 1.6rem !important;
  bottom: 1.25rem !important;
  z-index: 70 !important;
  color: var(--apple-ink) !important;
  transform: none !important;
}

.uiverse-social-wrapper .card {
  width: auto !important;
  height: auto !important;
  gap: 0.15rem;
  padding: 0.25rem;
  background: rgba(18, 18, 20, 0.48);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.uiverse-social-wrapper .card a {
  width: 2rem !important;
  height: 2rem !important;
  color: rgba(245, 245, 247, 0.66) !important;
  background: transparent !important;
  border-radius: 50%;
}

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

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

/* Home */
body[data-uiverse-route="home"] .hero-section {
  --hero-text: var(--apple-ink) !important;
  --hero-subtle: rgba(245, 245, 247, 0.64) !important;
  --hero-muted: rgba(245, 245, 247, 0.74) !important;
  --hero-line: rgba(245, 245, 247, 0.4) !important;
  background: transparent !important;
}

body[data-uiverse-route="home"] .hero-section > div:last-child {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(19rem, 21.5rem);
  width: min(100%, 96rem);
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(8rem, 18vh, 12rem) clamp(1.5rem, 7vw, 7rem) clamp(6.75rem, 11vh, 8rem) !important;
  align-items: flex-end !important;
  gap: clamp(2rem, 4vw, 4rem);
}

body[data-uiverse-route="home"] .max-w-3xl {
  max-width: 42rem !important;
  transform: none !important;
}

body[data-uiverse-route="home"] .max-w-3xl h1 {
  max-width: 100%;
  margin: 0;
  font-family: inherit !important;
  font-size: clamp(3.4rem, 7.5vw, 6rem) !important;
  font-weight: 620 !important;
  line-height: 0.96 !important;
  letter-spacing: -0.04em !important;
  text-wrap: balance;
}

body[data-uiverse-route="home"] .max-w-3xl h1 + p {
  margin-top: 1rem !important;
  color: rgba(245, 245, 247, 0.62) !important;
  font-family: inherit !important;
  font-size: clamp(0.86rem, 1.4vw, 1rem) !important;
  font-weight: 520;
  letter-spacing: 0.01em;
}

body[data-uiverse-route="home"] .max-w-3xl > div[class*="h-px"] {
  width: 2.75rem !important;
  margin-top: 1.75rem !important;
}

body[data-uiverse-route="home"] .max-w-3xl > p:last-of-type {
  max-width: 36rem !important;
  margin-top: 1.5rem !important;
  color: rgba(245, 245, 247, 0.76) !important;
  font-size: clamp(1rem, 1.6vw, 1.2rem) !important;
  line-height: 1.65 !important;
  text-wrap: pretty;
}

body[data-uiverse-route="home"] .hero-side {
  position: fixed !important;
  right: clamp(1.5rem, 3vw, 3rem) !important;
  bottom: clamp(1.5rem, 3vw, 3rem) !important;
  z-index: 60;
  width: min(21.5rem, 100%) !important;
  align-self: end !important;
  justify-self: end;
}

body[data-uiverse-route="home"] .music-player-scale {
  transform: none !important;
}

/* Game */
html[data-uiverse-route="games"],
body[data-uiverse-route="games"] {
  height: auto !important;
  min-height: 100%;
  overflow: auto !important;
}

body[data-uiverse-route="games"] #root {
  display: none !important;
}

body[data-uiverse-route="games"] .qsg-empty-route {
  display: block !important;
  position: relative;
  width: 100%;
  min-height: 100svh;
  color: var(--apple-ink);
  background: transparent !important;
}

.game-page {
  position: relative;
  display: flex;
  min-height: 100svh;
  align-items: flex-end;
  overflow: clip;
}

.game-page::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.16) 48%, rgba(0, 0, 0, 0.78) 100%);
  content: "";
}

.game-visual {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 45%;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 100%);
  mask-image: linear-gradient(to top, #000 0%, transparent 100%);
  pointer-events: none;
}

.game-content {
  position: relative;
  z-index: 2;
  width: min(100%, 86rem);
  margin: 0 auto;
  padding: 9rem clamp(1.5rem, 7vw, 7rem) clamp(5.5rem, 9vh, 7rem);
}

.game-status {
  display: inline-flex;
  margin: 0 0 1rem;
  align-items: center;
  gap: 0.5rem;
  color: rgba(245, 245, 247, 0.68);
  font-size: 0.82rem;
  font-weight: 560;
}

.game-status span {
  width: 0.48rem;
  height: 0.48rem;
  background: #7ae7a2;
  border-radius: 50%;
  box-shadow: 0 0 0 0.3rem rgba(122, 231, 162, 0.12);
}

.game-content h1 {
  margin: 0;
  max-width: 15ch;
  color: var(--apple-ink);
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 620;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.game-summary {
  max-width: 42rem;
  margin: 1.3rem 0 0;
  color: rgba(245, 245, 247, 0.72);
  font-size: clamp(1rem, 1.7vw, 1.24rem);
  line-height: 1.65;
  text-wrap: pretty;
}

.game-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.65rem;
}

.game-action {
  display: inline-flex;
  min-height: 2.75rem;
  padding: 0.72rem 1.05rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease;
}

.game-action:hover { transform: translateY(-2px); }
.game-action:active { transform: scale(0.98); }
.game-action-primary { color: #111113; background: rgba(245, 245, 247, 0.96); }
.game-action-secondary { color: var(--apple-ink); background: rgba(255, 255, 255, 0.08); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }

.game-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 64rem;
  margin: clamp(2.5rem, 6vh, 4rem) 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.game-notes div { padding-right: 2rem; }
.game-notes dt { color: rgba(245, 245, 247, 0.48); font-size: 0.72rem; }
.game-notes dd { margin: 0.35rem 0 0; color: rgba(245, 245, 247, 0.86); font-size: 0.9rem; line-height: 1.5; }

/* Logs */
html[data-uiverse-route="logs"],
body[data-uiverse-route="logs"],
body[data-uiverse-route="logs"] #root,
body[data-uiverse-route="logs"] #app {
  height: auto !important;
  min-height: 100%;
  overflow: auto !important;
}

body[data-uiverse-route="logs"] .log-page-shell {
  height: auto !important;
  min-height: 100svh !important;
  padding: 0 !important;
  overflow: visible !important;
}

.logs-ui-root {
  display: grid !important;
  height: auto !important;
  min-height: 100svh !important;
  place-items: start center !important;
  padding: 7.25rem 1.5rem 4rem !important;
  overflow: visible !important;
}

.logs-archive {
  width: min(100%, 72rem) !important;
  min-height: 0 !important;
  background: rgba(9, 9, 11, 0.7) !important;
  border: 1px solid var(--apple-line) !important;
  border-radius: 16px !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.2) !important;
  backdrop-filter: blur(28px) saturate(1.2) !important;
  transform: none !important;
}

.logs-archive-header {
  padding: 2.2rem clamp(1.25rem, 4vw, 3rem) 1.7rem !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.logs-archive-title-wrap { align-items: center !important; gap: 1rem !important; }
.logs-archive-title-wrap h1 {
  font-family: inherit !important;
  font-size: clamp(2.7rem, 6vw, 4.5rem) !important;
  font-weight: 620 !important;
  letter-spacing: -0.035em !important;
}
.logs-archive-title-wrap p { max-width: 24rem; color: rgba(245, 245, 247, 0.54) !important; font-size: 0.82rem !important; line-height: 1.5 !important; }

.logs-search-field {
  width: 10rem !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}
.logs-search-field:focus-within { width: 14rem !important; outline: 2px solid rgba(255, 255, 255, 0.34) !important; }
.logs-search-field .input { height: 2.75rem !important; color: var(--apple-ink) !important; font-family: inherit !important; font-size: 0.86rem !important; }
.logs-search-field input::placeholder { color: rgba(245, 245, 247, 0.52) !important; }
.logs-search-field svg { stroke: rgba(245, 245, 247, 0.54) !important; }
.logs-search-clear[hidden] { display: none !important; }

.logs-result-count {
  padding: 0.8rem clamp(1.25rem, 4vw, 3rem) !important;
  color: rgba(245, 245, 247, 0.45) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  font-size: 0.7rem !important;
  letter-spacing: 0 !important;
}

.logs-body {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 17rem) !important;
  align-items: stretch;
}

.logs-conversation { min-height: 0 !important; padding: 0.2rem clamp(1.25rem, 4vw, 3rem) 2.4rem !important; }
.logs-entry-list { gap: 1.15rem !important; padding-top: 1.4rem !important; }
.chat-message-row { gap: 0.75rem !important; }
.chat-avatar { width: 2.5rem !important; height: 2.5rem !important; flex-basis: 2.5rem !important; border-color: rgba(255,255,255,.5) !important; }
.archive-entry-copy { max-width: min(100%, 44rem) !important; }
.chat-sender { margin-bottom: 0.45rem !important; color: rgba(245,245,247,.42) !important; font-size: 0.7rem !important; letter-spacing: 0 !important; }
.chat-sender > span:first-child { color: rgba(245,245,247,.86) !important; font-size: 0.75rem !important; }
.chat-update-tag { padding: 0.12rem 0.28rem !important; color: rgba(245,245,247,.62) !important; border-radius: 4px !important; font-size: 0.48rem !important; }
.chat-bubble {
  padding: 1rem 1.1rem !important;
  background: rgba(255, 255, 255, 0.075) !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px 13px 13px 13px !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.chat-bubble::before { background: rgba(255,255,255,.12) !important; }
.archive-entry h2 { color: var(--apple-ink) !important; font-family: inherit !important; font-size: clamp(1.05rem, 2vw, 1.3rem) !important; font-weight: 620 !important; }
.archive-entry-copy > .chat-bubble > p { margin-top: 0.5rem !important; color: rgba(245,245,247,.62) !important; font-size: 0.82rem !important; line-height: 1.55 !important; }

.chat-actions { display: flex; gap: 0.4rem; margin-top: 0.48rem; }
.chat-action {
  display: inline-flex;
  min-height: 1.9rem;
  padding: 0.35rem 0.65rem;
  align-items: center;
  gap: 0.34rem;
  color: rgba(245,245,247,.56);
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.68rem;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}
.chat-action:hover { color: var(--apple-ink); background: rgba(255,255,255,.09); transform: translateY(-1px); }
.chat-action[aria-pressed="true"] { color: #111113; background: rgba(245,245,247,.94); }
.chat-action svg { width: 0.8rem; height: 0.8rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }

.logs-index {
  min-width: 0;
  padding: 1.5rem !important;
  background: rgba(255, 255, 255, 0.025);
  border-left: 1px solid rgba(255, 255, 255, 0.09) !important;
}

.logs-index-heading h2 {
  margin: 0;
  color: rgba(245, 245, 247, 0.9);
  font-size: 0.88rem;
  font-weight: 620;
  letter-spacing: -0.01em;
}

.logs-index-heading span {
  color: rgba(245, 245, 247, 0.42);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

.logs-index-list { margin-top: 1.25rem !important; }
.logs-index-link {
  color: rgba(245, 245, 247, 0.72);
  background: transparent;
  border: 0;
  border-radius: 10px;
  font-family: inherit;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.logs-index-link:hover,
.logs-index-link:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  outline: 0;
}

.logs-index-link:active { transform: scale(0.98); }
.logs-index-date { color: rgba(245, 245, 247, 0.42); font-size: 0.7rem; font-variant-numeric: tabular-nums; }
.logs-index-copy strong { color: inherit; font-size: 0.75rem; font-weight: 560; }
.logs-index-copy small { color: rgba(245, 245, 247, 0.36); font-size: 0.62rem; text-transform: capitalize; }

.logs-index-status {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.logs-status-dot {
  width: 0.5rem;
  height: 0.5rem;
  margin-top: 0.25rem;
  background: #72dc98;
  border-radius: 50%;
  box-shadow: 0 0 0 0.3rem rgba(114, 220, 152, 0.1);
}

.logs-index-status small { color: rgba(245, 245, 247, 0.4); font-size: 0.64rem; }
.logs-index-status strong { color: rgba(245, 245, 247, 0.86); font-size: 0.78rem; font-weight: 600; }
.logs-index-status p { color: rgba(245, 245, 247, 0.5); font-size: 0.68rem; line-height: 1.5; }
.archive-entry .chat-bubble { transition: border-color 300ms ease, background-color 300ms ease; }
.archive-entry.is-index-target .chat-bubble { background: rgba(255, 255, 255, 0.11) !important; border-color: rgba(255, 255, 255, 0.34) !important; }

/* Profile */
body[data-profile-active="true"] .about-page-shell { background: transparent !important; }
.profile-page { padding: 7.5rem 1.5rem 4rem !important; color: var(--apple-ink) !important; }
.profile-shell {
  width: min(68rem, 100%) !important;
  background: rgba(16, 16, 18, 0.76) !important;
  border: 1px solid var(--apple-line) !important;
  border-radius: 16px !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: blur(30px) saturate(1.2);
  backdrop-filter: blur(30px) saturate(1.2);
}
.profile-identity { grid-template-columns: auto minmax(0, 1fr) auto !important; gap: 2.2rem !important; padding: clamp(2rem, 5vw, 3.6rem) !important; }
.profile-avatar-frame { width: 112px !important; height: 112px !important; background: rgba(255,255,255,.08) !important; border-color: rgba(255,255,255,.28) !important; box-shadow: none !important; }
.profile-avatar { filter: grayscale(1) contrast(.95) !important; }
.profile-online-dot { background: #62d88a !important; border-color: #171719 !important; }
.profile-archive-note,
.profile-eyebrow,
.profile-section-label,
.profile-activity-list span { color: rgba(245,245,247,.46) !important; font-family: inherit !important; letter-spacing: .05em !important; }
.profile-intro h1,
.profile-editor h2 { color: var(--apple-ink) !important; font-family: inherit !important; font-weight: 620 !important; letter-spacing: -.04em !important; }
.profile-handle { color: rgba(245,245,247,.48) !important; }
.profile-status-line { color: rgba(245,245,247,.9) !important; }
.profile-bio { max-width: 40rem !important; color: rgba(245,245,247,.62) !important; }
.profile-button--quiet,
.profile-icon-button { color: var(--apple-ink) !important; background: rgba(255,255,255,.08) !important; border-color: rgba(255,255,255,.11) !important; }
.profile-button--quiet:hover,
.profile-icon-button:hover { background: rgba(255,255,255,.14) !important; }
.profile-content,
.profile-section + .profile-section { border-color: rgba(255,255,255,.09) !important; }
.profile-meta-list dt { color: rgba(245,245,247,.42) !important; }
.profile-meta-list dd,
.profile-activity-list p { color: rgba(245,245,247,.78) !important; }
.profile-tags span { color: rgba(245,245,247,.76) !important; background: rgba(255,255,255,.07) !important; border-color: rgba(255,255,255,.09) !important; }
.profile-more-menu { color: #242426 !important; }

@media (max-width: 720px) {
  .uiverse-widget-wrapper {
    top: auto !important;
    right: max(0.5rem, env(safe-area-inset-right)) !important;
    bottom: max(0.5rem, env(safe-area-inset-bottom)) !important;
    left: max(0.5rem, env(safe-area-inset-left)) !important;
    width: auto;
    transform: none !important;
  }
  .uiverse-widget-wrapper .menu { width: 100%; justify-content: space-between; }
  .uiverse-widget-wrapper .link,
  .uiverse-widget-wrapper .link:hover,
  .uiverse-widget-wrapper .link:focus {
    min-width: 0 !important;
    min-height: 2.75rem !important;
    height: 2.85rem !important;
    padding: 0 clamp(0.35rem, 2vw, 0.65rem) !important;
    flex: 1;
  }
  .uiverse-widget-wrapper .link-title { font-size: 0.7rem; }
  .uiverse-social-wrapper { display: none !important; }
  body[data-uiverse-route="home"] .hero-section > div:last-child {
    min-height: 100svh;
    padding: 5.5rem 1.2rem calc(5.75rem + env(safe-area-inset-bottom)) !important;
    grid-template-columns: 1fr;
    align-content: end;
    align-items: stretch !important;
    gap: 1.5rem;
  }
  body[data-uiverse-route="home"] .max-w-3xl h1 { font-size: clamp(3.2rem, 15vw, 4.7rem) !important; }
  body[data-uiverse-route="home"] .hero-side {
    position: relative !important;
    right: auto !important;
    bottom: auto !important;
    width: min(100%, 21.5rem) !important;
    margin: 0 0 0 auto !important;
    align-self: flex-end !important;
  }
  .game-page { min-height: 100svh; overflow: visible; }
  .game-content { padding: 6.5rem 1.25rem calc(6rem + env(safe-area-inset-bottom)); }
  .game-content h1 { font-size: clamp(3rem, 15vw, 4.5rem); }
  .game-notes { grid-template-columns: 1fr; gap: 0.9rem; }
  .game-notes div { padding: 0 0 0.9rem; border-bottom: 1px solid rgba(255,255,255,.1); }
  .logs-ui-root { padding: 1rem 0.75rem calc(6.5rem + env(safe-area-inset-bottom)) !important; }
  .logs-archive-header { grid-template-columns: 1fr !important; gap: 1rem !important; }
  .logs-archive-title-wrap { align-items: flex-start !important; flex-direction: column; }
  .logs-search-tools { width: 100%; justify-self: stretch !important; }
  .logs-search-field,
  .logs-search-field:focus-within { width: 100% !important; }
  .logs-index { padding: 1.25rem !important; }
  .logs-index-list {
    display: flex !important;
    padding-bottom: 0.25rem !important;
    gap: 0.5rem !important;
    overflow-x: auto;
    scrollbar-width: thin;
  }
  .logs-index-list li { flex: 0 0 11.5rem; }
  .logs-index-status { margin-top: 1.25rem !important; }
  .archive-entry-copy { max-width: calc(100% - 2.4rem) !important; }
  .profile-page { padding: 1rem .75rem calc(6.5rem + env(safe-area-inset-bottom)) !important; }
  .profile-identity { grid-template-columns: 1fr !important; gap: 1.25rem !important; padding: 1.5rem !important; }
  .profile-avatar-block { display: flex; align-items: center; gap: .9rem; text-align: left; }
  .profile-avatar-frame { width: 78px !important; height: 78px !important; }
}

@media (min-width: 721px) and (max-width: 1023px) {
  body[data-uiverse-route="home"] .hero-section > div:last-child {
    padding: 7.5rem 2.5rem 3.5rem !important;
    grid-template-columns: 1fr;
    align-content: end;
    align-items: stretch !important;
    gap: 1.75rem;
  }

  body[data-uiverse-route="home"] .hero-side {
    position: relative !important;
    right: auto !important;
    bottom: auto !important;
    width: min(100%, 21.5rem) !important;
    margin: 0 0 0 auto !important;
    align-self: flex-end !important;
  }

  .game-content { padding: 8rem 3rem 6.5rem; }
}

@media (min-width: 900px) and (max-width: 1023px) {
  body[data-uiverse-route="home"] .hero-section > div:last-child {
    grid-template-columns: minmax(0, 1fr) 18rem;
    gap: 2rem;
  }

  body[data-uiverse-route="home"] .hero-side {
    position: fixed !important;
    right: 2rem !important;
    bottom: 2rem !important;
    width: 18rem !important;
  }
}

@media (max-width: 900px) {
  .logs-body { grid-template-columns: 1fr !important; }
  .logs-index {
    order: -1;
    border-left: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  }
  .logs-index-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .logs-index-status { margin-top: 1.25rem; }

  .profile-identity {
    grid-template-columns: 1fr !important;
    gap: 1.35rem !important;
  }

  .profile-avatar-block {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    text-align: left;
  }

  .profile-archive-note { margin-top: 0; }
  .profile-actions { justify-content: flex-start; }
}

@media (max-width: 420px) {
  .uiverse-widget-wrapper .menu { gap: 0.1rem; padding: 0.28rem !important; }
  .uiverse-widget-wrapper .link,
  .uiverse-widget-wrapper .link:hover,
  .uiverse-widget-wrapper .link:focus { gap: 0.28rem; padding-inline: 0.35rem !important; }
  .uiverse-widget-wrapper .link-title { font-size: 0.64rem; }
  .logs-archive-title-wrap h1 { font-size: 2.35rem !important; }
  .chat-message-row { gap: 0.55rem !important; }
  .chat-avatar { width: 2.1rem !important; height: 2.1rem !important; flex-basis: 2.1rem !important; }
  .archive-entry-copy { max-width: calc(100% - 1.6rem) !important; }
}

@media (max-width: 720px) and (max-height: 700px) {
  body[data-uiverse-route="home"] .hero-section > div:last-child {
    align-content: start;
    padding-top: 4.75rem !important;
    gap: 0.75rem;
  }

  body[data-uiverse-route="home"] .max-w-3xl h1 { font-size: clamp(2.85rem, 13vw, 3.65rem) !important; }
  body[data-uiverse-route="home"] .max-w-3xl > p:last-of-type { line-height: 1.5 !important; }
}

@media (prefers-reduced-motion: reduce) {
  .game-action,
  .chat-action,
  .logs-index-link,
  .archive-entry .chat-bubble,
  .uiverse-widget-wrapper .link { transition: none !important; }
}
