:root {
    --ink: #19293d;
    --sky: #7db5ff;
    --sky2: #bcd6f0;
    --or: #f3951f;
    --paper: #fffdf6;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font: 16px "Comic Relief", sans-serif;
    background: radial-gradient(var(--sky) 1.6px, transparent 1.7px) 0 0/14px 14px, linear-gradient(var(--sky),var(--sky2));
}

main {
    max-width: 560px;
    margin: 0 auto;
    padding: max(18px, env(safe-area-inset-top)) 16px calc(220px + env(safe-area-inset-bottom))
}

header {
    position: relative;
    text-align: center;
    padding: 26px 12px 22px;
    margin-bottom: 18px;
    border: 4px solid var(--ink);
    background: var(--paper);
    box-shadow: 6px 6px 0 var(--ink);
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255, 122, 0, .22) 0 3deg, transparent 3deg 9deg);
    z-index: 0;
}

header>* {
    position: relative;
}

header img {
    max-width: 90%;
    max-height: 220px;
}

h1 {
    margin: 0;
    font: 700 52px "Concert One", sans-serif;
    color: var(--or);
    letter-spacing: .2px;
    transform: rotate(-2deg);
    -webkit-text-stroke: 3px #ffffff;
    paint-order: stroke fill;
    text-shadow: 0px 0px 8px var(--ink);
}

header p {
    margin: 16px 0 0;
    font-weight: 700;
}

.search {
    position: relative;
}

input {
    width: 100%;
    height: 56px;
    padding: 0 16px;
    font: inherit;
    font-size: 18px;
    border: 4px solid var(--ink);
    border-radius: 0;
    background: #fff;
    box-shadow: 5px 5px 0 var(--ink);
    appearance: none;
}

input:focus-visible,
button:focus-visible {
    border-color: var(--or);
    outline: none;
}

ul {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
    position: absolute;
    left: 0;
    right: 0;
    z-index: 5;
    border: 4px solid var(--ink);
    background: var(--paper);
    box-shadow: 5px 5px 0 var(--ink);
}

li button {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 8px 14px;
    text-align: left;
    font: inherit;
    font-weight: 700;
    background: none;
    border: 0;
    border-bottom: 2px solid var(--ink);
    cursor: pointer;
}

li:last-child button {
    border-bottom: 0;
}

li button:hover,
li button:focus-visible {
    background: var(--or);
    outline-offset: -4px;
}

li small {
    display: block;
    font-weight: 400;
    opacity: .75;
}

.note {
    margin: 22px 4px 0;
    font-weight: 700;
    text-align: center;
}

.card {
    margin-top: 26px;
    padding: 20px 18px;
    border: 4px solid var(--ink);
    background: var(--paper);
    box-shadow: 7px 7px 0 var(--ink);
    animation: pop .35s ease-out;
}

.ph {
    margin: 0 0 6px;
    font-weight: 700;
    opacity: 0.5;
}

h2 {
    margin: 0 0 8px;
    letter-spacing: -0.05em;
    transform: rotate(-2deg);
    font: 700 clamp(36px, 9vw, 52px) "Concert One", sans-serif;
    color: var(--or);
    -webkit-text-stroke: 4px #fff;
    paint-order: stroke fill;
    text-shadow: 0px 0px 8px var(--ink);
    overflow-wrap: anywhere;
    text-align: center;
}

.pd {
    text-align: center;
}

.league {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin: 18px auto 6px;
    font-weight: 800;
    font-size: 20px;
}

.badge {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border: 6px solid var(--ink);
    border-radius: 50%;
    background: var(--sky);
    font: 700 36px "Concert One", sans-serif;
    box-shadow: 3px 3px 0px var(--ink);
}

.badge.M {
    background: #b48cf2;
}

.badge.S {
    background: var(--or);
}

.special {
    margin: 10px 0 0;
    padding: 10px 12px;
    border: 3px solid var(--ink);
    background: var(--sky);
    font-weight: 800;
    text-align: center;
}

button#save {
    width: 100%;
    min-height: 54px;
    margin-top: 18px;
    font: 800 18px "Comic Relief", sans-serif;
    color: var(--ink);
    background: var(--or);
    border: 4px solid var(--ink);
    box-shadow: 4px 4px 0 var(--ink);
    cursor: pointer;
}

button#save:active {
    transform: translate(3px, 3px);
    box-shadow: 1px 1px 0 var(--ink);
}

.fin {
    margin: 20px 0 0;
    padding-top: 14px;
    border-top: 3px dashed var(--ink);
    font-size: 15px;
}

@keyframes pop {
    from {
        transform: scale(.94) rotate(-1deg);
        opacity: 0;
    }

    to {
        transform: none;
        opacity: 1;
    }
}

@media (prefers-reduced-motion:reduce) {
    .card {
        animation: none;
    }
}

.concert-one-regular {
  font-family: "Concert One", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.comic-relief-regular {
  font-family: "Comic Relief", system-ui;
  font-weight: 400;
  font-style: normal;
}

.comic-relief-bold {
  font-family: "Comic Relief", system-ui;
  font-weight: 700;
  font-style: normal;
}
