/* ==========================================================================
   ocobii.games – gemeinsames Stylesheet
   Farben aus dem ocobii-Logo: Türkis (Buchstaben) + Berry/Purple (die "ii")
   Formensprache: Pillen-Form der "ii" für Buttons, Chips und Marker
   ========================================================================== */

/* Schriften wie auf ocobii.de: Comfortaa für Überschriften, Inter für Fließtext.
   Lokal eingebunden (keine Verbindung zu Google). Lizenz: SIL OFL, siehe assets/fonts/OFL.txt */
@font-face { font-family: "Comfortaa"; src: url("fonts/comfortaa.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --teal: #007885;
  --teal-deep: #005662;
  --teal-ink: #0b3b40;
  --teal-mist: #e3f0f1;
  --teal-line: #bcd9dc;
  --berry: #a8577f;
  --berry-deep: #8a4267;
  --berry-mist: #f5eaf0;
  --paper: #F7F4EE;        /* Beige wie ocobii.de */
  --sand: #F0EADF;         /* Sand wie ocobii.de */
  --white: #ffffff;
  --ink: #15302f;
  --muted: #4c6563;
  --soft: #7b9391;

  /* Vision Crew */
  --toffi: #a8577f;
  --lino: #007885;
  --ella: #b9727a;
  --milo: #d9822e;
  --olli: #8d6e63;
  --crew: #4c6563;

  --font-display: "Comfortaa", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-card: 22px;
  --r-small: 12px;
  --shadow: 0 1px 2px rgba(11, 59, 64, .06), 0 6px 18px rgba(11, 59, 64, .07);
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body.og {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
:where(body.og) :where(img) { max-width: 100%; height: auto; }
:where(body.og) :where(h1, h2, h3, h4) {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--teal-ink);
  margin: 0 0 .5em;
  letter-spacing: -.04em;
}
:where(body.og) :where(h1) { font-size: clamp(1.9rem, 4.2vw, 3rem); }
:where(body.og) :where(h2) { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
:where(body.og) :where(h3) { font-size: clamp(1.15rem, 1.8vw, 1.35rem); }
:where(body.og) :where(h4) { font-size: 1.1rem; }
:where(body.og) :where(p) { margin: 0 0 1em; }
:where(body.og) :where(a) { color: var(--teal); text-underline-offset: 3px; }
:where(body.og) :where(a:hover) { color: var(--teal-deep); }
:focus-visible { outline: 3px solid var(--berry); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons: Pillenform wie die "ii" im Logo ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 1rem/1 var(--font-body);
  padding: .95em 1.6em;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
body.og a.btn { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal); color: #fff; }
body.og a.btn-primary { color: #fff; }
.btn-primary:hover { background: var(--teal-deep); color: #fff; }
.btn-berry { background: var(--berry); color: #fff; }
body.og a.btn-berry { color: #fff; }
.btn-berry:hover { background: var(--berry-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--teal); border-color: var(--teal-line); }
body.og a.btn-ghost { color: var(--teal); }
.btn-ghost:hover { border-color: var(--teal); background: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ==========================================================================
   Kopfzeile (bewusst ohne <nav>/<header>-Elementselektoren, damit die alten
   Seiten Seh-Tipps/Spielanleitung sie nicht überschreiben)
   ========================================================================== */
.og-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--teal-line);
  font-family: var(--font-body);
}
.og-header-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 10px var(--gutter);
  display: flex; align-items: center; gap: 20px; min-height: 64px;
}
.og-brand { display: inline-flex; align-items: flex-end; gap: 2px; text-decoration: none; flex-shrink: 0; }
.og-brand img { height: 30px; width: auto; display: block; }
.og-brand span {
  font: 700 1.15rem/1 var(--font-display); color: var(--teal);
  padding-bottom: 1px; letter-spacing: .01em;
}
.og-menu { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.og-menu a {
  font: 600 .95rem/1 var(--font-body);
  color: var(--ink); text-decoration: none;
  padding: .7em .9em; border-radius: 999px;
}
.og-menu a:hover { background: var(--teal-mist); color: var(--teal-deep); }
.og-menu a[aria-current="page"] { color: var(--teal); background: var(--teal-mist); }
.og-menu a.og-login {
  margin-left: 8px; border: 2px solid var(--berry); color: var(--berry);
  padding: .6em 1.1em;
}
.og-menu a.og-login:hover { background: var(--berry); color: #fff; }
.og-lang { display: flex; gap: 2px; margin-left: 6px; }
.og-lang button {
  font: 600 .8rem/1 var(--font-body); border: 0; background: none; color: var(--soft);
  padding: .5em .55em; border-radius: 999px; cursor: pointer;
}
.og-lang button[aria-pressed="true"] { color: var(--teal-deep); background: var(--teal-mist); }
.og-burger {
  display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none;
  border-radius: 999px; cursor: pointer; position: relative;
}
.og-burger span, .og-burger span::before, .og-burger span::after {
  position: absolute; left: 11px; width: 22px; height: 2.5px; background: var(--teal-ink);
  border-radius: 2px; content: ""; transition: transform .2s, opacity .2s;
}
.og-burger span { top: 21px; }
.og-burger span::before { top: -7px; left: 0; }
.og-burger span::after { top: 7px; left: 0; }
.og-burger[aria-expanded="true"] span { background: transparent; }
.og-burger[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.og-burger[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
  .og-burger { display: block; }
  .og-menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; padding: 10px var(--gutter) 18px;
    border-bottom: 1px solid var(--teal-line); box-shadow: var(--shadow);
  }
  .og-menu.is-open { display: flex; }
  .og-menu a { padding: .9em 1em; font-size: 1.05rem; }
  .og-menu a.og-login { margin: 8px 0 0; text-align: center; }
  .og-lang { margin: 6px 0 0; }
}

/* ==========================================================================
   Fußzeile
   ========================================================================== */
.og-footer {
  background: var(--teal-ink); color: #d6e8e9; margin-top: 0;
  font: 400 .95rem/1.6 var(--font-body);
}
.og-footer-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 48px var(--gutter) 36px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px;
}
.og-footer h2 {
  font: 700 1.05rem/1.3 var(--font-display); color: #fff; margin: 0 0 .7em; letter-spacing: 0;
}
.og-footer a { color: #fff; text-decoration: none; }
.og-footer a:hover { text-decoration: underline; color: #fff; }
.og-footer ul { list-style: none; margin: 0; padding: 0; }
.og-footer li { margin: 0 0 .4em; }
.og-footer p { margin: 0 0 .8em; }
.og-footer .og-legal {
  max-width: var(--wrap); margin: 0 auto; padding: 18px var(--gutter) 28px;
  border-top: 1px solid rgba(255, 255, 255, .14); font-size: .85rem; color: #a9c6c8;
}
.og-footer .og-legal p { margin: 0 0 .4em; }
@media (max-width: 760px) { .og-footer-inner { grid-template-columns: 1fr; gap: 24px; } }

/* ==========================================================================
   Startseite
   ========================================================================== */
.hero { position: relative; overflow: hidden; background: var(--white); }
.hero-copy { padding: clamp(28px, 4vw, 52px) 0 20px; max-width: 760px; }
.hero h1 { margin-bottom: .35em; }
.hero .lead { margin-bottom: 1.6em; }

.section { padding: clamp(48px, 7vw, 84px) 0; }
.section-white { background: var(--white); }
.section-mist, .section-sand { background: var(--sand); }
.section-beige { background: var(--paper); }
.section-head { max-width: 720px; margin-bottom: 36px; }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.facts li { display: grid; grid-template-columns: 14px 1fr; gap: 14px; align-items: start; }
.facts li::before {
  content: ""; width: 10px; height: 22px; border-radius: 999px; background: var(--berry); margin-top: 4px;
}
.facts strong { color: var(--teal-ink); }

.access-card {
  background: var(--white); border-radius: var(--r-card); padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow); border-top: 6px solid var(--berry);
}
.access-card h3 { margin-bottom: .4em; }

.crew-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 960px) { .crew-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .crew-grid { grid-template-columns: repeat(2, 1fr); } }
.crew-tile {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: var(--white); border-radius: var(--r-card); overflow: hidden;
  box-shadow: var(--shadow); border-bottom: 6px solid var(--c, var(--teal));
}
body.og a.crew-tile { color: var(--ink); text-decoration: none; }
.crew-tile .pic { height: 160px; display: flex; align-items: center; justify-content: center; padding: 8px; background: color-mix(in srgb, var(--c) 10%, #fff); }
.crew-tile .pic img { width: 150px; height: 150px; }
.crew-tile .txt { padding: 14px 16px 18px; }
.crew-tile b { display: block; font: 700 1.3rem/1.2 var(--font-display); color: var(--c); }
.crew-tile small { display: block; color: var(--muted); font-size: .9rem; line-height: 1.4; margin-top: 4px; }
.crew-tile:hover .pic img { transform: translateY(-4px); }
.crew-tile .pic img { transition: transform .2s; }

.memo-cta {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 56px); align-items: center;
  background: var(--berry); color: #fff; border-radius: 32px; padding: clamp(28px, 5vw, 56px);
}
.memo-cta h2, .memo-cta p { color: #fff; }
.memo-cta .btn-primary { background: #fff; color: var(--berry-deep); }
body.og .memo-cta a.btn-primary { color: var(--berry-deep); }
.memo-cta .btn-primary:hover { background: var(--berry-mist); }
.memo-cta .btn-ghost { color: #fff; border-color: rgba(255,255,255,.55); }
body.og .memo-cta a.btn-ghost { color: #fff; }
.memo-cta .btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.card-fan { position: relative; width: 230px; height: 230px; }
.card-fan img {
  position: absolute; width: 120px; height: 160px; object-fit: cover; border-radius: 12px;
  border: 4px solid #fff; box-shadow: 0 8px 24px rgba(0,0,0,.18); left: 55px; top: 30px;
}
.card-fan img:nth-child(1) { transform: rotate(-16deg) translateX(-52px); }
.card-fan img:nth-child(2) { transform: rotate(-3deg) translateY(-8px); }
.card-fan img:nth-child(3) { transform: rotate(12deg) translateX(54px); }
@media (max-width: 720px) { .memo-cta { grid-template-columns: 1fr; } .card-fan { margin: 0 auto; } }

.person { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: center; }
.person img { width: 220px; height: 260px; object-fit: cover; border-radius: 110px 110px 24px 24px; box-shadow: var(--shadow); }
@media (max-width: 640px) { .person { grid-template-columns: 1fr; } .person img { width: 180px; height: 214px; } }

.note {
  font-size: .95rem; color: var(--muted); background: var(--white);
  border-left: 5px solid var(--teal-line); padding: 14px 18px; border-radius: 0 12px 12px 0;
}

/* ==========================================================================
   Vision Crew
   ========================================================================== */
.page-head { background: var(--white); padding: clamp(26px, 4vw, 46px) 0 clamp(24px, 3.5vw, 36px); border-bottom: 1px solid var(--teal-line); }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }

.facets { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 28px; }
@media (max-width: 980px) { .facets { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .facets { grid-template-columns: 1fr; } }
.facet {
  background: var(--white); border-radius: var(--r-card); padding: 20px 20px 18px;
  box-shadow: var(--shadow); scroll-margin-top: 172px;
}
.facet img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin-bottom: 10px; border: 3px solid var(--teal-mist); }
.facet h3 { font-size: 1.15rem; margin-bottom: .3em; }
.facet p { font-size: .95rem; color: var(--muted); margin: 0; }


.char { scroll-margin-top: 172px; padding: clamp(48px, 7vw, 80px) 0; border-bottom: 1px solid var(--teal-line); }
.char:nth-of-type(even) { background: var(--white); }
.char-intro { display: grid; grid-template-columns: 260px 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; margin-bottom: 36px; }
.char-intro .portrait {
  height: 260px; display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--c) 12%, #fff); border-radius: 50%; padding: 14px; overflow: hidden;
}
.char-intro .portrait img { width: 100%; height: auto; max-height: none; }
.char-intro h2 { color: var(--c); font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .1em; }
.char-intro .species { font-weight: 600; color: var(--muted); margin-bottom: .8em; }
.traits { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 1em; }
.traits li { padding: .35em .9em; border-radius: 999px; background: color-mix(in srgb, var(--c) 13%, #fff); color: color-mix(in srgb, var(--c) 75%, #000); font-weight: 600; font-size: .9rem; }
@media (max-width: 720px) { .char-intro { grid-template-columns: 1fr; } .char-intro .portrait { width: 200px; height: 200px; } }

/* Kartenreihe = Sprungmarken auf die Karten des Charakters */
.card-row { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 14px; margin-bottom: 28px; }
.card-row a { flex: 0 0 auto; width: 96px; text-decoration: none; text-align: center; color: var(--muted); font-size: .8rem; font-weight: 600; line-height: 1.25; }
body.og .card-row a { color: var(--muted); text-decoration: none; }
.card-row img { width: 96px; height: 128px; object-fit: cover; border-radius: 10px; display: block; margin-bottom: 6px; box-shadow: var(--shadow); border: 3px solid #fff; transition: transform .15s; }
.card-row a:hover img { transform: translateY(-3px) rotate(-2deg); }

.cardblock {
  display: grid; grid-template-columns: 200px 1fr; gap: clamp(20px, 3vw, 36px);
  background: var(--white); border-radius: var(--r-card); box-shadow: var(--shadow);
  padding: clamp(20px, 3vw, 32px); margin-bottom: 20px; scroll-margin-top: 172px;
  border-left: 6px solid var(--c);
}
.char:nth-of-type(even) .cardblock { background: var(--paper); box-shadow: none; }
.cardblock > figure { margin: 0; }
.cardblock.solo { grid-template-columns: 1fr; }
.emo-pair .emo { background: color-mix(in srgb, var(--c) 6%, #fff); border-radius: 16px; padding: 18px; }
.char:nth-of-type(even) .emo-pair .emo { background: #fff; }
.cardblock > figure img { width: 200px; border-radius: 14px; box-shadow: var(--shadow); display: block; }
.cardblock .kind { font-weight: 700; color: var(--c); font-size: .95rem; margin-bottom: .3em; }
.cardblock h3 { margin-bottom: .5em; }
.cardblock h4 { margin: 1.1em 0 .3em; font-size: 1.05rem; }
.cardblock ul, .cardblock ol { padding-left: 1.2em; margin: 0 0 1em; }
.cardblock li { margin-bottom: .3em; }
.cardblock .why { background: color-mix(in srgb, var(--c) 8%, #fff); border-radius: 14px; padding: 14px 18px; margin-top: 10px; }
.char:nth-of-type(even) .cardblock .why { background: #fff; }
.cardblock .why h4 { margin-top: 0; }
@media (max-width: 720px) { .cardblock { grid-template-columns: 1fr; } .cardblock > figure img { width: 160px; } }

.emo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.emo { scroll-margin-top: 172px; }
.emo img { width: 150px; border-radius: 12px; box-shadow: var(--shadow); float: right; margin: 0 0 10px 14px; }
.emo .kw { font-weight: 600; color: var(--muted); font-size: .9rem; display: block; margin-bottom: .4em; }
.emo h4 { margin-top: 0; }
.emo.is-balanced h4::before, .emo.is-tricky h4::before { content: ""; display: inline-block; width: 9px; height: 18px; border-radius: 999px; margin-right: 8px; vertical-align: -2px; }
.emo.is-balanced h4::before { background: #3a9b6e; }
.emo.is-tricky h4::before { background: var(--milo); }
@media (max-width: 860px) { .emo-pair { grid-template-columns: 1fr; } }

details.how { margin-top: 12px; border-top: 1px solid var(--teal-line); padding-top: 8px; }
details.how summary {
  cursor: pointer; font-weight: 700; color: var(--teal); padding: 8px 0; list-style: none;
  display: inline-flex; align-items: center; gap: 8px;
}
details.how summary::-webkit-details-marker { display: none; }
details.how summary::before {
  content: "+"; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 999px;
  background: var(--teal-mist); color: var(--teal); font-weight: 700;
}
details.how[open] summary::before { content: "–"; }
.demo-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 12px 0 16px; }
.demo-row figure { margin: 0; }
.demo-row img { border-radius: 12px; display: block; }
.demo-row figcaption { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.meta { font-size: .95rem; color: var(--muted); }
.bonus {
  display: inline-block; background: var(--berry-mist); color: var(--berry-deep); font-weight: 700;
  border-radius: 999px; padding: .3em .9em; font-size: .9rem; margin: 4px 0 10px;
}

/* ==========================================================================
   Memo Match (öffentlich)
   ========================================================================== */
.memo-shell { background: var(--white); border-radius: 28px; box-shadow: var(--shadow); padding: clamp(18px, 3vw, 32px); }
.sets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0 24px; }
@media (max-width: 640px) { .sets { grid-template-columns: repeat(2, 1fr); } }
.set {
  display: flex; gap: 12px; align-items: center; text-align: left; font: inherit; color: var(--ink);
  background: var(--paper); border: 3px solid transparent; border-radius: 18px; padding: 10px; cursor: pointer;
}
.set img { width: 46px; height: 62px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.set b { display: block; font: 700 1.05rem/1.2 var(--font-display); color: var(--teal-ink); }
.set small { color: var(--muted); font-size: .82rem; line-height: 1.3; display: block; }
.set[aria-pressed="true"] { border-color: var(--berry); background: var(--berry-mist); }
.set:disabled { opacity: .45; cursor: not-allowed; }
.memo-bar { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; margin-bottom: 14px; }
.memo-bar .stat { font-weight: 600; color: var(--muted); }
.memo-bar .stat b { font: 700 1.4rem/1 var(--font-display); color: var(--teal); margin-left: 6px; font-variant-numeric: tabular-nums; }
.memo-bar .btn { margin-left: auto; padding: .65em 1.2em; }
.memo-board { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; max-width: 760px; margin: 0 auto; }
@media (max-width: 560px) { .memo-board { grid-template-columns: repeat(4, 1fr); gap: 6px; } }
.mcard { aspect-ratio: 3 / 4; perspective: 800px; border: 0; padding: 0; background: none; cursor: pointer; border-radius: 10px; }
.mcard .in { position: relative; display: block; width: 100%; height: 100%; transition: transform .4s; transform-style: preserve-3d; }
.mcard.is-up .in { transform: rotateY(180deg); }
.mcard .face { position: absolute; inset: 0; border-radius: 10px; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.mcard .back { background: var(--teal); display: flex; gap: 9%; align-items: center; justify-content: center; box-shadow: inset 0 0 0 4px rgba(255,255,255,.18); }
.mcard .back::before, .mcard .back::after { content: ""; width: 17%; height: 34%; border-radius: 999px; background: var(--berry); }
.mcard .front { transform: rotateY(180deg); background: #fff; box-shadow: 0 0 0 2px var(--teal-line); }
.mcard .front img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mcard.is-done { visibility: hidden; }
.won { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; min-height: 10px; }
.won button { border: 0; padding: 0; background: none; cursor: pointer; position: relative; border-radius: 8px; }
.won img { width: 56px; height: 75px; object-fit: cover; border-radius: 8px; display: block; box-shadow: var(--shadow); }
.won button::after { content: "i"; position: absolute; right: -5px; bottom: -5px; width: 22px; height: 22px; border-radius: 50%; background: var(--berry); color: #fff; font: 700 13px/22px var(--font-body); text-align: center; }

dialog.og-dialog { border: 0; border-radius: 24px; padding: 0; max-width: 460px; width: calc(100% - 32px); box-shadow: 0 24px 60px rgba(0,0,0,.25); }
dialog.og-dialog::backdrop { background: rgba(11, 59, 64, .45); }
.og-dialog .in { padding: 26px; font-family: var(--font-body); color: var(--ink); }
.og-dialog img { width: 96px; border-radius: 10px; float: left; margin: 0 16px 8px 0; box-shadow: var(--shadow); }
.og-dialog h3 { font: 700 1.35rem/1.2 var(--font-display); color: var(--teal-ink); margin: 0 0 .4em; }
.og-dialog .who { font-weight: 700; font-size: .9rem; }
.og-dialog .actions { clear: both; display: flex; gap: 10px; flex-wrap: wrap; padding-top: 12px; }
.memo-win { text-align: center; padding: 18px 0 6px; }
.memo-win[hidden] { display: none; }

/* ==========================================================================
   Login + Spieleübersicht
   ========================================================================== */
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; background: var(--teal-mist); }
.login-card {
  width: 100%; max-width: 440px; background: #fff; border-radius: 28px; box-shadow: var(--shadow);
  padding: 36px clamp(22px, 5vw, 40px) 30px; text-align: center; position: relative;
}
.login-card .og-brand { justify-content: center; margin-bottom: 18px; }
.login-card .og-brand img { height: 40px; }
.login-card .og-brand span { font-size: 1.45rem; }
.login-card h1 { font-size: 1.6rem; margin-bottom: .3em; }
.login-card p { color: var(--muted); font-size: .98rem; }
.login-peek { display: flex; justify-content: center; align-items: flex-end; gap: 6px; margin: -86px 0 14px; height: 80px; }
.login-peek img { height: 80px; width: auto; }
.login-peek img.is-milo { height: 38px; }
.field { text-align: left; margin: 20px 0 10px; }
.field label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 6px; color: var(--teal-ink); }
.field input {
  width: 100%; font: 500 1.05rem var(--font-body); padding: .85em 1em; border-radius: 14px;
  border: 2px solid var(--teal-line); background: var(--paper); color: var(--ink);
}
.field input:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(0, 120, 133, .14); }
.field input[aria-invalid="true"] { border-color: #c2413b; }
.login-card .btn { width: 100%; margin-top: 6px; }
.login-card .login-error { color: #b2332d; font-weight: 600; font-size: .95rem; min-height: 1.5em; margin: 10px 0 0; }
.login-foot { margin-top: 22px; font-size: .92rem; }

.games-head { background: #fff; border-bottom: 1px solid var(--teal-line); padding: 36px 0 24px; }
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.filter button {
  font: 600 .95rem/1 var(--font-body); padding: .7em 1.1em; border-radius: 999px; cursor: pointer;
  border: 2px solid var(--teal-line); background: #fff; color: var(--ink);
}
.filter button[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; padding: 32px 0 56px; }
.game {
  display: flex; flex-direction: column; background: #fff; border-radius: var(--r-card); overflow: hidden;
  box-shadow: var(--shadow); text-decoration: none; color: var(--ink); border: 2px solid transparent; transition: border-color .15s, transform .15s;
}
body.og a.game { color: var(--ink); text-decoration: none; }
.game:hover { border-color: var(--teal); transform: translateY(-3px); }
.game[hidden] { display: none; }
.game .vis { height: 150px; position: relative; overflow: hidden; display: grid; place-items: center; }
.game .body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.game h2 { font-size: 1.35rem; margin-bottom: .35em; }
.game p { font-size: .95rem; color: var(--muted); margin-bottom: 14px; }
.game .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.game .tags span { font-size: .8rem; font-weight: 700; padding: .35em .8em; border-radius: 999px; background: var(--teal-mist); color: var(--teal-deep); }
.game .tags span.rg { background: #f3f1f1; color: #4a3b3b; }
.game .tags span.rg::before { content: ""; display: inline-block; width: 18px; height: 9px; border-radius: 999px; margin-right: 6px; background: linear-gradient(90deg, #e0301e 50%, #1db36b 50%); vertical-align: 0; }
.game .tags span.age { background: var(--berry-mist); color: var(--berry-deep); }
.vis-crew img { position: absolute; bottom: -6px; height: 120px; width: auto; }
.vis-rg { background: linear-gradient(135deg, #f8e7e7, #e5f4ea); }
.vis-stripes { background: repeating-linear-gradient(90deg, #007885 0 14px, #e3f0f1 14px 28px); animation: drift 3s linear infinite; }
@keyframes drift { to { background-position: 56px 0; } }
.vis-letters { background: var(--teal-mist); font: 700 1.6rem/1.5 var(--font-display); color: var(--teal); letter-spacing: .3em; text-align: center; padding: 10px; }
.vis-letters b { color: var(--berry); }
.vis-blocks { background: #f1f4f4; display: grid; grid-template-columns: repeat(6, 22px); gap: 3px; place-content: center; }
.vis-blocks i { width: 22px; height: 22px; border-radius: 4px; display: block; }
.usage { background: #fff; border-radius: var(--r-card); padding: 24px 28px; box-shadow: var(--shadow); margin-bottom: 56px; }
.usage h2 { font-size: 1.3rem; }
.usage ul { margin: 0; padding-left: 1.2em; color: var(--muted); }
.games-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.joker-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
@media (max-width: 760px) { .joker-row { grid-template-columns: repeat(2, 1fr); } }
.joker { margin: 0; scroll-margin-top: 172px; }
.joker img { width: 100%; max-width: 200px; border-radius: 14px; box-shadow: var(--shadow); display: block; }
.joker figcaption { font-size: .9rem; font-weight: 600; color: var(--muted); margin-top: 8px; }
.memo-shell { scroll-margin-top: 80px; }
.narrow h2:not(:first-child) { margin-top: 1.6em; }
.og-legacy .note { font-family: var(--font-body); color: var(--muted); }
.og-legacy .note a { color: var(--teal); }

/* ==========================================================================
   Spielanleitung
   ========================================================================== */
.score-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.score-strip div {
  display: flex; align-items: center; gap: 10px; background: var(--teal-mist); color: var(--teal-ink);
  border-radius: 999px; padding: 6px 16px 6px 6px; font-weight: 600; font-size: .95rem;
}
.score-strip b {
  display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 8px; border-radius: 999px;
  background: var(--teal); color: #fff; font: 700 1.15rem/1 var(--font-display);
}
.score-strip .is-berry { background: var(--berry-mist); color: var(--berry-deep); }
.score-strip .is-berry b { background: var(--berry); }

.ctypes { list-style: none; padding: 0; margin: 24px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 860px) { .ctypes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .ctypes { grid-template-columns: 1fr; } }
.ctype { display: flex; gap: 14px; align-items: center; background: var(--paper); border-radius: 18px; padding: 12px; }
.ctype img { width: 64px; height: 64px; object-fit: cover; border-radius: 50%; border: 3px solid #fff; box-shadow: var(--shadow); flex-shrink: 0; }
.ctype b { display: block; color: var(--teal-ink); }
.ctype small { display: block; color: var(--muted); font-size: .9rem; line-height: 1.4; }

.setcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .setcards { grid-template-columns: 1fr; } }
.setcard { background: #fff; border-radius: var(--r-card); box-shadow: var(--shadow); padding: 24px; border-top: 6px solid var(--teal); scroll-margin-top: 90px; }
.setcard:nth-child(2) { border-top-color: var(--berry); }
.setcard:nth-child(3) { border-top-color: var(--milo); }
.setcard h3 { margin-bottom: .2em; }
.setcard dl { margin: 14px 0 0; }
.setcard dt { font-weight: 700; color: var(--teal-ink); font-size: .9rem; margin-top: 10px; }
.setcard dd { margin: 2px 0 0; color: var(--muted); }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 0 14px; }
.steps li::before {
  content: counter(s); grid-row: span 2; width: 40px; height: 40px; border-radius: 50%;
  background: var(--teal-mist); color: var(--teal); display: grid; place-items: center; font-weight: 800;
}
.steps li b { display: block; color: var(--teal-ink); }
.steps li span { color: var(--muted); }

table.pts { width: 100%; border-collapse: collapse; font-size: 1rem; }
table.pts th, table.pts td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--teal-line); vertical-align: top; }
table.pts th { font-weight: 600; color: var(--ink); }
table.pts th small { display: block; font-weight: 400; color: var(--muted); font-size: .9rem; margin-top: 2px; }
table.pts td { text-align: right; font-weight: 800; color: var(--teal); white-space: nowrap; padding-left: 16px; }

.choices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 28px 0 24px; }
@media (max-width: 980px) { .choices { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .choices { grid-template-columns: 1fr; } }
.choice { background: #fff; border-radius: var(--r-card); box-shadow: var(--shadow); padding: 22px; }
.choice h3 { font-size: 1.2rem; margin: 12px 0 .4em; }
.choice p { color: var(--muted); font-size: .97rem; margin: 0; }
.pts-badge {
  display: inline-grid; place-items: center; min-width: 56px; height: 56px; padding: 0 10px; border-radius: 999px;
  background: var(--berry-mist); color: var(--berry-deep); font: 700 1.4rem/1 var(--font-display);
}
.choice.is-big { background: var(--berry); }
.choice.is-big h3, .choice.is-big p { color: #fff; }
.choice.is-big .pts-badge { background: #fff; color: var(--berry-deep); }
.choice.is-quiet { box-shadow: none; background: transparent; border: 2px dashed var(--teal-line); }
.choice.is-quiet .pts-badge { background: var(--teal-mist); color: var(--muted); }

.example { display: grid; gap: 12px; max-width: 820px; }
.ex-row { background: var(--paper); border-radius: 18px; padding: 18px 22px; }
.ex-row h3 { font-size: 1.1rem; margin-bottom: .3em; }
.ex-row p { margin: 0; color: var(--muted); }
.ex-row p b { color: var(--teal-ink); }
.ex-result { font-weight: 600; color: var(--berry-deep); margin-top: 8px; }

.table-wrap { overflow-x: auto; }
table.variants { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow); min-width: 620px; }
table.variants th, table.variants td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--teal-mist); vertical-align: top; }
table.variants thead th { background: var(--teal); color: #fff; font-size: .9rem; }
table.variants tbody th { color: var(--teal-ink); }
table.variants td { color: var(--muted); }
#spielmaterial, #sets, #spielanleitung, #punkte, #auswertung, #beispiel, #varianten { scroll-margin-top: 70px; }
table.variants td:nth-child(3) { white-space: nowrap; }

/* ==========================================================================
   Seh-Tipps
   ========================================================================== */
.tips-list { padding: 40px 0 24px; }
.tip {
  display: grid; grid-template-columns: 300px 1fr; gap: clamp(22px, 4vw, 48px); align-items: start;
  background: #fff; border-radius: var(--r-card); box-shadow: var(--shadow); border-left: 6px solid var(--c);
  padding: clamp(20px, 3vw, 36px); margin-bottom: 24px; scroll-margin-top: 172px;
}
.tip figure { margin: 0; }
.tip figure img { width: 100%; border-radius: 18px; display: block; }
.tip .kind { font-weight: 700; color: var(--c); margin-bottom: .2em; }
.tip h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: .2em; }
.tip .tip-sub { color: var(--muted); font-size: 1.1rem; margin-bottom: 1em; }
.tip .why { background: color-mix(in srgb, var(--c) 8%, #fff); border-radius: 16px; padding: 16px 20px; margin: 6px 0 4px; }
.tip .why h3 { font-size: 1.15rem; margin-bottom: .5em; }
.tip .why ul { margin: 0; padding-left: 1.2em; }
.tip .why li { margin-bottom: .35em; }
.tip .sources { font-size: .9rem; color: var(--muted); padding-left: 1.2em; }
@media (max-width: 760px) { .tip { grid-template-columns: 1fr; } .tip figure img { max-height: 300px; object-fit: cover; } }


/* ==========================================================================
   Vision Crew: Bühne (Startseite) und kompakte Unternavigation
   Alle Figuren liegen als gleich große, zentrierte Quadrate vor (crew-*-sq.png),
   damit sie optisch gleich groß wirken.
   ========================================================================== */
.crew-stage { padding: 20px 0 clamp(40px, 6vw, 64px); background: var(--white); }
.crew-stage ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(12px, 2.4vw, 28px); }
.crew-stage a { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; }
body.og .crew-stage a { text-decoration: none; }
.crew-stage .disc {
  width: 100%; max-width: 190px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 42%, #fff 0 38%, color-mix(in srgb, var(--c) 16%, #fff) 72%);
  box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--c) 22%, #fff);
  transition: transform .2s, box-shadow .2s;
}
.crew-stage .disc img { width: 94%; height: auto; display: block; }
.crew-stage a:hover .disc, .crew-stage a:focus-visible .disc { transform: translateY(-4px); box-shadow: inset 0 0 0 3px var(--c), 0 10px 22px -12px var(--c); }
.crew-stage b { font: 700 1.25rem/1.2 var(--font-display); color: var(--c); margin-top: 12px; letter-spacing: -.02em; }
.crew-stage small { color: var(--muted); font-size: .9rem; }
.crew-stage-note { text-align: center; color: var(--muted); margin: 26px 0 0; font-weight: 500; }
@media (max-width: 700px) {
  .crew-stage ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 10px; }
  .crew-stage li { flex: 0 0 calc((100% - 20px) / 3); }
  .crew-stage b { font-size: 1.05rem; margin-top: 8px; }
  .crew-stage small { font-size: .8rem; }
}

.crew-bar {
  background: #fff; border-bottom: 1px solid var(--teal-line); box-shadow: 0 6px 14px -12px rgba(11, 59, 64, .35); z-index: 900;
}
@media (min-width: 761px) { .crew-bar { position: sticky; top: 64px; } }
.crew-bar .wrap { display: flex; justify-content: center; gap: clamp(10px, 2.4vw, 30px); overflow-x: auto; padding-top: 10px; padding-bottom: 8px; scrollbar-width: none; }
.crew-bar .wrap::-webkit-scrollbar { display: none; }
.crew-bar a { display: flex; flex-direction: column; align-items: center; gap: 5px; flex-shrink: 0; text-decoration: none; min-width: 64px; }
body.og .crew-bar a { text-decoration: none; }
.crew-bar .ring {
  width: 54px; height: 54px; border-radius: 50%; overflow: hidden; border: 3px solid var(--c); background: #fff;
  box-shadow: 0 2px 6px rgba(11, 59, 64, .12); transition: transform .15s, box-shadow .15s;
}
.crew-bar .ring img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.crew-bar .lbl { font: 600 .82rem/1.1 var(--font-body); color: var(--ink); }
.crew-bar a:hover .ring { transform: translateY(-2px); box-shadow: 0 6px 12px -4px var(--c); }
.crew-bar a.is-active .ring { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--c); }
.crew-bar a.is-active .lbl { color: var(--c); font-weight: 700; }
@media (max-width: 760px) {
  .crew-bar .wrap { justify-content: flex-start; }
  .crew-bar .ring { width: 46px; height: 46px; }
  .crew-bar a { min-width: 54px; }
}
.crosslink { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--c, var(--teal)); margin-top: 6px; }
body.og a.crosslink { color: var(--c, var(--teal)); }
.crosslink::after { content: ""; width: 7px; height: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
.tip .crosslink { margin-top: 14px; }

/* Startseite: Türkiser Einstieg */
.hero { background: linear-gradient(160deg, var(--teal) 0%, var(--teal-deep) 100%); color: #fff; }
.hero h1 { color: #fff; }
.hero .lead { color: #d8eef0; }
.hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .55); }
body.og .hero a.btn-ghost { color: #fff; }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }
.hero .crew-stage { background: transparent; }
.hero .crew-stage .disc { background: #fff; box-shadow: 0 0 0 4px var(--c), 0 12px 24px -14px rgba(0, 0, 0, .5); }
.hero .crew-stage a:hover .disc, .hero .crew-stage a:focus-visible .disc { box-shadow: 0 0 0 4px var(--c), 0 0 0 9px rgba(255,255,255,.35), 0 14px 26px -12px rgba(0,0,0,.5); }
.hero .crew-stage b { color: #fff; }
.hero .crew-stage small { color: #c6e3e6; }
.hero .crew-stage-note { color: #e6f4f5; }
.section-berry { background: var(--berry-mist); }
/* Kartenmotive in der Leiste etwas heranzoomen, damit der Kartenrahmen verschwindet */
.crew-bar[data-page="crew"] .ring img { transform: scale(1.38); object-position: center 40%; }
.crew-bar[data-page="tips"] .ring img { object-position: center 45%; }

/* ==========================================================================
   Einheitlich: erster Abschnitt jeder Seite in ocobii-Türkis
   Hintergründe wie ocobii.de: Türkis, Weiß, Beige (#F7F4EE), Sand (#F0EADF)
   ========================================================================== */
.page-head, .games-head { background: linear-gradient(160deg, var(--teal) 0%, var(--teal-deep) 100%); border-bottom: 0; color: #fff; }
.page-head h1, .games-head h1 { color: #fff; }
.page-head > .wrap > p, .page-head .person p, .games-head p { color: #dcefF1; }
.page-head .lead { color: #dcefF1; }
.page-head .person img { box-shadow: 0 0 0 5px rgba(255,255,255,.25), var(--shadow); }
.games-head .btn-ghost { color: #fff; border-color: rgba(255,255,255,.55); background: transparent; }
.games-head .btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.games-head .filter button { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.games-head .filter button[aria-pressed="true"] { background: #fff; color: var(--teal-deep); border-color: #fff; }
.login-page { background: linear-gradient(160deg, var(--teal) 0%, var(--teal-deep) 100%); }
.facet { box-shadow: 0 10px 24px -16px rgba(0,0,0,.45); }
.score-strip div { background: rgba(255,255,255,.92); }
.score-strip .is-berry { background: #fff; }
#team { background: var(--sand); }
.legal .legal-block { margin-bottom: 30px; }
.legal h2 { font-size: 1.35rem; margin-top: .4em; }
.legal h3 { font-size: 1.1rem; margin-top: 1em; }
.legal ul { padding-left: 1.2em; }
.legal .highlight { background: var(--paper); border-left: 5px solid var(--teal); border-radius: 0 12px 12px 0; padding: 14px 18px; }

/* Spielanleitung: Zwischenzeile unter der Überschrift der Konter-Runde */
.kicker { font-family: var(--font-display); font-weight: 700; color: var(--berry); font-size: 1.15rem; margin: -6px 0 12px; }
