/* Drawn Cartoon Game UI Kit — Thick Ink Outlines (#2B1B12), Wooden Signboards, Zero Emojis */

/* Shared Glossy Game Buttons */
.gbtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 56px;
  min-height: 56px;
  padding: 0 20px;
  border-radius: 20px;
  border: 3.5px solid var(--ink);
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #23190F;
  font-weight: 750;
  line-height: 1.3;
  
  overflow: hidden;
  transition: transform 0.08s ease;
}


.gbtn:active {
  transform: translateY(4px) scale(0.97);
}

.gbtn-orange {
  background: linear-gradient(180deg, var(--orange-light) 0%, var(--orange-mid) 100%);
  box-shadow: 0 6px 0 var(--orange-dark), 0 8px 16px rgba(0, 0, 0, 0.25);
}
.gbtn-orange:active { box-shadow: 0 2px 0 var(--orange-dark); }

.gbtn-green {
  background: linear-gradient(180deg, var(--green-light) 0%, var(--green-mid) 100%);
  box-shadow: 0 6px 0 var(--green-dark), 0 8px 16px rgba(0, 0, 0, 0.22);
}
.gbtn-green:active { box-shadow: 0 2px 0 var(--green-dark); }

.gbtn-blue {
  background: linear-gradient(180deg, var(--blue-light) 0%, var(--blue-mid) 100%);
  box-shadow: 0 6px 0 var(--blue-dark), 0 8px 16px rgba(0, 0, 0, 0.22);
}
.gbtn-blue:active { box-shadow: 0 2px 0 var(--blue-dark); }

.gbtn-wood {
  background: linear-gradient(180deg, var(--wood-light) 0%, var(--wood-mid) 100%);
  box-shadow: 0 5px 0 var(--wood-dark);
}
.gbtn-wood:active { box-shadow: 0 2px 0 var(--wood-dark); }

.gbtn-round {
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: 50%;
}

.gbtn-sm {
  min-width: 44px;
  min-height: 44px;
  height: 44px;
  padding: 0 12px;
  border-radius: 14px;
  font-size: 0.96rem;
}

.gbtn-round.gbtn-sm { width: 44px; height: 44px; padding: 0; }
.gbtn img { width: 26px; height: 26px; }
.gbtn-sm img { width: 22px; height: 22px; }

/* Wooden Signboard & Cream Paper Panels */
.wood-panel {
  background: linear-gradient(180deg, #E2974F 0%, #B86728 100%);
  border: 4px solid var(--ink);
  border-radius: 22px;
  box-shadow: inset 0 4px 0 rgba(255, 240, 200, 0.45), 0 6px 0 var(--wood-dark);
  padding: 12px;
}

.paper-panel {
  background: var(--cream);
  border: 3.5px solid var(--ink);
  border-radius: 18px;
  box-shadow: inset 0 3px 0 #FFFFFF, 0 4px 0 rgba(43, 27, 18, 0.22);
  padding: 12px 14px;
}

/* Mascot Avatar with Equipable Costume Overlay */
.mascot-figure {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.mascot-figure .mascot-body {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: idleBob 2.4s ease-in-out infinite;
}

.mascot-figure .mascot-costume {
  position: absolute;
  top: -12px;
  left: 50%;
  width: 78%;
  translate: -50% 0;
  pointer-events: none;
  animation: idleBob 2.4s ease-in-out infinite;
}

.mascot-figure .mascot-costume.costume-default { display: none; }

.mascot-figure .mascot-costume.costume-pilot {
  top: 6px;
  width: 76%;
}

.mascot-figure.mood-happy .mascot-body,
.mascot-figure.mood-happy .mascot-costume {
  animation: happyBounce 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mascot-figure.mood-oops .mascot-body,
.mascot-figure.mood-oops .mascot-costume {
  animation: oopsWobble 0.45s ease;
}

@keyframes idleBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes happyBounce {
  0%   { transform: translateY(0) scale(1); }
  45%  { transform: translateY(-14px) scale(1.14); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes oopsWobble {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-12deg); }
  75% { transform: rotate(12deg); }
}

/* ==================== TITLE SCENE ==================== */
.title-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 28px 20px 44px;
}

.title-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: slowPan 18s ease-in-out infinite alternate;
}

@keyframes slowPan {
  from { transform: scale(1.02); }
  to   { transform: scale(1.1); }
}

.title-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.18) 0%, rgba(15, 23, 42, 0.1) 50%, rgba(15, 23, 42, 0.65) 100%);
}

