:root {
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "YuGothic", Meiryo, "Noto Sans JP", sans-serif;
    --ink: #f8ead7;
    --muted: #c6b6a0;
    --night: #100f14;
    --ember: #f08b36;
    --coal: #211712;
    --panel: rgba(26, 21, 19, 0.78);
    --line: rgba(255, 239, 210, 0.16);
    --green: #82b58f;
    --red: #d96b4c;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-sans);
    background:
        radial-gradient(circle at 50% 70%, rgba(240, 139, 54, 0.2), transparent 28rem),
        linear-gradient(180deg, #12131d 0%, #181417 48%, #0c0b0b 100%);
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.topbar,
.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem clamp(1rem, 4vw, 3rem);
    position: relative;
    z-index: 5;
}

.brand {
    font-family: var(--font-sans);
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-logo {
    flex: 0 0 auto;
    width: 1.5em;
    height: 1.5em;
    color: var(--ember);
    filter: drop-shadow(0 0 10px rgba(240, 139, 54, 0.4));
}

.brand-logo .logo-core {
    color: #ffe2a3;
}

.brand-text {
    line-height: 1;
}

.topbar nav,
.site-footer {
    flex-wrap: wrap;
}

.topbar nav {
    display: flex;
    gap: 1rem;
    color: var(--muted);
}

.topbar .stats-board {
    flex: 0 1 auto;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    width: auto;
    max-width: min(100%, 640px);
    padding: 0.35rem 0.5rem;
    white-space: nowrap;
    overflow: hidden;
}

.topbar .stats-heading {
    flex: 0 0 auto;
    font-size: 0.72rem;
    white-space: nowrap;
}

.topbar .stats-grid {
    flex: 1 1 auto;
    min-width: 0;
}

.topbar .stats-list {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    font-size: 0.72rem;
    line-height: 1.1;
    min-width: 0;
    overflow: hidden;
}

.topbar .stats-row {
    flex: 0 1 auto;
    justify-content: flex-end;
    gap: 0.28rem;
    min-width: 0;
}

.topbar .stats-scope {
    flex: 0 1 auto;
    max-width: 4.5em;
}

.topbar .stats-metric {
    gap: 0.12rem;
}

.fire-stage {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
    gap: 1.5rem;
    padding: 0 clamp(1rem, 4vw, 3rem) 1rem;
    min-height: 0;
}

.camp-view {
    position: relative;
    min-height: 64vh;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    --sky-gradient: linear-gradient(180deg, rgba(23, 26, 39, 0.86), rgba(18, 11, 8, 0.96));
    --sky-glow: rgba(255, 130, 31, 0.16);
    background:
        radial-gradient(circle at 50% 68%, var(--sky-glow), transparent 18rem),
        var(--sky-gradient);
    transition: background 900ms ease;
}

.camp-view.sky-morning {
    --sky-gradient: linear-gradient(180deg, #5a738b 0%, #c68464 46%, #241917 100%);
    --sky-glow: rgba(255, 178, 94, 0.22);
}

.camp-view.sky-day {
    --sky-gradient: linear-gradient(180deg, #5f93b7 0%, #b8c9c5 52%, #2c2118 100%);
    --sky-glow: rgba(255, 204, 120, 0.2);
}

.camp-view.sky-evening {
    --sky-gradient: linear-gradient(180deg, #2c3153 0%, #9f5846 48%, #171010 100%);
    --sky-glow: rgba(255, 112, 54, 0.26);
}

.camp-view.sky-night {
    --sky-gradient: linear-gradient(180deg, rgba(23, 26, 39, 0.86), rgba(18, 11, 8, 0.96));
    --sky-glow: rgba(255, 130, 31, 0.16);
}

.night-sky {
    display: none;
}

.weather-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.weather-clear {
    opacity: 0;
}

.weather-cloud {
    opacity: 1;
    background:
        radial-gradient(ellipse at 24% 18%, rgba(230, 232, 224, 0.2), transparent 17rem),
        radial-gradient(ellipse at 74% 24%, rgba(200, 205, 205, 0.18), transparent 20rem),
        linear-gradient(180deg, rgba(40, 45, 50, 0.22), rgba(8, 8, 9, 0.05));
}

.weather-rain::before,
.weather-snow::before {
    content: '';
    position: absolute;
    inset: -20% 0 0;
    will-change: transform;
}

.weather-rain::before {
    background-image: repeating-linear-gradient(105deg, rgba(185, 218, 232, 0.18) 0 1px, transparent 1px 32px);
    background-size: 112px 144px;
    animation: weather-rain-fall 1200ms linear infinite;
}

.weather-snow::before {
    background-image:
        radial-gradient(circle, rgba(255,255,255,0.76) 0 1.4px, transparent 1.8px),
        radial-gradient(circle, rgba(255,255,255,0.52) 0 1px, transparent 1.5px);
    background-size: 96px 82px, 138px 112px;
    animation: weather-snow-fall 8s linear infinite;
}

@keyframes weather-rain-fall {
    to { transform: translate3d(-1.5rem, 6rem, 0); }
}

@keyframes weather-snow-fall {
    to { transform: translate3d(1.6rem, 7rem, 0); }
}

#fireCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 2;
}

#fireCanvas.fire-canvas--stoke-target {
    cursor: pointer;
}

#fireCanvas[aria-disabled="true"] {
    cursor: not-allowed;
}

.comment-lane {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 3;
}

.floating-comment {
    position: absolute;
    display: inline-flex;
    align-items: center;
    max-width: min(24rem, 80vw);
    padding: 0.38rem 0.7rem;
    border-radius: 999px;
    background: rgba(18, 18, 20, 0.58);
    border: 1px solid rgba(255, 236, 200, 0.2);
    color: #fff6e7;
    white-space: nowrap;
    animation: rise-from-fire 11s ease-out forwards;
    box-shadow: 0 10px 24px rgba(0,0,0,0.22);
    gap: 0.55rem;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(0.88);
    will-change: transform, opacity;
}

.poster-badge {
    flex: 0 0 auto;
    max-width: 7rem;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid rgba(255, 212, 139, 0.42);
    border-radius: 999px;
    color: #ffd58a;
    background: rgba(255, 146, 54, 0.12);
    padding: 0.12rem 0.42rem;
    font-size: 0.76rem;
    font-weight: 700;
}

.poster-badge--self {
    border-color: rgba(130, 181, 143, 0.88);
    color: #eaffed;
    background: rgba(130, 181, 143, 0.26);
    box-shadow: 0 0 0 2px rgba(130, 181, 143, 0.14);
}

.comment-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.report-button {
    border: 1px solid rgba(255, 236, 200, 0.28);
    border-radius: 999px;
    color: #fff4de;
    background: rgba(0,0,0,0.24);
    padding: 0.18rem 0.45rem;
    cursor: pointer;
    font-size: 0.78rem;
}

@keyframes rise-from-fire {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.82);
    }
    10% {
        opacity: 1;
    }
    72% {
        opacity: 0.92;
    }
    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--rise-x, 0px)), calc(-50% + var(--rise-y, -12rem))) scale(1.04) rotate(var(--rise-rotate, 0deg));
    }
}

