:root {
  --bg: #07191d;
  --panel: #0b252b;
  --panel-2: #10313a;
  --line: rgba(139, 221, 214, 0.22);
  --text: #e8f7ef;
  --muted: #9fc7c1;
  --aqua: #6fd2c8;
  --leaf: #9cc86f;
  --gold: #d7ba62;
  --warn: #e78d61;
  --shadow: rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 45% 18%, rgba(75, 149, 141, 0.2), transparent 32rem),
    linear-gradient(135deg, #041216, #08262c 52%, #061519);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.topbar {
  height: 74px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 20, 24, 0.9);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.island-mark {
  width: 54px;
  height: 38px;
  background: linear-gradient(135deg, #65c7bb, #1b6e79);
  clip-path: polygon(7% 45%, 17% 22%, 37% 10%, 61% 12%, 84% 24%, 95% 44%, 85% 64%, 63% 78%, 35% 84%, 16% 70%);
  box-shadow: 0 0 18px rgba(111, 210, 200, 0.45);
}

h1 {
  margin: 0;
  font-size: 24px;
  letter-spacing: 0;
}

.brand p {
  margin: 2px 0 0;
  color: var(--aqua);
  font-size: 14px;
  font-weight: 700;
}

.dsc-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 1px solid var(--line);
  padding-left: 20px;
  font-weight: 800;
  font-size: 28px;
}

.dsc-flower {
  color: var(--aqua);
  font-size: 24px;
}

.atlas-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: calc(100vh - 74px);
}

.families-panel {
  border-right: 1px solid var(--line);
  background: rgba(6, 22, 26, 0.84);
  padding: 16px 12px;
  overflow: auto;
}

.panel-head, .list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  margin: 0 4px 10px;
}

.family-button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  border-radius: 8px;
  padding: 9px 10px;
  margin: 2px 0;
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.family-button span {
  color: rgba(232, 247, 239, 0.56);
  font-size: 12px;
}

.family-button:hover,
.family-button.active,
.family-button[aria-pressed="true"] {
  background: rgba(111, 210, 200, 0.14);
  border-color: rgba(111, 210, 200, 0.36);
  color: var(--text);
}
.subgroup-selector { display: grid; gap: 6px; }
.subgroup-selector .subgroup-button { position: relative; padding-left: 34px; }
.subgroup-selector .subgroup-button::before { content: ""; position: absolute; left: 12px; top: 50%; width: 12px; height: 12px; border: 1px solid var(--aqua); border-radius: 3px; transform: translateY(-50%); background: #07191d; }
.subgroup-selector .subgroup-button[aria-pressed="true"]::before { border-color: var(--gold); background: var(--gold); box-shadow: inset 0 0 0 3px #16373b; }
.subgroup-selector .subgroup-master { margin-bottom: 5px; border-color: var(--gold); font-weight: 800; }
.family-button:focus-visible { outline: 2px solid var(--aqua); outline-offset: 2px; }
.subgroup-label { margin: 14px 10px 5px; color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.oi-status-filters { display: grid; gap: 2px; }

.workspace {
  padding: 18px;
  overflow: hidden;
}

/* Record-first species layout: the plate and record begin at the top of the
   workspace instead of sitting below the collection-summary strip. */
.record-first-layout .families-panel .record-group-visual {
  min-height: 0;
  margin: 0 4px 16px;
}

.record-first-layout .families-panel .record-group-visual .kauai-core-image,
.record-first-layout .families-panel > .record-group-visual.kauai-orbit .kauai-core-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.record-first-layout .families-panel .oi-collection-heading h1 {
  margin: 0 0 9px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.2;
}

.record-first-layout .content-grid {
  margin-top: 0;
}

.record-first-layout .hero-board {
  grid-template-columns: minmax(320px, .9fr) minmax(380px, 1.2fr);
  min-height: 112px;
  margin-top: 16px;
  padding-block: 14px;
}

.record-first-layout .hero-board .oi-collection-description {
  grid-column: 1 / -1;
  margin: 0;
}

@media (min-width: 1051px) {
  .record-first-layout .content-grid {
    height: var(--atlas-record-frame-height, calc(100dvh - 215px));
    max-height: var(--atlas-record-frame-height, calc(100dvh - 215px));
  }

  .record-first-layout .species-list-wrap,
  .record-first-layout .detail-panel {
    height: 100%;
    min-height: 0;
    max-height: 100%;
    overscroll-behavior: contain;
  }
}

.hero-board {
  min-height: 168px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 52%, rgba(111, 210, 200, 0.24), transparent 16rem),
    linear-gradient(135deg, rgba(11, 37, 43, 0.92), rgba(9, 44, 50, 0.72));
  position: relative;
  display: grid;
  grid-template-columns: minmax(190px, 0.48fr) minmax(360px, 0.95fr) minmax(380px, 1.2fr);
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  overflow: hidden;
}

.kauai-orbit {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 118px;
}

.kauai-core-image {
  width: min(320px, 100%);
  height: clamp(116px, 8vw, 158px);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  display: block;
  border: 1px solid rgba(111, 210, 200, 0.72);
  border-radius: 10px;
  background: #061b20;
  box-shadow:
    0 0 0 1px rgba(6, 21, 25, 0.86),
    0 0 34px rgba(111, 210, 200, 0.25);
  filter: saturate(1.08) contrast(1.05) brightness(0.95);
}

.kauai-core {
  width: 180px;
  aspect-ratio: 1.35;
  background:
    radial-gradient(circle at 45% 35%, #b2df87, #398b73 44%, #14535f 70%, #0a2932);
  clip-path: polygon(5% 48%, 16% 20%, 38% 8%, 63% 10%, 85% 24%, 97% 45%, 86% 66%, 62% 82%, 33% 89%, 13% 72%);
  box-shadow: 0 0 0 12px rgba(111, 210, 200, 0.09), 0 0 42px rgba(111, 210, 200, 0.42);
}

.plant-core {
  background:
    radial-gradient(circle at 38% 34%, #f0d574, transparent 18%),
    radial-gradient(circle at 45% 35%, #7fd06b, #2f8b61 44%, #15544e 70%, #0a2932);
}

.question-box {
  position: relative;
  z-index: 1;
  width: 100%;
  justify-self: stretch;
}

.question-box label {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--aqua);
  margin-bottom: 8px;
}

.question-row {
  display: flex;
  gap: 8px;
}

input, select, button {
  font-family: inherit;
}

#questionInput {
  width: 100%;
  min-height: 48px;
  border-radius: 8px;
  border: 1px solid #fff;
  background: #fff;
  color: #07191d;
  padding: 0 14px;
  font-size: 15px;
  outline: none;
  color-scheme: light;
}

#questionInput:focus {
  border-color: var(--aqua);
  box-shadow: 0 0 0 3px rgba(111, 210, 200, 0.24);
}

#clearSearch, #clearPlantSearch, #clearMammalSearch, #clearHerpSearch, #clearFishSearch, #clearIaSearch, #clearOiSearch, #clearFungiSearch, #clearHabitatSearch, #clearTcSearch, .filter, select {
  border: 1px solid var(--line);
  background: rgba(12, 43, 50, 0.82);
  color: var(--text);
  border-radius: 8px;
  padding: 0 12px;
  min-height: 40px;
  cursor: pointer;
}

#questionInput::placeholder,
#plantSearch::placeholder,
#mammalSearch::placeholder,
#herpSearch::placeholder,
#fishSearch::placeholder,
#iaSearch::placeholder,
#oiSearch::placeholder,
#fungiSearch::placeholder,
#habitatSearch::placeholder,
#tcSearch::placeholder {
  color: #526166;
  opacity: 1;
}

#clearSearch,
#clearPlantSearch,
#clearMammalSearch,
#clearHerpSearch,
#clearFishSearch,
#clearIaSearch,
#clearOiSearch,
#clearFungiSearch,
#clearHabitatSearch,
#clearTcSearch,
#plantSearch,
#mammalSearch,
#herpSearch,
#fishSearch,
#iaSearch,
#oiSearch,
#fungiSearch,
#habitatSearch,
#tcSearch {
  border-color: #fff;
  background: #fff;
  color: #07191d;
  color-scheme: light;
}

#clearSearch:hover,
#clearPlantSearch:hover,
#clearMammalSearch:hover,
#clearHerpSearch:hover,
#clearFishSearch:hover,
#clearIaSearch:hover,
#clearOiSearch:hover,
#clearFungiSearch:hover,
#clearHabitatSearch:hover,
#clearTcSearch:hover {
  background: #eef5f3;
  border-color: #eef5f3;
}

