/* Welcome and sign-in (the front door). Loaded after base.css, in the order listed in index.html. */
/* ---------------------------------------------------------------- welcome extras */
.ghost-poster{margin:24px auto 0;max-width:360px;font-family:var(--display);text-align:center;line-height:1}
.ghost-poster .r{display:flex;justify-content:center;gap:10px;margin:0 0 10px}
.ghost-poster .r span{display:block;height:28px;border-radius:3px;background:rgba(0,0,0,.14)}
.ghost-poster .r1 span{height:40px}
.ghost-poster .r3 span{height:16px;background:rgba(0,0,0,.1)}
.ghost-poster .q{color:inherit;background:none!important;font-size:46px;font-weight:900;height:auto!important;width:auto!important}
.steps{list-style:none;margin:0;padding:0;display:grid;gap:14px}
.steps li{display:grid;grid-template-columns:44px 1fr;gap:12px;align-items:start}
.steps .k{font-family:var(--display);font-weight:900;font-size:38px;line-height:1;text-align:center}
.steps b{display:block}
.steps span{font-size:15px;color:var(--muted)}
.invite-card{position:relative;margin:-14px 0 0;z-index:2}
.sent{text-align:center}
.sent .mail{width:64px;height:64px;margin:0 auto 10px;color:var(--ink)}

.toast{position:fixed;left:50%;bottom:calc(var(--tabbar) + env(safe-area-inset-bottom,0px) + 16px);transform:translateX(-50%);z-index:60;
  background:var(--ink);color:var(--stock);padding:12px 18px;border-radius:var(--r);font-size:15px;font-weight:600;max-width:min(92vw,480px);box-shadow:0 4px 0 rgba(0,0,0,.2)}