.ground {
    position: absolute;
    inset: auto 0 0;
    height: 15%;
    background: linear-gradient(180deg, transparent, rgba(7, 5, 4, 0.55));
    pointer-events: none;
    z-index: 4;
}

.ground span {
    position: absolute;
    left: 50%;
    bottom: 80%;
    width: min(26vw, 18rem);
    height: 2rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #4b2b18, #22110b 55%, #6b3c1d);
    box-shadow: inset 0 0 12px rgba(255, 130, 38, 0.2);
}

.ground span:nth-child(1) { transform: translateX(-50%) rotate(12deg); }
.ground span:nth-child(2) { transform: translateX(-50%) rotate(-13deg); }
.ground span:nth-child(3) { transform: translateX(-50%) translateY(-0.6rem); width: min(21vw, 14rem); }

.control-dock {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    backdrop-filter: blur(18px);
    min-width: 0;
}

.status-line,
.actions-row,
.comment-input-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.status-line,
.actions-row {
    justify-content: space-between;
}

.status-line {
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.92rem;
}

.dock-message {
    margin: 0;
    padding: 0.78rem 0.85rem;
    border: 1px solid rgba(255, 209, 141, 0.36);
    border-radius: 8px;
    color: #fff3d6;
    background: linear-gradient(135deg, rgba(240, 139, 54, 0.28), rgba(55, 28, 14, 0.82));
    box-shadow: 0 0 0 1px rgba(0,0,0,0.16), 0 12px 26px rgba(0,0,0,0.22);
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.5;
    animation: dock-message-in 180ms ease-out;
}

