/* Borderline — spielspezifische Stile. Basis aus game-base.css. Farbe: Rot. */
:root { --or: #F87171; --or-tief: #DC2626; --akzent: #F87171; --orange: #FB923C; }
:root[data-theme="light"] { --or: #DC2626; --or-tief: #B91C1C; --orange: #EA580C; }
/* --or ist die Akzentfarbe (heißt aus historischen Gründen so, ist jetzt Rot); --orange nur für „1 Punkt“ */

.bl { width: 100%; max-width: 820px; margin: 0 auto; padding: 18px 0 56px; }

/* ---------- Start ---------- */
.bl-titel { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 6vw, 2.9rem); margin: 10px 0 8px; }
.bl-unter { margin: 0 0 26px; color: var(--ink-muted); max-width: 54ch; }
.optionen { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 10px; }
.gruppe {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-panel);
  padding: 14px 16px 16px; margin: 0; display: flex; flex-wrap: wrap; gap: 8px;
}
.gruppe legend { padding: 0 6px; font-family: var(--font-display); font-weight: 600; color: var(--ink-muted); }
.wahl { cursor: pointer; }
.wahl input { position: absolute; opacity: 0; pointer-events: none; }
.wahl span {
  display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg); font-weight: 600; transition: border-color .12s ease, background .12s ease;
}
.wahl em { font-style: normal; color: var(--ink-muted); font-weight: 400; }
.wahl input:checked + span { border-color: var(--or); background: color-mix(in srgb, var(--or) 18%, var(--bg)); }
.wahl input:focus-visible + span { box-shadow: 0 0 0 3px color-mix(in srgb, var(--or) 45%, transparent); }
.wahl.aus { opacity: .45; cursor: default; }
.modus-hinweis { margin: 0 0 24px; color: var(--ink-muted); font-size: .9rem; }

.btn-gross { font-size: 1.1rem; padding: 14px 28px; }
.btn-leise { background: var(--bg-panel); color: var(--ink); border: 1px solid var(--line); }
.btn:disabled { opacity: .45; cursor: default; filter: none; }

/* ---------- Spiel ---------- */
.bl-spiel { padding-top: 10px; }
.spiel-leiste { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink-muted); margin-bottom: 14px; }
.fortschritt { font-weight: 700; color: var(--ink); }
.punkte strong { color: var(--or); }

.umriss-rahmen {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--or) 30%, var(--line));
  background: #15122a;
}
:root[data-theme="light"] .umriss-rahmen { background: #f4efe6; }
.umriss { display: block; width: 100%; height: auto; max-height: 56dvh; }
.bl-meer { fill: #15122a; }
:root[data-theme="light"] .bl-meer { fill: #f4efe6; }
.bl-netz { fill: none; stroke: rgba(167, 162, 207, .08); stroke-width: .8; }
.bl-andere path { fill: #2c2852; stroke: #3d3870; stroke-width: .8; stroke-linejoin: round; }
:root[data-theme="light"] .bl-netz { stroke: rgba(60, 45, 20, .08); }
:root[data-theme="light"] .bl-andere path { fill: #e6ddcd; stroke: #cfc3ad; }
.kontext { opacity: 0; transition: opacity .5s ease; }
.kontext.sichtbar { opacity: 1; }

.bl-ziel { fill: color-mix(in srgb, var(--or) 16%, transparent); stroke: var(--or); stroke-width: 2.4; stroke-linejoin: round; transition: fill .4s ease, stroke .4s ease; }
.bl-glow { fill: none; stroke: var(--or); stroke-width: 10; stroke-opacity: .22; stroke-linejoin: round; filter: blur(3px); }
.bl-ring { fill: none; stroke: var(--or); stroke-width: 2; stroke-dasharray: 5 4; }
/* Nachbarn-Hinweis (und Auflösung): Karte zoomt um 50 % weiter heraus. Linien behalten ihre Stärke. */
.bl-welt { transform-origin: 400px 250px; transition: transform .7s cubic-bezier(.3, .7, .3, 1); }
.bl-welt.weit { transform: scale(var(--bl-weit, .6667)); }
.bl-welt path, .bl-welt circle { vector-effect: non-scaling-stroke; }
@media (prefers-reduced-motion: reduce) { .bl-welt { transition: none; } }
.umriss.geloest .bl-ziel { fill: color-mix(in srgb, var(--mint) 22%, transparent); stroke: var(--mint); }
.umriss.geloest .bl-glow, .umriss.geloest .bl-ring { stroke: var(--mint); }
.umriss.verloren .bl-ziel { fill: color-mix(in srgb, var(--ink-muted) 18%, transparent); stroke: var(--ink-muted); }
.umriss.verloren .bl-glow, .umriss.verloren .bl-ring { stroke: var(--ink-muted); }
.umriss:not(.geloest):not(.verloren) .ziel-gruppe { animation: bl-auf .45s ease-out; transform-origin: 50% 50%; }
@keyframes bl-auf { from { opacity: 0; transform: scale(.94); } }

.loesung {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--bg-panel) 92%, transparent); border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3); white-space: nowrap;
}
.l-flagge { width: 34px; height: 25px; object-fit: cover; border-radius: 4px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); }
.l-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }

