:root {
    --bg: #fff8d9;
    --card: #fffdf4;
    --text: #46371f;
    --accent: #f0b429;
    --accent-dark: #d99812;
    --muted: #7a6a43;
    --border: #f1d88b;
    --warning: #fff1b8;
    --error: #ffe0db;
    --success: #ecf8d7;
}

* {
    box-sizing: border-box;
}

.hidden {
    display: none !important;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top left, #fff7bf 0, #fff7bf 18%, transparent 18%),
        radial-gradient(circle at top right, #ffe88d 0, #ffe88d 12%, transparent 12%),
        linear-gradient(180deg, #fffbea 0%, var(--bg) 100%);
    color: var(--text);
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(90deg, #fff3a8 0%, #ffe27a 100%);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 10px rgba(180, 138, 27, 0.12);
}

.brand a,
.top-nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
}

.top-nav {
    display: flex;
    gap: 1rem;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem;
}

.card,
.inner-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.narrow {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.center {
    text-align: center;
}

.easter-hero {
    background: linear-gradient(180deg, #fffdf2 0%, #fff3c3 100%);
    border: 1px solid #efd173;
}

.hero-icons,
.celebration-row {
    font-size: 2rem;
    letter-spacing: 0.35rem;
    margin: 0 0 0.75rem;
}

.soft-list {
    margin: 0.85rem 0 0;
    padding-left: 1.2rem;
    color: var(--muted);
    line-height: 1.5;
}

.score-pill {
    display: inline-block;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: #fff2b0;
    border: 1px solid #efd173;
    font-weight: 700;
    margin-bottom: 0.85rem;
}

.hint-list {
    display: grid;
    gap: 0.75rem;
    margin: 1rem 0;
}

.hint-card,
.post-hint-card {
    background: #fffdf4;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0.9rem;
}

.hint-card h3,
.post-hint-card h3 {
    margin-top: 0;
}

.inline-form {
    margin: 0.75rem 0 1rem;
}

.inline-form.no-margin {
    margin: 0;
}

.post-hint-grid {
    display: grid;
    gap: 1rem;
}

.hint-picker-card,
.question-picker-card {
    margin-top: 0.75rem;
}

.post-hint-forms {
    margin-top: 1rem;
}

.section-actions {
    margin-top: 0.75rem;
}

.form-grid-2 {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.question-edit-forms {
    margin-top: 1rem;
}

.question-edit-form {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fffef8;
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 1rem;
}

.header-edit-row {
    align-items: stretch;
    margin-bottom: 0.5rem;
}

.header-edit-main {
    flex: 1;
}

.header-title-label {
    display: block;
    margin-bottom: 0.35rem;
}

.header-title-input {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.header-edit-main p {
    margin: 0;
}

.header-edit-side {
    min-width: 220px;
    display: grid;
    gap: 0.5rem;
    align-content: start;
}

.stack-form {
    display: grid;
    gap: 0.75rem;
}

label {
    font-weight: 600;
}

input,
select,
textarea,
button {
    font: inherit;
}

input,
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: 10px;
    border: 1px solid #c8d3cb;
    background: #fff;
}

textarea {
    min-height: 86px;
    resize: vertical;
}

button,
.button-link {
    display: inline-block;
    border: 0;
    border-radius: 10px;
    padding: 0.8rem 1rem;
    background: var(--accent);
    color: #4d3702;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(213, 159, 24, 0.2);
}

button:hover,
.button-link:hover {
    background: var(--accent-dark);
}

.button-link.secondary {
    background: #fff6cf;
    color: var(--text);
}

.button-link.danger {
    background: #f6c9c2;
    color: #6d1f13;
}

.button-link.danger:hover {
    background: #eba89d;
}

.flash-stack {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.flash {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.flash-success {
    background: var(--success);
}

.flash-warning {
    background: var(--warning);
}

.flash-error {
    background: var(--error);
}

.flash-info {
    background: #e8f0ff;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: #eef3ef;
    font-size: 0.9rem;
}

.hunt-list {
    display: grid;
    gap: 0.75rem;
}

.hunt-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.qr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.qr-card img {
    width: 100%;
    max-width: 180px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    display: block;
    margin: 0 auto 0.5rem;
    background: #fff;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
 td {
    padding: 0.65rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.option-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-weight: 400;
}

.option-row input {
    width: auto;
}

.eyebrow {
    color: var(--muted);
    font-size: 0.95rem;
}

.lead {
    font-size: 1.1rem;
    line-height: 1.55;
}

.info-box {
    padding: 0.9rem 1rem;
    border-radius: 12px;
    background: #fff8cf;
    border: 1px solid var(--border);
}

code {
    word-break: break-all;
}

.scanner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.scanner-actions.small-gap {
    margin-top: 0.75rem;
}

.scanner-panel {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px dashed #b9cbbb;
    border-radius: 14px;
    background: #fbfdfb;
}

.scanner-status {
    margin: 0 0 0.75rem;
}

.scanner-video {
    width: 100%;
    border-radius: 12px;
    background: #111;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.help-text {
    color: var(--muted);
    line-height: 1.45;
    margin-bottom: 0;
}

.strong-space {
    margin-top: 0.6rem;
}

.visually-hidden,
.hidden {
    display: none !important;
}

@media (max-width: 700px) {
    .site-header,
    .card-header-row,
    .hunt-item,
    .scanner-actions {
        flex-direction: column;
        align-items: stretch;
    }
}