#plantSearch,
#mammalSearch,
#herpSearch,
#fishSearch,
#iaSearch,
#oiSearch,
#fungiSearch,
#habitatSearch,
#tcSearch {
  width: 100%;
  min-height: 48px;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 15px;
  outline: none;
}

#plantSearch:focus,
#mammalSearch:focus,
#herpSearch:focus,
#fishSearch:focus,
#iaSearch:focus,
#oiSearch:focus,
#fungiSearch:focus,
#habitatSearch:focus,
#tcSearch:focus {
  border-color: var(--aqua);
  box-shadow: 0 0 0 3px rgba(111, 210, 200, 0.24);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  justify-self: stretch;
}

.stats-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 64px;
  padding: 10px 12px;
  background: rgba(5, 18, 21, 0.54);
}

.stats-grid strong {
  display: block;
  font-size: 22px;
}

.stats-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 0;
}

.filter {
  font-size: 14px;
}

.filter.active {
  background: rgba(111, 210, 200, 0.22);
  border-color: var(--aqua);
}

.census-note{margin:0 0 15px;padding:10px 14px;border-left:3px solid var(--gold);color:var(--muted);background:rgba(111,210,200,.07);font-size:.91rem;line-height:1.5}
.census-note a{color:var(--aqua)}
.bird-footer{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;padding:23px clamp(20px,4vw,54px);border-top:1px solid var(--line);color:var(--muted);font-size:.9rem}
.bird-footer a{color:var(--aqua)}

.content-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1.2fr) minmax(360px, 0.9fr);
  gap: 16px;
  min-height: 0;
}

.content-grid.atlas-resizable-workspace {
  grid-template-columns: minmax(248px, var(--records-pane-width, 57%)) 16px minmax(360px, 1fr);
  gap: 0;
}

.atlas-panel-splitter {
  position: relative;
  min-width: 16px;
  cursor: col-resize;
  touch-action: none;
  outline: none;
}

.atlas-panel-splitter::before {
  content: "";
  position: absolute;
  inset: 8px 6px;
  border-radius: 999px;
  background: rgba(111, 210, 200, 0.28);
  transition: background 120ms ease, box-shadow 120ms ease;
}

.atlas-panel-splitter:is(:hover, :focus-visible)::before,
body.atlas-panel-resizing .atlas-panel-splitter::before {
  background: var(--aqua);
  box-shadow: 0 0 0 3px rgba(111, 210, 200, 0.16), 0 0 14px rgba(111, 210, 200, 0.5);
}

body.atlas-panel-resizing {
  cursor: col-resize;
  user-select: none;
}

.species-list-wrap, .detail-panel {
  min-height: calc(100vh - 330px);
  max-height: calc(100vh - 330px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(6, 22, 26, 0.76);
}

.list-head {
  margin: 0;
  padding: 12px;
  gap: 10px;
  position: sticky;
  top: 0;
  background: rgba(6, 22, 26, 0.96);
  z-index: 2;
  border-bottom: 1px solid var(--line);
}

.list-head > span:first-child {
  margin-right: auto;
}

.workspace > .atlas-module-bar,
.site-header > .atlas-module-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 24px;
  margin: 0 0 8px;
  padding: 8px 14px;
}

.atlas-module-bar > .atlas-module-title {
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.atlas-module-bar > .atlas-invasive-key {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.atlas-invasive-key > .atlas-key-label {
  flex: 0 0 auto;
  margin-right: 4px;
}

.atlas-invasive-key > .invasive-flag {
  flex: 0 1 auto;
  max-width: 100%;
  white-space: normal;
}

.record-step-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.record-step-button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12, 43, 50, 0.82);
  color: var(--text);
  padding: 0 12px;
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
}

.record-step-button:hover:not(:disabled),
.record-step-button:focus-visible {
  border-color: var(--aqua);
  background: rgba(111, 210, 200, 0.16);
  outline: none;
}

.record-step-button:disabled {
  opacity: 0.38;
  cursor: default;
}

.record-step-status {
  min-width: 64px;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-align: center;
  white-space: nowrap;
}

.species-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(max(210px, calc((100% - 36px) / 4)), 1fr));
  gap: 12px;
  padding: 12px;
}

.plant-card-grid {
  grid-template-columns: repeat(auto-fill, minmax(max(185px, calc((100% - 36px) / 4)), 1fr));
}

.mammal-card-grid {
  grid-template-columns: repeat(auto-fill, minmax(max(210px, calc((100% - 36px) / 4)), 1fr));
}

.herp-card-grid {
  grid-template-columns: repeat(auto-fill, minmax(max(225px, calc((100% - 36px) / 4)), 1fr));
}

.species-card {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  align-self: stretch;
  border: 1px solid rgba(111, 210, 200, 0.18);
  background: rgba(9, 35, 41, 0.8);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  color: inherit;
  text-align: left;
  padding: 0;
}

.species-card:hover {
  border-color: var(--aqua);
  box-shadow: 0 10px 30px var(--shadow);
}

.tc-card.threat {
  border-color: rgba(224, 132, 85, 0.34);
}

.tc-card.intervention {
  border-color: rgba(116, 211, 170, 0.34);
}

.tc-card.threat:hover,
.tc-card.threat.active {
  border-color: #e79a70;
}

.tc-card.intervention:hover,
.tc-card.intervention.active {
  border-color: #7edab5;
}

/* One selected-state treatment for every Atlas family and record type. */
.species-card.active,
.species-card[aria-pressed="true"],
.tc-card.threat.active,
.tc-card.intervention.active {
  border-color: var(--gold);
  outline: 3px solid var(--gold);
  outline-offset: -3px;
  box-shadow: 0 10px 30px var(--shadow), 0 0 18px rgba(215, 186, 98, 0.24);
}

.species-card img {
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center center;
  background:
    radial-gradient(circle at 50% 45%, rgba(111, 210, 200, 0.13), transparent 55%),
    #061b20;
  display: block;
  pointer-events: none;
}

.algae-image-unavailable {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 1.5rem;
  color: #dfd2b2;
  background: radial-gradient(circle at 50% 45%, rgba(111, 210, 200, 0.09), transparent 56%), #061b20;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  border-bottom: 1px solid rgba(111, 210, 200, 0.18);
}

.species-card .card-body {
  flex: 1 1 auto;
  padding: 10px;
}

.species-card strong {
  display: block;
  font-size: 15px;
}

.species-card em {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}

.hawaiian-name {
  display: block;
  color: var(--aqua);
  font-size: 15px;
  line-height: 1.35;
  margin: 2px 0 1px;
}

.hawaiian-name.compact {
  font-size: 13px;
}

.mammal-card img,
#mammalDetailPanel .detail-image,
.herp-card img,
#herpDetailPanel .detail-image {
  object-fit: cover;
}

.bird-card img,
#detailPanel .detail-image,
.micro-card img,
.plant-card img,
#plantDetailPanel .detail-image {
  object-fit: cover;
}

#microDetailPanel {
  min-width: 0;
  overflow-x: hidden;
}

#microDetailPanel .detail-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center center;
}

.ia-card img,
.ia-detail-image,
.oi-card img,
.oi-detail-image {
  object-fit: contain;
  background: #061b1e;
}

.image-missing,
.ia-image-missing {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(111, 210, 200, 0.08), transparent 58%),
    #061b20;
  color: #a7bbb7;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.detail-image.image-missing {
  min-height: 220px;
}

.species-card small {
  display: block;
  color: #bfd5d0;
  font-size: 12px;
  line-height: 1.35;
  margin-top: 8px;
}

