:root {
    --sky-deep: #3ba8e8;
    --sky: #5bb8f5;
    --sky-soft: #7dcef5;
    --aqua: #38bdb6;
    --ocean: #2ebdb5;
    --sand: #e8d4a8;
    --sand-pale: #f0e4c4;
    --ink: #1a2035;
    --plum: #2a2455;
    --live: #4df0a0;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--sand-pale);
    color: var(--ink);
    font-family: "DM Mono", monospace;
}

a {
    color: inherit;
}

.hero {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.24) 0 8%, transparent 28%),
        radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.16) 0 10%, transparent 30%),
        linear-gradient(180deg, var(--sky-deep) 0%, var(--sky) 42%, var(--sky-soft) 70%, #4cc8cf 88%, var(--aqua) 100%);
}

nav {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem clamp(1rem, 4vw, 2.5rem);
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    line-height: 1;
    text-decoration: none;
}

.nav-mascot {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    overflow: visible;
    margin-bottom: 10px;
}

.nav-mascot img {
    width: 64px;
    height: 64px;
    display: block;
    object-fit: contain;
}

.logo,
h1,
h2,
.track-name {
    font-family: "Spicy Rice", cursive;
    font-weight: 400;
}

.logo {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.12rem;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
    text-shadow: 0 2px 14px rgba(26, 32, 53, 0.14);
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.75rem, 2vw, 1.3rem);
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-decoration: none;
    text-transform: uppercase;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 32px;
    padding: 0.35rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.status-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
}

.status-dot.live {
    background: var(--live);
    box-shadow: 0 0 7px var(--live);
}

main {
    flex: 1;
    display: grid;
    place-items: center;
    padding: 1rem 1.25rem 5rem;
}

.hero-stack {
    width: min(430px, 100%);
    display: grid;
    justify-items: center;
    gap: clamp(0.75rem, 2svh, 1.05rem);
}

.hero-stack h1 {
    max-width: 100%;
    font-size: clamp(1.75rem, 5vw, 2.85rem);
    line-height: 1;
}

.player {
    width: min(390px, 100%);
    display: grid;
    justify-items: center;
}

.player-status {
    margin-bottom: 0.85rem;
    background: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.84);
}

.art-shell {
    width: min(320px, 78vw);
    aspect-ratio: 1;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 16px;
    background:
        radial-gradient(circle at 35% 26%, rgba(255, 255, 255, 0.34) 0 10%, transparent 30%),
        linear-gradient(135deg, rgba(61, 191, 184, 0.9), rgba(42, 36, 85, 0.58));
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.08), 0 18px 42px rgba(0, 0, 0, 0.22);
}

.mascot-art,
.cover-art {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    transition: opacity 0.35s ease, transform 0.35s ease, filter 0.35s ease;
}

.mascot-art {
    z-index: 2;
}

.mascot-art img {
    width: 92%;
    height: 92%;
    object-fit: contain;
    filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.18));
}

.cover-art {
    z-index: 1;
    background: #3ec9c0;
    opacity: 0;
    transform: scale(0.94);
}

.cover-art img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.art-shell.is-live .mascot-art {
    opacity: 0;
    transform: scale(1.06);
    filter: blur(2px);
}

.art-shell.is-live .cover-art {
    opacity: 1;
    transform: scale(1);
}

.track-info {
    width: 100%;
    min-height: 72px;
    margin-bottom: 1.4rem;
    text-align: center;
}

.track-name {
    margin-bottom: 0.35rem;
    overflow: hidden;
    color: #fff;
    font-size: 1.65rem;
    text-overflow: ellipsis;
    text-shadow: 0 2px 14px rgba(26, 32, 53, 0.16);
    white-space: nowrap;
}

.track-meta {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    line-height: 1.6;
}

.controls {
    display: flex;
    justify-content: center;
    margin-bottom: 1.6rem;
}

