:root {
    color-scheme: light;
    --ink: #06111f;
    --muted: #526172;
    --line: #091423;
    --paper: #eef8ff;
    --panel: #ffffff;
    --green: #94d900;
    --green-dark: #4b8d00;
    --red: #ff3b30;
    --gold: #ffbf00;
    --blue: #17a8f5;
    --blue-dark: #075fb8;
    --navy: #07111f;
    --shadow: 0 18px 0 rgba(7, 17, 31, .18), 0 26px 48px rgba(7, 17, 31, .2);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 16% 8%, rgba(148, 217, 0, .22), transparent 28%),
        radial-gradient(circle at 88% 0%, rgba(255, 191, 0, .24), transparent 24%),
        linear-gradient(135deg, #f7fdff 0%, #e8f7ff 42%, #f7fbff 100%);
}

a {
    color: var(--green);
}

.site-header {
    border-bottom: 5px solid var(--navy);
    background:
        linear-gradient(90deg, rgba(23, 168, 245, .18), rgba(148, 217, 0, .16), rgba(255, 191, 0, .18)),
        #ffffff;
    box-shadow: 0 8px 0 rgba(7, 17, 31, .08);
}

.header-inner,
.wrap {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.header-inner {
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    width: min(250px, 52vw);
    min-width: 150px;
}

.brand img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 7px 0 rgba(7, 17, 31, .16));
}

.header-note {
    color: var(--navy);
    font-size: .98rem;
    font-weight: 800;
    max-width: 430px;
    text-align: right;
}

.hero {
    padding: 36px 0 34px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(320px, 1.35fr);
    gap: 32px;
    align-items: start;
}

.intro h1 {
    font-size: clamp(2rem, 5vw, 4.7rem);
    line-height: .96;
    margin: 0 0 18px;
    letter-spacing: 0;
    color: var(--navy);
    text-shadow: 0 5px 0 rgba(23, 168, 245, .14);
}

.intro p {
    color: #263647;
    font-size: 1.08rem;
    line-height: 1.6;
    margin: 0 0 20px;
    font-weight: 650;
}

.hero-logo {
    width: min(420px, 100%);
    margin: 0 0 20px;
    display: block;
    filter: drop-shadow(0 12px 0 rgba(7, 17, 31, .16));
}

.trust-strip {
    display: grid;
    gap: 10px;
    margin-top: 28px;
}

.trust-strip div {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--navy);
    font-weight: 850;
    background: rgba(255, 255, 255, .74);
    border: 3px solid var(--navy);
    border-radius: 8px;
    padding: 10px 12px;
    box-shadow: 0 5px 0 rgba(7, 17, 31, .14);
}

.dot {
    width: 13px;
    height: 13px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--gold), #ff8e00);
    border: 2px solid var(--navy);
    box-shadow: 0 0 0 4px rgba(255, 191, 0, .24);
    flex: 0 0 auto;
}

