/* PlanToGame. Every color is a variable so themes (themes.css) can restyle the whole site.
   :root is the default "midnight" theme. */
:root {
  --bg: #12141c;
  --panel: #1b1e2a;
  --panel-2: #242838;
  --line: #2f3447;
  --text: #e8eaf2;
  --muted: #a3aac0;
  --accent: #7cf29a;      /* "online" green */
  --accent-ink: #0c2414;  /* text on accent */
  --warn: #ffcf66;
  --bad: #ff8585;
  --link: #9db8ff;
  --radius: 14px;

  --link-hover: #c3d3ff;
  --link-decoration: none;
  --header-bg: #1b1e2a;
  --input-bg: #12141c;
  --good-bg: #1d3325;     /* positive tags, ok flash, picked tile */
  --good-line: #2f6b44;
  --good-text: #7cf29a;
  --warn-bg: #3a3220;
  --warn-line: #6b5a2a;
  --warn-text: #ffcf66;
  --bad-bg: #3a1f24;
  --bad-line: #7a3540;
  --bad-text: #ff9a9a;
  --live-bg: #182520;     /* the card for a live session */
  --live-line: #7cf29a;
  --pick-on-bg: #1d3325;
  --pick-on-line: #7cf29a;
  --badge-bg: #7cf29a;
  --badge-ink: #0c2414;
  --focus: #7cf29a;
  --scrim: rgba(8, 10, 16, .82);   /* label over game art */
  --on-scrim: #ffffff;
  --cover-ink: #ffffff;   /* initials on a generated cover color */
  --shadow: rgba(0, 0, 0, .35);
  --bar-track: #2f3447;
  --line-width: 1px;
  --font-head: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --tabbar-h: 64px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--link); text-decoration: var(--link-decoration); text-underline-offset: 2px; }
a:hover { color: var(--link-hover); text-decoration: underline; }
/* buttons, navigation and tiles are recognizable without an underline, even when a theme underlines links */
.btn, .nav a, .brand, .tabbar a, .people-strip a, .chip, .scard .art, .gtile a.art, .setup-steps a, .pick-change, .skip,
.gt-btn, .gt-big, .gt-tile, .gt-back, .stat-strip a, .shelf-item, .menu-links a, a.club-row, a.toast, .stat-link, .avatar-link, .cover-link { text-decoration: none; }
h1, h2, h3, .brand, .stat { font-family: var(--font-head); letter-spacing: -.01em; }
h1 { font-size: 1.6rem; margin: 0 0 .5rem; line-height: 1.15; }
h2 { font-size: 1.15rem; margin: 0 0 .75rem; line-height: 1.25; }
h3 { font-size: 1rem; margin: 0 0 .5rem; }
p { margin: 0 0 .75rem; }
img { max-width: 100%; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 8px; }

/* ---------------------------------------------------------------- header */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 20px; padding-top: calc(10px + env(safe-area-inset-top));
  padding-left: calc(20px + env(safe-area-inset-left)); padding-right: calc(20px + env(safe-area-inset-right));
  border-bottom: var(--line-width) solid var(--line); background: var(--header-bg);
  position: sticky; top: 0; z-index: 20;
}
.brand { color: var(--text); font-weight: 700; font-size: 1.2rem; display: flex; align-items: center; gap: 10px; min-height: 44px; white-space: nowrap; }
.brand:hover { text-decoration: none; color: var(--text); }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); flex: none; }
.nav { display: flex; gap: 2px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--muted); padding: 10px 12px; border-radius: 10px; font-size: .95rem; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover { color: var(--text); text-decoration: none; background: var(--panel-2); }
.nav a.on { color: var(--text); background: var(--panel-2); }
.nav a.btn { color: var(--accent-ink); background: var(--accent); margin-left: 6px; }
.nav a.me { padding: 4px; margin-left: 6px; border-radius: 50%; }
.nav a.me:hover { background: transparent; }
.badge[hidden] { display: none; }
.badge {
  display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 6px; border-radius: 10px;
  background: var(--badge-bg); color: var(--badge-ink); font-size: .75rem; line-height: 20px; font-weight: 700; text-align: center;
}

/* bottom tab bar on phones */
.tabbar { display: none; }
@media (max-width: 760px) {
  .top { padding: 8px 12px; padding-top: calc(8px + env(safe-area-inset-top)); }
  .brand { font-size: 1.08rem; }
  .nav a.in-tabs { display: none; }
  .top { flex-wrap: nowrap; }
  .nav { flex-wrap: nowrap; }
  .nav a { padding: 8px 9px; font-size: .88rem; }
  .cover.wide { aspect-ratio: 2 / 1; }
  .nav a.me { margin-left: 2px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    background: var(--header-bg); border-top: var(--line-width) solid var(--line);
    padding: 4px max(6px, env(safe-area-inset-left)) calc(4px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-right));
  }
  .tabbar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    min-height: 56px; border-radius: 12px; color: var(--muted); font-size: .75rem; font-weight: 600;
  }
  .tabbar a:hover { text-decoration: none; color: var(--text); }
  .tabbar a.on { color: var(--text); }
  .tabbar a.on .ico { color: var(--accent); }
  .tabbar a.on span:last-child { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--accent); }
  .tabbar .ico-wrap { position: relative; display: inline-flex; }
  .tabbar .badge { position: absolute; top: -4px; left: 14px; margin: 0; box-shadow: 0 0 0 2px var(--header-bg); }
  body.has-tabs .foot { padding-bottom: calc(var(--tabbar-h) + 18px + env(safe-area-inset-bottom)); }
}
.ico { display: block; flex: none; }

