/* ============================================================
   Spielrunden-Log · brettspielliebe.de
   Warmes, analoges Café-Designsystem
   ============================================================ */

:root {
  /* Farbwelt */
  --bg: #fbf7f2;          /* warmes Cremeweiß */
  --ink: #2f2a24;         /* warmes Dunkelbraun */
  --ink-2: #6c6358;       /* gedämpfter Text */
  --ink-3: #9a9085;       /* Hinweistext */
  --brand: #c75c5c;       /* Rosenrot */
  --brand-deep: #a8474a;  /* dunkleres Rosenrot für Text/Hover */
  --honey: #f1b878;       /* Honiggelb */
  --honey-deep: #d99746;
  --sage: #5b7b6c;        /* Salbeigrün */
  --sage-deep: #486357;

  --card: #ffffff;
  --card-2: #fdfaf5;      /* leicht getöntes Weiß */
  --line: rgba(47, 42, 36, .10);
  --line-strong: rgba(47, 42, 36, .16);
  --shadow: 0 10px 30px rgba(47, 42, 36, .08);
  --shadow-lg: 0 18px 48px rgba(47, 42, 36, .14);
  --shadow-press: 0 4px 14px rgba(47, 42, 36, .12);

  --r-card: 20px;
  --r-card-sm: 14px;
  --r-pill: 999px;

  --font-ui: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --font-display: "Spectral", Georgia, serif;

  --tap: 50px;            /* min. Touch-Target */
  --shell-w: 430px;
}

/* Echte Cover-Bilder (img statt CSS-only) */
.cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--ink);
  background:
    radial-gradient(900px 600px at 12% -8%, rgba(241, 184, 120, .22), transparent 60%),
    radial-gradient(900px 700px at 100% 110%, rgba(91, 123, 108, .18), transparent 55%),
    #efe7db;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ===== Phone-Shell (zentriert auf Desktop, full-bleed auf Mobile) ===== */
.stage {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.app-shell {
  position: relative;
  width: 100%;
  max-width: var(--shell-w);
  height: min(900px, calc(100dvh - 48px));
  background:
    radial-gradient(520px 360px at 8% -6%, rgba(241, 184, 120, .16), transparent 62%),
    radial-gradient(520px 420px at 108% 104%, rgba(199, 92, 92, .12), transparent 58%),
    var(--bg);
  border: 1px solid var(--line);
  border-radius: 34px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (max-width: 540px) {
  .stage { padding: 0; }
  .app-shell {
    max-width: none;
    height: 100dvh;
    border-radius: 0;
    border: none;
  }
}

/* ===== Header ===== */
.app-header {
  flex: 0 0 auto;
  padding: 18px 20px 12px;
}
.app-titlebar {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
}
.brandmark {
  width: 38px; height: 38px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--brand), var(--brand-deep));
  color: #fff;
  font-size: 19px;
  box-shadow: 0 6px 16px rgba(199, 92, 92, .32);
  flex: 0 0 auto;
}
.app-kicker {
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 700;
  line-height: 1;
}
.app-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.05;
  margin-top: 3px;
  white-space: nowrap;
}
.header-back {
  margin-left: auto;
  width: 40px; height: 40px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  display: grid; place-items: center;
  font-size: 18px;
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease, opacity .2s;
}
.header-back:active { transform: scale(.94); }
.header-back[hidden] { display: none; }

/* ===== Stepper-Varianten ===== */
.stepper { user-select: none; }

/* Variant: bar */
.stepper--bar .sb-track {
  height: 9px;
  border-radius: var(--r-pill);
  background: rgba(47, 42, 36, .08);
  overflow: hidden;
}
.stepper--bar .sb-fill {
  height: 100%;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--honey), var(--brand));
  transition: width .42s cubic-bezier(.4, 1.2, .5, 1);
}
.stepper--bar .sb-meta {
  display: flex; justify-content: space-between;
  align-items: baseline;
  margin-top: 9px;
}
.stepper--bar .sb-step {
  font-size: 12.5px; font-weight: 700; color: var(--brand-deep);
  letter-spacing: .04em; text-transform: uppercase;
}
.stepper--bar .sb-label {
  font-family: var(--font-display);
  font-size: 14px; color: var(--ink-2); font-style: italic;
}

/* Variant: dots */
.stepper--dots .sd-row { display: flex; gap: 8px; align-items: center; }
.stepper--dots .sd-dot {
  height: 8px; flex: 1;
  border-radius: var(--r-pill);
  background: rgba(47, 42, 36, .10);
  transition: background .3s, transform .3s;
}
.stepper--dots .sd-dot.done { background: var(--honey); }
.stepper--dots .sd-dot.active {
  background: var(--brand);
  transform: scaleY(1.5);
}
.stepper--dots .sd-label {
  margin-top: 11px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-2);
}

/* Variant: trail (nummerierte Kreise) */
.stepper--trail .st-row { display: flex; align-items: center; }
.stepper--trail .st-node {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 800;
  background: var(--card); border: 1.5px solid var(--line-strong);
  color: var(--ink-3);
  flex: 0 0 auto;
  transition: all .3s;
}
.stepper--trail .st-node.done {
  background: var(--sage); border-color: var(--sage); color: #fff;
}
.stepper--trail .st-node.active {
  background: var(--brand); border-color: var(--brand); color: #fff;
  box-shadow: 0 0 0 5px rgba(199, 92, 92, .16);
}
.stepper--trail .st-seg {
  flex: 1; height: 2px; background: var(--line-strong);
  margin: 0 5px; border-radius: 2px;
  transition: background .3s;
}
.stepper--trail .st-seg.done { background: var(--sage); }
.stepper--trail .st-label {
  margin-top: 11px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-2);
}