.dock-message[hidden] {
    display: none;
}

.camp-view .dock-message {
    position: absolute;
    top: clamp(0.85rem, 3vw, 1.35rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    max-width: min(90%, 32rem);
    white-space: nowrap;
    text-align: center;
    pointer-events: none;
}

@keyframes dock-message-in {
    from { opacity: 0; transform: translateX(-50%); }
    to { opacity: 1; transform: translateX(-50%); }
}

.status-line strong {
    color: var(--ink);
}

.status-self-id,
.self-poster-id {
    display: inline-flex;
    align-items: baseline;
    gap: 0.25rem;
    min-width: 0;
    padding: 0.18rem 0.45rem;
    border: 1px solid rgba(255, 212, 139, 0.22);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255,255,255,0.045);
    font-size: 0.86rem;
}

.status-self-id strong,
.self-poster-id strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #ffd58a;
    font-variant-numeric: tabular-nums;
}

.primary-action,
.comment-form > button[type="submit"],
.login-panel button,
.inline-form button,
.actions button,
.panel button {
    border: 0;
    border-radius: 8px;
    color: #23130a;
    background: linear-gradient(180deg, #ffd18d, #ee8f3a);
    padding: 0.7rem 0.9rem;
    cursor: pointer;
    font-weight: 700;
}

.primary-action {
    flex: 1;
    min-height: 3rem;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
}

.camp-view .log-stock-dock {
    position: absolute;
    left: clamp(0.85rem, 3vw, 1.35rem);
    bottom: clamp(0.85rem, 3vw, 1.35rem);
    pointer-events: none;
    z-index: 4;
    max-width: min(13rem, 42vw);
    padding: 0.56rem 0.68rem;
    border: 1px solid rgba(255, 232, 190, 0.26);
    border-radius: 8px;
    background: rgba(24,17,15,0.64);
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.26);
}

.log-stock-display {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.08rem;
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
    line-height: 0.9;
    color: #fff3d6;
}

.log-stock-icon {
    display: inline-block;
    font-size: 0.68rem;
    line-height: 1;
    transform: rotate(-8deg);
}

.log-stock-count {
    margin-left: 0.12rem;
    font-size: 0.76rem;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.camp-view .wind-stock-dock {
    position: absolute;
    right: clamp(0.85rem, 3vw, 1.35rem);
    bottom: clamp(0.85rem, 3vw, 1.35rem);
    z-index: 4;
}

.wind-stock-button {
    min-height: 3rem;
    min-width: 5.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.08rem;
    flex-wrap: wrap;
    border: 1px solid rgba(213, 238, 232, 0.34);
    border-radius: 8px;
    background: rgba(22, 31, 32, 0.66);
    color: #e8fff8;
    padding: 0.56rem 0.68rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.26);
}

.wind-stock-button:focus-visible {
    outline: 2px solid #d8fff4;
    outline-offset: 3px;
}

.wind-stock-icon {
    display: inline-block;
    font-size: 0.72rem;
    line-height: 1;
}

