@import url("player-spacing.css?v=2");

:root {
    color-scheme: dark;
    font-family: system-ui, sans-serif;
    color: white;
    background: #081324;
}
body { margin: 0; font: var(--player-body-size)/1.4 system-ui, sans-serif; }
.entry-screen {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    width: min(100%, 38rem);
    min-height: 100dvh;
    margin: auto;
    padding: calc(var(--player-page-block) + max(env(safe-area-inset-top, 0px), var(--native-safe-top, 0px)))
        calc(var(--player-page-inline) + max(env(safe-area-inset-right, 0px), var(--native-safe-right, 0px)))
        calc(var(--player-page-block) + max(env(safe-area-inset-bottom, 0px), var(--native-safe-bottom, 0px)))
        calc(var(--player-page-inline) + max(env(safe-area-inset-left, 0px), var(--native-safe-left, 0px)));
}
header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
header strong {
    border-bottom: .075em solid #ffd251;
    padding-bottom: .18em;
    font-size: var(--player-title-size);
    line-height: 1.08;
    font-weight: 800;
}
.entry-screen:has(.welcome-art) { height: 100dvh; }
.welcome-art { position: relative; display: grid; place-items: center; flex: 1; min-height: 0; margin: clamp(6px, 2dvh, 18px) 0; }
.welcome-art img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
h1 { font-size: var(--player-title-size); line-height: 1.12; margin: 12px 0 8px; }
p { color: #d0dce7; margin: 0 0 12px; }
.welcome-copy span { display: block; }
footer { display: flex; justify-content: flex-end; margin-top: auto; padding-top: 8px; }
button, input, select { font: inherit; }
input, select {
    color: white;
    background: #13273d;
    border: 1px solid #8196ac;
    border-radius: 6px;
    padding: clamp(5px, 1.6dvh, 11px);
}
form { display: grid; gap: clamp(5px, 2dvh, 14px); }
label { display: grid; gap: 3px; }
a { color: #ffd251; }
.login-screen p { margin-top: 10px; }
#error-message { color: #ff9f9f; }
.primary {
    display: inline-grid;
    place-items: center;
    box-sizing: border-box;
    min-width: clamp(105px, 32vw, 155px);
    min-height: var(--player-touch-size);
    border: 1px solid #ffd251;
    border-radius: 7px;
    color: #121b25;
    background: #ffd251;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
}
.signup-actions {
    justify-content: space-between;
    align-items: center;
}
.signup-actions > a {
    display: inline-grid;
    place-items: center;
    min-width: clamp(4.25rem, 22vw, 6rem);
    min-height: var(--player-touch-size);
    border: 1px solid #526c85;
    border-radius: 7px;
    color: white;
    background: #13273d;
    font-weight: 700;
    text-decoration: none;
}
@media (max-height: 540px) {
    .signup-screen form { gap: 3px; }
    .signup-screen label { gap: 0; }
    .signup-screen input { padding-block: .22em; }
}
@media (orientation: landscape) and (max-height: 540px) and (min-width: 580px) {
    .signup-screen form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
