.stage-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(620px, 100%);
  margin: 0 auto 14px;
  padding: 9px 15px;
  border: 3px solid #fff;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffd95a, #ff9d38);
  color: #56330a;
  box-shadow: 0 5px 0 #b7651d;
  font-weight: 900;
}

.county-office-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 11px 18px 12px;
  border-bottom: 3px solid #b8d6c5;
  background: #e5f5e9;
}

.county-office-tabs button {
  min-height: 49px;
  border: 3px solid #fff;
  border-radius: 16px;
  background: #fff;
  color: #28654f;
  box-shadow: 0 4px 0 #9fc6ae;
  font-weight: 1000;
  cursor: pointer;
}

.county-office-tabs button.active {
  transform: translateY(3px);
  background: linear-gradient(135deg, #ffe67c, #ffb849);
  color: #5f3b0a;
  box-shadow: 0 1px 0 #c07820;
}

.mission-card.county-slides-mode {
  width: min(1080px, 97vw);
  overflow: hidden;
}

.mission-card.county-slides-mode .mission-instruction,
.mission-card.county-slides-mode .mission-footer {
  display: none;
}

.mission-card.county-slides-mode .mission-stars { display: none; }

.mission-card.county-slides-mode .mini-game-area {
  display: block;
  min-height: 0;
  padding: 12px 18px 18px;
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 220, 92, .28) 0 3%, transparent 3.5%),
    radial-gradient(circle at 91% 83%, rgba(91, 201, 164, .2) 0 3%, transparent 3.5%),
    #f8fff7;
}

.county-slide-viewer {
  width: min(960px, 100%);
  margin: 0 auto;
}

.county-slide-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 36px;
  padding: 2px 4px 8px;
  color: #24584a;
  font-weight: 1000;
}

.county-slide-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.county-slide-meta b {
  flex: 0 0 auto;
  padding: 5px 11px;
  border-radius: 999px;
  background: #226f59;
  color: #fff;
}

.county-slide-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: clamp(180px, calc(94vh - 405px), 540px);
  border: 5px solid #fff;
  border-radius: 22px;
  background: #eef2f4;
  box-shadow: 0 7px 0 #9ebaaa, 0 13px 28px rgba(37, 76, 65, .18);
}

.county-slide-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.county-slide-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 50px;
  height: 74px;
  border: 3px solid #fff;
  background: rgba(21, 87, 69, .86);
  color: #fff;
  font-size: 45px;
  line-height: 1;
  cursor: pointer;
}

.county-slide-arrow.previous { left: 10px; border-radius: 18px 8px 8px 18px; }
.county-slide-arrow.next { right: 10px; border-radius: 8px 18px 18px 8px; }
.county-slide-arrow:disabled { opacity: .22; cursor: default; }

