[hidden] {
    display: none !important;
}

* {
    box-sizing: border-box;
}

button,
input,
select {
    font: inherit;
}

::placeholder {
    color: var(--muted);
    opacity: 1;
}

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

:root {
    color-scheme: dark;
    --bg: #12081f;
    --bg2: #1f0f38;
    --card: #2a1650;
    --card2: #3b1f6e;
    --text: #f3ecff;
    --muted: #b9a6e0;
    --accent: #ff3d8b;
    --accent2: #35e0c8;
    --on-accent: #12081f;
    --ok: #4ade80;
    --ko: #f87171;
    --gold: #ffd166;
    --surface: rgba(255, 255, 255, 0.06);
    --surface-2: rgba(255, 255, 255, 0.05);
    --line: rgba(255, 255, 255, 0.1);
    --sheet: #1a0d31;
    --pill: rgba(26, 13, 49, 0.86);
    --scrim: rgba(8, 3, 20, 0.6);
    --scrim-strong: rgba(8, 3, 20, 0.74);
    --shadow: rgba(0, 0, 0, 0.45);
    --handle: rgba(255, 255, 255, 0.22);
    --silver: #cdd5e3;
    --bronze: #d9a066;
}

@media (prefers-color-scheme: light) {
    :root {
        color-scheme: light;
        --bg: #f6f1ff;
        --bg2: #ffffff;
        --card: #e9e0fa;
        --card2: #d6c8f4;
        --text: #1d1233;
        --muted: #6a5990;
        --accent: #e8237c;
        --accent2: #0d9488;
        --on-accent: #1d1233;
        --ok: #15803d;
        --ko: #dc2626;
        --gold: #b7791f;
        --surface: rgba(29, 18, 51, 0.06);
        --surface-2: rgba(29, 18, 51, 0.05);
        --line: rgba(29, 18, 51, 0.12);
        --sheet: #ffffff;
        --pill: rgba(255, 255, 255, 0.9);
        --scrim: rgba(29, 18, 51, 0.35);
        --scrim-strong: rgba(246, 241, 255, 0.82);
        --shadow: rgba(60, 30, 110, 0.18);
        --handle: rgba(29, 18, 51, 0.2);
        --silver: #6f7a8f;
        --bronze: #a8622a;
    }
}

:root[data-theme="light"] {
    color-scheme: light;
    --bg: #f6f1ff;
    --bg2: #ffffff;
    --card: #e9e0fa;
    --card2: #d6c8f4;
    --text: #1d1233;
    --muted: #6a5990;
    --accent: #e8237c;
    --accent2: #0d9488;
    --on-accent: #1d1233;
    --ok: #15803d;
    --ko: #dc2626;
    --gold: #b7791f;
    --surface: rgba(29, 18, 51, 0.06);
    --surface-2: rgba(29, 18, 51, 0.05);
    --line: rgba(29, 18, 51, 0.12);
    --sheet: #ffffff;
    --pill: rgba(255, 255, 255, 0.9);
    --scrim: rgba(29, 18, 51, 0.35);
    --scrim-strong: rgba(246, 241, 255, 0.82);
    --shadow: rgba(60, 30, 110, 0.18);
    --handle: rgba(29, 18, 51, 0.2);
    --silver: #6f7a8f;
    --bronze: #a8622a;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #12081f;
    --bg2: #1f0f38;
    --card: #2a1650;
    --card2: #3b1f6e;
    --text: #f3ecff;
    --muted: #b9a6e0;
    --accent: #ff3d8b;
    --accent2: #35e0c8;
    --on-accent: #12081f;
    --ok: #4ade80;
    --ko: #f87171;
    --gold: #ffd166;
    --surface: rgba(255, 255, 255, 0.06);
    --surface-2: rgba(255, 255, 255, 0.05);
    --line: rgba(255, 255, 255, 0.1);
    --sheet: #1a0d31;
    --pill: rgba(26, 13, 49, 0.86);
    --scrim: rgba(8, 3, 20, 0.6);
    --scrim-strong: rgba(8, 3, 20, 0.74);
    --shadow: rgba(0, 0, 0, 0.45);
    --handle: rgba(255, 255, 255, 0.22);
    --silver: #cdd5e3;
    --bronze: #d9a066;
}

