@import url('https://fonts.googleapis.com/css2?family=M+PLUS+1+Code:wght@300;400;600&display=swap');

@property --ms-pink-solid {
  syntax: '<color>';
  inherits: true;
  initial-value: #505050;
}

@property --ms-pink {
  syntax: '<color>';
  inherits: true;
  initial-value: rgba(80, 80, 80, 0.38);
}

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

:root {
  --bg: #010101;
  --shell: rgba(3, 3, 3, 0.94);
  --border: #141414;
  --border-light: #242424;
  --text: #a8a8a8;
  --text-dim: #5e5e5e;
  --text-bright: #e4e4e4;
  --accent: #b0b0b0;
  --panel-bg: rgba(4, 4, 4, 0.9);
  --radius: 6px;
  --ms-pink-solid: #505050;
  --ms-pink: color-mix(in srgb, var(--ms-pink-solid) 38%, transparent);
  --ms-teal-glow: rgba(72, 72, 72, 0.1);
  --ms-online: #4a9a72;
  --sigh-bg-mid: #030305;
  --sigh-aurora-a: rgba(255, 255, 255, 0.03);
  --sigh-aurora-b: rgba(255, 255, 255, 0.025);
  --sigh-aurora-c: rgba(255, 255, 255, 0.02);
  --sigh-orb-a: rgba(255, 255, 255, 0.04);
  --sigh-orb-b: rgba(255, 255, 255, 0.03);
  --sigh-orb-c: rgba(255, 255, 255, 0.025);
  transition: none;
}

html {
  font-size: 12px;
  background-color: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'M PLUS 1 Code', 'Courier New', monospace;
  color: var(--text);
  background-color: var(--bg);
  position: relative;
  overflow-x: hidden;
}

/* MySpace-style follower cursor (fine pointer only; see app.js) */
body.site-ready {
  cursor: none;
}

body.site-ready input,
body.site-ready textarea {
  cursor: text !important;
}

@media (pointer: coarse) {
  body.site-ready {
    cursor: auto;
  }
}

/* Follower ring/dot hidden; trail dots remain (see .cursor-trail) */
.custom-cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
  z-index: 2;
  will-change: transform;
  opacity: 0 !important;
  visibility: hidden;
}

.custom-cursor__ring,
.custom-cursor__dot {
  display: none;
}

.cursor-fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100001;
  opacity: 0;
}

.cursor-trail {
  position: fixed;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  overflow: visible;
  pointer-events: none;
  z-index: 3;
}

.cursor-trail__dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 7px;
  height: 7px;
  margin: 0;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity;
  background: radial-gradient(
    circle at 35% 35%,
    rgba(230, 230, 230, 0.4) 0%,
    color-mix(in srgb, var(--ms-pink-solid) 42%, transparent) 42%,
    rgba(55, 55, 55, 0.35) 100%
  );
  box-shadow: 0 0 10px color-mix(in srgb, var(--ms-pink-solid) 35%, transparent);
  opacity: calc(0.92 - var(--trail-i) * 0.052);
  transform: translate(-100px, -100px);
}

@media (pointer: coarse) {
  .cursor-fx {
    display: none;
  }

  .custom-cursor {
    display: none;
  }
}

/* Film-grain / noise overlay (full site, non-interactive) */
.site-noise {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  background: url('assets/noise-overlay.png') repeat;
  background-size: 200px 200px;
  opacity: 0.055;
  mix-blend-mode: overlay;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-shell {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px 32px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-bottom: max(32px, env(safe-area-inset-bottom, 0px));
  background: var(--shell);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

/* ── Enter gate ────────────────────────────────────────────────────────── */
.enter-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  background: #010101;
  cursor: pointer;
  overflow: hidden;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.7s;
}

/* film grain */
.enter-gate::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url('assets/noise-overlay.png') repeat;
  background-size: 200px 200px;
  opacity: 0.09;
  mix-blend-mode: overlay;
}

.enter-gate.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Very soft edge falloff */
.enter-gate::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 85% 70% at 50% 48%,
    rgba(0, 0, 0, 0) 35%,
    rgba(0, 0, 0, 0.4) 100%
  );
}

/* moving scanline beam */
.gate-scanline {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  mix-blend-mode: normal;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.07) 2px,
    rgba(0, 0, 0, 0.07) 3px
  );
}

