@font-face {
    font-family: "28DaysLater";
    src: url("/fonts/28dayslater.woff2") format("woff2");
    font-display: swap;
}

:root {
    --bg: #0d0c0c;
    --panel: #1a1817;
    --gray: #7c716c;
    --bone: #ece6dc;
    --muted: #b9b0a8;
    --red: #b3191f;
    --gold: #e6c27a;
    --line: #2c2826;
    --max: 1040px;
    --focus: #fff;
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--bone);
    font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--bone); text-decoration-color: var(--red); text-underline-offset: 3px; }
a:hover, a:focus { color: #fff; text-decoration-color: #fff; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.skip {
    position: absolute;
    left: -999px;
}
.skip:focus {
    left: 10px;
    top: 10px;
    background: #fff;
    color: #000;
    padding: 8px 12px;
    z-index: 20;
}

.site-header {
    background: var(--gray);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .5);
    position: sticky;
    top: 0;
    z-index: 5;
}
.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 76px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #1a120f;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.brand img { width: 48px; height: auto; }
.nav, .subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav a, .nav button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 14px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-size: .85rem;
    color: #1a120f;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-family: inherit;
}
.nav form { margin: 0; }
.nav a[aria-current="page"] { background: rgba(0, 0, 0, .35); color: #fff; }
.nav a:hover, .nav button:hover { background: rgba(0, 0, 0, .25); color: #fff; }

.subnav { margin: 8px 0 20px; }
.subnav a {
    color: var(--bone);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-size: .85rem;
}
.subnav a[aria-current="page"] { background: var(--panel); border-radius: 4px; }

.display {
    font-family: "28DaysLater", Impact, "Arial Black", sans-serif;
    font-weight: normal;
    letter-spacing: .03em;
    line-height: 1.1;
    margin: 0;
}
.tagline { font-size: 1.15rem; color: var(--muted); margin: .6rem 0 0; }

.hero {
    text-align: center;
    padding: 36px 0 28px;
    background: radial-gradient(ellipse at center top, #2a2624 0%, var(--bg) 70%);
}
.hero img.crest {
    width: min(280px, 70vw);
    margin: 0 auto 20px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .6));
}
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }

.page-head { padding-top: 32px; padding-bottom: 8px; }
.page-head h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
.page-head p { color: var(--muted); margin: .5rem 0 0; }

.filters {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 20px 0 8px;
    align-items: end;
}
.filters .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters .btn { margin-top: 0; }

label { display: block; font-weight: 700; margin: .85rem 0 .3rem; }
input, select, textarea {
    width: 100%;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #3a342f;
    background: #12100f;
    color: var(--bone);
    font: inherit;
}
textarea { min-height: 120px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.check input { width: auto; }

.btn, button.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: 12px;
    padding: 10px 18px;
    border: 2px solid var(--red);
    border-radius: 4px;
    background: transparent;
    color: var(--bone);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    cursor: pointer;
    font: inherit;
}
.btn:hover, button.btn:hover { background: var(--red); color: #fff; }
.btn-small { min-height: 40px; margin-top: 0; padding: 6px 12px; font-size: .85rem; }
.btn-quiet { border-color: var(--gray); }

.cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding-top: 16px;
    padding-bottom: 48px;
}
.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px 18px 20px;
}
.card h2 { margin: 0 0 .35rem; font-size: 1.35rem; }
.card h2 a { text-decoration: none; }
.card h2 a:hover { text-decoration: underline; }
.meta { color: var(--muted); margin: 0 0 .6rem; }
.card p { margin: 0 0 .7rem; }

