/* jellyqda drift & play · css/14-startseite-und-seitenfenster.css
   Startseite „Dein Riff“, Seitenfenster für Hilfe/Info/Sichern, Aufzucht-Erklärungen.
   Die CSS-Dateien werden in Nummern-Reihenfolge geladen: spätere Regeln gewinnen. */

a.kpi { text-decoration: none; color: var(--ink); }
a.kpi:hover { border-color: var(--accent); }
.kpi.warn { border-color: var(--bad); background: var(--bad-soft); }
.kpi.warn b { color: var(--bad); }
.nextcard { margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: var(--accent-soft); border-left: 4px solid var(--accent); max-width: 60ch; }
.reef { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 10px; margin-top: 12px; }
.reef-b { display: block; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface2); text-decoration: none; color: var(--ink); border-left: 4px solid var(--c); }
.reef-b:hover { border-color: var(--c); }
.reef-h { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; }
.reef-h span { color: var(--muted); font-variant-numeric: tabular-nums; }
.combs { display: flex; flex-wrap: wrap; gap: 3px; }
.comb { display: inline-block; width: 24px; height: 27px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: var(--line); vertical-align: middle; }
.comb.sm { width: 12px; height: 14px; margin-left: 8px; }
.reef-b .comb.passed { background: var(--c); }
.comb.passed { background: var(--b-kern); }
.reef-b .comb.open { background: color-mix(in srgb, var(--c) 35%, var(--surface)); }
.comb.open { background: color-mix(in srgb, var(--accent) 35%, var(--surface)); }
.comb.locked { background: var(--line); opacity: .7; }
.comb.next { background: var(--accent); animation: combpulse 1.6s ease-in-out infinite; }
@keyframes combpulse { 50% { transform: scale(1.15); filter: brightness(1.25); } }
.sheet-ov { position: fixed; inset: 0; z-index: 70; background: rgba(5,12,22,.45); display: flex; justify-content: flex-end; animation: fade .15s ease; }
.sheet { width: min(460px, 100%); height: 100%; background: var(--surface); border-left: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; padding-top: env(safe-area-inset-top, 0px); padding-right: env(safe-area-inset-right, 0px); animation: slidein .2s ease; }
@keyframes slidein { from { transform: translateX(30px); opacity: .5; } }
.sheet-h { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.sheet-h h2 { margin: 0; font-size: 20px; }
.sheet-b { padding: 16px 18px calc(24px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; }
.helplist { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.helplist li { padding: 10px 12px; border-radius: 10px; background: var(--surface2); border: 1px solid var(--line); font-size: 14.5px; }
.helplist b { display: block; font-family: var(--f-display); margin-bottom: 2px; }
.raise-how { font-size: 14px; margin: 6px 0 0; padding: 8px 12px; border-radius: 10px; background: var(--surface2); border: 1px dashed var(--line2); }
.raise-hint { font-size: 14px; margin-top: 8px; }
.prep { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 10px; margin: 12px 0; }
.prep > div { padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface2); }
.gamelist { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; counter-reset: g; }
.gamelist li { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: baseline; font-size: 14.5px; }
.gamelist li::before { counter-increment: g; content: counter(g); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 12px; }
.on-mode { border-color: var(--accent) !important; }

.jgrid > *, .incubator > *, .reef > *, .kpis > * { min-width: 0; }
.jcard .small { overflow-wrap: anywhere; }