body {
    margin: 0;
    min-height: 100dvh;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    background: radial-gradient(circle at 20% 0%, var(--bg2), var(--bg) 70%);
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
}

#app {
    width: 100%;
    max-width: 480px;
}

section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px 0;
    text-align: center;
}

h1 {
    font-size: 2.2rem;
    margin: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

h1 span {
    display: block;
    font-size: 1.1rem;
    color: var(--muted);
    -webkit-text-fill-color: var(--muted);
}

h2 {
    margin: 0;
}

form {
    display: flex;
    gap: 8px;
    width: 100%;
}

form > button {
    flex-shrink: 0;
    white-space: nowrap;
}

input[type="text"],
input[type="search"] {
    flex: 1;
    padding: 14px 16px;
    font-size: 1.05rem;
    border: 2px solid var(--card);
    border-radius: 14px;
    background: var(--surface);
    color: var(--text);
    outline: none;
}

input[type="text"]:focus,
input[type="search"]:focus {
    border-color: var(--accent2);
}

button {
    padding: 12px 18px;
    font-size: 1rem;
    min-height: 44px;
    border: none;
    border-radius: 14px;
    background: var(--card);
    color: var(--text);
    cursor: pointer;
}

button.primary {
    background: linear-gradient(90deg, var(--accent), #ff6ba9);
    color: var(--on-accent);
    font-weight: 700;
}

button.ghost {
    background: transparent;
    color: var(--muted);
    text-decoration: underline;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 10dvh;
}

.vinyl {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: repeating-radial-gradient(circle, #111 0 3px, #1c1c1c 3px 6px);
    border: 4px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.vinyl::after {
    content: "";
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
}

.vinyl span {
    position: relative;
    z-index: 1;
    font-size: 1.6rem;
    font-weight: 800;
    color: #12081f;
}

.vinyl.small {
    width: 90px;
    height: 90px;
}

.spinning {
    animation: spin 2.4s linear infinite;
}

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

.chips {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.chips li {
    background: var(--card);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.95rem;
}

.round-header {
    display: flex;
    justify-content: space-between;
    width: 100%;
    color: var(--muted);
    font-weight: 600;
}

#countdown-big {
    font-size: 6rem;
    font-weight: 800;
    color: var(--accent2);
    animation: pulse 1s ease infinite;
}

@keyframes pulse {
    50% { transform: scale(1.15); }
}

.timer-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.timer-left {
    min-width: 2.5ch;
    text-align: right;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--accent2);
}

.timer-left.urgent {
    color: var(--ko);
}

.timer {
    flex: 1;
    height: 10px;
    background: var(--line);
    border-radius: 999px;
    overflow: hidden;
}

#timer-bar {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--accent2), var(--accent));
    border-radius: 999px;
}

#timer-bar.urgent {
    background: var(--ko);
}

#guess-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
}

#guess-feedback,
#join-feedback {
    min-height: 1.4em;
    margin: 0;
    font-weight: 700;
}

#join-feedback {
    color: var(--ko);
}

#guess-feedback.ok {
    color: var(--ok);
}

#guess-feedback.ko {
    color: var(--ko);
}

.scores {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.scores li {
    background: var(--surface-2);
    border-radius: 10px;
    padding: 8px 12px;
    text-align: left;
}

#reveal-cover {
    width: 220px;
    height: 220px;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 10px 40px rgba(255, 61, 139, 0.35);
}

#reveal-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
}

#reveal-artists {
    color: var(--muted);
    margin: 0;
}

#reveal-title,
#reveal-artists,
#podium-list li,
.scores li,
.chips li,
.teams-bar li,
.stats li,
.host-list button,
.last-guess,
.notice,
.playlist-tag {
    overflow-wrap: anywhere;
}

#podium-list {
    list-style: none;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 1.15rem;
}

#podium-list li {
    background: var(--card);
    border-radius: 12px;
    padding: 12px 16px;
    text-align: left;
}

.hint, .playlist-tag {
    color: var(--muted);
    margin: 0;
}

body.is-host {
    padding-bottom: 96px;
}

body.has-bar {
    padding-top: 64px;
}

.host-bar::-webkit-scrollbar {
    display: none;
}

