/* Ten Pin Titans appkit: install sheet, slim bar, How? panel, standalone tab bar, /app/ start screen */
:root{--tt-tab:62px}
.tt-sheet-wrap{position:fixed;inset:0;z-index:2000;background:rgba(0,0,0,.55);display:flex;align-items:flex-end;justify-content:center;opacity:0;transition:opacity .25s}
.tt-sheet-wrap.on{opacity:1}
.tt-sheet{width:min(520px,100%);max-height:100dvh;overflow:auto;background:linear-gradient(180deg,#12214a,var(--bg2));border:1px solid var(--line);border-bottom:0;border-radius:22px 22px 0 0;padding:10px 18px calc(18px + env(safe-area-inset-bottom));transform:translateY(40px);transition:transform .3s;box-shadow:0 -20px 60px rgba(0,0,0,.6);color:var(--ink);font-family:var(--fu);font-size:15px;line-height:1.35}
.tt-sheet-wrap.on .tt-sheet{transform:none}
.tt-sheet-wrap.tt-hold,.tt-bar.tt-hold,.tt-arrow.tt-hold{display:none}
.tt-grab{width:44px;height:5px;border-radius:9px;background:rgba(255,255,255,.22);margin:0 auto 14px}
.tt-head{display:flex;gap:14px;align-items:center;margin-bottom:12px}
.tt-head img{width:64px;height:64px;border-radius:15px;flex:none}
.tt-head h2{font-size:25px;margin:0 0 4px;line-height:1}
.tt-head p{margin:0;color:var(--dim);font-size:14px}
.tt-perks{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0}
.tt-perks div{background:rgba(255,255,255,.05);border:1px solid var(--line);border-radius:12px;padding:10px 6px;text-align:center;font-size:12px;color:var(--soft);display:grid;gap:6px;justify-items:center}
.tt-perks svg{color:var(--amber)}
.tt-tag{display:inline-block;margin:6px 0 10px;padding:2px 10px;border:1px solid var(--line);border-radius:20px;font-size:12px;color:var(--dim)}
.tt-steps{list-style:none;margin:0 0 8px;padding:0;display:grid;gap:8px}
.tt-steps li{display:flex;align-items:center;gap:12px;background:rgba(255,255,255,.05);border-radius:12px;padding:11px 12px}
.tt-steps i,.tt-ct i{flex:none;width:26px;height:26px;border-radius:50%;background:var(--amber);color:#1a1000;font:800 15px/26px var(--fd);text-align:center;font-style:normal}
.tt-steps span{flex:1}.tt-steps small{color:var(--dim)}
.tt-steps em{flex:none;display:grid;place-items:center;width:38px;height:34px;border-radius:9px;background:rgba(255,182,46,.14);color:var(--amber)}
.tt-btn{display:flex;align-items:center;justify-content:center;width:100%;min-height:52px;border:0;border-radius:12px;font-family:var(--fd);font-weight:800;font-style:italic;text-transform:uppercase;font-size:22px;letter-spacing:.02em;cursor:pointer;color:var(--ink);background:rgba(255,255,255,.08)}
.tt-pri{color:#1a1000;background:linear-gradient(180deg,#ffd070,var(--amber-d));box-shadow:0 0 28px rgba(255,182,46,.3);margin:6px 0 4px}
.tt-ghost{background:none;font-size:17px;color:var(--dim);min-height:44px;font-style:normal;margin-top:4px}
.tt-note{color:var(--soft);margin:8px 0;font-size:14px}
.tt-arrow{position:fixed;z-index:2001;pointer-events:none;width:0;height:0;border-left:13px solid transparent;border-right:13px solid transparent;animation:mfb 1s ease-in-out infinite}
.tt-arrow-b{left:50%;bottom:calc(6px + env(safe-area-inset-bottom));margin-left:-13px;border-top:18px solid var(--amber)}
.tt-arrow-t{right:22px;top:8px;border-bottom:18px solid var(--amber);animation-name:mft}
@keyframes mfb{50%{transform:translateY(7px)}}@keyframes mft{50%{transform:translateY(-7px)}}
.tt-bar{position:fixed;z-index:1900;left:10px;right:10px;bottom:calc(10px + env(safe-area-inset-bottom));max-width:520px;margin-inline:auto;display:flex;align-items:center;gap:10px;padding:8px 8px 8px 10px;background:#12214a;border:1px solid var(--line);border-radius:16px;box-shadow:0 10px 40px rgba(0,0,0,.6);color:var(--ink);font-family:var(--fu);line-height:1.25}
.tt-bar img{width:40px;height:40px;border-radius:10px}
.tt-bar div{flex:1;display:grid;font-size:12px;color:var(--dim)}.tt-bar b{color:var(--ink);font-size:14px}
.tt-pill{border:0;border-radius:20px;padding:8px 16px;background:var(--amber);color:#1a1000;font:800 14px var(--fu);cursor:pointer}
.tt-x{border:0;background:none;color:var(--dim);font-size:24px;line-height:1;padding:4px 8px;cursor:pointer}
html.tt-lock{overflow:hidden}
.tt-how{position:fixed;inset:0;z-index:2100;overflow:auto;background:var(--bg);color:var(--ink);font-family:var(--fu);font-size:15px;line-height:1.35;padding:calc(18px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom))}
.tt-how-in{max-width:520px;margin:0 auto}
.tt-tabs2{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;padding:4px;background:rgba(255,255,255,.06);border-radius:12px;margin:8px 0 14px}
.tt-tabs2 button{border:0;border-radius:9px;min-height:40px;background:none;color:var(--dim);font:700 15px var(--fu);cursor:pointer}
.tt-tabs2 button[aria-selected=true]{background:var(--amber);color:#1a1000}
.tt-tabbody ol{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.tt-c{background:rgba(255,255,255,.05);border:1px solid var(--line);border-radius:14px;padding:12px}
.tt-ct{display:flex;gap:10px;align-items:flex-start}.tt-ct span{flex:1}
.tt-ill{margin-top:10px;border-radius:10px;background:#0c1735;border:1px solid var(--line);font-size:13px}
.tt-fbar{display:flex;align-items:center;justify-content:space-between;padding:8px 10px;color:var(--dim)}
.tt-hi{display:grid;place-items:center;width:34px;height:30px;border-radius:8px;border:2px solid var(--amber);color:var(--amber)}
.tt-flist div{padding:9px 12px;border-bottom:1px solid var(--line);color:var(--dim)}.tt-flist div:last-child{border:0}
.tt-flist .tt-hi2{display:flex;justify-content:space-between;align-items:center;color:var(--ink);border:2px solid var(--amber);border-radius:8px;margin:2px}
.tt-flist .tt-hi2 svg{color:var(--amber)}
/* standalone phone: app chrome */
html.is-app-phone .hdr,html.is-app-phone .ftr{display:none}
html.is-app-phone body{padding-bottom:calc(var(--tt-tab) + env(safe-area-inset-bottom))}
.tt-tabs{position:fixed;left:0;right:0;bottom:0;z-index:1500;display:flex;height:calc(var(--tt-tab) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:rgba(7,13,31,.96);border-top:1px solid var(--line);backdrop-filter:blur(8px)}
.tt-tabs a{flex:1;display:grid;place-items:center;align-content:center;gap:2px;color:var(--dim);text-decoration:none;font:600 11px var(--fu)}
.tt-tabs a[aria-current=page]{color:var(--amber)}
html.is-app-phone .pframe{height:calc(100svh - 66px - var(--tt-tab) - env(safe-area-inset-bottom))}
html.is-app-phone body.pfull .tt-tabs{display:none}
@media (max-height:520px) and (orientation:landscape){
 html.is-app-phone .tt-tabs{display:none}
 html.is-app-phone body{padding-bottom:0}
 html.is-app-phone .pframe{height:100svh}
 .tt-sheet{max-width:620px}
}
/* /app/ start screen */
.app{max-width:520px;margin:0 auto;padding:calc(22px + env(safe-area-inset-top)) 16px 24px}
.app-brand{text-align:center;margin-bottom:18px}
.app-brand img{width:84px;height:84px;margin:0 auto 8px}
.app-brand .wm{font-size:40px}
.app-brand p{margin:2px 0 0;color:var(--dim);font-size:14px}
.acard{display:flex;align-items:center;gap:14px;padding:14px;margin-bottom:10px;border:1px solid var(--line);border-radius:16px;background:rgba(255,255,255,.05);color:var(--ink);text-decoration:none}
.acard:hover{color:var(--ink)}
.acard .ai{flex:none;display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:rgba(255,255,255,.08);color:var(--ink)}
.acard .at{flex:1;display:grid;line-height:1.15}
.acard b{font:800 22px var(--fd);font-style:italic;text-transform:uppercase}
.acard small{color:var(--dim);font-size:13px;font-weight:500}
.acard .ch{color:var(--dim);font-size:20px}
.acard.big{padding:20px 16px;background:linear-gradient(135deg,#ffd070,var(--amber-d));border:0;color:#1a1000;box-shadow:0 0 36px rgba(255,182,46,.25)}
.acard.big .ai{background:rgba(11,22,8,.15);color:#1a1000}.acard.big small,.acard.big .ch{color:rgba(11,22,8,.7)}.acard.big b{font-size:28px}
.acard.soon{opacity:.6}
.app-foot{margin:16px 0 0;text-align:center;font-size:13px;color:var(--dim)}.app-foot a{color:var(--dim);margin:0 6px}