.play-btn {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50% / 60% 60% 40% 40%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.play-btn:hover {
    transform: scale(1.06);
}

.play-btn:active {
    transform: scale(0.96);
}

.play-btn:has(.pause) {
    animation:
        egg-wobble 4s ease-in-out infinite,
        play-glow 2.6s ease-in-out infinite;
}

@keyframes egg-wobble {

    0%,
    100% {
        border-radius: 50% / 60% 60% 40% 40%;
        transform: translateY(0) rotate(-2.5deg);
    }

    50% {
        border-radius: 50% / 56% 64% 44% 36%;
        transform: translateY(-4px) rotate(2.5deg);
    }
}

@keyframes play-glow {

    0%,
    100% {
        box-shadow:
            0 8px 28px rgba(0, 0, 0, 0.2),
            0 0 18px 4px rgba(255, 220, 140, 0.55),
            0 0 42px 14px rgba(120, 230, 220, 0.35);
    }

    50% {
        box-shadow:
            0 8px 28px rgba(0, 0, 0, 0.2),
            0 0 34px 10px rgba(255, 225, 150, 0.9),
            0 0 78px 26px rgba(120, 230, 220, 0.6);
    }
}

@media (prefers-reduced-motion: reduce) {
    .play-btn:has(.pause) {
        animation: none;
        box-shadow:
            0 8px 28px rgba(0, 0, 0, 0.2),
            0 0 24px 6px rgba(255, 220, 140, 0.65),
            0 0 56px 18px rgba(120, 230, 220, 0.45);
    }
}

.play-icon {
    width: 0;
    height: 0;
    margin-left: 4px;
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent var(--plum);
}

.play-icon.pause {
    width: 18px;
    height: 20px;
    display: flex;
    gap: 5px;
    align-items: stretch;
    margin-left: 0;
    border: 0;
}

.play-icon.pause::before,
.play-icon.pause::after {
    content: "";
    flex: 1;
    border-radius: 2px;
    background: var(--plum);
}

.presence-modal {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: grid;
    place-items: center;
    padding: 1rem;
    background:
        radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.28) 0 10%, transparent 32%),
        radial-gradient(circle at 78% 78%, rgba(255, 220, 140, 0.18) 0 12%, transparent 36%),
        linear-gradient(160deg, rgba(91, 184, 245, 0.55) 0%, rgba(56, 189, 182, 0.5) 100%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: presence-fade 280ms ease both;
}

.presence-modal[hidden] {
    display: none;
}

@keyframes presence-fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.presence-peek {
    display: grid;
    grid-template-columns: 150px 1fr;
    align-items: end;
    gap: 0.4rem;
    width: min(440px, 100%);
    animation: presence-pop 480ms cubic-bezier(0.2, 1.4, 0.3, 1) both;
}

@keyframes presence-pop {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.75);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.presence-mascot {
    width: 150px;
    height: 140px;
    position: relative;
    display: grid;
    place-items: end center;
    animation: presence-wobble 3.2s ease-in-out infinite;
    transform-origin: bottom center;
}

.presence-mascot img {
    width: 146px;
    height: auto;
    filter: drop-shadow(0 8px 14px rgba(42, 36, 85, 0.28));
}

@keyframes presence-wobble {

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

    50% {
        transform: rotate(3deg) translateY(-3px);
    }
}

.presence-sparkle {
    position: absolute;
    color: var(--sand);
    font-family: "Spicy Rice", cursive;
    font-size: 1.3rem;
    text-shadow: 0 2px 0 var(--plum);
    animation: presence-twinkle 1.8s ease-in-out infinite;
}

.presence-sparkle.s1 {
    top: 18px;
    left: 3%;
    font-size: 0.9rem;
    animation-delay: 0.9s;
}

.presence-sparkle.s2 {
    top: -18px;
    left: 30%;
    font-size: 1.08rem;
    animation-delay: 0.2s;
}

.presence-sparkle.s3 {
    top: -28px;
    left: 57%;
    font-size: 1.3rem;
    animation-delay: 0.55s;
}

.presence-sparkle.s4 {
    top: 8px;
    left: 83%;
    font-size: 1rem;
    animation-delay: 1.2s;
}

@keyframes presence-twinkle {

    0%,
    100% {
        opacity: 0.35;
        transform: scale(0.85);
    }

    50% {
        opacity: 1;
        transform: scale(1.15);
    }
}

