.kids-page {
    --kids-ink: #1a1d24;
    --kids-navy: #0a2552;
    --kids-deep: #0e2148;
    --kids-blue: #123e7c;
    --kids-button: #1e3c72;
    --kids-muted: #4f5461;
    --kids-slate: #697585;
    --kids-gray: #878d9a;
    --kids-border: #cfd6e0;
    --kids-disabled: #c1c5ce;
    --kids-bone: #f6f5f0;
    background: var(--kids-bone);
    color: var(--kids-ink);
}

.kids-page > .page-shell { max-width: 560px; padding: 0 0 100px; }
.kids-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #1e3c72, #0e2148);
    color: white;
}
.kids-collection-hero { padding: max(62px, calc(env(safe-area-inset-top) + 12px)) 20px 22px; }
.kids-collection-hero::before {
    position: absolute;
    top: 44px;
    right: -34px;
    width: 190px;
    height: 190px;
    background: url('/images/logo-ifk-kungalv.png') center / contain no-repeat;
    opacity: .08;
    content: '';
    pointer-events: none;
}
.kids-collection-hero > * { position: relative; }
.kids-kicker {
    margin: 0;
    color: rgba(255, 255, 255, .65);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.kids-hero h1, .kids-celebration h1 {
    margin: 4px 0 0;
    font-size: 30px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -.03em;
    text-transform: uppercase;
}
.kids-icon { display: block; width: 18px; height: 18px; flex: none; }
.kids-picker, .kids-children { display: flex; gap: 8px; }
.kids-picker {
    margin: 16px -20px 13px 0;
    padding: 2px 20px 6px 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.kids-picker::-webkit-scrollbar { display: none; }
.kids-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 5px 14px 5px 5px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: white;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}
.kids-pill[aria-checked="true"] { background: white; color: var(--kids-navy); }
.kids-pill small { font-size: 12px; font-weight: 600; opacity: .7; }
.kids-avatar, .kids-add-pill span {
    display: grid;
    width: 30px;
    height: 30px;
    flex: none;
    place-items: center;
    border-radius: 50%;
    background: var(--avatar, #123e7c);
    color: white;
    font-size: 13px;
    font-style: italic;
    font-weight: 900;
}
.kids-add-pill { background: transparent; border: 1px dashed rgba(255, 255, 255, .45); }
.kids-add-pill span { background: rgba(255, 255, 255, .1); font-size: 18px; font-weight: 400; }
.kids-progress-line {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 9px;
}
.kids-progress-line > div { white-space: nowrap; }
.kids-progress-line strong {
    font-size: 56px;
    line-height: .95;
    font-weight: 900;
    font-style: italic;
    font-variant-numeric: tabular-nums;
}
.kids-progress-line span { color: rgba(255, 255, 255, .65); font-size: 15px; font-weight: 700; }
.kids-progress-line p {
    margin: 0;
    color: rgba(255, 255, 255, .75);
    text-align: right;
    font-size: 12px;
    font-weight: 600;
}
.kids-meter { height: 8px; margin-bottom: 18px; border-radius: 999px; background: rgba(255, 255, 255, .14); }
.kids-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: white;
    animation: kids-progress-fill .5s ease;
}
.kids-button {
    display: flex;
    min-height: 50px;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
    overflow-wrap: anywhere;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
.kids-collection-hero .kids-button { min-height: 52px; }
.kids-button-white { background: white; color: var(--kids-navy); }
.kids-button-blue { background: var(--kids-button); color: white; font-weight: 700; }
.kids-button-outline { background: transparent; border-color: rgba(255, 255, 255, .3); color: white; }
.kids-button-text { background: transparent; color: rgba(255, 255, 255, .76); }
.kids-button:disabled { background: var(--kids-disabled); color: var(--kids-deep); cursor: default; }
.kids-intro { margin: 12px 0 18px; color: rgba(255, 255, 255, .75); font-size: 14px; }
.kids-steps {
    display: grid;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    counter-reset: kids-step;
}
.kids-steps li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 700;
    counter-increment: kids-step;
}
.kids-steps li::before {
    display: grid;
    width: 30px;
    height: 30px;
    flex: none;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    font-style: italic;
    font-weight: 900;
    content: counter(kids-step);
}

.kids-roster, .kids-facts { padding: 18px 16px 0; }
.kids-roster-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.kids-roster-heading h2 { margin: 0; font-size: 18px; }
.kids-roster-heading span { color: var(--kids-slate); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.kids-season { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-weight: 700; }
.kids-season select { min-height: 44px; border: 1px solid var(--kids-border); border-radius: 8px; background: white; color: var(--kids-navy); padding-inline: 10px; }
.kids-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kids-card, .kids-player-image {
    position: relative;
    display: block;
    min-width: 0;
    min-height: 44px;
    width: 100%;
    overflow: hidden;
    background: var(--kids-deep);
    color: white;
}
.kids-card {
    aspect-ratio: 5 / 7;
    border-radius: 12px;
    box-shadow: 0 6px 16px -8px rgba(10, 37, 82, .55);
    text-decoration: none;
}
.kids-photo, .kids-emblem { position: absolute; pointer-events: none; }
.kids-photo { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 8%; }
.kids-emblem {
    top: 50%;
    left: 50%;
    width: 52%;
    max-height: 70%;
    object-fit: contain;
    transform: translate(-50%, -50%);
    opacity: .3;
}
.kids-number {
    position: absolute;
    z-index: 1;
    top: 6px;
    left: 9px;
    font-size: 26px;
    line-height: 1;
    font-weight: 900;
    font-style: italic;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 1px 8px rgba(10, 37, 82, .6);
}
.kids-badge {
    position: absolute;
    z-index: 1;
    top: 7px;
    right: 7px;
    padding: 2px 5px;
    border-radius: 4px;
    background: white;
    color: var(--kids-navy);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.kids-card-label {
    position: absolute;
    inset: auto 0 0;
    display: grid;
    padding: 22px 8px 9px;
    background: linear-gradient(180deg, rgba(10, 37, 82, 0), rgba(10, 37, 82, .96) 60%);
    text-align: left;
}
.kids-card-label strong { font-size: 12px; font-weight: 800; line-height: 1.1; overflow-wrap: anywhere; }
.kids-card-label small { margin-top: 3px; color: rgba(255, 255, 255, .75); font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; overflow-wrap: anywhere; }
.kids-locked {
    border: 1px dashed var(--kids-disabled);
    background: #e7e5de;
    color: var(--kids-slate);
    box-shadow: none;
    text-align: left;
    cursor: pointer;
}
.kids-locked .kids-number { color: #aeb5c2; text-shadow: none; }
.kids-lock {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 50%;
    color: var(--kids-gray);
    background: white;
    transform: translate(-50%, -50%);
}
.kids-lock .kids-icon { width: 20px; height: 20px; }
.kids-locked-label { position: absolute; left: 8px; bottom: 8px; font-size: 11px; font-weight: 700; }
.kids-note, .kids-privacy { display: flex; align-items: flex-start; gap: 10px; border-radius: 12px; padding: 14px; }
.kids-note { margin: 18px 0 0; background: white; color: var(--kids-muted); font-size: 14px; }
.kids-note .kids-icon, .kids-privacy .kids-icon { color: var(--kids-slate); }

.kids-dialog {
    position: fixed;
    inset: auto 0 0;
    margin: 0 auto;
    width: min(100%, 560px);
    max-width: 100%;
    max-height: calc(100% - env(safe-area-inset-top));
    padding: 0;
    border: 0;
    border-radius: 22px 22px 0 0;
    overscroll-behavior: contain;
    color: var(--kids-ink);
}
.kids-dialog[open] { animation: kids-slide-in .25s ease-out both; }
.kids-dialog::backdrop { background: rgba(10, 37, 82, .55); }
.kids-page:has(.kids-dialog[open]) { overflow: hidden; }
.kids-sheet { position: relative; padding: 10px 20px max(36px, calc(env(safe-area-inset-bottom) + 12px)); }
.kids-sheet::before {
    display: block;
    width: 38px;
    height: 5px;
    margin: 0 auto 18px;
    border-radius: 999px;
    background: var(--kids-border);
    content: '';
}
.kids-sheet h2 { margin: 0 46px 8px 0; font-size: 22px; font-weight: 800; }
.kids-sheet > p { margin: 0 38px 14px 0; color: var(--kids-muted); font-size: 14px; }
.kids-close {
    position: absolute;
    top: 25px;
    right: 14px;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--kids-muted);
    cursor: pointer;
}
.kids-close::before { position: absolute; inset: 6px; border-radius: inherit; background: #f1f0ec; content: ''; }
.kids-close .kids-icon { position: relative; width: 14px; height: 14px; }
.kids-recipient {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 22px;
    padding: 8px 12px 8px 8px;
    border-radius: 999px;
    background: #eff2f8;
    color: var(--kids-navy);
    font-size: 13px;
    font-weight: 700;
    overflow-wrap: anywhere;
}
.kids-recipient .kids-avatar { width: 24px; height: 24px; font-size: 11px; }
.kids-code-input { position: relative; margin: 0 0 18px; }
.kids-code-input input {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    font-size: 16px;
    cursor: text;
}
.kids-code-cells { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kids-code-cells span {
    display: grid;
    height: 78px;
    place-items: center;
    border: 2px solid var(--kids-border);
    border-radius: 12px;
    background: var(--kids-bone);
    color: var(--kids-navy);
    font-size: 38px;
    font-weight: 900;
    font-style: italic;
}
.kids-code-cells span[data-filled] { background: white; border-color: var(--kids-blue); }
.kids-code-input:focus-within span[data-next] { border-color: var(--kids-blue); }
.kids-code-input[data-invalid] span { border-color: #a02a22; }
.kids-code-hint { margin: 7px 0 0; color: var(--kids-slate); text-align: center; font-size: 12px; }
.kids-error {
    margin: 0 0 14px;
    padding: 12px 14px;
    border: 1px solid #ebc0bb;
    border-radius: 12px;
    background: #f7dedb;
    color: #a02a22;
    font-size: 14px;
}
ul.kids-error { padding-left: 32px; }
.kids-code-error { display: flex; align-items: flex-start; gap: 10px; }
.kids-code-error p { margin: 4px 0 0; color: var(--kids-muted); font-size: 13px; }
.kids-code-error a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 700; }
.kids-code-error[data-owned] { border-color: #d8e0ee; background: #eff2f8; color: var(--kids-navy); }

.kids-avatar-preview { width: 76px; height: 76px; margin: 20px auto 16px; font-size: 32px; }
.kids-field-label { display: block; margin: 0 0 7px; color: var(--kids-slate); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.kids-name {
    display: block;
    width: 100%;
    margin: 0 0 14px;
    padding: 13px 16px;
    border: 1.5px solid var(--kids-border);
    border-radius: 12px;
    color: var(--kids-ink);
    font-size: 17px;
    font-weight: 600;
}
.kids-colors { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 18px; padding: 0; border: 0; }
.kids-swatch { position: relative; display: block; width: 44px; height: 44px; cursor: pointer; }
.kids-swatch span[aria-hidden] { display: block; height: 100%; border-radius: 50%; background: var(--avatar); }
.kids-swatch input:checked + span { box-shadow: inset 0 0 0 2px white, 0 0 0 2px var(--avatar); }
.kids-swatch input:focus-visible + span { outline: 3px solid var(--kids-navy); outline-offset: 4px; }
.kids-privacy { margin: 0 0 18px; background: var(--kids-bone); color: var(--kids-muted); font-size: 12px; }

.kids-player-hero { padding: max(52px, calc(env(safe-area-inset-top) + 8px)) 20px 24px; }
.kids-player-nav { position: relative; display: grid; min-height: 44px; align-items: center; margin-bottom: 16px; padding: 0 48px; text-align: center; }
.kids-player-nav .kids-kicker { overflow-wrap: anywhere; }
.kids-player-nav a {
    position: absolute;
    left: -5px;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 50%;
    color: white;
}
.kids-player-nav a::before { position: absolute; inset: 5px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; background: rgba(255, 255, 255, .12); content: ''; }
.kids-player-nav .kids-icon { position: relative; }
.kids-player-image { aspect-ratio: 4 / 5; border: 1px solid rgba(255, 255, 255, .14); border-radius: 22px; }
.kids-player-image .kids-photo { object-position: center 6%; }
.kids-player-image .kids-emblem { width: 38%; }
.kids-player-image .kids-number { top: 12px; left: 14px; font-size: 64px; }
.kids-player-image .kids-badge { top: 12px; right: 12px; padding: 4px 7px; font-size: 11px; }
.kids-player-hero h1 { margin: 14px 0 5px; font-size: 34px; text-wrap: balance; overflow-wrap: anywhere; }
.kids-player-hero > p { margin: 0; color: rgba(255, 255, 255, .75); font-size: 14px; font-weight: 600; }
.kids-facts dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.kids-facts dl > div, .kids-fun-fact { padding: 14px; border: 1px solid #e5e7ec; border-radius: 14px; background: white; }
.kids-facts dt, .kids-fun-fact h2 { margin: 0; color: var(--kids-slate); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.kids-facts dd { margin: 4px 0 0; color: var(--kids-navy); font-size: 20px; font-style: italic; font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kids-season-statistics { margin-top: 18px; }
.kids-season-statistics h2 { margin: 0 0 10px; font-size: 18px; }
.kids-fun-fact { margin: 14px 0; }
.kids-fun-fact p { margin: 7px 0 0; font-family: 'Quatro Slab', Georgia, serif; font-size: 18px; line-height: 1.45; overflow-wrap: anywhere; }
.kids-unlock-date { margin: 0; color: var(--kids-slate); text-align: center; font-size: 12px; }

.kids-celebration-page { background: radial-gradient(ellipse 80% 50% at 50% 40%, #27518f 0%, #0e2148 64%); }
.kids-celebration-page > :is(.site-header, .bottom-nav, .site-footer) { display: none; }
.kids-celebration-page > .page-shell { padding: 0; }
.kids-celebration {
    display: flex;
    min-height: 100vh;
    min-height: 100svh;
    flex-direction: column;
    align-items: center;
    padding: max(68px, calc(env(safe-area-inset-top) + 15px)) 24px max(22px, env(safe-area-inset-bottom));
    color: white;
    text-align: center;
}
.kids-celebration h1 { margin: 4px 0 26px; }
.kids-celebration h1:focus { outline: none; }
.kids-celebration .kids-kicker { letter-spacing: .12em; }
.kids-reward {
    width: min(240px, 100%);
    border: 3px solid white;
    border-radius: 18px;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
    animation: kids-reveal .8s cubic-bezier(.2, .9, .25, 1.15) both;
}
.kids-reward .kids-number { top: 12px; left: 13px; font-size: 44px; }
.kids-reward .kids-card-label { padding: 30px 14px 12px; }
.kids-reward strong { font-size: 20px; font-weight: 900; font-style: italic; text-transform: uppercase; }
.kids-reward small { font-size: 10px; }
.kids-celebration-count { margin: 20px 0 0; color: rgba(255, 255, 255, .78); font-size: 14px; }
.kids-celebration-actions { display: grid; gap: 10px; width: 100%; margin-top: auto; padding-top: 24px; }

@keyframes kids-progress-fill { from { width: 0; } }
@keyframes kids-slide-in { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes kids-reveal {
    from { transform: perspective(900px) rotateY(-75deg) scale(.72); opacity: 0; }
    to { transform: perspective(900px) rotateY(0) scale(1); opacity: 1; }
}
@media (max-width: 759px) {
    .kids-page > .site-header { display: none; }
    .kids-page .bottom-nav a { font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
    .kids-page .bottom-nav a[aria-current] { color: var(--kids-navy); }
}
@media (min-width: 760px) {
    .kids-page > .page-shell { padding-top: 24px; padding-bottom: 36px; }
    .kids-hero { border-radius: 22px; }
    .kids-celebration-page > .page-shell { padding: 0; }
    .kids-dialog { bottom: 16px; max-height: calc(100% - 32px); border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) {
    .kids-reward, .kids-meter span, .kids-dialog[open] { animation: none; }
}
