:root {
        --purple: #8b3ffb;
        --pink: #ff2e93;
        --teal: #17d3c4;
        --bg: #091514;
        --blue: #1f4fd8;
        --ink: #f3fbfa;
        --mute: #9fb8b5;
        --card: #102321;
        --line: #1d3c39;
        --disp: "Monoton", "Impact", sans-serif;
        --body: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
        box-sizing: border-box;
        padding-top: env(safe-area-inset-top, 0px);
        padding-bottom: env(safe-area-inset-bottom, 0px);
        color-scheme: dark;
      }

      html {
        scroll-padding-top: env(safe-area-inset-top, 0px);
      }

      * {
        box-sizing: border-box;
      }

      body {
        margin: 0;
        background: var(--bg);
        color: var(--ink);
        font-family: var(--body);
        line-height: 1.5;
        min-height: 100vh;
        overflow-x: hidden;
        background-image:
          radial-gradient(60vw 40vw at 85% -5%, #8b3ffb33, transparent),
          radial-gradient(50vw 40vw at 0% 40%, #17d3c422, transparent),
          radial-gradient(40vw 30vw at 100% 90%, #ff2e9322, transparent);
      }

      button,
      input {
        font: inherit;
        color: inherit;
      }

      button {
        cursor: pointer;
      }

      :focus-visible {
        outline: 3px solid var(--teal);
        outline-offset: 3px;
      }

      .wrap {
        max-width: 1080px;
        margin: 0 auto;
        padding: 20px;
      }

      .view {
        display: none;
      }

      .view.on {
        display: block;
        animation: spin-in 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
      }

      @keyframes spin-in {
        from {
          opacity: 0;
          transform: perspective(900px) rotateY(-14deg) scale(0.97);
        }

        to {
          opacity: 1;
          transform: none;
        }
      }

      h1,
      h2,
      h3 {
        margin: 0;
        line-height: 1.05;
      }

      .neon {
        font-family: var(--disp);
        font-weight: 400;
        letter-spacing: 0.02em;
        color: #fff;
        text-shadow:
          0 0 6px var(--pink),
          0 0 22px #ff2e9399;
      }

      .neon.t {
        text-shadow:
          0 0 6px var(--teal),
          0 0 22px #17d3c499;
      }

      nav.top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        padding: 6px 0 14px;
        flex-wrap: wrap;
      }

      .logo {
        font-family: var(--disp);
        font-size: 20px;
        color: var(--teal);
        text-shadow: 0 0 12px #17d3c477;
        background: none;
        border: 0;
        padding: 0;
      }

      .pill {
        border: 1.5px solid var(--line);
        background: #0e1f1d;
        border-radius: 99px;
        padding: 8px 16px;
        font-weight: 600;
        font-size: 14px;
        transition: 0.2s;
      }

      .pill:hover {
        border-color: var(--teal);
        color: var(--teal);
      }

      .btn {
        border: 0;
        border-radius: 14px;
        padding: 16px 30px;
        font-weight: 800;
        font-size: 17px;
        letter-spacing: 0.04em;
        color: #fff;
        background: linear-gradient(100deg, var(--pink), var(--purple));
        box-shadow:
          0 8px 30px #ff2e9344,
          inset 0 -3px 0 #0003;
        transition: transform 0.15s;
      }

      .btn:hover {
        transform: translateY(-2px) rotate(-1deg);
      }

      .btn.ghost {
        background: transparent;
        border: 2px solid var(--teal);
        color: var(--teal);
        box-shadow: none;
      }

      .btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
        transform: none;
      }

      /* hero */
      .hero {
        display: grid;
        grid-template-columns: 1.2fr 0.8fr;
        gap: 24px;
        align-items: center;
        padding: 20px 0 40px;
        position: relative;
      }

      .hero h1 {
        font-size: clamp(38px, 7.2vw, 84px);
      }

      .hero p {
        max-width: 46ch;
        color: var(--mute);
        font-size: 18px;
      }

      .hero p.lead {
        color: var(--ink);
        font-size: 22px;
        font-weight: 600;
        margin: 18px 0 8px;
      }

      .hero .cta {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
        margin-top: 22px;
      }

      .stage {
        position: relative;
        height: 340px;
        display: grid;
        place-items: center;
      }

      .ball {
        width: 190px;
        height: 190px;
        border-radius: 50%;
        position: relative;
        overflow: hidden;
        box-shadow:
          0 0 60px #8b3ffb88,
          0 0 120px #ff2e9344;
        background: radial-gradient(
          circle at 35% 30%,
          #fff 0,
          #cfd8ff 10%,
          #7a6bd8 35%,
          #2a1a66 80%
        );
      }

      .ball::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 50%;
        background:
          repeating-linear-gradient(0deg, #0006 0 2px, transparent 2px 14px),
          repeating-linear-gradient(90deg, #0006 0 2px, transparent 2px 14px);
        animation: ballspin 6s linear infinite;
        background-size:
          100% 100%,
          28px 100%;
      }

      @keyframes ballspin {
        to {
          background-position:
            0 0,
            56px 0;
        }
      }

      .ball::after {
        content: "";
        position: absolute;
        inset: 0;
        background: conic-gradient(
          from 0deg,
          transparent,
          #17d3c455,
          transparent 30%,
          #ff2e9355,
          transparent 60%,
          #8b3ffb66,
          transparent
        );
        animation: rot 5s linear infinite;
        mix-blend-mode: screen;
        border-radius: 50%;
      }

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

      .cord {
        position: absolute;
        top: 0;
        left: 50%;
        width: 2px;
        height: 70px;
        background: #8aa;
      }

      .stage .ballw {
        position: absolute;
        top: 60px;
        animation: sway 6s ease-in-out infinite;
        transform-origin: top;
      }

      @keyframes sway {
        50% {
          transform: rotate(2deg);
        }

        0%,
        100% {
          transform: rotate(-2deg);
        }
      }

      .wave {
        display: flex;
        align-items: center;
        gap: 4px;
        height: 70px;
      }

      .wave i {
        display: block;
        flex: 1;
        min-width: 3px;
        border-radius: 3px;
        background: linear-gradient(var(--teal), var(--pink));
        animation: bar 1.1s ease-in-out infinite;
      }

      @keyframes bar {
        0%,
        100% {
          height: 12%;
        }

        50% {
          height: 100%;
        }
      }

      .notes span {
        position: absolute;
        font-size: 28px;
        color: var(--teal);
        animation: float 7s ease-in infinite;
        opacity: 0;
      }

      @keyframes float {
        0% {
          transform: translateY(30px) rotate(0);
          opacity: 0;
        }

        15% {
          opacity: 0.8;
        }

        100% {
          transform: translateY(-300px) rotate(40deg);
          opacity: 0;
        }
      }

      .count {
        display: flex;
        gap: 14px;
        flex-wrap: wrap;
        margin: 26px 0 12px;
      }

      .count div {
        border: 1.5px dashed var(--line);
        border-radius: 14px;
        padding: 10px 18px;
      }

      .count b {
        font-family: var(--disp);
        font-size: 32px;
        color: var(--teal);
        display: block;
        font-weight: 400;
      }

      .count span {
        color: var(--mute);
        font-size: 14px;
      }

      .sect-t {
        font-size: clamp(26px, 4vw, 40px);
        margin: 34px 0 16px;
      }

      /* albums */
      .albums {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
        gap: 18px;
      }

      .album {
        all: unset;
        box-sizing: border-box;
        cursor: pointer;
        display: block;
        border-radius: 18px;
        padding: 18px;
        position: relative;
        overflow: hidden;
        min-height: 300px;
        color: #fff;
        background: linear-gradient(160deg, var(--c1), var(--c2));
        transition:
          transform 0.3s,
          box-shadow 0.3s;
      }

      .album:hover,
      .album:focus-visible {
        transform: rotate(-1.5deg) translateY(-6px);
        box-shadow: 0 18px 40px var(--glow);
      }

      .album::before {
        content: "";
        position: absolute;
        right: -50px;
        bottom: -50px;
        width: 190px;
        height: 190px;
        border-radius: 50%;
        background:
          repeating-radial-gradient(#0000 0 5px, #0004 5px 6px), #0006;
        box-shadow: inset 0 0 0 40px #0003;
        animation: rot 9s linear infinite;
      }

      .album::after {
        content: "";
        position: absolute;
        right: 21px;
        bottom: 21px;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: #fffd;
        box-shadow: 0 0 0 6px #0004;
      }

      .album .n {
        font-family: var(--disp);
        font-size: 44px;
        opacity: 0.9;
      }

      .album h3 {
        font-size: 24px;
        margin: 6px 0 8px;
        font-weight: 800;
        text-shadow: 0 2px 10px #0006;
      }

      .album p {
        margin: 0;
        font-size: 14px;
        max-width: 20ch;
        text-shadow: 0 1px 6px #0007;
      }

      .album .st {
        position: absolute;
        left: 18px;
        bottom: 16px;
        font-weight: 700;
        font-size: 13px;
        background: #0007;
        border-radius: 99px;
        padding: 4px 12px;
      }

      /* record */
      .rec-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 22px;
      }

      .panel {
        background: var(--card);
        border: 1.5px solid var(--line);
        border-radius: 20px;
        padding: 22px;
      }

      .rhead h2 {
        font-size: clamp(28px, 5vw, 52px);
        margin: 6px 0 10px;
      }

      .rhead p {
        color: var(--mute);
        margin: 0 0 16px;
        max-width: 55ch;
      }

      .qs {
        display: grid;
        gap: 10px;
      }

      .q {
        all: unset;
        box-sizing: border-box;
        cursor: pointer;
        padding: 14px 16px;
        border: 1.5px solid var(--line);
        border-radius: 14px;
        background: #0b1b19;
        display: block;
        transition: 0.2s;
        font-weight: 600;
      }

      .q:hover {
        border-color: var(--teal);
      }

      .q[aria-pressed="true"] {
        border-color: var(--pink);
        background: #2a0f20;
        box-shadow: 0 0 0 3px #ff2e9333;
      }

      .q small {
        display: block;
        color: var(--mute);
        font-weight: 400;
      }

      .q:focus-visible {
        outline: 3px solid var(--teal);
      }

      label.f {
        display: block;
        font-weight: 600;
        margin: 16px 0 6px;
      }

      input[type="text"] {
        width: 100%;
        background: #0b1b19;
        border: 1.5px solid var(--line);
        border-radius: 12px;
        padding: 12px 14px;
      }

      .tog {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-top: 14px;
        font-weight: 600;
      }

      .tog button {
        width: 52px;
        height: 30px;
        border-radius: 99px;
        border: 0;
        background: #2b4340;
        position: relative;
        transition: 0.2s;
      }

      .tog button::after {
        content: "";
        position: absolute;
        top: 4px;
        left: 4px;
        width: 22px;
        height: 22px;
        border-radius: 50%;
        background: #fff;
        transition: 0.2s;
      }

      .tog button[aria-checked="true"] {
        background: var(--pink);
      }

      .tog button[aria-checked="true"]::after {
        left: 26px;
      }

      .deck {
        display: grid;
        place-items: center;
        gap: 12px;
        text-align: center;
      }

      .cass {
        width: 100%;
        max-width: 360px;
      }

      .reel {
        transform-box: fill-box;
        transform-origin: center;
      }

      .recording .reel {
        animation: rot 1.2s linear infinite;
      }

      .recording .cass-body {
        stroke: var(--pink);
      }

      .timer {
        font-family: var(--disp);
        font-size: 44px;
        color: var(--ink);
        letter-spacing: 0.06em;
      }

      .recording .timer {
        color: var(--pink);
        text-shadow: 0 0 14px #ff2e93aa;
      }

      canvas {
        width: 100%;
        max-width: 420px;
        height: 80px;
        background: #071110;
        border-radius: 12px;
        border: 1.5px solid var(--line);
      }

      .vu {
        width: 150px;
      }

      .mic {
        width: 96px;
        height: 96px;
        border-radius: 50%;
        border: 0;
        background: radial-gradient(
          circle at 35% 30%,
          #ff7ab9,
          var(--pink) 55%,
          #a0125f
        );
        box-shadow:
          0 0 0 8px #ff2e9322,
          0 10px 30px #ff2e9355;
        display: grid;
        place-items: center;
        transition: 0.2s;
      }

      .mic:hover {
        transform: scale(1.05);
      }

      .recording .mic {
        animation: pulse 1.2s infinite;
      }

      @keyframes pulse {
        50% {
          box-shadow:
            0 0 0 20px #ff2e9300,
            0 10px 40px #ff2e93aa;
        }
      }

      .row {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
      }

      .badge {
        font-size: 13px;
        color: var(--teal);
        border: 1px solid var(--teal);
        border-radius: 99px;
        padding: 3px 12px;
      }

      .badge.sim {
        color: #ffd166;
        border-color: #ffd166;
      }

      .hint {
        color: var(--mute);
        font-size: 14px;
        margin: 0;
      }

      .done {
        text-align: center;
        padding: 50px 10px;
      }

      .done h2 {
        font-size: clamp(30px, 6vw, 64px);
        margin: 18px 0 12px;
      }

      /* progress/admin */
      .bar {
        height: 14px;
        border-radius: 99px;
        background: #0b1b19;
        overflow: hidden;
        border: 1px solid var(--line);
      }

      .bar i {
        display: block;
        height: 100%;
        background: linear-gradient(
          90deg,
          var(--teal),
          var(--purple),
          var(--pink)
        );
        transition: width 0.8s;
      }

      .stats {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 12px;
        margin: 14px 0;
      }

      .stat {
        background: #0b1b19;
        border: 1.5px solid var(--line);
        border-radius: 14px;
        padding: 14px;
      }

      .stat b {
        font-family: var(--disp);
        font-size: 34px;
        font-weight: 400;
        color: var(--teal);
        display: block;
      }

      .stat span {
        color: var(--mute);
        font-size: 14px;
      }

      .arow {
        display: grid;
        grid-template-columns: 150px 1fr 70px;
        gap: 12px;
        align-items: center;
        margin: 10px 0;
        font-weight: 600;
      }

      .pgrid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 8px;
      }

      .pc {
        border: 1.5px solid var(--line);
        border-radius: 10px;
        padding: 8px 10px;
        font-size: 13px;
        background: #0b1b19;
      }

      .pc.done {
        border-color: var(--teal);
      }

      .pc.part {
        border-color: var(--purple);
      }

      .pc div {
        display: flex;
        gap: 3px;
        margin-top: 5px;
      }

      .pc em {
        width: 100%;
        height: 6px;
        border-radius: 3px;
        background: #24403d;
      }

      .pc em.on {
        background: var(--pink);
      }

      .tabs {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        margin: 10px 0;
      }

      .tabs .pill[aria-pressed="true"] {
        background: var(--purple);
        border-color: var(--purple);
        color: #fff;
      }

      .lib {
        display: grid;
        gap: 8px;
      }

      .li {
        display: grid;
        grid-template-columns: 44px 1fr auto;
        gap: 12px;
        align-items: center;
        background: #0b1b19;
        border: 1.5px solid var(--line);
        border-radius: 12px;
        padding: 10px 12px;
      }

      .pl {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        border: 0;
        background: var(--teal);
        color: #062;
        font-weight: 800;
        font-size: 16px;
      }

      .li small {
        color: var(--mute);
        display: block;
      }

      .ctl {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        border: 2px solid var(--teal);
        background: #0b1b19;
        color: var(--teal);
        font-size: 20px;
        transition: 0.2s;
      }

      .ctl:hover {
        background: #12302d;
      }

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

      .ctl.big {
        width: 78px;
        height: 78px;
        background: var(--pink);
        border-color: var(--pink);
        color: #fff;
        font-size: 26px;
        box-shadow: 0 0 0 7px #ff2e9322;
      }

      .ctl[aria-pressed="true"] {
        background: var(--purple);
        border-color: var(--purple);
        color: #fff;
      }

      .li.now {
        border-color: var(--pink);
        background: #2a0f20;
      }

      .chips {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 14px;
      }

      .chip {
        border: 1.5px solid var(--line);
        background: #0b1b19;
        border-radius: 99px;
        padding: 8px 16px;
        font-weight: 600;
        display: inline-flex;
        gap: 8px;
        align-items: center;
        transition: 0.2s;
      }

      .chip b {
        color: var(--pink);
      }

      .chip:hover {
        border-color: var(--pink);
        transform: rotate(-1deg);
      }

      @media (max-width: 820px) {
        .hero,
        .rec-grid {
          grid-template-columns: 1fr;
        }

        .stage {
          height: 280px;
          order: -1;
        }

        .arow {
          grid-template-columns: 1fr 60px;
        }

        .arow .bar {
          grid-column: 1/-1;
          order: 3;
        }
      }

      @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
          animation: none !important;
          transition: none !important;
        }
      }

/* Former static inline styles moved out of HTML */
.inline-style-1 { top: -70px; height: 70px }
.inline-style-2 { margin-top: 22px }
.inline-style-3 { margin-top: 14px }
.inline-style-4 { transform-origin: 75px 72px; transition: transform 0.08s }
.inline-style-5 { width: 100% }
.inline-style-6 { margin: 0 auto; width: 110px; height: 110px }
.inline-style-7 { color: var(--mute) }
.inline-style-8 { margin-top: 20px }
.inline-style-9 { grid-template-columns: 1fr; padding-bottom: 10px }
.inline-style-10 { margin: 0 0 12px; font-size: 16px }
.inline-style-11 { margin-top: 16px; max-height: 420px; overflow: auto }
.inline-style-12 { margin: 0; min-height: 50px; font-size: 16px }
.inline-style-13 { margin: 24px 0 8px }
.inline-style-14 { font-weight:400;color:var(--mute) }
.inline-style-15 { margin-top:6px }
.inline-style-16 { margin:0 }
.inline-style-17 { margin: 20px 0 8px }
.inline-style-18 { margin-top: 22px; justify-content: flex-start }
.inline-style-19 { margin-top: 10px }
.inline-style-20 { margin:24px 0 8px }
