.game-page {
  background: #f6f0fb;
  min-height: 100vh;
  color: #302444;
}
.game-page button {
  font-family: CloudSans, sans-serif;
}
.game-page #expedition {
  max-width: 1360px;
  margin: auto;
  padding: 20px 30px 36px;
}
.expedition-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #503675;
  font-size: 24px;
  font-weight: 700;
}
.brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.chapter-progress {
  display: flex;
  gap: 12px;
  font-size: 19px;
  color: #8c809a;
}
.chapter-progress span {
  padding: 12px 18px;
  border-radius: 30px;
}
.chapter-progress .current {
  background: #e5d9f2;
  color: #503675;
  font-weight: 700;
}
.chapter-progress .done:before {
  content: "✓ ";
  color: #34775a;
}
.quiet {
  background: transparent;
  border: 1px solid #cfc1df;
  color: #614b7b;
  border-radius: 15px;
  min-height: 52px;
  padding: 10px 20px;
  font-size: 20px;
}
.game-page h1 {
  font-size: 40px;
  line-height: 1.3;
  letter-spacing: -1.4px;
  margin: 10px 0 16px;
  word-break: keep-all;
}
.game-page .instruction,
.game-page .feedback,
.game-page .summary-text {
  font-size: 28px;
  line-height: 1.55;
  word-break: keep-all;
  max-width: 34em;
  margin: 0;
}
.activity-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}
.chapter-kicker {
  font-size: 19px;
  color: #8663ad;
  font-weight: 700;
  letter-spacing: 2px;
}
.activity-title .instruction {
  max-width: 950px;
}
.help {
  align-self: flex-start;
  background: #fff;
  border: 2px solid #d7c8e8;
  border-radius: 18px;
  font-size: 23px;
  color: #6b4c90;
  padding: 14px 23px;
  white-space: nowrap;
}
.help-panel {
  padding: 20px 28px;
  border-radius: 18px;
  background: #eee3f7;
  margin: 15px 0;
  font-size: 28px;
  line-height: 1.5;
}
.scene {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #e6ddec;
  box-shadow: 0 14px 34px #40275213;
}
.scene > img.backdrop {
  width: 100%;
  display: block;
  pointer-events: none;
}
.action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  margin-top: 24px;
}
.game-page .primary {
  font-size: 27px;
  padding: 16px 30px;
  min-height: 64px;
  border-radius: 18px;
  white-space: nowrap;
}
.game-page .primary:disabled {
  opacity: 0.45;
  cursor: default;
  box-shadow: none;
}
.feedback {
  color: #655177;
  min-height: 43px;
}
.feedback.success {
  color: #327153;
}
.welcome {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  align-items: center;
  padding: 45px;
  background: #fffbf4;
  border-radius: 32px;
}
.welcome h1 {
  font-size: 56px;
  line-height: 1.2;
}
.welcome p {
  font-size: 28px;
  line-height: 1.7;
  word-break: keep-all;
}
.welcome .cover-photo {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 26px;
}
.welcome .primary {
  margin-top: 25px;
}
.route-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 25px;
  align-items: center;
}
.route-layout .geo-map {
  aspect-ratio: 1.6;
  background: #cde2e5;
}
.route-layout .geo-map span {
  font-size: 26px;
}
.route-layout .map-north {
  font-size: 26px !important;
}
.route-layout .map-land {
  font-size: 24px;
}
.route-layout .map-place {
  padding: 4px 8px;
  gap: 6px;
}
.route-layout .map-place i {
  width: 9px;
  height: 9px;
}
.sailor {
  position: absolute;
  width: 70px;
  height: 70px;
  object-fit: contain;
  transform: translate(-50%, -100%);
  transition:
    left 1.2s ease-in-out,
    top 1.2s ease-in-out;
  pointer-events: none;
  z-index: 3;
  filter: drop-shadow(0 6px 3px #204b6350);
}
.route-trail {
  position: absolute;
  height: 5px;
  background: #9a72bf;
  transform-origin: left center;
  opacity: 0.6;
  border-radius: 8px;
  pointer-events: none;
}
.compass {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.compass button {
  min-height: 68px;
  border-radius: 16px;
  border: 2px solid #d5c4e7;
  background: #fff;
  color: #60457e;
  font-size: 22px;
  font-weight: 700;
}
.compass button.active {
  background: #7650a5;
  color: white;
  border-color: #7650a5;
}
.compass .center {
  display: grid;
  place-items: center;
  color: #9c86b5;
  font-size: 22px;
}
.compass button:active {
  transform: translateY(2px);
}
.side-caption {
  font-size: 22px;
  text-align: center;
  color: #776488;
  margin-top: 20px;
}
.puzzle-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 26px;
  align-items: center;
}
.puzzle-frame {
  width: 100%;
  aspect-ratio: 1.5;
  border-radius: 25px;
  overflow: hidden;
  background: #d2c1e5;
  position: relative;
}
.puzzle-frame canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  touch-action: manipulation;
}
.puzzle-preview {
  width: 100%;
  border-radius: 16px;
  opacity: 0.9;
}
.puzzle-side p {
  font-size: 25px;
  line-height: 1.5;
}
.photo-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 265px;
  gap: 25px;
}
.photo-space {
  aspect-ratio: 4/3;
  cursor: crosshair;
  touch-action: manipulation;
}
.photo-space .observation-photo {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  transition: filter 0.3s;
}
.reticle {
  position: absolute;
  width: 100px;
  height: 100px;
  border: 4px solid white;
  border-radius: 18px;
  box-shadow:
    0 0 0 2px #604084,
    0 0 0 2000px #1b102124;
  transform: translate(-50%, -50%);
  pointer-events: none;
  display: none;
}
.reticle:before,
.reticle:after {
  content: "";
  position: absolute;
  background: #fff;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.reticle:before {
  width: 20px;
  height: 3px;
}
.reticle:after {
  height: 20px;
  width: 3px;
}
.photo-space .found-mark {
  position: absolute;
  transform: translate(-50%, -50%);
  background: #f4fff6;
  color: #26704a;
  border: 3px solid #53906e;
  border-radius: 100%;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font-size: 26px;
  pointer-events: none;
}
.field-notes {
  border-radius: 24px;
  background: #fffcf5;
  padding: 25px;
  box-shadow: 0 7px 0 #e5d8bd;
  align-self: start;
}
.field-notes h2 {
  font-size: 26px;
  margin: 0 0 20px;
}
.field-notes ol {
  padding: 0;
  list-style: none;
  margin: 0;
}
.field-notes li {
  font-size: 25px;
  line-height: 1.5;
  padding: 15px 0;
  border-bottom: 1px dashed #d5c8de;
  color: #9a8aa7;
}
.field-notes li.found {
  color: #315e49;
}
.field-notes li.current {
  color: #62408d;
  font-weight: 700;
}
.field-notes .stamp {
  font-size: 20px;
  color: #8e76aa;
  display: block;
  margin-top: 18px;
}
.photo-space.flash {
  animation: flash 0.45s;
}
@keyframes flash {
  0% {
    filter: brightness(1);
  }
  35% {
    filter: brightness(1.7);
  }
  100% {
    filter: brightness(1);
  }
}
.capture-button {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}
.capture-button img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.habitat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 245px;
  gap: 24px;
}
.habitat-scene {
  aspect-ratio: 1.5;
}
.habitat-scene .backdrop {
  height: 100%;
  object-fit: cover;
}
.observer {
  position: absolute;
  width: 85px;
  left: 50%;
  top: 80%;
  transform: translate(-50%, -70%);
  transition:
    left 0.7s,
    top 0.7s;
  filter: drop-shadow(0 6px 2px #49335840);
  pointer-events: none;
}
.vantage {
  position: absolute;
  width: 64px;
  height: 64px;
  border: 3px solid #fff;
  border-radius: 100%;
  color: #503079;
  background: #f4edffdb;
  box-shadow: 0 4px 14px #2335;
  font-size: 25px;
  font-weight: 700;
  transform: translate(-50%, -50%);
}
.vantage.selected {
  background: #7652a9;
  color: white;
  border-color: #f7eeff;
}
.viewfinder {
  background: #fefaf3;
  padding: 20px;
  border-radius: 22px;
}
.viewfinder h2 {
  font-size: 25px;
  margin: 0 0 15px;
}
.lens {
  width: 100%;
  height: 160px;
  background-image: url("assets/habitat.webp");
  background-repeat: no-repeat;
  background-size: 300%;
  background-position: 10% 15%;
  border-radius: 15px;
  border: 5px solid #574368;
  transition:
    background-size 0.5s,
    filter 0.4s;
}
.lens[data-alert="true"] {
  filter: blur(5px);
  border-color: #bb7042;
}
.zoom-tools {
  display: flex;
  gap: 8px;
  margin-top: 15px;
}
.zoom-tools button {
  flex: 1;
  border-radius: 12px;
  padding: 12px 4px;
  background: #e8ddf3;
  color: #543c72;
  font-size: 24px;
}
.zoom-tools button[aria-pressed="true"] {
  background: #72509f;
  color: #fff;
}
.viewfinder p {
  font-size: 23px;
  line-height: 1.5;
  margin: 15px 0 0;
}
.bird-state {
  position: absolute;
  left: 5%;
  top: 8%;
  padding: 10px 18px;
  background: #fffaf1ef;
  border-radius: 16px;
  font-size: 23px;
  box-shadow: 0 3px 10px #2832;
  transition: background 0.4s;
}
.bird-state.alert {
  background: #ffe4c9;
}
.cleanup-scene {
  aspect-ratio: 1.7;
  background: #c7bbb1;
}
.cleanup-scene .backdrop {
  height: 100%;
  object-fit: cover;
  object-position: bottom;
}
.litter {
  position: absolute;
  width: 100px;
  height: 100px;
  background: transparent;
  transform: translate(-50%, -50%);
  border-radius: 20px;
  border: 3px solid transparent;
  transition:
    opacity 0.5s,
    transform 0.5s;
}
.litter img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 3px #3527);
}
.litter[aria-pressed="true"] {
  border-color: #f6e7ff;
  background: #bda2df70;
}
.litter.packed {
  opacity: 0;
  transform: translate(350%, -200%) scale(0.1);
  pointer-events: none;
}
.bag-target {
  position: absolute;
  right: 4%;
  bottom: 4%;
  width: 150px;
  height: 165px;
  border: 3px dashed #eee2fb;
  background: #fff9;
  border-radius: 25px;
  color: #513571;
  font-size: 23px;
  font-weight: 700;
}
.bag-target img {
  width: 105px;
  height: 105px;
  object-fit: contain;
  display: block;
  margin: auto;
}
.notebook-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.notebook-card {
  background: #fffcf6;
  padding: 24px;
  border-radius: 24px;
  box-shadow: 0 7px 0 #e5d5c1;
}
.notebook-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 16px;
}
.notebook-card h2 {
  font-size: 29px;
}
.notebook-card p {
  font-size: 28px;
  line-height: 1.5;
  word-break: keep-all;
}
.end-heading {
  text-align: center;
  margin: 30px auto 40px;
}
.end-heading h1 {
  font-size: 48px;
}
.end-heading p {
  font-size: 28px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
[hidden] {
  display: none !important;
}
.reset-panel {
  background: #fffbf5;
  padding: 40px;
  border-radius: 28px;
  max-width: 800px;
  margin: 70px auto;
}
.reset-panel p {
  font-size: 28px;
}
.reset-panel .actions {
  margin-top: 30px;
}
.selected-target {
  outline: 4px solid #d5b178;
}
@media (max-width: 900px) {
  .game-page #expedition {
    padding: 15px 20px 30px;
  }
  .chapter-progress {
    display: none;
  }
  .welcome {
    grid-template-columns: 1fr;
    padding: 30px;
    gap: 25px;
  }
  .welcome .cover-photo {
    height: 300px;
  }
  .welcome h1 {
    font-size: 44px;
  }
  .route-layout {
    grid-template-columns: 1fr;
  }
  .compass {
    max-width: 290px;
    margin: 0 auto;
  }
  .route-layout .geo-map {
    min-height: 380px;
  }
  .puzzle-layout {
    grid-template-columns: 1fr;
  }
  .puzzle-side {
    display: none;
  }
  .photo-workspace {
    grid-template-columns: 1fr;
  }
  .field-notes ol {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
  }
  .field-notes li {
    border: 0;
  }
  .habitat-layout {
    grid-template-columns: 1fr;
  }
  .viewfinder {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    align-items: center;
  }
  .viewfinder .lens {
    grid-row: 1/4;
    height: 170px;
  }
  .viewfinder h2 {
    margin: 0;
  }
  .viewfinder p {
    margin: 0;
  }
  .action-row {
    align-items: stretch;
    flex-direction: column;
  }
  .action-row .primary {
    align-self: flex-end;
  }
  .notebook-grid {
    grid-template-columns: 1fr;
  }
  .notebook-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 20px;
    align-items: center;
  }
  .notebook-card img {
    height: 170px;
    grid-row: 1/3;
  }
  .notebook-card h2,
  .notebook-card p {
    margin: 0;
  }
  .game-page .instruction,
  .game-page .feedback {
    font-size: 28px;
  }
  .game-page h1 {
    font-size: 36px;
  }
  .activity-title {
    align-items: flex-start;
  }
  .cleanup-scene {
    aspect-ratio: 1.25;
  }
  .vantage {
    width: 56px;
    height: 56px;
  }
  .bird-state {
    font-size: 20px;
  }
  .observer {
    width: 65px;
  }
}
@media (max-width: 500px) {
  .brand span {
    font-size: 20px;
  }
  .brand img {
    width: 45px;
    height: 45px;
  }
  .game-page #expedition {
    padding: 12px;
  }
  .quiet {
    font-size: 18px;
    padding: 8px 12px;
  }
  .activity-title {
    display: block;
  }
  .help {
    margin-top: 14px;
    min-height: 52px;
  }
  .game-page h1 {
    font-size: 34px;
  }
  .game-page .instruction {
    font-size: 28px;
  }
  .route-layout .geo-map {
    min-height: 330px;
  }
  .route-layout .geo-map span {
    font-size: 20px;
  }
  .route-layout .map-land {
    font-size: 18px;
  }
  .route-layout .map-sea {
    font-size: 20px;
    left: 45%;
  }
  .route-layout .dokdo {
    left: 66%;
  }
  .puzzle-frame {
    aspect-ratio: 1.25;
  }
  .field-notes {
    padding: 18px;
  }
  .field-notes li {
    font-size: 23px;
  }
  .notebook-card {
    display: block;
  }
  .notebook-card img {
    height: 220px;
  }
  .notebook-card h2 {
    margin: 20px 0 10px;
  }
  .welcome .cover-photo {
    height: 240px;
  }
  .welcome {
    padding: 24px;
  }
  .bird-state {
    font-size: 18px;
    padding: 8px;
  }
  .habitat-scene {
    aspect-ratio: 1.2;
  }
  .viewfinder {
    grid-template-columns: 1fr 1fr;
    padding: 14px;
  }
  .viewfinder h2 {
    font-size: 22px;
  }
  .viewfinder p {
    font-size: 22px;
  }
  .litter {
    width: 80px;
    height: 80px;
  }
  .bag-target {
    width: 105px;
    height: 130px;
  }
  .bag-target img {
    width: 80px;
    height: 80px;
  }
}
.kit-icon {
  display: inline-block;
  width: 100%;
  height: 100%;
  background-image: url("assets/kit.webp");
  background-size: 300% 200%;
  background-repeat: no-repeat;
}
.kit-0 {
  background-position: 0 0;
}
.kit-1 {
  background-position: 50% 0;
}
.kit-2 {
  background-position: 100% 0;
}
.kit-3 {
  background-position: 0 100%;
}
.kit-4 {
  background-position: 50% 100%;
}
.kit-5 {
  background-position: 100% 100%;
}
.capture-button .kit-icon {
  width: 50px;
  height: 50px;
}
.bag-target .kit-icon {
  width: 105px;
  height: 105px;
  display: block;
  margin: auto;
}
.capture-tools {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
}
.litter .kit-icon {
  filter: drop-shadow(0 4px 3px #3527);
}
.geo-map > img.sailor {
  width: 70px;
  height: 70px;
  object-fit: contain;
  position: absolute;
  display: block;
}
.puzzle-layout {
  max-width: 1180px;
}
.puzzle-frame {
  max-height: 570px;
}
.photo-space {
  max-height: 620px;
}
.game-page .scene {
  isolation: isolate;
}
.game-page .observer {
  z-index: 3;
}
.game-page .capture-tools:has(+ .action-row #continue:not([hidden])) {
  display: none;
}
@media (min-width: 901px) {
  .photo-workspace {
    grid-template-columns:
      minmax(0, min(800px, calc((100dvh - 410px) * 1.3333)))
      265px;
    justify-content: space-between;
  }
  .photo-space {
    max-height: none;
  }
  .habitat-layout {
    grid-template-columns:
      minmax(0, min(920px, calc((100dvh - 390px) * 1.5)))
      245px;
    justify-content: space-between;
  }
  .cleanup-scene {
    max-width: min(100%, calc((100dvh - 390px) * 1.7));
    margin: auto;
  }
  .puzzle-layout {
    grid-template-columns:
      minmax(0, min(900px, calc((100dvh - 390px) * 1.5)))
      230px;
    justify-content: space-between;
  }
  .viewfinder p {
    word-break: keep-all;
  }
  .feedback {
    max-width: 29em;
  }
  .bird-state {
    left: 37%;
    top: 7%;
    font-size: 22px;
  }
}
.evidence-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.evidence-photo {
  position: relative;
  background: #fff;
  padding: 7px;
  border-radius: 24px;
  border: 4px solid transparent;
  min-width: 0;
  overflow: hidden;
}
.evidence-photo img {
  width: 100%;
  height: 320px;
  object-fit: contain;
  display: block;
}
.evidence-photo.matched {
  border-color: #61a280;
}
.record-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 24px 0;
}
.record-card {
  display: flex;
  gap: 18px;
  align-items: center;
  text-align: left;
  background: #fffaf1;
  border: 3px solid #d8c8e7;
  border-radius: 20px;
  padding: 22px;
  font-size: 28px;
  color: #38254d;
}
.record-card b {
  display: grid;
  place-items: center;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  background: #eee1f7;
  flex-shrink: 0;
}
.record-card[aria-pressed="true"] {
  border-color: #7952a6;
  box-shadow: 0 0 0 4px #ded1ed;
}
.record-card:disabled {
  background: #e7f0e7;
  border-color: #92bca1;
  opacity: 1;
}
.field-notes li {
  font-size: 28px;
}
.viewfinder p {
  font-size: 26px;
  word-break: keep-all;
}
.side-caption {
  font-size: 26px;
}
@media (max-width: 700px) {
  .evidence-photos,
  .record-choices {
    grid-template-columns: 1fr;
  }
  .evidence-photo img {
    height: 260px;
  }
}
.lens {
  background-position: 10% 0%;
}
.game-page .primary {
  font-size: 28px;
}
.route-layout .geo-map {
  width: 100%;
  min-width: 0;
}
.route-layout .map-place {
  padding: 0;
}
.route-layout .map-place i {
  left: -5px;
  top: -5px;
}
.route-layout .map-place b {
  top: -23px;
  left: 12px;
  padding: 5px 9px;
}
.scene,
.puzzle-frame,
.photo-space,
.field-notes {
  min-width: 0;
}
@media (max-width: 900px) {
  .route-layout,
  .puzzle-layout,
  .photo-workspace,
  .habitat-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .route-layout .geo-map {
    min-height: 0;
    aspect-ratio: 1.6;
  }
}
@media (max-width: 500px) {
  .route-layout .dokdo {
    left: 71.67%;
  }
  .route-layout .ulleung b {
    left: -55px;
    top: -45px;
  }
  .route-layout .dokdo b {
    left: -12px;
    top: 13px;
  }
  .route-layout .map-north {
    font-size: 20px !important;
  }
}
@media (max-width: 500px) {
  .geo-map > img.sailor {
    width: 44px;
    height: 44px;
  }
  .route-layout .ulleung b {
    left: -72px;
    top: 10px;
  }
}