.gate-scanline::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%, color-mix(in srgb, var(--ms-pink-solid) 10%, transparent) 25%,
    color-mix(in srgb, var(--ms-pink-solid) 22%, transparent) 50%, color-mix(in srgb, var(--ms-pink-solid) 10%, transparent) 75%, transparent 100%
  );
  box-shadow: 0 0 22px color-mix(in srgb, var(--ms-pink-solid) 7%, transparent);
  animation: gate-scan 7s linear infinite;
}

@keyframes gate-scan {
  0%   { top: -4px; }
  100% { top: 100vh; }
}

/* UI corner brackets */
.gate-corners {
  position: absolute;
  inset: max(20px, 2.5vw);
  pointer-events: none;
  z-index: 3;
}

.gate-c {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: color-mix(in srgb, var(--ms-pink-solid) 22%, transparent);
  border-style: solid;
  opacity: 0;
  animation: gate-c-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.gate-c--tl { top: 0; left: 0;  border-width: 1px 0 0 1px; animation-delay: 0.25s; }
.gate-c--tr { top: 0; right: 0; border-width: 1px 1px 0 0; animation-delay: 0.32s; }
.gate-c--bl { bottom: 0; left: 0;  border-width: 0 0 1px 1px; animation-delay: 0.38s; }
.gate-c--br { bottom: 0; right: 0; border-width: 0 1px 1px 0; animation-delay: 0.44s; }

@keyframes gate-c-in {
  from { opacity: 0; transform: scale(0.65); }
  to   { opacity: 1; transform: none; }
}

/* floating kanji */
.enter-glyphs {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.enter-float {
  position: absolute;
  left: calc(50% + var(--fx) * 42vw);
  top: calc(50% + var(--fy) * 36vh);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.04);
  letter-spacing: 0.2em;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

/* parallax mover */
.enter-gate-mover {
  position: relative;
  z-index: 5;
  will-change: transform;
}

.enter-gate-inner {
  text-align: center;
  padding: 24px max(20px, env(safe-area-inset-left, 0px)) 24px max(20px, env(safe-area-inset-right, 0px));
}

.enter-gate-intro {
  animation: gate-intro 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}

@keyframes gate-intro {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* Gate wordmark — small, quiet */
.gate-logo {
  position: relative;
  display: inline-block;
  font-size: clamp(2rem, 7vw, 3.25rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1;
  user-select: none;
}

.gate-logo__main {
  position: relative;
  z-index: 1;
  display: block;
  color: #d8d8d8;
  text-shadow: 0 0 24px color-mix(in srgb, var(--ms-pink-solid) 12%, transparent);
}

/* thin divider below logo */
.gate-rule {
  width: min(120px, 40vw);
  height: 1px;
  margin: 14px auto 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.12) 50%,
    transparent 100%
  );
  opacity: 0.85;
}

/* Plain hint — no chrome */
.gate-cta {
  margin: 12px 0 0;
  padding: 0;
  font-size: clamp(7px, 1.5vw, 9px);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: #5a5a5a;
  line-height: 1.5;
  transition: color 0.25s ease;
}

.enter-gate:hover .gate-cta {
  color: #7a7a7a;
}

/* JP subtitle */
.enter-jp {
  margin: 0;
  font-family: 'M PLUS 1 Code', monospace;
  font-size: clamp(0.9rem, 2.6vw, 1.2rem);
  font-weight: 400;
  color: #5a5a5a;
  letter-spacing: 0.38em;
  line-height: 1.6;
}

.enter-jp .jp-ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  animation: jp-ch-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(0.15s + var(--i) * 0.055s);
}

@keyframes jp-ch-in {
  to { opacity: 1; transform: none; }
}

/* "click to enter" hint */
.gate-hint {
  margin: 20px 0 0;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: #444;
}

.gate-hint__blink {
  color: var(--ms-pink-solid);
  opacity: 0.7;
  animation: blink-cur 1.1s step-start infinite;
}

@keyframes blink-cur {
  0%, 100% { opacity: 0.7; }
  50%       { opacity: 0; }
}

body.enter-locked { overflow: hidden; }

/* ── Site load-in animation ─────────────────────────────────────────────── */
.top-bar,
.layout > *,
.site-bottom {
  opacity: 0;
}

.top-bar {
  transform: translateY(-14px);
}

.layout > .profile-column {
  transform: translateX(-22px);
}

.layout > .main-column {
  transform: translateY(22px);
}

.site-bottom {
  transform: translateY(22px);
}

body.site-ready .top-bar {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0.0s;
}

body.site-ready .layout > .profile-column {
  opacity: 1;
  transform: none;
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0.1s;
}

body.site-ready .layout > .main-column {
  opacity: 1;
  transform: none;
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0.2s;
}

body.site-ready .site-bottom {
  opacity: 1;
  transform: none;
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0.32s;
}

/* ── Custom cursor zone images — handled entirely by JS ──────────────────── */
.cursor-zone-img {
  position: fixed;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  pointer-events: none;
  z-index: 10001;
  will-change: transform;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.12s;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6));
}

