/* 2.4.4 ACTIVATION - the first visit: black, white type, slow fades. Flat: no glow, no shadows. */
html, body.act { background: #000; color: #f4f4f2; height: 100%; overflow: hidden; }
body.act { font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
.act-stage { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 72px 20px 60px; box-sizing: border-box; overflow-y: auto; }
.act-scene { width: 100%; max-width: 560px; margin: auto; opacity: 0; transform: translateY(6px); transition: opacity .9s ease, transform .9s ease; }
.act-scene.in { opacity: 1; transform: none; }
.act-scene.out { opacity: 0; transform: translateY(-4px); transition: opacity .55s ease, transform .55s ease; }

/* the intro lines: fade in slowly, breathe, fade out */
.act-line { font-weight: 300; font-size: clamp(28px, 7vw, 44px); letter-spacing: .01em; text-align: center; line-height: 1.2; opacity: 0; transition: opacity 2.4s ease; }
.act-line.in { opacity: 1; animation: act-breathe 4.2s ease-in-out 2.4s infinite; }
.act-line.out { opacity: 0; transition: opacity 1.6s ease; animation: none; }
@keyframes act-breathe { 0%, 100% { opacity: 1; letter-spacing: .01em; } 50% { opacity: .78; letter-spacing: .022em; } }
.act-intro { display: flex; flex-direction: column; align-items: center; gap: 34px; }
.act-intro .act-opts { opacity: 0; transition: opacity 1.6s ease; }
.act-intro .act-opts.in { opacity: 1; }
.act-tapskip { position: fixed; bottom: 18px; left: 0; right: 0; text-align: center; color: #55585c; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }

/* scenes */
.act-kicker { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: #8b8e93; margin-bottom: 14px; }
.act-h { font-weight: 300; font-size: clamp(26px, 6vw, 36px); line-height: 1.18; margin: 0 0 14px; letter-spacing: .005em; }
.act-p { color: #c9cbcf; margin: 0 0 12px; }
.act-p.small { font-size: 13px; color: #8f9297; }
.act-opts { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }
.act-opts.row { flex-direction: row; flex-wrap: wrap; }
.act-btn { appearance: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; box-sizing: border-box; padding: 15px 18px; border-radius: 10px; border: 1px solid #3a3c40; background: transparent; color: #f4f4f2; font: 500 15px var(--font); text-align: left; cursor: pointer; touch-action: manipulation; transition: border-color .2s, background .2s; }
.act-btn:hover, .act-btn:focus-visible { border-color: #9a9ca0; outline: none; }
.act-btn.primary { background: #f4f4f2; color: #050505; border-color: #f4f4f2; }
.act-btn.primary:hover { background: #fff; }
.act-btn small { color: #8f9297; font-weight: 400; font-size: 12px; }
.act-btn.primary small { color: #45474b; }
.act-btn:disabled { opacity: .4; cursor: default; }
.act-btn .say { font-size: 11px; letter-spacing: .06em; color: #6d7075; text-transform: uppercase; white-space: nowrap; }
.act-btn.primary .say { color: #5a5c60; }
.act-link { appearance: none; border: 0; background: none; color: #8f9297; font: 500 13px var(--font); cursor: pointer; padding: 8px 0; text-decoration: underline; text-underline-offset: 3px; }
.act-link:hover { color: #f4f4f2; }
.act-center { text-align: center; }
.act-center .act-opts { align-items: center; }
.act-center .act-btn { justify-content: center; text-align: center; max-width: 340px; }
.act-input { width: 100%; box-sizing: border-box; padding: 14px 16px; border-radius: 10px; border: 1px solid #3a3c40; background: #0b0b0c; color: #f4f4f2; font: 16px var(--font); }
.act-input:focus { outline: none; border-color: #9a9ca0; }
textarea.act-input { min-height: 96px; resize: vertical; font-family: var(--mono); font-size: 14px; }
.act-field { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; font-size: 13px; color: #a8abb0; }
.act-err { color: #ff8a7a; font-size: 13px; min-height: 18px; margin-top: 10px; }
.act-ok { color: #9fe0b2; }
.act-words { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0 6px; counter-reset: w; }
.act-words span { border: 1px solid #2c2e31; border-radius: 8px; padding: 9px 10px; font-family: var(--mono); font-size: 14px; color: #f4f4f2; }
.act-words span i { color: #6d7075; font-style: normal; margin-right: 6px; font-size: 11px; }
@media (max-width: 380px) { .act-words { grid-template-columns: repeat(2, 1fr); } }
.act-goggles { display: flex; gap: 16px; align-items: center; margin: 18px 0 4px; }
.act-goggles img { width: 132px; height: 132px; object-fit: cover; border-radius: 12px; border: 1px solid #2c2e31; background: #0b0b0c; }
.act-goggles .t { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #8b8e93; }
.act-goggles .n { font-size: 18px; margin-top: 4px; }
.act-list { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 10px; }
.act-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid #2c2e31; border-radius: 10px; }
.act-list li b { font-weight: 500; display: block; }
.act-list li small { color: #8f9297; font-size: 12px; }
.act-list li .st { font-size: 12px; color: #8f9297; white-space: nowrap; }
.act-list li .st.ok { color: #9fe0b2; }
.act-list li .act-btn { width: auto; padding: 9px 14px; font-size: 13px; }
.act-cmds { display: grid; gap: 6px; margin: 16px 0 0; }
.act-cmds div { border-left: 2px solid #3a3c40; padding: 4px 0 4px 12px; color: #dcdde0; }
.act-spin { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #2c2e31; border-top-color: #f4f4f2; animation: act-spin 1s linear infinite; margin: 22px 0 6px; }
@keyframes act-spin { to { transform: rotate(360deg); } }
.act-load { width: min(360px, 80vw); height: 2px; background: #1d1e20; margin: 34px auto 0; overflow: hidden; border-radius: 2px; }
.act-load i { display: block; height: 100%; width: 0; background: #f4f4f2; transition: width .35s linear; }
.act-load-txt { margin-top: 12px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #6d7075; text-align: center; }

/* top bar: step, progress, voice, skip */
.act-top { position: fixed; top: 0; left: 0; right: 0; z-index: 3; display: flex; align-items: center; gap: 14px; padding: calc(12px + env(safe-area-inset-top)) 18px 10px; background: #000; }
.act-step { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #8b8e93; white-space: nowrap; }
.act-bar { flex: 1; height: 2px; background: #1d1e20; border-radius: 2px; overflow: hidden; }
.act-bar i { display: block; height: 100%; width: 0; background: #f4f4f2; transition: width .8s ease; }
.act-tools { display: flex; align-items: center; gap: 14px; }
.act-voice { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #8b8e93; cursor: pointer; }
.act-voice .dot { width: 7px; height: 7px; border-radius: 50%; background: #6d7075; }
.act-voice.listening .dot { background: #f4f4f2; animation: act-pulse 1.4s ease-in-out infinite; }
@keyframes act-pulse { 50% { opacity: .3; } }
.act-heard { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); max-width: 86vw; padding: 8px 14px; border: 1px solid #2c2e31; border-radius: 20px; background: #000; color: #c9cbcf; font-size: 13px; z-index: 3; }
.act-noscript { color: #fff; text-align: center; margin-top: 40vh; }
.act-noscript a { color: #fff; }
@media (prefers-reduced-motion: reduce) { .act-line.in { animation: none; } .act-scene, .act-line { transition-duration: .2s; } }