/* ===== Scroll-Bereich ===== */
.app-body {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 6px 20px 20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.app-body::-webkit-scrollbar { width: 6px; }
.app-body::-webkit-scrollbar-thumb { background: rgba(47,42,36,.14); border-radius: 8px; }

.step { animation: stepIn .34s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes stepIn {
  from { opacity: 0; transform: translateX(14px); }
  to   { opacity: 1; transform: translateX(0); }
}
.step.back { animation-name: stepInBack; }
@keyframes stepInBack {
  from { opacity: 0; transform: translateX(-14px); }
  to   { opacity: 1; transform: translateX(0); }
}

.step-head { margin: 8px 2px 16px; }
.step-eyebrow {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 800; color: var(--honey-deep);
}
.step-title {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 600; line-height: 1.12;
  margin: 5px 0 0;
  text-wrap: balance;
}
.step-sub { color: var(--ink-2); font-size: 14.5px; margin-top: 6px; }

.section-label {
  font-size: 12.5px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-3);
  margin: 20px 2px 10px;
  display: flex; align-items: center; gap: 8px;
}
.section-label .opt { font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--ink-3); font-size: 12px; }

/* ===== Suchfeld ===== */
.search-wrap { position: relative; }
.search-wrap .bi-search {
  position: absolute; left: 17px; top: 50%; transform: translateY(-50%);
  color: var(--ink-3); font-size: 17px; pointer-events: none;
}
.search-input {
  width: 100%; height: 54px;
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--card);
  padding: 0 18px 0 46px;
  font-family: var(--font-ui); font-size: 16px; color: var(--ink);
  box-shadow: var(--shadow);
  transition: border-color .18s, box-shadow .18s;
}
.search-input::placeholder { color: var(--ink-3); }
.search-input:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(199, 92, 92, .14);
}

/* ===== Cover (typografisch) ===== */
.cover {
  position: relative;
  border-radius: var(--r-card-sm);
  overflow: hidden;
  color: #fff;
  background: var(--cv, #8a5a4a);
  isolation: isolate;
}
.cover::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 80% at 18% 0%, rgba(255,255,255,.22), transparent 55%),
    radial-gradient(120% 90% at 100% 100%, rgba(0,0,0,.28), transparent 60%);
}
.cover::after { /* feines Punktraster, analog */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image: radial-gradient(rgba(255,255,255,.35) .8px, transparent .8px);
  background-size: 11px 11px;
  mix-blend-mode: soft-light;
}
.cover-title {
  font-family: var(--font-display);
  font-weight: 600; line-height: 1.04;
  text-shadow: 0 2px 10px rgba(0,0,0,.28);
  text-wrap: balance;
}
.cover-pip {
  position: absolute; top: 9px; right: 9px;
  font-size: 10px; font-weight: 800; letter-spacing: .04em;
  background: rgba(0,0,0,.26); backdrop-filter: blur(3px);
  border: 1px solid rgba(255,255,255,.28);
  padding: 3px 8px; border-radius: var(--r-pill);
  display: flex; align-items: center; gap: 4px;
}

/* Plex-Scroller */
.cover-rail {
  display: flex; gap: 12px;
  overflow-x: auto; padding: 4px 2px 14px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin: 0 -20px; padding-left: 20px; padding-right: 20px;
}
.cover-rail::-webkit-scrollbar { display: none; }
.rail-card { scroll-snap-align: start; flex: 0 0 auto; width: 124px; cursor: pointer; }
.rail-card .cover { height: 168px; padding: 13px; display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform .16s ease, box-shadow .16s ease; box-shadow: var(--shadow); }
.rail-card .cover-title { font-size: 17px; }
.rail-card:active .cover { transform: scale(.96); }
.rail-card.sel .cover { box-shadow: 0 0 0 3px var(--brand), var(--shadow); }
.rail-meta { margin-top: 8px; font-size: 12px; color: var(--ink-2); font-weight: 600; padding: 0 3px; }
.rail-meta .last { color: var(--ink-3); font-weight: 500; }

/* Grid-Variante */
.game-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.game-grid .gg-card { cursor: pointer; border-radius: var(--r-card-sm); }
.game-grid .cover { height: 132px; padding: 12px; display: flex; flex-direction: column; justify-content: flex-end;
  box-shadow: var(--shadow); transition: transform .16s, box-shadow .16s; }
.game-grid .cover-title { font-size: 16px; }
.game-grid .gg-card:active .cover { transform: scale(.96); }
.game-grid .gg-card.sel .cover { box-shadow: 0 0 0 3px var(--brand), var(--shadow); }

