/* [project]/src/components/island-practice.css [app-client] (css) */
.island-app {
  color: #293e3d;
  background: #faf6ed;
  min-height: 100vh;
  font-family: Noto Sans TC, PingFang TC, Microsoft JhengHei, sans-serif;
}

.island-header {
  border-bottom: 1px solid #d9ded2;
  align-items: center;
  gap: 24px;
  padding: 22px 5%;
  display: flex;
}

.island-header > a:first-child {
  font-size: 24px;
  font-weight: 800;
}

.island-header > a:last-child {
  margin-left: auto;
}

.island-header span {
  color: #647673;
  font-size: 13px;
}

.island-intro {
  text-align: center;
  padding: 45px 20px 12px;
}

.island-kicker {
  letter-spacing: 3px;
  color: #a15d3a;
  font-size: 12px;
}

.island-intro h1 {
  margin: 12px 0;
  font-size: clamp(29px, 4vw, 48px);
  font-weight: 800;
}

.island-intro p {
  margin: 10px 0;
}

.island-note {
  color: #647673;
  font-size: 12px;
  line-height: 1.8;
}

.island-world {
  height: 520px;
  max-height: 65vh;
  position: relative;
}

.island-world iframe {
  border: 0;
  width: 100%;
  height: 100%;
}

.island-map-hint {
  white-space: nowrap;
  pointer-events: none;
  background: #fff9;
  border-radius: 30px;
  padding: 8px 15px;
  font-size: 12px;
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.island-catalog {
  max-width: 1160px;
  margin: auto;
  padding: 30px 24px 60px;
}

.island-section-title {
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
  display: flex;
}

.island-section-title h2 {
  font-size: 24px;
  font-weight: 700;
}

.island-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
  display: grid;
}

.island-tile {
  background: #fffdf7;
  border: 1px solid #d7dfd5;
  border-radius: 22px;
  padding: 24px;
  transition: transform .2s, box-shadow .2s;
}

.island-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px #2e493a14;
}

.island-number {
  color: #b2714d;
  font: italic 26px Georgia;
}

.island-tile h3 {
  margin: 8px 0;
  font-size: 21px;
  font-weight: 700;
}

.island-tile p {
  color: #647673;
  margin-bottom: 22px;
}

.island-tile > span:last-child {
  justify-content: space-between;
  font-size: 13px;
  display: flex;
}

.island-app button, .island-button {
  color: #fff;
  background: #2d625c;
  border-radius: 12px;
  min-height: 44px;
  padding: 10px 18px;
}

.island-app button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.island-app :focus-visible {
  outline-offset: 4px;
  outline: 3px solid #b2714d;
}

.practice-wrap {
  max-width: 900px;
  margin: auto;
  padding: 30px 20px 70px;
}

.practice-topline {
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0;
  display: flex;
}

.practice-card {
  background: #fffdf7;
  border: 1px solid #d7dfd5;
  border-radius: 24px;
  padding: 32px;
}

.practice-card h1 {
  margin-bottom: 24px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.7;
}

.practice-choices {
  border: 0;
  gap: 12px;
  display: grid;
}

.practice-choices label {
  cursor: pointer;
  border: 1px solid #d7dfd5;
  border-radius: 14px;
  gap: 16px;
  padding: 18px;
  display: flex;
}

.practice-choices label:has(input:checked) {
  background: #e6eee0;
  border-color: #478174;
}

.practice-result {
  white-space: pre-wrap;
  background: #edf1df;
  border-radius: 16px;
  margin: 20px 0;
  padding: 20px;
  line-height: 1.8;
}

.practice-result.wrong {
  background: #f9e9dc;
}

.practice-nav {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  display: flex;
}

.question-index {
  flex-wrap: wrap;
  gap: 6px;
  margin: 25px 0;
  display: flex;
}

.question-index button {
  color: #253b38;
  background: #e3e9e0;
  min-width: 44px;
  padding: 8px;
}

.question-index button[aria-current="true"] {
  outline: 3px solid #b2714d;
}

.question-index .correct {
  background: #cce5cb;
}

.question-index .wrong {
  background: #f1cdb6;
}

