:root {
    --bg: #fdf6e3;
    --ink: #1d3557;
    --accent: #e76f51;
    --accent-ink: #ffffff;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    -webkit-text-size-adjust: 100%;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 1.5rem;
    text-align: center;
}

.title {
    margin: 0;
    font-size: clamp(2.5rem, 10vw, 5rem);
    line-height: 1.1;
    letter-spacing: 0.02em;
}

.lead { font-size: 1.25rem; margin: 0; }

.button {
    display: inline-block;
    min-height: 64px;
    min-width: 200px;
    padding: 1rem 2rem;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

.button:focus-visible { outline: 4px solid var(--ink); outline-offset: 4px; }

.title-small { font-size: clamp(2rem, 7vw, 3rem); }

.actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin: 0; }

.button { border: 0; cursor: pointer; font-family: inherit; }
.button-quiet { background: transparent; color: var(--ink); border: 3px solid var(--ink); }

.card {
    width: 100%;
    max-width: 28rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
    background: #fff;
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 6px 20px rgba(29, 53, 87, 0.12);
}
.card-wide { max-width: 40rem; }

.label { font-weight: 700; font-size: 1.15rem; }

.input {
    width: 100%;
    min-height: 56px;
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
    border: 3px solid #c9d3e0;
    border-radius: 1rem;
    background: #fff;
    color: var(--ink);
    font-family: inherit;
}
.input:focus { outline: none; border-color: var(--ink); }
.input-code { letter-spacing: 0.4em; text-align: center; font-size: 2rem; }

.phone-row { display: flex; align-items: center; gap: 0.5rem; }
.prefix { font-size: 1.5rem; font-weight: 700; }

.check { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 1rem; }
.check input { width: 28px; height: 28px; flex: none; }

.consent { font-size: 1.3rem; max-width: 32rem; margin: 0; }
.error { color: #b00020; font-weight: 700; margin: 0; }
.small { font-size: 0.95rem; margin: 0; }
.link, .footer a { color: var(--ink); }
.footer { margin-top: 2rem; font-size: 0.95rem; }

.avatars { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 0.5rem; }
.avatars legend { margin-bottom: 0.5rem; }
.avatar-choice { position: relative; display: flex; justify-content: center; }
.avatar-choice input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.avatar { font-size: 2.75rem; line-height: 1; display: inline-flex; width: 72px; height: 72px; align-items: center; justify-content: center; border-radius: 50%; background: #f1ead6; border: 4px solid transparent; }
.avatar-choice input:checked + .avatar { border-color: var(--accent); background: #ffe3d8; }
.avatar-choice input:focus-visible + .avatar { outline: 4px solid var(--ink); }
.avatar-big { font-size: 4rem; width: 110px; height: 110px; }

.who { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.who-name { font-size: 1.75rem; font-weight: 700; }

.prose { max-width: 40rem; text-align: left; line-height: 1.55; font-size: 1.1rem; }
.prose h1 { font-size: 2rem; }
.prose blockquote { margin: 0; padding: 0.5rem 1rem; background: #fff3cd; border-radius: 0.75rem; }

.players { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.players form { margin: 0; }
.player {
    display: flex; flex-direction: column; align-items: center; gap: 0.25rem;
    min-width: 150px; padding: 1rem; border-radius: 1.5rem; border: 4px solid transparent;
    background: #fff; color: var(--ink); font-family: inherit; cursor: pointer;
    box-shadow: 0 6px 20px rgba(29, 53, 87, 0.12);
}
.player-active { border-color: var(--accent); }
.player { position: relative; }
.player-check {
    position: absolute; top: -0.6rem; right: -0.6rem; width: 2rem; height: 2rem; border-radius: 50%;
    background: var(--accent); color: #fff; font-weight: 700; display: grid; place-items: center;
}
.player:focus-visible { outline: 4px solid var(--ink); outline-offset: 4px; }

/* Min side og sletning */
.subtitle { font-size: 1.4rem; margin: 0; }
.notice { background: #e8f5e9; color: #1b5e20; border-radius: 1rem; padding: 0.75rem 1rem; font-weight: 700; margin: 0; }
.profile-list, .plain-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.plain-list li::before { content: "• "; }
.profile-row { display: flex; align-items: center; gap: 0.75rem; }
.profile-row .avatar { font-size: 2.5rem; line-height: 1; }
.profile-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.profile-actions { display: flex; gap: 1rem; }
.profile-actions a { padding: 0.5rem 0.25rem; }
.link-danger { color: #b00020; font-weight: 700; }
.button-danger { background: #b00020; color: #fff; }
.stack { display: flex; flex-direction: column; gap: 0.75rem; align-items: flex-start; }
.thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 0.75rem; flex: none; background: #eee; }
.link-button { background: none; border: 0; padding: 0.5rem 0.25rem; font: inherit; cursor: pointer; text-decoration: underline; }

/* Admin (kun for voksne admins, må gerne være tættere) */
.admin-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 0 0 1rem; font-weight: 700; }
.admin-nav a[aria-current="page"] { color: var(--accent); }
.admin-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.admin-item { display: grid; gap: 0.75rem; padding: 0.75rem 0; border-bottom: 1px solid #e5dcc3; }
.admin-item:last-child { border-bottom: none; }
.admin-item-head { display: flex; gap: 0.75rem; align-items: flex-start; min-width: 0; }
.admin-item .profile-info { display: grid; gap: 0.15rem; min-width: 0; overflow-wrap: anywhere; }
.admin-preview { width: 96px; height: 96px; object-fit: contain; border-radius: 0.75rem; background: #fff; border: 1px solid #e5dcc3; flex: none; }
.admin-actions { display: grid; gap: 0.5rem; }
.admin-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.button-small { min-height: 44px; padding: 0.4rem 1rem; font-size: 1rem; width: auto; }
.input-small { font-size: 1rem; padding: 0.5rem 0.75rem; }
.admin-json { background: #fff; border: 1px solid #e5dcc3; border-radius: 0.75rem; padding: 0.75rem; overflow: auto; max-height: 60vh; font-size: 0.85rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.admin-table th, .admin-table td { text-align: left; padding: 0.4rem 0.5rem; border-bottom: 1px solid #e5dcc3; }
