/* The opening screen — item layout straight from the sketch in
 * ../../docs/app-strategy.md.
 *
 * ⚠️ Phone-shaped at every width, not "mobile first then widen". This screen
 * becomes a React Native screen later, and a desktop layout that spreads the
 * five entries into a grid would have to be thrown away at that point. A column
 * that stays a column ports as a column. */
* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100dvh;                 /* dvh, not vh: iOS Safari's toolbar */
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.screen { width: 100%; max-width: 460px; padding: 0 16px 40px; }

/* ── head ─────────────────────────────────────────────────────────────── */

.head {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 2px 14px;
}
/* ⚠️ The lockup stacks "Zillion" over "24/7", so a height chosen for the old
   single-line wordmark gives each of them half and the 24/7 goes to mud. */
.head .logo img { height: 42px; width: auto; display: block; }
.head .tagline {
  font-size: .58rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--dim); margin-top: 3px;
}
.head .spacer { margin-left: auto; }

/* The account button only appears once there is a session to manage — the same
   rule as on the live page, and for the same reason: it is the route to signing
   out and deleting the account. */
.acct {
  display: none; align-items: center; gap: 7px;
  padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: transparent; color: var(--ink); font: inherit; font-size: .8rem;
  font-weight: 600; cursor: pointer; text-decoration: none;
}
:root[data-account="in"] .acct { display: inline-flex; }
.acct .nick { max-width: 11ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── the menu ─────────────────────────────────────────────────────────── */

/* The nav reads --zn-* so it can be dropped on a page with another palette;
   here it simply follows the brand tokens. */
zillion-nav {
  --zn-fg: var(--ink); --zn-dim: var(--dim);
  --zn-line: var(--line); --zn-panel: var(--panel);
  margin: 2px 0 10px;
}

zillion-player { margin-top: 4px; }
/* One line, quiet, directly under the player: it explains the whole shape of
   this screen -- free below, account above -- in eleven words. */
.free { margin: 8px 2px 0; font-size: .74rem; line-height: 1.5; color: var(--dim); }

.menu { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }

.item {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 16px; border-radius: 13px;
  border: 1px solid #ffffff1f;
  background: var(--panel);
  color: var(--ink); text-decoration: none;
  font-weight: 800; font-size: 1.02rem; letter-spacing: .01em;
  position: relative;
}
.item .ico {
  width: 34px; height: 34px; flex: none; border-radius: 9px;
  display: grid; place-items: center; font-size: 1.05rem;
  background: #ffffff14;
}
.item .chev { margin-left: auto; color: var(--dim); font-size: 1.1rem; line-height: 1; }

/* One accent per entry, matching the sketch. Deliberately on the icon and the
   border rather than as a full fill: five saturated bars stacked is a traffic
   light, not a brand. */
.item.live   { border-color: #ff00c855; } .item.live   .ico { background: #ff00c8; color: #fff; }
.item.newz   { border-color: #2f7bff55; } .item.newz   .ico { background: #2f7bff; color: #fff; }
.item.eventz { border-color: #8b5cf655; } .item.eventz .ico { background: #8b5cf6; color: #fff; }
.item.yt     { border-color: #ff000055; } .item.yt     .ico { background: #ff0000; color: #fff; }
.item.sc     { border-color: #ff7a1f55; } .item.sc     .ico { background: #ff7a1f; color: #fff; }

a.item:hover { border-color: var(--accent); }

/* ⚠️ The four that go nowhere yet are <button disabled>, not <a> without an
   href. A link that does nothing is a dead end a visitor discovers by tapping
   it; a disabled control says so before the tap. The badge says when. */
.item:disabled {
  opacity: .62; cursor: default;
  font: inherit; font-weight: 800; font-size: 1.02rem; text-align: left; width: 100%;
}
.item:disabled .chev { display: none; }
.soon {
  margin-left: auto; font-size: .56rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--dim);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 8px;
}

.foot {
  margin-top: 22px; text-align: center; font-size: .76rem; line-height: 1.7; color: var(--dim);
}
.foot a { color: var(--dim); }
