:root {
  --red: #e72828;
  --red-dark: #8e1010;
  --ink: #0a0a0a;
  --paper: #f5f2e8;
  --muted: #6b6861;
  --line: #181818;
  --white: #fff;
  --shell: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img { max-width: 100%; display: block; }
svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.shell { width: var(--shell); margin-inline: auto; }

.paper-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: .08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.28'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  width: min(1260px, calc(100% - 28px));
  margin: 14px auto 0;
  min-height: 70px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 2px solid var(--ink);
  background: rgba(245,242,232,.94);
  backdrop-filter: blur(12px);
  box-shadow: 5px 5px 0 var(--ink);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); }
.brand span { display: grid; line-height: 1; }
.brand strong { font-size: 1.05rem; letter-spacing: -.03em; }
.brand small { font-size: .58rem; margin-top: 4px; font-weight: 800; letter-spacing: .08em; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { padding: 10px 13px; font-weight: 800; font-size: .78rem; text-transform: uppercase; border: 1px solid transparent; }
.site-nav a:hover { border-color: var(--ink); background: var(--red); color: white; }
.nav-toggle { display: none; border: 0; background: none; width: 44px; height: 44px; cursor: pointer; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); display: block; margin: 5px auto; transition: .2s; }

.hero {
  min-height: calc(100svh - 100px);
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(380px, 1.05fr);
  align-items: center;
  gap: clamp(30px, 5vw, 80px);
  padding: clamp(55px, 8vw, 110px) 0 80px;
}
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .72rem; font-weight: 900; letter-spacing: .18em; }
.eyebrow::before { content: ''; width: 26px; height: 4px; background: var(--red); }
.eyebrow.dark::before { background: var(--ink); }
.hero h1, .question-copy h2, .token-copy h2, .community-card h2, .section-heading h2 {
  margin: 18px 0 0;
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.045em;
  line-height: .87;
}
.hero h1 { font-size: clamp(4rem, 8.2vw, 8rem); }
.hero h1 span { color: var(--red); -webkit-text-stroke: 2px var(--ink); text-shadow: 6px 6px 0 var(--ink); }
.hero-text { max-width: 610px; margin: 28px 0 0; font-size: clamp(1rem, 1.45vw, 1.2rem); line-height: 1.65; color: #35332e; }
.hero-actions, .community-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { min-height: 52px; padding: 0 21px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--ink); font-weight: 900; text-transform: uppercase; font-size: .82rem; box-shadow: 4px 4px 0 var(--ink); transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translate(3px,3px); box-shadow: 1px 1px 0 var(--ink); }
.btn.primary { background: var(--red); color: var(--white); }
.btn.secondary { background: var(--paper); }
.btn.secondary.light { background: white; color: var(--ink); }
.contract-box { margin-top: 26px; max-width: 570px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 14px; border: 2px solid var(--ink); background: white; }
.contract-box > div { display: grid; min-width: 0; }
.contract-box span { font-size: .63rem; text-transform: uppercase; font-weight: 800; color: var(--muted); }
.contract-box strong { margin-top: 4px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9rem; }
.copy-btn { flex: 0 0 auto; border: 2px solid var(--ink); background: var(--ink); color: white; min-height: 40px; padding: 0 12px; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font-size: .72rem; font-weight: 900; text-transform: uppercase; }

.hero-art { position: relative; min-height: 580px; display: grid; place-items: center; }
.portrait-card { width: min(92%, 560px); aspect-ratio: 1; border: 4px solid var(--ink); border-radius: 50%; background: white; box-shadow: 18px 18px 0 var(--red); position: relative; overflow: hidden; transform: rotate(2deg); }
.portrait-card img { width: 100%; height: 100%; object-fit: cover; }
.arrow-rain { position: absolute; inset: 3% 0; overflow: hidden; opacity: .25; font-family: Impact, sans-serif; font-size: clamp(3rem, 6vw, 6rem); }
.arrow-rain span { position: absolute; animation: fall 4.5s linear infinite; }
.arrow-rain span:nth-child(1){left:3%;animation-delay:-1s}.arrow-rain span:nth-child(2){left:22%;animation-delay:-3.3s}.arrow-rain span:nth-child(3){left:44%;animation-delay:-.4s}.arrow-rain span:nth-child(4){left:63%;animation-delay:-2.1s}.arrow-rain span:nth-child(5){left:82%;animation-delay:-4s}.arrow-rain span:nth-child(6){left:94%;animation-delay:-1.8s}
.speech { position: absolute; z-index: 3; padding: 11px 15px; background: white; border: 3px solid var(--ink); font-family: Impact, sans-serif; letter-spacing: .03em; box-shadow: 5px 5px 0 var(--ink); }
.speech-a { left: 0; top: 18%; transform: rotate(-6deg); }
.speech-b { right: -1%; bottom: 17%; color: white; background: var(--red); transform: rotate(5deg); }