.host-bar {
    position: fixed;
    overflow-x: auto;
    scrollbar-width: none;
    top: calc(8px + env(safe-area-inset-top));
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 4px;
    padding: 5px;
    max-width: calc(100vw - 16px);
    border-radius: 999px;
    background: var(--pill);
    border: 1px solid var(--line);
    box-shadow: 0 6px 24px var(--shadow);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.host-bar button {
    padding: 8px 12px;
    min-height: 36px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 999px;
    background: transparent;
    color: var(--text);
}

.host-bar #bar-pause {
    background: linear-gradient(90deg, var(--accent), #ff6ba9);
    color: var(--on-accent);
    font-weight: 700;
}

.pause-overlay {
    position: fixed;
    inset: 0;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 24px;
    text-align: center;
    background: var(--scrim-strong);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fade-in 0.2s ease-out;
}

.pause-main {
    width: 124px;
    height: 124px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.2rem;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent), #ff6ba9);
    color: var(--on-accent);
    box-shadow: 0 12px 40px rgba(255, 61, 139, 0.45);
}

.pause-main:disabled {
    padding: 0;
    background: var(--card);
    color: var(--text);
    box-shadow: none;
    opacity: 1;
}

.pause-title {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.pause-text {
    margin: 0;
    color: var(--muted);
}

.pause-actions {
    justify-content: center;
    margin-top: 10px;
}

#host-toggle,
#more-toggle {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    color: var(--text);
    background: linear-gradient(135deg, var(--card), var(--card2));
    border: 1px solid var(--line);
    box-shadow: 0 6px 24px var(--shadow);
}

#host-toggle svg {
    display: block;
}

#more-toggle {
    right: auto;
    left: 16px;
}

#more-toggle .icon {
    width: 28px;
    height: 28px;
}

.backdrop {
    position: fixed;
    inset: 0;
    z-index: 4;
    background: var(--scrim);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    animation: fade-in 0.2s ease-out;
}

.sheet-grab {
    touch-action: none;
    cursor: grab;
    margin: -18px -18px 0;
    padding: 10px 18px 0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sheet-grab:active {
    cursor: grabbing;
}

.sheet-handle {
    width: 44px;
    height: 5px;
    border-radius: 999px;
    background: var(--handle);
    margin: 0 auto;
    flex-shrink: 0;
}

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

.sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    background: var(--sheet);
    border-top: 1px solid var(--line);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -12px 40px var(--shadow);
    overscroll-behavior: contain;
    transition: transform 0.2s ease-out;
    padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
    max-height: 75dvh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sheet h3 {
    margin: 0;
}

.host-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.icon-button {
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 50%;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-button.danger {
    color: var(--ko);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-actions h3 {
    margin: 0;
}

body.is-host #app {
    padding-bottom: 88px;
}

.sheet-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sheet-title {
    margin: 6px 0 -4px;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
}

.setting {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.setting > span {
    font-size: 0.9rem;
    color: var(--muted);
}

.segmented {
    display: flex;
    gap: 4px;
    padding: 4px;
    border-radius: 14px;
    background: var(--surface);
    flex-wrap: wrap;
}

.segmented button {
    flex: 1 1 auto;
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 600;
}

.segmented button.active {
    background: linear-gradient(90deg, var(--accent), #ff6ba9);
    color: var(--on-accent);
    box-shadow: 0 4px 14px rgba(255, 61, 139, 0.35);
}

.config-line {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
}

.choices {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-auto-rows: 1fr;
    gap: 12px;
    width: 100%;
}

.choices .choice {
    min-width: 0;
    min-height: 118px;
    height: 100%;
    padding: 14px 12px;
    border-radius: 18px;
    background: var(--surface);
    border: 2px solid transparent;
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.3;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    justify-content: flex-start;
}

.choices .choice b {
    width: 30px;
    height: 30px;
    font-size: 0.95rem;
}

.choice-label {
    min-width: 0;
    width: 100%;
    overflow-wrap: anywhere;
}

#guess-zone.with-choices .vinyl {
    width: 96px;
    height: 96px;
}

#guess-zone.with-choices .vinyl::after {
    width: 26px;
    height: 26px;
}

#guess-zone.with-choices .vinyl span {
    font-size: 1.1rem;
}

.choices .choice b {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--card);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent2);
}