.county-slide-controls {
  display: grid;
  grid-template-columns: 92px 1fr 92px;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.county-slide-controls > button,
.county-slide-open {
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  background: #28785f;
  color: #fff;
  box-shadow: 0 4px 0 #15503e;
  font-weight: 1000;
  cursor: pointer;
}

.county-slide-controls > button:disabled {
  filter: grayscale(.7);
  opacity: .38;
  cursor: default;
}

.county-slide-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.county-slide-dots button {
  width: 13px;
  height: 13px;
  padding: 0;
  border: 2px solid #57a088;
  border-radius: 50%;
  background: #d4eadf;
  cursor: pointer;
}

.county-slide-dots button.active {
  transform: scale(1.25);
  background: #ffc548;
  border-color: #d17d1c;
}

.county-slide-open {
  display: block;
  width: fit-content;
  min-height: auto;
  margin: 12px auto 2px;
  padding: 9px 16px;
  background: #5269c9;
  box-shadow: 0 4px 0 #344798;
  text-decoration: none;
}

.library-hub-portal .portal-ring {
  background: linear-gradient(145deg, #d9f7ff, #5d8fff 58%, #7453cf);
  box-shadow: 0 0 0 7px rgba(139, 191, 255, .38), 0 0 28px #d9f7ff;
}

.library-card {
  width: min(1120px, 97vw);
  height: min(900px, 95vh);
  overflow: hidden;
  border: 7px solid #fff;
  border-radius: 34px;
  background: #fffaf0;
  box-shadow: 0 22px 0 rgba(5, 37, 40, .4), 0 28px 70px rgba(0, 0, 0, .42);
}

.library-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 102px;
  padding: 15px 85px;
  border-radius: 25px 25px 0 0;
  border-bottom: 5px solid #315a9c;
  background: linear-gradient(135deg, #477ed2, #7657c9);
  color: #fff;
  text-align: center;
}

.library-header small { color: #fff3a6; font-weight: 1000; }
.library-header h2 { margin: 1px 0 0; font-size: clamp(27px, 3vw, 40px); }
.library-header-icon { font-size: 48px; filter: drop-shadow(0 5px 0 rgba(0,0,0,.16)); }
.library-character { position: absolute; right: 27px; top: 28px; font-size: 37px; }

.library-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 13px 18px;
  background: #eaf1ff;
  border-bottom: 3px solid #cad9f3;
}

.library-tabs button {
  min-height: 52px;
  border: 3px solid #fff;
  border-radius: 16px;
  background: #fff;
  color: #355278;
  box-shadow: 0 4px 0 #b4c6df;
  font-weight: 1000;
  cursor: pointer;
}

.library-tabs button.active {
  transform: translateY(3px);
  background: linear-gradient(135deg, #ffe47a, #ffb24c);
  color: #603c0b;
  box-shadow: 0 1px 0 #c37a23;
}

.library-panel {
  height: calc(100% - 181px);
  overflow: auto;
  padding: 20px;
  background:
    radial-gradient(circle at 12% 9%, rgba(255, 220, 91, .23) 0 3%, transparent 3.5%),
    radial-gradient(circle at 91% 25%, rgba(103, 207, 184, .19) 0 3%, transparent 3.5%),
    #fffaf0;
}

.library-intro {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 17px;
  padding: 14px 18px;
  border: 3px solid #fff;
  border-radius: 20px;
  background: linear-gradient(135deg, #dff8df, #dff1ff);
  box-shadow: 0 5px 0 #b4cfbb;
}

.library-intro > span { font-size: 38px; }
.library-intro h3 { margin: 0 0 3px; color: #26624d; }
.library-intro p { margin: 0; font-size: 14px; font-weight: 800; }

.book-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.book-card {
  display: grid;
  grid-template-columns: 85px 1fr;
  align-items: center;
  gap: 13px;
  min-height: 170px;
  padding: 15px;
  border: 3px solid #fff;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 6px 0 #dbcfae, 0 9px 18px rgba(72, 58, 35, .1);
}

.book-card.featured-book { grid-column: 1 / -1; grid-template-columns: 125px 1fr; background: linear-gradient(135deg, #fff4c9, #e7f5ff); }
.book-card img { width: 100%; max-height: 165px; border: 3px solid #fff; border-radius: 12px; object-fit: cover; box-shadow: 0 5px 12px rgba(0,0,0,.18); }
.book-emoji { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 23px; background: linear-gradient(145deg, #e5f7ff, #e8ddff); font-size: 43px; }
.book-kind { display: inline-block; padding: 4px 8px; border-radius: 8px; background: #e4f0ff; color: #315b91; font-size: 11px; font-weight: 1000; }
.book-card h3 { margin: 6px 0 3px; color: #274b6f; font-size: 20px; }
.book-card p { margin: 3px 0; color: #495a5d; font-size: 13px; font-weight: 700; line-height: 1.45; }
.book-card a, .reader-actions a { display: inline-block; margin-top: 7px; color: #2b65ad; font-size: 13px; font-weight: 1000; }
.book-action, .quiz-feedback button {
  margin-top: 8px;
  border: 0;
  border-radius: 12px;
  padding: 9px 13px;
  background: linear-gradient(#ffc64b, #f28b2f);
  color: #573207;
  box-shadow: 0 4px 0 #b85a21;
  font-weight: 1000;
  cursor: pointer;
}

.library-note { margin: 18px 2px 4px; color: #667477; font-size: 12px; font-weight: 700; }

.story-reader-head {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 17px;
  align-items: center;
  margin-bottom: 16px;
  padding: 16px;
  border: 3px solid #fff;
  border-radius: 22px;
  background: linear-gradient(135deg, #fff0c5, #e7f3ff);
  box-shadow: 0 6px 0 #c8b98f;
}

.story-reader-head img { width: 100%; border: 3px solid #fff; border-radius: 12px; box-shadow: 0 5px 12px rgba(0,0,0,.18); }
.story-reader-head h3 { margin: 6px 0 3px; color: #3c4d76; font-size: 25px; }
.story-reader-head p { margin: 4px 0; font-size: 14px; font-weight: 750; }
.reader-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.reader-actions a { padding: 8px 11px; border-radius: 11px; background: #fff; text-decoration: none; box-shadow: 0 3px 0 #bdc9d8; }
.story-pdf { display: block; width: 100%; height: max(520px, 60vh); border: 5px solid #fff; border-radius: 20px; background: #dbe3ea; box-shadow: 0 7px 0 #8394a5; }

.quiz-shell {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 23px;
  border: 5px solid #fff;
  border-radius: 28px;
  background: linear-gradient(160deg, #f2edff, #e3f8ef);
  box-shadow: 0 9px 0 #87a9a2, 0 14px 30px rgba(32, 74, 78, .16);
  text-align: center;
}

.quiz-top { display: flex; justify-content: space-between; color: #53607d; font-weight: 1000; }
.quiz-top b { color: #694db4; }
.quiz-progress { height: 13px; margin: 9px 0 14px; overflow: hidden; border: 2px solid #fff; border-radius: 20px; background: #cfd8d7; }
.quiz-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #66c792, #ffd355); transition: width .3s; }
.quiz-mascot { font-size: 50px; }
.quiz-shell h3 { margin: 6px auto 18px; max-width: 620px; color: #2a4653; font-size: clamp(20px, 2.3vw, 29px); line-height: 1.35; }
.quiz-options { display: grid; gap: 10px; }
.quiz-options button { display: flex; align-items: center; gap: 12px; min-height: 57px; padding: 8px 15px; border: 3px solid #fff; border-radius: 17px; background: #fff; color: #314b52; box-shadow: 0 4px 0 #b6c9c5; font-size: 17px; font-weight: 1000; text-align: left; cursor: pointer; }
.quiz-options button span { display: grid; place-items: center; flex: 0 0 35px; height: 35px; border-radius: 50%; background: #6d82cf; color: #fff; }
.quiz-options button.correct { background: #caffc5; border-color: #7ddd71; }
.quiz-options button.wrong { background: #ffd7d0; border-color: #f18f7f; }
.quiz-feedback { min-height: 49px; margin-top: 15px; padding: 12px; border-radius: 15px; background: rgba(255,255,255,.72); color: #56656a; font-weight: 900; }
.quiz-feedback b { display: block; font-size: 18px; }
.quiz-feedback p { margin: 5px 0; line-height: 1.45; }
.quiz-feedback.correct { background: #e1ffdb; color: #276443; }
.quiz-feedback.wrong { background: #fff2cf; color: #76531c; }
.quiz-result { width: min(650px, 100%); margin: 40px auto; padding: 35px; border: 5px solid #fff; border-radius: 30px; background: linear-gradient(150deg, #fff0a6, #dff8e7); box-shadow: 0 9px 0 #b9a95b; text-align: center; }
.quiz-result > div { font-size: 77px; }
.quiz-result p { margin: 0; color: #51735d; font-weight: 1000; }
.quiz-result h3 { margin: 6px; color: #4d3e73; font-size: 37px; }
.quiz-result strong { display: block; margin-bottom: 10px; }

.stage-banner b {
  padding: 4px 9px;
  border-radius: 10px;
  background: #fff;
  color: #17624d;
}

.memory-stage-1 {
  grid-template-columns: repeat(2, minmax(120px, 180px));
}

.memory-stage-2 {
  grid-template-columns: repeat(3, minmax(105px, 165px));
}

.memory-stage-3 {
  grid-template-columns: repeat(4, minmax(90px, 140px));
}

.memory-stage-4 {
  grid-template-columns: repeat(5, minmax(82px, 125px));
}

.memory-stage-5 {
  grid-template-columns: repeat(6, minmax(72px, 110px));
}

.memory-stage-4 .memory-card > span,
.memory-stage-5 .memory-card > span {
  font-size: 38px;
}

.memory-card .front {
  grid-template-rows: 1fr auto;
  align-content: center;
  gap: 2px;
  padding: 8px 4px;
}

.memory-card .front b {
  font-size: 40px;
  line-height: 1;
}

.memory-card .front small {
  max-width: 100%;
  color: #234a43;
  font-size: 11px;
  font-weight: 1000;
  line-height: 1.1;
  letter-spacing: -.05em;
  overflow-wrap: anywhere;
}

.rhythm-stage {
  flex-wrap: wrap;
}

.arirang-audio-player {
  display: grid;
  grid-template-columns: minmax(180px, .8fr) minmax(260px, 1.2fr);
  align-items: center;
  gap: 13px;
  margin: 0 auto 14px;
  padding: 10px 14px;
  border: 3px solid #fff;
  border-radius: 18px;
  background: linear-gradient(135deg, #f4e9ff, #d9efff);
  box-shadow: 0 5px 0 #8e79b3;
}

.arirang-audio-player > div {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.arirang-audio-player b {
  color: #4b2b73;
  font-size: 14px;
}

.arirang-audio-player small {
  margin-top: 3px;
  color: #626b7d;
  font-size: 11px;
  font-weight: 800;
}

.arirang-audio-player audio {
  width: 100%;
  height: 38px;
}

.market-game-wrap {
  width: min(820px, 100%);
}

#marketCanvas {
  display: block;
  width: 100%;
  height: auto;
  border: 5px solid #fff;
  border-radius: 25px;
  background: #f7e9bc;
  box-shadow: 0 8px 0 #8a542a;
  touch-action: none;
}

.market-controls {
  display: grid;
  grid-template-columns: 150px 1fr 150px;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 1000;
  color: #4c3b23;
}

.market-controls button {
  border: 3px solid #fff;
  border-radius: 15px;
  padding: 10px 14px;
  background: linear-gradient(#f1a33e, #d96527);
  color: #fff;
  font-weight: 1000;
  box-shadow: 0 5px 0 #91401f;
  cursor: pointer;
  touch-action: none;
}

.market-controls button:active,
.market-controls button.pressed {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #91401f;
}

.firefly-cave {
  --darkness: .9;
  position: relative;
  width: min(760px, 100%);
  height: 360px;
  overflow: hidden;
  border: 6px solid #b89161;
  border-radius: 34px;
  background:
    radial-gradient(circle at 18% 70%, #9b71dc 0 3%, transparent 4%),
    radial-gradient(circle at 80% 66%, #6fcdf6 0 4%, transparent 5%),
    radial-gradient(ellipse at 50% 82%, #f1c44f 0 6%, #86532e 28%, #3a3040 59%, #151927 100%);
  box-shadow: inset 0 0 65px #03040a, 0 9px 0 #3c2b27;
  isolation: isolate;
}

.firefly-cave::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(0, 0, 0, .55), transparent 22% 75%, rgba(0, 0, 0, .56)),
    radial-gradient(ellipse at 50% 112%, transparent 18%, rgba(0, 0, 0, .68) 72%);
}

.firefly-cave::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: rgba(1, 5, 13, var(--darkness));
  pointer-events: none;
  transition: background .45s;
}

.firefly-cave[data-stage="2"] {
  background:
    radial-gradient(circle at 25% 65%, #75d7ff 0 4%, transparent 5%),
    radial-gradient(circle at 76% 52%, #b488ff 0 5%, transparent 6%),
    radial-gradient(ellipse at 50% 82%, #67b6c3 0 5%, #493a72 30%, #22213f 62%, #111321 100%);
}

.firefly-cave[data-stage="3"] {
  background:
    radial-gradient(circle at 25% 72%, #ffe773 0 5%, transparent 6%),
    radial-gradient(circle at 73% 66%, #ffb94c 0 5%, transparent 6%),
    radial-gradient(ellipse at 50% 82%, #ffd54f 0 8%, #9b5c29 30%, #4b2d36 62%, #17131e 100%);
}

.cave-crystals {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  color: #a4e5ff;
  font-size: 62px;
  letter-spacing: 28px;
  text-shadow: 0 0 20px #61d7ff, 0 0 45px #9b6cff;
}

.cave-stage {
  position: absolute;
  z-index: 6;
  left: 18px;
  top: 15px;
  width: auto;
  margin: 0;
}

.cave-message {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 74px;
  transform: translateX(-50%);
  width: max-content;
  max-width: 88%;
  padding: 8px 15px;
  border: 2px solid rgba(255,255,255,.68);
  border-radius: 14px;
  background: rgba(12,17,29,.72);
  color: #fff;
  font-weight: 900;
  text-align: center;
}

.cave-light-meter {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  padding: 7px 14px;
  border-radius: 13px;
  background: rgba(255,255,255,.9);
  color: #43304f;
  font-weight: 1000;
}

.firefly {
  position: absolute;
  z-index: 7;
  width: 62px;
  height: 54px;
  border: 0;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 0 9px #fff95a);
  animation: fireflyDrift 2s ease-in-out infinite alternate;
  transition: left .35s, top .35s, opacity .2s;
  touch-action: manipulation;
}

.firefly i,
.firefly i::after {
  position: absolute;
  content: "";
  top: 11px;
  width: 25px;
  height: 19px;
  border-radius: 70% 20% 70% 25%;
  background: rgba(223,250,255,.88);
  box-shadow: 0 0 8px #dffcff;
}

.firefly i {
  left: 3px;
  transform: rotate(25deg);
}

.firefly i::after {
  left: 28px;
  top: 0;
  transform: scaleX(-1) rotate(5deg);
}

.firefly span {
  position: absolute;
  left: 26px;
  top: 18px;
  width: 16px;
  height: 22px;
  border-radius: 50%;
  background: #fff45c;
  box-shadow: 0 0 10px #fff, 0 0 24px #fff21e, 0 0 45px #ffd51d;
}

.firefly.caught {
  animation: none;
  transform: scale(1.8);
  opacity: .12;
  pointer-events: none;
}

.cave-bat {
  position: absolute;
  z-index: 7;
  width: 66px;
  height: 55px;
  border: 0;
  background: transparent;
  filter: drop-shadow(0 4px 5px rgba(0,0,0,.8));
  font-size: 43px;
  cursor: pointer;
  animation: batDart 1.1s ease-in-out infinite alternate;
  transition: left .25s, top .25s, opacity .2s;
}

.cave-bat.hit {
  pointer-events: none;
  opacity: .15;
  transform: rotate(25deg) scale(.5);
}

@keyframes fireflyDrift {
  to { transform: translate(var(--dx), var(--dy)) rotate(12deg); }
}

@keyframes batDart {
  to { transform: translate(var(--dx), var(--dy)) scaleX(-1) rotate(-8deg); }
}

@media (max-width: 760px) {
  .county-office-tabs { gap: 5px; padding: 7px 8px 9px; }
  .county-office-tabs button { min-height: 44px; padding: 5px; font-size: 11px; }
  .mission-card.county-slides-mode { width: 98vw; }
  .mission-card.county-slides-mode .mini-game-area { padding: 9px; }
  .county-slide-meta { min-height: 31px; padding-bottom: 6px; font-size: 11px; }
  .county-slide-meta b { padding: 4px 8px; }
  .county-slide-frame { height: auto; aspect-ratio: 16 / 9; border-width: 3px; border-radius: 14px; box-shadow: 0 4px 0 #9ebaaa; }
  .county-slide-arrow { width: 34px; height: 54px; border-width: 2px; font-size: 34px; }
  .county-slide-arrow.previous { left: 5px; }
  .county-slide-arrow.next { right: 5px; }
  .county-slide-controls { grid-template-columns: 69px 1fr 69px; gap: 5px; margin-top: 10px; }
  .county-slide-controls > button { min-height: 38px; font-size: 11px; }
  .county-slide-dots { gap: 4px; }
  .county-slide-dots button { width: 9px; height: 9px; border-width: 1px; }
  .county-slide-open { margin-top: 10px; padding: 8px 12px; font-size: 11px; }
  .library-card { height: 97vh; border-width: 4px; border-radius: 24px; }
  .library-header { min-height: 76px; padding: 9px 55px; border-radius: 18px 18px 0 0; }
  .library-header-icon, .library-character { display: none; }
  .library-header h2 { font-size: 24px; }
  .library-header .close-button { left: 10px; top: 11px; }
  .library-tabs { gap: 4px; padding: 8px 6px; }
  .library-tabs button { min-height: 49px; padding: 4px; font-size: 10px; }
  .library-panel { height: calc(100% - 141px); padding: 11px; }
  .library-intro { padding: 10px; }
  .library-intro > span { font-size: 28px; }
  .library-intro h3 { font-size: 16px; }
  .library-intro p { font-size: 11px; }
  .book-grid { grid-template-columns: 1fr; gap: 12px; }
  .book-card, .book-card.featured-book { grid-column: auto; grid-template-columns: 70px 1fr; min-height: 145px; padding: 11px; }
  .book-card.featured-book { grid-template-columns: 82px 1fr; }
  .book-emoji { width: 62px; height: 62px; font-size: 34px; }
  .book-card h3 { font-size: 17px; }
  .book-card p { font-size: 11px; }
  .story-reader-head { grid-template-columns: 74px 1fr; gap: 10px; padding: 10px; }
  .story-reader-head h3 { font-size: 19px; }
  .story-reader-head p { font-size: 11px; }
  .reader-actions a { padding: 6px 8px; font-size: 10px; }
  .story-pdf { height: 60vh; border-width: 3px; }
  .quiz-shell { padding: 14px; border-width: 3px; }
  .quiz-shell h3 { font-size: 19px; }
  .quiz-options button { min-height: 49px; font-size: 14px; }
  .quiz-feedback { font-size: 12px; }
  .quiz-result { margin: 20px auto; padding: 24px 14px; }
  .quiz-result > div { font-size: 58px; }
  .quiz-result h3 { font-size: 29px; }
  .stage-banner { gap: 6px; padding: 6px 9px; font-size: 11px; }
  .arirang-audio-player { grid-template-columns: 1fr; gap: 5px; padding: 7px 9px; }
  .arirang-audio-player audio { height: 32px; }
  .market-controls { grid-template-columns: 95px 1fr 95px; gap: 5px; }
  .market-controls button { padding: 8px 5px; font-size: 11px; }
  .market-controls span { font-size: 9px; }
  .memory-stage-1 { grid-template-columns: repeat(2, minmax(90px, 125px)); }
  .memory-stage-2 { grid-template-columns: repeat(3, minmax(76px, 105px)); }
  .memory-stage-3 { grid-template-columns: repeat(4, minmax(60px, 82px)); gap: 7px; }
  .memory-stage-3 .memory-card > span { font-size: 31px; }
  .memory-stage-4 { grid-template-columns: repeat(5, minmax(49px, 66px)); gap: 5px; }
  .memory-stage-5 { grid-template-columns: repeat(6, minmax(42px, 56px)); gap: 4px; }
  .memory-stage-4 .memory-card > span,
  .memory-stage-5 .memory-card > span { border-width: 3px; font-size: 25px; }
  .memory-card .front b { font-size: 27px; }
  .memory-card .front small { font-size: 8px; }
  .firefly-cave { height: 310px; }
  .cave-stage { left: 8px; top: 8px; }
  .cave-message { top: 62px; font-size: 12px; }
  .cave-crystals { font-size: 42px; letter-spacing: 14px; }
}