.wrap { width: 100%; max-width: 780px; margin: 0 auto; padding: 22px 16px 40px; flex: 1; }
.wrap.wide { max-width: 1160px; }
.foot { text-align: center; color: var(--muted); font-size: .8rem; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }

/* ---------------------------------------------------------------- blocks */
.card { background: var(--panel); border: var(--line-width) solid var(--line); border-radius: calc(var(--radius) + 2px); padding: 20px; margin-bottom: 18px; }
.card.live { border-color: var(--live-line); background: var(--live-bg); }
.card > :last-child { margin-bottom: 0; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head h1, .card-head h2 { margin: 0; }
.card-head a { font-weight: 600; font-size: .92rem; }
.flash { padding: 12px 14px; border-radius: 12px; margin-bottom: 16px; background: var(--good-bg); border: var(--line-width) solid var(--good-line); color: var(--text); }
.flash.err { background: var(--bad-bg); border-color: var(--bad-line); }
.row { display: flex; align-items: center; gap: 12px; }
.row + .row { margin-top: 12px; padding-top: 12px; border-top: var(--line-width) solid var(--line); }
.row .grow { flex: 1; min-width: 0; }
.row .title { font-weight: 600; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tag {
  display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--panel-2); color: var(--muted);
  border: var(--line-width) solid var(--line); font-size: .78rem; font-weight: 600; margin: 0 4px 4px 0; line-height: 1.5;
}
.tag a { color: inherit; }
.tag.good { background: var(--good-bg); color: var(--good-text); border-color: var(--good-line); }
.tag.warn { background: var(--warn-bg); color: var(--warn-text); border-color: var(--warn-line); }
.empty { color: var(--muted); padding: 6px 0; }
.stat { font-size: 2.4rem; font-weight: 700; color: var(--accent); line-height: 1.05; }

/* ---------------------------------------------------------------- buttons and forms */
.btn, button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: var(--line-width) solid var(--accent); border-radius: 10px; padding: 10px 18px; min-height: 44px; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 700; text-align: center; line-height: 1.2;
}
.btn:hover { text-decoration: none; color: var(--accent-ink); filter: brightness(1.08); }
button:hover { filter: brightness(1.08); }
.btn.small, button.small { padding: 6px 14px; font-size: .875rem; min-height: 40px; }
.btn.ghost, button.ghost { background: var(--panel-2); color: var(--text); border-color: var(--line); }
.btn.ghost:hover, button.ghost:hover { color: var(--text); filter: none; border-color: var(--muted); }
.btn.danger, button.danger { background: transparent; color: var(--bad-text); border-color: var(--bad-line); }
.btn.danger:hover, button.danger:hover { background: var(--bad-bg); color: var(--bad-text); filter: none; }
form.inline { display: inline; }
label { display: block; font-size: .9rem; color: var(--muted); margin: 14px 0 6px; font-weight: 500; }
input[type=text], input[type=email], input[type=password], input[type=time], input[type=url], input[type=search], select {
  width: 100%; padding: 10px 12px; min-height: 44px; border-radius: 10px; border: var(--line-width) solid var(--line);
  background: var(--input-bg); color: var(--text); font: inherit;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input:focus, select:focus, textarea:focus, button:focus-visible, .btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.check { display: flex; align-items: center; gap: 10px; color: var(--text); margin: 6px 0; font-size: 1rem; min-height: 40px; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hint { font-size: .85rem; color: var(--muted); margin-top: 6px; }

/* ---------------------------------------------------------------- game art */
.cover {
  width: 48px; aspect-ratio: 264 / 374; height: auto; border-radius: 8px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; color: var(--cover-ink); overflow: hidden; background: var(--panel-2); position: relative;
}
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cover.big { width: 120px; font-size: 1.8rem; border-radius: 14px; }
.cover.tile { width: 100%; border-radius: 12px; font-size: 1.6rem; }
.cover.wide { width: 100%; aspect-ratio: 16 / 9; border-radius: 0; font-size: 2rem; }
.cover.wide img { object-position: center 25%; }
.cover.hero { width: 132px; border-radius: 16px; font-size: 2.2rem; box-shadow: 0 8px 24px var(--shadow); }
.cover.poster { width: 100%; border-radius: 16px; font-size: 2.6rem; box-shadow: 0 8px 24px var(--shadow); }

/* ---------------------------------------------------------------- people */
.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; overflow: hidden; flex: none; font-weight: 700; vertical-align: middle; font-family: var(--font-head); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.stack { display: inline-flex; align-items: center; flex: none; }
.stack > * { box-shadow: 0 0 0 2px var(--panel); }
.stack > * + * { margin-left: -9px; }
.card.live .stack > * { box-shadow: 0 0 0 2px var(--live-bg); }
.stack-more { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--panel-2); color: var(--text); font-size: .75rem; font-weight: 700; }
.person { display: flex; align-items: center; gap: 12px; min-width: 0; }
.person .grow { min-width: 0; }
.row.split { flex-wrap: wrap; }
.row.split .person { flex: 1 1 200px; }
.people-strip { display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 6px; margin: 0 -2px; scrollbar-width: thin; }
.people-strip a { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 72px; flex: none; color: var(--text); font-size: .8rem; font-weight: 600; text-align: center; padding: 6px 2px; border-radius: 12px; }
.people-strip a:hover { background: var(--panel-2); text-decoration: none; }
.people-strip a span.name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; min-height: 44px; border-radius: 999px; background: var(--panel-2); border: var(--line-width) solid var(--line); color: var(--text); font-weight: 600; font-size: .92rem; }
.chip:hover { text-decoration: none; color: var(--text); border-color: var(--muted); }

