/* F.A.T. Aesthetic - Brutalist, Monospace, High Contrast */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #000;
  --fg: #fff;
  --accent: #ff0000;
  --muted: #666;
  --font: 'Courier New', Courier, monospace;
}

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

html {
  position: fixed;
  touch-action: manipulation;
}

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.4;
  position: relative;
}

/* Diffuse white smoke/fire effect */
body::before,
body::after {
  content: '';
  position: fixed;
  inset: -50%;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background:
    radial-gradient(ellipse 80% 50% at 20% 80%, rgba(255,255,255,0.15) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(255,255,255,0.12) 0%, transparent 50%),
    radial-gradient(ellipse 50% 60% at 50% 50%, rgba(255,255,255,0.10) 0%, transparent 40%);
  animation: smoke1 20s ease-in-out infinite;
  filter: blur(60px);
}

body::after {
  background:
    radial-gradient(ellipse 70% 55% at 70% 70%, rgba(255,255,255,0.14) 0%, transparent 45%),
    radial-gradient(ellipse 55% 45% at 30% 30%, rgba(255,255,255,0.10) 0%, transparent 50%),
    radial-gradient(ellipse 45% 70% at 60% 40%, rgba(255,255,255,0.08) 0%, transparent 40%),
    radial-gradient(ellipse 80% 60% at 85% 80%, rgba(255,0,0,0.06) 0%, transparent 50%);
  animation: smoke2 25s ease-in-out infinite;
  filter: blur(70px);
}

@keyframes smoke1 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.8; }
  25% { transform: translate(5%, -3%) scale(1.05); opacity: 1; }
  50% { transform: translate(-3%, 5%) scale(0.95); opacity: 0.7; }
  75% { transform: translate(4%, 2%) scale(1.02); opacity: 0.9; }
}

@keyframes smoke2 {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 0.7; }
  33% { transform: translate(-4%, 4%) scale(1.03) rotate(2deg); opacity: 0.9; }
  66% { transform: translate(3%, -2%) scale(0.97) rotate(-1deg); opacity: 0.8; }
}

#app {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Screens */
.screen {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: fixed;
  inset: 0;
}

.screen.active {
  display: flex;
}

/* Enter Screen */
.enter-content {
  text-align: center;
}

/* Pen & Pixel Bling Title */
.enter-content h1 {
  font-family: 'Anton', Impact, sans-serif;
  font-size: clamp(80px, 20vw, 160px);
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;

  /* Bulge effect */
  transform: perspective(300px) rotateX(-10deg) scaleY(1.1);
  transform-origin: center bottom;

  /* Tiled diamond pattern fill - actual diamond shapes with contrast */
  background:
    /* Shimmer overlay */
    linear-gradient(
      110deg,
      transparent 30%,
      rgba(255,255,255,0.8) 48%,
      rgba(255,255,255,0.8) 52%,
      transparent 70%
    ),
    /* Diamond facets - high contrast to be visible */
    repeating-conic-gradient(
      from 45deg,
      #ffffff 0deg 90deg,
      #9fc5e8 90deg 180deg,
      #ffffff 180deg 270deg,
      #b4d7f0 270deg 360deg
    );
  background-size: 300% 100%, 20px 20px;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;

  /* Gold stroke */
  -webkit-text-stroke: 3px #b8860b;

  /* Gold glow */
  filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 6px #d4af37) drop-shadow(0 0 15px rgba(212, 175, 55, 0.6));
}

@keyframes shimmer {
  0%, 100% { background-position: 200% center; }
  50% { background-position: 0% center; }
}

/* Dark shadow layer */
.enter-content h1::before {
  content: '36247';
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
  font-family: 'Anton', Impact, sans-serif;
  font-size: clamp(80px, 20vw, 160px);
  font-weight: 400;
  letter-spacing: 0.05em;
  color: #000;
  -webkit-text-stroke: 5px #000;
  transform: translate(3px, 3px);
  filter: blur(1px);
}

/* Sparkles - hidden for now */
.sparkles {
  display: none;
}

#enter-btn {
  background: transparent;
  border: 2px solid var(--fg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 18px;
  padding: 15px 60px;
  cursor: pointer;
  letter-spacing: 0.1em;
  transition: all 0.1s ease;
}

#enter-btn:hover {
  background: var(--fg);
  color: var(--bg);
}

