:root {
  --navy: #14243f;
  --navy-2: #1d3356;
  --navy-3: #0d1728;
  --cream: #fff8e7;
  --gold: #ffd700;
  --amber: #ffa500;
  --red: #c41e3a;
  --red-dark: #8b0000;
  --line: rgba(255, 215, 0, 0.18);
  --muted: rgba(255, 248, 231, 0.68);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: linear-gradient(180deg, var(--navy), var(--navy-3));
  color: var(--cream);
  min-height: 100vh;
}

body.is-playing {
  padding-bottom: 76px;
}

.page-loader {
  position: fixed;
  right: 22px;
  top: 96px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  background: rgba(13, 23, 40, 0.92);
  border: 1px solid var(--line);
  color: var(--gold);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.page-loader[hidden] {
  display: none;
}

.page-loader span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid rgba(255, 248, 231, 0.24);
  border-top-color: var(--gold);
  animation: spin 0.8s linear infinite;
}

.page-loader strong {
  font-size: 14px;
}

body.is-page-loading main {
  opacity: 0.62;
  transition: opacity 0.16s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  overflow-x: clip;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(90deg, rgba(20, 36, 63, 0.96), rgba(39, 61, 95, 0.96), rgba(20, 36, 63, 0.96));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--gold);
  font-size: 28px;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(196, 30, 58, 0.32);
}

.brand strong,
h1,
h2,
h3 {
  font-family: Fredoka, Inter, sans-serif;
  letter-spacing: 0;
}

.brand strong {
  display: block;
  color: var(--gold);
  font-size: 20px;
  line-height: 1.05;
}

.brand small {
  display: block;
  color: rgba(255, 248, 231, 0.62);
  font-size: 12px;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 999px;
  color: rgba(255, 248, 231, 0.82);
  font-weight: 700;
  font-size: 14px;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--red);
  color: white;
  box-shadow: 0 12px 28px rgba(196, 30, 58, 0.28);
}

.hero {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: center;
  padding: 60px 0 72px;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}

.hero-overlay {
  background: linear-gradient(180deg, rgba(20, 36, 63, 0.76), rgba(20, 36, 63, 0.95) 60%, var(--navy));
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 850px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(196, 30, 58, 0.22);
  border: 1px solid rgba(196, 30, 58, 0.45);
  color: var(--gold);
  font-weight: 800;
}

.live-pill span,
.player-status span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
}

.hero h1 {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: clamp(36px, 7vw, 64px);
  line-height: 1.02;
}

.hero > .hero-content > p {
  margin: 0 auto 28px;
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(17px, 2.5vw, 22px);
  line-height: 1.55;
}

.player-card,
.request-card,
.contact-card,
.side-card {
  background: linear-gradient(135deg, rgba(29, 51, 86, 0.94), rgba(20, 36, 63, 0.92));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.player-card {
  padding: clamp(22px, 4vw, 36px);
}

.player-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 22px;
  color: rgba(255, 248, 231, 0.82);
  text-transform: uppercase;
  font-size: 13px;
}

.player-status .playing {
  animation: pulse 1.1s infinite;
}

.cover-frame {
  width: clamp(176px, 36vw, 232px);
  aspect-ratio: 1;
  margin: 0 auto 22px;
  padding: 5px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--red), var(--gold));
}

.cover-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.player-card h2 {
  margin: 0 0 4px;
  font-size: clamp(24px, 4vw, 32px);
}

.player-card p {
  margin: 0 0 24px;
  color: var(--gold);
  font-size: 18px;
}

.player-card .metadata-time {
  margin: -12px 0 22px;
  color: rgba(255, 248, 231, 0.56);
  font-size: 14px;
}

.play-button {
  width: 88px;
  height: 88px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--gold);
  font-size: 36px;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(196, 30, 58, 0.4);
}

.volume-row {
  display: grid;
  grid-template-columns: 40px 1fr 48px;
  gap: 12px;
  align-items: center;
  max-width: 360px;
  margin: 22px auto 0;
}

.icon-button {
  border: 0;
  background: rgba(255, 248, 231, 0.08);
  color: var(--cream);
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
}

input[type='range'] {
  accent-color: var(--gold);
}

.characters {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 4vw, 36px);
  padding: 42px 0;
}

.characters img {
  width: clamp(104px, 20vw, 150px);
  aspect-ratio: 1;
  object-fit: cover;
  border: 4px solid rgba(255, 215, 0, 0.38);
  border-radius: 50%;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.25);
}

