/* Overrides on top of the prototype CSS, tuned against .claude/01_full_screens at 390×844 */
.profile-row[role="button"]{cursor:pointer}

/* Loading splash (assets/splash.webp?v=1, text is part of the artwork) */
.splash{position:fixed;inset:0;z-index:2147483000;display:flex;justify-content:center;background:#f6ece2;transition:opacity .5s var(--stc-ease),visibility .5s}
.splash.is-hidden{opacity:0;visibility:hidden;pointer-events:none}
.splash__img{width:100%;max-width:520px;height:100%;object-fit:cover;object-position:center 45%;animation:splash-in 1.6s var(--stc-ease) both}
.splash__bar{position:absolute;left:50%;bottom:calc(34px + var(--stc-safe-bottom));transform:translateX(-50%);width:120px;height:2px;border-radius:2px;background:rgba(70,22,14,.14);overflow:hidden}
.splash__bar i{display:block;height:100%;width:100%;background:linear-gradient(90deg,#FFAA70,#F16C49);transform-origin:left;animation:splash-bar 1.8s var(--stc-ease) both}
@keyframes splash-in{from{opacity:0;transform:scale(1.04)}to{opacity:1;transform:none}}
@keyframes splash-bar{from{transform:scaleX(0)}to{transform:scaleX(1)}}
/* Keep the app (incl. the blurred fixed bottom nav) hidden while the splash is up */
html.is-splashing .stc-shell,html.is-splashing .stc-nav,html.is-splashing .toast{visibility:hidden}

/* App background: owner's "dark burgundy fog" photo, fixed under every screen in place of the prototype's gradients and glow */
.stc-shell::after{display:none}
.stc-shell{background:#16080c}
.app-bg{position:fixed;z-index:-2;top:0;left:50%;width:min(100%,430px);height:100lvh;transform:translateX(-50%);pointer-events:none;
  background:#16080c url("../assets/background.webp?v=1") center top/cover no-repeat}
@media(min-width:700px){.app-bg{position:absolute;inset:0;width:auto;height:auto;transform:none}}
/* Access screens (js/boot.js): brand + the same glass card as the empty states */
.gate{min-height:calc(100vh - 140px);display:flex;flex-direction:column;justify-content:center;gap:34px}
.gate .brand{align-items:center;align-self:center}
.gate__card{padding:34px 22px}
.gate__card .tab{margin-top:20px;min-width:150px;min-height:44px;font-size:13px}
.stc-shell[data-screen="gate"] .stc-screen{padding:calc(24px + var(--stc-safe-top)) var(--stc-page-x) calc(24px + var(--stc-safe-bottom))}
/* Telegram profile photo (display only) */
.profile-photo{width:100%;height:100%;object-fit:cover;border-radius:inherit;display:block}

/* Search (2026-11-19): 16px so iOS does not zoom into the field; the bottom menu hides while the keyboard is up (js/app.js, .stc-typing) */
.search-input{font-size:16px}
.stc-typing .stc-nav{display:none}
/* focus is shown by the whole glass pill, not by a browser ring inside it */
.search-input:focus-visible{outline:none}
.search-wrap:focus-within{border-color:rgba(255,177,137,.6);box-shadow:0 0 0 1px rgba(255,177,137,.35)}