/* Hinweise (wie FlagGuessr) */
.tipps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0 16px; padding: 0; }
.tipps li {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center;
  padding: 9px 12px; border-radius: var(--radius-sm); background: var(--bg-panel); border: 1px solid var(--line);
  opacity: .5; transition: opacity .25s ease, border-color .25s ease; min-width: 0;
}
.tipps li.offen { opacity: 1; }
.tipps li.aktiv { border-color: var(--or); box-shadow: 0 0 0 3px color-mix(in srgb, var(--or) 22%, transparent); }
.t-pkt {
  grid-row: 1 / 3; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  background: color-mix(in srgb, var(--or) 18%, var(--bg-panel)); color: var(--or);
}
.t-name { font-size: .78rem; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.t-wert { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tipps li:not(.offen) .t-wert { color: var(--ink-muted); }

/* Raten */
.raten { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.raten .btn { padding: 12px 26px; font-size: 1.05rem; }
.eingabe {
  font: inherit; font-size: 1.1rem; width: 100%; padding: 12px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--bg-panel); color: var(--ink);
}
.eingabe:focus-visible { outline: none; border-color: var(--or); box-shadow: 0 0 0 3px color-mix(in srgb, var(--or) 35%, transparent); }
.versuche { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; }
.versuche li {
  padding: 3px 10px; border-radius: 999px; font-size: .85rem; font-weight: 600;
  background: color-mix(in srgb, var(--coral) 14%, var(--bg-panel)); border: 1px solid color-mix(in srgb, var(--coral) 40%, var(--line));
  text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--coral) 70%, transparent);
}
.meldung { min-height: 1.5em; margin: 12px 0 0; font-weight: 600; }
.meldung.ja { color: var(--mint); }
.meldung.nein { color: var(--coral); }
.meldung.info { color: var(--ink-muted); }
.spiel-fuss { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }
.spiel-fuss .btn { font-size: 1.1rem; padding: 13px 26px; min-width: min(100%, 240px); }

/* ---------- Ende ---------- */
.ende { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding-top: 16px; }
.ende-titel { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 5vw, 2.4rem); margin: 0; }
.ende-score { margin: 0; font-size: 1.3rem; }
.ende-score strong { color: var(--or); font-size: 1.6rem; }
.ende-rekord { margin: 0; font-weight: 700; color: var(--mint); }
.end-liste { list-style: none; margin: 6px 0 14px; padding: 0; width: 100%; max-width: 520px; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.end-liste li { display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: var(--bg-panel); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.el-umriss { width: 40px; height: 30px; flex: none; }
.el-umriss path { fill: color-mix(in srgb, var(--or) 20%, transparent); stroke: var(--or); stroke-width: 1.2; stroke-linejoin: round; }
.end-liste img { width: 26px; height: 19px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); flex: none; }
.el-land { flex: 1; }
.el-pkt { font-weight: 800; min-width: 2em; text-align: right; }
.el-pkt.p5 { color: var(--mint); } .el-pkt.p3 { color: var(--amber); } .el-pkt.p1 { color: var(--orange); } .el-pkt.p0 { color: var(--ink-muted); }
.aktionen { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

@media (max-width: 560px) {
  .tipps { grid-template-columns: 1fr; }
  .tipps li { padding: 7px 10px; }
  .t-pkt { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .wahl span, .kontext, .bl-ziel { transition: none; }
  .umriss .ziel-gruppe { animation: none !important; }
}

/* ---------- Daily (daily.html) ---------- */
.daily-marke {
  display: inline-flex; align-items: center; gap: 8px; margin: 10px 0 0; padding: 4px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--or) 14%, var(--bg-panel)); border: 1px solid color-mix(in srgb, var(--or) 45%, var(--line));
  font-size: .85rem; font-weight: 700;
}
.daily-punkt { width: 8px; height: 8px; border-radius: 50%; background: var(--or); box-shadow: 0 0 0 3px color-mix(in srgb, var(--or) 25%, transparent); }
.punkte-titel { margin: 4px 0 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--or); letter-spacing: 0.01em; }
.stufen { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 22px; padding: 0; max-width: 420px; }
.stufen li {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: var(--radius-sm);
  background: var(--bg-panel); border: 1px solid var(--line); font-size: .82rem; color: var(--ink-muted); text-align: center;
}
.stufen strong { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; color: var(--or); }
.d-fortschritt { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; max-width: 360px; margin: 0 0 26px; padding: 0; }
.d-feld {
  aspect-ratio: 1; border-radius: 9px; border: 1px solid var(--line); background: var(--bg-panel);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: #1e1b34;
}
.d-feld.p5 { background: var(--mint);  border-color: transparent; }
.d-feld.p3 { background: var(--amber); border-color: transparent; }
.d-feld.p1 { background: #FB923C;      border-color: transparent; }
.d-feld.p0 { background: color-mix(in srgb, var(--ink-muted) 30%, var(--bg-panel)); color: var(--ink-muted); }
.ende .daily-marke { margin: 0; }
.el-land { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.el-land small { color: var(--ink-muted); }
.d-naechste { margin: 4px 0 6px; color: var(--ink-muted); }
.d-naechste strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.aktionen a.btn { text-decoration: none; display: inline-flex; align-items: center; }
.teilen-status { min-height: 1.3em; margin: 4px 0 0; color: var(--mint); font-weight: 600; }
.teilen-text {
  width: 100%; max-width: 360px; font: inherit; padding: 10px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--bg-panel); color: var(--ink);
}