.cursor-zone-img.is-visible {
  opacity: 1;
}

.page-shell > .top-bar {
  opacity: 0;
  transform: translateY(-12px);
}

body.site-ready .page-shell > .top-bar {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Top bar */
.top-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.top-bar-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.site-logo {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-bright);
  letter-spacing: 0.18em;
  text-transform: lowercase;
  text-shadow:
    0 0 18px var(--ms-teal-glow),
    0 1px 0 color-mix(in srgb, var(--ms-pink-solid) 15%, transparent);
}

.site-tagline {
  display: block;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--text-dim);
  opacity: 0.85;
}

.top-meta {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

.local-time {
  font-variant-numeric: tabular-nums;
}

/* Layout */
.layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  margin-top: 16px;
  align-items: start;
}

.profile-column {
  min-width: 0;
}

.profile-name {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-bright);
  letter-spacing: 0.06em;
  text-transform: lowercase;
  text-shadow: 0 0 20px color-mix(in srgb, var(--ms-pink-solid) 12%, transparent);
}

.ms-profile-meta {
  margin: 0 0 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--text-dim);
}

.ms-online {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #8a8a8a;
}

.ms-online-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ms-online);
  box-shadow: 0 0 8px rgba(92, 184, 138, 0.45);
}

.ms-meta-sep {
  color: #444;
  user-select: none;
}

.ms-here-for {
  color: #777;
}

.profile-photo-block {
  position: relative;
  display: inline-block;
  line-height: 0;
}

.ms-spark {
  position: absolute;
  z-index: 2;
  font-size: 11px;
  line-height: 1;
  color: var(--ms-pink-solid);
  opacity: 0.35;
  pointer-events: none;
  text-shadow: 0 0 12px color-mix(in srgb, var(--ms-pink-solid) 25%, transparent);
}

.ms-spark--tl {
  top: -6px;
  right: -4px;
}

.ms-spark--br {
  bottom: -5px;
  left: -5px;
  transform: rotate(12deg);
}

.profile-photo-wrap {
  border: 1px solid var(--border-light);
  display: inline-block;
  line-height: 0;
  position: relative;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--ms-pink-solid) 8%, transparent),
    0 10px 28px rgba(0, 0, 0, 0.45);
}

.profile-photo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.profile-photo {
  display: block;
  width: 100%;
  max-width: 200px;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
  filter: contrast(1.05) brightness(0.95);
}

/* Lanyard live card (replaces Top 8) */
.lanyard-live {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.lanyard-live__title {
  display: flex;
  align-items: center;
  gap: 0.4em;
}

.lanyard-live__label {
  letter-spacing: 0.14em;
}

.lanyard-card {
  position: relative;
  padding: 11px 11px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(155deg, color-mix(in srgb, var(--ms-pink-solid) 7%, transparent) 0%, rgba(8, 8, 8, 0.92) 42%, rgba(6, 6, 8, 0.96) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.lanyard-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.22) 3px,
    rgba(0, 0, 0, 0.22) 4px
  );
  mix-blend-mode: multiply;
}

.lanyard-card__user {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1;
}

.lanyard-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.lanyard-card__user-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.lanyard-card__displayname {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-bright);
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lanyard-card__username {
  font-size: 9px;
  color: #666;
  letter-spacing: 0.06em;
}

.lanyard-card__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: #777;
}

.lanyard-card__pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #555;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
}

.lanyard-card__pill[data-status="online"] .lanyard-card__pill-dot {
  background: var(--ms-online);
  box-shadow: 0 0 10px rgba(92, 184, 138, 0.45);
}

.lanyard-card__pill[data-status="idle"] .lanyard-card__pill-dot {
  background: #c9a85c;
}

.lanyard-card__pill[data-status="dnd"] .lanyard-card__pill-dot {
  background: #c45c5c;
}

