/* The app's home screen (/) and draft hub (/draft). */
.home { max-width: 560px; margin: 0 auto; padding: calc(10px + env(safe-area-inset-top)) 16px 28px; display: grid; gap: 18px; }
.home-head { display: flex; align-items: center; justify-content: space-between; min-height: 52px; }
.home-head .logo.brand { width: 72px; }
.home-me { text-decoration: none; }
.home-me .avatar { width: 40px; height: 40px; box-shadow: 0 0 0 2px var(--gold); }
.home-hi { font-size: 46px; line-height: 0.9; margin-top: -4px; }

/* The Opener's round, in the Opener's own look: white paper, black type, light-blue rim. */
.opener-hero {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 18px 18px 16px;
  border-radius: 20px;
  color: #0b0b0c;
  text-decoration: none;
  background: #fff url(/opener/img/topo.svg) center / cover;
  border: 2px solid #b9d5ee;
  box-shadow: 0 0 0 4px rgba(185, 213, 238, 0.28), 0 18px 40px rgba(0, 0, 0, 0.35);
  font-family: 'Inter Tight', 'Inter', sans-serif;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.1s ease;
}
.opener-hero:active { transform: scale(0.985); }
.oh-logo { display: block; width: 132px; aspect-ratio: 1765 / 575; background: #0b0b0c; -webkit-mask: url(/opener/img/opener-logo.svg) center / contain no-repeat; mask: url(/opener/img/opener-logo.svg) center / contain no-repeat; }
.oh-word { font-size: 66px; font-weight: 900; letter-spacing: -0.05em; line-height: 0.84; text-transform: lowercase; }
.oh-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.oh-go { display: inline-flex; align-items: center; gap: 4px; padding: 11px 14px 11px 18px; border-radius: 999px; background: #0b0b0c; color: #fff; font-size: 16px; font-weight: 800; }
.oh-go .ico { width: 18px; height: 18px; stroke-width: 2.4; }

.group { display: grid; gap: 8px; }
#links, #extra { display: grid; gap: 18px; }
#mine:empty, #live:empty, #extra:empty { display: none; }
.group > .lbl { padding-left: 4px; }
.rows { display: grid; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 10px 12px 10px 14px;
  color: var(--text);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.row + .row { border-top: 1px solid var(--line); }
.row:active { background: rgba(255, 255, 255, 0.04); }
.row b { font-size: 16px; font-weight: 650; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--panel-2); color: var(--gold); flex: none; }
.row-ico .ico { width: 19px; height: 19px; }
.row-val { margin-left: auto; color: var(--muted); font-size: 14px; font-weight: 600; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-val i { font-style: normal; font-weight: 800; }
.row-val .ok { color: var(--fairway); }
.row-val .hot { color: var(--red); }
.row-chev { color: var(--dim); display: grid; }
.row-chev .ico { width: 18px; height: 18px; }
.row-val + .row-chev { margin-left: 0; }
.row b + .row-chev { margin-left: auto; }
.row.todo .row-ico { background: var(--gold); color: #0c2340; }
.row.todo .row-val { color: var(--gold); }

.live-card { display: grid; gap: 12px; padding: 16px; border-radius: var(--radius); background: linear-gradient(160deg, rgba(255, 90, 79, 0.18), rgba(255, 90, 79, 0.04)), var(--panel); border: 1px solid rgba(255, 90, 79, 0.4); }
.live-card.done { background: var(--panel); border-color: var(--line-2); }
.live-card h2 { font-size: 36px; line-height: 0.95; }
.live-top { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); animation: liveDot 1.2s ease-in-out infinite; }
@keyframes liveDot { 50% { opacity: 0.3; } }
.live-block { display: flex; align-items: center; gap: 12px; }
.live-block > div { display: grid; line-height: 1.25; }
.live-block span { color: var(--muted); font-size: 14px; font-weight: 600; }
.live-actions { display: grid; gap: 8px; }
.live-actions a, .draft-actions a { text-align: center; text-decoration: none; }

.login-card { display: grid; gap: 14px; padding: 18px 16px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line-2); }
.login-card h2 { font-size: 34px; line-height: 1; }
.login-card .linkish { justify-self: start; }
.login-new { margin: 0; color: var(--muted); font-size: 14px; }
.login-new a { color: var(--gold); font-weight: 700; }

.install { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--radius); background: var(--panel); border: 1px dashed var(--line-2); }
.install-icon img { width: 44px; height: 44px; border-radius: 11px; }
.install-text { display: grid; gap: 3px; min-width: 0; font-size: 14px; line-height: 1.3; }
.install-text > span { color: var(--muted); }
.install-text span b { color: var(--text); font-weight: 650; }
.install .share { display: inline-grid; vertical-align: -3px; color: var(--navy-hi); }
.install .share .ico { width: 17px; height: 17px; }
.install .btn { margin-left: auto; }
.install-x { appearance: none; border: 0; background: none; color: var(--dim); font-size: 24px; line-height: 1; padding: 4px 6px; margin-left: auto; cursor: pointer; }
.install .btn + .install-x { margin-left: 0; }

/* Draft hub */
.draft-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.draft-head h1 { font-size: 46px; line-height: 0.9; }
.pill { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 10px; border-radius: 99px; background: var(--panel-2); color: var(--muted); white-space: nowrap; }
.pill.hot { background: rgba(255, 90, 79, 0.18); color: var(--red); }
.pill.ok { background: color-mix(in srgb, var(--fairway) 25%, transparent); color: #bff0d5; }
.draft-actions { display: grid; gap: 8px; }
.draft-actions .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.draft-actions .btn { display: flex; align-items: center; justify-content: center; gap: 8px; }
.draft-actions .btn .ico { width: 18px; height: 18px; }
.draft-teams { display: grid; gap: 10px; }
.draft-teams .team-card { margin: 0; }
.team-card-head b { font-size: 17px; }
.roster-row.you span { color: var(--gold); }
.mock-as { display: grid; gap: 8px; }
.mock-as .chips-row { display: flex; flex-wrap: wrap; gap: 8px; }
.mock-as .chips-row a { text-decoration: none; }
.draft-empty { color: var(--muted); text-align: center; padding: 18px 0; margin: 0; }