/* ---------------------------------------------------------------- home */
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 0 20px; align-items: start; }
.home-grid > div { min-width: 0; }
@media (max-width: 900px) { .home-grid { grid-template-columns: 1fr; } }

.hero-live { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.hero-live .info { flex: 1 1 260px; min-width: 0; }
.hero-live h1 { font-size: 2.1rem; margin: 2px 0 10px; }
.hero-live h1 a { color: var(--text); }
.hero-live .meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hero-live .meta .tag { margin: 0; }
.hero-live .who { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero-live .actions { flex: 0 1 auto; }
@media (max-width: 560px) {
  .hero-live { gap: 14px; align-items: flex-start; }
  .cover.hero { width: 96px; }
  .hero-live .info { flex-basis: 0; }
  .hero-live h1 { font-size: 1.55rem; }
  .hero-live .actions { flex-basis: 100%; }
  .hero-live .actions > * { flex: 1 1 auto; }
}

/* the go-online picker */
.picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.picker label { margin: 0; cursor: pointer; color: var(--text); position: relative; }
.picker input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick {
  display: flex; flex-direction: column; gap: 8px; padding: 8px; height: 100%;
  background: var(--panel-2); border: 2px solid var(--line); border-radius: var(--radius); color: var(--text); font-weight: 600; font-size: .9rem; line-height: 1.25;
  position: relative;
}
.pick .cover { width: 100%; border-radius: 10px; font-size: 1.5rem; }
.pick-check { display: none; position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); align-items: center; justify-content: center; box-shadow: 0 0 0 3px var(--pick-on-bg); }
.picker input:checked + .pick { border-color: var(--pick-on-line); background: var(--pick-on-bg); }
.picker input:checked + .pick .pick-check { display: inline-flex; }
.picker input:focus-visible + .pick { outline: 2px solid var(--focus); outline-offset: 2px; }
.pick-change { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 120px; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted); font-weight: 600; padding: 8px; }
.pick-change:hover { color: var(--text); text-decoration: none; border-color: var(--muted); }
.durations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.durations button { padding: 14px 6px; font-size: 1rem; min-height: 52px; }