.lanyard-card__pill[data-status="offline"] .lanyard-card__pill-dot {
  background: #444;
}

.lanyard-card__clients {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.lanyard-card__clients li {
  margin: 0;
  padding: 3px 7px;
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: #888;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
}

.lanyard-card__spotify {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed color-mix(in srgb, var(--ms-pink-solid) 22%, transparent);
}

.lanyard-card__spotify[hidden] {
  display: none !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
  border-top: 0 !important;
}

.lanyard-card__spotify--no-cover {
  gap: 0;
}

.lanyard-card__album {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.lanyard-card__album[hidden] {
  display: none !important;
}

.lanyard-card__spotify-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.lanyard-card__spotify-title {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-bright);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lanyard-card__spotify-artist {
  font-size: 9px;
  color: #777;
  line-height: 1.3;
}

.lanyard-card__spotify-bar {
  height: 4px;
  margin-top: 5px;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.lanyard-card__spotify-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  background: var(--ms-pink-solid);
  box-shadow: 0 0 8px color-mix(in srgb, var(--ms-pink-solid) 35%, transparent);
  transition: width 0.35s linear;
}

.lanyard-card__extras {
  position: relative;
  z-index: 1;
  margin: 8px 0 0;
  padding: 0;
  font-size: 9px;
  line-height: 1.45;
  color: #6a6a6a;
  white-space: pre-wrap;
  word-break: break-word;
}

.lanyard-card__extras[hidden] {
  display: none !important;
}

.lanyard-card__wait {
  margin: 6px 0 0;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: #555;
}

/* Sidebar sections */
.sidebar-heading {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 600;
  color: #aaa;
  letter-spacing: 0.18em;
  text-transform: lowercase;
}

.sidebar-links {
  margin-top: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.links-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.links-list li {
  margin: 0;
}

.links-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  font-size: 10px;
  font-weight: 600;
  font-family: 'M PLUS 1 Code', monospace;
  color: var(--accent);
  text-decoration: none;
  text-transform: lowercase;
  letter-spacing: 0.12em;
  padding: 5px 10px;
  border: 1px solid var(--border-light);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.links-list a:hover {
  color: #fff;
  border-color: color-mix(in srgb, var(--ms-pink-solid) 45%, transparent);
  background: color-mix(in srgb, var(--ms-pink-solid) 7%, transparent);
}

/* Clothing — one full panel per piece (see site-config.js + renderClothing in app.js) */
.clothing-mount {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  margin-bottom: 18px;
}

.clothing-mount .panel {
  margin-bottom: 0;
}

.clothing-mount[hidden] {
  display: none !important;
  margin-bottom: 0;
}

/* Clothing — mockup-style gallery (header + textured stage + arrows + dots) */
.clothing-gallery {
  overflow: hidden;
  background: #000;
  border: 1px solid #2a2a2a;
}

.clothing-gallery-heading {
  margin: 0;
  padding: 9px 12px 8px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: lowercase;
  color: #f0f0f0;
  background: #000;
  border-bottom: 1px solid #242424;
}

.clothing-gallery-body {
  margin: 0;
  padding: 0;
  background: #000;
}

.clothing-gallery-stage {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  align-items: stretch;
  min-height: min(56vw, 400px);
  max-height: min(70vh, 520px);
  background: #000;
}

.clothing-gallery-arrow {
  z-index: 2;
  align-self: center;
  justify-self: center;
  width: 26px;
  height: 26px;
  margin: 0;
  padding: 0;
  font: inherit;
  font-size: 11px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  cursor: pointer;
}

.clothing-gallery-arrow:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.clothing-gallery-viewport {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background:
    repeating-linear-gradient(
      -8deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.04) 2px,
      rgba(0, 0, 0, 0.04) 3px
    ),
    linear-gradient(165deg, #c8c8c8 0%, #9e9e9e 42%, #8a8a8a 100%);
}

.clothing-gallery-track {
  display: flex;
  height: 100%;
  min-height: min(56vw, 400px);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.clothing-gallery-track::-webkit-scrollbar {
  display: none;
}

.clothing-gallery-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  box-sizing: border-box;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 10px;
}

.clothing-gallery-slide-inner {
  max-width: 100%;
  max-height: min(52vw, 360px);
  display: flex;
  align-items: center;
  justify-content: center;
}

a.clothing-gallery-slide-inner {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.clothing-gallery-slide-inner:focus-visible {
  outline: 1px solid color-mix(in srgb, var(--ms-pink-solid) 45%, transparent);
  outline-offset: 3px;
  border-radius: 2px;
}

.clothing-gallery-img {
  display: block;
  max-width: 100%;
  max-height: min(52vw, 360px);
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  filter: contrast(1.06) brightness(0.98);
}

.clothing-gallery-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 11px 10px 14px;
  background: #000;
  border-top: 1px solid #242424;
}

.clothing-gallery-counter {
  font-size: 9px;
  letter-spacing: 0.16em;
  color: #5a5a5a;
  font-variant-numeric: tabular-nums;
}

.clothing-gallery-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}

.clothing-gallery-dot {
  width: 20px;
  height: 7px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid #3a3a3a;
  background: transparent;
  cursor: pointer;
  font-size: 0;
}

.clothing-gallery-dot.is-active {
  background: #e4e4e4;
  border-color: #e4e4e4;
}

.clothing-gallery-dot:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.35);
  outline-offset: 2px;
}