.wind-stock-count {
    margin-left: 0.12rem;
    font-size: 0.76rem;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.sound-toggle {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    color: var(--ink);
    padding: 0.55rem 0.65rem;
    cursor: pointer;
    font-weight: 700;
    user-select: none;
}

.camp-view .sound-toggle {
    position: absolute;
    right: clamp(0.85rem, 3vw, 1.35rem);
    top: clamp(0.85rem, 3vw, 1.35rem);
    z-index: 4;
    background: rgba(24,17,15,0.64);
    backdrop-filter: blur(10px);
}

.sound-toggle input {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    opacity: 0;
}

.sound-switch {
    position: relative;
    width: 2.65rem;
    height: 1.42rem;
    border-radius: 999px;
    background: rgba(0,0,0,0.32);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
    transition: background 180ms ease, box-shadow 180ms ease;
}

.sound-switch::before {
    content: '';
    position: absolute;
    top: 0.18rem;
    left: 0.18rem;
    width: 1.06rem;
    height: 1.06rem;
    border-radius: 50%;
    background: #f8ead7;
    box-shadow: 0 2px 8px rgba(0,0,0,0.28);
    transition: transform 180ms ease;
}

.sound-toggle input:checked + .sound-switch {
    background: linear-gradient(180deg, #ffd18d, #ee8f3a);
    box-shadow: inset 0 0 0 1px rgba(35, 19, 10, 0.16);
}

.sound-toggle input:checked + .sound-switch::before {
    transform: translateX(1.22rem);
}

.sound-toggle input:focus-visible + .sound-switch {
    outline: 2px solid #ffd58a;
    outline-offset: 3px;
}

button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.comment-form {
    display: grid;
    gap: 0.6rem;
}

.comment-input-row label {
    flex: 0 0 auto;
    color: var(--muted);
}

.comment-form > button[type="submit"] {
    width: 100%;
}

.comment-input-row input,
.comment-form > input,
.login-panel input,
.inline-form input {
    min-width: 0;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: rgba(0,0,0,0.22);
    padding: 0.72rem 0.8rem;
}

.comment-input-row input {
    flex: 1;
}

.policy-check {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0.15rem;
    padding: 0.68rem 0.72rem;
    border: 1px solid rgba(255, 232, 190, 0.18);
    border-radius: 8px;
    color: var(--ink);
    font-size: 0.94rem;
    font-weight: 700;
    background: rgba(255,255,255,0.045);
    cursor: pointer;
}

.policy-check input {
    accent-color: var(--ember);
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 auto;
    margin: 0;
    cursor: pointer;
}

.policy-check:focus-within {
    outline: 2px solid var(--ember);
    outline-offset: 2px;
}

.consent-block {
    display: grid;
    gap: 0.52rem;
    padding: 0.85rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255,255,255,0.075), rgba(0,0,0,0.16)), var(--panel);
    box-shadow: inset 3px 0 0 var(--ember);
}

.policy-note,
.report-form p {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.55;
}

.report-form {
    display: grid;
    gap: 0.55rem;
    padding: 0.85rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
}

.report-form[hidden],
.cookie-banner[hidden] {
    display: none;
}

.report-form select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: #211712;
    padding: 0.65rem 0.75rem;
}

.report-actions {
    display: flex;
    gap: 0.5rem;
}

.report-actions button:last-child {
    border: 1px solid var(--line);
    color: var(--ink);
    background: rgba(255,255,255,0.08);
}

#formMessage {
    min-height: 1.4rem;
    margin: 0;
    color: var(--muted);
}

.ad-slot {
    min-height: 96px;
    display: grid;
    place-items: center;
    border: 1px dashed rgba(255, 232, 190, 0.36);
    border-radius: 8px;
    color: rgba(255, 232, 190, 0.68);
    background: rgba(255,255,255,0.035);
}

.stats-board {
    display: grid;
    gap: 0.45rem;
    padding: 0.7rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,0.045);
}

.stats-heading {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.stats-grid {
    min-width: 0;
    overflow: hidden;
}

.stats-list {
    display: grid;
    gap: 0.3rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.8rem;
    line-height: 1.3;
}

.stats-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: nowrap;
}

.stats-scope {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--muted);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stats-metric {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-variant-numeric: tabular-nums;
}

.stats-ico {
    font-size: 0.9em;
    line-height: 1;
}

.stats-count {
    font-weight: 700;
}