.presence-bubble {
    position: relative;
    margin-bottom: 26px;
    padding: 1rem 1.1rem 1.05rem;
    border: 3px solid var(--plum);
    border-radius: 22px 22px 22px 6px;
    background: var(--sand-pale);
    color: var(--plum);
    box-shadow: 0 8px 0 var(--plum), 0 12px 24px rgba(42, 36, 85, 0.22);
}

.presence-bubble::before,
.presence-bubble::after {
    content: "";
    position: absolute;
    left: -18px;
    bottom: 14px;
    width: 0;
    height: 0;
    border-style: solid;
}

.presence-bubble::before {
    border-width: 10px 20px 10px 0;
    border-color: transparent var(--plum) transparent transparent;
}

.presence-bubble::after {
    left: -13px;
    border-width: 8px 16px 8px 0;
    border-color: transparent var(--sand-pale) transparent transparent;
}

.presence-bubble-title {
    display: block;
    margin-bottom: 0.3rem;
    font-family: "Spicy Rice", cursive;
    font-weight: 400;
    font-size: 1.4rem;
    line-height: 1.05;
    color: var(--plum);
    letter-spacing: 0;
    text-transform: none;
}

.presence-bubble-msg {
    display: block;
    margin-bottom: 0.85rem;
    font-size: 0.78rem;
    line-height: 1.5;
    color: rgba(42, 36, 85, 0.78);
}

.presence-bubble-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
}

.presence-btn {
    min-height: 42px;
    padding: 0 1.15rem;
    border: 3px solid var(--plum);
    border-radius: 999px;
    background: var(--live);
    color: var(--plum);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 4px 0 var(--plum);
    transition: transform 100ms ease, box-shadow 100ms ease;
}

.presence-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 var(--plum);
}

.presence-btn:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 var(--plum);
}

.presence-btn:disabled {
    cursor: progress;
    opacity: 0.7;
    transform: none;
    box-shadow: 0 4px 0 var(--plum);
}

.presence-btn.secondary {
    min-height: auto;
    padding: 0.3rem 0.2rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(42, 36, 85, 0.6);
    box-shadow: none;
    font-size: 0.74rem;
    letter-spacing: 0.04em;
    text-transform: none;
    text-decoration: underline wavy rgba(42, 36, 85, 0.4);
    text-underline-offset: 4px;
}

.presence-btn.secondary:hover {
    transform: none;
    box-shadow: none;
    color: var(--plum);
}

.presence-btn.secondary:active {
    transform: none;
    box-shadow: none;
}

.presence-btn[hidden] {
    display: none;
}

/* ---------- Variant switching (kitacus vs. pigeon) ---------- */

.presence-variant {
    display: contents;
}

#presencePanel[data-mascot="kitacus"] [data-variant="pigeon"],
#presencePanel[data-mascot="pigeon"] [data-variant="kitacus"] {
    display: none;
}

/* ---------- Pigeon variant: late-night-coding palette ---------- */
/* Pulls colors directly from the Lofi Pigeon illustration: purple/cyan
   pigeon body, warm desk-lamp glow, orange beak, parchment paper. */

.presence-modal[data-mascot="pigeon"] {
    background:
        radial-gradient(circle at 50% 16%, rgba(255, 214, 128, 0.22) 0%, transparent 36%),
        radial-gradient(circle at 50% 58%, rgba(122, 92, 184, 0.22) 0%, transparent 46%),
        radial-gradient(circle at 18% 88%, rgba(125, 206, 245, 0.14) 0%, transparent 40%),
        linear-gradient(165deg, var(--plum) 0%, var(--ink) 100%);
}

.pp-card-wrap {
    position: relative;
    width: min(360px, 100%);
    animation: presence-pop 480ms cubic-bezier(0.2, 1.4, 0.3, 1) both;
}

.pp-pigeon {
    position: absolute;
    top: -210px;
    left: 50%;
    width: 220px;
    transform: translateX(-50%);
    animation: pp-bob 4.2s ease-in-out infinite;
    transform-origin: bottom center;
    pointer-events: none;
}

.pp-pigeon img {
    width: 100%;
    height: auto;
    display: block;
    filter:
        drop-shadow(0 10px 0 rgba(0, 0, 0, 0.22))
        drop-shadow(0 0 22px rgba(122, 92, 184, 0.45))
        drop-shadow(0 0 38px rgba(125, 206, 245, 0.28));
}

