/* Try it in your browser: page styles. Colours come from the site's :root tokens. */
.vh{position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;}
[hidden]{display:none !important;}
html.locked, html.locked body{overflow:hidden;}
/* JavaScript off: show only the explanation, the noscript note and the store buttons */
html.no-js #setup{display:none !important;}
/* for 300 ms after a layer closes, a second tap must not land on the page behind it */
html.ov-closing body{pointer-events:none;}
.try-page .lede{margin-bottom:28px;}
.try-grid{display:grid; grid-template-columns:1fr 1fr; gap:20px; align-items:start;}
.try-card{background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius); padding:24px 20px;}
.try-card h2{font-size:20px; display:flex; align-items:center; gap:10px; margin:0 0 16px;}
.try-num{display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px; border-radius:50%; background:rgba(217,160,102,.14); color:var(--accent); box-shadow:inset 0 0 0 1px var(--accent-dim); font-size:14px; flex:none;}
.seg{display:flex; gap:6px; background:var(--night); border:1px solid var(--border); border-radius:16px; padding:4px; margin-bottom:16px;}
.seg button{flex:1; min-height:44px; border:0; border-radius:12px; background:transparent; color:var(--text-dim); font:inherit; font-size:14.5px; font-weight:600; cursor:pointer; padding:0 6px;}
.seg button[aria-checked="true"]{background:var(--bg-elev); color:var(--text); box-shadow:0 0 0 1px var(--accent-dim) inset;}
.seg button:focus-visible, .try-page .btn:focus-visible, .hold:focus-visible, .ring-mute:focus-visible, .again:focus-visible, .ov .btn:focus-visible{outline:3px solid var(--sand); outline-offset:2px;}
.sample-words{font-size:20px; line-height:1.35; font-weight:600; margin:0 0 8px; color:var(--text);}
.try-hint{font-size:13.5px; color:var(--text-faint); margin:10px 0 0;}
.try-hint strong{color:var(--text-dim);}
.try-file{width:100%; min-height:48px;}
.thumb{margin-top:14px; border-radius:14px; overflow:hidden; border:1px solid var(--border); background:var(--night); max-height:220px; display:flex; justify-content:center;}
.thumb img{display:block; max-width:100%; max-height:220px; object-fit:contain;}
.try-msg{font-size:14px; color:var(--sand); margin:10px 0 0; min-height:0;}
.try-msg:empty{display:none;}
.try-msg-warn{background:var(--bg-elev); border-radius:14px; padding:14px;}
.try-label{display:block; font-size:14px; color:var(--text-dim); margin-bottom:8px;}
.try-page textarea{width:100%; min-height:96px; resize:vertical; background:var(--night); color:var(--text); border:1px solid var(--border); border-radius:14px; padding:12px 14px; font:inherit; font-size:16px;}
.try-page textarea:focus, .try-page input[type="time"]:focus{outline:3px solid var(--sand); outline-offset:1px;}
.try-privacy{font-size:13.5px; color:var(--text-dim); margin:18px 0 0; padding-top:14px; border-top:1px solid var(--border);}
.try-privacy strong{color:var(--text);}
.try-big{width:100%; min-height:56px; font-size:17px;}
.try-or{text-align:center; font-size:13px; color:var(--text-faint); margin:14px 0 10px;}
.try-time{display:flex; gap:10px;}
.try-time input{flex:1; min-width:0; min-height:48px; background:var(--night); color:var(--text); border:1px solid var(--border); border-radius:14px; padding:0 12px; font:inherit; font-size:17px; color-scheme:dark;}
.try-time .btn{min-height:48px; flex:none;}
.try-check{display:flex; align-items:center; gap:10px; min-height:44px; margin-top:12px; font-size:14.5px; color:var(--text-dim); cursor:pointer;}
.try-check input{width:22px; height:22px; accent-color:var(--accent);}
.try-store{margin-top:28px; background:var(--bg-elev); border:1px solid var(--border); border-radius:var(--radius); padding:28px 22px; text-align:center;}
.try-store h2{font-size:22px; margin-bottom:6px;}
.try-store p{color:var(--text-dim); margin:0 0 18px;}
.try-store .cta-row{justify-content:center;}