.release-card {
    display: block;
    padding: 0.5rem 0.65rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    text-decoration: none;
    color: var(--ink);
    background: rgba(255,255,255,0.05);
    font-size: 0.78rem;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.release-card span {
    display: inline;
    margin-right: 0.4rem;
    color: var(--muted);
    font-size: inherit;
}

.site-footer {
    justify-content: center;
    color: var(--muted);
    font-size: 0.9rem;
}

.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: min(920px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 0.85rem 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: rgba(20, 16, 14, 0.95);
    box-shadow: 0 18px 48px rgba(0,0,0,0.38);
}

.cookie-banner p {
    margin: 0;
    color: var(--muted);
}

.cookie-banner div {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    white-space: nowrap;
}

.cookie-banner button {
    border: 0;
    border-radius: 8px;
    color: #23130a;
    background: linear-gradient(180deg, #ffd18d, #ee8f3a);
    padding: 0.48rem 0.8rem;
    cursor: pointer;
    font-weight: 700;
}

.subpage {
    min-height: 100vh;
    background: linear-gradient(180deg, #171a23, #101010);
}

.text-page,
.admin-shell {
    width: min(980px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 3rem 0;
}

.text-page h1,
.admin-shell h1 {
    font-family: var(--font-sans);
    font-weight: 700;
    letter-spacing: 0;
}

.text-page {
    line-height: 1.85;
}

.text-page section {
    margin-top: 2rem;
}

.text-page h2 {
    margin: 1.8rem 0 0.6rem;
}

.text-page table {
    min-width: 720px;
}

.back-link {
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.back-logo {
    flex: 0 0 auto;
    width: 1.15em;
    height: 1.15em;
    color: var(--ember);
}

.back-logo .logo-core {
    color: #ffe2a3;
}

.home-page {
    width: min(1080px, calc(100% - 2rem));
}

.home-hero {
    display: grid;
    justify-items: center;
    gap: 1rem;
    margin-top: 1.4rem;
    padding: clamp(2rem, 7vw, 5rem) clamp(1rem, 4vw, 3rem);
    border: 1px solid var(--line);
    border-radius: 8px;
    text-align: center;
    background:
        radial-gradient(circle at 50% 28%, rgba(240, 139, 54, 0.26), transparent 15rem),
        linear-gradient(180deg, rgba(37, 25, 18, 0.92), rgba(20, 16, 15, 0.86));
    box-shadow: 0 24px 70px rgba(0,0,0,0.28);
}

.home-logo {
    display: grid;
    place-items: center;
    width: 6rem;
    height: 6rem;
    border: 1px solid rgba(255, 211, 142, 0.32);
    border-radius: 50%;
    color: var(--ember);
    background: radial-gradient(circle, rgba(240, 139, 54, 0.2), rgba(255,255,255,0.055));
    box-shadow: 0 0 44px rgba(240, 139, 54, 0.32);
}

.home-logo-mark {
    width: 4.3rem;
    height: 4.3rem;
}

.home-logo-core {
    color: #ffe2a3;
}

.home-brand {
    margin: 0;
    color: var(--ember);
    font-weight: 700;
    letter-spacing: 0;
}

.home-hero h1 {
    margin: 0;
    font-size: clamp(2.2rem, 7vw, 4.2rem);
    line-height: 1.1;
}

.home-catch {
    margin: 0;
    font-size: clamp(1.1rem, 2.4vw, 1.55rem);
    font-weight: 700;
}

.home-lead {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
}

.home-story {
    display: grid;
    gap: 0.75rem;
    margin: 1rem 0 0;
    padding: 1.2rem clamp(1rem, 3vw, 1.6rem);
    border: 1px solid var(--line);
    border-left: 3px solid var(--ember);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
}

.home-story p {
    margin: 0;
    color: var(--muted);
}

.home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.72rem 1.2rem;
    border: 1px solid rgba(255, 225, 172, 0.42);
    border-radius: 8px;
    color: #23130a;
    background: linear-gradient(180deg, #ffd18d, var(--ember));
    box-shadow: 0 12px 28px rgba(240, 139, 54, 0.24);
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.home-button:hover,
.home-button:focus-visible {
    background: linear-gradient(180deg, #ffe0a7, #f59c44);
    outline: 2px solid rgba(255, 225, 172, 0.56);
    outline-offset: 3px;
}

.home-section-title {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 2rem 0 0.65rem;
}

.home-section-title h2,
.home-cta-card h2 {
    margin: 0;
}

.home-icon {
    flex: 0 0 auto;
    width: 1.55rem;
    height: 1.55rem;
    color: var(--ember);
}

.home-icon-heart {
    color: #ffbf86;
}

.home-icon-list,
.home-icon-question,
.home-icon-speaker {
    color: var(--green);
}

.home-icon-flag {
    color: var(--red);
}

.home-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1rem 0 0;
}

.home-step-card {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.7rem 0.8rem;
    min-height: 10rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,0.055);
}

.home-step-card .home-icon {
    grid-row: 1 / span 2;
    width: 2rem;
    height: 2rem;
    margin-top: 0.2rem;
}

.home-step-number {
    justify-self: start;
    min-width: 2rem;
    padding: 0.1rem 0.55rem;
    border: 1px solid rgba(255, 211, 142, 0.34);
    border-radius: 999px;
    color: #ffe2a3;
    background: rgba(240, 139, 54, 0.14);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
}

.home-step-card p {
    grid-column: 2;
    margin: 0;
    color: var(--muted);
}

.home-faq {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.home-faq-item {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,0.055);
    overflow: hidden;
}

.home-faq-item summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    cursor: pointer;
    color: var(--ink);
    font-weight: 700;
    list-style: none;
}

.home-faq-item summary::-webkit-details-marker {
    display: none;
}

.home-faq-item summary::after {
    content: '+';
    margin-left: auto;
    color: var(--ember);
    font-size: 1.2rem;
}

.home-faq-item[open] summary::after {
    content: '-';
}

.home-faq-item summary:hover,
.home-faq-item summary:focus-visible {
    background: rgba(240, 139, 54, 0.12);
    outline: 2px solid rgba(255, 225, 172, 0.35);
    outline-offset: -2px;
}

.home-faq-item p {
    margin: 0;
    padding: 0 1rem 1rem 3.35rem;
    color: var(--muted);
}

.home-faq-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 1.6rem;
    height: 1.6rem;
    border: 1px solid rgba(130, 181, 143, 0.44);
    border-radius: 50%;
    color: var(--green);
    font-size: 0.9rem;
    line-height: 1;
}

.home-faq-question {
    min-width: 0;
}

.home-cta-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    margin-top: 2rem;
    padding: clamp(1.2rem, 4vw, 2rem);
    border: 1px solid rgba(255, 211, 142, 0.28);
    border-radius: 8px;
    background:
        radial-gradient(circle at 12% 20%, rgba(240, 139, 54, 0.2), transparent 11rem),
        rgba(255,255,255,0.06);
}

.home-cta-card .home-icon {
    width: 2.5rem;
    height: 2.5rem;
}

.home-cta-card p {
    margin: 0.55rem 0 1rem;
    color: var(--muted);
}

.note-item,
.panel {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,0.055);
}

.note-item time {
    color: var(--muted);
}

.admin-shell {
    color: #1e1a16;
    background: #f6efe5;
}

.admin-header,
.inline-form,
.actions,
.panel li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-header {
    justify-content: space-between;
}

.notice {
    padding: 0.8rem;
    border-radius: 8px;
    background: #e7f1df;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

th,
td {
    border-bottom: 1px solid rgba(0,0,0,0.12);
    padding: 0.5rem;
    vertical-align: top;
}

.actions {
    flex-wrap: wrap;
}

code {
    word-break: break-all;
}

@media (max-width: 900px) {
    .fire-stage {
        grid-template-columns: 1fr;
    }

    .home-steps {
        grid-template-columns: 1fr;
    }

    .camp-view {
        min-height: 54vh;
    }

    .control-dock {
        margin-bottom: 1rem;
    }
}

@media (max-width: 640px) {
    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .topbar .stats-board {
        width: 100%;
    }

    .actions-row,
    .comment-input-row,
    .grid,
    .cookie-banner {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .camp-view {
        min-height: 46vh;
    }

    .home-hero {
        padding: 2rem 1rem;
    }

    .home-step-card,
    .home-cta-card {
        grid-template-columns: 1fr;
    }

    .home-step-card .home-icon,
    .home-step-card p {
        grid-column: 1;
    }

    .home-faq-item p {
        padding-left: 1rem;
    }
}