@media (max-width: 680px) {
  .island-header {
    flex-wrap: wrap;
    gap: 12px;
  }

  .island-header span {
    order: 3;
    width: 100%;
  }

  .island-grid {
    grid-template-columns: 1fr;
  }

  .island-section-title {
    flex-direction: column;
    align-items: flex-start;
  }

  .island-world {
    height: 380px;
  }

  .practice-card {
    padding: 22px;
  }

  .practice-card h1 {
    font-size: 20px;
  }
}

.island-stage {
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 18px;
  max-width: 1800px;
  height: clamp(520px, 72vh, 820px);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
}

.island-stage.has-panel {
  grid-template-columns: minmax(340px, 390px) minmax(0, 1fr);
}

.island-stage .island-world {
  border-radius: 24px;
  min-width: 0;
  height: 100%;
  max-height: none;
  overflow: hidden;
}

.island-question-panel {
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  background: #fffcf7;
  border: 1px solid #e3dcd0;
  border-radius: 24px;
  min-width: 0;
  min-height: 0;
  padding: 22px;
  overflow-y: auto;
  box-shadow: 0 10px 30px #29433f0d;
}

.island-question-panel:focus {
  outline: none;
}

.island-panel-heading {
  z-index: 2;
  background: #fffcf7;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  display: flex;
  position: sticky;
  top: -22px;
}

.island-panel-heading h2 {
  margin-top: 7px;
  font-size: 25px;
  font-weight: 800;
}

.island-app .island-panel-close {
  color: #293e3d;
  background: none;
  min-width: 44px;
  padding: 0;
  font-size: 28px;
  line-height: 1;
}

.island-panel-topic {
  color: #647673;
  border-bottom: 1px solid #e8dfd4;
  margin: 0 0 18px;
  padding-bottom: 18px;
  font-size: 14px;
}

.island-panel-message {
  line-height: 1.8;
}

.island-panel-message button {
  margin-top: 16px;
}

.practice-embedded .practice-wrap {
  margin: 0;
  padding: 0;
}

.practice-embedded .practice-wrap > .island-kicker, .practice-embedded .practice-wrap > h2 {
  display: none;
}

.practice-embedded .practice-topline {
  align-items: center;
  margin: 12px 0 20px;
  font-size: 12px;
}

.practice-embedded .practice-topline button {
  padding: 7px 10px;
  font-size: 12px;
}

.practice-embedded .practice-card {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.practice-embedded .practice-card h1 {
  margin: 14px 0 20px;
  font-size: 19px;
  line-height: 1.75;
}

.practice-embedded .practice-choices {
  gap: 9px;
  min-width: 0;
}

.practice-embedded .practice-choices label {
  overflow-wrap: anywhere;
  background: #fff;
  gap: 9px;
  padding: 13px 12px;
  font-size: 14px;
}

.practice-embedded .practice-choices input {
  flex: none;
}

.practice-embedded .practice-nav {
  gap: 8px;
  margin-top: 16px;
}

.practice-embedded .practice-nav button {
  padding: 9px 12px;
  font-size: 13px;
}

.practice-embedded .practice-result {
  padding: 15px;
  font-size: 14px;
}

.practice-embedded .question-index {
  gap: 6px;
}

.practice-embedded .question-index button {
  min-width: 40px;
  padding: 8px;
  font-size: 12px;
}

.island-app .island-tile {
  color: #293e3d;
  text-align: left;
  background: #fffdf7;
  border: 1px solid #d7dfd5;
  padding: 24px;
}

.island-stage .island-map-hint {
  white-space: normal;
  text-align: center;
  width: max-content;
  max-width: 95%;
}

@media (max-width: 900px) {
  .island-stage.has-panel {
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 10px;
    padding: 0 10px;
  }

  .island-question-panel {
    padding: 16px;
  }

  .island-panel-heading {
    top: -16px;
  }

  .island-panel-heading h2 {
    font-size: 22px;
  }
}

@media (max-width: 680px) {
  .island-stage {
    height: 400px;
    padding: 0 10px;
  }

  .island-stage.has-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    height: auto;
  }

  .island-stage.has-panel .island-world {
    grid-row: 1;
    height: 40vh;
    min-height: 280px;
  }

  .island-stage.has-panel .island-question-panel {
    grid-row: 2;
    min-height: 360px;
    max-height: 70vh;
  }

  .island-stage .island-map-hint {
    font-size: 10px;
  }
}