/* Main column */
.main-column {
  min-width: 0;
}

/* Wishlist — one card per view + prev/next */
.wishlist-panel-body {
  padding: 10px 12px 12px;
}

.wishlist-carousel {
  display: flex;
  align-items: center;
  gap: 6px;
}

.wishlist-nav {
  flex: 0 0 auto;
  font: inherit;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  padding: 6px 8px;
  cursor: pointer;
  color: #888;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  line-height: 1;
}

.wishlist-nav:hover {
  color: #ccc;
  border-color: rgba(255, 255, 255, 0.14);
}

.wishlist-viewport {
  flex: 1;
  min-width: 0;
  max-width: min(288px, 100%);
  margin: 0 auto;
  position: relative;
  isolation: isolate;
  border-radius: var(--radius);
}

/* Side fades: cards soften into the panel instead of hard edges */
.wishlist-viewport--fade::before,
.wishlist-viewport--fade::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 22px;
  z-index: 2;
  pointer-events: none;
  opacity: 0.95;
  transition: opacity 0.4s ease;
}

.wishlist-viewport--fade::before {
  left: 0;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--panel-bg) 96%, transparent) 0%,
    transparent 100%
  );
}

.wishlist-viewport--fade::after {
  right: 0;
  background: linear-gradient(
    270deg,
    color-mix(in srgb, var(--panel-bg) 96%, transparent) 0%,
    transparent 100%
  );
}

@media (prefers-reduced-motion: reduce) {
  .wishlist-viewport--fade::before,
  .wishlist-viewport--fade::after {
    transition: none;
  }
}

.wishlist-scroll {
  display: flex;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  width: 100%;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.wishlist-scroll:active {
  cursor: grabbing;
}

.wishlist-scroll::-webkit-scrollbar {
  display: none;
}

.wishlist-card {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  box-sizing: border-box;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  overflow: hidden;
  background: #090909;
  transform: translateY(0);
  transition: transform 0.22s ease, border-color 0.22s, box-shadow 0.22s;
}

.wishlist-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--ms-pink-solid) 50%, transparent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--ms-pink-solid) 12%, transparent),
    0 8px 20px rgba(0, 0, 0, 0.45),
    0 0 14px color-mix(in srgb, var(--ms-pink-solid) 8%, transparent);
}

.wishlist-card:focus-visible {
  outline: 1px solid color-mix(in srgb, var(--ms-pink-solid) 55%, transparent);
  outline-offset: 2px;
}

.wishlist-card__thumb {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #0d0d0f;
  position: relative;
}

.wishlist-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9) contrast(1.04);
  transition: transform 0.38s ease, filter 0.22s;
}

.wishlist-card:hover .wishlist-card__thumb img {
  transform: scale(1.06);
  filter: brightness(1.0) contrast(1.05);
}