#enter-btn:active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

#enter-btn.hidden {
  display: none;
}

/* Password input */
.password-container {
  margin-bottom: 30px;
}

.password-container.hidden {
  display: none;
}

.password-container.dismissed {
  animation: toss-away 0.4s ease-in forwards;
  pointer-events: none;
}

@keyframes toss-away {
  0% {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translateY(-100px) rotate(-15deg);
  }
}

.password-input {
  background: transparent;
  border: 2px solid var(--muted);
  color: var(--fg);
  font-family: var(--font);
  font-size: 18px;
  padding: 15px 30px;
  text-align: center;
  letter-spacing: 0.1em;
  outline: none;
  width: 250px;
}

.password-input:focus {
  border-color: var(--fg);
}

.password-input::placeholder {
  color: var(--muted);
}

.password-submit-btn {
  background: transparent;
  border: 2px solid var(--muted);
  color: var(--muted);
  font-family: var(--font);
  font-size: 18px;
  padding: 15px 25px;
  cursor: pointer;
  letter-spacing: 0.1em;
  margin-left: 10px;
  vertical-align: top;
}

.password-submit-btn:hover {
  border-color: var(--fg);
  color: var(--fg);
}

.password-submit-btn:active {
  background: var(--fg);
  color: var(--bg);
}

.password-error {
  color: var(--accent);
  font-size: 12px;
  margin-top: 10px;
  letter-spacing: 0.1em;
  visibility: hidden;
  height: 18px;
}

.password-error.visible {
  visibility: visible;
}

/* Reset button */
.reset-btn {
  background: transparent;
  border: 1px solid var(--muted);
  color: var(--muted);
  font-family: var(--font);
  font-size: 11px;
  padding: 8px 20px;
  cursor: pointer;
  letter-spacing: 0.1em;
  margin-top: 15px;
}

.reset-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.reset-btn.hidden {
  display: none;
}

/* Konami progress dots - minimal */
.konami-progress {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-bottom: 30px;
  opacity: 0;
  transition: opacity 0.3s;
}

.konami-progress.active {
  opacity: 0.4;
}

.konami-dot {
  width: 4px;
  height: 4px;
  background: transparent;
  transition: all 0.15s;
}

.konami-dot.filled {
  background: var(--muted);
}

.konami-dot.error {
  background: var(--accent);
}

.konami-dot.success {
  background: var(--fg);
}

/* Secret hint (upside down text) */
.secret-hint {
  font-size: 10px;
  color: var(--muted);
  margin-top: 20px;
  transform: rotate(180deg);
  opacity: 0.5;
  display: none;
}

.secret-hint.visible {
  display: block;
}

/* Cash Rain overlay - secret unlock */
.cash-rain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  overflow: hidden;
  animation: cash-fade 3s ease-out forwards;
  perspective: 1000px;
}

.cash-rain .bill {
  position: absolute;
  top: -100px;
  width: var(--bill-width, 60px);
  height: var(--bill-height, 25px);
  background-image: var(--bill-img);
  background-size: cover;
  background-position: center;
  transform-style: preserve-3d;
  animation: fall-tumble var(--fall-duration, 2s) linear forwards;
  animation-delay: var(--fall-delay, 0s);
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

@keyframes fall-tumble {
  0% {
    transform: translateY(0) rotateZ(var(--start-rot, 0deg)) rotateX(0deg) rotateY(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(calc(100vh + 100px)) rotateZ(var(--spin-z, 360deg)) rotateX(var(--spin-x, 720deg)) rotateY(var(--spin-y, 540deg));
    opacity: 0.7;
  }
}

@keyframes cash-fade {
  0%, 70% { opacity: 1; }
  100% { opacity: 0; }
}

/* Player Screen */
.player-container {
  width: 90%;
  max-width: 800px;
  padding: 5%;
  overflow: hidden;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Album artwork */
.artwork-container {
  width: min(240px, 50vw);
  height: min(240px, 50vw);
  margin: 10px auto 2%;
  border: 2px solid var(--muted);
  flex-shrink: 0;
}

.artwork-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artwork-container.no-art {
  display: none;
}

.track-info-wrapper {
  width: 100%;
  overflow: hidden;
  margin-bottom: clamp(8px, 2vw, 12px);
  /* Fixed height prevents UI jumping when text wraps */
  min-height: clamp(45px, 8vw, 55px);
  display: flex;
  align-items: center;
}

.track-info {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 15px);
  font-size: clamp(12px, 2.5vw, 16px);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  justify-content: center;
  flex-wrap: nowrap;
  width: 100%;
}

.track-info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  flex: 1 1 0;
  min-width: 50px;
  max-width: 25%;
  /* Fixed height for each item - accommodates 2-3 lines */
  height: clamp(38px, 7vw, 45px);
  overflow: hidden;
}

/* Year column stays compact */
.track-info-item:last-of-type {
  flex: 0 0 auto;
  max-width: none;
}

.track-info-item span:not(.track-info-label) {
  text-align: center;
  word-wrap: break-word;
  line-height: 1.3;
}

/* Clickable metadata (super/secret modes) */
.track-info-item.clickable,
.artwork-image.clickable {
  cursor: pointer;
}

.track-info-item.clickable:hover span:not(.track-info-label) {
  text-decoration: underline;
}

.track-info-label {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.15em;
  text-transform: lowercase;
}

.track-info .separator {
  color: var(--muted);
  align-self: flex-end;
  margin-bottom: 4px;
  flex-shrink: 0;
}

#artist {
  color: var(--accent);
}

