:root { color-scheme: dark; font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body { background: #17251e; color: #fff; }
button { font: inherit; }
.app, .landscapes, .landscape, #water, .scene-shade, .leaves, .effects { position: absolute; inset: 0; }
.app { min-height: 100dvh; overflow: hidden; isolation: isolate; }
.landscape { width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0; transform: scale(1.008); transition: opacity 1.1s ease; }
.landscape.is-visible { opacity: 1; }
#water { width: 100%; height: 100%; pointer-events: none; opacity: .96; transition: opacity .4s ease; }
.scene-shade { pointer-events: none; background: linear-gradient(180deg, rgba(4,15,11,.52), transparent 25%, transparent 63%, rgba(4,15,11,.44)), radial-gradient(ellipse at center, transparent 52%, rgba(2,10,8,.12)); }
.leaves, .effects { pointer-events: none; }
.leaf { position: absolute; top: 0; left: 0; z-index: 2; width: var(--size); height: var(--size); padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto; appearance: none; will-change: transform; filter: drop-shadow(0 8px 5px rgba(27,20,6,.23)); }
.leaf img { width: 100%; height: 100%; display: block; pointer-events: none; user-select: none; }
.leaf:focus-visible { outline: 2px solid #c8ffa8; border-radius: 50%; }
.leaf.is-resting { transition: opacity 2s ease; }
.leaf.is-fading { opacity: 0 !important; }
.reward { position: absolute; z-index: 8; font-size: 28px; font-weight: 750; letter-spacing: -.06em; color: #b9ff9c; text-shadow: 0 0 10px #3afe7e, 0 0 25px rgba(21,227,105,.9), 0 2px 6px rgba(3,38,15,.7); transform: translate(-50%,-50%); animation: reward-pop 950ms ease-out forwards; white-space: nowrap; }
.reward::before { content: ''; position: absolute; inset: -.35em -.42em; border: 1px solid rgba(185,255,156,.55); border-radius: 100%; animation: reward-ring 950ms ease-out forwards; }
@keyframes reward-pop { 0% { opacity: 0; transform: translate(-50%,-25%) scale(.55); } 18% { opacity: 1; transform: translate(-50%,-68%) scale(1.14); } 100% { opacity: 0; transform: translate(-50%,-155%) scale(.98); } }
@keyframes reward-ring { to { opacity: 0; transform: scale(1.7); } }
.topbar { position: absolute; z-index: 10; top: 0; left: 0; right: 0; padding: max(18px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)); display: flex; align-items: center; justify-content: space-between; gap: 20px; pointer-events: none; }
.brand { display: flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: -.025em; font-weight: 770; text-shadow: 0 1px 9px rgba(0,0,0,.4); white-space: nowrap; }
.brand em { font-style: normal; color: #d5ffb6; }
.brand-mark { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid rgba(223,255,205,.58); border-radius: 50%; color: #d5ffb6; font-size: 16px; font-weight: 400; }
.top-actions { display: flex; align-items: center; gap: 7px; pointer-events: auto; }
.sound-toggle, .score { height: 34px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.27); border-radius: 999px; background: rgba(9,23,15,.26); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 6px 24px rgba(0,0,0,.1); }
.sound-toggle { width: 34px; padding: 0; color: rgba(255,255,255,.82); cursor: pointer; }
.sound-toggle:hover, .sound-toggle.is-on { color: #caffaa; border-color: rgba(202,255,170,.55); }
.sound-toggle svg { width: 17px; height: 17px; }
.sound-toggle .sound-wave { display: none; }
.sound-toggle.is-on .sound-wave { display: block; }
.sound-toggle.is-on .sound-slash { display: none; }
.score { gap: 6px; padding: 0 11px; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.score-icon { color: #baff8b; }
.score-caption { color: rgba(255,255,255,.79); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; font-weight: 650; margin-left: 3px; }
.intro { position: absolute; z-index: 5; top: 9%; left: 0; right: 0; text-align: center; pointer-events: none; }
.intro p { margin: 0; font-size: 9px; font-weight: 700; letter-spacing: .27em; color: rgba(255,255,255,.77); text-shadow: 0 1px 10px rgba(0,0,0,.35); }
.scene-nav { position: absolute; z-index: 10; left: 50%; bottom: max(17px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; gap: 2px; padding: 5px; border: 1px solid rgba(255,255,255,.27); border-radius: 999px; background: rgba(12,26,20,.44); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); box-shadow: 0 18px 40px rgba(0,0,0,.2); }
.nav-arrow, .scene-current, .close-button { color: #fff; border: 0; background: transparent; cursor: pointer; }
.nav-arrow { flex: none; width: 34px; height: 34px; border-radius: 50%; font-size: 30px; line-height: 28px; font-weight: 200; display: grid; place-items: center; padding-bottom: 4px; }
.nav-arrow:hover, .close-button:hover { background: rgba(255,255,255,.16); }
.scene-current { min-width: 205px; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 3px 8px; white-space: nowrap; }
.scene-current:hover .scene-cta { color: #d5ffb6; }
.scene-number { font-size: 9px; font-weight: 700; letter-spacing: .1em; color: #d5ffb6; }
.scene-name { font-family: Georgia, 'Times New Roman', serif; font-size: 16px; letter-spacing: -.035em; }
.scene-cta { display: none; }
button:focus-visible { outline: 2px solid #d5ffb6; outline-offset: 3px; }
#scene-dialog { width: min(910px, calc(100vw - 38px)); max-height: min(820px, calc(100dvh - 38px)); padding: 30px; border: 1px solid rgba(255,255,255,.2); border-radius: 24px; background: rgba(15,30,23,.94); color: #fff; box-shadow: 0 30px 100px rgba(0,0,0,.55); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); overflow-y: auto; }
#scene-dialog::backdrop { background: rgba(2,13,9,.58); backdrop-filter: blur(8px); }
.dialog-head { display: flex; align-items: start; justify-content: space-between; gap: 15px; margin-bottom: 24px; }
.eyebrow { margin: 0 0 8px; font-size: 10px; letter-spacing: .22em; color: #b5eaa5; font-weight: 750; }
.dialog-head h1 { margin: 0; font: 38px/1.05 Georgia, 'Times New Roman', serif; letter-spacing: -.045em; }
.close-button { width: 38px; height: 38px; border-radius: 50%; font-size: 28px; line-height: 1; }
.scene-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.scene-card { overflow: hidden; position: relative; height: 170px; border: 1px solid rgba(255,255,255,.14); border-radius: 15px; color: #fff; text-align: left; cursor: pointer; background: #1e3529; padding: 0; transition: border-color .2s, transform .2s; }
.scene-card:hover { transform: translateY(-3px); border-color: rgba(211,255,181,.9); }
.scene-card[aria-current="true"] { border: 2px solid #b9ff9c; }
.scene-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene-card::after { content: ''; position: absolute; inset: 30% 0 0; background: linear-gradient(transparent, rgba(2,12,8,.88)); }
.scene-card-info { position: absolute; z-index: 1; left: 12px; right: 8px; bottom: 13px; display: grid; gap: 4px; }
.scene-card-num { font-size: 10px; letter-spacing: .16em; color: #caffaa; font-weight: 750; }
.scene-card-name { font: 17px/1.05 Georgia, 'Times New Roman', serif; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.privacy-link { display: inline-block; margin-top: 20px; color: #cae8bd; font-size: 12px; text-decoration: none; }
.privacy-link:focus-visible { outline: 2px solid #d5ffb6; }
@media(max-width: 700px) { .topbar { padding: max(16px, env(safe-area-inset-top)) 16px; } .score-caption { display: none; } .intro { top: 8.5%; } .scene-grid { grid-template-columns: repeat(2, 1fr); } #scene-dialog { padding: 20px; } .scene-card { height: 150px; } }
@media(max-width: 500px) { .brand { font-size: 12px; } .brand-mark { width: 23px; height: 23px; } .scene-nav { bottom: max(12px, env(safe-area-inset-bottom)); } .scene-current { min-width: 176px; gap: 6px; } .scene-name { font-size: 15px; } .intro p { font-size: 8px; letter-spacing: .19em; } }
@media(prefers-reduced-motion: reduce) { .landscape, #water, .scene-card { transition: none; } .reward { animation-duration: 300ms; } }