@keyframes pp-bob {

    0%,
    100% {
        transform: translateX(-50%) translateY(0) rotate(-1.5deg);
    }

    50% {
        transform: translateX(-50%) translateY(-4px) rotate(1.5deg);
    }
}

.pp-glow {
    position: absolute;
    top: -210px;
    left: 50%;
    width: 320px;
    height: 230px;
    transform: translateX(-50%);
    border-radius: 50%;
    background:
        radial-gradient(ellipse at 50% 25%, rgba(255, 214, 128, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 75%, rgba(122, 92, 184, 0.32) 0%, transparent 60%);
    filter: blur(8px);
    pointer-events: none;
    animation: pp-glow-pulse 3.6s ease-in-out infinite;
}

@keyframes pp-glow-pulse {

    0%,
    100% {
        opacity: 0.65;
    }

    50% {
        opacity: 1;
    }
}

.pp-note {
    position: absolute;
    font-family: "Spicy Rice", cursive;
    color: var(--sand-pale);
    text-shadow:
        0 0 10px rgba(255, 214, 128, 0.55),
        0 0 18px rgba(125, 206, 245, 0.35);
    opacity: 0;
    animation: pp-note-drift 3.4s ease-in-out infinite;
    pointer-events: none;
}

.pp-note.n1 {
    top: -192px;
    left: calc(50% + 78px);
    font-size: 1.25rem;
}

.pp-note.n2 {
    top: -168px;
    left: calc(50% + 102px);
    font-size: 0.95rem;
    animation-delay: 1.1s;
}

.pp-note.n3 {
    top: -148px;
    left: calc(50% + 70px);
    font-size: 0.78rem;
    animation-delay: 2.2s;
}

@keyframes pp-note-drift {
    0% {
        opacity: 0;
        transform: translateY(8px) rotate(-14deg) scale(0.7);
    }

    25% {
        opacity: 0.95;
    }

    100% {
        opacity: 0;
        transform: translateY(-28px) rotate(16deg) scale(1.15);
    }
}

.pp-card {
    position: relative;
    padding: 1.5rem 1.4rem 1.4rem;
    border: 3px solid var(--plum);
    border-radius: 22px;
    background:
        radial-gradient(ellipse at 50% -10%, rgba(125, 206, 245, 0.18) 0%, transparent 50%),
        linear-gradient(180deg, var(--sand-pale) 0%, var(--sand) 100%);
    color: var(--plum);
    text-align: center;
    box-shadow:
        0 6px 0 var(--plum),
        0 24px 48px rgba(0, 0, 0, 0.45),
        0 0 64px rgba(122, 92, 184, 0.22);
}

.pp-card::before,
.pp-card::after {
    content: "";
    position: absolute;
    left: 50%;
    top: -18px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-style: solid;
}

.pp-card::before {
    border-width: 0 14px 18px 14px;
    border-color: transparent transparent var(--plum) transparent;
}

.pp-card::after {
    top: -13px;
    border-width: 0 10px 14px 10px;
    border-color: transparent transparent var(--sand-pale) transparent;
}

.pp-card-inner {
    position: relative;
    padding: 0.2rem 0.2rem 0;
}

.pp-card-inner::before {
    content: "";
    position: absolute;
    inset: -0.6rem -0.7rem -0.4rem;
    border: 2px dashed rgba(42, 36, 85, 0.16);
    border-radius: 16px;
    pointer-events: none;
}

.pp-eyebrow {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(122, 92, 184, 0.14) 0%, rgba(42, 36, 85, 0.08) 100%);
    color: rgba(42, 36, 85, 0.72);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.pp-eyebrow .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f0b86c;
    box-shadow: 0 0 8px #f0b86c;
    animation: pp-blink 2s ease-in-out infinite;
}

@keyframes pp-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.pp-title {
    margin: 0 0 0.4rem;
    font-family: "Spicy Rice", cursive;
    font-weight: 400;
    font-size: 1.55rem;
    line-height: 1.05;
    color: var(--plum);
}

.pp-msg {
    margin: 0 auto 1.1rem;
    max-width: 260px;
    font-size: 0.78rem;
    line-height: 1.55;
    color: rgba(42, 36, 85, 0.78);
}

