/* Seasonal colours are decorative; record status colours and white reading surfaces stay clear. */
:root { --scene-bg: #f7f7f5; --scene-hero-a: #f0f2ec; --scene-hero-b: #e9eee2; --scene-ink: #2c3a30; --scene-accent: #43574a; --scene-soft: #e8eee3; --scene-line: #dce3d6; --scene-glow: #d7e1c9; --scene-header: #f9faf7ed; }
:root[data-scene="halloween"] { --scene-bg: #faf6ef; --scene-hero-a: #f4e8d7; --scene-hero-b: #ecd4b9; --scene-ink: #4b382e; --scene-accent: #855b3e; --scene-soft: #f5e8d7; --scene-line: #e8d7c1; --scene-glow: #e6b981; --scene-header: #fbf7f0ed; }
:root[data-scene="christmas"] { --scene-bg: #f3f7f2; --scene-hero-a: #e8eee1; --scene-hero-b: #d7e4d6; --scene-ink: #2b493d; --scene-accent: #3d6050; --scene-soft: #e7eee2; --scene-line: #d7e2d2; --scene-glow: #c9d2ac; --scene-header: #f4f8f1ed; }
:root[data-scene="valentine"] { --scene-bg: #fcf5f4; --scene-hero-a: #f8e9e5; --scene-hero-b: #f0d8d3; --scene-ink: #5b3a3b; --scene-accent: #925e60; --scene-soft: #f7e8e4; --scene-line: #e9d5d0; --scene-glow: #e8bdb4; --scene-header: #fcf6f4ed; }
:root[data-scene="newyear"] { --scene-bg: #f7f6f0; --scene-hero-a: #f1ead6; --scene-hero-b: #e8dfc8; --scene-ink: #3d484b; --scene-accent: #59676b; --scene-soft: #eeeadf; --scene-line: #ded8c6; --scene-glow: #ddcb95; --scene-header: #f9f7efed; }
:root[data-scene="spring"] { --scene-bg: #fcf5ed; --scene-hero-a: #f8e9d5; --scene-hero-b: #f0d6bf; --scene-ink: #693e32; --scene-accent: #985747; --scene-soft: #f6e6d7; --scene-line: #e9d2bd; --scene-glow: #d9aa7d; --scene-header: #fdf6eded; }
:root[data-scene="qixi"] { --scene-bg: #f6f5fb; --scene-hero-a: #eeecf5; --scene-hero-b: #dcddeb; --scene-ink: #41445e; --scene-accent: #626886; --scene-soft: #ecebf5; --scene-line: #dcdbea; --scene-glow: #c3bddd; --scene-header: #f7f6fced; }
:root[data-scene="midautumn"] { --scene-bg: #faf7ef; --scene-hero-a: #f3ecd9; --scene-hero-b: #eadeb9; --scene-ink: #565034; --scene-accent: #7b6b43; --scene-soft: #f2ecdd; --scene-line: #e4dbc3; --scene-glow: #d7c28e; --scene-header: #fcf9f0ed; }
body { background: var(--scene-bg); }
#app { position: relative; z-index: 1; }
.site-header { background: var(--scene-header); border-bottom-color: var(--scene-line); }
.hero { background: linear-gradient(118deg, var(--scene-hero-a), var(--scene-hero-b)); }
.hero::before { background: radial-gradient(circle at 50% 50%, var(--scene-glow), transparent 68%); opacity: .45; }
.hero h2 { color: var(--scene-ink); }
:root:not([data-scene="daily"]) .hero h2 { font-size: clamp(34px, 4.2vw, 52px); letter-spacing: -1.8px; }
.hero-copy > p { color: var(--scene-accent); }
.hero-copy .eyebrow { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; color: var(--scene-accent); font-size: 9px; letter-spacing: 1.7px; }
.hero h2 { margin-top: 20px; }
.scene-season-label { display: inline-flex; align-items: center; gap: 5px; letter-spacing: 1px; font-size: 10px; }
.scene-season-label svg { width: 14px; height: 14px; }
:root:not([data-scene="daily"]) .hero-art { width: 500px; max-width: 115%; transform: rotate(-2deg); filter: drop-shadow(0 15px 22px #6b50340d); }
.btn:not(.secondary):not(.soft) { background: var(--scene-accent); }
.btn:not(.secondary):not(.soft):hover { background: var(--scene-ink); }
.desktop-nav .nav-link.active { background: var(--scene-ink); }
.bottom-nav .nav-link.active { color: var(--scene-ink); background: var(--scene-soft); }
.auth-story { background: linear-gradient(140deg, var(--scene-hero-a), var(--scene-bg)); }
.auth-story h1 { color: var(--scene-ink); }
.auth-story-main > p { color: var(--scene-accent); }
.auth-story { position: relative; }
.scene-auth-trigger { position: absolute; top: 42px; right: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 8px 12px; border: 1px solid var(--scene-line); border-radius: 30px; background: #ffffff85; color: var(--scene-accent); font-size: 11px; }
.scene-auth-trigger svg { width: 14px; height: 14px; }
.header-appearance { color: var(--scene-accent); width: 36px; height: 36px; min-width: 36px; }
.header-appearance svg { width: 19px; height: 19px; }
.scene-settings { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 25px; background: linear-gradient(125deg, #fff, var(--scene-soft)); }
.scene-settings p { font-size: 12px; line-height: 1.9; color: #727a70; margin-bottom: 12px; }
.scene-current-status { display: inline-flex; padding: 5px 9px; border-radius: 6px; color: var(--scene-accent); background: #ffffffb8; font-size: 11px; }
.scene-settings > button { flex-shrink: 0; }
#scene-atmosphere { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; color: var(--scene-accent); }
.scene-particle { position: absolute; display: block; width: 28px; height: 28px; opacity: .14; }
.scene-particle svg { width: 100%; height: 100%; }
.scene-particle-0 { left: 1.4%; top: 21%; transform: rotate(-14deg); }
.scene-particle-1 { right: 2.1%; top: 16%; width: 18px; height: 18px; opacity: .18; }
.scene-particle-2 { left: 2.7%; top: 63%; width: 20px; height: 20px; }
.scene-particle-3 { right: 1%; top: 55%; width: 36px; height: 36px; transform: rotate(14deg); }
.scene-particle-4 { left: 8%; top: 88%; width: 15px; height: 15px; opacity: .12; }
.scene-particle-5 { right: 8%; top: 86%; width: 21px; height: 21px; }
.scene-preview-launch { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 9px 12px; border: 1px solid #cdd7c3; border-radius: 9px; background: #ffffff9e; color: #536c44; font-size: 11px; white-space: nowrap; }
.scene-preview-launch svg { width: 15px; height: 15px; }
.scene-preview-notice { display: flex; align-items: center; gap: 12px; padding: 14px 17px; margin: -12px 0 25px; border: 1px dashed var(--scene-line); border-radius: 13px; background: #ffffff90; color: var(--scene-accent); }
.scene-preview-symbol { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--scene-soft); flex-shrink: 0; }
.scene-preview-symbol svg { width: 16px; height: 16px; }
.scene-preview-notice > div { flex: 1; min-width: 0; }
.scene-preview-notice strong { font-size: 12px; font-weight: 550; }
.scene-preview-notice p { font-size: 10px; line-height: 1.8; color: #7a8073; margin: 4px 0 0; }
.scene-preview-notice .link-btn { flex-shrink: 0; font-size: 11px; color: var(--scene-accent); }
.test-auth .scene-preview-notice { margin: 0 0 24px; flex-wrap: wrap; }
.scene-entry-preview { margin-top: 22px; }
.scene-modal { width: min(760px, calc(100vw - 40px)); max-width: calc(100vw - 24px); }
.scene-modal .modal-body { padding: 26px 30px 28px; }
.scene-dialog-intro .eyebrow { color: #7a8b73; font-size: 9px; letter-spacing: 1.5px; }
.scene-dialog-intro p { font-size: 13px; line-height: 1.9; color: #6d7c64; margin: 12px 0 24px; }
.scene-date-field { margin-bottom: 25px; max-width: 330px; }
.scene-picker { margin: 0; padding: 0; border: 0; min-width: 0; }
.scene-picker legend { font-size: 12px; font-weight: 550; color: #56664d; margin-bottom: 12px; }
.scene-picker-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.scene-option { display: block; min-width: 0; position: relative; cursor: pointer; }
.scene-option > input { position: absolute; opacity: 0; width: 1px; height: 1px; top: 0; left: 0; }
.scene-option-card { display: flex; flex-direction: column; padding: 6px 6px 12px; border-radius: 14px; border: 1px solid #e2e7dc; background: #fbfcf9; overflow: hidden; height: 100%; transition: border-color .18s, box-shadow .18s; }
.scene-option-image { display: flex; justify-content: center; width: 100%; height: 82px; overflow: hidden; border-radius: 9px; background: #edf1e7; }
.scene-option-image img { width: 126px; height: 100px; object-fit: contain; margin-top: -8px; }
[data-option-theme="halloween"] .scene-option-image { background: #f2e5d2; }
[data-option-theme="christmas"] .scene-option-image { background: #e5eddf; }
[data-option-theme="valentine"] .scene-option-image { background: #f6e6e1; }
[data-option-theme="newyear"] .scene-option-image { background: #ede8d7; }
[data-option-theme="spring"] .scene-option-image { background: #f7e6d2; }
[data-option-theme="qixi"] .scene-option-image { background: #e9e7f3; }
[data-option-theme="midautumn"] .scene-option-image { background: #f1e8ce; }
.scene-option-name { display: flex; align-items: center; gap: 5px; color: #3e4f39; font-size: 12px; font-weight: 550; margin: 10px 7px 0; }
.scene-option-name > svg { width: 12px; height: 12px; }
.scene-option-check { margin-left: auto; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: transparent; color: transparent; }
.scene-option-check svg { width: 11px; height: 11px; }
.scene-option-tone { color: #839079; font-size: 10px; line-height: 1.6; margin: 5px 7px 0; }
.scene-option:hover .scene-option-card { border-color: #aebda2; }
.scene-option > input:checked + .scene-option-card { border-color: #7f9672; box-shadow: 0 0 0 2px #8da47a1c; background: #f7faf3; }
.scene-option > input:checked + .scene-option-card .scene-option-check { background: #667f59; color: white; }
.scene-option > input:focus-visible + .scene-option-card { outline: 3px solid #7a9470; outline-offset: 3px; }
.scene-selection-summary { display: flex; align-items: center; gap: 12px; border: 1px solid #e3e9dc; background: #f8faf5; border-radius: 12px; padding: 13px 15px; margin: 21px 0 20px; }
.scene-summary-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 10px; background: #e9efdf; color: #6d855c; flex-shrink: 0; }
.scene-summary-icon svg { width: 23px; height: 23px; }
.scene-selection-summary strong { color: #4c6241; font-size: 12px; font-weight: 550; }
.scene-selection-summary p { font-size: 11px; color: #7e8e71; line-height: 1.7; margin: 4px 0 0; }
.scene-motion-toggle { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.scene-motion-toggle input { width: 17px; height: 17px; margin-top: 2px; accent-color: #667f59; flex-shrink: 0; }
.scene-motion-toggle strong { display: block; font-size: 12px; font-weight: 500; color: #526448; }
.scene-motion-toggle small { display: block; font-size: 11px; line-height: 1.8; color: #809074; margin-top: 5px; }
.scene-save-hint { font-size: 10px; line-height: 1.8; color: #87927e; margin: 20px 0 0; }
.scene-form > .form-error { margin: 8px 0 0; }
.scene-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid #e5eade; margin-top: 19px; padding-top: 19px; }
.scene-form-actions .btn { min-width: 140px; }
:root[data-scene-motion="on"]:not([data-scene="daily"]) .hero-art { animation: scene-float 9s ease-in-out infinite; }
:root[data-scene-motion="on"] .scene-particle { animation: scene-drift 11s ease-in-out infinite; }
:root[data-scene-motion="on"] .scene-particle:nth-child(even) { animation-delay: -4s; animation-duration: 14s; }
:root[data-scene-motion="off"] .hero-art, :root[data-scene-motion="off"] .hero-copy, :root[data-scene-motion="off"] .scene-particle { animation: none !important; }
@keyframes scene-float { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -7px; rotate: 1deg; } }
@keyframes scene-drift { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@media (prefers-reduced-motion: reduce) { .hero-art, .hero-copy, .scene-particle { animation: none !important; } .scene-option-card { transition: none; } }
@media (max-width: 1000px) { .test-toolbar { flex-wrap: wrap; gap: 13px; } .test-toolbar-title { flex-basis: 100%; } .test-roles { flex: 1; } .test-roles button { flex: 1; } .scene-auth-trigger { right: 26px; } }
@media (max-width: 700px) {
 .scene-settings { align-items: flex-start; flex-direction: column; gap: 15px; }
 .scene-auth-trigger { top: 25px; right: 25px; min-height: 33px; font-size: 10px; padding: 7px 10px; }
 .scene-particle { opacity: .08; }
 .scene-particle-0 { left: -8px; top: 18%; }
 .scene-particle-3 { right: -14px; }
 .scene-preview-notice { flex-wrap: wrap; }
 .scene-preview-notice > div { flex-basis: calc(100% - 50px); }
 .scene-preview-notice .link-btn { margin-left: 44px; min-height: 28px; }
 .scene-modal { width: calc(100vw - 24px); }
 .scene-modal .modal-body { padding: 23px 20px; }
 .scene-picker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
 .scene-option-card { border-radius: 12px; }
 .scene-option-image { height: 70px; }
 .scene-option-image img { height: 90px; width: 115px; }
 .scene-date-field input { font-size: 16px; }
 .scene-form-actions .btn { min-width: 130px; padding: 12px 17px; }
 .scene-form-actions .link-btn { font-size: 11px; }
}
@media (max-width: 540px) {
 :root:not([data-scene="daily"]) .hero { min-height: 390px; }
 :root:not([data-scene="daily"]) .hero h2 { font-size: 31px; max-width: 278px; letter-spacing: -1.2px; margin: 18px 0 17px; }
 :root:not([data-scene="daily"]) .hero-art { width: 245px; max-width: none; right: -43px; bottom: 12px; opacity: .84; }
 .hero-copy .eyebrow { gap: 7px; font-size: 8px; letter-spacing: 1.1px; max-width: 260px; }
 .scene-season-label { font-size: 9px; }
 :root:not([data-scene="daily"]) .hero p { font-size: 11px; max-width: 210px; margin-bottom: 21px; }
 .test-roles { flex-basis: 100%; }
 .scene-preview-launch { margin-left: auto; min-height: 36px; }
 .scene-preview-notice { padding: 12px 14px; }
 .scene-auth-trigger { right: 22px; top: 24px; }
}