.form-panel,
.admin-panel,
.print-card {
    background: var(--panel);
    border: 5px solid var(--navy);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.form-panel {
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.form-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 10px;
    background: linear-gradient(90deg, var(--blue), var(--green), var(--gold), var(--red));
}

.form-panel h2,
.admin-panel h1,
.print-card h1 {
    margin: 0 0 18px;
    font-size: 1.35rem;
    color: var(--navy);
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.field {
    display: grid;
    gap: 7px;
    margin-bottom: 16px;
}

.field.full,
.checks,
.condition-grid {
    grid-column: 1 / -1;
}

label,
legend {
    font-weight: 750;
    font-size: .94rem;
    color: var(--navy);
}

input,
select,
textarea {
    width: 100%;
    border: 3px solid var(--navy);
    border-radius: 6px;
    padding: 12px 13px;
    font: inherit;
    background: #fafdff;
    color: var(--ink);
    box-shadow: inset 0 -4px 0 rgba(23, 168, 245, .08);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: 0;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(23, 168, 245, .22), inset 0 -4px 0 rgba(148, 217, 0, .16);
    transform: translateY(-1px);
}

textarea {
    min-height: 106px;
    resize: vertical;
}

.hint {
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.45;
}

fieldset {
    border: 3px solid var(--navy);
    border-radius: 8px;
    padding: 14px;
    margin: 0 0 16px;
    background: linear-gradient(180deg, rgba(23, 168, 245, .08), rgba(148, 217, 0, .06));
}

.check-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.check-row label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 3px solid var(--navy);
    border-radius: 6px;
    padding: 10px 12px;
    background: #fff;
    box-shadow: 0 4px 0 rgba(7, 17, 31, .14);
    cursor: pointer;
}

.check-row input,
.rating input {
    width: auto;
}

.condition-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.rating {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.rating label {
    display: grid;
    place-items: center;
    min-height: 42px;
    border: 3px solid var(--navy);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 800;
    background: #fff;
    box-shadow: 0 4px 0 rgba(7, 17, 31, .14);
}

.rating input {
    position: absolute;
    opacity: 0;
}

.rating label:has(input:checked) {
    background: linear-gradient(180deg, #c7ff1f, var(--green));
    color: #fff;
    border-color: var(--navy);
    color: var(--navy);
    transform: translateY(2px);
    box-shadow: 0 2px 0 rgba(7, 17, 31, .22);
}

.scale {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    color: var(--muted);
    font-size: .82rem;
}

.scale span {
    border-top: 4px solid var(--blue);
    padding-top: 6px;
    font-weight: 700;
}

.button-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.button,
button {
    appearance: none;
    border: 4px solid var(--navy);
    border-radius: 6px;
    padding: 12px 16px;
    min-height: 46px;
    background: linear-gradient(180deg, #c9ff1d, var(--green));
    color: var(--navy);
    font-weight: 850;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 0 var(--green-dark), 0 12px 20px rgba(7, 17, 31, .16);
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.button:hover,
button:hover {
    filter: saturate(1.12);
    transform: translateY(-1px);
}

.button:active,
button:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 var(--green-dark), 0 8px 16px rgba(7, 17, 31, .12);
}

.button.secondary {
    background: linear-gradient(180deg, #ffffff, #dff4ff);
    color: var(--ink);
    box-shadow: 0 6px 0 var(--blue-dark), 0 12px 20px rgba(7, 17, 31, .14);
}

.button.danger {
    background: linear-gradient(180deg, #ff7a70, var(--red));
    color: #fff;
}

.alert {
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 18px;
    background: #fff4c7;
    border: 3px solid var(--navy);
    box-shadow: 0 5px 0 rgba(7, 17, 31, .14);
}

.success {
    background: #eaffbf;
    border-color: var(--navy);
}

.admin-main {
    padding: 28px 0 60px;
}

.admin-panel {
    padding: 22px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    border-bottom: 2px solid #dcecf5;
    padding: 12px 8px;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.status {
    display: inline-flex;
    border-radius: 999px;
    padding: 5px 9px;
    background: #eaffbf;
    border: 2px solid var(--navy);
    font-size: .82rem;
    font-weight: 800;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.meta-list {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 9px 12px;
}

.meta-list dt {
    font-weight: 800;
    color: var(--muted);
}

.game-image {
    max-width: 100%;
    border-radius: 8px;
    border: 4px solid var(--navy);
}

.print-page {
    background: #eaf8ff;
    padding: 28px;
}

.print-card {
    width: min(720px, 100%);
    margin: 0 auto;
    padding: 28px;
}

.qr {
    width: 190px;
    height: 190px;
    border: 4px solid var(--navy);
    border-radius: 6px;
}

.pass-logo {
    width: min(280px, 75%);
    display: block;
    margin: 0 auto 16px;
    filter: drop-shadow(0 8px 0 rgba(7, 17, 31, .12));
}

@media (max-width: 860px) {
    .hero-grid,
    .field-grid,
    .condition-grid,
    .details-grid {
        grid-template-columns: 1fr;
    }

    .intro h1 {
        font-size: 2.35rem;
    }

    .header-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px 0;
    }

    .header-note {
        text-align: left;
    }

    .scale {
        grid-template-columns: 1fr;
    }

    table {
        display: block;
        overflow-x: auto;
    }
}

@media print {
    .no-print {
        display: none !important;
    }

    body,
    .print-page {
        background: #fff;
        padding: 0;
    }

    .print-card {
        box-shadow: none;
        border: 0;
    }
}
