* { box-sizing: border-box; }
:root { color-scheme: dark; font-family: system-ui, sans-serif; background: #171110; color: #fff5eb; }
body { margin: 0; }
.screen {
  position: relative; isolation: isolate; display: flex; flex-direction: column;
  justify-content: space-between; text-align: center; gap: 12rem;
  min-height: 100vh; min-height: 100dvh;
  padding: calc(env(safe-area-inset-top, 0px) + 24px) max(20px, env(safe-area-inset-right, 0px))
    calc(env(safe-area-inset-bottom, 0px) + 20px) max(20px, env(safe-area-inset-left, 0px));
  background: #2a1b17;
}
.portrait, .screen::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.portrait { z-index: -2; object-fit: cover; object-position: center 43%; }
.screen::after {
  content: ""; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg,#120b0af0 0%,#120b0a74 18%,transparent 37%,#160c0a0d 50%,#170f0de8 78%,#170f0d 100%);
}
.identity p, h1 { margin: 0; }
.eyebrow { font-size: .66rem; font-weight: 650; letter-spacing: .31em; color: #f9d5bb; }
h1 { font: 400 clamp(3.4rem, 13vw, 5.8rem)/.98 Georgia, serif; letter-spacing: -.055em; padding: .12em 0 .2em; text-shadow: 0 3px 24px #21120d; }
.identity .badge { display: inline-block; border: 1px solid #efc8b77d; border-radius: 20px; background: #201413bc; padding: 6px 12px; font-size: .75rem; }
.controls { width: min(100%, 350px); align-self: center; }
.wave { height: 38px; display: flex; align-items: center; justify-content: center; gap: 5px; color: #f5af91; }
.wave i { width: 3px; border-radius: 5px; height: var(--h, 11px); background: currentColor; animation: ripple 1.5s ease-in-out infinite alternate; animation-delay: var(--d, 0s); }
.wave i:nth-child(3n) { --h: 23px; --d: -.8s; }
.wave i:nth-child(2n) { --h: 17px; --d: -.35s; }
.wave i:nth-child(6) { --h: 35px; --d: -.52s; }
.wave i:first-child, .wave i:last-child { --h: 6px; }
@keyframes ripple { from { transform: scaleY(.42); opacity: .6; } to { transform: scaleY(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .wave i { animation: none; } }
.timer-label { color: #e4c7b8; font-size: .75rem; margin: 4px 0; }
.timer { display: block; font-size: 2.05rem; font-variant-numeric: tabular-nums; font-weight: 400; letter-spacing: .04em; line-height: 1.15; }
.buttons { display: grid; grid-template-columns: 1.5fr 1fr; gap: 10px; margin-top: 14px; }
button { min-height: 47px; border-radius: 24px; font: 650 .89rem system-ui, sans-serif; cursor: pointer; border: 1px solid #ad8375; background: #38241f; color: #fff5eb; }
#toggle { background: #f1b69c; color: #2d1712; border-color: transparent; }
button:disabled { opacity: .55; cursor: default; }
:focus-visible { outline: 2px solid #fff5eb; outline-offset: 3px; }
details { color: #f0d7ca; font-size: .82rem; margin-top: 8px; }
summary { cursor: pointer; min-height: 44px; padding: 12px 4px; }
details p { margin: 0; text-align: left; background: #2b1b18; border-radius: 12px; padding: 12px; line-height: 1.5; }
@media (orientation: landscape) and (min-width: 620px) {
  .screen { flex-direction: row; align-items: center; justify-content: space-evenly; gap: 24px; }
  .portrait { object-position: center 38%; }
  .screen::after { background: linear-gradient(90deg,#170f0dea,transparent 46%,#170f0df2 83%); }
  .controls { width: min(44%, 350px); }
  h1 { font-size: clamp(3.4rem, 9vw, 5.8rem); }
}
@media (min-width: 900px) { .portrait { object-fit: contain; } }