#album, #title, #year {
  color: var(--fg);
}

/* Progress Bar */
.progress-container {
  width: 100%;
  height: 4px;
  background: var(--muted);
  margin-bottom: 10px;
  cursor: pointer;
}

.progress-bar {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.1s linear;
}

/* Time Display */
.time-display {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-bottom: clamp(8px, 2vw, 12px);
  font-size: clamp(10px, 2vw, 12px);
  color: var(--muted);
}

/* Controls */
.controls {
  display: flex;
  justify-content: center;
  gap: clamp(8px, 2vw, 15px);
  margin-bottom: clamp(10px, 2vw, 15px);
}

.control-btn {
  background: transparent;
  border: 2px solid var(--fg);
  color: var(--fg);
  font-family: var(--font);
  font-size: clamp(11px, 2vw, 14px);
  padding: clamp(8px, 2vw, 10px) clamp(20px, 5vw, 40px);
  cursor: pointer;
  letter-spacing: 0.1em;
  transition: all 0.1s ease;
}

.control-btn:hover {
  background: var(--fg);
  color: var(--bg);
}

.control-btn:active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.control-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.control-btn:disabled:hover {
  background: transparent;
  color: var(--fg);
}

/* Catalog Progress */
.catalog-progress {
  text-align: center;
  font-size: clamp(10px, 2vw, 12px);
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* Error Screen */
.error-content {
  text-align: center;
}

.error-content h2 {
  font-size: 24px;
  font-weight: normal;
  color: var(--accent);
  margin-bottom: 20px;
}

.error-content p {
  margin-bottom: 30px;
  color: var(--muted);
}

#retry-btn {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-family: var(--font);
  font-size: 14px;
  padding: 10px 40px;
  cursor: pointer;
  letter-spacing: 0.1em;
  transition: all 0.1s ease;
}

#retry-btn:hover {
  background: var(--accent);
  color: var(--bg);
}

/* Track List (Superuser Mode) */
.track-list-container {
  margin-top: clamp(8px, 2vw, 12px);
  padding-top: clamp(5px, 1vw, 8px);
  width: 100%;
}

.track-list-container.hidden {
  display: none;
}

.track-list-header {
  margin-bottom: 15px;
}

.track-list-hint {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  margin-top: 8px;
  letter-spacing: 0.05em;
}

.track-search {
  width: 100%;
  background: transparent;
  border: 1px solid var(--muted);
  color: var(--fg);
  font-family: var(--font);
  font-size: clamp(12px, 2.5vw, 14px);
  padding: clamp(6px, 1.5vw, 8px) clamp(8px, 2vw, 12px);
  outline: none;
}

.track-search:focus {
  border-color: var(--fg);
}

.track-search::placeholder {
  color: var(--muted);
}

.track-list {
  max-height: clamp(200px, 40vh, 300px);
  overflow-y: auto;
  /* Hide scrollbar but keep scrolling */
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* Fade at bottom to indicate more content */
  mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
  padding-bottom: 20px;
}

.track-list::-webkit-scrollbar {
  display: none;
}

