/* Web launcher additions on top of x1.css (the design kit's tokens and components). */
input[type=password], input[type=email] { width: 100%; min-height: 40px; padding: 8px 12px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--panel); color: var(--text); font: 14px var(--font); }
button.chip { cursor: pointer; font: inherit; font-size: 13px; }
.l-top .mark img { height: 28px; display: block; }
.l-top nav a { cursor: pointer; }

/* art from listings: the capsule image, else a painted gradient in the listing's accent */
.art.img { background-color: var(--card-hi); }
.art.paint { background: radial-gradient(circle at 75% 30%, var(--a2) 0 10%, transparent 40%), linear-gradient(150deg, var(--a1), var(--a3)); }
.art .art-label { pointer-events: none; }
.gcard { transition: border-color .15s, transform .15s; }
.gcard:hover { transform: translateY(-2px); }
.gcard:focus-visible { outline: 3px solid var(--electric); outline-offset: 2px; }
.gcard .live { display: inline-flex; align-items: center; gap: 4px; }
.hero { text-decoration: none; color: inherit; }

/* demos: playable demos of upcoming releases, in their own section (store.release = "demo") */
.pill.demo { color: var(--accent-ink); border-color: currentColor; background: var(--accent-soft); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }
.pill.demo.on-art { color: var(--near-black); background: var(--lime); border-color: var(--lime); }
/* trending (store/discovery.js trendingIds): the Trending sort's top, in the warm token */
.pill.trend { color: var(--warn); border-color: currentColor; background: var(--warn-soft); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; gap: 4px; }
.pill.trend .trend-ico { font-size: 12px; line-height: 1; letter-spacing: 0; }
.pill.trend.on-art { color: var(--near-black); background: #f2b84b; border-color: #f2b84b; }
.art-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.badges { display: inline-flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.demo-line { color: var(--accent-ink); font-weight: 600; }
.gcard .title-row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px; }
.gcard .title-row .badges { flex: none; margin-top: 2px; margin-left: auto; }
.gcard.demo { border-style: dashed; border-color: var(--line-strong); }
.upcoming { margin-top: var(--s6); padding-top: var(--s2); border-top: 1px solid var(--line); }
.upcoming .store-head { margin-top: var(--s4); }
.hero .art { cursor: pointer; }

/* store top */
.store-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; margin: var(--s5) 0 var(--s3); }
.store-head .section-title { margin: 0; }
.store-head input[type=search] { max-width: 300px; }
.welcome { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s5); align-items: center; padding: var(--s6); border-radius: var(--r-lg);
  background: radial-gradient(ellipse at 85% 20%, rgb(185 230 17 / .14), transparent 55%), linear-gradient(135deg, var(--card), var(--card-hi)); border: 1px solid var(--line); }
.welcome h1 { font-family: var(--display); font-weight: 400; letter-spacing: .04em; font-size: clamp(28px, 4vw, 44px); line-height: 1.1; margin: 0 0 var(--s3); color: var(--heading); }
.welcome p { color: var(--dim); margin: 0 0 var(--s4); max-width: 56ch; }
.welcome .facts { display: grid; gap: var(--s3); }
.welcome .fact { display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s3) var(--s4); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.welcome .fact b { color: var(--heading); display: block; }
.welcome .fact .ico { font-size: 20px; line-height: 1.2; }

/* game page */
.detail-hero { background-color: var(--card-hi); }
.playbar .btn.lg { min-width: 160px; }
.about-text { white-space: pre-line; max-width: 72ch; }
.shots img { width: 260px; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; flex: none; background: var(--card-hi); cursor: zoom-in; border: 1px solid var(--line); }
.notice { display: flex; gap: var(--s3); align-items: flex-start; }

/* player: the game fills the window under a slim bar */
body.playing .l-top { display: none; }
.player { position: fixed; inset: 0; display: flex; flex-direction: column; background: #000; z-index: 20; }
.player-bar { display: flex; align-items: center; gap: var(--s3); height: 44px; padding: 0 var(--s3); background: var(--bg-deep); border-bottom: 1px solid var(--line); color: var(--text); font-size: 14px; }
.player-bar .t { font-family: var(--display); letter-spacing: .04em; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-bar .clock { color: var(--dim); font-variant-numeric: tabular-nums; }
.player-bar .btn { min-height: 30px; }
.player iframe { flex: 1; width: 100%; border: 0; background: #000; display: block; }
.player .loading { position: absolute; inset: 44px 0 0; display: grid; place-items: center; color: var(--dim); pointer-events: none; }

/* library */
.lib-item .s .status-dot { vertical-align: middle; }
.lib-empty-side { padding: var(--s3) 8px; font-size: 13px; color: var(--dim); }

/* settings */
.settings { max-width: 760px; }
.settings section { margin-bottom: var(--s5); }
.settings .row.between > div { min-width: 0; flex: 1 1 280px; }

/* auth dialog */
.auth-form h2 { font-family: var(--display); font-weight: 400; letter-spacing: .04em; }
.auth-mode { margin-bottom: var(--s4); }
.form-msg { min-height: 1.4em; margin: 0; font-size: 13px; color: var(--danger); }
.form-msg.ok { color: var(--ok); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; background: var(--card); color: var(--text); border: 1px solid var(--line-strong); border-radius: var(--r); padding: 10px 16px; box-shadow: 0 10px 30px rgb(0 0 0 / .35); font-size: 14px; max-width: calc(100vw - 32px); }
.toast.bad { border-color: var(--danger); }

@media (max-width: 860px) {
  .welcome { grid-template-columns: minmax(0, 1fr); padding: var(--s5); }
  .l-side { display: none; }
}
@media (max-width: 640px) {
  .l-top { gap: var(--s3); padding: 0 var(--s3); }
  .l-top nav { gap: var(--s3); }
  .l-top nav a { font-size: 13px; }
  .l-pad { padding: var(--s4); }
  .playbar { padding: var(--s4); gap: var(--s4); }
  .detail-hero .shade { padding: var(--s5) var(--s4) var(--s4); }
  .detail-hero h1 { font-size: 30px; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero .art { min-height: 200px; }
}
@media (max-width: 640px) { .l-top .right #account-chip { display: inline-flex; } .l-top .right #account-chip .lbl { display: none; } }
/* Phones can't run the desktop app: its tab gives the header room (the page stays at /download). */
@media (max-width: 640px) { .l-top nav a[data-tab=download] { display: none; } }

/* sharing options (x1.css .options/.option) */
.options { margin: 12px 0; }
.option.on { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.option > span { display: flex; flex-direction: column; gap: 2px; }

/* footer and the legal pages (store/legal.js) */
.l-foot { border-top: 1px solid var(--line); padding: var(--s4) var(--s5); font-size: 13px; }
.l-foot nav { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }
.l-foot a { color: var(--dim); }
.l-foot a:hover { color: var(--text); }
body.playing .l-foot { display: none; }
.legal { max-width: 72ch; }
.legal h1 { font-family: var(--display); font-weight: 400; letter-spacing: .04em; margin: var(--s5) 0 var(--s2); }
.legal h2 { margin: var(--s6) 0 var(--s2); }
.legal p, .legal li { line-height: 1.6; }
.legal ul { padding-left: 1.3em; }
.legal li + li { margin-top: 4px; }
.legal .legal-draft { margin-bottom: var(--s3); }
.legal-todo { background: var(--accent-soft); color: inherit; padding: 0 3px; border-radius: 3px; font-weight: 700; }
.legal-other { margin-top: var(--s6); }
#auth-legal a { color: var(--link, inherit); }
