.learning-launch {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  background: #233c30ed;
  color: #edf2dc;
  border: 1px solid #779779;
  padding: 9px 13px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 650;
  box-shadow: 0 3px 15px #0003;
}
.learning-backdrop {
  position: fixed;
  inset: 0;
  z-index: 65;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  background: #09150e70;
  padding: 16px;
  backdrop-filter: blur(3px);
}
.learning-panel {
  width: min(660px, 100%);
  background: #18271f;
  color: #e7edde;
  border: 1px solid #789071;
  border-radius: 16px;
  box-shadow: 0 20px 80px #0008;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: Inter, system-ui, sans-serif;
}
.learning-panel header {
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #22382b;
  border-bottom: 1px solid #52674b;
}
.learning-panel h2 {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 28px;
  margin: 3px 0;
}
.learning-panel h3 {
  font-size: 17px;
  font-weight: 650;
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 6px;
}
.learning-panel p {
  font-size: 13px;
  line-height: 1.55;
  margin: 8px 0;
}
.learning-panel small {
  font-size: 11px;
  color: #b4c6a8;
  display: block;
  line-height: 1.5;
}
.learning-panel header small {
  letter-spacing: 0.16em;
}
.learning-panel button:focus-visible,
.learning-panel select:focus-visible {
  outline: 3px solid #e4c77b;
  outline-offset: 3px;
}
.learning-panel nav {
  display: flex;
  gap: 5px;
  padding: 10px 14px;
  border-bottom: 1px solid #425340;
}
.learning-panel nav button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 1;
  padding: 9px 5px;
  border-radius: 7px;
  font-size: 12px;
}
.learning-panel nav button[aria-pressed="true"] {
  background: #e1cd91;
  color: #233226;
}
.learning-body {
  padding: 18px 22px;
  overflow: auto;
  min-height: 0;
}
.learning-goods {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 10px 0;
}
.learning-goods > span {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 2px 5px;
  min-width: 64px;
  padding: 8px;
  background: #2b3b2e;
  border: 1px solid #4e6248;
  border-radius: 9px;
}
.learning-goods small {
  grid-column: 1/-1;
  text-align: center;
  font-size: 10px;
}
.learning-goods b {
  display: grid;
  place-items: center;
}
.learning-goods b img,
.learning-goods b svg {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.learning-goods strong {
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}
.learning-caption {
  color: #bdccb2;
}
.learning-stores-label {
  letter-spacing: 0.12em;
  font-weight: 700;
}
.learning-goods-guide {
  margin: 14px 0 18px;
  padding: 16px;
  border: 1px solid #647c57;
  border-radius: 12px;
  background: #22362b;
}
.learning-goods-guide h3 {
  margin-bottom: 4px;
}
.learning-goods-guide > p {
  color: #d5e3cd;
  margin: 0 0 12px;
}
.learning-goods-key {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
  padding: 0;
}
.learning-goods-key li {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid #536c50;
  border-radius: 9px;
  background: #172a22;
}
.learning-goods-key-icon {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border: 2px solid;
  border-radius: 10px;
  background: #304637;
  font-size: 21px;
  line-height: 1;
}
.learning-goods-key-icon img,
.learning-goods-key-icon svg {
  display: block;
  width: 26px;
  height: 26px;
  object-fit: contain;
}
.learning-goods-key li strong {
  display: block;
  font-size: 13px;
}
.learning-goods-key li small {
  color: #c4d3b9;
}
.learning-goods-steps {
  display: grid;
  gap: 7px;
  margin: 13px 0 9px;
}
.learning-goods-steps > span {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  line-height: 1.4;
}
.learning-goods-steps b {
  display: grid;
  place-items: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #d8c894;
  color: #223226;
}
.learning-goods-steps strong {
  color: #f2de9f;
}
.learning-card {
  background: #223329;
  border: 1px solid #4b6045;
  border-radius: 11px;
  padding: 15px;
  margin: 12px 0;
}
.learning-card.learned {
  border-color: #93b16c;
  background: #304a32;
}
.learning-card label {
  display: block;
  font-size: 12px;
  margin: 12px 0;
}
.learning-card select {
  display: block;
  color: #edf0df;
  background: #17281f;
  border: 1px solid #788d66;
  padding: 9px;
  border-radius: 7px;
  width: 100%;
  margin-top: 5px;
}
.learning-exchange {
  display: flex;
  align-items: center;
  gap: 12px;
}
.learning-exchange label {
  flex: 1;
  min-width: 0;
}
.learning-primary {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  border: 1px solid #ddcb89 !important;
  background: #dccb93 !important;
  color: #263325 !important;
  padding: 11px 15px !important;
  border-radius: 7px;
  margin: 14px 0 5px;
  width: 100%;
  font-weight: 650;
  font-size: 13px;
}
.learning-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.learning-chain {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #2f4232;
  border-radius: 10px;
  padding: 17px;
  margin: 15px 0;
  font-size: 13px;
}
.learning-chain svg {
  flex-shrink: 0;
  width: 18px;
}
.learning-discoveries {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.learning-discoveries .learning-card {
  margin: 0;
}
.learning-discoveries .learning-goods > span {
  min-width: 49px;
  padding: 5px;
}
.learning-discoveries .learning-goods {
  gap: 4px;
}
.learning-scene {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 22px 16px;
  margin: 18px 0;
  border-radius: 12px;
  background: radial-gradient(ellipse at 20% 20%, #567664, #273d31);
}
.learning-scene > svg {
  flex-shrink: 0;
  color: #c4d7a5;
}
.scene-drought {
  background: linear-gradient(135deg, #76592e, #393b28);
}
.scene-flood {
  background: linear-gradient(135deg, #416c7e, #253c37);
}
.learning-options {
  display: grid;
  gap: 9px;
  margin: 12px 0;
}
.learning-options button {
  border: 1px solid #637959;
  border-radius: 9px;
  padding: 13px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}
.learning-options button[aria-pressed="true"] {
  border-color: #e3ca83;
  background: #4f512f;
}
.learning-options button span {
  color: #b9c9ad;
  font-size: 12px;
}
.learning-options button:hover {
  background: #344d39;
}
.learning-text-button {
  font-size: 12px;
  text-decoration: underline;
  color: #c0d0b4;
  padding: 8px 0;
}
.learning-effect {
  display: inline-block;
  border: 1px solid #6e8658;
  background: #334b30;
  padding: 6px 9px;
  border-radius: 6px;
  font-size: 12px;
  margin: 5px 5px 5px 0;
}
.learning-result {
  align-self: center;
  margin: auto;
  width: min(550px, 100%);
  max-height: 90dvh;
}
.learning-panel details {
  margin: 15px 0;
  font-size: 12px;
  color: #b9c9ad;
}
.learning-panel summary {
  cursor: pointer;
}
.map-learning-layers {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 3;
  display: flex;
  gap: 3px;
  background: #16271feb;
  padding: 4px;
  border-radius: 8px;
  border: 1px solid #667b58;
}
.map-learning-layers button {
  padding: 6px 8px;
  font-size: 11px;
  color: #dce8ce;
  border-radius: 5px;
}
.map-learning-layers button[aria-pressed="true"] {
  background: #d8c894;
  color: #283a29;
}
.map-placement-insight {
  position: absolute;
  top: 59px;
  left: 12px;
  z-index: 3;
  width: min(280px, calc(100% - 24px));
  background: #16271ff2;
  border: 1px solid #78906b;
  border-radius: 9px;
  padding: 12px;
  color: #ebeedb;
  font-size: 12px;
  box-shadow: 0 5px 24px #0005;
}
.map-placement-insight strong {
  display: block;
  font-size: 14px;
  margin-bottom: 5px;
}
.map-placement-insight p {
  margin: 5px 0;
}
.map-placement-insight .risk {
  color: #ebc181;
}
.map-placement-insight button {
  background: #deca8a;
  color: #243622;
  padding: 8px;
  width: 100%;
  border-radius: 5px;
  font-weight: 650;
  margin-top: 6px;
}
.map-placement-insight small {
  display: block;
  color: #c2d0b3;
  font-size: 10px;
}
.map-resource-legend {
  position: absolute;
  right: 12px;
  top: 58px;
  z-index: 3;
  width: min(395px, calc(100% - 24px));
  background: #10221df5;
  padding: 11px;
  border: 1px solid #839779;
  border-radius: 10px;
  color: #f0f3e6;
  font-size: 12px;
  box-shadow: 0 7px 25px #0008;
}
.map-good-summary {
  margin: 0 0 8px;
  color: #e2ebd6;
  font-size: 12px;
  line-height: 1.35;
}
.map-good-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.map-good-filter {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 4px 7px;
  border: 1px solid #779271;
  border-radius: 7px;
  background: #2b4032;
  color: #fff7e3;
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
}
.map-good-filter:hover,
.map-good-filter.is-active {
  border-color: #f0d895;
  background: #4b5735;
}
.map-good-filter:focus-visible,
.map-good-help:focus-visible {
  outline: 3px solid #f0d895;
  outline-offset: 2px;
}
.map-good-icon {
  display: block;
  width: 26px;
  height: 26px;
  object-fit: contain;
}
.map-good-count {
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 3px;
  border-radius: 9px;
  background: #14271e;
  color: #f4e2ac;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.map-good-footer {
  margin-top: 8px;
  color: #cddcc4;
  font-size: 11px;
  line-height: 1.4;
}
.map-good-help {
  display: inline-block;
  margin-top: 7px;
  padding: 4px 0;
  color: #f0d895;
  font-size: 11px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
@media (max-width: 600px) {
  .learning-backdrop {
    padding: 6px;
  }
  .learning-panel header {
    padding: 13px;
  }
  .learning-panel h2 {
    font-size: 24px;
  }
  .learning-body {
    padding: 12px;
  }
  .learning-discoveries {
    grid-template-columns: 1fr;
  }
  .learning-goods-key {
    grid-template-columns: 1fr;
  }
  .learning-panel nav {
    padding: 8px 5px;
  }
  .learning-panel nav button {
    font-size: 11px;
    gap: 3px;
  }
  .learning-panel nav svg {
    display: none;
  }
  .learning-launch {
    font-size: 10px;
    padding: 7px;
    top: 8px;
    left: 8px;
  }
  .map-learning-layers {
    top: 43px;
    right: 8px;
  }
  .map-placement-insight {
    top: 87px;
    left: 8px;
    width: 220px;
    padding: 9px;
    font-size: 11px;
  }
  .map-resource-legend {
    top: 83px;
    right: 8px;
    width: min(300px, calc(100% - 16px));
    padding: 8px;
  }
  .map-good-filter {
    min-height: 32px;
    padding: 3px 5px;
    font-size: 10px;
  }
  .map-good-icon {
    width: 23px;
    height: 23px;
  }
  .learning-scene {
    padding: 14px;
    gap: 12px;
  }
  .learning-chain {
    font-size: 12px;
    gap: 6px;
    padding: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .learning-panel * {
    animation: none !important;
    transition: none !important;
  }
}
@media (max-width: 720px) {
  .map-resource-legend:has(.map-good-list) + .map-placement-insight {
    top: 258px;
  }
}