.beak-detail {
  margin: 24px 0 0;
}
.beak-detail > div {
  position: relative;
  width: 100%;
  height: 170px;
  overflow: hidden;
  border-radius: 18px;
  background: #9cb9cb;
}
.beak-detail img.beak-closeup {
  position: absolute;
  width: 600%;
  max-width: none;
  height: auto;
  left: 50%;
  top: 50%;
  transform: translate(-57%, -65%);
}
.beak-detail figcaption {
  font-size: 24px;
  line-height: 1.4;
  margin-top: 12px;
}

.field-notes li,
.beak-detail figcaption {
  word-break: keep-all;
}
.beak-detail figcaption {
  font-size: 24px;
}
.history-notes {
  margin: 48px 0;
}
.history-notes h2 {
  font-size: 34px;
}
.history-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.history-grid article {
  background: #fffcf4;
  border: 2px solid #dfd2eb;
  border-radius: 24px;
  padding: 28px;
}
.history-year {
  font-size: 36px;
  color: #7450a6;
  font-weight: 700;
}
.history-grid h3 {
  font-size: 28px;
}
.history-grid p {
  font-size: 28px;
  line-height: 1.6;
  word-break: keep-all;
}
@media (min-width: 901px) {
  .photo-workspace {
    grid-template-columns: minmax(0, 1fr) 355px;
  }
  .beak-detail > div {
    height: 145px;
  }
}
@media (max-width: 700px) {
  .history-grid {
    grid-template-columns: 1fr;
  }
}
.archive-workspace{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:26px;align-items:start}.archive-page{position:relative;line-height:0;touch-action:manipulation;background:#f7f3e8;border-radius:16px;overflow:hidden;cursor:crosshair}.archive-page>img{display:block;width:100%;height:auto}.archive-selection{position:absolute;width:58px;height:70px;border:3px solid #7746b4;border-radius:8px;transform:translate(-50%,-50%);pointer-events:none;background:#b68ee722}.archive-page.show-column:after{content:'';position:absolute;top:0;bottom:0;left:var(--clue-x);width:8%;transform:translateX(-50%);background:#b48adf33;pointer-events:none}.archive-tools{background:#fffcf5;padding:24px;border-radius:24px}.clue-word{font-size:32px;font-weight:700;margin:0 0 20px;word-break:keep-all}.clue-meaning{font-size:28px;line-height:1.5;word-break:keep-all}.archive-lens{height:210px;position:relative;overflow:hidden;background:#eee8dd;border:2px solid #d7c8e4;border-radius:16px}.archive-lens img{position:absolute;left:50%;top:50%;width:500%;max-width:none;height:auto;transform:translate(-50%,-50%)}.archive-lens span{position:absolute;inset:0;background:#f5eddf;display:grid;place-items:center;padding:20px;font-size:28px;line-height:1.5}.archive-lens span[hidden]{display:none}.archive-tools button{width:100%;font-size:28px}.history-found{font-size:28px;line-height:1.6;list-style:none;padding:0}.archive-conclusion{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:30px}.archive-conclusion>img{width:100%;border-radius:16px}.archive-conclusion p,.archive-conclusion li{font-size:28px;line-height:1.6;word-break:keep-all}.archive-conclusion ul{padding-left:0;list-style:none}.history-choices{display:grid;gap:16px}.history-choices button{display:flex;gap:18px;align-items:center;text-align:left;font-size:28px;background:#fffaf0;border:2px solid #d5c7e4}.history-choices b{display:grid;place-items:center;background:#e8dcf4;min-width:48px;height:48px;border-radius:50%}@media(max-width:900px){.archive-workspace,.archive-conclusion{grid-template-columns:minmax(0,1fr)}.archive-tools{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}.archive-tools .clue-word,.archive-tools .clue-meaning,.archive-tools button{grid-column:1/-1}.archive-lens{grid-column:1/-1;height:240px}.archive-lens img{width:350%}}

.history-reading{background:#fffaf0;padding:36px;border-radius:24px}.history-reading h2,.archive-conclusion h2{font-size:32px}.history-reading p,.history-reading dt,.history-reading dd{font-size:28px;line-height:1.6}.history-reading .history-paraphrase{font-size:36px;font-weight:700;color:#563487}.history-reading dl>div{display:flex;gap:24px;padding:14px 0;border-bottom:1px solid #ddd0e9}.history-reading dt{min-width:110px;font-weight:700}.history-reading dd{margin:0}@media(max-width:600px){.history-reading{padding:24px}.history-reading dl>div{display:block}}

.game-page #expedition.at-welcome{max-width:1680px;padding:18px;min-height:100svh;display:grid;align-items:center}.at-welcome .expedition-header{display:none}.journey-welcome{position:relative;aspect-ratio:16/9;border-radius:28px;overflow:hidden;background:#e8ddfa;box-shadow:0 20px 60px #67449725}.journey-art{display:block;width:100%;height:100%;object-fit:contain}.journey-title{position:absolute;top:24px;left:20px;right:20px;text-align:center;color:#39245d;text-shadow:0 2px 12px #fffc}.journey-title p{font-size:24px;margin:0 0 5px;font-weight:700}.journey-title h1{font-size:clamp(36px,4.7vw,76px);line-height:1.2;margin:0;letter-spacing:-2px}.journey-welcome .journey-enter{font-size:clamp(24px,2.3vw,36px);padding:20px 42px;left:35%;bottom:10%;background:#7446b5;color:white;cursor:pointer}.journey-enter:hover{background:#6435a5}.journey-enter:focus-visible{outline:5px solid #fff;outline-offset:5px}
@media(max-width:600px){.game-page #expedition.at-welcome{padding:12px}.journey-welcome{aspect-ratio:auto;padding-top:110px;padding-bottom:114px}.journey-art{height:auto}.journey-title{top:22px;left:10px;right:10px}.journey-title h1{font-size:32px;letter-spacing:-1.2px}.journey-title p{font-size:20px}.journey-welcome .journey-enter{font-size:23px;padding:18px 24px;left:50%;bottom:30px}}

/* Keep the shutter beside the photograph, immediately after observation notes. */
.photo-workspace{align-items:start}
.photo-workspace .capture-tools{margin-top:20px;justify-content:stretch}
.photo-workspace .capture-tools[hidden]{display:none}
.photo-workspace .capture-button{width:100%;min-height:64px;justify-content:center}
@media(min-width:901px){
 .photo-workspace{grid-template-columns:minmax(0,min(850px,calc((100dvh - 330px)*1.3333))) 355px;justify-content:center;gap:24px}
 .photo-workspace .photo-space{width:100%;height:auto;max-height:none;aspect-ratio:4/3}
}
@media(max-width:900px){
 .photo-workspace .field-notes .capture-tools{margin-top:12px}
}

/* H26: tablet layouts use available space without shrinking text or touch targets. */
.capture-tools[hidden]{display:none!important}
.photo-workspace .field-notes .action-row:has(#continue[hidden]):has(#feedback:empty){display:none}
.photo-workspace .field-notes .action-row{display:block;margin:12px 0}
.photo-workspace .field-notes .action-row #continue{width:100%}
.photo-workspace .field-notes .feedback:empty{display:none}
.photo-workspace .capture-tools{margin:0 0 12px}
.viewfinder .capture-tools{margin:14px 0}
.viewfinder .capture-button{width:100%;justify-content:center}
@media(min-width:701px) and (max-width:1400px){
 .game-page #expedition:not(.at-welcome){padding:16px 24px 24px}
 .expedition-header{margin-bottom:12px}
 .game-page h1{font-size:36px;margin:8px 0 12px}
 .activity-title{margin-bottom:16px}
 .photo-workspace .field-notes{padding:20px}
 .field-notes li{padding:8px 0}
 .field-notes h2{margin-bottom:12px}
 .beak-detail{margin:14px 0 0}
 .archive-tools{padding:18px}
 .archive-tools .clue-word{margin:0 0 12px}
 .archive-tools .clue-meaning{margin:12px 0;line-height:1.4}
 .archive-tools .archive-lens{height:130px}
 .archive-tools .archive-lens span{font-size:26px;padding:12px}
 .viewfinder .lens{height:110px}
 .viewfinder #distance-message{margin:12px 0 0}
}
@media(min-width:701px) and (max-width:900px){
 .photo-workspace{gap:16px}
 .photo-workspace .photo-space{width:min(100%,calc((100dvh - 650px)*1.3333));min-width:360px;justify-self:center;height:auto;max-height:none;aspect-ratio:4/3}
 .photo-workspace .field-notes{display:grid;grid-template-columns:minmax(0,1fr) 210px;gap:8px 18px;width:100%;box-sizing:border-box}
 .photo-workspace .field-notes h2{grid-column:1;grid-row:1}
 .photo-workspace .field-notes .capture-tools,.photo-workspace .field-notes .action-row{grid-column:2;grid-row:1 / span 2;margin:0;align-self:start}
 .photo-workspace .field-notes ol{grid-column:1;grid-row:2;display:block}
 .photo-workspace .field-notes .stamp{grid-column:1;margin-top:0}
 .photo-workspace .beak-detail{grid-column:2;grid-row:3;margin:0}
 .photo-workspace .beak-detail>div{height:90px}
 .photo-workspace .beak-detail figcaption{font-size:24px}
 .habitat-layout{grid-template-columns:minmax(0,1fr) 250px;gap:16px}
 .habitat-layout .viewfinder{display:block}
 .habitat-layout .habitat-scene{align-self:start}
 .habitat-layout .zoom-tools{display:flex;flex-wrap:wrap}
 .archive-workspace{grid-template-columns:minmax(0,1fr);gap:16px}
 .archive-page{width:min(100%,560px);justify-self:center}
 .archive-tools{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:12px 20px}
 .archive-tools .clue-word{grid-column:1;grid-row:1}
 .archive-tools .archive-lens{grid-column:2;grid-row:1 / span 2;height:130px}
 .archive-tools .clue-meaning{grid-column:1;grid-row:2;margin:0}
 .archive-tools #archive-record{grid-column:2;grid-row:3}
}
@media(min-width:701px) and (max-width:1400px){
 .photo-workspace .field-notes li{padding:4px 0}
 .photo-workspace .field-notes .stamp{margin-top:10px}
 .photo-workspace .beak-detail>div{height:90px}
 .photo-workspace .beak-detail figcaption{margin-top:6px}
}
@media(min-width:901px) and (max-width:1400px){
 .photo-workspace{grid-template-columns:minmax(0,min(850px,calc((100dvh - 330px)*1.3333))) 390px}
}
@media(min-width:701px) and (max-width:900px){
 .photo-workspace .field-notes .capture-tools,.photo-workspace .field-notes .action-row{grid-row:1}
 .photo-workspace .beak-detail{grid-row:2 / span 2}
}
.viewfinder .action-row:has(#continue[hidden]):has(#feedback:empty){display:none}
.viewfinder .action-row{display:flex;flex-direction:column-reverse;align-items:stretch;margin:12px 0;gap:12px}
.viewfinder .action-row #continue{padding:16px 12px;white-space:normal;width:100%}

.habitat-layout [hidden]{display:none!important}
.viewfinder .feedback:empty{display:none}
#activity[data-phase="success"] .viewfinder{align-self:start}

/* H28: prioritize the playable scene over site navigation during cleanup. */
.activity-focus .expedition-header,.activity-focus .chapter-kicker{display:none}
.game-page #expedition.activity-focus{max-width:none;padding:16px}
.activity-focus .activity-title{margin-bottom:14px}
.activity-focus .activity-title h1{font-size:32px;margin:0 0 8px}
.activity-focus .activity-title .instruction{font-size:28px;max-width:none}
.activity-focus .cleanup-scene{width:100%;max-width:none;margin:0;aspect-ratio:auto;height:calc(100svh - 195px);min-height:400px}
.activity-focus .cleanup-scene .backdrop{object-position:center bottom}
.activity-focus .litter{width:124px;height:124px}
.activity-focus .litter .kit-icon{width:108px;height:108px}
.activity-focus .action-row{margin-top:12px;gap:16px}
.activity-focus .feedback{font-size:28px}
@media(max-width:700px){.activity-focus .cleanup-scene{height:65svh;min-height:420px}.activity-focus .litter{width:100px;height:100px}.activity-focus .litter .kit-icon{width:86px;height:86px}}
@media(min-width:701px){
 .activity-focus .cleanup-scene{height:calc(100svh - 220px)}
 .activity-focus #activity[data-phase="success"] .cleanup-scene{height:calc(100svh - 280px)}
}
/* Reserve the action row from the start; completion must not add page height. */
@media(min-width:701px){
 .game-page #expedition.activity-focus{height:100dvh;min-height:0;box-sizing:border-box}
 .activity-focus #activity{height:100%;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) 80px;gap:12px}
 .activity-focus .activity-title{grid-row:1;margin:0}
 .activity-focus #activity .cleanup-scene,.activity-focus #activity[data-phase="success"] .cleanup-scene{grid-row:2;height:100%;min-height:0;max-height:none}
 .activity-focus .action-row{grid-row:3;display:flex;flex-direction:row;align-items:center;justify-content:space-between;margin:0;min-height:0}
 .activity-focus .feedback:empty{display:none}
 .activity-focus .action-row #continue{margin-left:auto;width:auto}
 .activity-focus .help-panel:not([hidden]){position:absolute;z-index:10;top:100px;left:24px;right:24px;margin:0;box-shadow:0 8px 28px #30244433}
}

/* H30: explain original records with readable keywords and a stable next action. */
.history-key{color:#663d99;background:#e8dcf6;border-radius:10px;padding:0 6px;box-decoration-break:clone}
.history-intro-screen{height:calc(100dvh - 130px);display:grid;grid-template-rows:auto minmax(0,1fr) 80px;gap:16px}
.history-intro-screen .activity-title{margin:0}
.history-intro-body{display:grid;grid-template-columns:1fr 1fr;gap:28px;min-height:0;overflow:auto;align-items:center}
.record-preview{margin:0;min-width:0;background:#fffcf5;padding:14px;border-radius:24px}
.record-preview img{width:100%;max-height:50dvh;object-fit:contain;display:block}
.record-preview figcaption{font-size:26px;text-align:center;font-weight:700;margin-top:10px;color:#604480}
.record-explainer{min-width:0}
.record-terms{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.record-terms article{background:#fffcf5;border-radius:24px;padding:20px 24px;box-shadow:0 6px 0 #dfd2e8}
.record-terms h2{font-size:40px;color:#6d439d;margin:0 0 10px}
.record-terms p,.record-purpose,.record-question p{font-size:28px;line-height:1.5;margin:0;word-break:keep-all}
.record-purpose{margin:24px 0}
.record-question{display:flex;align-items:center;gap:18px;background:#e9dff5;border-radius:24px;padding:12px 20px}
.record-question img{width:90px;height:100px;object-fit:contain}
.record-question p strong{color:#633b91}
.history-next{display:flex;align-items:center;justify-content:flex-end;min-height:80px;background:#f6f0fb}
.history-intro-screen>.history-reading{min-height:0;overflow:auto;padding:24px;margin:0}
@media(min-width:701px) and (max-width:900px){
 .history-intro-body{grid-template-columns:1fr;gap:18px;align-items:start}
 .record-preview img{max-height:29dvh}
 .record-explainer{display:grid;grid-template-columns:1fr 1fr;gap:16px}
 .record-terms{grid-column:1/-1}
 .record-terms article{padding:16px 20px}
 .record-terms p br{display:none}
 .record-purpose{margin:0}
 .record-question{padding:8px 12px;gap:10px}
 .record-question img{width:60px;height:80px}
}
@media(max-width:700px){.history-intro-screen{height:auto;display:block}.history-intro-body{display:block}.record-explainer{margin-top:20px}.record-terms article{padding:14px}.record-terms h2{font-size:32px}.history-next{position:sticky;bottom:0;margin-top:16px}}

/* H31: a short meaning board instead of a scrolling glossary. */
.history-meaning-board{min-height:0;display:flex;flex-direction:column;justify-content:center;gap:18px}
.meaning-lead{display:flex;align-items:center;justify-content:center;gap:24px}
.meaning-lead img{width:100px;height:110px;object-fit:contain}
.meaning-lead p{font-size:28px;line-height:1.45;margin:0}
.meaning-lead p>strong{font-size:36px;color:#70449f}
.managed-islands{background:#fffaf1;padding:20px 28px;border-radius:28px}
.managed-islands h2{font-size:28px;margin:0 0 16px;text-align:center}
.island-name-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.island-name-cards article{background:#ece2f7;border-radius:22px;min-height:142px;padding:16px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center}
.island-name-cards span{font-size:42px;font-weight:700;color:#623a90}
.island-name-cards article>strong{font-size:28px;margin-top:8px}
.island-name-cards p{font-size:26px;line-height:1.35;margin:8px 0 0;word-break:keep-all}
.island-name-cards .seokdo-card{background:#e4d5f4;box-shadow:inset 0 0 0 3px #b299d0}
.seokdo-card p strong{color:#633893}
.meaning-mission{font-size:28px;line-height:1.5;margin:0;text-align:center;word-break:keep-all}
@media(min-width:701px) and (max-height:820px){.history-meaning-board{gap:10px}.meaning-lead img{width:72px;height:80px}.meaning-lead p br{display:none}.managed-islands{padding:16px 20px}.managed-islands h2{margin-bottom:10px}.island-name-cards article{min-height:120px;padding:12px}}
@media(max-width:700px){.island-name-cards{gap:8px}.island-name-cards span{font-size:30px}.managed-islands{padding:16px 10px}.island-name-cards article{padding:10px}.island-name-cards p{font-size:22px}.meaning-lead{margin-top:20px}}

/* H32: main visual gets the space; short vocabulary notes remain compact. */
.history-meaning-board{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:12px;align-content:start;justify-content:stretch}
.meaning-lead{justify-content:flex-start;gap:0}
.meaning-lead p{font-size:28px;line-height:1.4}
.meaning-lead p>strong{font-size:28px;background:#e8dcf6;padding:2px 8px;border-radius:8px}
.island-gallery{margin:0;min-height:0;display:grid;grid-template-rows:minmax(0,1fr) auto;gap:12px;align-content:center}
.island-gallery>img{width:100%;height:100%;min-height:0;object-fit:contain;border-radius:24px;display:block}
.island-captions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;text-align:center;align-items:start}
.island-captions h2{font-size:36px;color:#60378a;margin:0;line-height:1.2}
.island-captions p{font-size:26px;line-height:1.35;margin:8px 0 0;word-break:keep-all}
.meaning-mission{text-align:left;font-size:28px;line-height:1.4}
@media(min-width:701px) and (max-width:900px){
 .history-meaning-board{gap:18px}
 .island-gallery{grid-template-rows:minmax(0,1fr) auto}
 .island-captions{gap:12px}
 .island-captions h2{font-size:32px}
}

.island-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:minmax(0,1fr);gap:18px}
.island-scene{display:grid;grid-template-rows:minmax(0,1fr) 90px;gap:12px;margin:0;min-height:0;min-width:0}
.island-art{position:relative;overflow:hidden;border-radius:22px;min-height:0;background:#b3d2ea}
.island-art img{position:absolute;width:300%;max-width:none;height:auto;object-fit:contain;left:0;top:50%;transform:translateY(-50%)}
.island-art.panel-1 img{left:-100%}.island-art.panel-2 img{left:-200%}
.island-scene figcaption{text-align:center}
.island-scene h2{font-size:36px;line-height:1.2;color:#60378a;margin:0}
.island-scene p{font-size:26px;line-height:1.3;margin:6px 0 0;word-break:keep-all}
@media(min-width:701px) and (max-width:900px){
 .island-gallery{grid-template-columns:1fr;grid-template-rows:repeat(3,minmax(0,1fr));gap:14px}
 .island-scene{grid-template-columns: minmax(0,1fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr);gap:22px;align-items:stretch}
 .island-scene figcaption{align-self:center;text-align:left}
 .island-art{width:100%;height:100%;justify-self:center}
}

@media(min-width:701px) and (max-width:900px){.island-art{width:auto;max-width:100%;aspect-ratio:1;height:100%;}}

/* H33: explicit historical-to-present name correspondence. */
.record-name{display:block;font-size:26px;font-weight:700;color:#67507c;margin-bottom:8px}.island-scene h2{font-size:32px}.island-scene:last-child figcaption{background:#e8dcf6;border-radius:16px;padding:8px}.island-scene:last-child .record-name{margin-bottom:4px}

/* H35: broad starting region, narrower column only on request/repeated misses. */
.archive-search-area{position:absolute;border:3px dashed #9972bc;background:#d2a9f22b;border-radius:16px;pointer-events:none;box-sizing:border-box}.archive-page.show-column .archive-search-area{border-color:transparent;background:transparent}
/* Release audit: bound tablet workspaces to the available height, not image width. */
.litter.packed{display:none}
@media(min-width:701px){
 #activity[data-step="1"],#activity[data-step="3"],#activity[data-step="4"]{height:calc(100dvh - 116px);min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) 80px;gap:12px}
 #activity[data-step="1"] .activity-title,#activity[data-step="3"] .activity-title,#activity[data-step="4"] .activity-title{margin:0}
 #activity[data-step="3"],#activity[data-step="4"]{grid-template-rows:auto minmax(0,1fr)}
 #activity[data-step="1"]>.action-row{margin:0;min-height:0}
 #activity[data-step="1"] .route-layout{grid-template-columns:minmax(0,1fr) 300px;min-height:0;gap:20px}
 #activity[data-step="1"] .geo-map{width:100%;min-height:0;max-height:100%;aspect-ratio:1.6}
 #activity[data-step="1"] .compass{max-width:none;margin:0}.compass button,.side-caption{font-size:28px}
 .photo-workspace{min-height:0;height:100%;align-items:start}
 .photo-workspace .field-notes{min-height:0}.photo-workspace .field-notes h2{display:none}
 .photo-workspace .photo-space{min-height:0;align-self:start}
 .history-search-screen{height:calc(100dvh - 116px);display:grid;grid-template-rows:auto minmax(0,1fr) 90px;gap:12px;min-height:0}
 .history-search-screen .activity-title{margin:0}.history-search-screen .archive-workspace{height:100%;min-height:0;align-items:start}
 .history-search-screen .archive-page{height:100%;width:auto;max-width:100%;aspect-ratio:955/700;justify-self:center;min-height:0}
 .history-search-screen .archive-page>img{height:100%;width:100%;object-fit:contain}
 .history-search-screen .archive-tools{height:100%;box-sizing:border-box;display:grid;grid-template-rows:auto minmax(100px,1fr) auto auto;gap:12px}
 .history-search-screen .archive-tools .clue-word,.history-search-screen .archive-tools .clue-meaning{margin:0}
 .history-search-screen .archive-lens{height:100%}.history-search-screen #history-feedback{margin:0;min-height:0}
}
@media(min-width:701px) and (max-width:900px){
 .photo-workspace{grid-template-rows:minmax(0,1fr) auto;gap:12px}
 .photo-workspace .photo-space{width:auto;min-width:0;height:100%;max-width:100%;aspect-ratio:4/3;justify-self:center}
 .photo-workspace .field-notes{padding:14px 18px}
 .history-search-screen .archive-workspace{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto}
 .history-search-screen .archive-tools{height:auto;grid-template-columns:minmax(0,1fr) 230px;grid-template-rows:auto auto auto}
 .history-search-screen .archive-tools .clue-word{grid-row:1}.history-search-screen .archive-tools .archive-lens{grid-column:2;grid-row:1/span 2;height:120px}
 .history-search-screen .archive-tools .clue-meaning{grid-column:1;grid-row:2}.history-search-screen .archive-tools #archive-record{grid-column:2;grid-row:3}
}
.game-page .jurisdiction figcaption span,.game-page .jurisdiction figcaption p,.game-page .jurisdiction-heading>span,.photo-workspace .beak-detail figcaption,.archive-tools .archive-lens span{font-size:28px}

/* H48: each substantial semantic choice has its own illustration. */
.dokdo-card-art{display:block;position:relative;width:100px;height:100px;overflow:hidden;border-radius:16px;flex:none}
.dokdo-card-art>img{position:absolute!important;width:400%!important;height:300%!important;max-width:none!important;object-fit:fill!important;border:0!important;border-radius:0!important}
.record-terms article{display:flex;align-items:center;gap:12px}
.record-terms article h2{margin:0 0 6px}
.record-terms article p{margin:0}
.history-choices button{display:flex;align-items:center;text-align:left;gap:12px;min-height:110px}
.history-choices button .dokdo-card-art{width:88px;height:88px}
.record-card .dokdo-card-art{width:100px;height:100px}
.history-grid article{display:flex;align-items:center;gap:16px}
@media(max-height:800px){.record-terms .dokdo-card-art{width:74px;height:74px}.history-choices button .dokdo-card-art{width:72px;height:72px}.history-choices button{min-height:90px}}

/* Keep the facsimile, explanation and choices readable without nested scrolling. */
.history-intro-body{overflow:visible;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.record-explainer{display:flex;flex-direction:column;gap:12px;min-height:0}
.record-terms{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.record-terms article{min-width:0;padding:12px;flex-direction:column;align-items:flex-start;gap:8px}
.record-terms article .dokdo-card-art{width:64px;height:64px}
.record-terms h2{font-size:32px;line-height:1.2;white-space:nowrap}
.record-terms p{font-size:28px;line-height:1.3}
.record-purpose{margin:0;line-height:1.4}
.record-question{padding:8px 12px;display:block}
.record-question>img{display:none}
.record-question p{font-size:28px;line-height:1.3}
.history-conclusion-screen{height:calc(100dvh - 130px);display:grid;grid-template-rows:auto minmax(0,1fr) 100px;gap:12px}
.history-conclusion-screen .activity-title{margin:0}
.history-conclusion-screen .archive-conclusion{min-height:0;align-items:center}
.history-conclusion-screen .archive-conclusion>img{height:100%;min-height:0;object-fit:contain}
.history-conclusion-screen .archive-conclusion>div{min-width:0}
.history-conclusion-screen ul{margin:0 0 12px;display:grid;gap:4px}
.history-conclusion-screen li{font-size:28px;line-height:1.3}
.history-conclusion-screen .history-next{gap:16px;justify-content:space-between}
.history-conclusion-screen #history-feedback{font-size:28px;line-height:1.3;margin:0;color:#28644c;flex:1}
.history-conclusion-screen .history-next button{flex:none;font-size:28px}
.history-notes{margin:16px 0}
.history-grid article{padding:20px}
.history-grid .dokdo-card-art{width:80px;height:80px}
.history-grid p{margin:12px 0;line-height:1.4}
@media(min-width:701px) and (max-width:900px){
 .history-intro-body{grid-template-columns:1fr;grid-template-rows:minmax(0,.85fr) minmax(0,1.15fr);gap:12px}
 .record-preview{height:100%;min-height:0}.record-preview img{height:calc(100% - 42px);max-height:none}
 .record-explainer{display:grid;grid-template-columns:1fr 1fr;gap:12px}
 .record-terms{grid-column:1/-1}.record-terms article{flex-direction:row;align-items:center}
 .record-question{align-self:center}
 .history-conclusion-screen .archive-conclusion{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:16px}
 .history-conclusion-screen .history-next{align-items:center}
}

.history-intro-body .record-preview{height:100%;min-height:0;display:flex;flex-direction:column}.history-intro-body .record-preview img{min-height:0;flex:1;height:0;max-height:none}.record-preview figcaption{flex:none}

.history-preview-notebook{height:calc(100dvh - 130px);display:grid;grid-template-rows:auto minmax(0,1fr) 66px;gap:12px}.history-preview-notebook .end-heading{margin:0}.history-preview-notebook .end-heading h1{margin:8px 0;font-size:36px;line-height:1.2}.history-preview-notebook .end-heading p{margin:8px 0;font-size:28px;line-height:1.3}.history-preview-notebook .history-notes{min-height:0;margin:0;display:flex;flex-direction:column;gap:10px}.history-preview-notebook .history-notes h2{margin:0;font-size:30px}.history-preview-notebook .history-grid{min-height:0;flex:1}.history-preview-notebook .history-year{font-size:30px}.history-preview-notebook .history-notes>button{align-self:flex-start}.history-preview-notebook .action-row{margin:0;min-height:0}

#activity:has(>.evidence-photos){height:calc(100dvh - 130px);display:grid;grid-template-rows:auto minmax(0,1fr) 120px 80px;gap:12px}#activity:has(>.evidence-photos) .activity-title{margin:0}.evidence-photos{min-height:0;height:100%;margin:0}.evidence-photo{min-height:0;height:100%;display:flex;align-items:center;justify-content:center}.evidence-photo img{width:100%;height:100%;max-height:100%;object-fit:contain;display:block}.record-choices{margin:0;min-height:0}.record-card{min-height:0;padding:12px}.record-card .dokdo-card-art{width:80px;height:80px}#activity:has(>.evidence-photos) .action-row{margin:0;min-height:0}
/* Help is an overlay; revealing a hint must not become a fourth grid row. */
.history-search-screen{position:relative}
.history-search-screen #history-help-text:not([hidden]){position:absolute;z-index:20;top:146px;left:16px;right:16px;margin:0;box-shadow:0 8px 28px #30244433}

/* A clue explanation and its result must share the viewport without covering capture. */
.history-search-screen{grid-template-rows:auto minmax(0,1fr) auto}
.history-search-screen .archive-tools{min-height:0;grid-template-rows:auto minmax(60px,1fr) auto auto}
.history-search-screen .archive-lens{min-height:0}
.history-search-screen #history-feedback:empty{display:none}
.history-search-screen #history-feedback{font-size:28px;line-height:1.3}
@media(orientation:portrait){.history-search-screen .archive-tools{grid-template-rows:auto auto auto}}
@media(min-width:901px){
 .history-preview-notebook .history-grid:has(article:nth-child(3)){grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
 .history-preview-notebook .history-grid:has(article:nth-child(3)) article{flex-direction:column;align-items:flex-start;justify-content:center;gap:12px;padding:16px}
 .history-preview-notebook .history-grid:has(article:nth-child(3)) p{margin:8px 0}
}

@media(min-width:901px){
 .history-preview-notebook .end-heading h1 br{display:none}
 .history-preview-notebook .history-grid:has(article:nth-child(3)) .dokdo-card-art{width:64px;height:64px}
 .history-preview-notebook .history-grid:has(article:nth-child(3)) article{gap:8px}
 .history-preview-notebook .history-grid:has(article:nth-child(3)) p{margin:4px 0}
}

/* A photo observation route keeps puzzle fluency from gating the lesson. */
.puzzle-alternative{font-size:24px;min-height:48px;flex:none}
.puzzle-photo-route{display:grid;grid-template-rows:minmax(0,1fr) auto;gap:10px;min-height:0}.puzzle-photo-route figure{margin:0;min-height:0;position:relative;overflow:hidden}.puzzle-photo-route img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;opacity:1}.puzzle-photo-choices{display:flex;justify-content:center;gap:16px}.puzzle-photo-choices button{min-height:48px;font-size:28px;padding:8px 30px}

/* v3: historical evidence and an interactive population comparison. */
.sealion-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:clamp(12px,2vw,24px);align-items:stretch;max-height:calc(100vh - 240px)}
.sealion-source{margin:0;display:flex;flex-direction:column;min-width:0;background:#f7f2e8;border:2px solid #dacfbf;border-radius:20px;padding:12px;overflow:hidden}.sealion-source img{width:100%;height:100%;min-height:0;object-fit:contain}.sealion-source figcaption{font-size:clamp(15px,1.5vw,20px);color:#524a47;text-align:center}.sealion-evidence{background:#fff;border:2px solid #e4d9f1;border-radius:20px;padding:clamp(12px,1.8vw,22px);min-width:0}.sealion-evidence h2{font-size:clamp(22px,2.4vw,30px);margin:0 0 6px;color:#35234e}.sealion-evidence p{font-size:clamp(18px,1.8vw,24px);line-height:1.35;margin:8px 0}.sealion-bars{display:grid;gap:8px}.sealion-bars div{display:grid;grid-template-columns:5em 1fr 4.5em;gap:8px;align-items:center;font-size:clamp(18px,1.7vw,24px)}.sealion-bars i{display:block;width:var(--bar);height:24px;background:#7454b5;border-radius:5px}.sealion-bars div+div i{background:#de8b68}.sealion-answers{display:flex;gap:10px;flex-wrap:wrap}.sealion-answers button{font-size:clamp(20px,2vw,28px);min-height:48px;padding:10px 16px}.sealion-context{color:#4d4260}
@media(max-width:700px){.sealion-layout{grid-template-columns:1fr;max-height:none}.sealion-source{max-height:200px}.sealion-evidence h2{font-size:22px}.sealion-evidence p,.sealion-bars div{font-size:18px}.sealion-answers button{font-size:20px}}

/* Keep evidence and choice visually central, including at tablet sizes. */
.sealion-evidence{display:flex;flex-direction:column;justify-content:center;gap:clamp(6px,1.2vh,16px)}
.sealion-evidence p,.sealion-bars div{font-size:28px;line-height:1.3}.sealion-evidence h2{font-size:30px}.sealion-bars{gap:14px}.sealion-bars i{height:32px}.sealion-answers{margin-top:4px}.sealion-answers button{font-size:28px;line-height:1.25;min-height:56px}.sealion-source figcaption{font-size:20px}
@media(max-width:700px){.sealion-evidence p,.sealion-bars div{font-size:22px}.sealion-evidence h2{font-size:24px}.sealion-answers button{font-size:22px}.sealion-source figcaption{font-size:17px}}