.title-top-bar {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.title-logo-box {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: 12px;
}

.title-ribbon {
  position: relative;
  width: 310px;
  margin: 0 auto 8px;
}

.title-ribbon img { display: block; width: 100%; height: 66px; }

.title-ribbon-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 9px;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
}

.title-main-heading {
  margin: 0;
  font-size: 2.75rem;
  line-height: 1.1;
  color: #FFFDF7;
  font-weight: 900;
  paint-order: stroke fill;
  -webkit-text-stroke: 4px #291C19;
  text-shadow: 0 3px 0 var(--ink), 0 12px 24px rgba(0, 0, 0, 0.35);
}

.title-mascot-spot {
  position: relative;
  z-index: 2;
  width: 168px;
  height: 168px;
  margin: 8px auto;
}

.title-mascot-spot .mascot-figure {
  width: 168px;
  height: 168px;
}

.title-cta-stack {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.title-play-btn {
  width: 260px;
  height: 68px;
  font-size: 1.65rem;
  border-radius: 26px;
  animation: pulseBtn 1.8s ease-in-out infinite;
}

@keyframes pulseBtn {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

/* ==================== VERTICAL WORLD MAP SCENE ==================== */
.map-shell {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.map-hud-top {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.hud-counter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 44px;
  padding: 0 12px 0 8px;
  border-radius: 999px;
  background: var(--cream);
  border: 3px solid var(--ink);
  box-shadow: 0 4px 0 rgba(43, 27, 18, 0.35);
  font-size: 1.05rem;
  color: var(--ink);
}

.hud-counter img { width: 26px; height: 26px; }

.map-hud-right {
  display: flex;
  gap: 6px;
}

.map-pan-area {
  width: 100%;
  position: absolute;
  top: 106px;
  bottom: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  touch-action: pan-y;
}
.map-pan-area::-webkit-scrollbar { display: none; }

.map-canvas {
  position: relative;
  width: 390px;
  height: 1560px;
}

.map-bg-img {
  position: absolute;
  inset: 0;
  width: 390px;
  height: 1560px;
  object-fit: cover;
}

.map-zone-sign {
  position: absolute;
  translate: 0 -58px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, #E2974F, #B86728);
  border: 3.5px solid var(--ink);
  box-shadow: 0 4px 0 var(--wood-dark);
  color: #FFF8E7;
  font-size: 1rem;
  text-shadow: 0 2px 0 var(--ink);
  white-space: nowrap;
  z-index: 5;
}

.map-node {
  position: absolute;
  width: 82px;
  height: 82px;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.map-node:active { transform: translate(-50%, -46%) scale(0.94); }

.map-node-plate {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 20px;
  padding: 2px 8px;
  height: 32px;
  flex: none;
}

.map-node-plate img {
  width: 25px;
  height: 24px;
  object-fit: contain;
}

.map-node-num {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

.map-node.is-next .map-node-plate {
  animation: pulseBtn 1.3s ease-in-out infinite;
}

.map-node-label {
  margin-top: 2px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--cream);
  border: 2.5px solid var(--ink);
  font-size: 0.72rem;
  white-space: nowrap;
  color: var(--ink);
  box-shadow: 0 2px 0 rgba(43, 27, 18, 0.35);
}

.map-node-stars {
  display: flex;
  gap: 2px;
  background: #FFF3D5;
  border-radius: 10px;
  padding: 1px 4px;
  margin-top: 2px;
}

.map-node-stars img { width: 16px; height: 16px; }

.map-mascot-pin {
  position: absolute;
  z-index: 15;
  transform: translate(0, -85%);
  pointer-events: none;
}

.map-mascot-pin .mascot-figure {
  width: 42px;
  height: 42px;
}

/* ==================== STAGE SCENE (FIXED 390x844) ==================== */
.stage-layout {
  position: relative;
  width: 390px;
  height: 844px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.stage-bg-full {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.15);
}

.stage-bg-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0.16) 28%, rgba(15, 23, 42, 0.18) 72%, rgba(15, 23, 42, 0.65) 100%);
}

/* Top HUD 56px */
.stage-hud {
  position: relative;
  z-index: 15;
  height: 56px;
  padding: 6px 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-shrink: 0;
}

.hearts-row {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(43, 27, 18, 0.65);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  padding: 4px 8px;
}

.hearts-row img {
  width: 24px;
  height: 24px;
  transition: transform 0.25s ease;
}

.hearts-row img.heart-break {
  animation: oopsWobble 0.4s ease;
}

.stage-progress {
  color: white;
  white-space: nowrap;
  background: rgba(43, 27, 18, 0.82);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  padding: 6px 10px;
}

/* Mascot Speech Strip (~74px) */
.stage-mascot-row {
  position: relative;
  z-index: 12;
  min-height: 84px;
  padding: 8px 9px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.speech-bubble {
  position: relative;
  flex: 1;
  min-height: 52px;
  padding: 8px 12px;
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: 0 4px 0 rgba(43, 27, 18, 0.35);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.speech-bubble::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 18px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-right: 10px solid var(--ink);
}

.speech-text {
  grid-column: 1;
  font-size: 0.95rem;
  line-height: 1.55;
  font-weight: 600;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.step-tag {
  grid-column: 1 / -1;
  justify-self: start;
  font-weight: 750;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--gold-light);
  border: 2px solid var(--ink);
  font-size: 0.68rem;
  color: var(--ink);
}

/* Central Interactive Play Arena */
.play-arena {
  position: relative;
  z-index: 10;
  flex: 1;
  width: 100%;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Bottom Wooden Thumb Tray (~196px) */
.thumb-tray {
  position: relative;
  z-index: 15;
  min-height: 176px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #D98A42 0%, #9E541E 100%);
  border-top: 4px solid var(--ink);
  box-shadow: inset 0 4px 0 rgba(255, 240, 200, 0.45);
  padding: 12px 8px 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Draggable / Interactive Tokens */
.drag-token {
  position: relative;
  min-width: 74px;
  min-height: 74px;
  padding: 8px 12px;
  border-radius: 18px;
  background: var(--cream);
  border: 3.5px solid var(--ink);
  box-shadow: 0 5px 0 rgba(43, 27, 18, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: grab;
  touch-action: none;
  z-index: 20;
  transition: box-shadow 0.12s ease;
}

.drag-token.is-dragging {
  cursor: grabbing;
  z-index: 60;
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.4);
}

.drag-token img { width: 36px; height: 36px; flex: none; object-fit: contain; }
.drag-token .tok-label {
  flex: 1;
  text-align: start;
  line-height: 1.55;
  font-weight: 600;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.drag-token .tok-sub { font-size: 0.72rem; color: #6B5344; text-align: center; }

.drop-zone {
  position: relative;
  border: 3.5px dashed var(--gold-light);
  border-radius: 20px;
  background: rgba(255, 248, 231, 0.88);
  box-shadow: inset 0 0 0 2px rgba(43, 27, 18, 0.15);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.drop-zone.drop-hover {
  transform: scale(1.06);
  background: #FFF3B0;
  border-style: solid;
  border-color: var(--orange-mid);
}

.drop-zone.drop-ok {
  border-style: solid;
  border-color: var(--green-dark);
  background: #DCFCE7;
}

/* Decode Round (Term Block Snap) */
.decode-term-board {
  width: 100%;
  text-align: center;
}

.decode-title-word {
  font-size: 1.7rem;
  color: var(--ink);
  margin: 0 0 8px;
}

.decode-parts-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 10px;
}

.decode-part-chip {
  background: #FFF3B0;
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  padding: 5px 10px;
  font-size: 0.82rem;
}

.decode-part-chip strong {
  display: block;
  font-size: 0.96rem;
  color: var(--orange-dark);
}

.decode-drop-slot {
  width: 100%;
  min-height: 72px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.98rem;
  color: var(--wood-dark);
}

.tray-cards-col {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tray-card-wide {
  width: 100%;
  min-height: 68px;
  flex-direction: row;
  justify-content: flex-start;
  padding: 10px;
  gap: 10px;
  text-align: left;
}

/* Sentence Banner inside Stage */
.stage-sentence-card {
  width: 100%;
  background: rgba(255, 248, 231, 0.95);
  border: 3.5px solid var(--ink);
  border-radius: 18px;
  padding: 10px 12px;
  text-align: center;
  box-shadow: 0 4px 0 rgba(43, 27, 18, 0.35);
}

.stage-sentence-main {
  font-family: var(--font-en);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
}

.stage-sentence-sub {
  font-size: 0.85rem;
  color: #6B5344;
  margin-top: 2px;
}

.inline-slot {
  display: inline-block;
  min-width: 62px;
  padding: 1px 8px;
  border-radius: 10px;
  border: 2.5px dashed var(--orange-mid);
  background: #FFF3C4;
  color: var(--orange-dark);
}

.inline-slot.filled {
  border-style: solid;
  border-color: var(--green-dark);
  background: #DCFCE7;
  color: var(--green-dark);
}

/* ==================== RESULT SCENE ==================== */
.result-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 20px 16px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
}

.result-stars-row {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.result-stars-row img {
  width: 64px;
  height: 64px;
  animation: starPopSlam 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.result-stars-row img:nth-child(2) { animation-delay: 0.18s; width: 76px; height: 76px; margin-top: -10px; }
.result-stars-row img:nth-child(3) { animation-delay: 0.36s; }

@keyframes starPopSlam {
  from { opacity: 0; transform: scale(2.4) rotate(-25deg); }
  to   { opacity: 1; transform: scale(1) rotate(0deg); }
}

.result-rewards-strip {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.reward-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 1.15rem;
  box-shadow: 0 4px 0 rgba(43, 27, 18, 0.35);
}

.reward-pill img { width: 30px; height: 30px; }

.result-aha-card {
  position: relative;
  z-index: 2;
  width: 100%;
  flex: 1;
  margin: 12px 0;
  overflow-y: auto;
  scrollbar-width: none;
}
.result-aha-card::-webkit-scrollbar { display: none; }

.result-aha-title {
  margin: 0 0 6px;
  font-size: 1.25rem;
  color: var(--orange-dark);
}

.result-aha-term {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 10px;
  background: #FFF3B0;
  border: 2px solid var(--ink);
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.result-aha-desc {
  margin: 0 0 10px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink);
}

.result-ex-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #FFFFFF;
  border: 2px solid #E2D4B7;
  border-radius: 12px;
  padding: 7px 10px;
  margin-bottom: 6px;
}

.result-ex-en {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--blue-dark);
}

.result-ex-kr {
  font-size: 0.78rem;
  color: #6B5344;
}

.result-btn-row {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  gap: 8px;
  justify-content: center;
}

/* ==================== OVERLAY MODALS (INSIDE 9:16 SHELL) ==================== */
.shell-modal {
  position: absolute;
  inset: 0;
  z-index: 70;
  background: rgba(15, 23, 42, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.shell-modal-box {
  width: 100%;
  max-height: 760px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.shell-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.25rem;
  
}

.shell-modal-body {
  overflow-y: auto;
  max-height: 620px;
  padding-right: 2px;
  scrollbar-width: none;
}
.shell-modal-body::-webkit-scrollbar { display: none; }

.sticker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.sticker-cell {
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-height: 82px;
}

.sticker-cell.locked { opacity: 0.55; background: #CBD5E1; }
.sticker-cell img { width: 44px; height: 44px; }
.sticker-cell span { font-size: 0.68rem; text-align: center; line-height: 1.1; }

.costume-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.costume-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 10px;
}

.costume-row img { width: 52px; height: 44px; object-fit: contain; }
.costume-info { flex: 1; }
.costume-info h4 { margin: 0; font-size: 1rem; }
.costume-info p { margin: 2px 0 0; font-size: 0.78rem; color: #6B5344; }

/* Floating Arcade Score Label inside 9:16 Shell */
.fx-float-label {
  position: absolute;
  z-index: 85;
  pointer-events: none;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: #FFE56B;
  -webkit-text-stroke: 1.5px var(--ink);
  text-shadow: 0 3px 0 var(--ink);
  transform: translate(-50%, -50%);
  animation: fxFloatUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes fxFloatUp {
  0%   { opacity: 0; transform: translate(-50%, -10%) scale(0.6); }
  25%  { opacity: 1; transform: translate(-50%, -60%) scale(1.18); }
  100% { opacity: 0; transform: translate(-50%, -160%) scale(0.95); }
}

.shake-anim { animation: oopsWobble 0.35s ease; }

/* ==================== DICTIONARY & LEVEL ISLAND SWITCHER STYLES ==================== */
.dict-shell {
  width: 390px;
  height: 844px;
  display: flex;
  flex-direction: column;
  padding: 10px;
  gap: 8px;
  background: linear-gradient(180deg, #5CC8FF 0%, #E0F7FF 100%);
}

.dict-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 18px;
  flex-shrink: 0;
}

.dict-header-title {
  font-size: 1.2rem;
  color: #FFF8E7;
  text-shadow: 0 2px 0 var(--ink);
}

.dict-controls {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex-shrink: 0;
}

.dict-sort-row {
  display: flex;
  gap: 8px;
}

.dict-search {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  border: 3px solid var(--ink);
  background: #FFFFFF;
  font-family: var(--font-display);
  font-size: 0.94rem;
  color: var(--ink);
  outline: none;
}

.dict-filter-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.dict-filter-strip::-webkit-scrollbar { display: none; }

.dict-chip {
  flex: 0 0 auto;
  min-width: 44px;
  height: 36px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--cream);
  border: 2.5px solid var(--ink);
  font-size: 0.84rem;
  color: var(--ink);
  box-shadow: 0 3px 0 rgba(43, 27, 18, 0.25);
}

.dict-chip.active {
  background: var(--gold-light);
  border-color: var(--ink);
  transform: translateY(-1px);
}

.dict-list-scroll {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 2px;
  touch-action: pan-y;
  scrollbar-width: none;
}
.dict-list-scroll::-webkit-scrollbar { display: none; }

.dict-row {
  width: 100%;
  min-height: 76px;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--cream);
  border: 3px solid var(--ink);
  box-shadow: 0 4px 0 rgba(43, 27, 18, 0.28);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  flex-shrink: 0;
}

.dict-row:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 rgba(43, 27, 18, 0.28);
}

.dict-row-left {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.dict-lv-badge {
  flex-shrink: 0;
  padding: 3px 7px;
  border-radius: 8px;
  border: 2px solid var(--ink);
  color: #FFFFFF;
  font-size: 0.72rem;
  text-shadow: 0 1px 0 var(--ink);
  margin-top: 2px;
}

.dict-row-text { flex: 1; min-width: 0; }
.dict-row-title { font-size: 1rem; color: var(--ink); line-height: 1.25; }
.dict-row-title small { font-family: var(--font-en); font-size: 0.72rem; color: #6B5344; }
.dict-row-desc {
  margin-top: 3px;
  font-size: 0.78rem;
  color: #526075;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}

.dict-row-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.dict-row-stars { display: flex; gap: 1px; }
.dict-row-stars img { width: 15px; height: 15px; }

.dict-go-tag {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--green-mid);
  border: 2px solid var(--ink);
  color: #FFFFFF;
  font-size: 0.74rem;
}

/* Map Level Island Tabs */
.map-lv-tabs {
  position: absolute;
  top: 62px;
  left: 10px;
  right: 10px;
  z-index: 20;
  display: flex;
  gap: 5px;
  justify-content: center;
}

.map-lv-tab {
  flex: 1;
  height: 36px;
  border-radius: 12px;
  background: rgba(255, 248, 231, 0.92);
  border: 2.5px solid var(--ink);
  box-shadow: 0 3px 0 rgba(43, 27, 18, 0.35);
  font-size: 0.82rem;
  color: var(--ink);
}

.map-lv-tab.active {
  background: var(--gold-light);
  transform: translateY(-2px);
}

#kr-drop > img, #en-drop > img {
  width: 76px;
  height: 68px;
  object-fit: contain;
  flex: none;
}

.stage-mascot-row .mascot-figure { width: 48px; height: 54px; }
.stage-progress, .hud-counter, .map-lv-tab, .decode-title-word { font-weight: 750; }
.stage-sentence-main, .stage-sentence-sub, .decode-drop-slot { line-height: 1.55; }
.gbtn img { object-fit: contain; }
.shell-modal-body { padding-bottom: 6px; }
.dict-row-title { font-weight: 700; }
.dict-row-desc { line-height: 1.5; }
