:root {
    color-scheme: dark;
    --bg: #10151b;
    --panel: #161d25;
    --input: #0f151c;
    --line: #2c3844;
    --text: #f0f5f7;
    --sub: #a7b4bf;
    --mint: #77ecd0;
    --bad: #ffafa8;
    --font: Inter, 'Segoe UI', Roboto, Arial, sans-serif;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.45;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
}
button,
input,
select,
.button {
    font: inherit;
}
button,
.button,
select {
    border: 1px solid var(--line);
    background: #202b35;
    color: var(--text);
    border-radius: 8px;
    padding: 0.55rem 0.9rem;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-weight: 580;
}
button,
.button {
    transition:
        background 0.15s,
        transform 0.15s,
        color 0.15s;
}
button:hover,
.button:hover {
    background: #2b3945;
}
button:active,
.button:active {
    transform: scale(0.97);
}
button:disabled {
    opacity: 0.45;
    cursor: default;
}
.primary {
    background: var(--mint);
    border-color: transparent;
    color: #0b2925;
}
.primary:hover {
    background: #a0f4e0;
}
.danger {
    background: #3a2328;
    color: var(--bad);
    border-color: #674046;
}
.plain {
    background: transparent;
    border: none;
    color: var(--sub);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid var(--mint);
    outline-offset: 3px;
}
input:not([type='file']),
select {
    display: block;
    width: 100%;
    min-width: 0;
    background: var(--input);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.65rem 0.8rem;
    color: var(--text);
}
label {
    display: grid;
    gap: 0.35rem;
    color: var(--sub);
    font-size: 0.9rem;
}
h1,
h2,
p {
    margin: 0;
}
h1 {
    font-size: clamp(1.8rem, 4vw, 2.65rem);
    letter-spacing: -0.045em;
    line-height: 1.15;
    overflow-wrap: anywhere;
}
h2 {
    font-size: 1.35rem;
    letter-spacing: -0.025em;
}
a {
    color: var(--mint);
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 680;
    letter-spacing: -0.045em;
}
.card,
dialog,
.public-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
}
.center-page,
.share-page {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 1.25rem;
}
.auth {
    width: min(100%, 410px);
    padding: clamp(1.5rem, 5vw, 2.3rem);
    display: grid;
    gap: 1.2rem;
}
.auth .brand {
    margin-bottom: 0.6rem;
}
.auth h1 {
    font-size: 1.8rem;
}
.auth form {
    display: grid;
    gap: 1rem;
}
.error,
.player-error {
    color: var(--bad);
    font-size: 0.92rem;
}
.sub,
.hint {
    color: var(--sub);
}
[hidden] {
    display: none !important;
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}
.brand img{object-fit:contain;flex-shrink:0;}
.brand{overflow-wrap:anywhere;min-width:0;}