.pp-actions {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.7rem;
}

.pp-btn {
    position: relative;
    min-height: 46px;
    padding: 0 1.3rem;
    border: 3px solid var(--plum);
    border-radius: 999px;
    background: linear-gradient(180deg, var(--sky-soft) 0%, var(--aqua) 100%);
    color: var(--plum);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow:
        0 4px 0 var(--plum),
        0 0 26px rgba(125, 206, 245, 0.5);
    transition: transform 100ms ease, box-shadow 100ms ease;
}

.pp-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 0 var(--plum),
        0 0 36px rgba(125, 206, 245, 0.72);
}

.pp-btn:active {
    transform: translateY(2px);
    box-shadow:
        0 1px 0 var(--plum),
        0 0 18px rgba(125, 206, 245, 0.5);
}

.pp-btn:disabled {
    cursor: progress;
    opacity: 0.7;
    transform: none;
    box-shadow:
        0 4px 0 var(--plum),
        0 0 18px rgba(125, 206, 245, 0.4);
}

.pp-btn.secondary {
    min-height: auto;
    padding: 0.3rem 0.3rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(42, 36, 85, 0.6);
    box-shadow: none;
    font-size: 0.74rem;
    letter-spacing: 0.04em;
    text-transform: none;
    text-decoration: underline wavy rgba(42, 36, 85, 0.35);
    text-underline-offset: 4px;
}

.pp-btn.secondary:hover {
    transform: none;
    box-shadow: none;
    color: var(--plum);
}

.pp-btn.secondary:active {
    transform: none;
    box-shadow: none;
}

.pp-btn[hidden] {
    display: none;
}

@media (max-width: 420px) {
    .pp-pigeon {
        top: -172px;
        width: 180px;
    }

    .pp-glow {
        top: -172px;
        width: 240px;
        height: 190px;
    }

    .pp-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 420px) {
    .presence-peek {
        grid-template-columns: 108px 1fr;
    }

    .presence-mascot {
        width: 108px;
        height: 102px;
    }

    .presence-mascot img {
        width: 104px;
    }

    .presence-bubble-title {
        font-size: 1.2rem;
    }
}