/* Listen-Variante */
.game-list { display: flex; flex-direction: column; gap: 9px; }
.gl-row {
  display: flex; align-items: center; gap: 13px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 9px 13px 9px 9px;
  box-shadow: var(--shadow); cursor: pointer;
  transition: transform .14s, box-shadow .14s, border-color .14s;
  min-height: var(--tap);
}
.gl-row:active { transform: scale(.985); }
.gl-row.sel { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(199,92,92,.2), var(--shadow); }
.gl-row .cover { width: 48px; height: 48px; border-radius: 11px; flex: 0 0 auto; }
.gl-row .cover-title { font-size: 0; }
.gl-name { font-weight: 700; font-size: 15.5px; }
.gl-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 1px; }
.gl-check { margin-left: auto; color: var(--brand); font-size: 22px; opacity: 0; transition: opacity .15s; }
.gl-row.sel .gl-check { opacity: 1; }

/* Ausgewähltes Spiel — Banner */
.picked-game {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 12px; box-shadow: var(--shadow);
  margin-bottom: 4px;
}
.picked-game .cover { width: 62px; height: 78px; border-radius: 12px; flex: 0 0 auto; }
.picked-game .cover-title { font-size: 0; }
.picked-game .pg-name { font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.picked-game .pg-meta { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.picked-game .pg-change {
  margin-left: auto; align-self: flex-start;
  font-size: 13px; font-weight: 700; color: var(--brand-deep);
  background: rgba(199,92,92,.10); border: none; border-radius: var(--r-pill);
  padding: 7px 13px; cursor: pointer;
}
.picked-game .pg-change:active { transform: scale(.95); }
.coop-flag { display:inline-flex; align-items:center; gap:5px; color: var(--sage-deep); font-weight:700; }

/* ===== Chips ===== */
.chip-row { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 44px; padding: 0 16px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--line-strong);
  background: var(--card); color: var(--ink);
  font-family: var(--font-ui); font-size: 14.5px; font-weight: 600;
  cursor: pointer;
  transition: transform .13s, box-shadow .13s, background .15s, border-color .15s, color .15s;
}
.chip:active { transform: scale(.95); }
.chip i { font-size: 16px; color: var(--ink-3); transition: color .15s; }
.chip.on {
  background: var(--brand); border-color: var(--brand); color: #fff;
  box-shadow: var(--shadow-press);
}
.chip.on i { color: #fff; }
.chip.on-sage { background: var(--sage); border-color: var(--sage); color:#fff; }
.chip.on-sage i { color:#fff; }
.chip.on-honey { background: var(--honey); border-color: var(--honey); color: var(--ink); }
.chip.add { border-style: dashed; color: var(--ink-2); background: transparent; }

/* ===== Felder / Inputs ===== */
.field {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 12px;
  padding: 0 16px; min-height: 56px;
}
.field i.lead { font-size: 19px; color: var(--brand); }
.field input, .field select {
  border: none; background: transparent; outline: none;
  font-family: var(--font-ui); font-size: 16px; color: var(--ink);
  flex: 1; width: 100%; min-width: 0;
}
.field .field-cap { font-size: 12px; color: var(--ink-3); font-weight: 700; }
.field-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 11px; }

/* ===== Spieler-Tiles ===== */
.player-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.player-tile {
  position: relative;
  background: var(--card); border: 1.5px solid var(--line);
  border-radius: 16px; padding: 13px 8px 11px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  cursor: pointer; box-shadow: var(--shadow);
  transition: transform .14s, box-shadow .14s, border-color .15s;
}
.player-tile:active { transform: scale(.95); }
.player-tile.on { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(199,92,92,.22), var(--shadow); }
.avatar {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 19px;
  font-family: var(--font-display);
  background: var(--av, #8a5a4a);
  box-shadow: inset 0 -3px 8px rgba(0,0,0,.16);
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.player-tile .pt-name { font-size: 13.5px; font-weight: 700; text-align: center; line-height: 1.1; }
.player-tile .pt-tag { font-size: 10.5px; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.player-tile .pt-check {
  position: absolute; top: 8px; right: 8px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: grid; place-items: center; font-size: 13px;
  transform: scale(0); transition: transform .2s cubic-bezier(.3,1.4,.5,1);
}
.player-tile.on .pt-check { transform: scale(1); }
.player-tile.add { border-style: dashed; justify-content: center; color: var(--ink-2); }
.player-tile.add .avatar { background: transparent; color: var(--ink-3); border: 1.5px dashed var(--line-strong); box-shadow: none; }

.selected-count {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  background: rgba(91,123,108,.12); color: var(--sage-deep);
  font-weight: 700; font-size: 13px; padding: 6px 13px; border-radius: var(--r-pill);
}

/* ===== Bottom Sheet ===== */
.sheet-overlay {
  position: absolute; inset: 0; z-index: 40;
  background: rgba(47,42,36,.34);
  backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none;
  transition: opacity .28s;
}
.sheet-overlay.open { opacity: 1; pointer-events: auto; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 41;
  background: var(--bg);
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -16px 44px rgba(47,42,36,.22);
  padding: 10px 20px max(20px, env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform .34s cubic-bezier(.22, 1, .36, 1);
  max-height: 86%;
  display: flex; flex-direction: column;
}
.sheet.open { transform: translateY(0); }
.sheet-grip { width: 42px; height: 5px; border-radius: 99px; background: var(--line-strong); margin: 4px auto 14px; }
.sheet-title { font-family: var(--font-display); font-size: 21px; font-weight: 600; margin-bottom: 4px; }
.sheet-sub { font-size: 13.5px; color: var(--ink-2); margin-bottom: 16px; }
.sheet-body { overflow-y: auto; }

/* ===== Ranking / Ergebnis ===== */
.rank-list { display: flex; flex-direction: column; gap: 10px; position: relative; }
.rank-row {
  display: flex; align-items: center; gap: 11px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 15px; padding: 10px 12px 10px 10px;
  box-shadow: var(--shadow);
  touch-action: pan-y;
  transition: box-shadow .16s, transform .05s;
}
.rank-row.dragging {
  box-shadow: var(--shadow-lg); transform: scale(1.02);
  border-color: var(--brand); position: relative; z-index: 5;
}
.rank-row.tied-up { margin-top: -4px; }
.drag-handle {
  flex: 0 0 auto; width: 30px; height: 44px;
  display: grid; place-items: center;
  color: var(--ink-3); font-size: 18px; cursor: grab;
  touch-action: none;
}
.drag-handle:active { cursor: grabbing; }
.rank-badge {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  background: rgba(47,42,36,.06); color: var(--ink-2);
}
.rank-badge.r1 { background: linear-gradient(150deg, var(--honey), var(--honey-deep)); color:#5a3d12; }
.rank-badge.r2 { background: rgba(47,42,36,.10); color: var(--ink); }
.rank-badge.r3 { background: rgba(199,92,92,.16); color: var(--brand-deep); }
.rank-av { width: 34px; height: 34px; border-radius: 50%; display:grid; place-items:center; color:#fff; font-weight:800; font-size:13px; flex:0 0 auto; background: var(--av,#8a5a4a); overflow: hidden; }
.rank-name { font-weight: 700; font-size: 15px; flex: 1; min-width: 0; }
.rank-name .crown { color: var(--honey-deep); margin-left: 4px; }
.pts-input {
  width: 62px; height: 40px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--card-2);
  text-align: center; font-family: var(--font-display); font-weight: 600; font-size: 16px;
  color: var(--ink); outline: none;
}
.pts-input:focus { border-color: var(--honey); box-shadow: 0 0 0 3px rgba(241,184,120,.25); }
.tie-btn {
  flex:0 0 auto; width: 30px; height: 30px; border-radius: 8px; border: none;
  background: transparent; color: var(--ink-3); font-size: 14px; cursor: pointer;
}
.tie-btn.on { background: rgba(91,123,108,.16); color: var(--sage-deep); }

/* Podium-Variante */
.podium-wrap { display:flex; flex-direction:column; gap:14px; }
.podium { display:flex; align-items:flex-end; justify-content:center; gap:10px; padding: 6px 0 2px; }
.pod-col { display:flex; flex-direction:column; align-items:center; gap:8px; flex:1; max-width: 110px; }
.pod-av { width:46px; height:46px; border-radius:50%; display:grid; place-items:center; color:#fff; font-weight:800; background:var(--av,#8a5a4a); font-size:16px; overflow: hidden; }
.rank-av img, .pod-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.pod-block { width:100%; border-radius:14px 14px 8px 8px; display:grid; place-items:start center; padding-top:8px; color:#fff; font-family:var(--font-display); font-weight:700; }
.pod-1 { height:96px; background:linear-gradient(180deg,var(--honey),var(--honey-deep)); color:#5a3d12; }
.pod-2 { height:72px; background:linear-gradient(180deg,#cfc4b5,#a99e8d); }
.pod-3 { height:58px; background:linear-gradient(180deg,#d99090,var(--brand)); }
.pod-name { font-size:12.5px; font-weight:700; text-align:center; line-height:1.05; }
.pod-rest { display:flex; flex-direction:column; gap:8px; }

/* Coop-Block */
.coop-result {
  border-radius: var(--r-card); padding: 20px; text-align:center;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  background: var(--card);
}
.coop-toggle-row { display:flex; gap:10px; margin-top:16px; }
.coop-opt {
  flex:1; border-radius:16px; border:1.5px solid var(--line-strong);
  background:var(--card); padding:16px 10px; cursor:pointer; text-align:center;
  transition: transform .14s, border-color .15s, background .15s, color .15s;
}
.coop-opt:active { transform: scale(.96); }
.coop-opt i { font-size:26px; display:block; margin-bottom:6px; }
.coop-opt .co-t { font-weight:800; font-size:15px; }
.coop-opt.win.on { background:var(--sage); border-color:var(--sage); color:#fff; }
.coop-opt.loss.on { background:var(--brand); border-color:var(--brand); color:#fff; }
.coop-opt.on i, .coop-opt.on .co-t { color:#fff; }

/* Toggle-Switch */
.switch-row {
  display:flex; align-items:center; gap:13px;
  background: var(--card); border:1px solid var(--line);
  border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow); min-height: 56px;
}
.switch-row .sr-icon { width:38px; height:38px; border-radius:11px; display:grid; place-items:center; font-size:18px; flex:0 0 auto; }
.switch-row .sr-txt { flex:1; }
.switch-row .sr-t { font-weight:700; font-size:15px; }
.switch-row .sr-d { font-size:12.5px; color:var(--ink-3); }
.switch {
  width:50px; height:30px; border-radius:99px; background:rgba(47,42,36,.16);
  position:relative; cursor:pointer; flex:0 0 auto; transition: background .22s; border:none;
}
.switch::after { content:""; position:absolute; top:3px; left:3px; width:24px; height:24px; border-radius:50%; background:#fff; box-shadow:0 2px 5px rgba(0,0,0,.2); transition: transform .22s; }
.switch.on { background: var(--brand); }
.switch.on.sage { background: var(--sage); }
.switch.on::after { transform: translateX(20px); }

/* Dauer-Stepper */
.dur-row { display:flex; align-items:center; gap:12px; }
.dur-btn { width:50px; height:50px; border-radius:15px; border:1px solid var(--line-strong); background:var(--card); color:var(--ink); font-size:22px; cursor:pointer; flex:0 0 auto; box-shadow:var(--shadow); transition:transform .12s; }
.dur-btn:active { transform:scale(.92); }
.dur-display { flex:1; text-align:center; }
.dur-num { font-family:var(--font-display); font-size:34px; font-weight:600; line-height:1; }
.dur-unit { font-size:13px; color:var(--ink-3); font-weight:700; }
.dur-presets { display:flex; gap:8px; margin-top:12px; flex-wrap:wrap; }

/* ===== Footer CTA ===== */
.app-footer {
  flex: 0 0 auto;
  padding: 14px 20px max(16px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(251,247,242,0), var(--bg) 32%);
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 11px;
}
.btn {
  font-family: var(--font-ui); font-weight: 700; font-size: 16px;
  border-radius: var(--r-pill); border: none; cursor: pointer;
  min-height: 54px; padding: 0 24px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  transition: transform .14s ease, box-shadow .14s ease, background .18s, opacity .2s;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary {
  flex: 1; color: #fff;
  background: linear-gradient(145deg, var(--brand), var(--brand-deep));
  box-shadow: 0 10px 24px rgba(199, 92, 92, .34);
}
.btn-primary:not(:disabled):active { transform: scale(.97); box-shadow: 0 6px 16px rgba(199,92,92,.4); }
.btn-ghost {
  background: var(--card); color: var(--ink); border: 1px solid var(--line-strong);
  min-width: 54px; padding: 0 18px;
}
.btn-ghost:active { transform: scale(.95); }

/* ===== Zusammenfassung ===== */
.summary-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-card); box-shadow: var(--shadow);
  overflow: hidden; margin-bottom: 12px;
}
.sum-hero { display:flex; gap:14px; padding:16px; align-items:center; border-bottom:1px solid var(--line); }
.sum-hero .cover { width:60px; height:76px; border-radius:12px; flex:0 0 auto; }
.sum-hero .cover-title { font-size:0; }
.sum-hero .sh-name { font-family:var(--font-display); font-size:20px; font-weight:600; }
.sum-hero .sh-meta { font-size:13px; color:var(--ink-2); margin-top:3px; }
.sum-rows { padding: 4px 16px; }
.sum-row { display:flex; align-items:flex-start; gap:13px; padding:13px 0; border-bottom:1px solid var(--line); }
.sum-row:last-child { border-bottom:none; }
.sum-row .sr-ic { width:34px; height:34px; border-radius:10px; display:grid; place-items:center; font-size:16px; flex:0 0 auto; background:rgba(47,42,36,.05); color:var(--brand); }
.sum-row .sr-k { font-size:12px; color:var(--ink-3); font-weight:700; text-transform:uppercase; letter-spacing:.05em; }
.sum-row .sr-v { font-size:15px; font-weight:600; margin-top:2px; }
.sum-row .sr-edit { margin-left:auto; align-self:center; font-size:13px; font-weight:700; color:var(--brand-deep); background:none; border:none; cursor:pointer; padding:6px; }
.sum-rank-line { display:flex; align-items:center; gap:8px; font-size:14.5px; font-weight:600; padding:3px 0; }
.sum-rank-line .rb { width:22px; height:22px; border-radius:7px; display:grid; place-items:center; font-size:12px; font-weight:800; background:rgba(47,42,36,.08); flex:0 0 auto; }
.sum-rank-line .rb.r1 { background:var(--honey); color:#5a3d12; }
.srl-name { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.srl-pts { flex:0 0 auto; min-width:48px; text-align:right; color:var(--ink-3); font-weight:500; font-size:13px; }

/* ===== Success ===== */
.success {
  position:absolute; inset:0; z-index:60;
  background:
    radial-gradient(700px 480px at 50% -10%, rgba(241,184,120,.3), transparent 60%),
    var(--bg);
  display:flex; flex-direction:column; align-items:center; justify-content:flex-start;
  text-align:center; padding:48px 34px 34px;
  overflow-y:auto;
  animation: fadeIn .4s both;
}
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
.success-badge {
  width:108px; height:108px; border-radius:50%;
  background: linear-gradient(150deg, var(--sage), var(--sage-deep));
  display:grid; place-items:center; color:#fff; font-size:54px;
  box-shadow: 0 18px 40px rgba(91,123,108,.4);
  animation: pop .55s cubic-bezier(.2,1.5,.4,1) both;
  margin-bottom:24px;
}
@keyframes pop { 0%{transform:scale(0)} 70%{transform:scale(1.08)} 100%{transform:scale(1)} }
.success h2 { font-family:var(--font-display); font-size:30px; font-weight:600; margin:0 0 8px; }
.success p { color:var(--ink-2); font-size:15.5px; max-width:280px; margin:0 auto 26px; line-height:1.5; }
.success .recap {
  background:var(--card); border:1px solid var(--line); border-radius:var(--r-card);
  box-shadow:var(--shadow); padding:14px 18px; width:100%; max-width:320px; margin-bottom:24px;
  text-align:left;
}
.success .recap .rc-game { font-family:var(--font-display); font-size:18px; font-weight:600; }
.success .recap .rc-meta { font-size:13px; color:var(--ink-2); margin-top:3px; }
.success .recap .rc-divider { height:1px; background:var(--line); margin:12px 0; }
.success .recap .rc-ranking { display:flex; flex-direction:column; text-align:left; }
.success-actions { display:flex; gap:10px; width:100%; max-width:320px; margin-top:4px; }

.confetti { position:absolute; inset:0; overflow:hidden; pointer-events:none; }
.confetti i { position:absolute; top:-14px; width:9px; height:14px; border-radius:2px; opacity:.9; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(120vh) rotate(540deg); opacity:.2; } }

/* ============================================================
   Login · Authentifizierung
   baut auf styles.css (Tokens, Shell, .field, .btn) auf
   ============================================================ */

.login-wrap {
  flex: 1 1 auto;
  display: flex; flex-direction: column; justify-content: center;
  padding: 30px 24px max(28px, env(safe-area-inset-bottom));
  overflow-y: auto;
}

.login-head { text-align: center; margin-bottom: 26px; }
.login-logo {
  width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 16px;
  display: grid; place-items: center; font-size: 31px; color: #fff;
  background: linear-gradient(150deg, var(--brand), var(--brand-deep));
  box-shadow: 0 12px 28px rgba(199, 92, 92, .34);
}
.login-head .lh-kicker {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 800;
}
.login-head h1 {
  font-family: var(--font-display); font-size: 28px; font-weight: 600;
  margin: 6px 0 6px; line-height: 1.08;
}
.login-head p { color: var(--ink-2); font-size: 14.5px; margin: 0; }

.login-card { display: flex; flex-direction: column; gap: 12px; }

.field-label-sm {
  font-size: 12.5px; font-weight: 700; color: var(--ink-2);
  margin: 4px 2px -4px; letter-spacing: .01em;
}
.pw-toggle {
  background: none; border: none; color: var(--ink-3); cursor: pointer;
  font-size: 18px; padding: 4px; flex: 0 0 auto;
}
.field.invalid { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(199,92,92,.16); }

.login-error {
  display: none; align-items: center; gap: 7px;
  color: var(--brand-deep); font-size: 13px; font-weight: 600;
  background: rgba(199,92,92,.10); border-radius: 12px; padding: 9px 13px;
}
.login-error.show { display: flex; }

/* Merken + vergessen */
.login-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 2px; }
.check-row { display: flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; }
.check-box {
  width: 22px; height: 22px; border-radius: 7px; flex: 0 0 auto;
  border: 1.5px solid var(--line-strong); background: var(--card);
  display: grid; place-items: center; color: #fff; font-size: 13px;
  transition: background .16s, border-color .16s;
}
.check-row input { position: absolute; opacity: 0; pointer-events: none; }
.check-row input:checked + .check-box { background: var(--brand); border-color: var(--brand); }
.check-box i { opacity: 0; transition: opacity .12s; }
.check-row input:checked + .check-box i { opacity: 1; }
.check-row .cr-label { font-size: 13.5px; color: var(--ink); font-weight: 600; }
.link-soft { font-size: 13px; color: var(--brand-deep); font-weight: 700; text-decoration: none; }
.link-soft:active { opacity: .6; }

.btn-block { width: 100%; }
.btn-primary.btn-block { flex: none; }

/* Trenner */
.divider { display: flex; align-items: center; gap: 12px; margin: 8px 0; color: var(--ink-3); }
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.divider span { font-size: 12px; font-weight: 700; letter-spacing: .04em; }

/* Social */
.social-btn {
  width: 100%; min-height: 52px; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; justify-content: center; gap: 11px;
  font-family: var(--font-ui); font-size: 15px; font-weight: 700; cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease, background .15s;
  border: 1px solid var(--line-strong); background: var(--card); color: var(--ink);
}
.social-btn:active { transform: scale(.97); }
.social-btn i { font-size: 19px; }
.social-btn.google i { color: #4285F4; }
.social-btn.facebook { background: #1877F2; border-color: #1877F2; color: #fff; box-shadow: 0 8px 20px rgba(24,119,242,.26); }
.social-btn.facebook i { color: #fff; }

.login-foot { text-align: center; margin-top: 22px; font-size: 14px; color: var(--ink-2); }
.login-foot a { color: var(--brand-deep); font-weight: 700; text-decoration: none; }

.login-legal { text-align: center; margin-top: 14px; font-size: 11.5px; color: var(--ink-3); line-height: 1.5; }
.login-legal a { color: var(--ink-2); text-decoration: underline; }

/* ---------- Profil-Sheet (Menü) ---------- */
.profile-card { display: flex; align-items: center; gap: 13px; padding: 4px 2px 16px; }
.profile-card .pc-av {
  width: 50px; height: 50px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 19px;
  font-family: var(--font-display);
  background: linear-gradient(150deg, var(--brand), var(--brand-deep));
}
.profile-card .pc-name { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.profile-card .pc-mail { font-size: 13px; color: var(--ink-3); }
.profile-action {
  display: flex; align-items: center; gap: 12px; width: 100%;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px; min-height: 52px; cursor: pointer; font-family: var(--font-ui);
  font-size: 15px; font-weight: 700; color: var(--ink); text-align: left;
  text-decoration: none; box-sizing: border-box;
  transition: transform .14s;
}
.profile-action:active { transform: scale(.98); }
.profile-action i { font-size: 18px; color: var(--ink-3); }
.profile-action.danger { color: var(--brand-deep); }
.profile-action.danger i { color: var(--brand); }

/* ============================================================
   Home & Statistik · Menü-Kacheln + Auswertungen
   baut auf styles.css (Tokens, Shell, Header) auf
   ============================================================ */

/* ---------- Begrüßung ---------- */
.home-hello {
  margin: 4px 2px 18px;
}
.home-hello .hh-eyebrow {
  font-size: 12.5px; letter-spacing: .04em; color: var(--ink-3); font-weight: 700;
}
.home-hello .hh-title {
  font-family: var(--font-display); font-size: 27px; font-weight: 600;
  line-height: 1.1; margin-top: 4px; text-wrap: balance;
}

/* ---------- Hero-Kachel: Spiel-Log ---------- */
.menu-hero {
  position: relative; display: block; text-decoration: none; color: #fff;
  border-radius: var(--r-card); overflow: hidden; isolation: isolate;
  background: linear-gradient(145deg, #d56a64, var(--brand) 55%, var(--brand-deep));
  box-shadow: 0 14px 32px rgba(199, 92, 92, .34);
  padding: 20px; margin-bottom: 14px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.menu-hero:active { transform: scale(.98); box-shadow: 0 8px 20px rgba(199,92,92,.4); }
.menu-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .4;
  background-image: radial-gradient(rgba(255,255,255,.35) 1px, transparent 1px);
  background-size: 13px 13px; mix-blend-mode: soft-light;
}
.menu-hero .mh-top { display: flex; align-items: center; gap: 12px; }
.menu-hero .mh-ic {
  width: 50px; height: 50px; border-radius: 15px; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 26px;
  background: rgba(255,255,255,.20); border: 1px solid rgba(255,255,255,.30);
}
.menu-hero .mh-title { font-family: var(--font-display); font-size: 23px; font-weight: 600; line-height: 1; }
.menu-hero .mh-sub { font-size: 13.5px; opacity: .92; margin-top: 3px; }
.menu-hero .mh-go {
  margin-left: auto; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.18); display: grid; place-items: center; font-size: 18px;
  transition: transform .2s;
}
.menu-hero:active .mh-go { transform: translateX(3px); }
.menu-hero .mh-foot {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.22);
  display: flex; align-items: center; gap: 8px; font-size: 13px; opacity: .95;
}
.menu-hero .mh-foot .cover {
  width: 26px; height: 26px; border-radius: 7px; border: 1.5px solid rgba(255,255,255,.5);
}
.menu-hero .mh-foot .cover-title { font-size: 0; }

/* ---------- Kachel-Raster ---------- */
.tile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 9px;
  text-decoration: none; color: var(--ink);
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-card); box-shadow: var(--shadow);
  padding: 16px; min-height: 132px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s;
}
.tile:active { transform: scale(.97); box-shadow: var(--shadow-press); }
.tile-ic {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  font-size: 23px; flex: 0 0 auto;
}
.tile-ic.sage  { background: rgba(91,123,108,.14); color: var(--sage-deep); }
.tile-ic.honey { background: rgba(241,184,120,.22); color: var(--honey-deep); }
.tile-ic.brand { background: rgba(199,92,92,.13); color: var(--brand-deep); }
.tile-ic.muted { background: rgba(47,42,36,.06); color: var(--ink-3); }
.tile-title { font-family: var(--font-display); font-size: 18px; font-weight: 600; line-height: 1.05; }
.tile-sub { font-size: 12.5px; color: var(--ink-2); margin-top: -3px; line-height: 1.3; }
.tile-badge {
  position: absolute; top: 14px; right: 14px;
  font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 9px; border-radius: var(--r-pill);
}
.tile .arrow { margin-top: auto; color: var(--ink-3); font-size: 15px; align-self: flex-end; }
.tile.live .arrow { color: var(--brand); }

/* geplant */
.tile.planned { background: var(--card-2); border-style: dashed; box-shadow: none; cursor: default; }
.tile.planned:active { transform: none; }
.tile.planned .tile-title, .tile.planned .tile-sub { color: var(--ink-3); }
.tile.planned .tile-badge { background: rgba(241,184,120,.28); color: var(--honey-deep); }

.menu-sec {
  font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-3); margin: 22px 2px 11px;
}

/* ============================================================
   Statistik
   ============================================================ */
.stat-cards { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.stat-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); padding: 14px 12px; text-align: center;
}
.stat-card .sc-num { font-family: var(--font-display); font-size: 27px; font-weight: 600; line-height: 1; color: var(--brand-deep); }
.stat-card.sage .sc-num { color: var(--sage-deep); }
.stat-card.honey .sc-num { color: var(--honey-deep); }
.stat-card .sc-lbl { font-size: 11px; color: var(--ink-2); font-weight: 700; margin-top: 6px; letter-spacing: .02em; }

.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: var(--shadow); padding: 16px; margin-top: 14px;
}
.panel-head { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.panel-head .ph-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 16px; }
.panel-head h2 { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin: 0; }
.panel-head .ph-note { margin-left: auto; font-size: 11.5px; color: var(--ink-3); font-weight: 600; }

/* Balken: meistgespielt */
.bar-row { display: flex; align-items: center; gap: 11px; padding: 7px 0; }
.bar-row .br-cover { width: 30px; height: 38px; border-radius: 8px; flex: 0 0 auto; }
.bar-row .br-cover .cover-title { font-size: 0; }
.bar-row .br-main { flex: 1; min-width: 0; }
.bar-row .br-name { font-size: 14px; font-weight: 700; display: flex; justify-content: space-between; gap: 8px; }
.bar-row .br-name .n { color: var(--ink-3); font-weight: 700; font-variant-numeric: tabular-nums; }
.bar-row .br-track { height: 8px; border-radius: 99px; background: rgba(47,42,36,.07); margin-top: 6px; overflow: hidden; }
.bar-row .br-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--honey), var(--honey-deep)); transition: width .8s cubic-bezier(.3,1,.4,1); }
.bar-row:first-child .br-fill { background: linear-gradient(90deg, var(--brand), var(--brand-deep)); }

/* Bestenliste */
.leader { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.leader:last-child { border-bottom: none; }
.leader .lr-rank {
  width: 26px; height: 26px; border-radius: 9px; flex: 0 0 auto; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 14px; background: rgba(47,42,36,.06); color: var(--ink-2);
}
.leader .lr-rank.m1 { background: linear-gradient(150deg, var(--honey), var(--honey-deep)); color: #5a3d12; }
.leader .lr-rank.m2 { background: #d8d0c4; color: #5b5447; }
.leader .lr-rank.m3 { background: rgba(199,92,92,.2); color: var(--brand-deep); }
.leader .lr-av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px; background: var(--av,#8a5a4a); flex: 0 0 auto; }
.leader .lr-name { font-weight: 700; font-size: 15px; flex: 1; }
.leader .lr-name .sub { display: block; font-size: 11.5px; color: var(--ink-3); font-weight: 500; }
.leader .lr-wins { text-align: right; }
.leader .lr-wins .w { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--sage-deep); line-height: 1; }
.leader .lr-wins .wl { font-size: 10.5px; color: var(--ink-3); font-weight: 700; text-transform: uppercase; }

/* Highlight-Reihe */
.hl-row { display: flex; gap: 11px; margin-top: 14px; }
.hl-card {
  flex: 1; border-radius: 16px; padding: 14px; color: #fff; position: relative; overflow: hidden; isolation: isolate;
}
.hl-card.green { background: linear-gradient(150deg, #6b8e7c, var(--sage-deep)); }
.hl-card.honey { background: linear-gradient(150deg, var(--honey), var(--honey-deep)); color: #5a3d12; }
.hl-card .hc-k { font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; opacity: .85; }
.hl-card .hc-v { font-family: var(--font-display); font-size: 17px; font-weight: 600; margin-top: 5px; line-height: 1.1; }
.hl-card .hc-d { font-size: 12px; margin-top: 3px; opacity: .9; }
.hl-card i.bg { position: absolute; right: -8px; bottom: -10px; font-size: 60px; opacity: .16; z-index: -1; }

/* ---------- Gruppen-Umschalter (Header) ---------- */
.group-switch {
  border: none; background: transparent; padding: 0; margin: 0; text-align: left;
  cursor: pointer; display: block; min-width: 0;
}
.group-switch .gs-name {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-size: 19px; font-weight: 600; line-height: 1.05;
  margin-top: 3px; color: var(--ink);
}
.group-switch .gs-name span {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 210px;
}
.group-switch .gs-name i {
  font-size: 13px; color: var(--brand); flex: 0 0 auto;
  transition: transform .2s;
}
.group-switch:active .gs-name i { transform: translateY(2px); }

/* ---------- Gruppen-Sheet ---------- */
.group-row {
  display: flex; align-items: center; gap: 13px;
  background: var(--card); border: 1.5px solid var(--line);
  border-radius: 16px; padding: 12px; margin-bottom: 10px;
  cursor: pointer; min-height: var(--tap);
  transition: transform .14s, border-color .15s, box-shadow .15s;
}
.group-row:active { transform: scale(.98); }
.group-row.active { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(199,92,92,.18); }
.gr-cluster { display: flex; flex: 0 0 auto; }
.gr-cluster .gr-av {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 12px;
  background: var(--av,#8a5a4a); border: 2px solid var(--card);
  margin-left: -10px; box-shadow: inset 0 -2px 5px rgba(0,0,0,.15);
}
.gr-cluster .gr-av:first-child { margin-left: 0; }
.gr-cluster .gr-more {
  width: 34px; height: 34px; border-radius: 50%; margin-left: -10px;
  display: grid; place-items: center; font-size: 11px; font-weight: 800;
  background: rgba(47,42,36,.10); color: var(--ink-2); border: 2px solid var(--card);
}
.gr-info { flex: 1; min-width: 0; }
.gr-info .gr-name { font-family: var(--font-display); font-size: 17px; font-weight: 600; line-height: 1.1; }
.gr-info .gr-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 1px; }
.group-row .gr-check { color: var(--brand); font-size: 22px; flex: 0 0 auto; opacity: 0; transition: opacity .15s; }
.group-row.active .gr-check { opacity: 1; }
.group-row.add { border-style: dashed; background: var(--card-2); }
.group-row.add .gr-ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(47,42,36,.06); color: var(--ink-3); font-size: 20px; flex: 0 0 auto; }
.group-row.add .gr-info .gr-name { color: var(--ink-2); }