.section-block {
  padding: 34px 0;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-title h2 {
  margin: 0;
  color: var(--cream);
  font-size: clamp(25px, 3.5vw, 34px);
}

.section-title a {
  color: var(--gold);
  font-weight: 800;
}

.track-list {
  display: grid;
  gap: 10px;
}

.track-row {
  display: grid;
  grid-template-columns: 64px 56px 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 78px;
  padding: 11px 14px;
  background: rgba(29, 51, 86, 0.52);
  border: 1px solid rgba(255, 215, 0, 0.08);
  border-radius: 8px;
}

.track-row img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
}

.track-time {
  color: rgba(255, 215, 0, 0.82);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.track-row h2,
.track-row h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.track-row p {
  margin: 0;
  color: rgba(255, 248, 231, 0.55);
}

.preview-button {
  min-height: 42px;
  border: 1px solid rgba(255, 215, 0, 0.32);
  border-radius: 8px;
  padding: 0 16px;
  background: rgba(255, 215, 0, 0.12);
  color: var(--gold);
  font-weight: 900;
  cursor: pointer;
}

.preview-button:hover,
.preview-button.is-playing {
  background: linear-gradient(90deg, var(--gold), var(--amber));
  color: var(--navy);
}

.preview-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.now-badge {
  color: var(--gold);
  font-weight: 800;
}

.empty-state,
.alert,
.success-panel {
  padding: 30px;
  text-align: center;
  background: rgba(255, 248, 231, 0.07);
  border: 1px solid rgba(255, 215, 0, 0.14);
  border-radius: 8px;
  color: var(--muted);
}

.feature-grid,
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 34px 0;
}

.info-grid {
  grid-template-columns: repeat(2, 1fr);
}

.feature-grid article,
.info-grid article {
  padding: 24px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(29, 51, 86, 0.46);
}

.feature-grid span,
.info-grid span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 215, 0, 0.16);
  color: var(--gold);
  font-size: 24px;
  margin-bottom: 14px;
}

.feature-grid h2,
.info-grid h2 {
  margin: 0 0 8px;
}

.feature-grid p,
.info-grid p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.cta-band {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 24px;
  align-items: center;
  margin-top: 34px;
  margin-bottom: 72px;
  padding: clamp(24px, 4vw, 42px);
  border-radius: 8px;
  border: 1px solid rgba(196, 30, 58, 0.42);
  background: linear-gradient(135deg, rgba(196, 30, 58, 0.28), rgba(139, 0, 0, 0.16));
}

.cta-band img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
}

.cta-band span {
  color: var(--gold);
  font-weight: 800;
}

.cta-band h2 {
  margin: 4px 0 8px;
  font-size: clamp(28px, 4vw, 38px);
}

.cta-band p {
  margin: 0;
  color: var(--muted);
}

.primary-button,
.secondary-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 0 22px;
  font-weight: 900;
  cursor: pointer;
}

.primary-button {
  background: linear-gradient(90deg, var(--gold), var(--amber));
  color: var(--navy);
}

.secondary-button {
  background: linear-gradient(90deg, var(--red), var(--red-dark));
  color: white;
}

.full {
  width: 100%;
}

.page-heading {
  padding: 52px 0 22px;
}

.heading-grid {
  display: flex;
  align-items: center;
  gap: 16px;
}

.heading-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--gold);
  font-size: 30px;
}

.page-heading h1 {
  margin: 0 0 4px;
  color: var(--gold);
  font-size: clamp(32px, 5vw, 44px);
}

.page-heading p {
  margin: 0;
  color: var(--muted);
}

.request-shell {
  padding: 18px 0 70px;
}

.request-card {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 34px);
}

label {
  display: block;
  margin: 0 0 8px;
  color: var(--cream);
  font-weight: 800;
}

.field {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 8px;
  padding: 13px 14px;
  margin-bottom: 16px;
  background: rgba(13, 23, 40, 0.52);
  color: var(--cream);
  outline: none;
}

.field:focus {
  border-color: rgba(255, 215, 0, 0.72);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.14);
}

.field::placeholder {
  color: rgba(255, 248, 231, 0.38);
}

.search-box {
  position: relative;
}

.search-results {
  display: none;
  position: absolute;
  inset-inline: 0;
  top: calc(100% - 12px);
  z-index: 10;
  max-height: 320px;
  overflow: auto;
  background: #10213c;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.search-results.open {
  display: block;
}

.song-result {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  text-align: left;
  border: 0;
  border-bottom: 1px solid rgba(255, 248, 231, 0.08);
  background: transparent;
  color: var(--cream);
  padding: 12px 14px;
}

.song-result:hover {
  background: rgba(255, 215, 0, 0.1);
}