.track-item {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 10px);
  padding: clamp(4px, 1vw, 6px) 0;
  border-bottom: 1px solid #222;
  cursor: pointer;
  transition: background 0.1s;
}

.track-item:hover {
  background: #111;
}

.track-item.playing {
  color: var(--accent);
}

.track-item-thumb {
  width: clamp(32px, 8vw, 36px);
  height: clamp(32px, 8vw, 36px);
  object-fit: cover;
  flex-shrink: 0;
  background: #222;
}

.track-item-thumb.no-art {
  display: none;
}

.track-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.track-item-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px;
  font-size: clamp(12px, 2.5vw, 16px);
  line-height: 1.3;
  max-height: 2.6em; /* 2 lines */
  overflow: hidden;
}

.track-item-artist {
  color: var(--accent);
}

.track-item-title {
  color: var(--fg);
}

.track-item-year {
  font-size: clamp(10px, 2vw, 12px);
  color: var(--muted);
}

.track-item-actions {
  display: flex;
  gap: 10px;
  margin-left: 10px;
}

.track-item-btn {
  background: transparent;
  border: 1px solid var(--muted);
  color: var(--muted);
  font-family: var(--font);
  font-size: 10px;
  padding: 4px 8px;
  cursor: pointer;
  text-transform: uppercase;
}

.track-item-btn:hover {
  border-color: var(--fg);
  color: var(--fg);
}

/* Controls with download button */
.controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
}

#download-btn {
  display: none;
}

#download-btn.visible {
  display: inline-block;
}

/* Volume Slider */
.volume-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 2vw, 10px);
  margin-bottom: clamp(8px, 2vw, 12px);
}

.volume-label {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: clamp(60px, 15vw, 100px);
  height: 2px;
  background: var(--muted);
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  background: var(--fg);
  cursor: pointer;
}

.volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: var(--fg);
  border: none;
  cursor: pointer;
}

.volume-value {
  font-size: 10px;
  color: var(--muted);
  width: 24px;
  text-align: right;
}

/* Info Trigger - 3D Cube */
.info-trigger {
  margin-top: 15px;
  cursor: pointer;
  perspective: 100px;
}

.info-cube {
  width: 24px;
  height: 24px;
  position: relative;
  transform-style: preserve-3d;
  animation: cube-float 4s ease-in-out infinite;
}

.info-trigger:hover .info-cube {
  animation: cube-spin 0.6s ease-in-out;
}

.cube-face {
  position: absolute;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  border: 1px solid var(--muted);
  background: rgba(0, 0, 0, 0.8);
  color: var(--muted);
}

.cube-face.front  { transform: translateZ(12px); }
.cube-face.back   { transform: rotateY(180deg) translateZ(12px); }
.cube-face.top    { transform: rotateX(90deg) translateZ(12px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(12px); }
.cube-face.left   { transform: rotateY(-90deg) translateZ(12px); }
.cube-face.right  { transform: rotateY(90deg) translateZ(12px); }

@keyframes cube-float {
  0%, 100% { transform: rotateX(-15deg) rotateY(15deg); }
  50% { transform: rotateX(-15deg) rotateY(25deg); }
}

@keyframes cube-spin {
  0% { transform: rotateX(-15deg) rotateY(15deg); }
  100% { transform: rotateX(-15deg) rotateY(375deg); }
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
}

.modal-content {
  position: relative;
  background: var(--bg);
  border: 2px solid var(--muted);
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 30px;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: var(--fg);
}

.modal-body h2 {
  font-size: 24px;
  font-weight: normal;
  letter-spacing: 0.2em;
  margin-bottom: 20px;
  color: var(--fg);
}

.modal-body h3 {
  font-size: 11px;
  font-weight: normal;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 20px;
  margin-bottom: 8px;
}

.modal-body h3:first-of-type {
  margin-top: 0;
}

.modal-body p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--fg);
  margin-bottom: 15px;
}

.modal-body a {
  color: var(--accent);
  text-decoration: none;
}

.modal-body a:hover {
  text-decoration: underline;
}

.modal-mixes {
  margin: 20px 0;
  padding: 15px;
  border: 1px solid #222;
}

.modal-mixes > p {
  margin-bottom: 15px;
  font-size: 12px;
  color: var(--muted);
}

.stout-junts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.stout-junt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
}