.wishlist-card__info {
  padding: 8px 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: linear-gradient(180deg, #0c0c0c 0%, #090909 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.wishlist-card__brand {
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: lowercase;
  color: #4d4d4d;
}

.wishlist-card__name {
  font-size: 9.5px;
  color: var(--text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s;
}

.wishlist-card:hover .wishlist-card__name {
  color: var(--text-bright);
}

.wishlist-card__price {
  font-size: 9px;
  color: #5a5a5a;
  margin-top: 3px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.wishlist-card__price s {
  text-decoration: line-through;
  color: #333;
  margin-right: 4px;
}

/* ASCII / terminal-style art — centered frame like scene shot */
.ascii-panel.panel {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.ascii-panel .panel-title {
  letter-spacing: 0.28em;
}

.panel-body.ascii-panel-body {
  padding: 14px 16px;
  line-height: 0;
  background: #070707;
}

.ascii-frame {
  max-width: min(640px, 100%);
  margin: 0 auto;
}

.ascii-wrap {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  line-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
}

/* Scanlines — sized to image */
.ascii-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.14;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.5) 2px,
    rgba(0, 0, 0, 0.5) 3px
  );
  mix-blend-mode: multiply;
}

/* Moving shine */
.ascii-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 38%,
    rgba(255, 255, 255, 0.18) 49.5%,
    rgba(255, 255, 255, 0.42) 50%,
    rgba(255, 255, 255, 0.18) 50.5%,
    transparent 62%,
    transparent 100%
  );
  background-size: 240% 100%;
  background-repeat: no-repeat;
  mix-blend-mode: soft-light;
  animation: ascii-shine 4.2s ease-in-out infinite;
}

@keyframes ascii-shine {
  0%,
  15% {
    background-position: 100% 0;
  }
  45%,
  55% {
    background-position: 0% 0;
  }
  85%,
  100% {
    background-position: -100% 0;
  }
}

.ascii-art-img {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  image-rendering: crisp-edges;
  filter: invert(1) contrast(1.05);
  opacity: 0.9;
}

