/* allein.css — Modus-Picker (DESIGN.md §8.2 Grouped Table).
   Tokens kommen aus kk-tokens.css, der Subpage-Header aus kk-subpage.css. */

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  color: var(--text-primary);
  background: var(--bg);
  font-family: var(--font-text);
}

/* Alter Header wird per kk-subpage.css ausgeblendet — Regeln dort lassen. */
.solo-header { display: none; }

.solo-main {
  max-width: var(--content-regular);
  margin: 0 auto;
  padding: var(--s-6) var(--gutter-mobile) calc(env(safe-area-inset-bottom, 0px) + var(--s-7));
}

body.kk-subpage .solo-main h1 {
  margin: 0 0 var(--s-6);
  color: var(--text-primary);
  padding-top: .08em;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--t-title1);
  line-height: 1.12;
  letter-spacing: -.015em;
}

/* iOS Grouped Table (DESIGN.md §8.2) */
.mode-list {
  margin: 0 calc(-1 * var(--gutter-mobile));
  background: var(--bg-grouped);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.mode-row {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 16px;
  gap: var(--s-4);
  align-items: center;
  min-height: 72px;
  padding: var(--s-3) var(--gutter-mobile);
  color: var(--text-primary);
  text-decoration: none;
  transition: background-color var(--dur-press) var(--ease-standard);
}

.mode-row:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: calc(var(--gutter-mobile) + 40px + var(--s-4));
  right: var(--gutter-mobile);
  height: 1px;
  background: var(--separator);
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
  .mode-row:not(:last-child)::after { height: .5px; }
}

.mode-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--text-primary);
}

.mode-icon svg { width: 24px; height: 24px; }

.mode-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

/* Specificity-Bump + color-Override: kk-spieltag.css setzt
   `.mode-copy strong { color: var(--kk-ink) }`, was im Light-Kontext hell
   rendert (text-on-dark) und den Titel unsichtbar macht. */
body .mode-copy strong {
  font-family: var(--font-text);
  font-weight: 600;
  font-size: var(--t-headline);
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--text-primary);
}

.mode-copy > span {
  font-family: var(--font-text);
  font-weight: 400;
  font-size: var(--t-sub);
  line-height: 1.33;
  color: var(--text-secondary);
}

.chevron {
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
  color: var(--text-tertiary);
  justify-self: center;
}

.mode-row:active { background: var(--surface-soft); }

@media (hover: hover) {
  .mode-row:hover { background: color-mix(in srgb, var(--surface-soft) 60%, transparent); }
}

/* „Blitz-Runde" als zweite, sekundaere Gruppe */
.mode-row--quiet {
  margin-top: var(--s-4);
}

.mode-row:focus-visible,
.solo-header a:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: -3px;
}

@media (max-width: 350px) {
  .mode-row { gap: var(--s-3); grid-template-columns: 36px minmax(0, 1fr) 16px; }
  .mode-icon { width: 36px; height: 36px; }
}