/* friends playing now */
.live-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.scard { background: var(--panel-2); border: var(--line-width) solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.scard .art { position: relative; display: block; }
.scard .art .label { position: absolute; left: 10px; bottom: 10px; right: 10px; }
.scard .art .label span { display: inline-block; max-width: 100%; padding: 3px 9px; border-radius: 8px; background: var(--scrim); color: var(--on-scrim); font-weight: 700; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scard .art:hover { text-decoration: none; }
.scard .body { padding: 12px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.scard .foot-row { display: flex; align-items: center; gap: 10px; justify-content: space-between; margin-top: auto; flex-wrap: wrap; }
.scard .count { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); }
.cant { margin-top: 14px; }
.cant .row { padding: 10px 0 0; }

/* kudos */
.bars { display: grid; gap: 10px; margin-top: 14px; }
.bar-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.bar-row .who { display: flex; flex-direction: column; min-width: 0; gap: 4px; }
.bar-row .who a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-weight: 600; font-size: .92rem; }
.bar { height: 8px; border-radius: 4px; background: var(--bar-track); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.bar-row strong { font-variant-numeric: tabular-nums; }

/* setup steps */
.setup-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.setup-steps a { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 12px; border: var(--line-width) solid var(--line); background: var(--panel-2); color: var(--text); font-weight: 600; min-height: 56px; }
.setup-steps a:hover { text-decoration: none; border-color: var(--muted); }
.setup-steps .num { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: var(--accent-ink); font-weight: 700; flex: none; }
.setup-steps .done .num { background: var(--good-bg); color: var(--good-text); border: var(--line-width) solid var(--good-line); }
@media (max-width: 560px) { .setup-steps { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- games */
.cover-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 16px 12px; }
.gtile { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.gtile .name { font-weight: 600; font-size: .92rem; line-height: 1.25; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gtile a.art:hover { text-decoration: none; }
.gtile a.art:hover .cover { box-shadow: 0 0 0 2px var(--accent); }
.gtile .tags { display: flex; flex-wrap: wrap; gap: 4px; }
.gtile .tags .tag { margin: 0; }
.gtile form, .gtile .btn, .gtile button { width: 100%; }
.gtile .slot { margin-top: auto; }
@media (max-width: 560px) { .cover-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; } .gtile .name { font-size: .85rem; } }
.fav-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 168px)); gap: 12px; }
@media (max-width: 640px) { .fav-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fav-empty { border: 2px dashed var(--line); border-radius: 12px; aspect-ratio: 264 / 374; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: .85rem; text-align: center; padding: 8px; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.search-row { display: flex; gap: 8px; margin-bottom: 16px; }
.search-row input { flex: 1; }

.game-hero { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: start; }
.game-hero h1 { font-size: 2.1rem; }
.game-hero .summary { grid-column: 2; }
.game-hero > .cover.poster { grid-row: span 3; }
@media (max-width: 600px) {
  .game-hero { grid-template-columns: 110px minmax(0, 1fr); gap: 16px; }
  .game-hero h1 { font-size: 1.45rem; }
  .game-hero .summary { grid-column: 1 / -1; }
  .game-hero > .cover.poster { grid-row: auto; }
}

/* session */
.session-hero { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.session-hero .info { flex: 1 1 240px; min-width: 0; }
.session-hero h1 a { color: var(--text); }
@media (max-width: 560px) { .session-hero .cover.big { width: 96px; } .session-hero .info { flex-basis: 0; } }

/* ---------------------------------------------------------------- landing and account pages */
.landing { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px; align-items: center; padding: 18px 0 8px; }
.landing h1 { font-size: 2.7rem; line-height: 1.05; margin-bottom: 14px; }
.landing .lede { color: var(--muted); font-size: 1.1rem; max-width: 34em; }
.landing .card { margin: 0; }
.shelf { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin: 22px 0 6px; }
.shelf .cover { width: 100%; border-radius: 10px; }
@media (max-width: 800px) {
  .landing { grid-template-columns: 1fr; gap: 20px; }
  .landing h1 { font-size: 2.1rem; }
  .shelf { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .shelf .cover:nth-child(n+5) { display: none; }
}
.hero { text-align: center; padding: 26px 0 8px; }
.hero h1 { font-size: 2rem; }
.hero p { color: var(--muted); max-width: 520px; margin: 0 auto 1rem; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 22px 0; }
.steps .card { margin: 0; }
.steps .card h3 { display: flex; align-items: center; gap: 10px; }
.steps .num { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: var(--accent-ink); font-size: .9rem; flex: none; }
.steps b { color: var(--accent); }
.narrow { max-width: 440px; margin-left: auto; margin-right: auto; }
.auth-card { margin-top: 24px; }
.auth-card .mark { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; color: var(--muted); font-weight: 600; }
.auth-card button[type=submit] { width: 100%; }

.copybox { display: flex; gap: 8px; }
.copybox input { flex: 1; min-width: 0; }
.unread { border-left: 3px solid var(--accent); padding-left: 10px; }

/* alerts */
.alert-row .title a { color: var(--text); font-weight: 500; }
.alert-row.is-unread .title a { font-weight: 700; }
.alert-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--panel-2); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; flex: none; }

/* settings: theme picker */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.theme-grid label { margin: 0; cursor: pointer; color: var(--text); position: relative; }
.theme-grid input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.theme-tile { display: flex; flex-direction: column; gap: 8px; padding: 8px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--panel-2); height: 100%; }
.theme-grid input:checked + .theme-tile { border-color: var(--pick-on-line); background: var(--pick-on-bg); }
.theme-grid input:focus-visible + .theme-tile { outline: 2px solid var(--focus); outline-offset: 2px; }
.theme-name { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-weight: 600; font-size: .92rem; padding: 0 2px 2px; }
.theme-name .on-text { display: none; font-size: .75rem; color: var(--good-text); }
.theme-grid input:checked + .theme-tile .on-text { display: inline; }
/* the preview draws with the previewed theme's own variables (data-theme on .tp) */
.tp { display: block; border-radius: 10px; overflow: hidden; background: var(--bg); border: 1px solid var(--line); }
.tp-bar { display: flex; align-items: center; gap: 6px; padding: 7px 8px; background: var(--header-bg); border-bottom: 1px solid var(--line); }
.tp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.tp-word { color: var(--text); font: 700 .7rem/1 var(--font-head); }
.tp-body { display: block; padding: 8px; }
.tp-card { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 7px; }
.tp-line { display: block; height: 6px; border-radius: 3px; background: var(--text); width: 70%; margin-bottom: 5px; }
.tp-line.m { background: var(--muted); width: 50%; }
.tp-row { display: flex; align-items: center; gap: 5px; margin-top: 7px; }
.tp-btn { display: inline-block; height: 14px; width: 40px; border-radius: 4px; background: var(--accent); }
.tp-link { display: inline-block; height: 6px; width: 26px; border-radius: 3px; background: var(--link); }
.tp-tag { display: inline-block; height: 10px; width: 22px; border-radius: 5px; background: var(--good-bg); border: 1px solid var(--good-line); }

/* setup: platforms checklist */
.plat-list { display: grid; gap: 8px; }
.plat { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border: var(--line-width) solid var(--line); border-radius: 12px; background: var(--panel-2); }
.plat .check { margin: 0; font-weight: 600; min-height: 44px; }
.plat .main-pick { margin: 0; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; min-height: 44px; border-radius: 10px; color: var(--muted); font-size: .88rem; cursor: pointer; }
.plat .main-pick input { width: 20px; height: 20px; accent-color: var(--accent); }
.plat .main-pick:has(input:checked) { color: var(--good-text); background: var(--good-bg); }
.plat .main-pick:has(input:disabled) { opacity: .55; cursor: default; }

@media (max-width: 420px) { .nav a.me { display: none; } }
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .card { padding: 16px; }
  .wrap { padding-top: 16px; }
}

/* ---------------------------------------------------------------- admin */
.subnav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.subnav a { padding: 6px 12px; border-radius: 999px; background: var(--panel); border: var(--line-width) solid var(--line); color: var(--muted); font-size: .9rem; }
.subnav a.on { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); font-weight: 700; }
.subnav a:hover { text-decoration: none; color: var(--text); }
.subnav a.on:hover { color: var(--accent-ink); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 16px; }
.stats .card { margin: 0; padding: 14px; }
.stats .stat { font-size: 1.6rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: var(--line-width) solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; white-space: nowrap; }
td.num, th.num { text-align: right; }
textarea { width: 100%; min-height: 90px; padding: 10px 12px; border-radius: 10px; border: var(--line-width) solid var(--line); background: var(--input-bg); color: var(--text); font: inherit; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0 12px; }
td button, td .btn { white-space: nowrap; }

