:root { color-scheme: dark; font-family: Georgia, serif; background: #0c191c; color: #fff; }
* { box-sizing: border-box; }
body { margin: 0; }
.lake { position: relative; width: 100%; height: 100vh; height: 100dvh; overflow: hidden; isolation: isolate; }
.start { position: absolute; inset: 0; width: 100%; height: 100%; background: #0c191c; overflow: hidden; }
.start img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1); transition: filter .65s ease; }
.treasure { position: absolute; width: 44px; height: 44px; padding: 0; transform: translate(-50%, -50%); border: 0; border-radius: 50%; background: transparent; color: white; cursor: zoom-in; visibility: hidden; }
.lake.ready .treasure { visibility: visible; }
.treasure::before { content: ""; position: absolute; inset: 17px; border-radius: 50%; background: #f4f7fa; box-shadow: 0 0 6px 2px #dde4ea, 0 0 14px 4px #c0ccd688; animation: glimmer 5s ease-in-out infinite; }
.treasure:focus-visible { outline: 2px solid white; outline-offset: 2px; }
.lake.zooming .treasure, .lake.revealed .treasure { visibility: hidden; pointer-events: none; }
@keyframes glimmer { 50% { opacity: .45; transform: scale(.65); } }
.intro { position: absolute; top: 72px; left: 50%; transform: translateX(-50%); width: min(90%, 52ch); font-family: inherit; font-size: clamp(1.2rem, 2.5vw, 2rem); font-weight: 400; line-height: 1.5; text-align: center; color: #fff; text-shadow: 0 0 2px #000, 0 0 6px #000, 0 2px 12px #000, 0 0 24px rgba(0,0,0,.7); opacity: 1; transition: opacity 1.3s ease-in-out; pointer-events: none; }
.company { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); font-family: inherit; font-size: .9rem; font-weight: 400; text-align: center; color: #fff; text-shadow: 0 2px 16px #000; opacity: 1; transition: opacity 1.3s ease-in-out; pointer-events: none; }
.lake.zooming .intro, .lake.zooming .company, .lake.revealed .intro, .lake.revealed .company { opacity: 0; }
.lake.zooming img, .lake.revealed img { transform: scale(3); }
.lake.zooming img { animation: treasure-zoom 2.5s cubic-bezier(.45, 0, .25, 1) both; }
@keyframes treasure-zoom { from { transform: scale(1); } to { transform: scale(3); } }
.lake.revealed img { filter: brightness(.45) blur(5px); }
.lake::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse, transparent 15%, rgba(0,0,0,.8) 100%); opacity: 0; transition: opacity .65s ease; pointer-events: none; }
.lake.revealed::after { opacity: 1; }
.reveal { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: safe center; overflow-y: auto; gap: 2rem; padding: 2rem; text-align: center; opacity: 0; pointer-events: none; transition: opacity .65s ease; }
.reveal > * { flex-shrink: 0; }
.reveal[hidden] { display: none; }
.lake.revealed .reveal { opacity: 1; pointer-events: auto; }
h1 { max-width: 22ch; margin: 0; font-size: clamp(2rem, 5vw, 4.5rem); font-weight: 400; line-height: 1.2; text-shadow: 0 2px 16px #000; }
h1:focus { outline: none; }
#description { max-width: 52ch; margin: 0; font-size: clamp(1.1rem, 2vw, 1.5rem); line-height: 1.5; white-space: pre-line; }
#back { padding: .8rem 1.5rem; border: 1px solid #fff; border-radius: 3px; color: #fff; background: #14272bd9; font: 1rem system-ui, sans-serif; cursor: pointer; }
#back:hover { background: #29454b; }
#back:focus-visible { outline: 3px solid #fff; outline-offset: 5px; }
.lake.resetting img, .lake.resetting::after, .lake.resetting .reveal, .lake.resetting .intro, .lake.resetting .company { transition: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.menu { position: absolute; top: 16px; left: 16px; z-index: 2; font: 1rem system-ui, sans-serif; }
.menu button { min-width: 44px; min-height: 44px; padding: .65rem 1rem; border: 1px solid #ffffff80; border-radius: 3px; background: #0c191ce6; color: #fff; font: inherit; cursor: pointer; }
.menu button:hover { background: #29454b; }
.menu button:focus-visible { outline: 3px solid white; outline-offset: 3px; }
.menu button:disabled { opacity: .5; cursor: default; }
#menu-trigger { width: 44px; height: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
#menu-trigger svg { width: 24px; height: 24px; }
#menu-options { display: flex; flex-direction: column; align-items: stretch; gap: 6px; width: min(240px, calc(100vw - 32px)); margin-top: 8px; padding: 10px; border: 1px solid #ffffff26; border-radius: 12px; background: #0c191cf5; box-shadow: 0 8px 24px #0005; animation: menu-open .2s ease-out; }
#menu-options button { min-height: 44px; border: 1px solid #ffffff26; border-radius: 7px; background: #14272b; text-align: left; }
#menu-options button:hover, #menu-options button:focus-visible { background: #29454b; }
@keyframes menu-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
#menu-options[hidden] { display: none; }
.lake.menu-entry img { transform: scale(1); }