.bird-card .card-summary {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.herp-card .card-body {
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 16px;
}

.ia-card .card-body {
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 16px;
}

.oi-card .card-body {
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 16px;
}

.ia-card strong,
.oi-card strong {
  font-size: 17px;
}

.ia-card small,
.oi-card small {
  margin-top: auto;
  padding-top: 12px;
}

.oi-collection-heading { min-width: 0; }
.oi-collection-heading h1 { margin: 0 0 8px; font-size: 20px; line-height: 1.25; }
.oi-collection-heading .kauai-core-image { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; border-radius: 8px; }
.oi-collection-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; border-bottom: 1px solid var(--line); }
.oi-collection-tabs[hidden] { display: none; }
.oi-collection-tabs button { padding: 9px 12px; min-height: 42px; border: 1px solid var(--line); border-radius: 7px; background: #0b292f; color: var(--text); font: inherit; font-size: 14px; cursor: pointer; }
.oi-collection-tabs button span { margin-left: 6px; color: var(--muted); }
.oi-collection-tabs button[aria-selected="true"] { border-color: var(--gold); color: var(--gold); background: #16373b; }
.oi-collection-tabs button:focus-visible { outline: 2px solid var(--aqua); outline-offset: 2px; }
.oi-image-pending { padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--muted); text-align: left; font-size: 14px; }
.oi-image-pending-detail { margin: 12px 16px 0; padding: 12px 0; }
.oi-reference-photos { margin-top: 24px; }
.oi-plate-note { margin: 0; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.5; }

.herp-card strong {
  font-size: 17px;
}

.herp-card small {
  margin-top: auto;
  padding-top: 12px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}

.chip {
  border: 1px solid rgba(111, 210, 200, 0.22);
  border-radius: 999px;
  color: var(--muted);
  padding: 3px 7px;
  font-size: 12px;
}

.chip.confidence-high {
  border-color: rgba(156, 200, 111, 0.55);
  color: #cce8ae;
}

.chip.confidence-medium {
  border-color: rgba(215, 186, 98, 0.55);
  color: #f0d98e;
}

.detail-panel {
  padding: 0;
}

.empty-detail {
  min-height: 100%;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 30px;
  color: var(--muted);
}

.empty-detail strong {
  color: var(--text);
  font-size: 20px;
}

.detail-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center center;
  background:
    radial-gradient(circle at 50% 45%, rgba(111, 210, 200, 0.13), transparent 55%),
    #061b20;
  display: block;
}
.record-media,
.record-photo,
.record-plate {
  margin: 0;
  border-bottom: 1px solid var(--line);
}
.record-media figcaption,
.record-photo figcaption,
.record-plate figcaption {
  display: grid;
  gap: .2rem;
  padding: .75rem 1rem 1rem;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.4;
}
.record-media figcaption strong,
.record-photo figcaption strong,
.record-plate figcaption strong {
  color: var(--ink);
  font-size: .9rem;
}
.record-media figcaption a,
.record-photo figcaption a {
  width: fit-content;
}

.detail-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.detail-body > .fact-grid {
  order: 2;
}

.detail-body > .section-block {
  order: 3;
}

/* Every family places its public description before the summary facts. */
.detail-body > .section-block:first-of-type:not(.media-disclosure),
.detail-body > .media-disclosure + .section-block {
  order: 1;
}

.detail-identity {
  padding: 22px 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(111, 210, 200, 0.18), rgba(9, 35, 41, 0.9));
}

.detail-identity.threat {
  background: linear-gradient(135deg, rgba(175, 78, 42, 0.26), rgba(9, 35, 41, 0.9));
}

.detail-identity.intervention {
  background: linear-gradient(135deg, rgba(55, 143, 106, 0.27), rgba(9, 35, 41, 0.9));
}

.media-disclosure {
  border: 1px solid rgba(215, 186, 98, 0.38);
  border-radius: 8px;
  margin: 14px 0;
  padding: 12px;
  background: rgba(215, 186, 98, 0.08);
}

.architecture-note {
  color: var(--muted) !important;
  margin-bottom: 10px !important;
}