@media (prefers-reduced-motion: no-preference) {
  .btn, button, .pick, .theme-tile, .nav a, .chip { transition: background-color .15s, border-color .15s, filter .15s, color .15s; }
}
@media (min-width: 901px) { .people-strip { flex-wrap: wrap; overflow: visible; } }

/* screenshots */
.cover.wide.has-shot img { object-position: center; }
.shots { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
.shots a { flex: none; width: min(78vw, 320px); border-radius: 12px; overflow: hidden; scroll-snap-align: start; background: var(--panel-2); }
.shots img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.shots a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* in-place favorites */
.gtile button.is-fav { border-color: var(--accent); }
.toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; max-width: min(92vw, 420px);
  padding: 12px 16px; border-radius: 12px; background: var(--good-bg); border: var(--line-width) solid var(--good-line); color: var(--text); font-weight: 600; box-shadow: 0 8px 24px var(--shadow); }
.toast.err { background: var(--bad-bg); border-color: var(--bad-line); }


/* ================================================================ Game Time, header menu, home dashboard */

/* ---- header: main links on the left, Game Time and the menu on the right */
.nav-main { flex: 1; justify-content: flex-start; flex-wrap: nowrap; min-width: 0; margin-left: 6px; }
.nav-main a { white-space: nowrap; }
.top-actions { display: flex; align-items: center; gap: 8px; flex: none; margin-left: auto; }

