* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    color: #f4f4f5;
    background: #09090b;
}

a { -webkit-tap-highlight-color: transparent; }

.stage {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 24px 16px;
}

.device {
    width: min(400px, 100%);
    height: min(844px, calc(100dvh - 32px));
    padding: 3px;
    border-radius: 36px;
    background: #2a2a2e;
}

.screen {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 33px;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M-5 -5L105 105M105 -5L-5 105' stroke='%23ff0000' stroke-opacity='.05' stroke-width='60' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat,
        linear-gradient(180deg, #17171b 0%, #0c0c0e 38%, #09090b 100%);
    overflow: auto;
    padding: 12px 16px 14px;
    scrollbar-width: none;
}

.screen::-webkit-scrollbar { width: 0; height: 0; }

.island {
    width: 96px;
    height: 22px;
    margin: 4px auto 8px;
    border-radius: 999px;
    background: #000;
    flex: none;
}

.appbar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    flex: none;
}

.appbar img {
    width: auto;
    height: 20px;
    max-width: 110px;
    object-fit: contain;
    display: block;
}

.save-img {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid #3f3f46;
    background: #18181b;
    color: #f4f4f5;
    display: grid;
    place-items: center;
    padding: 0;
    cursor: pointer;
}

.save-img.is-busy { opacity: 0.5; cursor: wait; }

.sheet { flex: 1 0 auto; }

.hero {
    display: grid;
    place-items: center;
    margin: 14px 0 16px;
}

.hero__frame {
    width: 188px;
    aspect-ratio: 1;
    border-radius: 20px;
    overflow: hidden;
}

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

.artist {
    margin: 0;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #a1a1aa;
}

.title {
    margin: 6px 0 0;
    text-align: center;
    font-size: 1.65rem;
    line-height: 1.08;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.when {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 0;
    color: #9b9ba4;
    font-size: 13px;
}

.when__soon {
    color: #fafafa;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 999px;
    background: #27272a;
}

.blurb {
    margin: 10px auto 0;
    max-width: 32ch;
    text-align: center;
    color: #b9b9c2;
    font-size: 13.5px;
    line-height: 1.45;
}

.listen { margin-top: 20px; }

.kicker {
    margin: 0 0 10px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #71717a;
}

.stores {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.store {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 7px 10px 7px 8px;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    background: #18181b;
    border: 1px solid #27272a;
}

.store:active { opacity: 0.86; }

.store:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    overflow: hidden;
    flex: none;
    display: grid;
    place-items: center;
    background: #111113;
}

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

.mark--plate { background: #f4f4f5; }

.mark--plate img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.mark--mono {
    font-size: 16px;
    font-weight: 700;
    color: #fafafa;
}

.store__name {
    min-width: 0;
    flex: 1;
    font-size: 15.5px;
    font-weight: 600;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.store__pill {
    flex: none;
    min-width: 72px;
    height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    border: 1px solid #3f3f46;
    color: #f4f4f5;
    font-size: 12.5px;
    font-weight: 600;
}

.empty {
    margin: 0;
    padding: 16px;
    border-radius: 16px;
    text-align: center;
    color: #a1a1aa;
    font-size: 14px;
    background: #18181b;
}

.foot {
    margin: 18px 0 4px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #52525b;
}

.homebar {
    width: 120px;
    height: 5px;
    margin: 8px auto 2px;
    border-radius: 999px;
    background: #3f3f46;
    flex: none;
}

@media (max-width: 780px) {
    .stage { display: block; padding: 0; }

    .device {
        width: 100%;
        height: auto;
        min-height: 100dvh;
        padding: 0;
        border-radius: 0;
        background: #09090b;
    }

    .screen {
        height: auto;
        min-height: 100dvh;
        border-radius: 0;
        overflow: visible;
        padding: max(16px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
        background:
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M-5 -5L105 105M105 -5L-5 105' stroke='%23ff0000' stroke-opacity='.05' stroke-width='56' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat,
            linear-gradient(180deg, #17171b 0%, #0c0c0e 34%, #09090b 100%);
    }

    .island, .homebar { display: none; }

    .hero__frame { width: min(210px, 56vw); }

    .store { min-height: 62px; }
}

@media (hover: hover) {
    .store:hover { background: #222226; }
    .store:hover .store__pill { background: #f4f4f5; color: #111113; border-color: #f4f4f5; }
    .save-img:hover { background: #f4f4f5; color: #111113; border-color: #f4f4f5; }
}
