/* Nature Idle comparison board v1 — restrained, accessible, responsive.
   Scope deliberately limited to Animal Idle; NatureDex and Academy stay unchanged. */
#gameView .game-layout {display:block; width:100%; max-width:1100px; margin:12px auto 0;}
#gameView .hero {max-width:1100px; margin-inline:auto;}
body:not(.hub-on-home) #gameView .hero {
  padding:22px clamp(12px,3vw,26px) 16px;
  border-radius:16px; box-shadow:none;
  background:#183d2c; border:1px solid #4b6c55;
}
body:not(.hub-on-home) #gameView .hero::after {opacity:.23;}
body:not(.hub-on-home) #gameView .hero>h1 {
  font:750 clamp(25px,3.4vw,34px)/1.16 system-ui,-apple-system,Segoe UI,sans-serif;
  letter-spacing:-.035em; margin:12px 0 5px;
}
body:not(.hub-on-home) #gameView .hero>p {
  font-size:clamp(13px,1.8vw,15px); line-height:1.45; margin:0 auto 15px;
  max-width:590px; font-weight:400;
}
body:not(.hub-on-home) #gameView .hero .eyebrow {font-size:10px;letter-spacing:.13em;}
body:not(.hub-on-home) #gameView .search-wrap {
  margin-top:14px; max-width:760px; filter:none;
}
body:not(.hub-on-home) #gameView .search-wrap input {
  min-height:49px; padding:12px 14px;
  background:#f9faf5; color:#203e2c; border:1px solid #94ad96;
  border-radius:10px 0 0 10px;
}
body:not(.hub-on-home) #gameView .search-wrap .primary {
  border-radius:0 10px 10px 0; min-height:49px; box-shadow:none;
  background:#306d47; color:#fff; font-weight:700;
}
body:not(.hub-on-home) #gameView .play-type-switch {max-width:660px; margin-inline:auto;}
body:not(.hub-on-home) #gameView .n34-color-guide {
  font-size:12px; gap:14px; margin:12px auto 3px; line-height:1.35;
}
#gameView .guess-table-card {border-radius:14px; overflow:hidden; box-shadow:none;}
body:not(.hub-on-home) #gameView .guess-table-card {
  border:1px solid #c9d5c4; background:#f5f5ed; max-width:1100px;
}
body:not(.hub-on-home) #gameView .guess-table-card .section-head {
  padding:12px 16px; border-bottom:1px solid #d4dfcc; background:#e7eee1;
}
body:not(.hub-on-home) #gameView .guess-table-card .section-head h2 {
  font:750 17px/1.2 system-ui,sans-serif; letter-spacing:-.015em;
}
#gameView .nw-guide {
  margin:0; padding:9px 15px 6px; color:#527058;
  font:500 11px/1.35 system-ui,sans-serif;
}
#gameView .guess-table-card .table-scroll {
  display:block; overflow-x:auto; -webkit-overflow-scrolling:touch;
  scrollbar-width:thin; scrollbar-color:#809b83 transparent;
  padding:3px 8px 9px; overscroll-behavior-x:contain;
}
#gameView .guess-table-card table {
  border-collapse:separate; border-spacing:5px;
  width:max-content!important; min-width:100%!important;
  table-layout:fixed; margin:0;
}
#gameView .guess-table-card tr {background:transparent!important;}
#gameView .guess-table-card :is(th,td) {
  padding:0!important; border:0!important;
  min-width:112px; width:112px; max-width:112px;
  height:68px; background:transparent!important;
  text-align:center; vertical-align:middle;
}
#gameView .guess-table-card thead th {
  height:41px; font:650 11px/1.25 system-ui,sans-serif;
  color:#455c4b!important; background:transparent!important;
  word-break:normal; white-space:normal; hyphens:auto;
  padding:4px!important;
}
#gameView .guess-table-card th:first-child,
#gameView .guess-table-card td:first-child {
  min-width:140px; width:140px; max-width:140px; position:sticky;
  left:0; z-index:3; box-shadow:none!important;
}
#gameView .guess-table-card thead th:first-child {
  background:#f5f5ed!important;
  border-radius:8px; text-align:left; padding-left:8px!important;
}
#gameView .guess-table-card tbody th.animal-name {
  background:#e7eee1!important; color:#294b35!important;
  border:1px solid #d0dcc9!important;
  border-radius:9px; text-align:left; padding:7px 8px!important;
  font:700 12px/1.24 system-ui,sans-serif; letter-spacing:-.01em;
  overflow-wrap:anywhere;
}
#gameView .nw-row-number {
  display:inline-grid; place-items:center; width:20px; height:20px;
  margin-right:5px; border-radius:50%; font-size:11px;
  color:#43634c; background:#d4e0cf; vertical-align:middle;
}
#gameView .nw-animal {vertical-align:middle;}
#gameView .nw-cell {
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  position:relative; width:100%; height:64px; min-height:64px;
  border:1px solid transparent; border-radius:9px;
  padding:6px 8px; cursor:pointer; transition:filter .15s ease;
  font:700 12px/1.28 system-ui,-apple-system,Segoe UI,sans-serif;
  text-align:center; box-shadow:none; white-space:normal;
}
#gameView .nw-cell:hover {filter:brightness(1.06);}
#gameView .nw-cell:focus-visible {outline:3px solid #d3a34c;outline-offset:2px;}
#gameView .nw-cell--correct {background:#34764e; color:#fff; border-color:#34764e;}
#gameView .nw-cell--near {background:#e7c86f; color:#493914; border-color:#d8b758;}
#gameView .nw-cell--wrong {background:#d78a81; color:#491e21; border-color:#c87973;}
#gameView .nw-cell--neutral {background:#dbe0db; color:#516157; border-color:#c4cfc6;}
#gameView .nw-cell-value {
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;
  line-clamp:2; overflow:hidden; width:100%;
  overflow-wrap:anywhere; word-break:normal;
}
#gameView .nw-cell-more {
  position:absolute; right:4px; bottom:2px; font-size:10px;
  opacity:.67; font-weight:500; line-height:1;
}
#gameView .nw-newest .nw-row-number {background:#357950;color:#fff;}
#gameView .nw-empty td {
  background:#f0f3ed!important; color:#627766!important;
  min-height:90px; padding:18px!important; width:auto; max-width:none;
  text-align:left; font-size:13px;
}
#gameView .n34-neutral {background:#85958a;}
body.n30-dark:not(.hub-on-home) #gameView .guess-table-card {
  background:#142a20!important; border-color:#365744!important;
}
body.n30-dark:not(.hub-on-home) #gameView .guess-table-card .section-head {
  background:#1b392a!important; border-color:#395746!important;
}
body.n30-dark:not(.hub-on-home) #gameView .nw-guide {color:#bbccbd;}
body.n30-dark:not(.hub-on-home) #gameView .guess-table-card thead th {
  background:transparent!important; color:#cbd8ca!important;
}
body.n30-dark:not(.hub-on-home) #gameView .guess-table-card thead th:first-child {
  background:#142a20!important;
}
body.n30-dark:not(.hub-on-home) #gameView .guess-table-card tbody th.animal-name {
  background:#244331!important; color:#f5f0dc!important;
  border-color:#3c624c!important;
}
body.n30-dark:not(.hub-on-home) #gameView .nw-row-number {
  background:#45694d;color:#fff;
}
body.n30-dark:not(.hub-on-home) #gameView .nw-cell--correct {background:#34764e;color:#fff;}
body.n30-dark:not(.hub-on-home) #gameView .nw-cell--near {background:#e7c86f;color:#493914;}
body.n30-dark:not(.hub-on-home) #gameView .nw-cell--wrong {background:#d78a81;color:#491e21;}
body.n30-dark:not(.hub-on-home) #gameView .nw-cell--neutral {background:#536b5e;color:#fff;}
body.n30-dark:not(.hub-on-home) #gameView .nw-empty td {background:#1b392a!important;color:#d0ddce!important;}
/* Hints remain a separate, existing mechanic; button no longer covers the grid. */
body:not(.hub-on-home) #gameView .hint-fab {
  position:relative!important; inset:auto!important;
  display:flex; margin:10px auto 14px; max-width:230px;
  justify-content:center; padding:9px 13px; min-height:43px;
  border-radius:10px; font-size:13px; transform:none;
  box-shadow:none; z-index:1;
}
body:not(.hub-on-home) #gameView .hint-fab:hover {transform:none;}
/* Quick info – sheet on mobile, centered dialog on desktop, outside tap dismisses. */
.nw-backdrop[hidden],.nw-quick[hidden] {display:none!important;}
.nw-backdrop {position:fixed; inset:0; z-index:1200;background:rgba(6,19,13,.67);}
.nw-quick {
  position:fixed; z-index:1201; left:50%; top:50%;
  transform:translate(-50%,-50%);
  width:min(470px,calc(100vw - 24px));
  max-height:min(86dvh,720px); overflow:auto;
  border-radius:16px; border:1px solid #a7bdab; box-shadow:0 22px 60px #07160e65;
  background:#fcfbf5; color:#233c2b;
  font:400 14px/1.5 system-ui,-apple-system,Segoe UI,sans-serif;
  overscroll-behavior:contain;
}
.nw-quick-head {
  display:flex; align-items:flex-start; justify-content:space-between; gap:12px;
  padding:18px 20px 13px; background:#e9f0e4; border-bottom:1px solid #d1decf;
}
.nw-quick-head small {font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:#5d7762;}
.nw-quick-head h2 {margin:3px 0 0;color:#204830!important;font-size:21px;line-height:1.2;}
.nw-quick .nw-close {
  display:grid;place-items:center; flex:0 0 40px;width:40px;height:40px;
  border-radius:10px;border:1px solid #b9cbbb;background:#fff;color:#244733;
  font-size:25px;line-height:1;cursor:pointer;
}
.nw-quick .nw-close:focus-visible {outline:3px solid #b28b3d;outline-offset:2px;}
.nw-quick-body {padding:18px 20px 22px;display:grid;gap:13px;}
.nw-guess-caption,.nw-fact>span {font-size:11px;color:#64776a;font-weight:600;}
.nw-guess-name {font-size:19px;line-height:1.2;font-weight:750;color:#204830;overflow-wrap:anywhere;}
.nw-quick-result {
  display:flex;justify-content:space-between;align-items:center;
  padding:10px 12px;border-radius:10px;font-size:13px;font-weight:600;
}
.nw-result--correct {background:#e0eddf;color:#205c39;}
.nw-result--near {background:#fff2c9;color:#785914;}
.nw-result--wrong {background:#fae6e1;color:#873d35;}
.nw-result--neutral {background:#ecede9;color:#566b5b;}
.nw-fact {display:grid;gap:5px;overflow-wrap:anywhere;}
.nw-fact strong {font-size:15px;font-weight:700;}
.nw-quick-signal {font-size:13px;padding:10px 12px;border:1px solid #d5e0d1;border-radius:9px;background:#f1f5ed;overflow-wrap:anywhere;}
.nw-explain {margin:0;color:#516b58;font-size:13px;line-height:1.55;}
body.nw-dialog-open {overflow:hidden;}
@media(max-width:650px) {
  #gameView .guess-table-card :is(td,th){min-width:106px;width:106px;max-width:106px;}
  #gameView .guess-table-card th:first-child,#gameView .guess-table-card td:first-child{
    min-width:112px;width:112px;max-width:112px;
  }
  body:not(.hub-on-home) #gameView .hero {padding:16px 12px 13px; margin-bottom:8px;}
  body:not(.hub-on-home) #gameView .hero>h1 {font-size:25px;}
  body:not(.hub-on-home) #gameView .hero>p {font-size:13px;}
  #gameView .nw-cell {font-size:11px;padding:5px;min-height:60px;height:60px;}
  #gameView .guess-table-card :is(td,th){height:64px;}
  #gameView .guess-table-card thead th{height:39px;font-size:10px;}
  #gameView .guess-table-card tbody th.animal-name{font-size:11px;padding:5px!important;}
  #gameView .guess-table-card .table-scroll{padding:2px 4px 8px;}
  .nw-quick{
    top:auto;left:0;right:0;bottom:0;transform:none;width:100%;
    max-height:calc(88dvh - env(safe-area-inset-top));
    padding-bottom:env(safe-area-inset-bottom);
    border-radius:18px 18px 0 0;
  }
  .nw-quick-head{padding:16px 17px 12px;}
  .nw-quick-body{padding:15px 17px 20px;}
}
@media(prefers-reduced-motion:reduce) {
  #gameView .nw-cell{transition:none;}
}

/* Alpha-Test 14.11.2026: Der Spielkopf ist seit V1 dunkelgrün (#183d2c), Überschrift,
   Untertitel, Ergebniszeile und Farblegende erbten aber noch die dunklen Farben des
   hellen Designs → im hellen Modus kaum lesbar. Kontrast jetzt ≥ 4.5:1. */
body:not(.hub-on-home) #gameView .hero>h1{color:#f4fbef}
body:not(.hub-on-home) #gameView .hero>p{color:#d3e6d6}
body:not(.hub-on-home) #gameView .hero .n34-color-guide{color:#dcebdc}
body:not(.hub-on-home) #gameView .hero .result-message:not(:has(.victory-card)){color:#c4f0cf}
body:not(.hub-on-home) #gameView .hero .result-message.warning:not(:has(.victory-card)){color:#ffe18f}
body:not(.hub-on-home) #gameView .hero .result-message.error:not(:has(.victory-card)){color:#ffb8ae}
/* Hinweis-Center: Gast-Text war hellgrün auf Weiß. */
body:not(.hub-on-home) #hintShop :is(small,.v262-guest-note){color:#3f5f49}
body.n30-dark:not(.hub-on-home) #hintShop :is(small,.v262-guest-note){color:#d7e8d3}
/* Dunkelmodus: Gast-Hinweisbox behielt olivbraune Schrift auf dunkelgrünem Grund. */
body.n30-dark:not(.hub-on-home) .v262-guest strong{color:#f3dc92}
body.n30-dark:not(.hub-on-home) .v262-guest span{color:#e6e0c6}
/* Mehr-Menü: Erfolge/Academy/Beitragen (.nav-btn) hatten durch die Desktop-Regel
   „body:not(.hub-on-home) .nav-btn“ keinen Kachel-Hintergrund – jetzt wie die übrigen Einträge. */
@media(max-width:680px){
  body:not(.hub-on-home) #ndMobileMoreMenu button.nav-btn{background:#f0f6ec;border:1px solid #d3dfce;color:#315641;border-radius:11px;padding:10px 12px;font:700 13px system-ui,sans-serif;text-align:left;box-shadow:none}
  body:not(.hub-on-home) #ndMobileMoreMenu button.nav-btn.active{background:#deebdb;border-color:#90b49a;color:#21663f}
  body.n30-dark:not(.hub-on-home) #ndMobileMoreMenu button.nav-btn{background:#263b2c;color:#e0ecdc;border-color:#3d6247}
}
/* Touch-Geräte: Der Desktop-Hover (.nav-btn:hover, dunkel) blieb nach dem Antippen an
   „Spielen“ hängen, obwohl längst „Home“ aktiv war. */
@media(max-width:680px) and (hover:none){
  .nd-mobile-nav > button.nav-btn:not(.active):hover{background:transparent;color:#415a46;border-color:transparent}
  body.n30-dark .nd-mobile-nav > button.nav-btn:not(.active):hover{color:#c7d7c5}
}
/* Alpha-Test 15.11.2026: Hinweis-Center (z-index 29) liegt unter der unteren Leiste (80):
   die letzten Kauf-Einträge (z. B. Aktivität) waren nicht erreichbar, und der „Hinweise“-
   Knopf lag über den Preisen. */
@media(max-width:700px){
  body.hint-center-open #gameView .hint-fab,
  body.hint-center-open #nd86QuickPlay{display:none!important}
  .hint-drawer-scroll{padding-bottom:calc(112px + var(--ndx-inset-bottom,0px))!important}
}
#hintShop .hint-wallet-line{display:block;grid-column:1/-1;margin:0 0 8px;font-size:13px}
/* Siegeskarte: Speicherhinweis war dunkelgrün auf dunkler Karte. */
#gameView .victory-card .victory-saved{color:#cfe9d4}
/* Expeditions-Sieg: Tiername (dunkelgrau) und Belohnungstext waren auf der dunklen Karte kaum lesbar. */
#gameView .victory-card>strong{display:block;margin:4px 0 8px;color:#f4fbef;font-size:20px}
#gameView .victory-card>p{color:#d4ead8}
/* Erfolge: „⭐ Level 4 · Keimling“ war dunkel auf der dunkelgrünen Level-Karte. */
.level-panel .level-copy strong{color:#f4fbef}
.level-panel .level-copy :is(small,span){color:#d6ead9}
/* Beitragen: Feldbeschriftungen waren für das dunkle Design gefärbt (#cbd6ce) und auf hellem Grund unsichtbar. */
body:not(.hub-on-home):not(.n30-dark) .submission-form label{color:#2f4a38}
/* Steckbrief › Verbreitung: Werte (Kontinente, Länder, GBIF-Listen) erbten die helle Schrift des
   dunklen Profils und standen hellgrau auf Creme (Alpha-Test 15.11.2026). */
#animalModal .nd71-geo>div p,#animalModal .nd77-country-lists p{color:var(--nd-ink,#22382c)!important}