.song-select {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 0;
  padding: 0;
  text-align: left;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.song-result strong {
  color: var(--gold);
}

.song-result span,
.song-result small,
#request-help {
  color: var(--muted);
}

#request-help {
  margin: -4px 0 18px;
  font-size: 14px;
}

.result-empty {
  padding: 16px;
  color: var(--muted);
}

.song-result-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.request-preview-button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.request-card .secondary-button {
  width: 100%;
  margin-bottom: 12px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.56);
}

.hidden {
  display: none;
}

.modal-card {
  width: min(420px, 100%);
  padding: 30px;
  text-align: center;
  border-radius: 8px;
  background: var(--cream);
  color: var(--navy);
  box-shadow: var(--shadow);
}

.modal-card .primary-button {
  margin-top: 20px;
}

.date-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 0 26px;
}

.date-tabs a {
  flex: 0 0 auto;
  min-width: 128px;
  padding: 13px 18px;
  border-radius: 8px;
  background: rgba(29, 51, 86, 0.58);
  border: 1px solid var(--line);
}

.date-tabs a.active {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
}

.date-tabs strong,
.date-tabs span {
  display: block;
}

.date-tabs span {
  color: rgba(255, 248, 231, 0.58);
  font-size: 13px;
  margin-top: 3px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 26px;
  padding: 18px 0 80px;
}

.contact-card,
.side-card {
  padding: clamp(22px, 4vw, 32px);
}

.intro-box {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px;
  margin-bottom: 24px;
  border-radius: 8px;
  border: 1px solid rgba(255, 215, 0, 0.18);
  background: rgba(255, 215, 0, 0.08);
}

.intro-box img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 50%;
}

.intro-box h2,
.side-card h2 {
  margin: 0 0 8px;
  color: var(--gold);
}

.intro-box p,
.side-card p {
  color: var(--muted);
  line-height: 1.6;
}

.alert {
  text-align: left;
  background: rgba(196, 30, 58, 0.14);
  border-color: rgba(196, 30, 58, 0.4);
  margin-bottom: 18px;
}

.alert p {
  margin: 0 0 5px;
}

.success-panel span {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #20b86b;
  color: white;
  font-size: 42px;
}

.site-footer {
  position: relative;
  padding: 54px 0 28px;
  background: linear-gradient(180deg, transparent, rgba(13, 23, 40, 0.9));
  border-top: 1px solid rgba(255, 215, 0, 0.14);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
}

.footer-grid h2 {
  color: var(--gold);
  font-size: 18px;
  margin: 0 0 14px;
}

.footer-grid a,
.footer-grid p {
  display: block;
  color: rgba(255, 248, 231, 0.58);
  margin: 0 0 10px;
  line-height: 1.55;
}

.footer-brand {
  margin-bottom: 16px;
}

.made-with {
  color: rgba(255, 248, 231, 0.42) !important;
}

.footer-bottom {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 215, 0, 0.1);
  color: rgba(255, 248, 231, 0.42);
  font-size: 13px;
}

.bottom-nav {
  display: none;
}

.mobile-player {
  position: fixed;
  left: auto;
  right: 22px;
  bottom: 22px;
  z-index: 35;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 88px;
  gap: 16px;
  align-items: center;
  width: min(548px, calc(100% - 44px));
  min-height: 116px;
  padding: 18px;
  transform: none;
  border-radius: 22px;
  background: #2c426d;
  border: 2px solid rgba(255, 215, 0, 0.25);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
}

.mini-cover {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 16px;
  background: #1a2b4a;
}

.mini-copy {
  min-width: 0;
}

.mini-live {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 248, 231, 0.7);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  margin-bottom: 8px;
}

.mini-live span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #bd385c;
}

.mini-toggle {
  width: 68px;
  height: 68px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  justify-self: center;
  background: linear-gradient(135deg, #e11836, #a9001b);
  color: transparent;
  font-size: 0;
  line-height: 1;
  box-shadow: 0 20px 36px rgba(226, 24, 54, 0.38);
  cursor: pointer;
}

.mini-toggle::before {
  content: "";
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--gold);
}

.mobile-player strong,
.mobile-player span {
  display: block;
}

.mobile-player strong {
  overflow: hidden;
  color: #fff;
  font-size: 20px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-player [data-mini-subtitle] {
  overflow: hidden;
  color: var(--gold);
  font-size: 18px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.25);
  }
}

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

