:root {
    color-scheme: light;
    --background: #f5f7f0;
    --surface: #fffefa;
    --field: #fafbf6;
    --line: #dce4d7;
    --text: #25392e;
    --muted: #566b5c;
    --accent-link: #38664e;
    --green: #276a4a;
    --red: #a43d53;
    font: 16px/1.6 "Segoe UI", Tahoma, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body {
    isolation: isolate;
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background: var(--background);
}
.results-page { --muted: #3d5345; --line: #52694b36; }
.scenery {
    position: fixed;
    z-index: -2;
    inset: 0;
    overflow: hidden;
    background: #324c40;
    pointer-events: none;
}
.scenery::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(95deg, transparent 32%, #102c222e 100%);
}
.results-page .scenery::after {
    background: linear-gradient(180deg, #122b2010, #122b202e);
}
.scenery-depth {
    position: absolute;
    inset: 0;
    transform: translate3d(var(--depth-x, 0px), var(--depth-y, 0px), 0);
    transition: transform 800ms ease-out;
}
.scene-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transform: scale(1.017);
    transition: opacity 1s ease, transform 15s linear;
}
.scene-image.is-visible { opacity: 1; transform: scale(1.04); }
.scene-image[data-focus="left"] { object-position: 15% center; }
.scene-image[data-focus="right"] { object-position: right center; }
.scene-effects {
    position: fixed;
    z-index: -1;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.scene-particles { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene-effects::before, .scene-effects::after {
    position: absolute;
    inset: 30% -12% -8%;
    content: "";
    opacity: 0;
    pointer-events: none;
}
[data-scene-effect="waterfall"] .scene-effects::before {
    background: radial-gradient(ellipse at 25% 73%, #ddfff148, transparent 39%);
    animation: waterfall-mist 8s ease-in-out infinite alternate;
}
[data-scene-effect="waterfall"] .scene-effects::after {
    inset: 25% 27% 2% -5%;
    background: radial-gradient(ellipse at 45% 92%, #edfff173, transparent 26%);
    animation: waterfall-mist 12s ease-in-out -3s infinite alternate-reverse;
}
[data-scene-effect="mountain"] .scene-effects::before {
    inset: 8% -12% 0;
    background: radial-gradient(ellipse at 29% 46%, #f3fbffd0, transparent 35%);
    animation: mountain-cloud 18s ease-in-out infinite alternate;
}
[data-scene-effect="lake"] .scene-effects::before,
[data-scene-effect="coast"] .scene-effects::before {
    inset: 48% 0 -20%;
    background: repeating-linear-gradient(178deg, transparent 0 26px, #f6fffe27 27px, transparent 35px);
    mask-image: radial-gradient(ellipse at 48% 72%, #000 11%, transparent 65%);
    animation: water-shimmer 7s ease-in-out infinite alternate;
}
[data-scene-effect="coast"] .scene-effects::before {
    inset-block-start: 35%;
    animation-duration: 4.8s;
}
@keyframes waterfall-mist {
    from { opacity: .32; transform: translate(-3%, 5%) scale(.94); }
    to { opacity: .78; transform: translate(6%, -4%) scale(1.17); }
}
@keyframes mountain-cloud {
    from { opacity: .15; transform: translateX(-7%); }
    to { opacity: .45; transform: translateX(18%); }
}
@keyframes water-shimmer {
    from { opacity: .18; transform: translate(-2%, 2%) scale(.99); }
    to { opacity: .55; transform: translate(1%, -2%) scale(1.03); }
}
.falling-leaf {
    --size: 32px;
    --duration: 19s;
    --delay: -3s;
    --start: 9%;
    --bend: 34px;
    --angle: 57deg;
    position: absolute;
    display: none;
    top: -48px;
    left: var(--start);
    width: var(--size);
    aspect-ratio: 1;
    background: url("assets/canopy-leaf.webp") center / contain no-repeat;
    filter: drop-shadow(0 2px 2px #19351e26);
    animation: leaf-fall var(--duration) var(--delay) linear infinite;
}
[data-scene-effect="forest"] .falling-leaf { display: block; }
.falling-leaf:nth-child(2) { --start: 16%; --size: 23px; --duration: 25s; --delay: -18s; --bend: -55px; --angle: 105deg; }
.falling-leaf:nth-child(3) { --start: 26%; --size: 36px; --duration: 27s; --delay: -11s; --bend: 68px; --angle: -50deg; }
.falling-leaf:nth-child(4) { --start: 36%; --duration: 24s; --delay: -20s; --bend: 35px; --angle: 35deg; }
.falling-leaf:nth-child(5) { --start: 42%; --size: 26px; --duration: 21s; --delay: -8s; --bend: -55px; --angle: -20deg; }
.falling-leaf:nth-child(6) { --start: 51%; --size: 34px; --duration: 28s; --delay: -19s; --bend: 66px; --angle: 100deg; }
.falling-leaf:nth-child(7) { --start: 60%; --size: 22px; --duration: 19s; --delay: -14s; --bend: -38px; --angle: -80deg; }
.falling-leaf:nth-child(8) { --start: 71%; --size: 29px; --duration: 25s; --delay: -4s; --bend: 48px; --angle: 65deg; }
.falling-leaf:nth-child(9) { --start: 83%; --size: 24px; --duration: 26s; --delay: -17s; --bend: -40px; --angle: -30deg; }
.falling-leaf:nth-child(10) { --start: 93%; --size: 29px; --duration: 23s; --delay: -7s; --bend: -63px; --angle: 43deg; }
.falling-leaf:nth-child(3n) { filter: sepia(.55) saturate(1.15) drop-shadow(0 2px 2px #19351e26); }
@keyframes leaf-fall {
    0% { transform: translate(0, 0) rotate(var(--angle)); opacity: 0; }
    10% { opacity: .85; }
    24% { transform: translate(var(--bend), 26vh) rotate(calc(var(--angle) + 67deg)); }
    49% { transform: translate(0, 52vh) rotate(calc(var(--angle) + 151deg)); }
    73% { transform: translate(var(--bend), 76vh) rotate(calc(var(--angle) + 232deg)); }
    93% { opacity: .8; }
    100% { transform: translate(0, calc(100vh + 85px)) rotate(calc(var(--angle) + 325deg)); opacity: 0; }
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent-link); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.65rem, 4.7vw, 2.8rem); line-height: 1.25; font-weight: 750; }
h2 { font-size: 1.12rem; }
h3 { font-size: 1rem; }
.muted { color: var(--muted); }
.skip { position: absolute; z-index: 2; inset-inline-start: .8rem; top: .6rem; padding: .5rem 1rem; background: var(--surface); transform: translateY(-160%); }
.skip:focus { transform: none; }

.site-header { background: #f9fcf2cf; border-bottom: 1px solid #eef6e998; backdrop-filter: blur(8px); }
.header-inner {
    width: min(100% - 3rem, 80rem);
    min-height: 76px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .85rem;
}
.brand { display: inline-flex; align-items: center; gap: .75rem; font-weight: 750; white-space: nowrap; }
.brand small { display: block; font-size: .72rem; letter-spacing: .09em; color: var(--muted); text-align: right; }
.brand-icon {
    position: relative;
    display: inline-grid;
    flex: none;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #437359;
    background: #e5eee2;
    border: 1px solid #d8e5d6;
    border-radius: 14px;
}
.brand-icon::after { content: ""; position: absolute; top: 41%; left: 49%; width: 2px; height: 35%; border-radius: 5px; background: currentColor; rotate: 11deg; }
.brand-icon i { position: absolute; top: 40%; left: 24%; width: 25%; height: 18%; border-radius: 85% 15% 85% 15%; background: currentColor; rotate: 64deg; }
.brand-icon i:nth-child(2) { top: 26%; left: 48%; width: 31%; height: 22%; rotate: -13deg; }
.account-nav { display: flex; align-items: center; gap: 1rem; font-size: .88rem; }
.account-nav a, .pagination a { color: var(--accent-link); }
.account-nav a:hover, .pagination a:hover { text-decoration: underline; }
.account-nav a[aria-current="page"] { font-weight: 750; }
.game-invitation {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem 1rem;
    width: min(100% - 1.5rem, 65rem);
    margin: 1rem auto 0;
    padding: .75rem 1rem;
    border: 1px solid #bd9254;
    border-radius: .85rem;
    background: #fff4dc;
    color: #34321d;
}
.game-invitation[hidden] { display: none; }
.game-invitation p { margin: 0; font-weight: 700; }

.button { display: inline-flex; justify-content: center; align-items: center; min-height: 42px; padding: .55rem 1rem; border-radius: 10px; border: 1px solid transparent; cursor: pointer; font-weight: 700; }
.button.primary { background: #356349; color: #fff; box-shadow: 0 4px 12px #355d431c; }
.button.primary:hover { background: #284f3a; }
.button.secondary { color: var(--text); background: #f5f8f0; border-color: var(--line); }
.button.secondary:hover { background: #e8f0e5; }
.button.small { min-height: 32px; padding: .2rem .5rem; border-radius: 7px; font-size: .83rem; }
.button.danger { color: #91364b; background: #fbf0f2; border-color: #eed5dc; }
.button.danger:hover { background: #f6e2e8; }
.panel { background: #f8faefbe; border: 1px solid #f1f7e9b5; border-radius: 20px; box-shadow: 0 10px 30px #162b2438; backdrop-filter: blur(4px); }
.notice { margin-block: 0 1.1rem; padding: .72rem .9rem; border: 1px solid #e8c5ce; border-radius: 10px; background: #fbecf0; color: #8d3146; }
.notice.success { border-color: #c6ddcc; background: #e9f5ea; color: #2e6245; }

.auth {
    display: grid;
    align-items: center;
    justify-items: start;
    width: min(100% - 3rem, 80rem);
    min-height: calc(100svh - 77px);
    margin-inline: auto;
    padding: 2.8rem clamp(0rem, 3vw, 3rem) 4rem;
}
.auth-card {
    width: min(100%, 25rem);
    padding: clamp(1.4rem, 4.8vw, 2.35rem);
    background: #fcf9ebce;
    border: 1px solid #ffffffdd;
    border-radius: 25px;
    box-shadow: 0 25px 75px #1e3b2a47, 0 2px 8px #1e3b2a15;
    backdrop-filter: blur(9px);
}
.auth-icon { width: 50px; height: 50px; margin-bottom: 1.2rem; }
.auth h1 { font-size: clamp(1.75rem, 5vw, 2.3rem); margin-bottom: .4rem; }
.auth .fields, .auth .notice { margin-top: 1.35rem; }
.auth .button { min-height: 47px; margin-top: .2rem; }
.fields { display: grid; gap: 1rem; }
.fields > label { display: grid; gap: .36rem; }
.fields label, legend { font-size: .91rem; font-weight: 650; }
.fields input:not([type=radio]), .fields textarea, .fields select {
    width: 100%;
    min-width: 0;
    min-height: 43px;
    padding: .53rem .72rem;
    color: var(--text);
    background: #fffef4b8;
    border: 1px solid #cad8cc;
    border-radius: 9px;
    font-size: 1rem;
}
.fields select {
    appearance: none;
    padding-inline-end: 2rem;
    background-image: linear-gradient(45deg, transparent 50%, #50705b 50%), linear-gradient(135deg, #50705b 50%, transparent 50%);
    background-repeat: no-repeat;
    background-size: 5px 5px;
    background-position: 13px center, 18px center;
}
.fields input::placeholder, .fields textarea::placeholder { color: #65776b; opacity: 1; }
.fields textarea { resize: vertical; }
.fields .hint { margin-top: -.72rem; }

.workspace { width: min(100% - 4rem, 65rem); margin: 1.6rem auto 3rem; }
.settings-workspace { max-width: 52rem; margin-bottom: 5rem; }
.settings-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.25rem; }
.settings-heading h1 { color: #f7fcf5; background: #142c24e5; border-radius: 13px; padding: .55rem .85rem; }
.settings-heading .button { font-size: .9rem; }
.settings-grid { display: grid; grid-template-columns: minmax(12rem, .65fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.settings-profile, .settings-password { padding: clamp(1.15rem, 3.5vw, 1.8rem); }
.settings-profile .brand-icon { margin-bottom: .75rem; }
.settings-profile p { margin-top: .25rem; overflow-wrap: anywhere; }
.settings-password .fields, .settings-password .notice { margin-top: 1rem; }
.avatar { display: grid; flex: none; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: #35624a; background: #e1eee0; font-weight: 750; }
.hero {
    display: flex;
    align-items: end;
    min-height: clamp(190px, 25vh, 235px);
    padding: .5rem 0;
    margin-block-end: 1.1rem;
}
.hero-copy {
    max-width: 100%;
    color: #f7fcf5;
}
.hero-title { text-shadow: 0 2px 6px #0a1a12; }
.hero-title img {
    display: block;
    width: clamp(230px, 51vw, 455px);
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 1px 2px #13261b) drop-shadow(0 3px 9px #081810db);
}
.button.hero-action { margin-top: .75rem; background: #e0efdef0; color: #204634; box-shadow: 0 3px 14px #132e2645; }
.button.hero-action:hover { background: #f0f8ee; }
.challenge-section { position: relative; margin-bottom: 1rem; }
.challenge-admin { padding: .7rem 1rem; border-bottom: 1px solid var(--line); }
.challenge-admin summary { color: var(--accent-link); cursor: pointer; font-weight: 700; }
.challenge-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: .75rem 0 .3rem; }
.challenge-description { grid-column: 1 / -1; }
.challenge-fields button { justify-self: start; }
.challenge-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; padding: 1rem; }
.challenge-card { min-width: 0; padding: .85rem 1rem; border: 1px solid #f7faf3c9; border-radius: 14px; background: #fbfdf65c; }
.challenge-card:only-child { grid-column: 1 / -1; }
.challenge-card h3, .challenge-reward strong { overflow-wrap: anywhere; }
.challenge-card h3 { font-size: 1.15rem; }
.challenge-reward { display: flex; justify-content: space-between; gap: 1rem; margin: .65rem 0 .35rem; }
.challenge-reward .muted { font-size: .85rem; }
.reward-amount { color: var(--green); font-size: 1.1rem; }
.challenge-clock { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .45rem; margin-top: .8rem; }
.challenge-clock[hidden] { display: none; }
.challenge-clock > span { display: grid; justify-items: center; padding: .35rem .15rem; border-radius: 8px; background: #e6f0e4c9; }
.clock-number { color: #2c5941; font-size: clamp(1rem, 3.4vw, 1.4rem); font-variant-numeric: tabular-nums; }
.challenge-clock small, .challenge-deadline { color: var(--muted); font-size: .85rem; }
.challenge-deadline { margin-top: .5rem; }
.challenge-deadline time { display: inline; margin-inline-start: .3rem; font-size: inherit; }
.challenge-expired { color: #735527; margin-top: .7rem; font-size: .9rem; }
.winner-form { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: .55rem; padding-top: .6rem; margin-top: .55rem; border-top: 1px solid var(--line); }
.winner-form .button { font-size: .88rem; }
.winner-note { grid-column: 1 / -1; font-size: .85rem; }
.award-preview { color: #264d39; background: #e7f1e5; border: 1px solid #d2e3d0; border-radius: 8px; padding: .35rem .6rem; font-weight: 650; }
.challenge-winner { display: grid; gap: .2rem; margin-top: .75rem; padding: .55rem .7rem; border-radius: 9px; background: #e9f2e5; }
.winner-record { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .15rem .75rem; margin-top: .25rem; }
.challenge-winner a { color: var(--accent-link); text-decoration: underline; text-underline-offset: .14em; }
.award-celebration { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: inherit; }
.award-celebration span { position: absolute; top: 2.75rem; left: 50%; width: 7px; height: 10px; border-radius: 3px; background: #568665; }
.award-celebration span:nth-child(3n + 1) { background: #e1ae51; }
.award-celebration span:nth-child(3n + 2) { background: #d88f99; }
.month-panel { display: grid; grid-template-columns: 1fr auto; gap: .8rem 1.25rem; align-items: center; padding: .85rem 1rem; margin-bottom: 1rem; }
.month-heading { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; }
.month-filter { grid-template-columns: auto minmax(9.5rem, 1fr) auto; align-items: center; gap: .5rem; }
.rollover { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: .65rem; }
.rollover summary { cursor: pointer; color: var(--accent-link); font-weight: 700; }
.rollover p { margin: .65rem 0; color: var(--muted); }
.photo-source-link { display: inline-block; margin-top: .8rem; color: var(--muted); font-size: .85rem; }
.photo-source-link:hover, .photo-source-link:focus-visible { text-decoration: underline; }
.credits-page { background: #edf3e8; }
.credits-workspace { max-width: 62rem; }
.credits-workspace h1, .credits-workspace > p { margin-bottom: 1rem; }
.credits-list { padding: .5rem 2.2rem; }
.credits-list li { padding: .7rem .2rem; overflow-wrap: anywhere; }
.credits-list li + li { border-top: 1px solid var(--line); }
.credits-list a { color: var(--accent-link); text-decoration: underline; text-underline-offset: .15em; }
.credits-list .source-info {
    display: block;
    margin-top: .15rem;
    color: var(--muted);
}

.score-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; align-items: start; }
.score-card { min-width: 0; overflow: hidden; }
.score-head { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; padding: 1rem; }
.score-head h2 { font-size: clamp(1rem, 2.4vw, 1.25rem); overflow-wrap: anywhere; }
.score-head .self { margin-inline-start: auto; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin: 0 1rem 1rem; }
.metric { min-width: 0; border: 1px solid #f6faf3bf; border-radius: 13px; background: #f8faf48a; padding: .65rem .7rem .7rem; }
.bonus { --accent: var(--green); --tint: #e5f3e9; }
.deduct { --accent: var(--red); --tint: #f9e9ed; }
.metric.total { --accent: #fff; --tint: #ffffff24; background: #385946; border-color: #385946; }
.metric.total small { color: #edf4ec; }
.metric-head { display: flex; justify-content: space-between; align-items: center; gap: .3rem; color: var(--accent); font-size: .97rem; font-weight: 700; }
.metric-icon, .editor-icon { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 8px; color: var(--accent); background: var(--tint); font-size: 1.22rem; line-height: 1; }
.metric strong { display: block; margin: .38rem 0 .08rem; text-align: right; overflow-wrap: anywhere; font-size: clamp(1.2rem, 4.3vw, 2.08rem); font-weight: 750; line-height: 1.25; color: var(--accent); font-variant-numeric: tabular-nums; }
.metric small { color: var(--muted); font-size: .85rem; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .9rem 1rem; border-bottom: 1px solid var(--line); }
.score-card .section-head { border-top: 1px solid var(--line); background: #fafbf759; }
.count { flex: none; color: var(--muted); background: #edf3e9; border-radius: 6px; padding: .13rem .5rem; font-size: .83rem; }
.empty { text-align: center; padding: 1.6rem 1rem; }
.empty p { font-size: .91rem; }
.editor-icon { --accent: var(--accent-link); --tint: #e8f1e7; }
.editor { margin-top: 1.15rem; scroll-margin-top: 1rem; }
.editor-fields { padding: 1rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .65fr); align-items: end; }
.editor-description { grid-column: 1 / -1; }
.editor-fields .primary { justify-self: start; }
fieldset { border: 0; min-width: 0; margin: 0; padding: 0; }
legend { margin-bottom: .4rem; padding: 0; }
.toggles { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.toggles label { position: relative; cursor: pointer; }
.toggles input { position: absolute; opacity: 0; }
.toggles span { display: grid; place-items: center; padding: .44rem .2rem; border: 1px solid #cad8cc; border-radius: 8px; color: var(--muted); }
.toggles input:checked + span { color: var(--accent); background: var(--tint); border-color: var(--accent); }
.toggles input:focus-visible + span { outline: 2px solid var(--accent-link); outline-offset: 3px; }
table { width: 100%; border-collapse: collapse; text-align: start; font-size: .92rem; table-layout: fixed; }
th, td { padding: .6rem .7rem; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: .85rem; }
th:first-child { width: 25%; }
th:last-child { width: 23%; }
tbody tr:last-child td { border-bottom: 0; }
.badge { display: inline-block; color: var(--accent); background: var(--tint); border-radius: 6px; padding: .11rem .39rem; font-weight: 700; font-size: .81rem; }
time { display: block; color: var(--muted); font-size: .75rem; text-align: right; margin-top: .25rem; }
.description { white-space: pre-wrap; overflow-wrap: anywhere; }
.entry-action { margin-top: .35rem; }
.entry-action summary::-webkit-details-marker { display: none; }
.entry-action .cancel-label, .entry-action[open] .remove-label { display: none; }
.entry-action[open] .cancel-label { display: inline; }
.remove-confirmation { margin-top: .4rem; padding: .5rem; background: #fbf0f2; border-radius: 8px; }
.remove-confirmation p { margin-bottom: .35rem; color: #703244; font-size: .85rem; }
.entry-amount { color: var(--accent); font-weight: 750; text-align: right; overflow-wrap: anywhere; }
.pagination { display: flex; gap: .8rem; margin: .5rem .7rem; padding-top: .6rem; border-top: 1px solid var(--line); font-size: .88rem; }
.archive-panel { margin-top: 1rem; scroll-margin-top: 1rem; }
.archive-panel summary { cursor: pointer; font-weight: 700; border-bottom: 0; }
.archive-panel[open] summary { border-bottom: 1px solid var(--line); }
.archive-panel summary::before {
    content: "";
    width: 8px;
    height: 8px;
    margin-inline: .15rem;
    border-bottom: 2px solid var(--accent-link);
    border-left: 2px solid var(--accent-link);
    transform: rotate(45deg);
}
.archive-panel[open] summary::before { transform: rotate(-45deg); }
.archive-panel summary .count { margin-inline-start: auto; }
.archive-panel .notice { margin: .8rem 1rem; }
.archive-list { list-style: none; margin: 0; padding: 0; }
.archive-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: start; gap: .7rem; padding: .7rem 1rem; }
.archive-list li + li { border-top: 1px solid var(--line); }
.archive-list p { color: var(--muted); font-size: .9rem; }

@media (max-width: 50rem) {
    .score-grid { grid-template-columns: minmax(0, 1fr); }
    .challenge-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 45rem) {
    .header-inner, .workspace { width: calc(100% - 1.5rem); }
    .workspace { margin-top: 1rem; }
    .settings-grid { grid-template-columns: 1fr; }
    .winner-form { grid-template-columns: minmax(0, 1fr); }
    .winner-form .button { justify-self: start; }
    .month-panel { grid-template-columns: minmax(0, 1fr); }
    .month-filter { grid-template-columns: auto minmax(0, 1fr) auto; }
    .hero { min-height: 185px; }
    .hero-title img { max-width: min(100%, 81vw); }
    .auth { width: calc(100% - 2rem); padding: 4.75rem 0 4.2rem; justify-items: center; }
    .auth-card { background: #fcf9ebd6; }
    .scene-image { object-position: 43% center; }
    .scene-image[data-focus="left"] { object-position: 34% center; }
    .scene-image[data-focus="right"] { object-position: 68% center; }
    [data-scene-effect="forest"] .falling-leaf:nth-child(even) { display: none; }
    .metrics { gap: .45rem; margin-inline: .75rem; }
    .metric { padding: .55rem .5rem .6rem; }
    .metric-icon { width: 21px; height: 21px; font-size: 1rem; }
    .metric-head, .metric small { font-size: .8rem; }
    .editor-fields { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 23rem) {
    .header-inner { flex-wrap: wrap; }
    .account-nav { flex-wrap: wrap; gap: .5rem; }
    .account-nav .button { padding-inline: .6rem; }
    .brand { gap: .35rem; }
    .brand-icon { width: 35px; }
    th, td { padding-inline: .4rem; }
}