.sj-vol {
  font-size: 11px;
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sj-vol:hover {
  color: var(--accent);
}

.sj-thumb {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  cursor: pointer;
  border: 1px solid #333;
  transition: border-color 0.2s, transform 0.2s;
}

.sj-thumb:hover {
  border-color: var(--accent);
  transform: scale(1.05);
}

.sj-collab {
  font-size: 9px;
  color: var(--muted);
}

.sj-collab a {
  color: var(--accent);
  text-decoration: none;
}

.sj-collab a:hover {
  text-decoration: underline;
}

/* Image modal carousel */
.image-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  gap: 15px;
}

.image-modal-content .modal-close {
  position: absolute;
  top: -40px;
  right: -10px;
  background: var(--bg);
  border: 1px solid var(--muted);
  color: var(--fg);
  font-size: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.image-modal-content .modal-close:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

#image-modal-img {
  max-width: 80vw;
  max-height: 80vh;
  object-fit: contain;
}

.carousel-arrow {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--muted);
  color: var(--fg);
  font-size: 32px;
  width: 40px;
  height: 60px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}

.carousel-arrow:hover {
  background: rgba(255, 255, 255, 0.1);
}

.carousel-arrow:disabled {
  opacity: 0.2;
  cursor: default;
}

.carousel-arrow.hidden {
  visibility: hidden;
}

.carousel-dots {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  cursor: pointer;
  transition: background 0.2s;
}

.carousel-dot.active {
  background: var(--fg);
}

.carousel-dot:hover {
  background: var(--fg);
}

.modal-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.modal-links a {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.modal-links a:hover {
  color: var(--fg);
}

.modal-links .icon-link {
  display: inline-flex;
  align-items: center;
}

.modal-links .icon-link svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
  transition: color 0.2s;
}

.modal-links .icon-link:hover svg {
  color: var(--fg);
}

/* Responsive */
@media (max-width: 600px) {
  /* Fix body/html for mobile */
  html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
    position: fixed;
  }

  /* Enter Screen */
  .enter-content {
    padding: 20px;
    width: 100%;
    max-width: calc(100vw - 40px);
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .enter-content h1 {
    font-size: clamp(48px, 18vw, 72px);
    letter-spacing: 0.02em;
    transform: none; /* Remove perspective on mobile */
    max-width: 100%;
    margin-bottom: 30px;
    filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 6px #d4af37);
  }

  .enter-content h1::after {
    font-size: clamp(48px, 18vw, 72px);
    letter-spacing: 0.02em;
    -webkit-text-stroke: 2px #b8860b;
  }

  .enter-content h1::before {
    font-size: clamp(48px, 18vw, 72px);
    letter-spacing: 0.02em;
    -webkit-text-stroke: 3px #000;
    transform: translate(2px, 2px);
  }

  /* Hide sparkles on mobile - they cause overflow */
  .sparkles {
    display: none;
  }

  .password-container {
    margin-bottom: 20px;
    width: 100%;
    max-width: 250px;
  }

  .password-input {
    width: 100%;
    max-width: 250px;
    font-size: 16px; /* Prevents iOS zoom on focus */
  }

  #enter-btn {
    font-size: 16px;
    padding: 12px 50px;
  }

  .konami-progress {
    margin-bottom: 20px;
  }

  /* Player Screen */
  #player-screen {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .player-container {
    max-height: none;
    height: auto;
    min-height: 100%;
    overflow: visible;
    padding-top: max(20px, env(safe-area-inset-top, 20px));
  }

  .track-info {
    flex-wrap: wrap;
  }

  .track-info .separator {
    display: none;
  }

  .controls {
    flex-wrap: wrap;
    gap: 10px;
  }

  /* Modal */
  .modal-content {
    padding: 20px;
    max-height: 85vh;
    width: 95%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .modal-body h2 {
    font-size: 20px;
    margin-bottom: 15px;
  }

  .modal-body p {
    font-size: 12px;
    margin-bottom: 12px;
  }

  .modal-mixes {
    padding: 10px;
    margin: 15px 0;
  }

  .stout-junts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .sj-thumb {
    max-width: 100%;
  }

  .modal-links {
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
  }

  /* Image modal */
  .image-modal-content {
    max-width: 95vw;
    max-height: 85vh;
  }

  #image-modal-img {
    max-width: 95vw;
    max-height: 80vh;
  }
}