.gt-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; max-width: 290px; padding: 5px 18px 5px 7px;
  border-radius: 999px; border: var(--line-width) solid var(--accent); background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-head); font-weight: 700; font-size: .9rem; letter-spacing: .07em; text-transform: uppercase; line-height: 1.15;
}
.gt-btn:hover { color: var(--accent-ink); text-decoration: none; filter: brightness(1.08); }
.gt-ico { width: 32px; height: 32px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-ink); color: var(--accent); }
.gt-ico .ico { width: 16px; height: 16px; margin-left: 2px; }
.gt-text { display: flex; flex-direction: column; min-width: 0; }
.gt-game { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gt-left { font-family: var(--font-body); font-size: .75rem; font-weight: 600; letter-spacing: 0; }
.gt-left[hidden] { display: none; }
/* already online: the button names the game and the time left, and opens the session */
.gt-btn.is-live { background: var(--good-bg); border-color: var(--live-line); color: var(--text); text-transform: none; letter-spacing: 0; font-size: .92rem; }
.gt-btn.is-live:hover { color: var(--text); filter: none; border-color: var(--text); }
.gt-btn.is-live .gt-ico { background: var(--accent); color: var(--accent-ink); }
.gt-btn.is-live .gt-left { color: var(--good-text); }

.menu { position: relative; }
.menu > summary {
  list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 3px 3px 3px 12px; cursor: pointer;
  border-radius: 999px; border: var(--line-width) solid var(--line); background: var(--panel-2); color: var(--text);
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover, .menu[open] > summary { border-color: var(--muted); }
.menu-ico .ico { width: 20px; height: 20px; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); width: 264px; z-index: 40; padding: 8px;
  background: var(--panel); border: var(--line-width) solid var(--line); border-radius: var(--radius); box-shadow: 0 16px 40px var(--shadow);
}
.menu-who { display: flex; align-items: center; gap: 10px; padding: 6px 8px 12px; margin-bottom: 6px; border-bottom: var(--line-width) solid var(--line); }
.menu-who div { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.menu-who strong, .menu-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-links a { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 8px 10px; border-radius: 10px; color: var(--text); font-weight: 600; }
.menu-links a:hover, .menu-links a.on { background: var(--panel-2); color: var(--text); text-decoration: none; }
.menu-links .ico { width: 22px; height: 22px; color: var(--muted); }
.menu-links a.on .ico { color: var(--accent); }
.menu-links a.m-phone, .menu-links a.m-mid { display: none; }
.menu-out { width: 100%; justify-content: flex-start; gap: 12px; margin-top: 6px; padding: 8px 10px; background: transparent; border-color: transparent; }
.menu-out .ico { width: 22px; height: 22px; color: var(--muted); }
.menu-out:hover { background: var(--panel-2); }
@media (max-width: 1099px) {
  .nav a.nav-2 { display: none; }
  .menu-links a.m-mid { display: flex; }
}
@media (max-width: 760px) {
  .nav-main, .top .gt-btn { display: none; }
  .menu-links a.m-phone { display: flex; }
  .menu-panel { position: fixed; left: 8px; right: 8px; top: calc(62px + env(safe-area-inset-top)); width: auto; max-height: calc(100vh - 150px); overflow-y: auto; }
  .menu-links { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
  .menu-links a { min-height: 52px; background: var(--panel-2); }
}

/* ---- tab bar: Game Time is the raised middle button */
.tabbar a.gt-tab { color: var(--text); justify-content: flex-end; padding-bottom: 5px; }
.gt-orb {
  width: 54px; height: 54px; margin-top: -24px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 4px var(--header-bg), 0 6px 16px var(--shadow);
}
.gt-orb .ico { width: 24px; height: 24px; margin-left: 3px; }
.gt-tab-text { font-weight: 700; white-space: nowrap; }
.gt-tab.is-live .gt-orb { box-shadow: 0 0 0 4px var(--header-bg), 0 0 0 6px var(--accent), 0 6px 16px var(--shadow); }

/* ---- links around pictures */
.avatar-link { display: inline-flex; border-radius: 50%; flex: none; vertical-align: middle; }
.avatar-link:hover .avatar, .avatar-link:focus-visible .avatar { box-shadow: 0 0 0 2px var(--accent); }
.cover-link { display: inline-flex; flex: none; border-radius: 10px; }
.cover-link:hover .cover { box-shadow: 0 0 0 2px var(--accent); }
a.quiet { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
a.quiet:hover { color: var(--text); text-decoration-color: currentColor; }
.stat-link:hover { color: var(--accent); text-decoration: none; filter: brightness(1.1); }
.more-line { margin: 12px 0 0; font-weight: 600; }
.card h2[id], #gt-q { scroll-margin-top: 96px; }

/* ---- the Game Time page */
.gt-card h1 { font-size: 1.9rem; margin-bottom: .4rem; }
.gt-kicker { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -4px 0 4px; min-height: 32px; font-size: .85rem; font-weight: 600; }
.gt-back { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; margin-left: -6px; padding-right: 8px; font-weight: 600; }
.gt-back .ico { width: 22px; height: 22px; }
.gt-search { display: flex; gap: 8px; position: relative; margin: 14px 0 0; }
.gt-search input[type=search] { flex: 1; min-width: 0; min-height: 54px; padding-left: 46px; border-radius: 14px; font-size: 1.05rem; }
.gt-search button { min-height: 54px; border-radius: 14px; }
.gt-search-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.gt-search-ico .ico { width: 22px; height: 22px; }
.gt-results { margin-top: 18px; padding-bottom: 20px; border-bottom: var(--line-width) solid var(--line); }
.gt-results:empty { display: none; }
.gt-sub { font-size: 1rem; }
.gt-head { margin: 22px 0 12px; }
.gt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 14px 12px; }
.gt-tile { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 6px; margin: -6px; border-radius: 16px; color: var(--text); font-weight: 600; font-size: .92rem; line-height: 1.25; }
.gt-tile:hover { color: var(--text); text-decoration: none; background: var(--panel-2); }
.gt-tile:hover .cover { box-shadow: 0 0 0 2px var(--accent); }
.gt-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.gt-tile.is-off .cover { filter: grayscale(1); opacity: .45; }
.gt-tile.is-off:hover .cover { box-shadow: 0 0 0 2px var(--muted); }
.gt-why { font-size: .78rem; font-weight: 500; color: var(--muted); }
.gt-live { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.gt-live .grow { flex: 1 1 200px; min-width: 0; }
.gt-live .title { font-weight: 600; }
.gt-live .tag { margin: 0 6px 0 0; }
.gt-note { padding: 10px 12px; border-radius: 12px; background: var(--panel-2); border: var(--line-width) solid var(--line); font-size: .92rem; margin: 12px 0; }
.gt-note .tag { margin: 0 6px 0 0; }
.gt-chosen { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 16px; }
.gt-chosen .info { flex: 1; min-width: 0; }
.gt-playing { font-size: 1.1rem; font-weight: 600; margin-bottom: .6rem; overflow-wrap: anywhere; }
.gt-crew { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gt-times { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.gt-times button { flex-direction: column; gap: 4px; min-height: 96px; padding: 12px 8px; border-radius: 18px; }
.gt-times strong { font-family: var(--font-head); font-size: 2.1rem; line-height: 1; }
.gt-times span { font-size: .85rem; font-weight: 600; }
.gt-times button.ghost strong { font-size: 1.25rem; line-height: 1.3; }
form.is-busy button { pointer-events: none; opacity: .7; }
@media (max-width: 560px) {
  .gt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; }
  .gt-tile { font-size: .85rem; }
  .gt-card h1 { font-size: 1.6rem; }
  .gt-chosen .cover.big { width: 96px; }
  .gt-times { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gt-search button { padding-left: 14px; padding-right: 14px; }
}

/* ---- home: the Game Time call to action */
.gt-hero { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 28px; align-items: center; border-color: var(--good-line); }
.gt-hero h1 { font-size: 2.1rem; margin-bottom: .35rem; }
.gt-big {
  display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 76px; margin-top: 16px; padding: 14px 22px;
  border-radius: 22px; background: var(--accent); color: var(--accent-ink); border: var(--line-width) solid var(--accent);
  font-family: var(--font-head); font-weight: 700; font-size: 1.45rem; letter-spacing: .07em; text-transform: uppercase; box-shadow: 0 10px 28px var(--shadow);
}
.gt-big:hover { color: var(--accent-ink); text-decoration: none; filter: brightness(1.08); }
.gt-big .gt-ico { width: 42px; height: 42px; }
.gt-big .gt-ico .ico { width: 20px; height: 20px; }
.gt-hero-quick { min-width: 0; }
.gt-quick { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.gt-more-box { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 264 / 374; border: 2px dashed var(--line); border-radius: 12px; color: var(--muted); }
.gt-tile.gt-more:hover .gt-more-box { border-color: var(--accent); color: var(--text); }
@media (max-width: 900px) {
  .gt-hero { grid-template-columns: 1fr; gap: 20px; }
  .gt-hero h1 { font-size: 1.7rem; }
  .gt-quick { display: flex; gap: 12px; overflow-x: auto; padding: 6px; margin: -6px; scrollbar-width: thin; }
  .gt-quick .gt-tile { flex: none; width: 104px; margin: 0; padding: 0; }
  .gt-quick .gt-tile:hover { background: transparent; }
}

/* ---- home: numbers you can tap */
.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 18px; }
.stat-strip a {
  display: flex; flex-direction: column; gap: 2px; min-height: 68px; padding: 12px 14px; border-radius: var(--radius);
  background: var(--panel); border: var(--line-width) solid var(--line); color: var(--text);
}
.stat-strip a:hover { color: var(--text); text-decoration: none; border-color: var(--muted); }
.stat-strip strong { font-family: var(--font-head); font-size: 1.6rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-strip span { font-size: .8rem; font-weight: 600; color: var(--muted); }
@media (max-width: 760px) {
  .stat-strip { display: flex; overflow-x: auto; scrollbar-width: none; margin-left: -16px; margin-right: -16px; padding: 0 16px 2px; }
  .stat-strip::-webkit-scrollbar { display: none; }
  .stat-strip a { flex: none; min-width: 124px; }
}

/* ---- home: shelves and lists */
.shelf-row { display: flex; gap: 12px; overflow-x: auto; padding: 6px; margin: -6px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.shelf-item { flex: none; width: 116px; display: flex; flex-direction: column; gap: 6px; color: var(--text); font-weight: 600; font-size: .88rem; line-height: 1.25; scroll-snap-align: start; border-radius: 12px; }
.shelf-item:hover { color: var(--text); text-decoration: none; }
.shelf-item:hover .cover { box-shadow: 0 0 0 2px var(--accent); }
.shelf-item .small { font-weight: 500; font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.club-row { color: var(--text); min-height: 56px; }
a.club-row:hover { color: var(--text); text-decoration: none; }
a.club-row:hover .title { text-decoration: underline; }
a.club-row .grow { display: flex; flex-direction: column; }
a.club-row .cover { width: 40px; }
.people-strip a.is-on .avatar { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--accent); }
.on-now { padding: 0 7px; border-radius: 999px; background: var(--good-bg); border: var(--line-width) solid var(--good-line); color: var(--good-text); font-size: .7rem; line-height: 1.5; }

/* ---- toast: also used as a link to a new alert */
a.toast { display: block; }
a.toast:hover { color: var(--text); text-decoration: none; border-color: var(--text); }

/* ---- motion and feedback */
.btn:active, button:active, .gt-btn:active, .gt-big:active { transform: translateY(1px) scale(.98); }
.gt-tile:active, .shelf-item:active, .stat-strip a:active, .scard .art:active, .people-strip a:active, .tabbar a:active .ico, .gt-tab:active .gt-orb { transform: scale(.96); }
@media (prefers-reduced-motion: no-preference) {
  .btn, button, .gt-btn, .gt-big, .gt-tile, .shelf-item, .stat-strip a, .scard .art, .people-strip a, .tabbar .ico, .gt-orb, .menu > summary, .menu-links a {
    transition: transform .12s ease, background-color .15s, border-color .15s, filter .15s, color .15s, box-shadow .15s;
  }
  .cover, .avatar { transition: box-shadow .15s; }
  .is-fresh { animation: ptg-fresh .5s ease-out; }
  .toast { animation: ptg-toast-in .22s ease-out; transition: opacity .3s, transform .3s; }
  .toast.is-leaving { opacity: 0; transform: translate(-50%, 8px); }
  .menu[open] .menu-panel { animation: ptg-pop .14s ease-out; }
  .gt-btn.is-live .gt-ico, .gt-tab.is-live .gt-orb { animation: ptg-pulse 2.4s ease-in-out infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .btn:active, button:active, .gt-btn:active, .gt-big:active, .gt-tile:active, .shelf-item:active, .stat-strip a:active, .scard .art:active,
  .people-strip a:active, .tabbar a:active .ico, .gt-tab:active .gt-orb { transform: none; }
  .toast.is-leaving { visibility: hidden; }
}
@keyframes ptg-fresh { from { opacity: .35; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes ptg-toast-in { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translateX(-50%); } }
@keyframes ptg-pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes ptg-pulse { 0%, 100% { filter: none; } 50% { filter: brightness(1.18); } }
@media (max-width: 560px) { .scard .cover.wide { aspect-ratio: 5 / 2; } }

/* quick Game Time panel (opens from the header button and the phone tab) */
.gt-wrap { position: relative; }
.gt-panel[hidden] { display: none; }
.gt-panel {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 40; width: 340px; max-width: calc(100vw - 24px);
  background: var(--panel); border: var(--line-width) solid var(--line); border-radius: 16px; padding: 14px;
  box-shadow: 0 16px 40px var(--shadow);
}
.gt-panel-h { margin: 0 0 10px; font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--text); display: flex; align-items: center; gap: 8px; }
.gt-panel-games { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 8px; }
.gt-pick {
  display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 6px; width: 100%; min-width: 0; padding: 0;
  background: none; color: var(--text); border: 0; border-radius: 10px; font-weight: 600; font-size: .74rem; line-height: 1.2; text-align: left;
}
.gt-pick:hover, .gt-pick:focus-visible { filter: none; }
.gt-pick .cover { width: 100%; height: auto; aspect-ratio: 264 / 374; border-radius: 10px; box-shadow: 0 0 0 var(--line-width) var(--line); }
.gt-pick:hover .cover, .gt-pick:focus-visible .cover { box-shadow: 0 0 0 2px var(--accent); }
.gt-pick span:last-child { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; }
.gt-panel-more { display: block; margin-top: 10px; padding: 10px; text-align: center; font-weight: 600; border-radius: 10px; }
.gt-panel-back { min-width: 44px; min-height: 44px; padding: 0; background: var(--panel-2); color: var(--text); border: var(--line-width) solid var(--line); border-radius: 10px; font-size: 1.1rem; }
.gt-panel-times { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gt-panel-times button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; padding: 8px; }
.gt-panel-times button strong { font-family: var(--font-head); font-size: 1.05rem; }
.gt-panel-times button span { font-size: .78rem; font-weight: 600; }
@media (max-width: 760px) {
  .gt-wrap { position: static; }
  .gt-panel { position: fixed; left: 10px; right: 10px; top: auto; bottom: calc(86px + env(safe-area-inset-bottom)); width: auto; max-width: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .gt-panel:not([hidden]) { animation: gt-pop .14s ease-out; }
  @keyframes gt-pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
}
.gt-times { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gt-times strong { font-size: 1.5rem; text-align: center; }
@media (max-width: 560px) { .gt-times { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