.reward-strip { background: var(--ink); color: white; border-block: 5px solid var(--red); padding: 30px 0; }
.reward-grid { display: grid; grid-template-columns: 1.45fr repeat(3,1fr); gap: 14px; align-items: stretch; }
.reward-title, .reward-card { border: 1px solid #434343; padding: 24px; min-height: 150px; display: flex; flex-direction: column; justify-content: center; }
.reward-title .label { color: #999; font-size: .68rem; letter-spacing: .15em; font-weight: 900; }
.reward-title strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--red); font-size: clamp(2.8rem, 5vw, 5.2rem); line-height: .95; margin-top: 9px; }
.reward-title small, .reward-card small { color: #aaa; margin-top: 7px; }
.reward-card { flex-direction: row; align-items: center; gap: 15px; }
.reward-card .number { font-family: Impact, sans-serif; font-size: 4.4rem; color: var(--red); line-height: 1; }
.reward-card div { display: grid; }
.reward-card strong { font-size: .78rem; letter-spacing: .1em; }
.reward-card small { font-size: .73rem; line-height: 1.4; }

.how { padding: 110px 0; }
.section-heading { max-width: 780px; }
.section-heading > span { font-weight: 900; font-size: .7rem; letter-spacing: .18em; color: var(--red); }
.section-heading h2 { font-size: clamp(3rem, 6vw, 6rem); }
.section-heading p { max-width: 680px; line-height: 1.65; color: var(--muted); font-size: 1.05rem; }
.steps { margin-top: 46px; display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.step { position: relative; min-height: 310px; padding: 30px; border: 3px solid var(--ink); background: white; box-shadow: 8px 8px 0 var(--ink); }
.step-index { position: absolute; top: 14px; right: 16px; font-family: Impact, sans-serif; font-size: 2rem; color: #d4d0c5; }
.step > svg { width: 50px; height: 50px; color: var(--red); stroke-width: 1.4; }
.step h3 { margin: 45px 0 10px; font-family: Impact, sans-serif; text-transform: uppercase; font-size: 1.8rem; letter-spacing: .01em; }
.step p { margin: 0; color: var(--muted); line-height: 1.65; }

.question-section { background: var(--red); border-block: 5px solid var(--ink); }
.question-grid { min-height: 720px; display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; padding-block: 80px; }
.question-copy h2 { font-size: clamp(4rem, 8vw, 8rem); color: white; text-shadow: 6px 6px 0 var(--ink); }
.question-copy p { max-width: 580px; font-size: 1.15rem; line-height: 1.65; color: #230606; }
.text-link { display: inline-flex; gap: 8px; align-items: center; margin-top: 15px; font-weight: 900; text-transform: uppercase; border-bottom: 2px solid; padding-bottom: 4px; }
.wojak-panel { position: relative; background: white; border: 4px solid var(--ink); box-shadow: 14px 14px 0 var(--ink); transform: rotate(2deg); }
.wojak-panel img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.caption { background: var(--ink); color: white; padding: 16px 18px; text-align: center; font-family: ui-monospace, monospace; font-weight: 900; }

.token { padding: 110px 0; }
.token-card { border: 4px solid var(--ink); background: white; display: grid; grid-template-columns: 1.05fr .95fr; box-shadow: 12px 12px 0 var(--red); }
.token-copy { padding: clamp(30px, 5vw, 65px); }
.token-copy h2 { color: var(--red); font-size: clamp(4.5rem, 9vw, 9rem); -webkit-text-stroke: 2px var(--ink); text-shadow: 6px 6px 0 var(--ink); }
.token-copy p { max-width: 600px; color: var(--muted); line-height: 1.65; }
.token-meta { margin-top: 30px; display: grid; grid-template-columns: repeat(2,1fr); border-top: 2px solid var(--ink); border-left: 2px solid var(--ink); }
.token-meta div { padding: 15px; display: grid; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.token-meta span { font-size: .62rem; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.token-meta strong { margin-top: 5px; }
.full-ca { background: var(--ink); color: white; padding: clamp(30px, 5vw, 65px); display: flex; flex-direction: column; justify-content: center; }
.full-ca span { color: var(--red); font-size: .7rem; font-weight: 900; letter-spacing: .16em; }
.full-ca code { display: block; margin: 20px 0 25px; font-size: clamp(.9rem, 1.4vw, 1.15rem); line-height: 1.7; overflow-wrap: anywhere; color: #ddd; }
.copy-full { min-height: 50px; border: 2px solid white; background: var(--red); color: white; font-weight: 900; cursor: pointer; }

.community { padding: 0 0 110px; }
.community-card { background: var(--ink); color: white; padding: clamp(35px, 6vw, 80px); display: flex; justify-content: space-between; align-items: end; gap: 30px; border: 5px solid var(--red); }
.community-card h2 { font-size: clamp(3rem, 6vw, 6.2rem); }
.community-card p { max-width: 620px; line-height: 1.6; color: #aaa; }
.community-actions { justify-content: flex-end; min-width: 250px; }

.site-footer { border-top: 2px solid var(--ink); padding: 30px 0 42px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.site-footer > div { max-width: 620px; }
.site-footer strong { font-size: 1.2rem; }
.site-footer p { color: var(--muted); line-height: 1.5; font-size: .78rem; }
.lw-credit { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; text-transform: uppercase; font-size: .78rem; white-space: nowrap; }
.lw-credit svg { width: 24px; height: 24px; fill: var(--red); stroke: none; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 70; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ink); color: white; border: 2px solid var(--red); padding: 11px 18px; font-weight: 900; transition: .2s; }
.toast.show { opacity: 1; transform: translate(-50%,0); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .08s; }.delay-2 { transition-delay: .16s; }.delay-3 { transition-delay: .24s; }
@keyframes fall { from { transform: translateY(-130px); } to { transform: translateY(680px); } }

@media (max-width: 980px) {
  :root { --shell: min(100% - 30px, 760px); }
  .nav-toggle { display: block; }
  .site-nav { position: fixed; inset: 86px 14px auto; padding: 14px; border: 2px solid var(--ink); background: var(--paper); box-shadow: 5px 5px 0 var(--ink); display: grid; transform: translateY(-15px); opacity: 0; pointer-events: none; transition: .2s; }
  .site-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .site-nav a { padding: 15px; border-bottom: 1px solid #ccc; }
  .hero { grid-template-columns: 1fr; padding-top: 70px; }
  .hero-copy { max-width: 760px; }
  .hero-art { min-height: 520px; }
  .portrait-card { width: min(74vw, 520px); }
  .reward-grid { grid-template-columns: repeat(3,1fr); }
  .reward-title { grid-column: 1 / -1; min-height: 170px; }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 240px; }
  .question-grid { grid-template-columns: 1fr; }
  .wojak-panel { max-width: 650px; }
  .token-card { grid-template-columns: 1fr; }
  .community-card { display: block; }
  .community-actions { justify-content: flex-start; }
}

@media (max-width: 620px) {
  :root { --shell: calc(100% - 24px); }
  .site-header { width: calc(100% - 20px); margin-top: 10px; min-height: 64px; }
  .brand small { display: none; }
  .hero { min-height: auto; gap: 35px; padding: 58px 0 54px; }
  .hero h1 { font-size: clamp(3.55rem, 19vw, 5rem); }
  .hero h1 span { -webkit-text-stroke: 1.5px var(--ink); text-shadow: 4px 4px 0 var(--ink); }
  .hero-text { margin-top: 23px; font-size: 1rem; }
  .hero-actions .btn { flex: 1 1 150px; }
  .contract-box { align-items: stretch; }
  .contract-box strong { font-size: .78rem; }
  .copy-btn { padding-inline: 10px; }
  .hero-art { min-height: 390px; }
  .portrait-card { width: min(82vw, 390px); box-shadow: 10px 10px 0 var(--red); }
  .speech { font-size: .75rem; padding: 8px 10px; }
  .speech-a { top: 9%; }
  .speech-b { bottom: 9%; }
  .reward-grid { grid-template-columns: 1fr; }
  .reward-title, .reward-card { min-height: 125px; }
  .reward-card { padding: 18px; }
  .reward-card .number { font-size: 3.5rem; }
  .how, .token { padding: 78px 0; }
  .section-heading h2 { font-size: 3.3rem; }
  .step { padding: 24px; min-height: 250px; box-shadow: 6px 6px 0 var(--ink); }
  .question-grid { min-height: auto; padding-block: 70px; }
  .question-copy h2 { font-size: 4rem; text-shadow: 4px 4px 0 var(--ink); }
  .question-copy p { font-size: 1rem; }
  .wojak-panel { box-shadow: 8px 8px 0 var(--ink); }
  .token-card { box-shadow: 7px 7px 0 var(--red); }
  .token-copy, .full-ca { padding: 26px; }
  .token-copy h2 { font-size: 4.8rem; -webkit-text-stroke: 1.5px var(--ink); text-shadow: 4px 4px 0 var(--ink); }
  .token-meta { grid-template-columns: 1fr 1fr; }
  .community { padding-bottom: 75px; }
  .community-card { padding: 30px 24px; }
  .community-card h2 { font-size: 3.3rem; }
  .community-actions .btn { width: 100%; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Live tracker */
.tracker { padding: 110px 0; }
.tracker-heading { max-width: 820px; }
.tracker-window {
  margin-top: 42px;
  border: 4px solid var(--ink);
  background: var(--ink);
  box-shadow: 12px 12px 0 var(--red);
  overflow: hidden;
}
.tracker-bar {
  min-height: 54px;
  padding: 0 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  color: white;
  border-bottom: 2px solid white;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .78rem;
  letter-spacing: .04em;
}
.tracker-dots { display: flex; gap: 7px; }
.tracker-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--red); border: 1px solid white; }
.tracker-dots i:nth-child(2) { background: #f1b51f; }
.tracker-dots i:nth-child(3) { background: #29b765; }
.tracker-live { display: inline-flex; align-items: center; gap: 7px; color: #8dffad; font-weight: 900; }
.tracker-live i { width: 8px; height: 8px; border-radius: 50%; background: #35e56f; box-shadow: 0 0 0 0 rgba(53,229,111,.7); animation: livePulse 1.7s infinite; }
.tracker-stage { position: relative; min-height: 690px; background: #111; }
.forge-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #0d0f15; }
.tracker-loading { position: absolute; inset: 0; z-index: 0; display: grid; place-content: center; justify-items: center; gap: 12px; color: white; text-align: center; padding: 30px; }
.tracker-loading small { color: #9c9c9c; max-width: 420px; line-height: 1.5; }
.tracker-loader { width: 46px; height: 46px; border: 5px solid #444; border-top-color: var(--red); border-radius: 50%; animation: trackerSpin .8s linear infinite; }
.tracker-footer { padding: 18px; display: flex; align-items: center; justify-content: space-between; gap: 22px; color: white; border-top: 2px solid white; }
.tracker-footer p { margin: 0; max-width: 700px; color: #bdbdbd; font-size: .82rem; line-height: 1.5; }
.tracker-open { flex: 0 0 auto; min-height: 46px; }

/* Commandments */
.commandments { padding: 110px 0; }
.commandment-list { margin-top: 45px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 3px solid var(--ink); border-left: 3px solid var(--ink); }
.commandment { min-height: 190px; display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding: 28px; background: white; border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transition: transform .18s ease, background .18s ease, color .18s ease; }
.commandment:hover { background: var(--red); color: white; transform: translate(-4px,-4px); box-shadow: 7px 7px 0 var(--ink); }
.commandment b { font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif; font-size: 3.3rem; line-height: 1; color: var(--red); -webkit-text-stroke: 1px var(--ink); }
.commandment:hover b { color: white; }
.commandment h3 { margin: 0; font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif; font-size: 1.55rem; line-height: 1.05; text-transform: uppercase; letter-spacing: .015em; }
.commandment p { margin: 12px 0 0; color: var(--muted); line-height: 1.55; font-size: .92rem; }
.commandment:hover p { color: #230606; }

@keyframes trackerSpin { to { transform: rotate(360deg); } }
@keyframes livePulse { 70% { box-shadow: 0 0 0 8px rgba(53,229,111,0); } 100% { box-shadow: 0 0 0 0 rgba(53,229,111,0); } }

@media (max-width: 980px) {
  .tracker-stage { min-height: 620px; }
  .commandment-list { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .tracker, .commandments { padding: 78px 0; }
  .tracker-window { margin-top: 28px; border-width: 3px; box-shadow: 7px 7px 0 var(--red); }
  .tracker-bar { min-height: 48px; padding-inline: 12px; grid-template-columns: auto 1fr auto; gap: 9px; font-size: .64rem; }
  .tracker-bar strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tracker-dots i { width: 9px; height: 9px; }
  .tracker-stage { min-height: 540px; }
  .tracker-footer { align-items: stretch; flex-direction: column; padding: 14px; }
  .tracker-open { width: 100%; }
  .commandment { min-height: 0; grid-template-columns: 58px 1fr; gap: 14px; padding: 20px 16px; }
  .commandment b { font-size: 2.5rem; }
  .commandment h3 { font-size: 1.28rem; }
  .commandment p { font-size: .86rem; }
}


/* Local MP3 soundtrack gate and controls */
body.music-gate-open { overflow: hidden; }
.music-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    linear-gradient(rgba(0,0,0,.84), rgba(0,0,0,.94)),
    repeating-linear-gradient(135deg, transparent 0 34px, rgba(231,40,40,.18) 34px 36px);
  transition: opacity .28s ease, visibility .28s ease;
}
.music-gate.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.music-gate-card {
  width: min(100%, 560px);
  padding: clamp(26px, 5vw, 46px);
  color: white;
  text-align: center;
  border: 4px solid white;
  background: var(--ink);
  box-shadow: 12px 12px 0 var(--red);
  position: relative;
}
.music-gate-card::before,
.music-gate-card::after {
  content: '↓';
  position: absolute;
  top: 20px;
  color: var(--red);
  font-family: Impact, sans-serif;
  font-size: 2.2rem;
}
.music-gate-card::before { left: 22px; }
.music-gate-card::after { right: 22px; }
.music-gate-logo {
  width: 112px;
  aspect-ratio: 1;
  margin: 0 auto 20px;
  overflow: hidden;
  border: 3px solid white;
  border-radius: 50%;
  background: white;
  box-shadow: 6px 6px 0 var(--red);
}
.music-gate-logo img { width: 100%; height: 100%; object-fit: cover; }
.music-kicker { margin: 0; color: var(--red); font-weight: 900; font-size: .68rem; letter-spacing: .18em; }
.music-gate h2 {
  margin: 12px 0 0;
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  font-size: clamp(3rem, 9vw, 5.8rem);
  line-height: .88;
  letter-spacing: -.045em;
  text-transform: uppercase;
}
.music-gate-card > p:not(.music-kicker) { max-width: 430px; margin: 20px auto 0; color: #c7c7c7; line-height: 1.55; }
.music-gate-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.music-enter {
  min-height: 54px;
  border: 2px solid white;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 4px 4px 0 white;
  transition: transform .15s ease, box-shadow .15s ease;
}
.music-enter:hover { transform: translate(3px,3px); box-shadow: 1px 1px 0 white; }
.music-enter.primary { color: white; background: var(--red); }
.music-enter.secondary { color: var(--ink); background: white; }
.music-gate-card small { display: block; margin-top: 22px; color: #888; line-height: 1.45; }

.music-dock {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 120;
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px 46px;
  align-items: center;
  gap: 7px;
  padding: 7px;
  border: 2px solid var(--ink);
  background: rgba(245,242,232,.96);
  box-shadow: 5px 5px 0 var(--red);
  backdrop-filter: blur(10px);
}
.music-dock[hidden] { display: none; }
.music-now-playing { min-width: 0; padding: 0 8px; display: grid; }
.music-now-playing span { color: var(--red); font-size: .55rem; font-weight: 900; letter-spacing: .13em; }
.music-now-playing strong { max-width: 145px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .72rem; }
.music-action {
  width: 46px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  color: white;
  background: var(--ink);
  cursor: pointer;
}
.music-action:hover { background: var(--red); }
.music-action svg { width: 21px; height: 21px; }
.music-action .icon-pause,
.music-action .icon-muted { display: none; }
.music-dock.is-playing #musicPlay .icon-play { display: none; }
.music-dock.is-playing #musicPlay .icon-pause { display: block; }
.music-dock.is-muted #musicMute .icon-volume { display: none; }
.music-dock.is-muted #musicMute .icon-muted { display: block; }

@media (max-width: 620px) {
  .music-gate { padding: 14px; }
  .music-gate-card { padding: 28px 20px 25px; border-width: 3px; box-shadow: 7px 7px 0 var(--red); }
  .music-gate-card::before, .music-gate-card::after { top: 13px; font-size: 1.65rem; }
  .music-gate-card::before { left: 14px; }
  .music-gate-card::after { right: 14px; }
  .music-gate-logo { width: 88px; margin-bottom: 17px; }
  .music-gate-actions { grid-template-columns: 1fr; }
  .music-dock { left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); grid-template-columns: minmax(0,1fr) 44px 44px; }
  .music-action { width: 44px; height: 42px; }
  .music-now-playing strong { max-width: none; }
}

.music-dock.has-error { opacity: .72; }
.music-dock.has-error .music-action { pointer-events: none; }