.island-fullscreen {
  flex-direction: column;
  height: 100dvh;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.island-fullscreen > .island-header {
  flex: none;
  gap: 18px;
  min-height: 60px;
  padding: 8px 20px;
}

.island-fullscreen > .island-header > a:first-child {
  font-size: 21px;
}

.island-fullscreen .island-header select {
  color: #29433f;
  max-width: 160px;
  min-height: 40px;
  font: inherit;
  background: #fffdf7;
  border: 1px solid #d7dfd5;
  border-radius: 12px;
  padding: 7px 12px;
  font-size: 13px;
}

.island-fullscreen > .island-stage {
  flex: 1;
  gap: 0;
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
}

.island-fullscreen > .island-stage.has-panel {
  gap: 0;
  padding: 0;
}

.island-fullscreen .island-world {
  border-radius: 0;
  height: 100%;
  min-height: 0;
}

.island-fullscreen .island-world iframe {
  display: block;
}

.island-fullscreen .island-question-panel {
  min-height: 0;
  max-height: none;
  margin: 12px 0 12px 12px;
}

@media (max-width: 680px) {
  .island-fullscreen > .island-header {
    flex-wrap: nowrap;
    gap: 8px;
    min-height: 56px;
    padding: 6px 10px;
  }

  .island-fullscreen > .island-header > span {
    display: none;
  }

  .island-fullscreen > .island-header > a:first-child {
    white-space: nowrap;
    font-size: 18px;
  }

  .island-fullscreen > .island-header > a:last-child {
    white-space: nowrap;
    font-size: 11px;
  }

  .island-fullscreen .island-header select {
    min-width: 0;
    max-width: 120px;
    padding: 7px;
    font-size: 12px;
  }

  .island-fullscreen > .island-stage.has-panel {
    grid-template-rows: minmax(0, .85fr) minmax(0, 1.15fr);
    height: auto;
    min-height: 0;
  }

  .island-fullscreen .island-stage.has-panel .island-world {
    height: 100%;
    min-height: 0;
  }

  .island-fullscreen .island-stage.has-panel .island-question-panel {
    min-height: 0;
    max-height: none;
    margin: 0 8px 8px;
  }

  .island-fullscreen .island-map-hint {
    font-size: 10px;
  }
}

.island-fullscreen > .island-stage, .island-fullscreen > .island-stage.has-panel {
  isolation: isolate;
  grid-template-rows: none;
  grid-template-columns: none;
  margin: 0;
  padding: 0;
  display: block;
  position: relative;
  overflow: hidden;
}

.island-fullscreen .island-stage > .island-world, .island-fullscreen .island-stage.has-panel > .island-world {
  z-index: 0;
  border-radius: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.island-fullscreen .island-stage > .island-world iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.island-fullscreen .island-stage.has-panel > .island-question-panel {
  z-index: 20;
  overflow-wrap: anywhere;
  scrollbar-gutter: stable;
  background: #fffdf8fa;
  border: 1px solid #fff;
  border-radius: 24px;
  width: 360px;
  min-width: 0;
  max-width: calc(100% - 48px);
  min-height: 0;
  max-height: none;
  margin: 0;
  padding: 22px;
  position: absolute;
  top: 76px;
  bottom: 20px;
  left: 24px;
  overflow-y: auto;
  box-shadow: 0 18px 60px #183c3926;
}

.island-fullscreen .island-panel-heading {
  background: #fffdf8;
  flex-wrap: nowrap;
  gap: 12px;
  top: -22px;
}

.island-fullscreen .island-panel-heading h2 {
  font-size: 25px;
}

.island-fullscreen .island-stage.has-panel .island-map-hint {
  display: none;
}

@media (max-width: 680px) {
  .island-fullscreen .island-stage.has-panel > .island-question-panel {
    scrollbar-gutter: auto;
    border-radius: 20px;
    width: 300px;
    max-width: calc(100% - 36px);
    max-height: calc(100% - 150px);
    padding: 16px;
    top: 100px;
    bottom: auto;
    left: 12px;
  }

  .island-fullscreen .island-panel-heading {
    top: -16px;
  }

  .island-fullscreen .island-panel-heading h2 {
    font-size: 21px;
  }

  .island-fullscreen .practice-embedded .practice-card h1 {
    font-size: 17px;
  }
}

/*# sourceMappingURL=src_components_island-practice_0apv8xj.css.map*/