.panel {
  margin-bottom: 18px;
  border: 1px solid var(--border);
  background: var(--panel-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.panel-title {
  margin: 0;
  padding: 8px 12px 8px 10px;
  font-size: 10px;
  font-weight: 600;
  color: #a5a5a5;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0%, rgba(0, 0, 0, 0.2) 48%);
  border-bottom: 1px solid var(--border);
  border-left: 3px solid rgba(255, 255, 255, 0.12);
  letter-spacing: 0.14em;
  text-transform: lowercase;
}

.panel-heading-face {
  display: inline;
  margin-right: 0.35em;
  letter-spacing: 0.02em;
  font-weight: 600;
  color: var(--text-bright);
}

.panel-title-note {
  display: inline;
  margin-left: 6px;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: #666;
  opacity: 0.92;
}

.panel-body {
  padding: 12px 14px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--text);
}

.panel-body p {
  margin: 0 0 10px;
}

.panel-body p:last-child {
  margin-bottom: 0;
}

/* Player — compact */
.music-panel .panel-title {
  padding: 5px 10px 5px 8px;
  font-size: 9px;
}

.music-panel .panel-body {
  padding: 8px 10px 10px;
}

.custom-player {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  background: rgba(6, 6, 6, 0.85);
  box-shadow: none;
}

.player-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.player-vinyl-wrap {
  flex-shrink: 0;
}

.player-vinyl {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background:
    repeating-conic-gradient(
      from 0deg,
      #141414 0deg 4deg,
      #0a0a0a 4deg 8deg
    );
  box-shadow:
    inset 0 0 10px rgba(0, 0, 0, 0.95),
    0 0 0 1px #1a1a1a;
}

.player-vinyl.is-playing {
  animation: vinyl-spin 14s linear infinite;
}

@keyframes vinyl-spin {
  to {
    transform: rotate(360deg);
  }
}

.player-vinyl-hole {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 11px;
  margin: -5.5px 0 0 -5.5px;
  border-radius: 50%;
  background: radial-gradient(circle, #080808 40%, #161616 100%);
  border: 1px solid #2a2a2a;
}

.player-side {
  flex: 1;
  min-width: 0;
}

.track-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}

.track-title {
  font-weight: 600;
  font-size: 9px;
  color: var(--text-bright);
  letter-spacing: 0.02em;
}

.player-transport {
  display: flex;
  align-items: center;
  gap: 3px;
}

.player-icon-btn {
  font-family: inherit;
  font-size: 8px;
  padding: 2px 6px;
  cursor: pointer;
  color: #aaa;
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: 2px;
  line-height: 1;
  text-transform: lowercase;
}

.player-icon-btn:hover {
  border-color: #666;
  color: #fff;
}

.player-play {
  font-family: inherit;
  font-size: 9px;
  font-weight: 600;
  padding: 3px 10px;
  cursor: pointer;
  color: #0a0a0a;
  background: linear-gradient(to bottom, #d8d8d8, #9a9a9a);
  border: 1px solid #888;
  border-radius: 2px;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: lowercase;
  min-width: 2.75rem;
}

.player-play:hover {
  background: linear-gradient(to bottom, #eaeaea, #a8a8a8);
}

.player-play:active {
  transform: translate(1px, 1px);
}

.player-volume-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.vol-label {
  font-size: 8px;
  color: #666;
  letter-spacing: 0.06em;
  text-transform: lowercase;
}

#volume-range {
  flex: 1;
  max-width: 140px;
  height: 2px;
  accent-color: #777;
  cursor: pointer;
}

.player-progress-bar {
  height: 4px;
  background: #0a0a0a;
  border: 1px solid #222;
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
}

.player-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(to bottom, #b0b0b0, #707070);
  border-radius: 1px;
  transition: width 0.12s linear;
}

.player-times {
  margin-top: 3px;
  font-size: 8px;
  color: #666;
  font-variant-numeric: tabular-nums;
}

.time-sep {
  margin: 0 2px;
  color: #444;
}

.subhead {
  margin: 14px 0 6px;
  font-size: 10px;
  font-weight: 600;
  color: #bbb;
  letter-spacing: 0.1em;
  text-transform: lowercase;
}

.subhead:first-of-type {
  margin-top: 8px;
}

.music-playlist__heading {
  margin-top: 8px;
  font-size: 9px;
}

.playlist.playlist--tracks {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.playlist-track {
  display: grid;
  grid-template-columns: 1.35rem 1fr;
  align-items: center;
  gap: 0 6px;
  margin: 0;
  padding: 3px 6px;
  font-size: 9px;
  letter-spacing: 0.02em;
  color: #585858;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  transition: color 0.12s, background 0.12s;
}

.playlist-track:last-child {
  border-bottom: none;
}

.playlist-track:focus {
  outline: none;
}

.playlist-track:focus-visible {
  outline: 1px solid color-mix(in srgb, var(--ms-pink-solid) 40%, transparent);
  outline-offset: -1px;
}

.playlist-track:hover {
  background: rgba(255, 255, 255, 0.025);
  color: #888;
}

.playlist-track__idx {
  font-size: 7px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  color: #3a3a3a;
  text-align: right;
}

.playlist-track__label {
  min-width: 0;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playlist-track.is-current {
  color: var(--text);
  background: color-mix(in srgb, var(--ms-pink-solid) 4%, transparent);
}

.playlist-track.is-current .playlist-track__idx {
  color: var(--ms-pink-solid);
}

.playlist-track.is-current .playlist-track__label {
  font-weight: 600;
}

/* Bottom: guestbook (spaced from main column) */
.site-bottom {
  opacity: 0;
  transform: translateY(8px);
  margin-top: 44px;
  padding: 28px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.site-ready .site-bottom {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.2s,
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}

.guestbook-site-bottom.panel {
  margin-top: 0;
  margin-bottom: 0;
  background: rgba(5, 5, 5, 0.55);
  border-color: rgba(255, 255, 255, 0.06);
}

.guestbook-site-bottom .panel-title {
  padding: 6px 12px;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: #888;
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

/* Guestbook — minimal thread */
.guestbook-site-bottom .panel-body {
  padding: 10px 12px 12px;
}

.gb-hint {
  margin: 0 0 8px;
  font-size: 9px;
  color: var(--text-dim);
}

.gb-form {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.gb-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}

.gb-input {
  font: inherit;
  font-size: 10px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 4px 7px;
}

.gb-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.18);
}

.gb-name {
  flex: 1;
  min-width: 0;
  max-width: none;
}

.gb-country {
  flex: 0 0 auto;
  font-size: 1rem;
  line-height: 1;
  opacity: 0.92;
  user-select: none;
}

.gb-body {
  display: block;
  width: 100%;
  max-width: 100%;
  resize: vertical;
  min-height: 34px;
  margin-bottom: 0;
  line-height: 1.4;
}

.gb-submit {
  flex: 0 0 auto;
  font: inherit;
  font-size: 12px;
  line-height: 1;
  font-weight: 400;
  padding: 4px 8px;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  cursor: pointer;
}

.gb-submit:hover:not(:disabled) {
  color: var(--text-bright);
  border-color: rgba(255, 255, 255, 0.2);
}

.gb-submit:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.gb-status {
  margin: 4px 0 0;
  min-height: 1em;
  font-size: 9px;
  color: #555;
}

.gb-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gb-item {
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.gb-item:last-child {
  border-bottom: 0;
}

.gb-meta {
  font-size: 9px;
  color: var(--text-dim);
  line-height: 1.4;
}

.gb-author {
  font-weight: 600;
}

.gb-sep {
  color: #3a3a3a;
}

.gb-cc.gb-flag {
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.06em;
  vertical-align: 0;
  color: #5a5a5a;
}

.gb-time {
  color: #555;
}

.gb-text {
  margin: 4px 0 0;
  padding: 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

.gb-muted {
  font-size: 10px;
  color: #555;
  padding: 4px 0;
}

/* Mobile */
@media (max-width: 700px) {
  html {
    font-size: clamp(12.5px, 3.4vw, 14px);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  .page-shell {
    border-left: none;
    border-right: none;
    max-width: none;
    width: 100%;
  }

  .layout {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 12px;
  }

  .top-bar {
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    text-align: right;
    gap: 10px;
    padding-top: max(12px, env(safe-area-inset-top, 0px));
    flex-wrap: wrap;
  }

  .top-meta {
    font-size: clamp(10px, 2.8vw, 11px);
  }

  .profile-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-name {
    margin-bottom: 8px;
  }

  .ms-profile-meta {
    justify-content: center;
    margin-bottom: 10px;
  }

  .profile-photo {
    max-width: min(200px, 52vw);
  }

  .lanyard-live {
    width: 100%;
    max-width: 22rem;
  }

  .lanyard-live__title {
    justify-content: center;
  }

  .sidebar-links {
    width: 100%;
    max-width: 28rem;
  }

  .sidebar-heading {
    text-align: center;
  }

  .links-list {
    justify-content: center;
    gap: 8px;
  }

  .links-list a {
    min-height: 44px;
    padding: 10px 16px;
    align-items: center;
  }

  .panel {
    margin-bottom: 16px;
    border-radius: var(--radius);
  }

  .panel-title {
    padding: 10px 14px;
    font-size: clamp(10px, 2.6vw, 11px);
  }

  .panel-body {
    padding: 14px 16px;
    font-size: clamp(11px, 3vw, 12px);
  }

  .custom-player {
    padding: 10px 12px;
  }

  .player-row {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .player-vinyl-wrap {
    order: -1;
  }

  .player-side {
    width: 100%;
    min-width: 0;
    text-align: center;
  }

  .track-line {
    justify-content: center;
    flex-direction: column;
    gap: 10px;
  }

  .player-transport {
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .player-icon-btn {
    min-width: 44px;
    min-height: 44px;
    padding: 0 12px;
    font-size: 12px;
    touch-action: manipulation;
  }

  .player-play {
    min-height: 44px;
    padding: 10px 22px;
    font-size: 12px;
    touch-action: manipulation;
  }

  .player-volume-row {
    justify-content: center;
    flex-wrap: wrap;
  }

  #volume-range {
    max-width: none;
    width: 100%;
    min-width: 0;
    height: 8px;
  }

  .player-progress-bar {
    min-height: 8px;
  }

  .playlist {
    padding-left: 1.25rem;
    font-size: clamp(10px, 2.8vw, 11px);
  }

  .site-bottom {
    margin-top: 32px;
    padding: 22px 0 max(28px, env(safe-area-inset-bottom, 0px));
  }

  .gb-toolbar {
    flex-wrap: wrap;
    gap: 8px;
  }

  .gb-name {
    flex: 1 1 140px;
    min-height: 44px;
    padding: 10px 10px;
    font-size: 16px;
  }

  .gb-body {
    min-height: 88px;
    padding: 10px 10px;
    font-size: 16px;
    line-height: 1.45;
  }

  .gb-submit {
    min-width: 44px;
    min-height: 44px;
    padding: 0 12px;
    touch-action: manipulation;
  }

  .ascii-panel.panel {
    width: 100%;
    max-width: 100%;
  }

  .ascii-wrap {
    display: block;
    width: 100%;
    text-align: center;
  }

  .ascii-art-img {
    margin: 0 auto;
    max-width: min(100%, 100vw - 48px);
  }
}

@media (max-width: 380px) {
  .page-shell {
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
  }

  .panel-body {
    padding: 12px 12px;
  }

  .custom-player {
    padding: 8px 10px;
  }
}