.star-row { letter-spacing: .08em; white-space: nowrap; }
.star { color: #5c534c; }
.star.on { color: var(--gold); }
.rating-line { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }

.lounge-photo {
    width: min(420px, 100%);
    border-radius: 8px;
    margin: 12px 0;
    border: 1px solid var(--line);
}

.star-options { display: flex; flex-wrap: wrap; gap: 8px; }
.star-options label {
    margin: 0;
    font-weight: 600;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 8px 10px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.star-options input { width: auto; }

.progress-label { font-size: 1.15rem; margin: 0 0 8px; }
.progress {
    height: 14px;
    background: #12100f;
    border: 1px solid var(--line);
    border-radius: 99px;
    overflow: hidden;
}
.progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #8a1d22, var(--gold));
}

.stamps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 18px;
    padding: 8px 0 28px;
}
.stamp {
    aspect-ratio: 1;
    border-radius: 50%;
    border: 3px dashed #5c534c;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 14px;
    text-decoration: none;
    color: var(--muted);
    background: transparent;
    gap: 4px;
}
.stamp strong { font-size: .95rem; line-height: 1.2; color: inherit; }
.stamp span { font-size: .8rem; }
.stamp.stamped {
    border-style: double;
    border-width: 6px;
    border-color: var(--gold);
    color: var(--bone);
    background: radial-gradient(circle, #2a221c, #14110f 72%);
    box-shadow: inset 0 0 0 3px #3a2a22;
    transform: rotate(-6deg);
}
.stamp:nth-child(2n).stamped { transform: rotate(4deg); }
.stamp:nth-child(3n).stamped { transform: rotate(-2deg); }

.stack { display: grid; gap: 16px; padding-bottom: 48px; }
.review { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.review header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.review h3 { margin: 0; font-size: 1.05rem; }

.status, .alert {
    margin: 16px auto;
    max-width: var(--max);
    padding: 12px 16px;
    border-radius: 6px;
}
.status { background: #1d2a22; border: 1px solid #3d5c48; }
.alert { background: #2a1616; border: 1px solid var(--red); }
.alert ul { margin: .3rem 0 0; padding-left: 1.2rem; }
.help { color: var(--muted); font-size: .95rem; }
.error { color: #ffd0d0; font-size: .95rem; margin: .2rem 0 0; }
.empty { color: var(--muted); padding: 12px 0 32px; }

.hp {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.pager {
    display: flex;
    gap: 16px;
    align-items: center;
    padding-bottom: 40px;
}

.site-footer {
    background: #000;
    border-top: 3px solid var(--gray);
    padding: 32px 0 20px;
    color: var(--muted);
    font-size: .95rem;
}
.site-footer .cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
.site-footer h2 {
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--bone);
    margin: 0 0 .5rem;
}
.site-footer p { margin: 0; }
.copyright { text-align: center; font-size: .85rem; margin-top: 28px; color: #c4bbb3; }

.lost { text-align: center; padding-top: 48px; padding-bottom: 72px; }
.lost img { width: 160px; margin: 0 auto 16px; }

.notes { white-space: pre-wrap; }
.feature-fields { border: 0; margin: 1rem 0 0; padding: 0; }
.feature-fields legend { font-weight: 700; margin-bottom: .4rem; }
.checks { display: grid; gap: 8px; }
.feature-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 1rem; padding: 0; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--line);
    background: #12100f;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: .92rem;
    line-height: 1.3;
}
.chip-icon { width: 16px; height: 16px; flex: 0 0 auto; color: var(--gold); }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.photo-slot {
    width: 120px;
    height: 120px;
    margin: 8px 0 4px;
    border: 3px double var(--gold);
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #2a1214;
    color: var(--gold);
    font-weight: 800;
    letter-spacing: .08em;
    font-size: 1.6rem;
}
.photo-slot img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 700px) {
    .filters { grid-template-columns: 1.3fr .7fr 1fr auto; }
    .checks { grid-template-columns: 1fr 1fr; }
    .filters .actions { padding-top: 1.85rem; }
    .cards { grid-template-columns: 1fr 1fr; }
    .site-footer .cols { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
    .site-header .wrap {
        flex-direction: column;
        align-items: stretch;
        padding: 10px 16px 12px;
        min-height: 0;
    }
    .brand { justify-content: center; }
    .nav { justify-content: center; }
    body { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .stamp.stamped, .stamp:nth-child(2n).stamped, .stamp:nth-child(3n).stamped { transform: none; }
}