@media (max-width: 820px) {
  body {
    padding-bottom: 0;
  }

  body.is-playing {
    padding-bottom: 140px;
  }

  .page-loader {
    top: 12px;
    right: 12px;
  }

  .mobile-player {
    left: 0;
    right: 0;
    bottom: 0;
    grid-template-columns: 46px 1fr;
    width: auto;
    min-height: auto;
    gap: 12px;
    padding: 10px max(12px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    transform: none;
    border-radius: 8px 8px 0 0;
    background: rgba(20, 36, 63, 0.96);
    border: 1px solid var(--line);
    border-bottom: 0;
    box-shadow: var(--shadow);
  }

  .mobile-player[hidden] {
    display: none;
  }

  .mini-cover,
  .mini-live {
    display: none;
  }

  .mini-toggle {
    grid-column: 1;
    grid-row: 1;
    width: 46px;
    height: 46px;
    color: var(--gold);
    font-size: 24px;
  }

  .mini-toggle::before {
    display: none;
  }

  .mini-copy {
    grid-column: 2;
  }

  .mobile-player strong {
    font-size: 16px;
  }

  .mobile-player [data-mini-subtitle] {
    color: var(--muted);
    font-size: 13px;
  }

  .top-nav {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 36px 0 46px;
  }

  .feature-grid,
  .info-grid,
  .footer-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .cta-band {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cta-band img {
    margin: 0 auto;
  }

  .track-row {
    grid-template-columns: 52px 48px 1fr auto;
  }

  .track-row .now-badge {
    display: none;
  }

  .bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 68px;
    z-index: 30;
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
    background: rgba(20, 36, 63, 0.98);
    border-top: 1px solid var(--line);
  }

  body.is-playing .bottom-nav {
    display: grid;
  }

  .bottom-nav a {
    min-height: 58px;
    display: grid;
    place-items: center;
    gap: 2px;
    border-radius: 8px;
    color: rgba(255, 248, 231, 0.72);
    font-size: 22px;
  }

  .bottom-nav a span {
    display: block;
    font-size: 11px;
    font-weight: 800;
  }

  .bottom-nav a.active {
    background: var(--red);
    color: white;
  }
}

.request-notice {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  align-items: start;
  margin-top: 18px;
  margin-bottom: 80px;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 8px;
  border: 1px solid rgba(255, 215, 0, 0.24);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.14), rgba(196, 30, 58, 0.14));
}

.request-notice span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--gold);
  font-size: 30px;
}

.request-notice h2 {
  margin: 0 0 8px;
  color: var(--gold);
}

.request-notice p {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  .characters {
    gap: 10px;
  }

  .volume-row {
    grid-template-columns: 38px 1fr 42px;
  }

  .heading-grid {
    align-items: flex-start;
  }

  .request-notice {
    grid-template-columns: 1fr;
  }

  .track-row {
    grid-template-columns: 1fr 44px;
  }

  .track-time {
    grid-column: 1 / -1;
  }

  .track-row img {
    grid-row: 2;
    grid-column: 2;
  }

  .preview-button {
    grid-column: 1 / -1;
  }
}

.pwa-install[hidden] {
  display: none;
}

.pwa-install {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: grid;
  justify-items: center;
  align-items: start;
  padding: clamp(24px, 8dvh, 80px) 20px 20px;
  overflow-y: auto;
}

.pwa-install-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgba(9, 17, 34, 0.76);
  backdrop-filter: blur(5px);
}

.pwa-install-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: calc(100dvh - clamp(48px, 16dvh, 160px));
  overflow-y: auto;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 22px;
  padding: 30px;
  border: 1px solid rgba(255, 215, 0, 0.28);
  border-radius: 18px;
  background: linear-gradient(145deg, #243455, #17233c);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  color: white;
}

.pwa-install-dialog > img {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.pwa-install-eyebrow {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pwa-install-dialog h2 {
  margin: 5px 28px 8px 0;
  color: white;
}

.pwa-install-dialog p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.55;
}

.pwa-install-dialog .pwa-install-help {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 215, 0, 0.12);
  color: var(--gold);
  font-weight: 700;
}

.pwa-install-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 26px;
  cursor: pointer;
}

.pwa-install-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.pwa-install-actions button {
  min-height: 46px;
  padding: 0 20px;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
}

.pwa-install-later {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: white;
}

body.has-pwa-modal {
  overflow: hidden;
}

@media (max-width: 520px) {
  .pwa-install {
    align-items: start;
    padding: max(18px, env(safe-area-inset-top)) 12px 12px;
  }

  .pwa-install-dialog {
    grid-template-columns: 66px 1fr;
    gap: 16px;
    padding: 24px 20px 20px;
    border-radius: 18px;
    max-height: calc(100dvh - max(36px, env(safe-area-inset-top)));
  }

  .pwa-install-dialog > img {
    width: 66px;
    height: 66px;
    border-radius: 14px;
  }

  .pwa-install-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}