.volume-row {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.vol-label,
.vol-num {
    width: 34px;
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}

.vol-num {
    text-align: right;
}

input[type=range] {
    width: 100%;
    height: 6px;
    appearance: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    box-shadow: 0 1px 10px rgba(26, 32, 53, 0.16);
    cursor: pointer;
}

input[type=range]::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
    appearance: none;
    border: 2px solid rgba(42, 36, 85, 0.18);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.section {
    padding: 4.5rem 1.25rem;
}

.section-stores {
    background: linear-gradient(180deg, var(--aqua) 0%, var(--ocean) 48%, #4dcfc8 100%);
}

.section-albums {
    background: linear-gradient(180deg, #4dcfc8 0%, #43c7c0 48%, var(--aqua) 100%);
}

.section-rf {
    background: linear-gradient(180deg, var(--aqua) 0%, #5ac8b8 45%, #c4a882 100%);
}

.section-merch {
    background: linear-gradient(180deg, #c4a882 0%, var(--sand) 58%, var(--sand-pale) 100%);
}

.section-inner {
    width: min(1080px, 100%);
    margin: 0 auto;
}

h1,
h2 {
    margin: 0;
    color: #fff;
    text-align: center;
    text-shadow: 0 2px 14px rgba(26, 32, 53, 0.12);
}

h2 {
    margin-bottom: 0.75rem;
    font-size: clamp(1.65rem, 4vw, 2.45rem);
}

.section-label {
    margin: 0 0 0.55rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.7rem;
    letter-spacing: 0.24em;
    text-align: center;
    text-transform: uppercase;
}

.section-subtitle {
    max-width: 620px;
    margin: 0 auto 2.5rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.84rem;
    line-height: 1.8;
    text-align: center;
}

.section-merch h2,
.section-merch .section-label,
.section-merch .section-subtitle {
    color: var(--ink);
    text-shadow: none;
}

.section-merch .section-label,
.section-merch .section-subtitle {
    opacity: 0.62;
}

.store-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.store-card {
    min-width: 190px;
    min-height: 86px;
    display: grid;
    place-items: center;
    padding: 1.25rem 1.55rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.18s, box-shadow 0.18s;
}

.store-card:hover,
.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 38px rgba(0, 0, 0, 0.18);
}

.store-card img {
    max-width: 155px;
    max-height: 36px;
    display: block;
}

.content-grid {
    display: grid;
    gap: 1.2rem;
}

.albums-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rf-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.merch-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.content-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12);
    transition: transform 0.18s, box-shadow 0.18s;
}

.album-card,
.rf-card {
    border-color: transparent;
}

.album-card>img {
    border-bottom: 1px solid rgba(18, 58, 56, 0.14);
}

.rf-card {
    background: #fff;
}

.content-card>img,
.content-card>a>img {
    width: 100%;
    aspect-ratio: 1;
    display: block;
    object-fit: cover;
}

.card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    text-align: center;
}

.rf-card .card-info {
    text-align: left;
}

.card-info h3 {
    margin: 0 0 0.35rem;
    color: #123a38;
    font-family: "Spicy Rice", cursive;
    font-size: 1.12rem;
    font-weight: 400;
    line-height: 1.2;
}

.card-info p {
    margin: 0 0 0.85rem;
    color: rgba(18, 58, 56, 0.68);
    font-size: 0.78rem;
    line-height: 1.65;
}

.card-info>p:first-of-type:not(.kicker) {
    color: #526d6c;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.kicker {
    color: rgba(18, 58, 56, 0.62);
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.card-meta {
    margin-top: auto;
    color: rgba(18, 58, 56, 0.55);
    font-size: 0.72rem;
}

.link-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
    margin-top: auto;
}

.link-row a,
.primary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0.48rem 0.62rem;
    border: 1px solid rgba(42, 36, 85, 0.12);
    border-radius: 999px;
    background: rgba(56, 189, 182, 0.1);
    color: var(--plum);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.album-card .link-row a {
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.album-card .store-icon {
    width: 32px;
    height: 32px;
    display: block;
    object-fit: contain;
}

.album-card .store-icon-amazon {
    width: 40px;
    height: 32px;
}

.primary-link {
    align-self: flex-start;
    margin-top: auto;
    background: var(--plum);
    color: #fff;
}

.merch-card .primary-link {
    align-self: center;
}

.merch-card {
    gap: 0.9rem;
    padding: 1.1rem;
}

.merch-card>a {
    display: block;
}

.merch-card>a>img {
    border-radius: 6px;
}

.merch-card .card-info {
    padding: 0.2rem 0.25rem 0;
}

footer {
    padding: 4rem 1.25rem 2rem;
    background: var(--sand-pale);
    color: #5e5f63;
    font-size: 0.76rem;
    line-height: 1.7;
}

.footer-inner {
    width: min(860px, 100%);
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin: 0 auto;
}

.footer-logo,
footer h3 {
    margin: 0 0 0.8rem;
    color: var(--ink);
    font-family: "Spicy Rice", cursive;
    font-size: 1rem;
    font-weight: 400;
}

.footer-logo {
    font-size: 1.35rem;
}

footer p {
    margin: 0;
}

footer a {
    display: block;
    width: fit-content;
    color: #52535a;
    font-size: 0.76rem;
    text-decoration: none;
}

footer a+a {
    margin-top: 0.45rem;
}

.footer-bottom {
    width: min(860px, 100%);
    margin: 2rem auto 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(26, 32, 53, 0.15);
    color: #5e5f63;
    font-size: 0.64rem;
    letter-spacing: 0.06em;
}

@media (max-width: 900px) {

    .albums-grid,
    .rf-grid,
    .merch-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    nav {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .nav-links {
        grid-column: 1 / -1;
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        overflow-x: visible;
        padding-bottom: 0.15rem;
    }

    .albums-grid,
    .rf-grid,
    .merch-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .store-card {
        width: 100%;
    }
}

@media (max-width: 380px) {
    .presence-bubble-actions {
        width: 100%;
    }

    .presence-btn {
        flex: 1;
    }

    .presence-btn.secondary {
        flex: 0 0 auto;
    }
}