/* full-screen layers */
.ov{position:fixed; inset:0; z-index:100; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:24px 16px calc(24px + env(safe-area-inset-bottom)); background:var(--night); color:var(--text); overflow-y:auto; -webkit-overflow-scrolling:touch;}
.ov .btn{min-height:52px; min-width:140px; font-size:16px;}
.ov-small{font-size:15px; color:var(--text-dim); margin:0 0 8px;}
.ov-big{font-size:clamp(64px, 24vw, 128px); font-weight:300; line-height:1; margin:6px 0 16px; font-variant-numeric:tabular-nums; letter-spacing:-0.02em;}
.ov-text{max-width:34ch; color:var(--text-dim); margin:0 0 24px; font-size:16px;}
#ovWait .btn{margin-top:22px;}
.ov-big.is-clock{font-size:clamp(44px, 15vw, 96px);}
.ov-ring{background:radial-gradient(circle at 50% 110%, rgba(217,160,102,.30), rgba(217,160,102,0) 60%), linear-gradient(180deg, var(--dusk), var(--night));}
.ring-label{font-size:14px; letter-spacing:.12em; text-transform:uppercase; color:var(--accent); margin:0;}
.ring-time{font-size:clamp(56px, 18vw, 140px); font-weight:200; line-height:1; margin:10px 0 6px; font-variant-numeric:tabular-nums; letter-spacing:-0.03em; animation:ringpulse 2s ease-in-out infinite;}
.ring-note{font-size:15px; color:var(--text-dim); margin:0 0 36px; max-width:34ch;}
.ring-actions{display:flex; gap:12px; width:100%; max-width:420px;}
.ring-actions .btn{flex:1; min-width:0;}
.ring-stop{background:var(--bg-elev); color:var(--text); border:1px solid var(--border);}
.ring-stop:hover{border-color:var(--text-faint);}
.ring-mute{margin-top:22px; min-height:44px; padding:0 18px; border-radius:999px; background:transparent; border:1px solid var(--border); color:var(--text-dim); font:inherit; font-size:14px; cursor:pointer;}
.ring-mute[aria-pressed="true"]{color:var(--text); border-color:var(--accent-dim);}
@keyframes ringpulse{0%,100%{opacity:1;} 50%{opacity:.72;}}

.ov-cover{background:#0E1016;}
.cover-time{font-size:clamp(48px, 16vw, 84px); font-weight:300; color:rgba(242,238,230,.86); margin:0; font-variant-numeric:tabular-nums;}
.cover-sub{color:var(--text-faint); font-size:14px; margin:4px 0 40px;}
.hold{position:relative; width:132px; height:132px; border-radius:50%; border:0; background:rgba(242,238,230,.04); color:var(--text); cursor:pointer; padding:0; touch-action:none; -webkit-user-select:none; user-select:none; -webkit-touch-callout:none; -webkit-tap-highlight-color:transparent;}
.hold svg{position:absolute; inset:0; width:100%; height:100%; transform:rotate(-90deg);}
.hold-track{fill:none; stroke:rgba(242,238,230,.14); stroke-width:6;}
.hold-bar{fill:none; stroke:var(--accent); stroke-width:6; stroke-linecap:round; stroke-dasharray:339.29; stroke-dashoffset:339.29;}
.hold-label{position:relative; font-size:17px; font-weight:700; letter-spacing:.02em;}
.hold.holding{background:rgba(217,160,102,.10);}
.hold-meter{width:132px; height:4px; border-radius:2px; background:rgba(242,238,230,.10); margin:18px auto 0; overflow:hidden;}
.hold-meter span{display:block; height:100%; width:0; background:var(--accent);}
.cover-help{font-size:13.5px; color:var(--text-faint); max-width:30ch; margin:16px 0 0;}

/* the reason fills what is left above the end panel, so the line, both store buttons and Try again always fit */
.ov-reveal{justify-content:flex-start; align-items:stretch; padding:0; background:#000;}
.reveal-media{position:relative; flex:1 1 auto; min-height:160px; width:100%; display:flex; align-items:stretch; justify-content:center; overflow:hidden; opacity:0; transition:opacity .6s ease;}
.ov-reveal.in .reveal-media{opacity:1;}
.reveal-media img{position:absolute; inset:0; display:block; width:100%; height:100%; object-fit:contain;}
.reveal-words{width:100%; display:flex; overflow-y:auto; padding:40px 24px; margin:0; background:radial-gradient(circle at 80% 0, rgba(226,192,137,.55), rgba(217,160,102,0) 55%), linear-gradient(160deg, #3A2C22 0%, #1E2232 70%); font-size:clamp(26px, 7vw, 44px); line-height:1.25; font-weight:700; letter-spacing:-0.01em; overflow-wrap:anywhere;}
.reveal-words > span{margin:auto; max-width:100%;}
.reveal-end{flex:none; width:100%; padding:24px 16px calc(28px + env(safe-area-inset-bottom)); background:var(--night); border-top:1px solid var(--border);}
.reveal-line{font-size:22px; font-weight:700; margin:0 0 16px; outline:none;}
.reveal-end .cta-row{justify-content:center;}
.again{display:inline-flex; align-items:center; min-height:44px; margin-top:12px; padding:0 12px; font-weight:700;}

@media (max-width:760px){
  .try-grid{grid-template-columns:1fr;}
}
@media (max-width:360px){
  .try-card{padding:20px 14px;}
  .try-time{flex-direction:column;}
  .ring-actions{flex-direction:column;}
}
@media (max-height:640px){
  .reveal-words{padding:20px 18px; font-size:clamp(20px, 6vw, 30px);}
  .reveal-end{padding-top:16px;}
  .reveal-line{font-size:20px; margin-bottom:12px;}
  .reveal-end .cta-row{gap:10px;}
  .reveal-end .btn{min-height:48px;}
  .again{margin-top:6px;}
}
@media (prefers-reduced-motion: reduce){
  .ring-time{animation:none;}
  .reveal-media{transition:none;}
}