.detail-identity > span {
  display: block;
  margin-bottom: 7px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.detail-identity h2 {
  margin: 0 0 3px;
  font-size: 30px;
}

.detail-identity em {
  color: var(--muted);
}

.detail-body h2 {
  margin: 0 0 2px;
  font-size: 28px;
}

.detail-body em {
  color: var(--muted);
  font-size: 16px;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.fact {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(5, 18, 21, 0.54);
}

.fact span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 4px;
}

.section-block {
  border-top: 1px solid var(--line);
  padding: 13px 0;
}

.section-block h3 {
  margin: 0 0 7px;
  font-size: 14px;
  color: var(--aqua);
  text-transform: uppercase;
}

.section-block p {
  margin: 0;
  color: #d7ebe6;
  font-size: 14px;
  line-height: 1.5;
}

.species-review p + p {
  margin-top: 12px;
}

.section-block ul {
  margin: 0;
  padding-left: 1.2rem;
  color: #d7ebe6;
  font-size: 14px;
  line-height: 1.5;
}

.section-block li + li {
  margin-top: 5px;
}

.source-list {
  list-style: none;
  padding-left: 0 !important;
  margin-top: 10px !important;
}

.source-list li {
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: rgba(5, 18, 21, 0.42);
}

.source-list span,
.evidence-state {
  color: var(--muted) !important;
  font-size: 12px !important;
}

.crosswalk-note {
  border: 1px solid rgba(215, 186, 98, 0.48);
  border-radius: 8px;
  padding: 12px;
  margin: 8px 0;
  background: rgba(215, 186, 98, 0.08);
}

.crosswalk-note h3 {
  color: var(--gold);
}

.credit {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.detail-panel a {
  color: var(--aqua);
  text-underline-offset: 5px;
}

@media (max-width: 1050px) {
  .atlas-shell {
    grid-template-columns: 1fr;
  }

  .families-panel {
    max-height: 180px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-board,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .content-grid.atlas-resizable-workspace {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .atlas-panel-splitter {
    display: none;
  }

  .species-list-wrap, .detail-panel {
    max-height: none;
  }
}

@media (max-width: 620px) {
  .topbar {
    height: auto;
    gap: 10px;
    padding: 12px;
  }

  h1 {
    font-size: 19px;
  }

  .dsc-mark {
    font-size: 18px;
    padding-left: 12px;
  }

  .workspace {
    padding: 10px;
  }

  .list-head {
    flex-wrap: wrap;
  }

  .list-head > span:first-child {
    flex: 1 0 100%;
  }

  .record-step-controls {
    flex: 1 1 auto;
    margin-left: 0;
  }

  .record-step-button {
    min-height: 44px;
    padding-inline: 10px;
  }

  .hero-board {
    padding: 14px;
  }

  .kauai-core-image {
    width: 100%;
    max-width: 360px;
    height: auto;
  }

  .question-row,
  .stats-grid,
  .fact-grid {
    grid-template-columns: 1fr;
  }

  .question-row {
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .atlas-shell { min-height: 0; }
  .families-panel {
    position: sticky;
    top: 64px;
    z-index: 8;
    display: flex;
    align-items: center;
    gap: 8px;
    max-height: none;
    padding: 8px 10px;
    overflow-x: auto;
    overflow-y: hidden;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(6, 22, 26, 0.97);
    scrollbar-width: none;
  }
  .families-panel::-webkit-scrollbar,
  .families-panel > div:not(.panel-head)::-webkit-scrollbar { display: none; }
  .families-panel .panel-head { flex: 0 0 auto; margin: 0; white-space: nowrap; }
  .families-panel .panel-head strong { display: none; }
  .families-panel > div:not(.panel-head) { display: flex; flex: 0 0 auto; gap: 8px; }
  .families-panel .subgroup-selector,
  .families-panel .oi-status-filters { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
  .families-panel .subgroup-label { align-self: center; margin: 0 4px 0 10px; white-space: nowrap; }
  .families-panel .family-button { flex: 0 0 auto; width: auto; min-height: 44px; margin: 0; white-space: nowrap; }
  .record-first-layout .families-panel .record-group-visual {
    display: block;
    flex: 0 0 96px;
    width: 96px;
    min-height: 0;
    margin: 0;
  }
  .record-first-layout .families-panel .record-group-visual .kauai-core-image,
  .record-first-layout .families-panel > .record-group-visual.kauai-orbit .kauai-core-image {
    width: 96px;
    height: 54px;
    border-radius: 6px;
  }
  .record-first-layout .families-panel .oi-collection-heading h1 { display: none; }
  .record-first-layout .hero-board { grid-template-columns: 1fr; }
  .hero-board { min-height: 0; gap: 10px; padding: 10px; }
  .hero-board .kauai-orbit { display: none; }
  .stats-grid { grid-template-columns: repeat(4, minmax(64px, 1fr)); }
  .stats-grid div { min-height: 54px; padding: 7px; }
  .stats-grid strong { font-size: 18px; }
  .stats-grid span { font-size: 12px; }
  .question-row { align-items: stretch; }
  .question-row button { min-height: 48px; }
  .filter-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .filter-row::-webkit-scrollbar { display: none; }
  .filter { flex: 0 0 auto; min-height: 44px; }
  .species-list-wrap, .detail-panel { min-height: 0; max-height: none; }
}

.contributor-grid { display: grid; gap: 12px; }
.contributor-card { padding: 14px; border: 1px solid #b89b55; border-radius: 10px; background: #112d31; }
.contributor-card > span { color: #efd36f; font-size: .82rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.contributor-card h4 { margin: 5px 0 3px; color: #fff; font-size: 1.05rem; }
.contributor-card p { margin: 8px 0; }
.contributor-card .contributor-program { color: #7ee0d2; font-weight: 750; }
.contributor-card a { color: #efd36f; font-weight: 750; }
.contributor-card small { display: block; margin-top: 12px; color: #b8c6c4; font-size: .82rem; line-height: 1.45; }
.inv-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:.75rem;margin:1rem 0;padding:1rem;border:1px solid #536769;border-radius:12px;background:#15272b}.inv-filters label{display:flex;flex-direction:column;gap:.35rem;color:#e7e3d1;font-size:.85rem}.inv-filters input,.inv-filters select{width:100%;min-height:2.55rem;border:1px solid #73918f;border-radius:7px;background:#f8f7ef;color:#173238;padding:.4rem .6rem;font:inherit}.inv-filters .inv-checkbox{flex-direction:row;align-items:center;gap:.5rem}.inv-checkbox input{width:1.2rem;min-height:1.2rem}.invasive-flag{display:inline-flex;align-items:center;width:fit-content;border:1px solid #ff8a80;border-radius:999px;background:#c62828;color:#ffffff;padding:.3rem .65rem;font-size:.875rem;font-weight:700;line-height:1.25}.invasive-flag--amber{border-color:#ffe082;background:#f2c94c;color:#07191d}.invasive-flag--green{border-color:#66bb6a;background:#18783b}.invasive-intelligence{margin:1rem 0;border:1px solid #b99953;border-radius:12px;background:#10272a;overflow:hidden}.invasive-intelligence>header{padding:1rem;background:#243c3d;border-bottom:3px solid #d7ba62}.invasive-intelligence>header span{color:#d7ba62;font-size:.78rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase}.invasive-intelligence>header h3{margin:.35rem 0;color:#fff}.invasive-intelligence>header p{margin:0;color:#d9e2dc}.invasive-intelligence-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:.75rem;padding:1rem}.invasive-intelligence-grid .section-block{margin:0}.invasive-source{padding:0 1rem 1rem}.inv-open-profile{display:inline-block;border:1px solid #d7ba62;border-radius:8px;padding:.55rem .8rem;color:#ffe7a1;font-weight:800}.inv-open-profile:focus-visible{outline:3px solid #d7ba62;outline-offset:3px}@media(max-width:760px){.inv-filters{grid-template-columns:1fr}.invasive-intelligence-grid{grid-template-columns:1fr}.invasive-flag{white-space:normal}}

/* Shared conservation game tiles: 16:9 arcade posters. */
.games-main{width:100%;margin:0 auto;padding:18px 0 24px}
.games-hero{margin:0 0 16px}
.games-hero h1{margin:0;color:var(--gold);font:800 1.5rem/1.2 system-ui,sans-serif;letter-spacing:0}
.games-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:18px}
.game-card{--poster-color:#ffda77;position:relative;isolation:isolate;display:block;min-width:0;aspect-ratio:16/9;overflow:hidden;border:2px solid #50716e;border-radius:12px;background:#07191d;color:#fff;text-decoration:none;box-shadow:0 6px 18px #00101480;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;container-type:inline-size}
.game-card::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(180deg,#020b17e6 0%,#020b1766 29%,transparent 56%,#020b17c9 100%)}
.game-card>img,.game-card-art{width:100%;height:auto;aspect-ratio:16/9;display:block;object-fit:cover;transition:transform .3s ease}
.game-card-copy{position:absolute;inset:7% 5% auto;z-index:2;display:block;padding:0;pointer-events:none}
.game-card h2{margin:0;min-height:0;max-width:100%;color:var(--poster-color);font:950 italic clamp(1.1rem,7.4cqw,2.1rem)/1.03 system-ui,sans-serif;letter-spacing:-.035em;text-transform:uppercase;text-wrap:balance;text-shadow:0 2px 0 #06101c,0 4px 1px #06101c,0 0 14px #000,1px 0 0 #06101c,-1px 0 0 #06101c}
.game-card-place{display:block;margin-top:.25em;color:#fff;font:800 .57em/1.1 system-ui,sans-serif;letter-spacing:.06em}
.game-card-foot{position:absolute;inset:auto 5% 6%;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:5px}
.game-card-genre{font:750 .875rem/1.2 system-ui,sans-serif;color:#fff;text-shadow:0 2px 6px #000}
.game-card-play{flex-shrink:0;border:1px solid var(--poster-color);border-radius:5px;padding:3px 9px;background:#07191dde;color:var(--poster-color);font:850 .875rem/1.15 system-ui,sans-serif}
.game-card:nth-child(3n+2){--poster-color:#89f4ff}
.game-card:nth-child(3n){--poster-color:#ffb998}
.game-card:hover{transform:translateY(-3px);border-color:var(--poster-color);box-shadow:0 10px 25px #001014b0}
.game-card:hover>img{transform:scale(1.035)}
.game-card:focus-visible{outline:3px solid var(--gold);outline-offset:4px;border-color:var(--poster-color)}
@media(min-width:1640px){.games-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:760px){.games-main{padding-top:14px}.games-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.game-card{border-radius:9px}.game-card h2{font-size:clamp(1.05rem,7.4cqw,1.65rem)}.game-card-genre{font-size:.875rem}.game-card-play{display:none}}
@media(max-width:360px){.games-grid{grid-template-columns:1fr}.game-card h2{font-size:clamp(1.1rem,7.4cqw,2rem)}.game-card-play{display:block}}
@media(prefers-reduced-motion:reduce){.game-card,.game-card>img{transition:none}.game-card:hover,.game-card:hover>img{transform:none}}

/* Ridge Rhythm: shared Atlas styling for the mobile-first arcade surface. */
body.ridge-rhythm-page{padding-bottom:0}
body.atlas-game-fit main.ridge-rhythm-game{padding:0;position:relative;isolation:isolate;width:100%;height:calc(100dvh - 160px);min-height:240px;overflow:hidden;line-height:1.4;border:1px solid #315257}
.ridge-rhythm-game{
  --night:#050a17;      
  --deep:#0b1833;       
  --ridge:#16294a;      
  --ink:#eaf2ff;        
  --mute:#93a7c8;       
  --lehua:#ff4a5f;      
  --kai:#33aaff;        
  --moon:#ffd98a;       
  --fern:#5fd39a;       
  --display:"Big Shoulders Display","Arial Narrow",Impact,sans-serif;
  --body:"Barlow Semi Condensed","Segoe UI",Roboto,Helvetica,sans-serif;
  color-scheme:dark;
}
.ridge-rhythm-game [hidden]{display:none!important}
.ridge-rhythm-game{margin:0;background:var(--night);color:var(--ink);font-family:var(--body);font-size:16px;overflow:hidden;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}
.ridge-rhythm-game #stage{position:absolute;inset:0}
.ridge-rhythm-game #cv{display:block;width:100%;height:100%;touch-action:none}
.ridge-rhythm-game button{font:inherit;color:inherit;cursor:pointer;border:0;background:none}
.ridge-rhythm-game button:focus-visible,
.ridge-rhythm-game input:focus-visible{outline:2px solid var(--moon);outline-offset:2px}
.ridge-rhythm-game #hud{position:absolute;left:0;right:0;top:0;display:grid;grid-template-columns:1fr minmax(0,2fr) 1fr;align-items:start;gap:12px;
  padding:calc(env(safe-area-inset-top,0px) + 10px) calc(env(safe-area-inset-right,0px) + 14px) 0 calc(env(safe-area-inset-left,0px) + 14px);pointer-events:none}
.ridge-rhythm-game .hud-l{display:flex;align-items:center;gap:10px;min-width:0}
.ridge-rhythm-game .mult{--p:0;width:44px;height:44px;border-radius:50%;flex:none;display:grid;place-items:center;
  background:conic-gradient(var(--moon) calc(var(--p) * 1turn),rgba(147,167,200,.18) 0);position:relative}
.ridge-rhythm-game .mult::before{content:"";position:absolute;inset:4px;border-radius:50%;background:var(--night)}
.ridge-rhythm-game .mult span{position:relative;font-family:var(--display);font-weight:800;font-size:18px;color:var(--moon)}
.ridge-rhythm-game .score{font-family:var(--display);font-weight:800;font-size:26px;line-height:1;font-variant-numeric:tabular-nums;letter-spacing:.02em}
.ridge-rhythm-game .combo{font-size:12px;color:var(--mute);letter-spacing:.08em;text-transform:uppercase;font-variant-numeric:tabular-nums}
.ridge-rhythm-game .hud-c{display:grid;gap:6px;padding-top:6px}
.ridge-rhythm-game .bar{height:6px;background:rgba(147,167,200,.16);clip-path:polygon(4px 0,100% 0,calc(100% - 4px) 100%,0 100%)}
.ridge-rhythm-game .bar>i{display:block;height:100%;width:50%;background:var(--fern);transition:width .15s linear,background-color .3s}
.ridge-rhythm-game .bar.thin{height:3px}
.ridge-rhythm-game .bar.thin>i{background:var(--mute);transition:none}
.ridge-rhythm-game .hud-label{display:flex;justify-content:space-between;font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:var(--mute)}
.ridge-rhythm-game .hud-r{display:flex;justify-content:flex-end}
.ridge-rhythm-game .icon-btn{pointer-events:auto;width:44px;height:44px;display:grid;place-items:center;background:rgba(11,24,51,.7);border:1px solid var(--ridge);
  clip-path:polygon(8px 0,100% 0,100% calc(100% - 8px),calc(100% - 8px) 100%,0 100%,0 8px)}
.ridge-rhythm-game .icon-btn svg{width:18px;height:18px;fill:var(--ink)}
.ridge-rhythm-game .screen{position:absolute;inset:0;display:flex;overflow-y:auto;
  padding-block:calc(env(safe-area-inset-top,0px) + 12px) calc(env(safe-area-inset-bottom,0px) + 12px);
  padding-inline:calc(env(safe-area-inset-left,0px) + 16px) calc(env(safe-area-inset-right,0px) + 16px);
  background:linear-gradient(180deg,rgba(5,10,23,.35),rgba(5,10,23,.78) 70%);touch-action:pan-y}
.ridge-rhythm-game .panel{margin:auto;width:100%;max-width:960px;background:rgba(7,20,36,.91);border:1px solid #3a627a;box-shadow:0 24px 80px #0007;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);
  padding:18px 20px;clip-path:polygon(18px 0,100% 0,100% calc(100% - 18px),calc(100% - 18px) 100%,0 100%,0 18px)}
.ridge-rhythm-game .panel.narrow{max-width:460px}
.ridge-rhythm-game .menu-grid{display:grid;grid-template-columns:1fr;gap:20px;align-items:start}
@media (max-width:640px){.ridge-rhythm-game .menu-grid{grid-template-columns:1fr}
}
.ridge-rhythm-game .eyebrow{font-size:12px;letter-spacing:.18em;text-transform:uppercase;color:var(--mute);margin:0}
.ridge-rhythm-game .rr-logo{font-family:var(--display);font-weight:900;font-size:clamp(40px,8vw,64px);line-height:.88;margin:4px 0 8px;letter-spacing:.01em;text-wrap:balance;position:relative}
.ridge-rhythm-game .rr-logo .l{color:var(--lehua)}
.ridge-rhythm-game .rr-logo .k{color:var(--kai)}
.ridge-rhythm-game .rr-logo::after{content:"";position:absolute;left:-4px;right:20%;top:52%;height:3px;background:var(--ink);transform:rotate(-7deg);transform-origin:left;opacity:.85;
  box-shadow:0 0 12px var(--ink)}
.ridge-rhythm-game .lede{margin:0 0 12px;color:var(--mute);line-height:1.4;max-width:42ch}
.ridge-rhythm-game .how{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.ridge-rhythm-game .how li{display:grid;grid-template-columns:30px 1fr;gap:10px;align-items:center;line-height:1.3}
.ridge-rhythm-game .chip{width:26px;height:26px;display:grid;place-items:center;font-weight:700;font-size:16px;color:#fff;
  clip-path:polygon(5px 0,100% 0,100% calc(100% - 5px),calc(100% - 5px) 100%,0 100%,0 5px)}
.ridge-rhythm-game .chip.l{background:var(--lehua)}
.ridge-rhythm-game .chip.k{background:var(--kai)}
.ridge-rhythm-game .chip.a{background:var(--ridge);color:var(--moon)}
.ridge-rhythm-game .how b{font-weight:700}
.ridge-rhythm-game .how .tl{color:var(--lehua)}
.ridge-rhythm-game .how .tk{color:var(--kai)}
.ridge-rhythm-game h2{font-family:var(--display);font-weight:800;font-size:28px;margin:0 0 10px;letter-spacing:.02em;text-wrap:balance}
.ridge-rhythm-game .missions{display:grid;gap:8px;margin-bottom:12px}
.ridge-rhythm-game .mission{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:10px;align-items:center;text-align:left;min-height:76px;padding:10px 12px;background:rgba(5,10,23,.55);
  border:1px solid var(--ridge);clip-path:polygon(10px 0,100% 0,100% calc(100% - 10px),calc(100% - 10px) 100%,0 100%,0 10px)}
.ridge-rhythm-game .mission[aria-pressed="true"]{border-color:var(--moon);background:rgba(255,217,138,.08)}
.ridge-rhythm-game .mission canvas{width:42px;height:42px}
.ridge-rhythm-game .m-name{font-family:var(--display);font-weight:800;font-size:20px;line-height:1}
.ridge-rhythm-game .m-sub{font-size:14px;color:var(--mute);line-height:1.25;margin-top:2px}
.ridge-rhythm-game .m-best{font-size:12px;color:var(--mute);text-align:right;font-variant-numeric:tabular-nums;line-height:1.3}
.ridge-rhythm-game .m-best b{display:block;font-family:var(--display);font-size:20px;color:var(--moon);font-weight:800}
.ridge-rhythm-game .controls{display:flex;flex-direction:row;margin:0;flex-wrap:wrap;gap:8px;align-items:center}
.ridge-rhythm-game .seg{display:flex;border:1px solid var(--ridge)}
.ridge-rhythm-game .seg button{padding:10px 14px;font-weight:600;color:var(--mute);min-height:44px}
.ridge-rhythm-game .seg button[aria-pressed="true"]{background:var(--ink);color:var(--night)}
.ridge-rhythm-game .play{flex:1 1 120px;min-height:46px;padding:0 22px;font-family:var(--display);font-weight:900;font-size:24px;letter-spacing:.06em;color:var(--night);
  background:linear-gradient(100deg,var(--lehua) 0 49.5%,var(--kai) 50.5% 100%);clip-path:polygon(12px 0,100% 0,calc(100% - 12px) 100%,0 100%)}
.ridge-rhythm-game .ghost{min-height:44px;padding:0 14px;border:1px solid var(--ridge);color:var(--ink);font-weight:600}
.ridge-rhythm-game .btns{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.ridge-rhythm-game .btns>*{flex:1 1 140px}
.ridge-rhythm-game .hint{font-size:14px;color:var(--mute);margin:10px 0 0}
.ridge-rhythm-game .credit{font-size:12px;color:var(--mute);margin:12px 0 0;border-top:1px solid var(--ridge);padding-top:10px}
.ridge-rhythm-game .set-row{display:grid;gap:6px;padding:10px 0;border-top:1px solid var(--ridge)}
.ridge-rhythm-game .set-row:first-of-type{border-top:0}
.ridge-rhythm-game .set-row label{display:flex;justify-content:space-between;font-weight:600}
.ridge-rhythm-game .set-row output{font-variant-numeric:tabular-nums;color:var(--moon)}
.ridge-rhythm-game .set-row p{margin:0;font-size:14px;color:var(--mute);line-height:1.35}
.ridge-rhythm-game input[type=range]{width:100%;accent-color:var(--moon);height:44px}
.ridge-rhythm-game .toggle{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-top:1px solid var(--ridge);font-weight:600}
.ridge-rhythm-game .toggle small{display:block;font-weight:400;color:var(--mute);font-size:14px}
.ridge-rhythm-game .toggle input{width:22px;height:22px;accent-color:var(--moon);flex:none}
.ridge-rhythm-game .tap-pad{width:100%;min-height:150px;margin:10px 0;display:grid;place-items:center;border:1px dashed var(--mute);font-family:var(--display);font-size:26px;font-weight:800;touch-action:manipulation}
.ridge-rhythm-game .tap-pad.flash{background:rgba(255,217,138,.15)}
.ridge-rhythm-game .res-top{display:flex;gap:18px;align-items:center;flex-wrap:wrap}
.ridge-rhythm-game .rank{font-family:var(--display);font-weight:900;font-size:96px;line-height:.8;color:var(--moon);min-width:1.1em;text-align:center}
.ridge-rhythm-game .res-score{font-family:var(--display);font-weight:800;font-size:40px;line-height:1;font-variant-numeric:tabular-nums}
.ridge-rhythm-game .badge{display:inline-block;margin-top:6px;padding:2px 8px;font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;background:var(--moon);color:var(--night)}
.ridge-rhythm-game .stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:1px;background:var(--ridge);border:1px solid var(--ridge);margin-top:14px}
.ridge-rhythm-game .stats div{background:var(--deep);padding:8px 10px}
.ridge-rhythm-game .stats dt{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--mute)}
.ridge-rhythm-game .stats dd{margin:2px 0 0;font-family:var(--display);font-weight:800;font-size:24px;font-variant-numeric:tabular-nums}
.ridge-rhythm-game .fact{margin:14px 0 0;padding:10px 12px;border-left:3px solid var(--fern);background:rgba(95,211,154,.07);line-height:1.4}
.ridge-rhythm-game .fact b{color:var(--fern)}
@media (max-height:460px){.ridge-rhythm-game .rr-logo{font-size:44px}
.ridge-rhythm-game .lede{display:none}
.ridge-rhythm-game .panel{padding:12px 16px}
.ridge-rhythm-game .mission{padding:5px 8px}
.ridge-rhythm-game .m-name{font-size:18px}
.ridge-rhythm-game .credit{display:none}
.ridge-rhythm-game h2{font-size:24px;margin-bottom:6px}
}
@media (prefers-reduced-motion:reduce){.ridge-rhythm-game .bar>i{transition:none}
}

.ridge-rhythm-game #hud{z-index:3;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:10px 12px;background:linear-gradient(#050a17e8,#050a1766,transparent)}
.ridge-rhythm-game .hud-c{grid-column:1/-1;grid-row:2;padding:0;gap:5px}
.ridge-rhythm-game .hud-r{gap:6px}
.ridge-rhythm-game .hud-label{font-size:12px;letter-spacing:.02em;gap:10px}
.ridge-rhythm-game .icon-btn{min-width:44px;min-height:44px;border-radius:9px;clip-path:none;background:#0b1833d9}
.ridge-rhythm-game .screen{z-index:4;overscroll-behavior:contain;padding:12px;scrollbar-width:thin}
.ridge-rhythm-game .panel{clip-path:none;border-radius:16px;padding:18px;max-width:960px}
.ridge-rhythm-game .panel.narrow{max-width:460px}
.ridge-rhythm-game .menu-grid>div:first-child{display:grid;grid-template-columns:112px minmax(0,1fr);gap:10px;align-items:center}
.ridge-rhythm-game .rr-cover{display:block;width:112px;height:auto;aspect-ratio:16/9;object-fit:cover;border:1px solid #315c77;border-radius:8px;box-shadow:0 8px 24px #0007}
.ridge-rhythm-game .rr-logo{font-size:clamp(32px,8vw,54px);line-height:.95;margin:0}
.ridge-rhythm-game .rr-logo::after{height:2px;opacity:.65}
.ridge-rhythm-game .lede,.ridge-rhythm-game .rr-how{grid-column:1/-1;margin:0}
.ridge-rhythm-game .rr-how summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:700;color:var(--moon)}
.ridge-rhythm-game .rr-how summary::before{content:'+';font-size:20px;min-width:24px}
.ridge-rhythm-game .rr-how[open] summary::before{content:'−'}
.ridge-rhythm-game .how{padding-bottom:10px}
.ridge-rhythm-game .controls .seg{flex:1 1 100%;justify-content:stretch;border-radius:8px;overflow:hidden}
.ridge-rhythm-game .seg button{flex:1;min-height:48px;font-size:16px}
.ridge-rhythm-game .play{min-height:52px;border-radius:8px;clip-path:none;background:linear-gradient(105deg,#ff7a89,#ffd98a 48%,#72d7ff);color:#071326}
.ridge-rhythm-game .ghost{border-radius:8px;min-height:48px}
.ridge-rhythm-game .mission{clip-path:none;border-radius:10px}
.ridge-rhythm-game .mission:hover{border-color:var(--kai)}
.ridge-rhythm-game .mission[aria-pressed="true"]{box-shadow:inset 3px 0 var(--moon)}
.ridge-rhythm-game #prog{width:0}
.ridge-rhythm-game #tapResult,.ridge-rhythm-game #pauseInfo{margin:0}
.ridge-rhythm-game button:disabled{opacity:.5;cursor:default}
@media(min-width:700px){
  .ridge-rhythm-game .menu-grid{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:26px}
  .ridge-rhythm-game .menu-grid>div:first-child{grid-template-columns:1fr;gap:12px}
  .ridge-rhythm-game .rr-cover{width:100%;max-width:240px}
  .ridge-rhythm-game .rr-how{grid-column:1}
  .ridge-rhythm-game #hud{grid-template-columns:1fr minmax(0,2fr) 1fr}
  .ridge-rhythm-game .hud-c{grid-column:auto;grid-row:auto;padding-top:6px}
}
@media(max-height:520px) and (orientation:landscape){
  .ridge-rhythm-game .menu-grid{grid-template-columns:1fr 1.2fr;gap:18px}
  .ridge-rhythm-game .rr-cover{display:none}
  .ridge-rhythm-game .menu-grid>div:first-child{display:block}
  .ridge-rhythm-game .panel{padding:12px}
  .ridge-rhythm-game .mission{min-height:60px;padding:6px 10px}
  .ridge-rhythm-game .controls .seg{flex:1 1 auto}
  .ridge-rhythm-game #hud{grid-template-columns:1fr minmax(0,1.5fr) auto;padding:6px 10px}
  .ridge-rhythm-game .hud-c{grid-column:auto;grid-row:auto}
  .ridge-rhythm-game .hud-label{letter-spacing:0;font-size:12px}
  .ridge-rhythm-game .m-sub{font-size:14px}
}



@media(max-width:699px) and (orientation:portrait){
  .ridge-rhythm-game #menu .menu-grid>div:last-child{display:flex;flex-direction:column}
  .ridge-rhythm-game #menu .controls{order:-1;margin-bottom:14px}
  .ridge-rhythm-game .mission{min-height:64px}
}

/* Restore Kauaʻi: shared Atlas stylesheet, scoped game components. */
.restore-kauai-game{
  --paper:#eef3ee;     
  --card:#ffffff;
  --ink:#14302a;       
  --mute:#58706a;      
  --line:#cfdcd4;      
  --leaf:#2f7a4d;      
  --water:#2484ad;     
  --earth:#9a6a43;     
  --sun:#f0b73e;       
  --lehua:#cf3048;     
  --display:"Bricolage Grotesque","Trebuchet MS",system-ui,sans-serif;
  --body:"Atkinson Hyperlegible",system-ui,"Segoe UI",Roboto,sans-serif;
  color-scheme:light;
}
.restore-kauai-game [hidden]{display:none!important}
.restore-kauai-game button{font:inherit;color:inherit;cursor:pointer;border:0;background:none}
.restore-kauai-game button:focus-visible{outline:3px solid var(--sun);outline-offset:2px}
.restore-kauai-game button:disabled{cursor:not-allowed;opacity:.45}
.restore-kauai-game .app{height:100%;display:grid;grid-template-rows:auto minmax(0,1fr) auto;grid-template-columns:minmax(0,1fr)}
.restore-kauai-game .top{display:flex;align-items:center;gap:12px;padding-block:8px;padding-inline:16px;background:var(--card);border-bottom:1px solid var(--line)}
.restore-kauai-game .brand{font-family:var(--display);font-weight:800;font-size:20px;line-height:1;white-space:nowrap}
.restore-kauai-game .brand span{color:var(--leaf)}
.restore-kauai-game .momona{flex:1;min-width:0;display:grid;gap:3px}
.restore-kauai-game .momona-l{display:flex;justify-content:space-between;font-size:12px;color:var(--mute);gap:8px;white-space:nowrap}
.restore-kauai-game .momona-l{min-width:0}
.restore-kauai-game .momona-l span{overflow:hidden;text-overflow:ellipsis;min-width:0}
.restore-kauai-game .momona-l span:last-child{flex:none}
.restore-kauai-game .momona-l b{color:var(--ink)}
.restore-kauai-game .track{height:8px;background:#dfe8e2;border-radius:4px;overflow:hidden}
.restore-kauai-game .track i{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--leaf),var(--water));border-radius:4px;transition:width .6s ease}
.restore-kauai-game .icon-btn{width:40px;height:40px;display:grid;place-items:center;border:1px solid var(--line);border-radius:10px;flex:none;font-weight:700}
.restore-kauai-game .land{position:relative;min-height:0;overflow:hidden}
.restore-kauai-game #land{position:absolute;inset:0;display:block;width:100%;height:100%;touch-action:manipulation;cursor:pointer}
.restore-kauai-game .dock{background:var(--card);border-top:1px solid var(--line);padding-block:8px calc(env(safe-area-inset-bottom,0px) + 8px);padding-inline:16px;display:grid;gap:8px}
.restore-kauai-game .res{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.restore-kauai-game .res div{display:flex;align-items:center;gap:6px;min-width:0;padding:4px 6px;border-radius:8px;background:var(--paper)}
.restore-kauai-game .res canvas{width:22px;height:22px;flex:none}
.restore-kauai-game .res b{font-variant-numeric:tabular-nums;font-size:16px}
.restore-kauai-game .res small{display:block;font-size:11px;color:var(--mute);line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.restore-kauai-game .res div>span{min-width:0}
.restore-kauai-game .res .bump{animation:rk-resource-bump .5s ease}
@keyframes rk-resource-bump{40%{transform:scale(1.12);background:#fff3d1}}
.restore-kauai-game .acts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.restore-kauai-game .act{min-height:46px;border-radius:12px;font-weight:700;display:grid;place-items:center;padding:4px 6px;line-height:1.15;text-align:center;font-size:14px}
.restore-kauai-game .act small{display:block;font-weight:400;font-size:11px;opacity:.85}
.restore-kauai-game .act.p{background:var(--leaf);color:#fff}
.restore-kauai-game .act.s{background:var(--water);color:#fff}
.restore-kauai-game .act.t{border:1.5px solid var(--leaf);color:var(--leaf)}
.restore-kauai-game .sheet-wrap{position:fixed;inset:0;background:rgba(20,48,42,.38);display:flex;align-items:flex-end;justify-content:center;z-index:5}
.restore-kauai-game .sheet{width:100%;max-width:640px;max-height:92%;overflow-y:auto;background:var(--card);border-radius:18px 18px 0 0;
  padding-block:16px calc(env(safe-area-inset-bottom,0px) + 16px);padding-inline:18px;box-shadow:0 -10px 40px rgba(20,48,42,.18)}
@media (min-width:700px) and (min-height:560px){.restore-kauai-game .sheet-wrap{align-items:center}
.restore-kauai-game .sheet{border-radius:18px}}
.restore-kauai-game .sheet h2{font-family:var(--display);font-weight:800;font-size:24px;line-height:1.1;margin:0;text-wrap:balance}
.restore-kauai-game .eyebrow{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--mute);margin:0 0 4px}
.restore-kauai-game .sheet p{line-height:1.45;margin:8px 0 0;max-width:62ch}
.restore-kauai-game .sheet-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.restore-kauai-game .close{width:36px;height:36px;border-radius:50%;background:var(--paper);font-size:18px;flex:none}
.restore-kauai-game .row-btns{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.restore-kauai-game .btn{min-height:44px;padding:0 18px;border-radius:12px;font-weight:700;background:var(--leaf);color:#fff}
.restore-kauai-game .btn.alt{background:var(--paper);color:var(--ink);border:1px solid var(--line)}
.restore-kauai-game .btn.warn{background:var(--lehua)}
.restore-kauai-game .proj{display:grid;gap:10px;margin-top:12px}
.restore-kauai-game .pj{border:1px solid var(--line);border-radius:14px;padding:12px;display:grid;grid-template-columns:28px minmax(0,1fr);gap:10px}
.restore-kauai-game .pj .n{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font-weight:700;background:var(--paper);color:var(--mute);font-size:14px}
.restore-kauai-game .pj.done .n{background:var(--leaf);color:#fff}
.restore-kauai-game .pj.next{border-color:var(--leaf);box-shadow:0 0 0 1px var(--leaf) inset}
.restore-kauai-game .pj h3{margin:0;font-size:16px}
.restore-kauai-game .pj p{margin:4px 0 0;font-size:14px;color:var(--mute)}
.restore-kauai-game .cost{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px;align-items:center}
.restore-kauai-game .cost span{font-size:13px;padding:3px 8px;border-radius:20px;background:var(--paper);font-variant-numeric:tabular-nums}
.restore-kauai-game .cost span.short{background:#fde6e9;color:#9a1d31}
.restore-kauai-game .cost .btn{min-height:38px;padding:0 14px;margin-left:auto}
.restore-kauai-game .tag{font-size:12px;font-weight:700;color:var(--leaf)}
.restore-kauai-game .item-card{margin-top:12px;padding:12px;border-radius:14px;background:var(--paper)}
.restore-kauai-game .item-card h3{margin:0;font-family:var(--display);font-size:20px}
.restore-kauai-game .item-card p{margin:4px 0 0;font-size:14px;color:var(--mute)}
.restore-kauai-game .parts{display:grid;gap:8px;margin-top:12px}
.restore-kauai-game .part{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;text-align:left;padding:10px 12px;border-radius:12px;border:1.5px solid var(--line);background:var(--card);min-height:48px}
.restore-kauai-game .part[aria-pressed="true"]{border-color:var(--sun);box-shadow:0 0 0 3px rgba(240,183,62,.3)}
.restore-kauai-game .part .pn{font-weight:700}
.restore-kauai-game .part .pd{display:block;font-size:13px;color:var(--mute);font-weight:400}
.restore-kauai-game .part .as{font-size:12px;font-weight:700;padding:4px 8px;border-radius:20px;background:var(--paper);white-space:nowrap}
.restore-kauai-game .part.best{border-color:var(--leaf);background:#eaf6ee}
.restore-kauai-game .part.ok{border-color:var(--sun);background:#fff8e6}
.restore-kauai-game .part.no{border-color:var(--lehua);background:#fdeef0}
.restore-kauai-game .part .why{grid-column:1/-1;font-size:13px;line-height:1.4;color:var(--ink)}
.restore-kauai-game .bins-l{font-size:13px;color:var(--mute);margin:14px 0 6px}
.restore-kauai-game .bins{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
@media (max-width:480px){.restore-kauai-game .bins{grid-template-columns:repeat(3,minmax(0,1fr))}}
.restore-kauai-game .bin{min-height:56px;border-radius:12px;border:1.5px solid var(--line);padding:6px 4px;display:grid;place-content:center;text-align:center;line-height:1.15;font-weight:700;font-size:14px}
.restore-kauai-game .bin small{font-weight:400;font-size:11px;color:var(--mute)}
.restore-kauai-game .bin:not(:disabled):hover{border-color:var(--leaf)}
.restore-kauai-game .gain{margin-top:12px;padding:10px 12px;border-radius:12px;background:#eaf6ee;font-weight:700}
.restore-kauai-game .rlist{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;margin:10px 0 0;font-size:14px}
.restore-kauai-game .rlist dt{font-weight:700}
.restore-kauai-game .rlist dd{margin:0;color:var(--mute)}
.restore-kauai-game #weedWrap{position:fixed;inset:0;z-index:6;background:#2b4a2f;display:grid;grid-template-rows:auto minmax(0,1fr)}
.restore-kauai-game .weed-top{display:flex;gap:12px;align-items:center;justify-content:space-between;padding-block:calc(env(safe-area-inset-top,0px) + 8px) 8px;padding-inline:16px;color:#fff;background:rgba(0,0,0,.25)}
.restore-kauai-game .weed-top b{font-family:var(--display);font-size:22px;font-variant-numeric:tabular-nums}
.restore-kauai-game .weed-key{display:flex;gap:14px;font-size:13px;flex-wrap:wrap}
.restore-kauai-game .weed-key span{white-space:nowrap}
.restore-kauai-game .weed-key i{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:4px;vertical-align:-1px}
.restore-kauai-game #weed{display:block;width:100%;height:100%;touch-action:none}
.restore-kauai-game .toast{position:fixed;left:50%;top:70px;transform:translateX(-50%);background:var(--ink);color:#fff;padding:10px 16px;border-radius:12px;font-weight:700;z-index:220;max-width:calc(100% - 32px);text-align:center;box-shadow:0 8px 24px rgba(0,0,0,.2)}
@media (max-width:480px){.restore-kauai-game .res small{display:none}
.restore-kauai-game .res div{justify-content:center}
.restore-kauai-game .act{font-size:13px}
.restore-kauai-game .act small{display:none}
.restore-kauai-game .brand{font-size:17px}}
@media (prefers-reduced-motion:reduce){.restore-kauai-game .track i{transition:none}
.restore-kauai-game .res .bump{animation:none}}

.restore-kauai-game{position:relative;margin:12px auto;min-height:520px;max-width:1440px;overflow-x:hidden;overflow-y:auto;border:1px solid #759984;border-radius:18px;background:var(--paper);color:var(--ink);font:16px/1.35 var(--body);box-shadow:0 15px 45px #0004;isolation:isolate}
.restore-kauai-game .app{grid-template-rows:auto minmax(160px,1fr) auto auto auto}
.restore-kauai-game h1,.restore-kauai-game h2,.restore-kauai-game h3{color:var(--ink)}
.restore-kauai-game .top{flex-wrap:wrap;gap:12px;padding:12px 16px;background:#f8faf5}
.restore-kauai-game .brand{margin:0;font-size:clamp(20px,2.4vw,28px);line-height:1.1;letter-spacing:-.04em}
.restore-kauai-game .momona{min-width:180px}
.restore-kauai-game .momona-l{font-size:13px;line-height:1.4}
.restore-kauai-game progress{appearance:none;display:block;width:100%;height:9px;margin:2px 0 0;overflow:hidden;border:0;border-radius:10px;background:#dfe8e2;accent-color:var(--leaf)}
.restore-kauai-game progress::-webkit-progress-bar{background:#dfe8e2;border-radius:10px}
.restore-kauai-game progress::-webkit-progress-value{background:linear-gradient(90deg,#368455,#2484ad);border-radius:10px}
.restore-kauai-game progress::-moz-progress-bar{background:linear-gradient(90deg,#368455,#2484ad);border-radius:10px}
.restore-kauai-game .rk-tools{display:flex;gap:6px;margin-left:auto}
.restore-kauai-game .icon-btn{width:auto;min-width:44px;height:44px;padding:8px;border-radius:10px;font-size:14px;background:#fff}
.restore-kauai-game .land{background:#17392e}
.restore-kauai-game .rk-world-caption{position:absolute;bottom:8px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 20px);padding:5px 12px;border-radius:20px;background:#112b24d9;color:#fff3d5;font-size:12px;text-align:center;pointer-events:none}
.restore-kauai-game .rk-land-status{position:absolute;inset:35% 10% auto;color:#fff;text-align:center}
.restore-kauai-game .rk-zones{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:10px 14px;background:#edf3e8}
.restore-kauai-game .rk-zone{position:relative;min-height:64px;display:grid;align-content:center;gap:3px;padding:8px 12px;border:1px solid #b9cdbd;border-radius:10px;background:#fff;text-align:left;box-shadow:0 3px 8px #17392e0c}
.restore-kauai-game .rk-zone>span:first-child{font-size:15px;font-weight:700}
.restore-kauai-game .rk-zone small{font-size:12px;color:var(--mute)}
.restore-kauai-game .rk-zone em{font-style:normal;font-size:12px;font-weight:700;color:#256d3e}
.restore-kauai-game .rk-dots{position:absolute;right:10px;top:10px;font-size:12px;color:var(--leaf);letter-spacing:2px}
.restore-kauai-game .rk-zone.complete{border-color:var(--leaf);background:#e7f4e7}
.restore-kauai-game .rk-next{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 16px;background:#fff8e8;border-top:1px solid #e4dcc6}
.restore-kauai-game .rk-next>div{display:grid;gap:2px;min-width:0}
.restore-kauai-game .rk-next .eyebrow{font-size:11px;letter-spacing:.08em;margin:0;color:#745822}
.restore-kauai-game #stepTitle{font-size:15px;color:#14302a}
.restore-kauai-game #stepDetail{font-size:13px;color:#58706a}
.restore-kauai-game .rk-next .btn{flex:none;padding:8px 14px;max-width:35%}
.restore-kauai-game .dock{padding:10px 16px calc(env(safe-area-inset-bottom,0px) + 10px);gap:10px}
.restore-kauai-game .res div{padding:5px 8px}
.restore-kauai-game .res small{display:block;font-size:12px;line-height:1.2}
.restore-kauai-game .res b{font-size:18px}
.restore-kauai-game .act{min-height:50px;font-size:15px}
.restore-kauai-game .act small{font-size:12px;line-height:1.25}
.restore-kauai-game .btn{min-height:46px}
.restore-kauai-game .sheet-wrap{z-index:150;background:#051b17a6;backdrop-filter:blur(5px)}
.restore-kauai-game .sheet{padding:20px 20px calc(env(safe-area-inset-bottom,0px) + 20px);max-height:90dvh;box-shadow:0 15px 60px #0005}
.restore-kauai-game .sheet h2{font-size:26px}
.restore-kauai-game .close{width:44px;height:44px;display:grid;place-items:center;font-size:26px;line-height:1;color:var(--ink)}
.restore-kauai-game .cost .btn{min-height:44px}
.restore-kauai-game .rk-muted{color:var(--mute);font-size:14px;font-weight:400}
.restore-kauai-game .rk-zone-count.complete{background:var(--leaf);color:#fff}
.restore-kauai-game button.pj{text-align:left;width:100%}
.restore-kauai-game .part:disabled{opacity:1;cursor:default}
.restore-kauai-game .bin{min-height:60px}
.restore-kauai-game .bin small{font-size:12px}
.restore-kauai-game .rk-plant-guide{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0}
.restore-kauai-game .rk-plant-guide>div{display:grid;gap:4px;padding:10px;border:1px solid #c6d8ca;border-radius:12px;background:#edf3e8;text-align:center}
.restore-kauai-game .rk-plant-guide img{width:100%;height:auto;aspect-ratio:16/9;max-width:200px;justify-self:center}
.restore-kauai-game .rk-plant-guide span{font-size:13px;color:var(--mute)}
.restore-kauai-game #weedWrap{position:absolute;z-index:20;grid-template-rows:auto auto minmax(0,1fr);background:#283c28}
.restore-kauai-game .weed-top{display:grid;grid-template-columns:1fr 1fr auto auto auto;padding:10px;gap:8px;background:#14302a}
.restore-kauai-game .weed-top b{font-size:24px}
.restore-kauai-game .weed-top .btn{padding:6px 12px;min-height:44px}
.restore-kauai-game .rk-weed-legend{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:8px;background:#dfe8d6}
.restore-kauai-game .rk-weed-legend span{display:flex;align-items:center;justify-content:center;gap:5px;font-size:12px;font-weight:700;color:#683120}
.restore-kauai-game .rk-weed-legend span.native{color:#1c6138}
.restore-kauai-game .rk-weed-legend img{width:52px;height:auto;aspect-ratio:16/9}
.restore-kauai-game .toast{top:12px;position:absolute;font-size:14px;pointer-events:none}
@media(max-width:600px){
 .restore-kauai-game{border-radius:12px;min-height:650px;margin:8px auto}
 .restore-kauai-game .top{gap:8px;padding:10px}
 .restore-kauai-game .brand{font-size:23px}
 .restore-kauai-game .momona{order:3;flex-basis:100%;min-width:0}
 .restore-kauai-game .rk-tools{gap:4px}
 .restore-kauai-game .rk-zones{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:8px}
 .restore-kauai-game .rk-zone{min-height:58px;padding:8px}
 .restore-kauai-game .rk-zone>span:first-child{font-size:14px}
 .restore-kauai-game .rk-dots{top:8px;right:7px;font-size:10px;letter-spacing:0}
 .restore-kauai-game .rk-next{padding:10px;gap:8px}
 .restore-kauai-game .dock{padding:8px 8px calc(env(safe-area-inset-bottom,0px) + 8px)}
 .restore-kauai-game .res{gap:4px}
 .restore-kauai-game .res div{display:grid;justify-items:center;gap:2px;padding:5px 2px;text-align:center}
 .restore-kauai-game .res div>span{display:flex;align-items:center;gap:4px}
 .restore-kauai-game .res small{font-size:11px}
 .restore-kauai-game .acts{gap:6px}
 .restore-kauai-game .act{font-size:14px;min-height:48px}
 .restore-kauai-game .act small{display:none}
 .restore-kauai-game .rk-world-caption{font-size:11px;padding:4px 8px}
 .restore-kauai-game .weed-top{grid-template-columns:1fr 1fr auto auto}
 .restore-kauai-game #wFinish{grid-column:1/-1}
 .restore-kauai-game .rk-weed-legend{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
 .restore-kauai-game .rk-weed-legend img{width:44px}
}
@media(max-height:550px) and (min-width:601px){.restore-kauai-game{min-height:440px}.restore-kauai-game .top{padding:6px 10px}.restore-kauai-game .rk-zone{min-height:52px}.restore-kauai-game .rk-zones{padding:6px}.restore-kauai-game .rk-world-caption{display:none}}
