/* 完整版學習島:接在 harvest.css 後面(最後一個),只放和精華版不一樣的地方。明亮兒童風。 */

/* ---------- 換站選單:◀ 第 N 站 ▾ ▶(23 站排不下一排按鈕) ---------- */
.tmi-lessons, .tmi-lessons[hidden] { grid-template-columns: none; }
.tmi-lessons { display: flex; align-items: center; gap: 4px; padding: 5px; z-index: 40; }
.tmi-lessons[hidden] { display: none; }
.tmi-lessons .tmi-step { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; font-size: 15px; color: var(--soft); }
.tmi-lessons .tmi-step[hidden] { display: none; }
.tmi-stop-btn { display: flex; align-items: baseline; gap: 6px; min-height: 40px; padding: 6px 14px; border: 0; border-radius: 999px; background: #ffd24a; color: var(--ink);
  font: 900 15px/1.2 var(--font); cursor: pointer; box-shadow: inset 0 -3px 0 #e8a522; }
.tmi-stop-btn .tmi-lessons-k { display: inline; margin: 0; font-size: 12px; color: #8a5a00; }
.tmi-stop-btn:focus-visible, .tmi-lessons a:focus-visible { outline: 3px solid #2f78bd; outline-offset: 2px; }
.tmi-stop-list { position: absolute; right: 0; bottom: calc(100% + 8px); width: min(360px, calc(100vw - 24px)); max-height: min(62vh, 560px); overflow: auto; overscroll-behavior: contain;
  padding: 8px 10px 10px; border-radius: 20px; background: #fffdf8; box-shadow: 0 10px 30px rgba(45, 74, 120, .25), var(--clay); text-align: left; }
.tmi-stop-list[hidden] { display: none; }
.tmi-sl-h { position: sticky; top: -8px; z-index: 1; margin: 6px 0 4px; padding: 4px 4px; background: #fffdf8; font-size: 12.5px; font-weight: 900; color: var(--soft); letter-spacing: .04em; }
.tmi-stop-list ol { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; }
.tmi-lessons .tmi-stop-list a { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; justify-items: start; gap: 8px; padding: 6px 8px; border-radius: 14px;
  color: var(--ink); text-decoration: none; font-size: 14px; }
.tmi-sn { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: color-mix(in srgb, var(--c) 18%, #fff); color: color-mix(in srgb, var(--c) 70%, var(--ink)); font-weight: 900; font-size: 13px; }
.tmi-st { display: grid; gap: 1px; min-width: 0; }
.tmi-st b { font-size: 14px; }
.tmi-lessons .tmi-st small { display: block; overflow: hidden; font-size: 12px; font-weight: 700; color: var(--soft); white-space: nowrap; text-overflow: ellipsis; }
.tmi-ss { font-style: normal; font-size: 12px; font-weight: 900; color: var(--soft); white-space: nowrap; }
.tmi-stop-list a.full .tmi-ss { color: #1d8a55; }
.tmi-stop-list a.shut { opacity: .55; }
.tmi-stop-list a.on { background: #fff3c4; box-shadow: inset 0 0 0 2px #ffd24a; }
@media (max-width: 900px), (max-width: 1100px) and (orientation: portrait) {
  .tmi-lessons { gap: 2px; padding: 4px; }
  .tmi-lessons .tmi-step { width: 34px; height: 34px; }
  .tmi-stop-btn { min-height: 34px; padding: 5px 10px; font-size: 14px; }
  .tmi-lessons .tmi-stop-list a { width: auto; height: auto; padding: 6px 8px; }
  .tmi-lessons .tmi-stop-list a small { display: block; }
  .tmi-trip-again { bottom: calc(80px + var(--safe-b, 0px)); }
}
@media (max-width: 370px) { .tmi-stop-btn .tmi-lessons-k { display: none; } }

/* ---------- 收成兩站的護照:21 站分兩排(第一圈 11、第二圈 10) ---------- */
.tmi-pp21 #xp-stamps { display: grid; grid-template-columns: repeat(11, 40px); gap: 4px 3px; }
.tmi-pp21 #xp-stamps button { width: 40px; }
.tmi-pp21 .round .xp-st { width: 32px; height: 32px; font-size: 16px; }
.tmi-pp21 .xp-st-lab { max-width: 40px; font-size: 9.5px; }
@media (max-width: 900px), (max-width: 1100px) and (orientation: portrait) {
  .tmi-pp21 #xp-stamps { grid-template-columns: repeat(11, 28px); }
  .tmi-pp21 #xp-stamps button { width: 28px; }
  .tmi-pp21 .round .xp-st { width: 26px; height: 26px; font-size: 13px; }
  .tmi-pp21 .xp-st-lab { display: none; }
}

/* ---------- 世界地圖:兩圈各一張;第二圈是夜晚 ---------- */
.tmi-wmaps { display: grid; gap: 10px; }
.tmi-wmap-h { margin: 0 0 4px; font-size: 14px; font-weight: 900; color: var(--soft); }
.tmi-wmap.night { background: linear-gradient(160deg, #3c4a8f, #24306a); }
.tmi-wmap.night::before { background: rgba(255, 255, 255, .12); }
.tmi-wmap.night .tmi-wmap-route polyline { stroke: #ffd24a; }
.tmi-pin.shut { opacity: .55; filter: grayscale(.6); }
.tmi-wmap .tmi-pin { font-size: 12px; }