@media (min-width:860px){.toast{bottom:24px}}
body:has(.dock) #toast{bottom:calc(var(--tabbar) + env(safe-area-inset-bottom,0px) + 96px)}
@media (min-width:860px){body:has(.dock) #toast{bottom:96px}}
.demo-flag{background:var(--ink);color:var(--stock);text-align:center;font-family:var(--mono);font-size:12px;font-weight:600;padding:6px 12px}
.foot{max-width:640px;margin:30px auto 0;padding:0 18px 30px;font-size:13px;color:var(--muted)}
.loading{padding:60px 0;text-align:center;color:var(--muted)}

/* ---------------------------------------------------------------- front door */
.hub-head{padding:18px 0 4px}
.hub-head h1{font-size:clamp(50px,14vw,76px);margin:0}
.hub-hi{margin:0 0 4px;color:var(--muted);font-size:16px;font-weight:600}
.hub-head .lede{margin:12px 0 0;max-width:34em}
.feature{display:block;margin:22px -24px 0;padding:16px 40px 18px;background:var(--orange);color:#000;text-decoration:none;position:relative;transform:rotate(-2deg);box-shadow:0 4px 0 rgba(0,0,0,.18)}
.feature .f-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.feature .f-kind{font-family:var(--mono);font-size:12px;font-weight:600}
.feature .f-snap{width:18px;height:18px;border-radius:50%;background:var(--ground);box-shadow:inset 0 0 0 4px rgba(255,255,255,.55);flex:none}
.feature h2{font-family:var(--display);font-weight:900;font-size:clamp(46px,13vw,64px);line-height:.9;margin:8px 0 8px;text-transform:uppercase}
.feature p{margin:0;font-size:15px;line-height:1.45;font-weight:500;max-width:30em}
.feature .f-foot{display:flex;align-items:baseline;gap:10px;margin-top:12px;font-size:14px;font-weight:700}
.feature .f-count{font-family:var(--display);font-weight:900;font-size:34px;line-height:1}
.feature .f-foot .chev{margin-left:auto;align-self:center;width:24px;height:24px}
@media (min-width:680px){.feature{margin:22px 0 0;padding:18px 28px 20px}}
.tools{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.tools>li{list-style:none}
.tool{position:relative;display:flex;min-height:96px;background:var(--stock);border-radius:var(--r);color:inherit;text-decoration:none}
.tool::before,.tool::after{content:"";position:absolute;right:88px;width:18px;height:18px;margin-right:-9px;border-radius:50%;background:var(--ground)}
.tool::before{top:-9px}.tool::after{bottom:-9px}
.tool:hover{box-shadow:0 0 0 2px var(--ink)}
.tool:focus-visible{outline:3px solid var(--ink);outline-offset:3px}
.t-main{flex:1;min-width:0;padding:14px 16px;display:flex;flex-direction:column;justify-content:center;gap:4px}
.t-main b{font-size:18px;font-weight:800;line-height:1.2}
.t-main span{font-size:14px;color:var(--muted);line-height:1.35}
.t-stub{flex:none;width:88px;border-left:2px dashed var(--tear);border-radius:0 var(--r) var(--r) 0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}
.t-stub b{font-family:var(--display);font-weight:900;font-size:38px;line-height:.9}
.t-stub small{font-family:var(--mono);font-size:12px;font-weight:600}
.t-stub svg{width:30px;height:30px}
.k-gigs .t-stub{background:var(--cobalt);color:#fff}
.k-dream .t-stub{background:var(--lime);color:#000}
.k-playlist .t-stub{background:var(--pink);color:#000}
.hub-in{text-align:center}

/* UI pass: body type, not mono */
.demo-flag{font-family:var(--body)}
/* example poster on the sign-in page: inverse print on the orange band */
.poster.inverse{background:var(--ink);color:var(--orange);margin-top:20px}
.poster.inverse .joker{background:var(--orange);color:var(--ink)}
.welcome .poster.inverse{transform:rotate(1deg)}

/* ---------------------------------------------------------------- Leagues front door on the Home stage (18 Nov 2026) */
.hd.lg h1{max-width:13ch;font-size:clamp(42px,12.5vw,64px)}
.hd.lg .hello{margin:14px 0 -8px;font-size:15px;font-weight:700;color:var(--orange)}
.hd.lg .hd-sub{max-width:36ch;margin-bottom:6px}
.hd.lg .lg-card{background:var(--orange);color:#000;margin:16px 0 0;border-radius:12px;box-shadow:0 18px 40px -20px rgba(255,91,20,.7)}
.hd.lg .lg-card .joker{background:#000;color:var(--orange)}
.hd.lg .lg-card .p-foot{opacity:.7}
.invite-card.lg-in{margin:14px 0 0}
.lg-how{margin:12px 0 0}
/* example league table on the Leagues stage */
.lg-table{margin:16px 0 0;background:var(--orange);color:#000;border-radius:12px;padding:14px 14px 12px;box-shadow:0 18px 40px -20px rgba(255,91,20,.7)}
.lg-th,.lg-tf{display:flex;justify-content:space-between;font-family:var(--mono);font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.08em}
.lg-tf{margin-top:10px;justify-content:center;opacity:.7;text-transform:none;letter-spacing:0}
.lg-table ol{list-style:none;margin:10px 0 0;padding:0;border-top:1.5px solid rgba(0,0,0,.5)}
.lg-table li{display:grid;grid-template-columns:22px 1fr auto 56px;align-items:center;gap:8px;padding:7px 2px;border-bottom:1.5px solid rgba(0,0,0,.18)}
.lg-table li b{font-family:var(--display);font-weight:900;font-size:20px}
.lg-table li span{font-weight:800;font-size:16px}
.lg-table li small{font-size:12px;font-weight:700;opacity:.75}
.lg-table li em{font-style:normal;font-family:var(--display);font-weight:900;font-size:24px;text-align:right}
.lg-table li.me{background:#000;color:var(--orange);border-radius:6px;padding:7px 8px;margin:2px -6px;border-bottom:0}

/* Leagues for the daily game (18 Nov 2026) */
.lg-btns{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.lg-btns .btn{flex:1 1 auto}
.lg-ghost{background:transparent;color:#fff;border-color:rgba(255,255,255,.4)}
.lg-league{margin-top:14px;background:var(--stock);border-radius:16px;padding:14px 14px 10px}
.lg-lh{display:flex;align-items:center;justify-content:space-between;gap:10px}
.lg-lh h2{margin:0;font-family:var(--display);font-weight:900;font-size:28px;line-height:1;text-transform:uppercase}
.lg-wk{margin:10px 0 6px;font-family:var(--mono);font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
.lg-rows{list-style:none;margin:0;padding:0}
.lg-rows li{display:grid;grid-template-columns:26px 1fr auto;align-items:center;gap:8px;padding:9px 6px;border-top:1px solid var(--rule)}
.lg-rows li:first-child{border-top:0}
.lg-rows li b{font-family:var(--display);font-weight:900;font-size:20px}
.lg-rows li span{font-weight:800;font-size:16px;line-height:1.2}
.lg-rows li span small{display:block;font-size:12px;font-weight:500;color:var(--muted)}
.lg-rows li .lg-you{font-style:normal;font-size:13px;font-weight:600}
.lg-rows li em{font-style:normal;font-family:var(--display);font-weight:900;font-size:26px}
.lg-rows li.me{background:var(--orange);border-radius:10px;border-top-color:transparent}
.lg-rows li.me span small{color:#000}
.lg-more{text-align:center;margin:14px 0 0}
.lg-join{margin-top:14px}