.choices .choice:disabled {
    opacity: 0.55;
}

.choices .choice.right {
    opacity: 1;
    border-color: var(--ok);
    background: rgba(74, 222, 128, 0.15);
}

.choices .choice.wrong {
    opacity: 1;
    border-color: var(--ko);
    background: rgba(248, 113, 113, 0.15);
}

.lobby-actions button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.host-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.host-actions .button-link {
    box-sizing: border-box;
    min-height: 44px;
    padding: 12px 18px;
    border-radius: 14px;
    font-weight: inherit;
    font-size: 1rem;
}

#host-feedback {
    margin: 0;
    color: var(--ko);
    min-height: 1.2em;
}

@media (max-height: 700px) {
    .vinyl {
        width: 110px;
        height: 110px;
    }
}


@keyframes enter {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
}

@keyframes pop {
    0% {
        opacity: 0;
        transform: scale(0.7);
    }

    60% {
        opacity: 1;
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes shake {
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

@keyframes flash {
    from { background: rgba(53, 224, 200, 0.35); }
}

@keyframes beat {
    50% { transform: scale(1.15); }
}

@keyframes sheet-up {
    from { transform: translateY(100%); }
}

section,
section > * {
    animation: enter 0.4s ease-out both;
}

section > *:nth-child(2) { animation-delay: 60ms; }
section > *:nth-child(3) { animation-delay: 120ms; }
section > *:nth-child(4) { animation-delay: 180ms; }
section > *:nth-child(5) { animation-delay: 240ms; }
section > *:nth-child(n+6) { animation-delay: 300ms; }

button {
    transition: transform 0.12s ease, filter 0.12s ease;
}

button:active {
    transform: scale(0.95);
    filter: brightness(1.1);
}

input[type="text"],
input[type="search"] {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus,
input[type="search"]:focus {
    box-shadow: 0 0 0 4px rgba(53, 224, 200, 0.18);
}

.chips li.fresh {
    animation: pop 0.4s ease-out;
}

.scores li.bump {
    animation: flash 0.9s ease-out;
}

#guess-feedback.ok {
    animation: pop 0.35s ease-out;
}

#guess-feedback.ko {
    animation: shake 0.4s ease-in-out;
}

.hint-pattern.fresh {
    animation: pop 0.4s ease-out;
}

.timer-left.urgent {
    animation: beat 1s ease-in-out infinite;
}

#timer-bar {
    transition: background 0.3s ease;
}

#reveal-cover {
    animation: pop 0.5s ease-out both;
}

#podium-list li {
    animation: enter 0.4s ease-out both;
}

#podium-list li:nth-child(1) {
    animation: pop 0.6s ease-out both;
}

#podium-list li:nth-child(2) { animation-delay: 120ms; }
#podium-list li:nth-child(3) { animation-delay: 240ms; }
#podium-list li:nth-child(n+4) { animation-delay: 360ms; }

.sheet {
    animation: sheet-up 0.3s ease-out;
}

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

.join-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-radius: 16px;
    background: #fff;
    color: #12081f;
}

#lobby-qr {
    width: 168px;
    height: 168px;
}

.join-url {
    margin: 0;
    font-weight: 700;
    font-size: 0.95rem;
    word-break: break-all;
}

.hint-pattern {
    margin: 0;
    min-height: 1.4em;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-weight: 700;
    line-height: 1.6;
    color: var(--accent2);
    white-space: pre-wrap;
}

.last-guess {
    display: block;
    margin-top: 2px;
    font-size: 0.9rem;
    font-style: italic;
    color: var(--muted);
}

form.stack {
    flex-direction: column;
}

form.stack > button {
    width: 100%;
}

.feedback,
.notice {
    margin: 0;
    min-height: 1.4em;
    font-weight: 600;
    color: var(--muted);
}

#home-feedback {
    color: var(--ko);
}

.notice {
    color: var(--accent2);
}

.teams-bar {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.teams-bar li {
    padding: 6px 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--card), var(--card2));
    font-size: 0.95rem;
    font-weight: 700;
}

.scores li.offline {
    opacity: 0.5;
}

.stats {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    color: var(--muted);
}

.stats li {
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--surface-2);
}

