/* Full-viewport prototype. Overrides the fixed gallery frames. */

html, body { height: auto; min-height: 100%; }
body.player { margin: 0; background: #e7e8ee; }
#root { min-height: 100vh; }

a.btn, a.btn-line, a.btn-ghost, a.who, a.store, a.brandlink, .mbottom a, .tabs a {
  text-decoration: none;
}
a.who, a.store, a.brandlink { color: inherit; }
a.store { display: block; }
a.who { display: flex; }

.tabs a {
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.tabs a.on { background: var(--wash); color: var(--brand); }

.mbottom a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 10px;
  font-weight: 700;
  color: #8b91a5;
}
.mbottom a.on { color: var(--brand); }
.mweb.night .mbottom a.on { color: #b9c8ff; }

.app { height: auto; min-height: 100vh; overflow: visible; }
.work { min-height: 100vh; }
.canvas { overflow: visible; }
.pub, .auth, .help, .legal { height: auto; min-height: 100vh; }
.h-scroll { overflow-x: auto; }
.menu-btn { display: none; }
.bar-title { display: flex; align-items: center; gap: 8px; min-width: 0; }

.all-screens {
  display: block;
  margin: 8px 8px 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
}
.pubhead .all-screens { margin: 0; }

tr[data-go], .timer, .keys, [data-go], .btn, .btn-line, .btn-ghost, .pi, .listrow, .plan, a.item {
  cursor: pointer;
}
tr[data-go]:hover td { background: var(--wash); }
tr[data-go]:focus { outline: 2px solid var(--brand); outline-offset: -2px; }

.mweb {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  height: auto;
  min-height: 100vh;
  background: var(--page);
  box-shadow: 0 0 0 1px #e1e2e6;
}
.mbottom { position: sticky; bottom: 0; }

.toast {
  position: fixed;
  z-index: 90;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  background: #141d42;
  color: white;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 650;
  max-width: min(440px, calc(100% - 24px));
  box-shadow: 0 12px 30px rgba(20, 29, 66, 0.25);
}
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 29, 66, 0.4);
  z-index: 35;
}

.directory { max-width: 1080px; margin: 0 auto; padding: 28px 20px 64px; }
.directory h1 { margin: 6px 0 0; font-size: 36px; letter-spacing: -0.04em; }
.directory .lede { max-width: 640px; color: var(--ink-soft); }
.start-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 8px; }
.flow-block { margin-top: 28px; }
.flow-block h2 { margin: 0; font-size: 18px; }
.flow-block p { margin: 4px 0 10px; color: var(--muted); font-size: 13px; }
.screen-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.screen-list a {
  display: block;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  text-decoration: none;
  color: inherit;
}
.screen-list a:hover { border-color: #c9d4fb; background: var(--wash); }
.screen-list b { display: block; font-size: 14px; }
.screen-list span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.screen-list i { font-style: normal; font-size: 10px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ok); }
.screen-list i.asp { color: var(--brand); }

@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .app { display: block; }
  .side {
    position: fixed;
    z-index: 40;
    top: 0;
    bottom: 0;
    left: 0;
    height: 100vh;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
  }
  .side.open { transform: none; }
  .story { display: none; }
  .auth { grid-template-columns: 1fr; }
  .formside { padding: 28px 20px 48px; }
  .hero { grid-template-columns: 1fr; padding: 24px 16px 32px; }
  .hero h1 { font-size: 34px; }
  .hero .phone { margin-top: 8px; }
  .pricegrid, .help, .split, .two, .three { grid-template-columns: 1fr; }
  .pricegrid { padding: 16px; }
  .help aside.toc { display: none; }
  .help aside { border-right: 0; border-bottom: 1px solid var(--line); }
  .legal .sheet { width: auto; margin: 16px; }
  .pubnav { display: none; }
  .pubhead { height: auto; flex-wrap: wrap; padding: 10px 12px; gap: 8px; }
  .account { grid-template-columns: 1fr; }
  .subnav { flex-direction: row; overflow-x: auto; }
  .subnav a { white-space: nowrap; }
  .subnav a small { display: none; }
  .search { display: none; }
  .drawer { width: 100%; }
  .stats, .stats.three { grid-template-columns: 1fr 1fr; }
  .bar { height: auto; min-height: 60px; padding: 8px 12px; align-items: flex-start; }
  .canvas { padding: 12px; }
  .modal { width: min(460px, calc(100vw - 32px)); }
}

@media (max-width: 520px) {
  .directory h1 { font-size: 28px; }
  .hero h1 { font-size: 30px; }
  .stats, .stats.three { grid-template-columns: 1fr 1fr; }
  .bar-actions .chip { display: none; }
}