.host-line {
    margin: 0;
}

.host-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 30dvh;
    overflow-y: auto;
    flex-shrink: 0;
}

.host-list button {
    width: 100%;
    text-align: left;
}

#host-presets {
    flex-wrap: wrap;
}

.boot-error {
    color: var(--ko);
    z-index: 9;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--scrim);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: fade-in 0.15s ease-out;
}

.modal {
    width: 100%;
    max-width: 380px;
    max-height: 85dvh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    border-radius: 22px;
    background: var(--sheet);
    border: 1px solid var(--line);
    box-shadow: 0 18px 60px var(--shadow);
    text-align: left;
    animation: pop 0.25s ease-out;
}

.modal h3 {
    margin: 0;
    font-size: 1.15rem;
}

.modal-text {
    margin: 0;
    color: var(--muted);
    line-height: 1.4;
}

.modal input[type="text"] {
    width: 100%;
}

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

.modal-choice {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--text);
    text-align: left;
}

.modal-choice.active {
    border-color: var(--accent2);
    color: var(--accent2);
    font-weight: 700;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.modal-actions .ghost {
    text-decoration: none;
}

.danger-button {
    background: var(--ko);
    color: #fff;
    font-weight: 700;
}

.sound-help {
    position: fixed;
    top: 12px;
    left: 16px;
    right: 16px;
    z-index: 3;
    margin: 0;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--card);
    text-align: center;
    font-weight: 700;
    color: var(--accent2);
}

.credit {
    margin: 0;
    font-size: 0.8rem;
    color: var(--muted);
}

.lobby-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

body.paused .spinning {
    animation-play-state: paused;
}

.install .join-card svg {
    width: 200px;
    height: 200px;
    display: block;
    margin: 0 auto;
}

.steps {
    text-align: left;
    padding-left: 22px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
}

.steps li::marker {
    color: var(--accent2);
    font-weight: 700;
}

.button-link {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--card);
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
}

.small {
    display: block;
    margin-top: 6px;
    font-size: 0.9rem;
    color: var(--muted);
}

.ghost-link {
    color: var(--muted);
}

.apk-card {
    width: 100%;
    box-sizing: border-box;
    padding: 16px;
    border-radius: 16px;
    background: rgba(53, 224, 200, 0.08);
    border: 1px solid rgba(53, 224, 200, 0.35);
    text-align: left;
}

.apk-title {
    margin: 0 0 10px;
    font-weight: 700;
    font-size: 1.05rem;
}

.button-link.primary-link {
    background: linear-gradient(90deg, var(--accent), #ff6ba9);
    color: var(--on-accent);
    font-weight: 700;
}

.sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.icon {
    width: 1.15em;
    height: 1.15em;
    flex-shrink: 0;
    vertical-align: -0.2em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

h2 .icon,
.medal-1 {
    color: var(--gold);
}

.medal-2 {
    color: var(--silver);
}

.medal-3 {
    color: var(--bronze);
}

.pause-main .icon {
    width: 56px;
    height: 56px;
}

.marks {
    display: inline-flex;
    gap: 2px;
    margin-left: 8px;
    vertical-align: -0.2em;
    color: var(--accent2);
}

.marks .offline-mark {
    color: var(--muted);
}

.hint-line {
    display: block;
}

.stats li .icon,
.sound-help .icon,
.notice .icon {
    color: var(--accent2);
}

#host-feedback .icon {
    color: var(--ko);
}

.team-picks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.team-pick {
    padding: 8px 14px;
    min-height: 40px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--text);
    font-size: 0.95rem;
}

.team-pick[aria-pressed="true"] {
    background: linear-gradient(90deg, var(--accent), #ff6ba9);
    border-color: transparent;
    color: var(--on-accent);
    font-weight: 700;
}

form.stack .team-picks {
    justify-content: center;
}

.host-players {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.host-players li {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 6px 6px 12px;
    border-radius: 12px;
    background: var(--surface-2);
}

.host-players li.offline .player-info {
    opacity: 0.55;
}

.player-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.player-info b {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-meta {
    font-size: 0.85rem;
    color: var(--muted);
}

.host-players .icon-button {
    width: 40px;
    height: 40px;
    min-height: 40px;
    background: var(--surface);
}

