/*
 * Tek Yayincilik primary school activity engine styles.
 * Build: Primary School Activity Engine v1.141 (cache token tr1a141e).
 * Shared responsive layout and reusable renderer styles live here.
 * Renderer-specific and activity-specific overrides must remain narrowly scoped.
 */
@import url("https://fonts.googleapis.com/css2?family=Baloo+2:wght@600;700;800&display=swap");

/* Global design tokens and document defaults. */
:root {
  --bg1: #e7fbf5;
  --bg2: #d8f1ff;
  --primary: #15b893;
  --primary-dark: #0b8f72;
  --ink: #17304c;
  --muted: #60718a;
  --good: #18b777;
  --bad: #ef476f;
  --shadow: 0 12px 28px rgba(23,48,76,.12);
}
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Baloo 2",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color: var(--ink);
}
body {
  min-height: 100svh;
  background: radial-gradient(circle at 98% 0%,#fff1c7 0 72px,transparent 74px),radial-gradient(circle at 88% 100%,#fff1c7 0 105px,transparent 107px),linear-gradient(135deg,var(--bg1),var(--bg2));
}
button {
  font: inherit;
  color: inherit;
  border: 0;
  cursor: pointer;
}

/* Application shell, panels, buttons, progress, toast, and shared UI. */
.app {
  width: min(430px,100%);
  min-height: 100svh;
  margin: 0 auto;
  padding: 8px;
  display: flex;
}
.panel {
  width: 100%;
  min-height: calc(100svh - 16px);
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Loading state and shared start-screen presentation. */
.loading-card {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}
.mascot {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font-size: 28px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 7px 16px rgba(23,48,76,.10);
}
.mascot.big {
  width: 84px;
  height: 84px;
  font-size: 54px;
  margin-bottom: 8px;
}
.topbar {
  padding: 14px 14px 4px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: start;
}
.start-topbar {
  grid-template-columns: 1fr 48px;
  padding-bottom: 0;
  min-height: 52px;
}
.badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 5px;
}
.start-info .badges {
  justify-content: center;
  margin-bottom: 6px;
}
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #def9f2;
  color: var(--primary-dark);
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 800;
}
.title {
  margin: 0;
  font-size: clamp(25px,7vw,32px);
  line-height: .96;
  letter-spacing: -.015em;
  font-weight: 800;
}
.start-info {
  text-align: center;
  margin-bottom: 6px;
}
.start-info .title {
  max-width: 330px;
  margin: 0 auto;
}
.sound-btn {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(23,48,76,.12);
  display: grid;
  place-items: center;
  font-size: 22px;
}
.sound-btn.off {
  opacity: .55;
}
.start-card {
  padding: 0 16px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  flex: 1;
}
.hero {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 8px;
}
.hero .mascot {
  width: 92px;
  height: 92px;
  font-size: 58px;
  border-radius: 28px;
  animation: float 2.6s ease-in-out infinite;
}
.message {
  background: #fff;
  box-shadow: 0 10px 22px rgba(23,48,76,.10);
  border-radius: 18px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.15;
}
.actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding-top: 0;
}
.primary-btn,
.ghost-btn {
  min-height: 46px;
  padding: 0 20px;
  border-radius: 16px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(23,48,76,.10);
}
.primary-btn {
  background: var(--primary);
  color: #fff;
}
.ghost-btn {
  background: #e9f0f8;
  color: var(--ink);
}

/* Shared game header, progress indicator, and play area. */
.game-head {
  padding: 10px 14px 7px;
}
.game-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.game-title {
  margin: 0;
  font-size: 23px;
  line-height: 1;
  font-weight: 800;
}
.game-sub {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.12;
}
.counter {
  font-weight: 950;
  font-size: 15px;
  margin: 7px 0 5px;
}
.progress {
  height: 9px;
  background: #e6edf5;
  border-radius: 999px;
  overflow: hidden;
}
.progress>span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg,var(--primary),#ffd166);
  border-radius: inherit;
  transition: width .25s ease;
}
.game-body {
  flex: 1;
  padding: 7px 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 0;
}
.helper {
  background: #fff;
  border-radius: 17px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  box-shadow: 0 8px 18px rgba(23,48,76,.08);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.12;
}
.helper .mascot {
  width: 38px;
  height: 38px;
  font-size: 25px;
  border-radius: 13px;
  flex: 0 0 auto;
}
.match-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  align-items: stretch;
}
.col-title {
  text-align: center;
  font-size: 11px;
  font-weight: 950;
  color: var(--muted);
  margin: 0 0 3px;
}

/* Shared answer-card states and correctness feedback. */
.card-btn {
  width: 100%;
  min-height: 41px;
  border-radius: 13px;
  background: #fff;
  padding: 6px;
  font-size: clamp(10.5px,2.9vw,12.5px);
  line-height: 1.05;
  font-weight: 850;
  box-shadow: 0 6px 14px rgba(23,48,76,.07);
  border: 2px solid transparent;
  transition: transform .15s ease,border-color .15s ease,background .15s ease;
}
.card-btn+.card-btn {
  margin-top: 5px;
}
.card-btn:active {
  transform: scale(.98);
}
.card-btn.selected {
  border-color: var(--primary);
  background: #e8fbf6;
  box-shadow: 0 0 0 3px rgba(21,184,147,.12);
}
.card-btn.done {
  opacity: .38;
  text-decoration: line-through;
  pointer-events: none;
}
.card-btn.good {
  border-color: var(--good);
  background: #e7fbef;
  animation: pop .25s ease;
}
.card-btn.bad {
  border-color: var(--bad);
  background: #fff0f4;
  animation: shake .28s ease;
}

/* Shared true-or-false renderer. */
.tf-card {
  flex: 1;
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 22px;
  padding: 16px;
  text-align: center;
  font-size: clamp(22px,7vw,32px);
  line-height: 1.08;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(23,48,76,.09);
  min-height: 135px;
}
.tf-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.tf-btn {
  min-height: 56px;
  border-radius: 18px;
  color: #fff;
  font-size: 22px;
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(23,48,76,.12);
}
.tf-btn.true {
  background: #19b77c;
}
.tf-btn.false {
  background: #ef476f;
}

/* Shared footer, score display, and toast feedback. */
.footer {
  padding: 7px 14px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.stars {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 18px;
  font-weight: 950;
}
.toast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) scale(.96);
  width: min(330px,calc(100% - 38px));
  color: #fff;
  border-radius: 22px;
  padding: 17px 15px;
  box-shadow: 0 18px 38px rgba(23,48,76,.22);
  text-align: center;
  font-weight: 900;
  font-size: 18px;
  line-height: 1.12;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease,transform .18s ease;
  z-index: 50;
  border: 4px solid rgba(255,255,255,.85);
}
.toast.show {
  opacity: 1;
  transform: translate(-50%,-50%) scale(1);
}
.toast.good {
  background: linear-gradient(135deg,#18b777,#0aa37d);
}
.toast.bad {
  background: linear-gradient(135deg,#ef476f,#f77f00);
}
.toast.info {
  background: linear-gradient(135deg,#4967ff,#31c5ff);
}

/* Finish screen and detailed result summary. */
.finish {
  padding: 18px;
  text-align: center;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
.finish h1 {
  margin: 0;
  font-size: 31px;
  line-height: 1;
}
.finish p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}
.score-box {
  background: #fff;
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 10px 25px rgba(23,48,76,.10);
  font-weight: 950;
  font-size: 18px;
}
.result-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(280px,100%);
}
.result-panel {
  padding: 14px;
  overflow: auto;
}
.result-head {
  text-align: center;
  padding: 4px 4px 10px;
}
.result-head h1 {
  margin: 6px 0 4px;
  font-size: 28px;
  line-height: 1;
}
.result-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0 12px;
}
.result-stat {
  background: #fff;
  border-radius: 18px;
  padding: 10px 8px;
  box-shadow: 0 8px 18px rgba(23,48,76,.08);
  font-weight: 950;
  text-align: center;
}
.result-stat.good {
  color: var(--good);
}
.result-stat.bad {
  color: var(--bad);
}
.result-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.result-item {
  background: #fff;
  border-radius: 16px;
  padding: 10px 11px;
  box-shadow: 0 8px 18px rgba(23,48,76,.07);
  border-left: 6px solid var(--bad);
}
.result-item-title {
  font-weight: 950;
  line-height: 1.12;
  margin-bottom: 5px;
}
.result-correct {
  color: var(--good);
  font-weight: 900;
  line-height: 1.12;
}
.empty-result {
  background: #e7fbef;
  color: var(--primary-dark);
  border-radius: 18px;
  padding: 14px;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(23,48,76,.07);
}
.result-bottom {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 12px 0 4px;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}
@keyframes pop {
  0% {
    transform: scale(.98);
  }
  60% {
    transform: scale(1.03);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}
@media (max-height:720px) {
  .app {
    padding: 5px;
  }
  .panel {
    min-height: calc(100svh - 10px);
    border-radius: 20px;
  }
  .topbar {
    padding: 9px 12px 3px;
  }
  .title {
    font-size: 23px;
  }
  .hero .mascot {
    width: 72px;
    height: 72px;
    font-size: 47px;
  }
  .message {
    padding: 9px 11px;
    font-size: 14px;
  }
  .start-card {
    gap: 9px;
  }
  .game-head {
    padding: 8px 12px 5px;
  }
  .game-title {
    font-size: 20px;
  }
  .helper {
    padding: 7px 9px;
  }
  .card-btn {
    min-height: 36px;
    padding: 5px;
    font-size: 10.5px;
    border-radius: 12px;
  }
  .card-btn+.card-btn {
    margin-top: 4px;
  }
  .footer {
    padding: 5px 12px 8px;
  }
  .result-head h1 {
    font-size: 24px;
  }
  .result-item {
    padding: 9px 10px;
  }
}

/* Map, compass, classroom plan, and direction activities. */
.kroki-box {
  background: rgba(255,255,255,.88);
  border-radius: 18px;
  padding: 9px;
  box-shadow: 0 8px 18px rgba(23,48,76,.08);
  margin-bottom: 10px;
}
.classroom-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}
.classroom-plan {
  height: 184px;
  border: 3px solid #5d7a96;
  position: relative;
  background: linear-gradient(180deg,#fff,#f4fbff);
  border-radius: 22px;
  box-shadow: inset 0 0 0 4px #e8f7ff;
}
.door,
.library,
.board,
.teacher,
.win,
.desk {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
}
.door,
.library,
.board,
.teacher,
.win {
  border: 2px solid #5d7a96;
  border-radius: 11px;
  font-weight: 900;
  background: #fff;
  color: #18314f;
}
.door {
  top: -14px;
  right: 26px;
  width: 74px;
  height: 24px;
  background: #fff0c9;
  font-size: 10px;
}
.library {
  left: 6px;
  top: 40px;
  width: 30px;
  height: 88px;
  background: linear-gradient(180deg,#e9f7ff,#dff1ff);
  writing-mode: vertical-rl;
  font-size: 10px;
}
.board {
  right: 6px;
  top: 40px;
  width: 30px;
  height: 88px;
  background: linear-gradient(180deg,#e9fff4,#ddfff0);
  writing-mode: vertical-rl;
  font-size: 10px;
}
.teacher {
  right: 42px;
  bottom: 38px;
  width: 62px;
  height: 50px;
  background: linear-gradient(180deg,#fff3f8,#ffe7f2);
  font-size: 9px;
  line-height: 1.05;
  padding: 4px;
  z-index: 4;
  box-shadow: 0 4px 10px rgba(216,74,126,.12);
}
.win {
  bottom: -12px;
  height: 24px;
  background: #fff8e5;
  font-size: 9px;
  white-space: nowrap;
}
.win1 {
  right: 20px;
  width: 86px;
}
.win2 {
  left: 24px;
  width: 86px;
}
.desk {
  width: 27px;
  height: 40px;
  border: 2px solid #90adbe;
  background: linear-gradient(180deg,#e6f8ff,#d0efff);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 900;
  color: #35546d;
  box-shadow: 0 4px 8px rgba(53,84,109,.08);
}
.d1 {
  left: 28%;
  top: 28px;
}
.d2 {
  left: 42%;
  top: 28px;
}
.d3 {
  left: 56%;
  top: 28px;
}
.d4 {
  left: 28%;
  top: 92px;
}
.d5 {
  left: 42%;
  top: 92px;
}
.d6 {
  left: 56%;
  top: 92px;
}
.compass-panel {
  background: #fffdf6;
  border: 2px solid #f2d480;
  border-radius: 18px;
  padding: 8px;
  box-shadow: 0 6px 14px rgba(23,48,76,.06);
}
.neighborhood-map {
  margin-top: 9px;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 6px;
}
.place,
.kid-center {
  min-height: 56px;
  border-radius: 15px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  text-align: center;
  box-shadow: 0 5px 12px rgba(23,48,76,.08);
  font-weight: 900;
  font-size: 12px;
}
.place {
  border: 2px solid #d9edf8;
}
.place.nw {
  background: #fff8e8;
}
.place.n {
  background: #eafbea;
}
.place.ne {
  background: #eef6ff;
}
.place.w {
  background: #f8eefc;
}
.place.e {
  background: #fff4e8;
}
.place.sw {
  background: #f1f5f9;
}
.place.s {
  background: #eefdf5;
}
.place.se {
  background: #fff0f0;
}
.kid-center {
  background: #dff8ff;
  border: 3px solid #19a7ce;
  color: #0277a1;
}
.mc-card {
  background: #fff;
  border-radius: 18px;
  padding: 15px 13px;
  box-shadow: 0 9px 20px rgba(23,48,76,.10);
  font-size: 19px;
  line-height: 1.15;
  font-weight: 900;
  text-align: center;
  margin-bottom: 10px;
}
.mc-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.mc-btn {
  min-height: 48px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(23,48,76,.10);
  padding: 8px 10px;
  font-size: 15px;
  font-weight: 900;
}
/* Motion-choice feedback is scoped so legacy multiple-choice games keep their existing UI. */
.mc-lock-mode .mc-actions {
  gap: 10px;
}
.mc-lock-mode .mc-btn {
  min-height: 52px;
  border-radius: 18px;
  border: 2px solid rgba(14,165,233,.42);
  background: linear-gradient(180deg,#ffffff 0%,#e8f7ff 100%);
  box-shadow: 0 4px 0 rgba(14,165,233,.22), 0 10px 20px rgba(23,48,76,.10);
  padding: 10px 12px;
  color: #0b5f91;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease, color .16s ease;
}
.mc-lock-mode .mc-btn:active,
.mc-lock-mode .mc-btn[aria-pressed="true"] {
  transform: translateY(3px) scale(.985);
  box-shadow: 0 1px 0 rgba(14,165,233,.22), 0 6px 14px rgba(23,48,76,.10);
}
.mc-lock-mode .mc-btn:hover {
  border-color: rgba(14,165,233,.28);
  box-shadow: 0 12px 22px rgba(23,48,76,.12);
}
.mc-lock-mode .mc-btn.is-wrong {
  border-color: rgba(239,68,68,.40);
  background: linear-gradient(180deg,#fff2f2 0%,#ffe7e7 100%);
  color: #9a1f1f;
  box-shadow: 0 12px 24px rgba(239,68,68,.14);
  animation: mcShake .26s ease;
}
.mc-lock-mode .mc-btn.is-correct {
  border-color: rgba(24,183,119,.42);
  background: linear-gradient(180deg,#ecfff6 0%,#dff9ed 100%);
  color: #116b4a;
  box-shadow: 0 12px 24px rgba(24,183,119,.16);
  animation: mcPulse .55s ease;
}
.mc-lock-mode .mc-btn:disabled {
  opacity: 1;
}
.mc-lock-mode .mc-btn-label {
  display: block;
}
.mc-lock-mode .mc-feedback {
  margin-top: 14px;
  padding: 14px;
  border-radius: 20px;
  background: #fff;
  border: 2px solid rgba(201,221,236,.9);
  box-shadow: 0 12px 24px rgba(23,48,76,.08);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}
.mc-lock-mode .mc-feedback.hint {
  background: linear-gradient(180deg,#f8fdff 0%,#f2fbff 100%);
}
.mc-lock-mode .mc-feedback.good {
  border-color: rgba(24,183,119,.28);
  background: linear-gradient(180deg,#f1fff7 0%,#eafff2 100%);
}
.mc-lock-mode .mc-feedback.bad {
  border-color: rgba(239,68,68,.24);
  background: linear-gradient(180deg,#fff7f7 0%,#fff0f0 100%);
}
.mc-lock-mode .mc-feedback-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 21px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(23,48,76,.10);
}
.mc-lock-mode .mc-feedback-copy strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  color: #17304c;
}
.mc-lock-mode .mc-feedback-copy p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: #45607c;
}
.mc-lock-mode .mc-next-btn {
  grid-column: 1 / -1;
  width: min(240px,100%);
  justify-self: center;
  margin-top: 4px;
}
@keyframes mcPulse {
  0% { transform: scale(1); }
  45% { transform: scale(1.03); }
  100% { transform: scale(1); }
}
@keyframes mcShake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* Compact locked-answer layout for the FB2 motion activity. */
.mc-compact-mode .mc-card {
  margin-bottom: 8px;
  padding: 12px 13px;
}
.mc-compact-mode .mc-image-card {
  margin-top: 0;
}
.mc-compact-mode .mc-actions {
  margin-top: 2px;
}
.mc-compact-result {
  margin-top: 10px;
  min-height: 42px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}
.mc-compact-result.bad {
  color: #a02b2b;
}
.mc-compact-result.good {
  color: #126b4b;
  flex-wrap: wrap;
}
.mc-compact-mode .mc-next-btn {
  margin: 0;
  width: auto;
  min-width: 150px;
}
@media (max-width:390px) {
  .tr1-guide-row {
    min-height: 58px;
    padding-right: 84px;
  }
  .tr1-guide-row .tr1-language-helper {
    min-height: 56px;
    padding-right: 8px;
  }
  .tr1-guide-mascot {
    right: 0;
    bottom: -10px;
    width: 80px;
    height: 104px;
  }
  .tr1-guide-mascot.neighbors {
    bottom: -6px;
    width: 78px;
    height: 100px;
  }
  .tr1-guide-mascot.factory {
    bottom: -7px;
    width: 80px;
    height: 102px;
  }
  .classroom-plan {
    height: 178px;
  }
  .teacher {
    right: 35px;
    width: 58px;
    height: 48px;
    font-size: 8px;
  }
  .desk {
    width: 25px;
    height: 38px;
    font-size: 12px;
  }
  .d1 {
    left: 26%;
  }
  .d2 {
    left: 40%;
  }
  .d3 {
    left: 54%;
  }
  .d4 {
    left: 26%;
  }
  .d5 {
    left: 40%;
  }
  .d6 {
    left: 54%;
  }
  .mc-card {
    font-size: 18px;
  }
}
.compass-panel.image-compass {
  background: linear-gradient(180deg,#fffef8,#fff9e9);
  border: 2px solid #f2d480;
  border-radius: 20px;
  padding: 8px;
  overflow: hidden;
}
.compass-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}
.compass-panel.image-compass {
  padding: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.compass-panel.image-compass .compass-image {
  width: 72%;
  max-width: 245px;
  min-width: 210px;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
}
@media (max-width:390px) {
  .compass-panel.image-compass .compass-image {
    width: 70%;
    max-width: 230px;
    min-width: 200px;
  }
}
.compass-panel.image-compass {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.compass-panel.image-compass .compass-image {
  display: block;
  width: 58%;
  max-width: 190px;
  min-width: 150px;
  height: auto;
  margin: 0 auto;
  border-radius: 0;
  box-shadow: none;
}
@media (max-width:390px) {
  .compass-panel.image-compass .compass-image {
    width: 56%;
    max-width: 175px;
    min-width: 145px;
  }
}

/* Shared true-or-false renderer. */
.tf-card {
  min-height: 96px;
  font-size: clamp(20px,6vw,28px);
}
.section-complete {
  justify-content: center;
  align-items: center;
}
.section-complete-card {
  width: 100%;
  min-height: calc(100svh - 16px);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
}
.section-complete-card h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1;
  font-weight: 950;
  color: var(--primary-dark);
}
.section-complete-card p {
  margin: 0;
  max-width: 320px;
  font-size: 18px;
  line-height: 1.18;
  font-weight: 800;
  color: var(--ink);
}
.section-complete-card strong {
  color: var(--primary-dark);
}
.section-complete-card .primary-btn {
  margin-top: 6px;
  min-width: 160px;
}
.checklist-card {
  background: #fff;
  border-radius: 20px;
  padding: 10px;
  box-shadow: 0 9px 20px rgba(23,48,76,.09);
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow: auto;
}
.check-item {
  width: 100%;
  min-height: 43px;
  border-radius: 14px;
  background: #f8fbff;
  border: 2px solid #e0ebf5;
  padding: 7px 9px;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 8px;
  align-items: center;
  text-align: left;
  font-size: 14px;
  line-height: 1.08;
  font-weight: 850;
}
.check-item[aria-pressed="true"] {
  background: #e8fbf6;
  border-color: var(--primary);
}
.check-box {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #fff;
  border: 2px solid #9fb5c8;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 950;
  color: var(--primary-dark);
}
.check-item[aria-pressed="true"] .check-box {
  border-color: var(--primary);
  background: #dff8f0;
}
.check-submit {
  width: 100%;
  margin-top: 2px;
}

/* Checklist game feedback states. Selected answers are blue before checking; after checking, correct answers are green and wrong selected answers are red. */
.checklist-helper {
  align-items: flex-start;
}
.checklist-helper > div:last-child {
  font-size: 14px;
  line-height: 1.22;
}
.check-item.is-selected,
.check-item[aria-pressed="true"] {
  background: #eaf4ff;
  border-color: #2f80ed;
  box-shadow: 0 0 0 3px rgba(47,128,237,.10);
}
.check-item.is-selected .check-box,
.check-item[aria-pressed="true"] .check-box {
  border-color: #2f80ed;
  background: #2f80ed;
  color: #fff;
}
.check-item.result-correct {
  background: #eafff1;
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,.12);
}
.check-item.result-correct .check-box {
  border-color: #22c55e;
  background: #22c55e;
  color: #fff;
}
.check-item.result-wrong {
  background: #fff1f2;
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,.12);
}
.check-item.result-wrong .check-box {
  border-color: #ef4444;
  background: #ef4444;
  color: #fff;
}
.check-submit.ready-next {
  background: #2563eb;
}
@media (max-width:520px) {
  .checklist-helper > div:last-child {
    font-size: 12.5px;
    line-height: 1.18;
  }
  .check-item {
    min-height: 46px;
  }
}

/* Collection-bag games and eco-themed variants. */
.bag-game {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}
.bag-top {
  background: #fff;
  border-radius: 20px;
  padding: 10px;
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 10px;
  align-items: center;
  box-shadow: 0 9px 20px rgba(23,48,76,.09);
}
.bag-visual {
  height: 76px;
  border-radius: 18px;
  background: linear-gradient(180deg,#e8fbf6,#dff4ff);
  display: grid;
  place-items: center;
  position: relative;
  border: 2px solid rgba(20,184,166,.25);
}
.bag-icon {
  font-size: 42px;
  line-height: 1;
}
.bag-count {
  position: absolute;
  right: -6px;
  bottom: -6px;
  background: var(--primary);
  color: #fff;
  border: 3px solid #fff;
  border-radius: 999px;
  min-width: 38px;
  height: 30px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 950;
}
.bag-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-weight: 900;
  line-height: 1.1;
}
.bag-info strong {
  font-size: 17px;
  color: var(--primary-dark);
}
.bag-info span {
  font-size: 13px;
  color: var(--muted);
}
.bag-packed {
  background: rgba(255,255,255,.84);
  border-radius: 16px;
  padding: 7px;
  min-height: 42px;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  align-items: center;
  box-shadow: 0 6px 14px rgba(23,48,76,.06);
}
.bag-packed span {
  background: #e8fbf6;
  color: var(--primary-dark);
  border: 1px solid rgba(20,184,166,.25);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
}
.bag-packed em {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
  font-size: 13px;
  margin: 0 auto;
}
.bag-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.bag-item {
  min-height: 46px;
  border-radius: 15px;
  background: #fff;
  border: 2px solid #e2edf6;
  box-shadow: 0 6px 14px rgba(23,48,76,.07);
  padding: 7px;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 6px;
  align-items: center;
  text-align: left;
  font-size: 12px;
  line-height: 1.05;
  font-weight: 900;
}
.bag-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: #f1f7fb;
  display: grid;
  place-items: center;
  font-size: 17px;
}
.bag-item.packed {
  background: #e8fbf6;
  border-color: var(--primary);
  opacity: .65;
}
.bag-item.rejected {
  background: #fff0f4;
  border-color: var(--bad);
}
@media (max-height:720px) {
  .tr1-guide-row {
    min-height: 52px;
    padding-right: 74px;
  }
  .tr1-guide-row .tr1-language-helper {
    min-height: 50px;
  }
  .tr1-guide-mascot {
    bottom: -7px;
    width: 70px;
    height: 90px;
  }
  .tr1-guide-mascot.neighbors {
    bottom: -5px;
    width: 68px;
    height: 86px;
  }
  .tr1-guide-mascot.factory {
    bottom: -6px;
    width: 72px;
    height: 92px;
  }
  .bag-top {
    grid-template-columns: 72px 1fr;
    padding: 8px;
  }
  .bag-visual {
    height: 66px;
  }
  .bag-icon {
    font-size: 36px;
  }
  .bag-item {
    min-height: 42px;
    font-size: 11px;
    padding: 6px;
  }
  .bag-packed {
    min-height: 36px;
  }
}
.col-title {
  background: #fff;
  color: var(--primary-dark);
  border: 2px solid rgba(20,184,166,.28);
  border-radius: 999px;
  padding: 5px 8px;
  margin: 0 0 7px;
  font-size: 13px;
  line-height: 1;
  font-weight: 950;
  box-shadow: 0 5px 12px rgba(23,48,76,.07);
}
.match-grid > div:first-child .col-title::before {
  content: "🔎 ";
}
.match-grid > div:last-child .col-title::before {
  content: "✅ ";
}
@media (max-width:390px) {
  .col-title {
    font-size: 12px;
    padding: 5px 7px;
  }
}
.bag-game.eco-collect .bag-visual {
  background: linear-gradient(180deg,#eafff3,#dcfce7);
  border-color: rgba(34,181,115,.28);
}
.bag-game.eco-collect .bag-packed span {
  background: #eafff3;
  color: #0b8f72;
  border-color: rgba(34,181,115,.25);
}

/* Green city activity visuals and decision cards. */
.green-city-card {
  background: linear-gradient(180deg,#f8fffb,#eefcf5);
  border: 2px solid rgba(34,181,115,.22);
  border-radius: 26px;
  padding: 16px 16px 14px;
  box-shadow: 0 10px 24px rgba(34,181,115,.10);
  margin-bottom: 14px;
}
.green-city-card .city-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.city-badge {
  background: #e7fff1;
  color: #11825d;
  border: 1px solid rgba(34,181,115,.24);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 800;
  font-size: 15px;
}
.city-score {
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 900;
  color: #0f365f;
  box-shadow: 0 4px 10px rgba(0,0,0,.06);
}
.city-scene {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  border-radius: 22px;
  padding: 16px 14px 14px;
  background: linear-gradient(180deg,#dff4ff 0%,#f7fffb 70%,#def6df 70%,#c6efcb 100%);
  border: 1px solid rgba(0,0,0,.06);
}
.city-scene .sun {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff8cf, #ffd965 65%, #f9bf35 100%);
  box-shadow: 0 0 0 8px rgba(255,217,101,.22);
}
.city-scene .cloud {
  position: absolute;
  background: rgba(255,255,255,.92);
  border-radius: 999px;
  height: 22px;
  box-shadow: 18px 5px 0 2px rgba(255,255,255,.92), 35px 0 0 0 rgba(255,255,255,.92);
}
.city-scene .cloud.c1 {
  top: 18px;
  left: 18px;
  width: 38px;
}
.city-scene .cloud.c2 {
  top: 54px;
  left: 78px;
  width: 30px;
  transform: scale(.85);
}
.city-scene .buildings {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 54px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.city-scene .buildings .b {
  display: block;
  flex: 1;
  min-width: 42px;
  border-radius: 10px 10px 0 0;
  background: linear-gradient(180deg,#8eb8de,#5e89b7);
  position: relative;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.08);
}
.city-scene .buildings .b:before {
  content: "";
  position: absolute;
  inset: 10px 8px;
  background-image: radial-gradient(circle, rgba(255,255,255,.9) 40%, transparent 42%);
  background-size: 12px 14px;
}
.city-scene .buildings .b1 {
  height: 52px;
}
.city-scene .buildings .b2 {
  height: 70px;
}
.city-scene .buildings .b3 {
  height: 58px;
}
.city-scene .buildings .b4 {
  height: 82px;
}
.city-scene .park {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 62px;
  background: linear-gradient(180deg,#93dc95,#65c26d);
  border-top: 2px dashed rgba(255,255,255,.55);
}
.city-scene .tree,
.city-scene .flower {
  position: absolute;
  bottom: 10px;
  font-size: 28px;
  filter: drop-shadow(0 4px 2px rgba(0,0,0,.12));
}
.city-scene .tree.t1 {
  left: 16px;
}
.city-scene .tree.t2 {
  left: 66px;
}
.city-scene .tree.t3 {
  left: 116px;
}
.city-scene .tree.t4 {
  left: 166px;
}
.city-scene .tree.t5 {
  left: 216px;
}
.city-scene .tree.t6 {
  left: 266px;
}
.city-scene .flower {
  font-size: 18px;
  bottom: 8px;
}
.city-scene .flower.f1 {
  left: 46px;
}
.city-scene .flower.f2 {
  left: 146px;
}
.city-scene .flower.f3 {
  left: 246px;
}
.city-scene .flower.f4 {
  left: 196px;
}
.city-text {
  position: relative;
  z-index: 2;
  margin-top: 120px;
  text-align: center;
  font-weight: 800;
  color: #0f365f;
  font-size: 15px;
}
.green-city-card.stage-0 .park {
  filter: saturate(.75);
}
.green-city-card.stage-1 .park {
  filter: saturate(.85);
}
.green-city-card.stage-2 .park {
  filter: saturate(.95);
}
.green-city-card.stage-3 .park {
  filter: saturate(1.05);
}
.green-city-card.stage-4 .park,
.green-city-card.stage-5 .park {
  filter: saturate(1.12);
}
.green-question {
  font-size: 26px;
  text-align: center;
  line-height: 1.25;
}
.green-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.green-choice {
  border: none;
  border-radius: 18px;
  padding: 18px 14px;
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,.10);
}
.green-choice.yes {
  background: linear-gradient(180deg,#2fd083,#1daa67);
}
.green-choice.no {
  background: linear-gradient(180deg,#ff7b90,#ef4369);
}
.green-choice:active {
  transform: translateY(1px);
}
@media (max-width:520px) {
  .city-scene {
    min-height: 150px;
    padding: 14px 10px 14px;
  }
  .city-scene .sun {
    width: 42px;
    height: 42px;
    top: 10px;
    right: 12px;
  }
  .city-scene .buildings {
    gap: 7px;
    left: 10px;
    right: 10px;
    bottom: 50px;
  }
  .city-scene .buildings .b {
    min-width: 34px;
  }
  .city-scene .tree {
    font-size: 24px;
  }
  .city-scene .tree.t1 {
    left: 10px;
  }
  .city-scene .tree.t2 {
    left: 54px;
  }
  .city-scene .tree.t3 {
    left: 98px;
  }
  .city-scene .tree.t4 {
    left: 142px;
  }
  .city-scene .tree.t5 {
    left: 186px;
  }
  .city-scene .tree.t6 {
    left: 230px;
  }
  .city-scene .flower.f1 {
    left: 34px;
  }
  .city-scene .flower.f2 {
    left: 120px;
  }
  .city-scene .flower.f3 {
    left: 210px;
  }
  .city-scene .flower.f4 {
    left: 168px;
  }
  .city-text {
    margin-top: 108px;
    font-size: 14px;
  }
  .green-question {
    font-size: 22px;
  }
  .green-choice {
    font-size: 18px;
    padding: 16px 10px;
  }
}
.city-text {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 10px;
  z-index: 8;
  margin-top: 0;
  background: rgba(255,255,255,.92);
  color: #0f365f;
  border: 2px solid rgba(34,181,115,.22);
  border-radius: 16px;
  padding: 7px 9px;
  font-size: 13px;
  line-height: 1.08;
  font-weight: 950;
  box-shadow: 0 6px 14px rgba(23,48,76,.10);
}
.city-scene .park {
  height: 48px;
}
.city-scene .tree,
.city-scene .flower {
  z-index: 3;
}
@media (max-width:520px) {
  .city-text {
    left: 10px;
    right: 10px;
    bottom: 8px;
    font-size: 12px;
    padding: 6px 8px;
  }
}
.green-city-card .city-text {
  display: none !important;
}
.green-city-card .city-scene {
  padding-bottom: 0;
}
.green-city-card .park {
  height: 62px !important;
}
.green-city-card .tree,
.green-city-card .flower {
  z-index: 9;
  bottom: 10px;
}

/* Science machine and science detective activity screens. */
.science-machine-card {
  background: linear-gradient(180deg,#ecf8ff 0%, #ffffff 100%);
  border: 2px solid rgba(86,122,255,.18);
  border-radius: 28px;
  padding: 14px;
  box-shadow: 0 14px 28px rgba(35,56,94,.10);
  margin-bottom: 14px;
}
.science-machine-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.science-machine-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg,#ffffff,#e8f0ff);
  border: 2px solid rgba(66,104,215,.18);
  color: #184c8d;
  font-weight: 900;
}
.science-machine-lights {
  display: flex;
  gap: 8px;
}
.science-machine-lights span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(180deg,#ffd86b,#ff9e2f);
  box-shadow: 0 0 0 4px rgba(255,209,95,.18);
}
.flow-label {
  display: inline-block;
  margin: 0 auto;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eef5ff;
  color: #3662b8;
  font-size: 13px;
  font-weight: 900;
}
.science-options {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
}
.science-option-btn {
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 18px rgba(23,48,76,.08);
  border: 2px solid #d8e7ff;
  padding: 14px 12px;
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 10px;
  font: inherit;
  color: #17304c;
  font-weight: 900;
  text-align: left;
}
.science-option-btn:hover {
  transform: translateY(-1px);
}
.science-option-pill {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg,#79d5ff,#4e8cff);
  color: #fff;
  font-size: 14px;
  box-shadow: 0 8px 14px rgba(54,98,184,.20);
}
.detective-scene {
  background: linear-gradient(180deg,#fff9ea,#ffffff);
  border: 2px solid rgba(248,185,44,.28);
  border-radius: 28px;
  padding: 14px;
  box-shadow: 0 14px 28px rgba(80,59,14,.08);
  margin-bottom: 14px;
}
.detective-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.detective-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg,#fff,#fff2c8);
  border: 2px solid rgba(234,177,52,.26);
  color: #835203;
  font-weight: 900;
}
.detective-tools {
  display: flex;
  gap: 10px;
  font-size: 22px;
}
.detective-board {
  position: relative;
  min-height: 148px;
  border-radius: 24px;
  background: linear-gradient(180deg,#ffe8a6,#f9d783);
  border: 3px solid #e3b650;
  box-shadow: inset 0 0 0 6px rgba(255,255,255,.26);
  overflow: hidden;
  padding: 18px 14px;
}
.detective-note {
  position: absolute;
  background: #fffef6;
  border-radius: 16px;
  box-shadow: 0 10px 18px rgba(80,59,14,.12);
  padding: 12px 12px 10px;
  color: #4b3b1d;
}
.detective-note strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}
.detective-note span {
  display: block;
  font-size: 13px;
  line-height: 1.35;
}
.detective-note.left {
  left: 14px;
  top: 20px;
  width: 46%;
  transform: rotate(-3deg);
}
.detective-note.right {
  right: 18px;
  bottom: 18px;
  width: 42%;
  transform: rotate(4deg);
}
.detective-note.pin-a,
.detective-note.pin-b {
  background: transparent;
  box-shadow: none;
  padding: 0;
  font-size: 18px;
  line-height: 1;
}
.detective-note.pin-a {
  left: 22px;
  top: 14px;
  transform: none;
}
.detective-note.pin-b {
  right: 28px;
  bottom: 72px;
  transform: none;
}
.detective-magnifier {
  position: absolute;
  right: 24px;
  top: 20px;
  font-size: 34px;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,.12));
}
.detective-case-card {
  background: #fff;
  border: 2px solid #e9edf6;
  border-radius: 24px;
  box-shadow: 0 10px 18px rgba(23,48,76,.08);
  padding: 16px 14px;
  margin-bottom: 12px;
}
.detective-case-title {
  font-size: 14px;
  font-weight: 900;
  color: #8b5b04;
  margin-bottom: 10px;
}
.detective-case-text {
  font-size: 28px;
  line-height: 1.18;
  font-weight: 900;
  color: #17304c;
  text-align: center;
}
.detective-actions {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
}
.detective-btn {
  border: none;
  border-radius: 20px;
  font: inherit;
  font-weight: 900;
  color: #fff;
  padding: 16px 12px;
  min-height: 74px;
  box-shadow: 0 10px 18px rgba(23,48,76,.10);
}
.detective-btn.yes {
  background: linear-gradient(180deg,#5a98ff,#2f6bdd);
}
.detective-btn.no {
  background: linear-gradient(180deg,#ff8e6a,#f05b57);
}
@media (max-width:520px) {
  .science-machine-card,
  .detective-scene {
    padding: 12px;
    border-radius: 24px;
  }
  .science-options,
  .detective-actions {
    grid-template-columns: 1fr;
  }
  .science-option-btn {
    min-height: 76px;
  }
  .detective-board {
    min-height: 170px;
    padding: 14px 12px;
  }
  .detective-note.left {
    left: 10px;
    top: 16px;
    width: 52%;
  }
  .detective-note.right {
    right: 12px;
    bottom: 14px;
    width: 46%;
  }
  .detective-case-text {
    font-size: 24px;
  }
}
.science-machine-card.simple {
  padding: 14px 14px 16px;
}
.science-machine-stage {
  margin-bottom: 2px;
}
.science-machine-body-simple {
  background: linear-gradient(180deg,#dff0ff 0%, #cbe7ff 100%);
  border: 2px solid #c9defd;
  border-radius: 28px;
  padding: 14px;
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.42);
}
.science-machine-window-simple {
  background: #fff;
  border: 2px dashed #cddfff;
  border-radius: 22px;
  padding: 18px 16px;
  text-align: center;
  box-shadow: 0 10px 18px rgba(35,56,94,.06);
}
.science-problem-text {
  margin-top: 10px;
  font-size: 23px;
  line-height: 1.15;
  font-weight: 900;
  color: #17304c;
}
.science-machine-control {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.science-machine-status-simple {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 16px;
  min-height: 48px;
  border-radius: 999px;
  background: #fff8dc;
  border: 2px solid #f0dd94;
  color: #7a5c00;
  font-weight: 900;
}
@media (max-width:520px) {
  .science-machine-card.simple {
    padding: 12px;
  }
  .science-machine-body-simple {
    padding: 12px;
  }
  .science-machine-window-simple {
    padding: 16px 14px;
  }
  .science-problem-text {
    font-size: 21px;
  }
}
@media (max-width: 520px) {
  .science-machine-card.simple {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 22px;
  }
  .science-machine-top {
    margin-bottom: 8px;
  }
  .science-machine-badge {
    padding: 8px 12px;
    font-size: 14px;
  }
  .science-machine-lights span {
    width: 10px;
    height: 10px;
  }
  .science-machine-body-simple {
    padding: 10px;
    border-radius: 22px;
  }
  .science-machine-window-simple {
    padding: 12px 10px;
    border-radius: 18px;
  }
  .flow-label {
    padding: 5px 10px;
    font-size: 12px;
  }
  .science-problem-text {
    margin-top: 8px;
    font-size: 18px;
    line-height: 1.15;
  }
  .science-machine-control {
    margin-top: 8px;
    gap: 8px;
  }
  .science-machine-status-simple {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 13px;
  }
  .science-options {
    gap: 8px;
  }
  .science-option-btn {
    min-height: 66px;
    padding: 10px 10px;
    border-radius: 16px;
    gap: 8px;
    font-size: 13px;
    line-height: 1.2;
  }
  .science-option-pill {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    font-size: 12px;
  }
}
.science-option-btn.selected {
  border-color: #6ab7ff;
  background: linear-gradient(180deg,#f3faff 0%, #e7f4ff 100%);
  box-shadow: 0 10px 18px rgba(72,140,230,.12);
}
.science-option-btn.selected .science-option-pill {
  transform: scale(1.06);
  box-shadow: 0 8px 16px rgba(54,98,184,.28);
}
.science-machine-status-simple.ready {
  background: #eefbf0;
  border-color: #9ae0ab;
  color: #18753b;
}
.science-machine-status-simple.running {
  background: #fff4cf;
  border-color: #f0d36b;
  color: #8a6100;
}
.science-machine-key-btn {
  border-radius: 999px;
  padding: 12px 18px;
  min-height: 48px;
  font: inherit;
  font-weight: 900;
  color: #17304c;
  background: linear-gradient(180deg,#ffffff 0%, #eef5ff 100%);
  border: 2px solid #c9defd;
  box-shadow: 0 10px 18px rgba(35,56,94,.08);
}
.science-machine-key-btn.ready {
  background: linear-gradient(180deg,#ffe68e 0%, #ffc74d 100%);
  border-color: #f1c247;
  color: #724d00;
}
.science-machine-key-btn.running {
  background: linear-gradient(180deg,#9be8ff 0%, #59c7ff 100%);
  border-color: #61bff3;
  color: #0e4b71;
}
.science-machine-key-btn:disabled {
  opacity: 1;
}
@media (max-width:520px) {
  .science-machine-key-btn {
    min-height: 42px;
    padding: 10px 14px;
    font-size: 13px;
  }
}
.compact-machine {
  margin-bottom: 8px;
}
.compact-machine .science-machine-body-simple {
  padding: 10px;
}
.compact-machine .science-machine-window-simple {
  padding: 12px 10px;
}
.compact-machine .science-problem-text {
  margin-top: 7px;
}
.compact-machine .science-machine-control {
  margin-top: 8px;
  gap: 7px;
}
.compact-machine .science-machine-status-simple {
  max-width: 100%;
}
.compact-options {
  gap: 8px;
}
@media (max-width:520px) {
  .compact-machine {
    padding: 9px;
    margin-bottom: 8px;
    border-radius: 20px;
  }
  .compact-machine .science-machine-top {
    margin-bottom: 7px;
  }
  .compact-machine .science-machine-badge {
    padding: 7px 10px;
    font-size: 13px;
  }
  .compact-machine .science-machine-body-simple {
    padding: 8px;
    border-radius: 18px;
  }
  .compact-machine .science-machine-window-simple {
    padding: 10px 8px;
    border-radius: 16px;
  }
  .compact-machine .flow-label {
    padding: 4px 9px;
    font-size: 11px;
  }
  .compact-machine .science-problem-text {
    font-size: 17px;
    line-height: 1.12;
    margin-top: 6px;
  }
  .compact-machine
  .compact-machine .science-machine-status-simple {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 12px;
    line-height: 1.15;
  }
  .compact-machine .science-machine-key-btn {
    min-height: 36px;
    padding: 7px 12px;
    font-size: 12px;
  }
  .compact-machine
  .compact-options {
    grid-template-columns: 1fr 1fr !important;
    gap: 7px !important;
  }
  .compact-options .science-option-btn {
    min-height: 54px;
    padding: 8px 7px;
    border-radius: 14px;
    font-size: 12px;
    line-height: 1.12;
    gap: 6px;
  }
  .compact-options .science-option-pill {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    font-size: 11px;
  }
}
@media (max-height:720px) {
  .compact-machine .science-machine-window-simple {
    padding: 8px;
  }
  .compact-machine .science-problem-text {
    font-size: 16px;
  }
  .compact-options .science-option-btn {
    min-height: 50px;
  }
}
.compact-machine .science-machine-control {
  align-items: center;
}
.compact-machine .science-machine-key-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 220px;
  min-height: 56px;
  padding: 14px 22px;
  border: none;
  border-radius: 999px;
  font: inherit;
  font-weight: 900;
  letter-spacing: .01em;
  color: #7b5200;
  background: linear-gradient(180deg,#fff2a8 0%, #ffd458 48%, #ffbc2d 100%);
  box-shadow: 0 10px 0 #d89718, 0 16px 26px rgba(255,184,44,.34);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.compact-machine .science-machine-key-btn .key-text {
  position: relative;
  z-index: 2;
}
.compact-machine .science-machine-key-btn .key-shine {
  position: absolute;
  inset: 0 auto 0 -30%;
  width: 34%;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.42) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-20deg);
}
.compact-machine .science-machine-key-btn:hover {
  transform: translateY(-1px);
}
.compact-machine .science-machine-key-btn:active {
  transform: translateY(4px);
  box-shadow: 0 5px 0 #d89718, 0 9px 16px rgba(255,184,44,.28);
}
.compact-machine .science-machine-key-btn.ready {
  color: #6f4700;
  background: linear-gradient(180deg,#fff19b 0%, #ffd34d 55%, #ffb71d 100%);
  box-shadow: 0 10px 0 #d08d12, 0 16px 26px rgba(255,183,29,.34);
}
.compact-machine .science-machine-key-btn.running {
  color: #ffffff;
  background: linear-gradient(180deg,#58d8ff 0%, #2aa7ff 100%);
  box-shadow: 0 10px 0 #1776c6, 0 16px 26px rgba(42,167,255,.30);
  animation: buttonGlow 0.7s ease-in-out infinite alternate;
}
.compact-machine .science-machine-key-btn.running:active {
  box-shadow: 0 5px 0 #1776c6, 0 9px 16px rgba(42,167,255,.24);
}
.compact-machine .science-machine-key-btn:disabled {
  opacity: 1;
  cursor: default;
}
.compact-machine .science-machine-key-btn:focus-visible {
  outline: 3px solid rgba(79,156,255,.35);
  outline-offset: 2px;
}
@keyframes buttonGlow {
  from {
    filter: brightness(1);
  }
  to {
    filter: brightness(1.08);
  }
}
@media (max-width:520px) {
  .compact-machine .science-machine-key-btn {
    min-width: 190px;
    min-height: 44px;
    padding: 10px 16px;
    gap: 8px;
    font-size: 13px;
    box-shadow: 0 7px 0 #d89718, 0 12px 18px rgba(255,184,44,.28);
  }
  .compact-machine .science-machine-key-btn.ready {
    box-shadow: 0 7px 0 #d08d12, 0 12px 18px rgba(255,183,29,.28);
  }
  .compact-machine .science-machine-key-btn.running {
    box-shadow: 0 7px 0 #1776c6, 0 12px 18px rgba(42,167,255,.24);
  }
}
.compact-machine
.compact-machine .science-machine-control {
  padding-bottom: 10px;
}
.compact-machine .science-machine-key-btn {
  min-width: 180px;
  min-height: 46px;
  padding: 10px 18px;
  gap: 0;
  border-radius: 26px;
  font-size: 15px;
  box-shadow: 0 7px 0 #d89718, 0 12px 18px rgba(255,184,44,.24);
}
.compact-machine .science-machine-key-btn.ready {
  box-shadow: 0 7px 0 #d08d12, 0 12px 18px rgba(255,183,29,.24);
}
.compact-machine .science-machine-key-btn.running {
  box-shadow: 0 7px 0 #1776c6, 0 12px 18px rgba(42,167,255,.22);
}
.compact-machine .science-machine-key-btn:active {
  box-shadow: 0 3px 0 #d89718, 0 7px 12px rgba(255,184,44,.18);
  transform: translateY(3px);
}
.compact-machine .science-machine-key-btn.running:active {
  box-shadow: 0 3px 0 #1776c6, 0 7px 12px rgba(42,167,255,.18);
}
@media (max-width:520px) {
  .compact-machine .science-machine-control {
    padding-bottom: 8px;
  }
  .compact-machine .science-machine-key-btn {
    min-width: 156px;
    min-height: 40px;
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 22px;
    box-shadow: 0 5px 0 #d89718, 0 9px 14px rgba(255,184,44,.22);
  }
  .compact-machine .science-machine-key-btn.ready {
    box-shadow: 0 5px 0 #d08d12, 0 9px 14px rgba(255,183,29,.22);
  }
  .compact-machine .science-machine-key-btn.running {
    box-shadow: 0 5px 0 #1776c6, 0 9px 14px rgba(42,167,255,.20);
  }
}
.detective-note.pin-a,
.detective-note.pin-b {
  z-index: 8;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  font-size: 20px;
  line-height: 1;
}
.detective-note.left,
.detective-note.right,
.detective-magnifier {
  z-index: 5;
}
.detective-note.pin-a {
  left: 22px;
  top: 10px;
}
.detective-note.pin-b {
  right: 126px;
  top: 56px;
  bottom: auto;
}
.detective-scene {
  margin-bottom: 10px;
}
.detective-case-card {
  margin-top: 0;
}
@media (max-width:520px) {
  .detective-note.pin-a {
    left: 18px;
    top: 8px;
  }
  .detective-note.pin-b {
    right: 118px;
    top: 54px;
  }
  .detective-scene {
    margin-bottom: 10px;
  }
}
.detective-note.pin-a,
.detective-note.pin-b {
  z-index: 12;
}
.detective-note.pin-a {
  left: 18px;
  top: 10px;
}
.detective-note.pin-b {
  right: 110px;
  top: 50px;
  bottom: auto;
}
@media (max-width:520px) {
  .detective-note.pin-a {
    left: 16px;
    top: 8px;
  }
  .detective-note.pin-b {
    right: 98px;
    top: 48px;
    bottom: auto;
  }
}
.detective-note.left,
.detective-note.right {
  position: absolute;
}
.detective-note.left::before,
.detective-note.right::before {
  content: "📌";
  position: absolute;
  left: 10px;
  top: -10px;
  font-size: 18px;
  line-height: 1;
  z-index: 2;
}
.detective-note.pin-a,
.detective-note.pin-b {
  display: none !important;
}
@media (max-width:520px) {
  .detective-note.left::before,
  .detective-note.right::before {
    left: 8px;
    top: -9px;
    font-size: 17px;
  }
}

/* Shared target-sorting island layout and drag feedback. */
.target-island-card {
  background: linear-gradient(180deg,#eaf8ff,#fffaf0);
  border: 2px solid rgba(80,150,220,.22);
  border-radius: 28px;
  padding: 14px;
  box-shadow: 0 12px 24px rgba(23,48,76,.08);
}
.island-sky {
  position: relative;
  height: 96px;
  border-radius: 22px;
  background: linear-gradient(180deg,#bfe9ff,#e8fbff);
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid rgba(80,150,220,.16);
}
.island-cloud {
  position: absolute;
  background: #fff;
  border-radius: 999px;
  height: 20px;
  box-shadow: 18px 4px 0 2px #fff,34px 0 0 0 #fff;
}
.island-cloud.c1 {
  left: 20px;
  top: 18px;
  width: 40px;
}
.island-cloud.c2 {
  left: 92px;
  top: 48px;
  width: 32px;
  transform: scale(.85);
}
.island-title {
  position: absolute;
  left: 18px;
  bottom: 14px;
  font-size: 22px;
  font-weight: 950;
  color: #17304c;
}
.sort-current {
  min-height: 106px;
  background: #fff;
  border: 2px dashed rgba(90,135,226,.30);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px;
  text-align: center;
  box-shadow: 0 8px 16px rgba(23,48,76,.06);
}
.sort-current.done {
  background: #f4fff7;
  border-color: rgba(34,181,115,.30);
}
.sort-card-icon {
  font-size: 32px;
}
.sort-card-text {
  font-size: 23px;
  line-height: 1.18;
  font-weight: 950;
  color: #17304c;
}
.sort-done {
  font-size: 22px;
  font-weight: 950;
  color: #138a5b;
}
.sort-bins {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.sort-bin {
  min-height: 94px;
  border-radius: 22px;
  padding: 12px;
  background: #fff;
  box-shadow: 0 10px 18px rgba(23,48,76,.08);
  border: 2px solid #e3edf8;
  font: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #17304c;
}
.sort-bin span {
  font-size: 30px;
}
.sort-bin strong {
  font-size: 16px;
}
.sort-bin.bin-0 {
  background: linear-gradient(180deg,#e8f7ff,#ffffff);
  border-color: #bfe3ff;
}
.sort-bin.bin-1 {
  background: linear-gradient(180deg,#fff0e7,#ffffff);
  border-color: #ffd5bd;
}
.ladder-wrap {
  background: linear-gradient(180deg,#fff8e4,#ffffff);
  border: 2px solid rgba(255,192,66,.28);
  border-radius: 28px;
  padding: 14px;
  box-shadow: 0 12px 24px rgba(80,59,14,.08);
}
.ladder-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff4cc;
  color: #895d00;
  font-weight: 950;
  border: 2px solid rgba(255,192,66,.30);
  margin-bottom: 8px;
}
.ladder-sub {
  color: #607188;
  font-weight: 800;
  margin-bottom: 10px;
}
.ladder-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ladder-step {
  display: grid;
  grid-template-columns: 42px 1fr 82px;
  gap: 8px;
  align-items: center;
}
.step-no {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(180deg,#75d0ff,#5a87e2);
  color: #fff;
  font-weight: 950;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 12px rgba(90,135,226,.20);
}
.step-card {
  min-height: 48px;
  background: #fff;
  border: 2px solid #e5edf8;
  border-radius: 16px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  font-weight: 900;
  color: #17304c;
}
.step-actions {
  display: flex;
  gap: 6px;
}
.step-move {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #eef5ff;
  color: #275a99;
  font-weight: 950;
  border: 2px solid #d7e6ff;
}
.step-move:disabled {
  opacity: .35;
}
.ladder-check {
  margin-top: 12px;
  width: 100%;
}
.scenario-card {
  background: linear-gradient(180deg,#eef7ff,#ffffff);
  border: 2px solid rgba(90,135,226,.20);
  border-radius: 28px;
  padding: 18px;
  box-shadow: 0 12px 24px rgba(23,48,76,.08);
}
.scenario-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 2px solid #dce9ff;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 950;
  color: #275a99;
  margin-bottom: 14px;
}
.scenario-text {
  font-size: 24px;
  line-height: 1.22;
  font-weight: 950;
  color: #17304c;
}
.scenario-actions {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.scenario-btn {
  border-radius: 22px;
  padding: 16px 12px;
  min-height: 90px;
  background: #fff;
  border: 2px solid #e4edf8;
  box-shadow: 0 10px 18px rgba(23,48,76,.08);
  font: inherit;
  color: #17304c;
  text-align: left;
  display: flex;
  gap: 10px;
  align-items: center;
}
.scenario-btn span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(180deg,#72cfff,#5a87e2);
  color: #fff;
  font-weight: 950;
  display: grid;
  place-items: center;
  flex: 0 0 34px;
}
.scenario-btn strong {
  font-size: 16px;
  line-height: 1.2;
}
.badge-stage {
  background: linear-gradient(180deg,#fff8e7,#ffffff);
  border: 2px solid rgba(255,192,66,.28);
  border-radius: 28px;
  padding: 16px;
  box-shadow: 0 12px 24px rgba(80,59,14,.08);
}
.badge-stage-title {
  font-size: 22px;
  font-weight: 950;
  color: #895d00;
  margin-bottom: 6px;
}
.badge-stage-sub {
  font-weight: 800;
  color: #607188;
  margin-bottom: 12px;
}
.badge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.badge-choice {
  border-radius: 20px;
  background: #fff;
  border: 2px solid #f2e2b5;
  padding: 12px 10px;
  min-height: 88px;
  box-shadow: 0 8px 16px rgba(80,59,14,.07);
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  color: #17304c;
  font: inherit;
}
.badge-choice.selected {
  border-color: var(--badge,#5a87e2);
  background: #fffdf2;
}
.badge-medal {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg,var(--badge,#5a87e2),#ffffff);
  border: 3px solid #fff;
  box-shadow: 0 6px 12px rgba(23,48,76,.12);
  flex: 0 0 42px;
  font-size: 22px;
}
.badge-choice strong {
  font-size: 14px;
  line-height: 1.18;
}
.badge-submit {
  width: 100%;
  margin-top: 12px;
}
.badge-final {
  text-align: center;
  background: linear-gradient(180deg,#fff9e9,#ffffff);
  border: 2px solid rgba(255,192,66,.28);
  border-radius: 28px;
  padding: 20px;
  box-shadow: 0 12px 24px rgba(80,59,14,.08);
}
.badge-medal.big {
  width: 112px;
  height: 112px;
  font-size: 54px;
  margin: 0 auto 14px;
}
.badge-final h2 {
  font-size: 26px;
  color: #17304c;
  margin: 4px 0;
}
.badge-final p {
  font-weight: 800;
  color: #607188;
}
.selected-task {
  margin: 14px 0;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  border: 2px dashed rgba(255,192,66,.38);
  font-size: 20px;
  font-weight: 950;
  color: #17304c;
}
.badge-reveal {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg,#fff7dc 0%,#fffdf8 48%,#ffffff 100%);
  border: 2px solid rgba(255,190,70,.35);
  box-shadow: 0 18px 36px rgba(118,84,13,.12);
}
.badge-wow {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid rgba(255,190,70,.45);
  font-size: 20px;
  font-weight: 950;
  color: #c47a00;
  box-shadow: 0 8px 18px rgba(255,190,70,.18);
  margin-bottom: 10px;
  animation: badgePop .6s ease-out both;
}
.badge-medal-show {
  position: relative;
  margin: 8px auto 10px;
  width: 160px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.badge-medal-show .badge-medal.big {
  position: relative;
  z-index: 3;
  background: radial-gradient(circle at 50% 35%,#ffffff 0%,color-mix(in srgb,var(--badge,#5a87e2) 88%, white 12%) 62%, color-mix(in srgb,var(--badge,#5a87e2) 75%, #28456a 25%) 100%);
  color: #17304c;
  border: 6px solid #fff;
  margin: 0;
  box-shadow: 0 16px 24px rgba(23,48,76,.16);
  animation: badgeFloat 2.3s ease-in-out infinite;
}
.badge-ribbon {
  position: absolute;
  top: 72px;
  width: 38px;
  height: 72px;
  background: linear-gradient(180deg,color-mix(in srgb,var(--badge,#5a87e2) 70%, white 30%),color-mix(in srgb,var(--badge,#5a87e2) 88%, #143455 12%));
  z-index: 1;
  clip-path: polygon(0 0,100% 0,100% 78%,50% 100%,0 78%);
  box-shadow: 0 10px 15px rgba(23,48,76,.12);
}
.badge-ribbon.left {
  left: 28px;
  transform: rotate(-10deg);
}
.badge-ribbon.right {
  right: 28px;
  transform: rotate(10deg);
}
.badge-glow {
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,230,150,.95) 0%, rgba(255,230,150,.35) 42%, rgba(255,230,150,0) 72%);
  filter: blur(4px);
  z-index: 0;
  animation: badgePulse 2s ease-in-out infinite;
}
.badge-finish-text {
  font-size: 17px;
  margin: 8px auto 0;
  max-width: 290px;
}
.badge-reveal .selected-task {
  background: linear-gradient(180deg,#fffef9,#ffffff);
  border: 2px dashed rgba(255,190,70,.5);
  box-shadow: 0 8px 18px rgba(118,84,13,.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.badge-reveal .selected-task span {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .2px;
  color: #8e6600;
  text-transform: uppercase;
}
.badge-reveal .selected-task strong {
  font-size: 22px;
  line-height: 1.25;
  color: #17304c;
}
.badge-note {
  margin: 0 auto 16px;
  max-width: 280px;
  font-weight: 800;
  color: #607188;
}
.badge-next-btn {
  width: 100%;
}
.badge-confetti {
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.badge-confetti span {
  position: absolute;
  width: 10px;
  height: 18px;
  border-radius: 4px;
  opacity: .9;
  animation: confettiFall 3.6s linear infinite;
}
.badge-confetti span:nth-child(1) {
  left: 12%;
  top: -10px;
  background: #ff7a59;
  animation-delay: 0s;
}
.badge-confetti span:nth-child(2) {
  left: 24%;
  top: -20px;
  background: #ffd54d;
  animation-delay: .35s;
}
.badge-confetti span:nth-child(3) {
  left: 38%;
  top: -14px;
  background: #5a87e2;
  animation-delay: .8s;
}
.badge-confetti span:nth-child(4) {
  left: 62%;
  top: -18px;
  background: #7ed957;
  animation-delay: 1.1s;
}
.badge-confetti span:nth-child(5) {
  left: 78%;
  top: -8px;
  background: #ef5b7a;
  animation-delay: 1.45s;
}
.badge-confetti span:nth-child(6) {
  left: 88%;
  top: -22px;
  background: #8e70ff;
  animation-delay: 1.8s;
}
@keyframes badgePop {
  0% {
    transform: scale(.7);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes badgeFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
@keyframes badgePulse {
  0%,
  100% {
    transform: scale(.95);
    opacity: .7;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}
@keyframes confettiFall {
  0% {
    transform: translateY(-20px) rotate(0deg);
  }
  100% {
    transform: translateY(320px) rotate(250deg);
  }
}
@media (max-width:520px) {
  .island-sky {
    height: 76px;
  }
  .island-title {
    font-size: 18px;
  }
  .sort-current {
    min-height: 88px;
  }
  .sort-card-text {
    font-size: 19px;
  }
  .sort-bins {
    gap: 8px;
  }
  .sort-bin {
    min-height: 78px;
    border-radius: 18px;
  }
  .sort-bin strong {
    font-size: 13px;
  }
  .ladder-step {
    grid-template-columns: 34px 1fr 72px;
    gap: 6px;
  }
  .step-no {
    width: 32px;
    height: 32px;
    border-radius: 11px;
  }
  .step-card {
    min-height: 42px;
    font-size: 13px;
    padding: 8px 9px;
  }
  .step-move {
    width: 32px;
    height: 32px;
  }
  .scenario-text {
    font-size: 20px;
  }
  .scenario-actions {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .scenario-btn {
    min-height: 64px;
    border-radius: 18px;
    padding: 12px 10px;
  }
  .badge-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .badge-choice {
    min-height: 62px;
  }
  .badge-wow {
    font-size: 18px;
    padding: 7px 13px;
  }
  .badge-medal-show {
    width: 146px;
    height: 138px;
  }
  .badge-ribbon {
    top: 66px;
    height: 66px;
  }
  .badge-ribbon.left {
    left: 24px;
  }
  .badge-ribbon.right {
    right: 24px;
  }
  .badge-reveal .selected-task strong {
    font-size: 19px;
  }
}
.drag-version .drag-helper-text {
  margin: 0 0 8px;
  text-align: center;
  color: #607188;
  font-weight: 850;
  font-size: 14px;
}
.sort-drag-card {
  width: 100%;
  min-height: 92px;
  background: #fff;
  border: 2px dashed rgba(90,135,226,.34);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px;
  touch-action: none;
  cursor: grab;
  user-select: none;
  box-shadow: 0 8px 16px rgba(23,48,76,.08);
}
.sort-drag-card:active {
  cursor: grabbing;
}
.sort-drag-card.dragging {
  box-shadow: 0 18px 34px rgba(23,48,76,.20);
  border-style: solid;
  background: #ffffff;
}
.is-dragging-sort {
  overflow: hidden;
}
.drag-version .sort-current {
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
  min-height: 92px;
}
.drag-version .sort-bin {
  transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease;
}
.drag-version .sort-bin.drop-hover {
  transform: scale(1.04);
  border-color: #5a87e2;
  box-shadow: 0 12px 24px rgba(90,135,226,.18);
}
@media (max-width:520px) {
  .drag-version .drag-helper-text {
    font-size: 12px;
    margin-bottom: 7px;
  }
  .sort-drag-card {
    min-height: 82px;
    border-radius: 18px;
    padding: 12px 10px;
  }
  .sort-drag-card .sort-card-text {
    font-size: 18px;
  }
  .sort-drag-card .sort-card-icon {
    font-size: 28px;
  }
}

/* Improved scenario-choice visual layout. */
.scenario-card.improved {
  position: relative;
  overflow: hidden;
  padding: 18px;
  background: radial-gradient(circle at 92% 12%, rgba(255,207,89,.28), transparent 25%),
    linear-gradient(180deg,#eef7ff 0%,#ffffff 100%);
  border: 2px solid rgba(90,135,226,.22);
  border-radius: 30px;
}
.scenario-card.improved::after {
  content: "";
  position: absolute;
  right: -32px;
  bottom: -32px;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: rgba(90,135,226,.08);
}
.scenario-top.improved {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: 100%;
  background: #fff;
  border: 2px solid #dce9ff;
  border-radius: 22px;
  padding: 10px 14px;
  margin-bottom: 14px;
  color: #275a99;
  box-shadow: 0 8px 16px rgba(23,48,76,.06);
}
.scenario-top.improved .scenario-main-icon {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 25px;
  background: linear-gradient(180deg,#fff8d7,#fff);
  border: 2px solid #ffe7a8;
  flex: 0 0 42px;
}
.scenario-top.improved strong {
  display: block;
  font-size: 17px;
  line-height: 1.1;
}
.scenario-top.improved small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.15;
  color: #6b7890;
  font-weight: 850;
}
.scenario-text.improved {
  position: relative;
  z-index: 2;
  background: #fff;
  border: 2px dashed rgba(90,135,226,.24);
  border-radius: 22px;
  padding: 18px 16px;
  font-size: 24px;
  line-height: 1.22;
  font-weight: 950;
  color: #17304c;
  text-align: center;
  box-shadow: 0 8px 16px rgba(23,48,76,.05);
}
.scenario-visual.improved {
  position: relative;
  z-index: 2;
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: 24px;
  border: 2px solid #dce9ff;
  background: #ffffff;
  box-shadow: 0 10px 18px rgba(23,48,76,.08);
}
.scenario-visual.improved img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity .2s ease;
}
.scenario-visual.improved img.loaded {
  opacity: 1;
}
.scenario-actions.improved {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.scenario-btn.improved {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 16px 12px;
  min-height: 84px;
  background: linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
  border: 2px solid #dfeafa;
  box-shadow: 0 10px 18px rgba(23,48,76,.08);
  font: inherit;
  color: #17304c;
  text-align: left;
  display: flex;
  gap: 12px;
  align-items: center;
  transition: transform .13s ease, box-shadow .13s ease, border-color .13s ease;
}
.scenario-btn.improved:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(23,48,76,.10);
}
.scenario-btn.improved span {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(180deg,#72cfff,#5a87e2);
  color: #fff;
  font-weight: 950;
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  box-shadow: 0 8px 14px rgba(90,135,226,.20);
}
.scenario-btn.improved strong {
  font-size: 17px;
  line-height: 1.18;
}
.scenario-btn.improved.correct {
  background: linear-gradient(180deg,#eafff3,#ffffff);
  border-color: #39c77c;
  color: #0d6f45;
}
.scenario-btn.improved.correct span {
  background: linear-gradient(180deg,#43d889,#20b36b);
}
.scenario-btn.improved.wrong {
  background: linear-gradient(180deg,#fff1f3,#ffffff);
  border-color: #ef5b7a;
  color: #9b203b;
}
.scenario-btn.improved.wrong span {
  background: linear-gradient(180deg,#ff8fa3,#ef4369);
}
.scenario-btn.improved.muted {
  opacity: .58;
}
.scenario-btn.improved:disabled {
  cursor: default;
}
@media (max-width:520px) {
  .scenario-card.improved {
    padding: 14px;
    border-radius: 24px;
  }
  .scenario-top.improved {
    padding: 8px 10px;
    border-radius: 18px;
    gap: 9px;
    margin-bottom: 10px;
  }
  .scenario-top.improved .scenario-main-icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    font-size: 22px;
    border-radius: 14px;
  }
  .scenario-top.improved strong {
    font-size: 15px;
  }
  .scenario-top.improved small {
    font-size: 11px;
  }
  .scenario-text.improved {
    padding: 14px 12px;
    border-radius: 18px;
    font-size: 19px;
  }
  .scenario-visual.improved {
    margin-bottom: 10px;
    border-radius: 18px;
  }
  .scenario-actions.improved {
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 12px;
  }
  .scenario-btn.improved {
    min-height: 64px;
    border-radius: 18px;
    padding: 11px 10px;
  }
  .scenario-btn.improved span {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }
  .scenario-btn.improved strong {
    font-size: 15px;
  }
}
.drag-ladder .ladder-title {
  gap: 9px;
}
.ladder-title-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(255,192,66,.35);
  font-size: 18px;
  line-height: 1;
}
.drag-ladder .ladder-sub {
  background: #fff;
  border: 2px dashed rgba(255,192,66,.32);
  border-radius: 16px;
  padding: 9px 11px;
  font-size: 14px;
  line-height: 1.25;
}
.drag-ladder .ladder-step {
  grid-template-columns: 42px 1fr 34px 82px;
  cursor: grab;
  touch-action: none;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.drag-ladder .ladder-step:active {
  cursor: grabbing;
}
.drag-ladder .ladder-step.dragging,
.drag-ladder .ladder-step.touch-dragging {
  opacity: .78;
  transform: scale(1.02);
}
.drag-ladder .ladder-step.drag-over {
  transform: scale(1.02);
}
.drag-ladder .ladder-step.drag-over .step-card {
  border-color: #f3be36;
  background: #fff9e6;
  box-shadow: 0 10px 18px rgba(243,190,54,.16);
}
.step-grip {
  width: 30px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #8a9ab0;
  font-weight: 950;
  background: #f5f8ff;
  border: 2px solid #e1ebfb;
  user-select: none;
}
@media (max-width:520px) {
  .drag-ladder .ladder-step {
    grid-template-columns: 34px 1fr 28px 70px;
  }
  .step-grip {
    width: 26px;
    height: 32px;
    border-radius: 10px;
    font-size: 13px;
  }
  .ladder-title-icon {
    width: 24px;
    height: 24px;
    font-size: 16px;
  }
  .drag-ladder .ladder-sub {
    font-size: 12px;
    padding: 7px 9px;
  }
}
.badge-stage-special {
  background: linear-gradient(180deg,#fffaf0 0%,#fffefb 100%);
  border-color: rgba(255,196,76,.4);
  box-shadow: 0 16px 32px rgba(118,84,13,.10);
}
.badge-stage-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.badge-stage-special .badge-stage-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 23px;
  color: #8b5f00;
  margin-bottom: 4px;
}
.badge-stage-special .badge-stage-sub {
  margin-bottom: 0;
  max-width: 250px;
}
.badge-stage-stars {
  display: flex;
  gap: 4px;
  padding-top: 4px;
}
.badge-stage-stars span {
  font-size: 18px;
  animation: badgeTwinkle 2.2s ease-in-out infinite;
}
.badge-stage-stars span:nth-child(2) {
  animation-delay: .45s;
}
.badge-stage-stars span:nth-child(3) {
  animation-delay: .9s;
}
.badge-choice {
  position: relative;
  overflow: hidden;
  align-items: flex-start;
  flex-direction: column;
  gap: 9px;
  padding: 12px 12px 13px;
  border-radius: 22px;
  background: linear-gradient(180deg,#ffffff,#fffaf1);
  transition: transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.badge-choice:hover {
  transform: translateY(-1px);
}
.badge-choice-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  z-index: 2;
}
.badge-choice-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255,214,102,.22);
  border: 1px solid rgba(255,188,66,.45);
  font-size: 11px;
  font-weight: 950;
  color: #9b6900;
  white-space: nowrap;
}
.badge-medal.mini {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  font-size: 24px;
  border-width: 4px;
  background: radial-gradient(circle at 50% 30%,#fff 0%,color-mix(in srgb,var(--badge,#5a87e2) 84%, white 16%) 55%, color-mix(in srgb,var(--badge,#5a87e2) 76%, #17304c 24%) 100%);
  box-shadow: 0 10px 18px rgba(23,48,76,.14);
}
.badge-choice-main {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}
.badge-choice-main strong {
  font-size: 15px;
  line-height: 1.14;
  color: #17304c;
}
.badge-choice-main small {
  font-size: 12px;
  line-height: 1.28;
  font-weight: 800;
  color: #607188;
}
.badge-choice-spark {
  position: absolute;
  right: 12px;
  bottom: 10px;
  font-size: 16px;
  opacity: .75;
  animation: badgeTwinkle 2.1s ease-in-out infinite;
}
.badge-choice-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg,transparent 0%,rgba(255,255,255,.0) 35%,rgba(255,255,255,.75) 50%,rgba(255,255,255,.0) 65%,transparent 100%);
  transform: translateX(-130%);
  transition: transform .55s ease;
}
.badge-choice.selected {
  transform: translateY(-2px) scale(1.01);
  border-color: color-mix(in srgb,var(--badge,#5a87e2) 72%, #ffd567 28%);
  background: linear-gradient(180deg,#fffef9,#fff7e2);
  box-shadow: 0 14px 24px rgba(118,84,13,.14);
}
.badge-choice.selected .badge-choice-shine {
  transform: translateX(130%);
}
.badge-choice.selected .badge-choice-tag {
  background: color-mix(in srgb,var(--badge,#5a87e2) 12%, #fff4c9 88%);
  border-color: color-mix(in srgb,var(--badge,#5a87e2) 28%, #ffd16b 72%);
  color: #6d5600;
}
.badge-choice.selected .badge-medal.mini {
  transform: scale(1.06);
}
.badge-choice.selected .badge-choice-spark {
  opacity: 1;
}
.badge-submit {
  width: 100%;
  margin-top: 14px;
}
.badge-reveal-special {
  background: linear-gradient(180deg,#fff5cf 0%,#fffdf5 42%,#ffffff 100%);
  border: 2px solid rgba(255,194,74,.48);
  box-shadow: 0 22px 38px rgba(118,84,13,.16);
}
.badge-award-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(255,192,66,.35);
  font-size: 15px;
  font-weight: 950;
  color: #8a5f00;
  margin: 0 auto 10px;
  box-shadow: 0 8px 16px rgba(118,84,13,.08);
}
.badge-reveal-special h2 {
  font-size: 28px;
  margin-top: 0;
  color: #17304c;
  text-shadow: 0 1px 0 rgba(255,255,255,.65);
}
.badge-medal-show-special {
  width: 190px;
  height: 184px;
}
.badge-medal-show-special::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  border: 2px dashed rgba(255,195,80,.55);
  animation: badgeSpin 9s linear infinite;
}
.badge-medal-show-special::after {
  content: "";
  position: absolute;
  inset: 34px;
  border-radius: 50%;
  background: radial-gradient(circle,rgba(255,235,160,.92) 0%,rgba(255,235,160,.15) 50%,rgba(255,235,160,0) 72%);
  filter: blur(1px);
}
.badge-medal.big.special {
  width: 124px;
  height: 124px;
  font-size: 60px;
  border: 7px solid #fff;
  box-shadow: 0 18px 26px rgba(23,48,76,.18),0 0 0 8px color-mix(in srgb,var(--badge,#5a87e2) 18%, #fff3cc 82%);
  background: radial-gradient(circle at 50% 28%,#fff 0%,color-mix(in srgb,var(--badge,#5a87e2) 78%, #ffffff 22%) 58%,color-mix(in srgb,var(--badge,#5a87e2) 78%, #203856 22%) 100%);
  position: relative;
  z-index: 3;
  color: #17304c;
  animation: badgeFloat 2.3s ease-in-out infinite, badgeGlow 2.4s ease-in-out infinite;
}
.badge-orbit {
  position: absolute;
  z-index: 4;
  font-size: 22px;
  filter: drop-shadow(0 4px 6px rgba(23,48,76,.12));
  animation: badgeTwinkle 2s ease-in-out infinite;
}
.orbit-a {
  left: 18px;
  top: 36px;
}
.orbit-b {
  right: 18px;
  top: 36px;
  animation-delay: .55s;
}
.orbit-c {
  right: 28px;
  bottom: 28px;
  animation-delay: 1.1s;
}
.badge-reveal-special .selected-task {
  margin-top: 16px;
  padding: 16px 14px;
  background: linear-gradient(180deg,#ffffff,#fffdfa);
  border-color: rgba(255,191,64,.55);
}
.badge-reveal-special .selected-task strong {
  font-size: 21px;
}
.badge-note {
  margin: 4px auto 16px;
  max-width: 285px;
  font-weight: 800;
  color: #5c6c81;
}
@keyframes badgeTwinkle {
  0%,
  100% {
    transform: scale(1);
    opacity: .75;
  }
  50% {
    transform: scale(1.16);
    opacity: 1;
  }
}
@keyframes badgeSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes badgeGlow {
  0%,
  100% {
    box-shadow: 0 18px 26px rgba(23,48,76,.18),0 0 0 8px color-mix(in srgb,var(--badge,#5a87e2) 18%, #fff3cc 82%);
  }
  50% {
    box-shadow: 0 20px 30px rgba(23,48,76,.22),0 0 0 12px color-mix(in srgb,var(--badge,#5a87e2) 26%, #fff3cc 74%);
  }
}
@media (max-width:520px) {
  .badge-stage-head {
    flex-direction: column;
    gap: 6px;
  }
  .badge-stage-stars {
    align-self: flex-end;
  }
  .badge-choice {
    min-height: 90px;
    padding: 11px 11px 12px;
  }
  .badge-choice-main strong {
    font-size: 14px;
  }
  .badge-choice-main small {
    font-size: 11px;
  }
  .badge-medal.mini {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    font-size: 22px;
  }
  .badge-choice-tag {
    font-size: 10px;
    padding: 4px 9px;
  }
  .badge-medal-show-special {
    width: 166px;
    height: 160px;
  }
  .badge-medal.big.special {
    width: 110px;
    height: 110px;
    font-size: 52px;
  }
  .badge-reveal-special h2 {
    font-size: 24px;
  }
}
.progress {
  background: #dff3e7 !important;
  box-shadow: inset 0 2px 4px rgba(42,92,64,.08) !important;
}
.progress span {
  background: linear-gradient(90deg,#43bf72 0%,#56c87a 62%,#f6c85f 100%) !important;
  box-shadow: 0 3px 8px rgba(67,191,114,.25) !important;
}
.rights-sort-card .island-sky {
  height: 118px !important;
  display: grid !important;
  grid-template-columns: 1fr 58px !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 12px 14px !important;
  background: radial-gradient(circle at 18% 24%,rgba(255,255,255,.92) 0 26px,transparent 27px),
    radial-gradient(circle at 36% 54%,rgba(255,255,255,.78) 0 22px,transparent 23px),
    linear-gradient(135deg,#c9f4ff 0%,#e9fff7 100%) !important;
  border: 2px solid rgba(101,196,183,.42) !important;
  border-radius: 24px !important;
  box-shadow: 0 10px 18px rgba(42,85,96,.10) !important;
  overflow: hidden !important;
}
.rights-sort-card .island-title {
  position: relative !important;
  left: auto !important;
  bottom: auto !important;
  z-index: 2 !important;
  color: #07575b !important;
  font-size: clamp(23px,6.5vw,30px) !important;
  line-height: 1.06 !important;
  font-weight: 950 !important;
  max-width: 100% !important;
  text-align: left !important;
  padding: 0 !important;
  text-shadow: 0 3px 0 rgba(255,255,255,.90),0 8px 16px rgba(7,87,91,.14) !important;
}
.rights-sort-card .island-title span {
  display: block !important;
  max-width: 210px !important;
}
.rights-sort-card .island-balance {
  position: relative !important;
  z-index: 3 !important;
  width: 56px !important;
  height: 56px !important;
  border-radius: 18px !important;
  display: grid !important;
  place-items: center !important;
  background: linear-gradient(180deg,#fff9df,#ffffff) !important;
  border: 3px solid rgba(255,188,66,.55) !important;
  box-shadow: 0 10px 18px rgba(135,92,10,.14) !important;
  font-size: 34px !important;
  line-height: 1 !important;
}
.rights-sort-card .drag-helper-text {
  color: #46566b !important;
  font-size: 15px !important;
  margin: 14px 0 12px !important;
}
.rights-sort-card .sort-current {
  min-height: 116px !important;
  border-radius: 24px !important;
  background: linear-gradient(180deg,#ffffff,#fffdfa) !important;
  border: 3px dashed rgba(105,197,177,.46) !important;
  box-shadow: 0 14px 24px rgba(42,85,96,.10) !important;
}
.rights-sort-card .sort-drag-card {
  width: 100%;
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 10px;
}
.rights-sort-card .sort-card-icon {
  width: 60px !important;
  height: 60px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 20px !important;
  background: linear-gradient(180deg,#e8fff2,#ffffff) !important;
  border: 2px solid rgba(105,197,177,.34) !important;
  box-shadow: 0 8px 16px rgba(42,85,96,.10) !important;
  font-size: 34px !important;
}
.rights-sort-card .sort-card-text {
  text-align: left !important;
  font-size: clamp(22px,6vw,29px) !important;
  color: #08294a !important;
}
.rights-sort-card .sort-bin {
  min-height: 126px !important;
  border-radius: 24px !important;
  box-shadow: 0 12px 20px rgba(42,85,96,.09) !important;
  overflow: hidden !important;
  position: relative !important;
}
.rights-sort-card .sort-bin.hak {
  background: linear-gradient(180deg,#f0f8ff,#ffffff) !important;
  border: 3px solid rgba(125,184,249,.50) !important;
}
.rights-sort-card .sort-bin.sorumluluk {
  background: linear-gradient(180deg,#fff4e7,#ffffff) !important;
  border: 3px solid rgba(255,177,104,.52) !important;
}
.rights-sort-card .sort-bin span {
  width: 58px !important;
  height: 58px !important;
  border-radius: 20px !important;
  display: grid !important;
  place-items: center !important;
  background: #fff !important;
  box-shadow: 0 8px 14px rgba(42,85,96,.12) !important;
  font-size: 34px !important;
  margin-bottom: 5px !important;
}
.rights-sort-card .sort-bin strong {
  font-size: 18px !important;
  color: #0b2d4d !important;
  font-weight: 950 !important;
}
.rights-sort-card .sort-bin.sorumluluk strong {
  color: #653012 !important;
}
@media (max-width:520px) {
  .rights-sort-card .island-sky {
    height: 98px !important;
    grid-template-columns: 1fr 48px !important;
    padding: 10px 12px !important;
  }
  .rights-sort-card .island-title {
    font-size: 20px !important;
    line-height: 1.08 !important;
  }
  .rights-sort-card .island-title span {
    max-width: 205px !important;
  }
  .rights-sort-card .island-balance {
    width: 46px !important;
    height: 46px !important;
    border-radius: 15px !important;
    font-size: 28px !important;
  }
}
.final-rozet-card {
  position: relative;
  overflow: hidden;
  width: min(300px,100%);
  margin: 4px auto 2px;
  padding: 16px 14px 14px;
  border-radius: 26px;
  background: linear-gradient(180deg,#fff7dc 0%,#fffdf8 58%,#ffffff 100%);
  border: 2px solid rgba(255,190,70,.45);
  box-shadow: 0 16px 30px rgba(118,84,13,.14);
  text-align: center;
}
.final-rozet-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 22px;
  border: 2px dashed rgba(255,190,70,.28);
  pointer-events: none;
}
.final-rozet-glow {
  position: absolute;
  left: 50%;
  top: 26px;
  width: 130px;
  height: 130px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,228,135,.95) 0%, rgba(255,228,135,.32) 48%, rgba(255,228,135,0) 72%);
  filter: blur(3px);
  animation: finalBadgePulse 2.2s ease-in-out infinite;
}
.final-rozet-medal {
  position: relative;
  z-index: 2;
  width: 98px;
  height: 98px;
  margin: 0 auto 8px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 28%, #fff 0%, var(--badge,#5a87e2) 62%, #2d5388 100%);
  border: 7px solid #fff;
  box-shadow: 0 14px 22px rgba(23,48,76,.18), 0 0 0 8px rgba(255,205,90,.25);
  font-size: 50px;
  line-height: 1;
  animation: finalBadgeFloat 2.4s ease-in-out infinite;
}
.final-rozet-kicker {
  position: relative;
  z-index: 2;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(255,190,70,.40);
  color: #8a5f00;
  font-size: 13px;
  font-weight: 950;
}
.final-rozet-title {
  position: relative;
  z-index: 2;
  margin-top: 8px;
  font-size: 22px;
  line-height: 1.08;
  font-weight: 950;
  color: #17304c;
}
.final-rozet-text {
  position: relative;
  z-index: 2;
  margin-top: 6px;
  color: #607188;
  font-size: 14px;
  line-height: 1.22;
  font-weight: 850;
}
@keyframes finalBadgePulse {
  0%,
  100% {
    transform: translateX(-50%) scale(.94);
    opacity: .72;
  }
  50% {
    transform: translateX(-50%) scale(1.06);
    opacity: 1;
  }
}
@keyframes finalBadgeFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
@media (max-width:520px) {
  .final-rozet-card {
    padding: 13px 12px 12px;
    border-radius: 23px;
  }
  .final-rozet-medal {
    width: 84px;
    height: 84px;
    font-size: 42px;
    margin-bottom: 7px;
  }
  .final-rozet-title {
    font-size: 19px;
  }
}
.energy-game-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 52px;
  gap: 12px;
  align-items: stretch;
  min-height: 170px;
  padding: 16px;
  border-radius: 28px;
  background: linear-gradient(180deg,#ecfff4,#ffffff);
  border: 2px solid rgba(67,191,114,.28);
  box-shadow: 0 14px 26px rgba(23,48,76,.08);
  overflow: hidden;
}
.energy-game-card::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(67,191,114,.12);
  left: -50px;
  bottom: -70px;
}
.energy-head {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.energy-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  max-width: 100%;
  padding: 8px 13px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid rgba(67,191,114,.30);
  color: #138a5b;
  font-weight: 950;
  font-size: 18px;
  box-shadow: 0 8px 16px rgba(67,191,114,.10);
}
.energy-helper {
  color: #607188;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.25;
}
.energy-percent {
  width: max-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff;
  color: #17304c;
  font-size: 21px;
  font-weight: 950;
  box-shadow: 0 8px 16px rgba(23,48,76,.08);
}
.energy-meter {
  position: relative;
  z-index: 2;
  width: 48px;
  height: 138px;
  align-self: center;
  border-radius: 999px;
  background: #e9f7ef;
  border: 4px solid #fff;
  box-shadow: inset 0 2px 8px rgba(23,48,76,.10),0 8px 16px rgba(23,48,76,.09);
  overflow: hidden;
}
.energy-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 999px;
  background: linear-gradient(180deg,#f7d35d 0%,#7bd66d 45%,#29b96f 100%);
  transition: height .35s ease;
}
.energy-bubble {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  font-size: 20px;
  box-shadow: 0 6px 12px rgba(23,48,76,.14);
}
.energy-game-card.low .energy-fill {
  background: linear-gradient(180deg,#ffcf70,#ff7d6e);
}
.energy-game-card.mid .energy-fill {
  background: linear-gradient(180deg,#ffe37a,#7bd66d);
}
.energy-game-card.high .energy-fill {
  background: linear-gradient(180deg,#f7d35d,#43bf72);
}
.energy-question-card {
  margin-top: 14px;
  min-height: 122px;
  border-radius: 26px;
  background: linear-gradient(180deg,#ffffff,#fffdfa);
  border: 3px dashed rgba(67,191,114,.32);
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 12px;
  padding: 16px;
  box-shadow: 0 12px 22px rgba(23,48,76,.07);
}
.energy-q-icon {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg,#e9fff2,#ffffff);
  border: 2px solid rgba(67,191,114,.24);
  box-shadow: 0 8px 15px rgba(23,48,76,.08);
  font-size: 34px;
}
.energy-q-text {
  color: #17304c;
  font-size: 22px;
  line-height: 1.14;
  font-weight: 950;
}
.energy-options {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}
.energy-option {
  position: relative;
  min-height: 68px;
  border-radius: 22px;
  padding: 12px 13px;
  background: #fff;
  border: 2px solid #e0ebf8;
  box-shadow: 0 9px 16px rgba(23,48,76,.07);
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 10px;
  text-align: left;
  color: #17304c;
  font: inherit;
}
.energy-option span {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg,#72cfff,#5a87e2);
  color: #fff;
  font-weight: 950;
}
.energy-option strong {
  font-size: 16px;
  line-height: 1.18;
  font-weight: 900;
}
.energy-option.correct {
  border-color: #39c878;
  background: #eafff2;
}
.energy-option.correct span {
  background: #39c878;
}
.energy-option.wrong {
  border-color: #ef5b7a;
  background: #fff0f4;
}
.energy-option.wrong span {
  background: #ef5b7a;
}
@media (max-width:520px) {
  .energy-game-card {
    min-height: 150px;
    grid-template-columns: 1fr 46px;
    padding: 13px;
  }
  .energy-title {
    font-size: 16px;
    padding: 7px 11px;
  }
  .energy-helper {
    font-size: 14px;
  }
  .energy-percent {
    font-size: 18px;
  }
  .energy-meter {
    width: 42px;
    height: 120px;
  }
  .energy-bubble {
    width: 30px;
    height: 30px;
    font-size: 18px;
  }
  .energy-question-card {
    min-height: 104px;
    grid-template-columns: 52px 1fr;
    padding: 13px;
    border-radius: 24px;
  }
  .energy-q-icon {
    width: 48px;
    height: 48px;
    border-radius: 17px;
    font-size: 29px;
  }
  .energy-q-text {
    font-size: 19px;
  }
  .energy-option {
    min-height: 62px;
    border-radius: 20px;
    grid-template-columns: 34px 1fr;
    padding: 10px 11px;
  }
  .energy-option span {
    width: 32px;
    height: 32px;
    border-radius: 12px;
  }
  .energy-option strong {
    font-size: 14px;
  }
}
.energy-full-card {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  padding: 24px 18px 20px;
  border-radius: 30px;
  background: linear-gradient(180deg,#eafff2 0%,#fffdf3 54%,#ffffff 100%);
  border: 2px solid rgba(67,191,114,.36);
  box-shadow: 0 18px 34px rgba(23,48,76,.12);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.energy-full-card::before,
.energy-full-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: .22;
  background: #43bf72;
}
.energy-full-card::before {
  width: 160px;
  height: 160px;
  left: -62px;
  bottom: -60px;
}
.energy-full-card::after {
  width: 120px;
  height: 120px;
  right: -38px;
  top: -42px;
  background: #f6c85f;
}
.energy-full-glow {
  position: absolute;
  top: 58px;
  left: 50%;
  transform: translateX(-50%);
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle,rgba(255,231,135,.95) 0%,rgba(255,231,135,.36) 48%,rgba(255,231,135,0) 74%);
  filter: blur(4px);
  animation: energyFullPulse 2.2s ease-in-out infinite;
}
.energy-full-icon {
  position: relative;
  z-index: 2;
  width: 126px;
  height: 126px;
  border-radius: 36px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 28%,#fff 0%,#ffe37a 46%,#43bf72 100%);
  border: 7px solid #fff;
  box-shadow: 0 20px 30px rgba(23,48,76,.18),0 0 0 10px rgba(67,191,114,.16);
  font-size: 70px;
  animation: energyFullBounce 2.2s ease-in-out infinite;
}
.energy-full-card h2 {
  position: relative;
  z-index: 2;
  margin: 8px 0 0;
  color: #138a5b;
  font-size: 32px;
  line-height: 1;
  font-weight: 950;
  text-shadow: 0 2px 0 rgba(255,255,255,.85);
}
.energy-full-card p {
  position: relative;
  z-index: 2;
  margin: 0;
  color: #17304c;
  font-size: 21px;
  line-height: 1.15;
  font-weight: 950;
}
.energy-full-sub {
  position: relative;
  z-index: 2;
  max-width: 290px;
  color: #607188;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 850;
}
.energy-full-card .primary-btn {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-top: 8px;
}
.energy-full-confetti {
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.energy-full-confetti span {
  position: absolute;
  width: 10px;
  height: 18px;
  border-radius: 4px;
  animation: energyConfetti 3.2s linear infinite;
}
.energy-full-confetti span:nth-child(1) {
  left: 12%;
  top: -12px;
  background: #43bf72;
  animation-delay: 0s;
}
.energy-full-confetti span:nth-child(2) {
  left: 28%;
  top: -22px;
  background: #f6c85f;
  animation-delay: .25s;
}
.energy-full-confetti span:nth-child(3) {
  left: 42%;
  top: -18px;
  background: #5a87e2;
  animation-delay: .55s;
}
.energy-full-confetti span:nth-child(4) {
  left: 62%;
  top: -15px;
  background: #ef5b7a;
  animation-delay: .85s;
}
.energy-full-confetti span:nth-child(5) {
  left: 78%;
  top: -24px;
  background: #8e70ff;
  animation-delay: 1.15s;
}
.energy-full-confetti span:nth-child(6) {
  left: 88%;
  top: -16px;
  background: #22b573;
  animation-delay: 1.45s;
}
@keyframes energyFullPulse {
  0%,
  100% {
    transform: translateX(-50%) scale(.94);
    opacity: .72;
  }
  50% {
    transform: translateX(-50%) scale(1.08);
    opacity: 1;
  }
}
@keyframes energyFullBounce {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(-2deg);
  }
}
@keyframes energyConfetti {
  0% {
    transform: translateY(-30px) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(460px) rotate(260deg);
    opacity: .8;
  }
}
@media (max-width:520px) {
  .energy-full-card {
    min-height: 380px;
    padding: 20px 14px 18px;
  }
  .energy-full-icon {
    width: 108px;
    height: 108px;
    border-radius: 30px;
    font-size: 60px;
  }
  .energy-full-card h2 {
    font-size: 28px;
  }
  .energy-full-card p {
    font-size: 19px;
  }
}
.target-island-card:not(.rights-sort-card):not(.fossil-sort-card) .island-balance {
  display: none !important;
}
.target-island-card:not(.rights-sort-card):not(.fossil-sort-card) .island-title {
  z-index: 4 !important;
  max-width: calc(100% - 28px) !important;
}
.target-island-card:not(.rights-sort-card):not(.fossil-sort-card) .island-title span {
  display: inline !important;
}
.target-island-card:not(.rights-sort-card):not(.fossil-sort-card) .island-cloud {
  z-index: 1 !important;
  pointer-events: none !important;
}
.target-island-card:not(.rights-sort-card):not(.fossil-sort-card) .island-sky {
  position: relative !important;
}
.target-island-card:not(.rights-sort-card):not(.fossil-sort-card) {
  background: linear-gradient(180deg,#eef9ff 0%,#fffdf6 72%,#ffffff 100%) !important;
  border: 2px solid rgba(90,185,232,.26) !important;
  box-shadow: 0 16px 30px rgba(23,48,76,.10) !important;
}
.target-island-card:not(.rights-sort-card):not(.fossil-sort-card) .island-sky {
  height: 132px !important;
  border-radius: 26px !important;
  position: relative !important;
  overflow: hidden !important;
  background: radial-gradient(circle at 16% 20%,rgba(255,255,255,.95) 0 24px,transparent 25px),
    radial-gradient(circle at 40% 35%,rgba(255,255,255,.78) 0 19px,transparent 20px),
    linear-gradient(180deg,#bdeeff 0%,#e8fbff 46%,#73d3f4 47%,#32b6e8 100%) !important;
  border: 2px solid rgba(93,180,235,.34) !important;
  box-shadow: 0 12px 22px rgba(23,48,76,.09) !important;
}
.target-island-card:not(.rights-sort-card):not(.fossil-sort-card) .island-sky::before {
  content: "";
  position: absolute;
  left: -15px;
  right: -15px;
  bottom: 0;
  height: 42px;
  background: radial-gradient(ellipse at 20% 35%,rgba(255,255,255,.62) 0 18px,transparent 19px),
    radial-gradient(ellipse at 62% 44%,rgba(255,255,255,.46) 0 22px,transparent 23px),
    repeating-linear-gradient(135deg,rgba(255,255,255,.32) 0 11px,rgba(255,255,255,0) 11px 25px);
  opacity: .82;
  z-index: 1;
}
.target-island-card:not(.rights-sort-card):not(.fossil-sort-card) .island-sky::after {
  content: "🏝️";
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 3;
  font-size: 54px;
  filter: drop-shadow(0 8px 10px rgba(23,48,76,.18));
}
.target-island-card:not(.rights-sort-card):not(.fossil-sort-card) .island-cloud {
  z-index: 2 !important;
  opacity: .78 !important;
}
.target-island-card:not(.rights-sort-card):not(.fossil-sort-card) .island-title {
  position: absolute !important;
  left: 18px !important;
  bottom: 22px !important;
  z-index: 4 !important;
  max-width: 210px !important;
  padding: 10px 16px !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg,#c98235,#9a5a21) !important;
  border: 3px solid rgba(255,225,174,.95) !important;
  color: #fff8e8 !important;
  font-size: clamp(24px,7vw,32px) !important;
  line-height: 1 !important;
  text-shadow: 0 3px 0 rgba(78,44,11,.35) !important;
  box-shadow: 0 10px 18px rgba(64,40,16,.18) !important;
}
.target-island-card:not(.rights-sort-card):not(.fossil-sort-card) .island-title::before,
.target-island-card:not(.rights-sort-card):not(.fossil-sort-card) .island-title::after {
  content: "";
  position: absolute;
  top: -13px;
  width: 12px;
  height: 16px;
  border-radius: 5px 5px 0 0;
  background: #7d451b;
  box-shadow: 0 2px 0 rgba(255,255,255,.22) inset;
}
.target-island-card:not(.rights-sort-card):not(.fossil-sort-card) .island-title::before {
  left: 18px;
}
.target-island-card:not(.rights-sort-card):not(.fossil-sort-card) .island-title::after {
  right: 18px;
}
.target-island-card:not(.rights-sort-card):not(.fossil-sort-card) .drag-helper-text {
  margin: 14px 0 12px !important;
  color: #52667d !important;
  font-weight: 950 !important;
}
.target-island-card:not(.rights-sort-card):not(.fossil-sort-card) .sort-current {
  background: linear-gradient(180deg,#ffffff,#fffefa) !important;
  border: 3px dashed rgba(151,154,236,.36) !important;
  box-shadow: 0 12px 22px rgba(23,48,76,.08) !important;
  border-radius: 26px !important;
}
.target-island-card:not(.rights-sort-card):not(.fossil-sort-card) .sort-drag-card {
  width: 100%;
  display: grid;
  grid-template-columns: 60px 1fr;
  align-items: center;
  gap: 10px;
}
.target-island-card:not(.rights-sort-card):not(.fossil-sort-card) .sort-card-icon {
  width: 54px !important;
  height: 54px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg,#fff8df,#ffffff) !important;
  border: 2px solid rgba(255,205,90,.36) !important;
  box-shadow: 0 8px 14px rgba(23,48,76,.09) !important;
  font-size: 32px !important;
}
.target-island-card:not(.rights-sort-card):not(.fossil-sort-card) .sort-bin {
  min-height: 116px !important;
  border-radius: 24px !important;
  box-shadow: 0 12px 20px rgba(23,48,76,.08) !important;
}
.target-island-card:not(.rights-sort-card):not(.fossil-sort-card) .sort-bin.bin-0 {
  background: linear-gradient(180deg,#ecfff4,#ffffff) !important;
  border: 3px solid rgba(67,191,114,.34) !important;
}
.target-island-card:not(.rights-sort-card):not(.fossil-sort-card) .sort-bin.bin-1 {
  background: linear-gradient(180deg,#fff4e7,#ffffff) !important;
  border: 3px solid rgba(255,177,104,.38) !important;
}
.target-island-card:not(.rights-sort-card):not(.fossil-sort-card) .sort-bin span {
  width: 56px !important;
  height: 56px !important;
  border-radius: 20px !important;
  display: grid !important;
  place-items: center !important;
  background: #fff !important;
  box-shadow: 0 8px 14px rgba(23,48,76,.10) !important;
  font-size: 34px !important;
}
.target-island-card:not(.rights-sort-card):not(.fossil-sort-card) .sort-bin strong {
  font-size: 16px !important;
  font-weight: 950 !important;
  color: #0b2d4d !important;
}
@media (max-width:520px) {
  .target-island-card:not(.rights-sort-card):not(.fossil-sort-card) .island-sky {
    height: 112px !important;
    border-radius: 24px !important;
  }
  .target-island-card:not(.rights-sort-card):not(.fossil-sort-card) .island-sky::after {
    right: 14px;
    bottom: 17px;
    font-size: 44px;
  }
  .target-island-card:not(.rights-sort-card):not(.fossil-sort-card) .island-title {
    left: 14px !important;
    bottom: 20px !important;
    max-width: 175px !important;
    padding: 8px 13px !important;
    font-size: 23px !important;
  }
  .target-island-card:not(.rights-sort-card):not(.fossil-sort-card) .sort-drag-card {
    grid-template-columns: 52px 1fr;
  }
  .target-island-card:not(.rights-sort-card):not(.fossil-sort-card) .sort-card-icon {
    width: 48px !important;
    height: 48px !important;
    font-size: 28px !important;
  }
  .target-island-card:not(.rights-sort-card):not(.fossil-sort-card) .sort-bin {
    min-height: 106px !important;
  }
  .target-island-card:not(.rights-sort-card):not(.fossil-sort-card) .sort-bin span {
    width: 50px !important;
    height: 50px !important;
    font-size: 30px !important;
  }
}
.alarm-card {
  border-radius: 30px;
  padding: 16px;
  background: linear-gradient(180deg,#f2fbff 0%,#fffdf6 100%);
  border: 2px solid rgba(90,135,226,.22);
  box-shadow: 0 16px 30px rgba(23,48,76,.10);
}
.alarm-top {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.alarm-badge {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 2px solid rgba(255,192,66,.36);
  box-shadow: 0 8px 16px rgba(23,48,76,.10);
  font-size: 30px;
}
.alarm-top h2 {
  margin: 0;
  color: #17304c;
  font-size: 24px;
  line-height: 1.05;
  font-weight: 950;
}
.alarm-top p {
  margin: 4px 0 0;
  color: #607188;
  font-size: 14px;
  line-height: 1.22;
  font-weight: 850;
}
.alarm-image-box {
  overflow: hidden;
  border-radius: 24px;
  border: 3px solid #fff;
  background: #eef6ff;
  box-shadow: 0 12px 22px rgba(23,48,76,.10);
  aspect-ratio: 4/3;
}
.alarm-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.alarm-situation {
  margin: 13px 0;
  padding: 13px 14px;
  border-radius: 20px;
  background: #fff;
  border: 2px dashed rgba(90,135,226,.28);
  color: #17304c;
  font-size: 18px;
  line-height: 1.18;
  font-weight: 950;
  text-align: center;
}
.alarm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.alarm-choice {
  min-height: 62px;
  border: 0;
  border-radius: 21px;
  color: #fff;
  font: inherit;
  font-size: 18px;
  font-weight: 950;
  box-shadow: 0 10px 18px rgba(23,48,76,.12);
  transition: transform .16s ease, filter .16s ease;
}
.alarm-choice:not(.disabled):active {
  transform: scale(.98);
}
.alarm-choice.alarm {
  background: linear-gradient(180deg,#ff7a6d,#e53935);
}
.alarm-choice.devam {
  background: linear-gradient(180deg,#57d68a,#1ca76a);
}
.alarm-choice.disabled {
  opacity: .82;
}
.alarm-choice.correct {
  filter: saturate(1.15) brightness(1.06);
  outline: 4px solid rgba(67,191,114,.24);
}
.alarm-choice.wrong {
  filter: saturate(.7);
  outline: 4px solid rgba(239,91,122,.22);
}
@media (max-width:520px) {
  .alarm-card {
    padding: 13px;
    border-radius: 27px;
  }
  .alarm-top {
    grid-template-columns: 48px 1fr;
    gap: 10px;
  }
  .alarm-badge {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    font-size: 26px;
  }
  .alarm-top h2 {
    font-size: 21px;
  }
  .alarm-top p {
    font-size: 13px;
  }
  .alarm-situation {
    font-size: 16px;
    padding: 11px 12px;
  }
  .alarm-choice {
    min-height: 56px;
    border-radius: 18px;
    font-size: 16px;
  }
}
.alarm-image-box {
  position: relative;
  background: linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.55),rgba(255,255,255,0)),
    linear-gradient(180deg,#eef6ff,#f7fbff) !important;
  background-size: 220% 100%,100% 100%;
  animation: alarmImageLoading 1.15s ease-in-out infinite;
}
.alarm-image-box img {
  opacity: 0;
  transition: opacity .22s ease;
}
.alarm-image-box img.loaded {
  opacity: 1;
}
@keyframes alarmImageLoading {
  0% {
    background-position: 120% 0,0 0;
  }
  100% {
    background-position: -120% 0,0 0;
  }
}
.image-tf-card {
  border-radius: 30px;
  padding: 16px;
  background: linear-gradient(180deg,#f4fbff 0%,#fffdf7 100%);
  border: 2px solid rgba(0,168,232,.22);
  box-shadow: 0 16px 30px rgba(23,48,76,.10);
}
.image-tf-top {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.image-tf-badge {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 2px solid rgba(0,168,232,.22);
  box-shadow: 0 8px 16px rgba(23,48,76,.10);
  font-size: 30px;
}
.image-tf-top h2 {
  margin: 0;
  color: #17304c;
  font-size: 24px;
  line-height: 1.05;
  font-weight: 950;
}
.image-tf-top p {
  margin: 4px 0 0;
  color: #607188;
  font-size: 14px;
  line-height: 1.22;
  font-weight: 850;
}
.image-tf-box {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 3px solid #fff;
  background: linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.55),rgba(255,255,255,0)),linear-gradient(180deg,#eef6ff,#f7fbff);
  background-size: 220% 100%,100% 100%;
  animation: alarmImageLoading 1.15s ease-in-out infinite;
  box-shadow: 0 12px 22px rgba(23,48,76,.10);
  aspect-ratio: 4/3;
}
.image-tf-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity .22s ease;
}
.image-tf-box img.loaded {
  opacity: 1;
}
.image-tf-situation {
  margin: 13px 0;
  padding: 13px 14px;
  border-radius: 20px;
  background: #fff;
  border: 2px dashed rgba(0,168,232,.28);
  color: #17304c;
  font-size: 18px;
  line-height: 1.18;
  font-weight: 950;
  text-align: center;
}
.image-tf-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.image-tf-choice {
  min-height: 62px;
  border: 0;
  border-radius: 21px;
  color: #fff;
  font: inherit;
  font-size: 30px;
  font-weight: 950;
  box-shadow: 0 10px 18px rgba(23,48,76,.12);
  transition: transform .16s ease, filter .16s ease;
}
.image-tf-choice:not(.disabled):active {
  transform: scale(.98);
}
.image-tf-choice.true {
  background: linear-gradient(180deg,#38c9ff,#0099d8);
}
.image-tf-choice.false {
  background: linear-gradient(180deg,#ff725f,#e3312e);
}
.image-tf-choice.disabled {
  opacity: .82;
}
.image-tf-choice.correct {
  filter: saturate(1.15) brightness(1.06);
  outline: 4px solid rgba(67,191,114,.24);
}
.image-tf-choice.wrong {
  filter: saturate(.7);
  outline: 4px solid rgba(239,91,122,.22);
}
@media (max-width:520px) {
  .image-tf-card {
    padding: 13px;
    border-radius: 27px;
  }
  .image-tf-top {
    grid-template-columns: 48px 1fr;
    gap: 10px;
  }
  .image-tf-badge {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    font-size: 26px;
  }
  .image-tf-top h2 {
    font-size: 21px;
  }
  .image-tf-top p {
    font-size: 13px;
  }
  .image-tf-situation {
    font-size: 16px;
    padding: 11px 12px;
  }
  .image-tf-choice {
    min-height: 56px;
    border-radius: 18px;
    font-size: 27px;
  }
}
.help-hotspot-card {
  background: linear-gradient(180deg,#f7fbff 0%,#ffffff 100%);
  border: 2px solid rgba(167,205,240,.75);
  border-radius: 30px;
  padding: 16px;
  box-shadow: 0 16px 30px rgba(90,135,226,.09);
}
.help-hotspot-top {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(180deg,#dff3ff 0%,#caebff 100%);
  border: 1.5px solid #acd7f4;
  border-radius: 22px;
  padding: 14px 16px;
}
.help-hotspot-badge {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 2px solid #f3d38d;
  font-size: 28px;
  box-shadow: 0 10px 18px rgba(0,0,0,.08);
}
.help-hotspot-top h2 {
  margin: 0 0 4px;
  font-size: 28px;
  line-height: 1.08;
  color: #163a67;
}
.help-hotspot-top p {
  margin: 0;
  color: #55708d;
  font-weight: 700;
}
.help-hotspot-progress {
  margin: 14px 4px 12px;
  color: #44617d;
  font-weight: 800;
  text-align: center;
}
.help-hotspot-image-wrap {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #edf7ff;
  border: 2px solid #bfdcf5;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.85);
}
.help-hotspot-image {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity .25s ease;
}
.help-hotspot-image.loaded {
  opacity: 1;
}
.help-hotspot-point {
  position: absolute;
  transform: translate(-50%,-50%);
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: transparent;
  box-shadow: 0 10px 18px rgba(0,0,0,.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  font-size: 18px;
  font-weight: 900;
}
.help-hotspot-point:hover {
  transform: translate(-50%,-50%) scale(1.08);
}
.help-hotspot-point::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.97);
}
.help-hotspot-point.found {
  background: linear-gradient(180deg,#54cf7a 0%,#24b95d 100%);
  color: #fff;
}
.help-hotspot-point.found::after {
  display: none;
}
.help-hotspot-point.wrong {
  background: linear-gradient(180deg,#ff8b8b 0%,#ff5c5c 100%);
}
@media (max-width: 640px) {
  .help-hotspot-card {
    padding: 14px;
    border-radius: 26px;
  }
  .help-hotspot-top {
    padding: 12px 14px;
    gap: 12px;
  }
  .help-hotspot-badge {
    width: 52px;
    height: 52px;
    font-size: 24px;
  }
  .help-hotspot-top h2 {
    font-size: 21px;
  }
  .help-hotspot-top p {
    font-size: 13px;
  }
  .help-hotspot-point {
    width: 28px;
    height: 28px;
  }
  .help-hotspot-point::after {
    inset: 6px;
  }
}
.help-hotspot-badge {
  font-size: 30px !important;
  color: #ffffff !important;
  background: linear-gradient(180deg,#48c58b,#20a96c) !important;
  border: 3px solid #ffffff !important;
}
.help-hotspot-point {
  width: var(--w, 11%) !important;
  height: var(--h, 13%) !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: transparent !important;
  opacity: 1 !important;
  border-radius: 45% !important;
  overflow: visible !important;
}
.help-hotspot-point::after {
  display: none !important;
}
.help-hotspot-point:hover,
.help-hotspot-point:active,
.help-hotspot-point.found {
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  opacity: 1 !important;
}
.electric-hotspot-card .help-hotspot-check {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg,#3fd37a,#17b65a);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  border: 2px solid #fff;
  box-shadow: 0 5px 10px rgba(0,0,0,.16);
  pointer-events: none;
}
.electric-hotspot-card .help-hotspot-feedback {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 16px;
  text-align: center;
  font-weight: 850;
  line-height: 1.25;
}
.electric-hotspot-card .help-hotspot-feedback-slot {
  min-height: 38px;
  margin-bottom: 8px;
}
.electric-hotspot-card .help-hotspot-feedback.empty {
  visibility: hidden;
  border-color: transparent;
  background: transparent;
}
.electric-hotspot-card .help-hotspot-feedback.good {
  background: #e8fff0;
  border: 1.5px solid #79dca3;
  color: #157347;
}
.electric-hotspot-card .help-hotspot-feedback.bad {
  background: #fff0f0;
  border: 1.5px solid #f0aaaa;
  color: #b42318;
}
.electric-hotspot-card .help-hotspot-feedback.info {
  background: #eef6ff;
  border: 1.5px solid #b7d5f5;
  color: #225c91;
}
.help-hotspot-hint {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  background: #fffaf0;
  border: 1.5px solid #f4d79d;
  color: #69512a;
  font-weight: 850;
  text-align: center;
}
@media (max-width:640px) {
  .help-hotspot-badge {
    font-size: 25px !important;
  }
  .help-hotspot-hint {
    font-size: 13px;
  }
}
@media (max-width: 640px) {
  .help-hotspot-point {
    min-width: 52px !important;
    min-height: 52px !important;
    transform: translate(-50%,-50%) scale(1.08) !important;
  }
  .help-hotspot-point:hover,
  .help-hotspot-point:active,
  .help-hotspot-point.found {
    transform: translate(-50%,-50%) scale(1.08) !important;
  }
}

/* Profession wheel, wheel cards, and completion states. */
.profession-wheel-card {
  background: linear-gradient(180deg,#ffffff,#fffaf1);
  border: 2px solid #d8e8ff;
  border-radius: 30px;
  padding: 18px 14px 16px;
  box-shadow: 0 14px 28px rgba(23,48,76,.10);
}
.profession-wheel-stage {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 6px 0 14px;
}
.profession-wheel-pointer {
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  color: #ff6b57;
  font-size: 26px;
  font-weight: 900;
  z-index: 3;
  text-shadow: 0 2px 0 #fff;
}
.profession-wheel-disc {
  --rotation: 0deg;
  width: min(78vw, 320px);
  height: min(78vw, 320px);
  max-width: 320px;
  max-height: 320px;
  border-radius: 50%;
  position: relative;
  transform: rotate(var(--rotation));
  transition: transform 3.2s cubic-bezier(.10,.72,.16,1.02);
  background: var(--wheel-bg);
  box-shadow: 0 18px 34px rgba(23,48,76,.16);
  border: 10px solid #fff;
}
.profession-wheel-face {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
}
.profession-wheel-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fff;
  border: 5px solid #ffe39d;
  display: grid;
  place-items: center;
  font-size: 30px;
  box-shadow: 0 8px 18px rgba(23,48,76,.16);
  z-index: 2;
}
.profession-wheel-label {
  position: absolute;
  transform: translate(-50%,-50%);
  width: 92px;
  text-align: center;
  color: #17304c;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.15;
  text-shadow: 0 1px 0 rgba(255,255,255,.75);
}
.profession-wheel-label span {
  display: block;
  font-size: 16px;
  margin-bottom: 2px;
}
.profession-wheel-label.active strong {
  color: #0f6c5d;
}
.profession-wheel-label.done {
  opacity: .45;
}
.profession-spin-btn {
  width: 100%;
  margin-top: 4px;
}
.profession-wheel-current {
  margin-top: 10px;
  background: #f5f8ff;
  border: 2px dashed #d8e8ff;
  border-radius: 18px;
  padding: 10px 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 900;
  color: #355070;
}
.profession-wheel-current.active {
  background: #fff7e8;
  border-style: solid;
  border-color: #ffd08c;
  color: #7a4a11;
}
.profession-wheel-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
}
.profession-card {
  background: #fff;
  border: 2px solid #dce8ff;
  border-radius: 22px;
  box-shadow: 0 10px 18px rgba(23,48,76,.08);
  padding: 10px;
  text-align: center;
}
.profession-card.ready {
  border-color: #f4c57b;
}
.profession-card-image-wrap {
  border-radius: 18px;
  overflow: hidden;
  background: #f8fbff;
  aspect-ratio: 1 / 1;
  margin-bottom: 8px;
}
.profession-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity .2s ease;
}
.profession-card-image.loaded {
  opacity: 1;
}
.profession-card-label {
  font-size: 13px;
  font-weight: 900;
  color: #17304c;
  line-height: 1.2;
  min-height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
}
@media (min-width:480px) {
  .profession-wheel-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
}
.profession-wheel-disc.spinning {
  transition: transform 3.2s cubic-bezier(.10,.72,.16,1.02) !important;
  filter: drop-shadow(0 22px 28px rgba(23,48,76,.24));
}
.profession-wheel-disc.spinning .profession-wheel-face {
  animation: professionWheelGlow .32s linear infinite;
}
@keyframes professionWheelGlow {
  0% {
    filter: brightness(1) saturate(1);
  }
  50% {
    filter: brightness(1.16) saturate(1.14);
  }
  100% {
    filter: brightness(1) saturate(1);
  }
}
.profession-wheel-pointer {
  z-index: 5;
}
.profession-spin-btn:disabled {
  opacity: .95;
  transform: scale(.98);
}
.profession-wheel-label {
  width: 86px !important;
  font-size: 11px !important;
  line-height: 1.15 !important;
}
.profession-wheel-label strong {
  display: block;
}
.profession-card.done {
  opacity: .58;
  filter: grayscale(1);
  cursor: default;
}
.profession-card.done .profession-card-image {
  filter: grayscale(1) contrast(.9);
}
.profession-card.done .profession-card-label {
  color: #6b7280;
}
.profession-card-label {
  display: none !important;
}
.profession-card-image-wrap {
  margin-bottom: 0 !important;
}
.finish .final-rozet-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg,#fff8e6,#ffffff) !important;
  border: 3px solid #ffd166 !important;
  box-shadow: 0 18px 34px rgba(245,158,11,.22) !important;
}
.finish .final-rozet-card::before {
  content: "✨";
  position: absolute;
  left: 18px;
  top: 16px;
  font-size: 24px;
  animation: badgeSpark 1.8s ease-in-out infinite;
}
.finish .final-rozet-card::after {
  content: "🎉";
  position: absolute;
  right: 18px;
  top: 16px;
  font-size: 24px;
  animation: badgeSpark 2s ease-in-out infinite reverse;
}
.finish .final-rozet-medal {
  width: 92px !important;
  height: 92px !important;
  margin: 0 auto 12px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 50% !important;
  background: radial-gradient(circle at 35% 30%,#fff7bd,#f59e0b 58%,#b45309) !important;
  border: 7px solid #fff3c4 !important;
  box-shadow: 0 12px 24px rgba(180,83,9,.25), inset 0 0 0 4px rgba(255,255,255,.35) !important;
  font-size: 46px !important;
}
.finish .final-rozet-kicker {
  display: inline-block !important;
  padding: 7px 14px !important;
  border-radius: 999px !important;
  background: #fff7d6 !important;
  border: 1px solid #ffd166 !important;
  color: #a16207 !important;
  font-weight: 950 !important;
}
.finish .final-rozet-title {
  color: #17304c !important;
  font-size: 22px !important;
  margin-top: 10px !important;
}
.finish .final-rozet-text {
  color: #54637a !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
}
.finish h1 {
  letter-spacing: -.3px;
}
.finish .score-box {
  background: linear-gradient(180deg,#ffffff,#f7fbff) !important;
  border: 2px solid #e5efff !important;
  box-shadow: 0 10px 22px rgba(23,48,76,.08) !important;
}
@keyframes badgeSpark {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
    opacity: .75;
  }
  50% {
    transform: scale(1.18) rotate(10deg);
    opacity: 1;
  }
}

/* Science lab sorting boards and shared drag/drop target styles. */
.science-lab-card,
.science-smile-card,
.science-journal-card,
.science-journal-question {
  background: linear-gradient(180deg,rgba(255,255,255,.96),rgba(237,253,255,.94));
  border: 2px solid rgba(14,165,168,.18);
  box-shadow: 0 14px 30px rgba(16,91,105,.12);
  border-radius: 26px;
}
.science-lab-card {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}
.science-lab-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg,#dffcff,#e8fff4);
  border-radius: 20px;
  padding: 11px 12px;
  color: #11445a;
}
.science-lab-kicker {
  font-size: 13px;
  font-weight: 950;
  color: #0b8f94;
  margin-bottom: 3px;
}
.science-lab-top strong {
  display: block;
  font-size: 14px;
  line-height: 1.2;
}
.science-lab-counter {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: #fff;
  display: grid;
  place-items: center;
  font-weight: 950;
  color: #0b8f94;
  box-shadow: inset 0 0 0 2px rgba(14,165,168,.16);
}
.science-current-zone {
  min-height: 124px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 20%,#ffffff 0,#ecfeff 72%);
  border: 2px dashed rgba(14,165,168,.28);
  border-radius: 24px;
  padding: 12px;
}
.science-drag-card {
  touch-action: none;
  cursor: grab;
  user-select: none;
  width: min(100%,520px);
  background: linear-gradient(135deg,#ffffff,#f0fffb);
  border: 3px solid rgba(14,165,168,.35);
  border-radius: 22px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: clamp(16px,4.2vw,22px);
  line-height: 1.18;
  box-shadow: 0 12px 26px rgba(16,91,105,.14);
}
.science-drag-card.dragging {
  cursor: grabbing;
  box-shadow: 0 22px 48px rgba(16,91,105,.22);
  transition: none;
  will-change: transform,left,top;
}
body.is-dragging-sort .science-current-zone {
  border-color: rgba(14,165,168,.42);
  background: radial-gradient(circle at 50% 20%,#ffffff 0,#ecfeff 66%,#e3fbfa 100%);
}
.science-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #dffcff;
  font-size: 28px;
  flex: 0 0 auto;
}
.science-all-done {
  font-size: 20px;
  font-weight: 950;
  color: #0b8f94;
  text-align: center;
}
.science-bins {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
}
.science-bin {
  min-height: 96px;
  border-radius: 22px;
  padding: 12px;
  background: #fff;
  color: #12314b;
  border: 2px solid rgba(14,165,168,.22);
  box-shadow: 0 8px 18px rgba(16,91,105,.08), inset 0 0 0 1px rgba(255,255,255,.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 950;
  line-height: 1.14;
  transition: transform .15s ease,border-color .15s ease,background .15s ease,box-shadow .15s ease;
  position: relative;
}
.science-bin span {
  font-size: 26px;
}
.science-bin.no-icon {
  gap: 0;
  padding: 16px 12px;
}
.science-bin.no-icon strong {
  font-size: 19px;
  line-height: 1.15;
}
.science-bins.count-5 {
  grid-template-columns: repeat(6,minmax(0,1fr));
  gap: 10px;
}
.science-bins.count-5 .science-bin {
  grid-column: span 2;
  min-height: 88px;
}
.science-bins.count-5 .science-bin:nth-child(4) {
  grid-column: 2 / span 2;
}
.science-bins.count-5 .science-bin:nth-child(5) {
  grid-column: 4 / span 2;
}
.science-bin-eleme {
  background: #e8f4ff;
  border-color: #72b7ff;
}
.science-bin-suzme {
  background: #ffeaf3;
  border-color: #ff8eb9;
}
.science-bin-dinlendirme {
  background: #eaf9ea;
  border-color: #81cd8b;
}
.science-bin-yuzdurme {
  background: #fff3e5;
  border-color: #f5ab56;
}
.science-bin-miknatis {
  background: #f1ebff;
  border-color: #a88cf0;
}
.science-bin.no-icon.drop-hover,
.science-bin.no-icon:hover {
  transform: translateY(-2px) scale(1.02);
  filter: saturate(1.06);
}
body.is-dragging-sort .science-bin.science-bin-eleme {
  background: #edf7ff;
}
body.is-dragging-sort .science-bin.science-bin-suzme {
  background: #fff0f6;
}
body.is-dragging-sort .science-bin.science-bin-dinlendirme {
  background: #eefbef;
}
body.is-dragging-sort .science-bin.science-bin-yuzdurme {
  background: #fff7ed;
}
body.is-dragging-sort .science-bin.science-bin-miknatis {
  background: #f5f1ff;
}
@media (max-width:560px) {
  .science-bins.count-5 .science-bin {
    min-height: 82px;
    padding: 14px 8px;
  }
  .science-bin.no-icon strong {
    font-size: 16px;
  }
}
.science-bin.drop-hover,
.science-bin:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: #0ea5a8;
  background: #e6fffb;
  box-shadow: 0 12px 24px rgba(14,165,168,.14),0 0 0 4px rgba(14,165,168,.10);
}
body.is-dragging-sort .science-bin {
  border-style: dashed;
  background: linear-gradient(180deg,#ffffff,#f5fffe);
  box-shadow: 0 10px 20px rgba(16,91,105,.10),0 0 0 3px rgba(14,165,168,.08);
}
body.is-dragging-sort .science-bin::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 28px;
}
.science-smile-card {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  justify-content: center;
}
.science-smile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.science-smile-badge {
  background: linear-gradient(135deg,#0ea5a8,#3dbb7d);
  color: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 950;
  box-shadow: 0 8px 16px rgba(14,165,168,.18);
}
.science-smile-tools {
  display: flex;
  gap: 6px;
  font-size: 22px;
}
.science-smile-helper {
  background: #ecfeff;
  border-radius: 16px;
  padding: 10px 12px;
  color: #27606b;
  font-weight: 850;
  line-height: 1.2;
}
.science-smile-statement {
  flex: 1;
  min-height: 150px;
  display: grid;
  place-items: center;
  text-align: center;
  background: #fff;
  border-radius: 24px;
  padding: 16px;
  font-size: clamp(23px,6vw,34px);
  font-weight: 950;
  line-height: 1.13;
  color: #172033;
  box-shadow: inset 0 0 0 2px rgba(14,165,168,.10);
}
.science-smile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.science-smile-btn {
  min-height: 68px;
  border-radius: 22px;
  color: #fff;
  font-size: clamp(20px,5.5vw,28px);
  font-weight: 950;
  box-shadow: 0 12px 24px rgba(16,91,105,.14);
}
.science-smile-btn.true {
  background: linear-gradient(180deg,#34d399,#059669);
}
.science-smile-btn.false {
  background: linear-gradient(180deg,#fb7185,#e11d48);
}
.science-journal-card {
  padding: 14px;
  background: linear-gradient(180deg,#fffdf5,#f3fffb);
  position: relative;
}
.science-journal-card::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 56px;
  bottom: 18px;
  width: 4px;
  border-radius: 99px;
  background: repeating-linear-gradient(to bottom,#0ea5a8 0 8px,transparent 8px 16px);
  opacity: .38;
}
.science-journal-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0b8f94;
  font-weight: 950;
  font-size: 17px;
  margin-bottom: 8px;
}
.science-journal-head span {
  font-size: 26px;
}
.science-journal-story {
  margin-left: 18px;
  background: rgba(255,255,255,.72);
  border-radius: 18px;
  padding: 12px 12px;
  font-weight: 800;
  line-height: 1.35;
  color: #21324a;
  font-size: clamp(13px,3.2vw,15px);
}
.science-journal-question {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  font-size: clamp(18px,4.7vw,24px);
  line-height: 1.15;
  color: #15253a;
}
.journal-question-no {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: #0ea5a8;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 950;
  flex: 0 0 auto;
}
.science-journal-options {
  display: grid;
  gap: 9px;
}
.science-journal-option {
  min-height: 56px;
  border-radius: 18px;
  background: #fff;
  padding: 10px 12px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: #172033;
  box-shadow: 0 8px 18px rgba(16,91,105,.09);
  border: 2px solid transparent;
}
.science-journal-option span {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #e0fbff;
  color: #0b8f94;
  font-weight: 950;
  flex: 0 0 auto;
}
.science-journal-option:hover {
  border-color: #0ea5a8;
  background: #f0fffb;
}
@media (max-width:560px) {
  .science-bins {
    grid-template-columns: 1fr;
  }
  .science-bin {
    min-height: 74px;
  }
  .science-smile-actions {
    grid-template-columns: 1fr;
  }
  .science-smile-statement {
    min-height: 118px;
  }
  .science-journal-story {
    font-size: 13px;
  }
  .science-current-zone {
    min-height: 105px;
  }
  .science-drag-card {
    font-size: 16px;
    padding: 12px;
  }
  .science-card-icon {
    width: 42px;
    height: 42px;
    font-size: 24px;
  }
}
@media (max-height:720px) {
  .science-lab-card,
  .science-smile-card,
  .science-journal-card {
    padding: 11px;
    border-radius: 22px;
  }
  .science-current-zone {
    min-height: 92px;
    padding: 9px;
  }
  .science-bin {
    min-height: 68px;
    font-size: 13px;
  }
  .science-smile-statement {
    min-height: 105px;
    font-size: 22px;
  }
  .science-smile-btn {
    min-height: 54px;
  }
  .science-journal-story {
    max-height: 120px;
    overflow: auto;
  }
  .science-journal-option {
    min-height: 48px;
  }
}
.science-bin-soru {
  background: linear-gradient(180deg,#dffcff,#f2ffff);
  border-color: #0ea5a8;
  border-radius: 26px 26px 14px 14px;
  box-shadow: inset 0 -4px 0 rgba(14,165,168,.18),0 8px 18px rgba(16,91,105,.08);
}
.science-bin-soru span {
  font-size: 31px;
}
.science-bin-degisebilir {
  background: linear-gradient(135deg,#f7fbff,#e8f1ff);
  border-color: #5b8cff;
  border-style: dashed;
  border-radius: 18px 34px 18px 34px;
  box-shadow: 0 8px 18px rgba(59,130,246,.10);
}
.science-bin-degisebilir span {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #2563eb;
  color: #fff;
  font-size: 22px;
}
.science-bin-kanit {
  align-items: flex-start;
  text-align: left;
  background: linear-gradient(180deg,#fffdf5,#fff7dc);
  border-color: #f2c94c;
  border-radius: 14px;
  border-left: 8px solid #e2a900;
  padding-left: 14px;
}
.science-bin-kanit span {
  font-size: 30px;
  margin-left: 2px;
}
.science-bin-yaraticilik {
  background: radial-gradient(circle at 50% 12%,#fff6b8 0,#fff6b8 24%,#fffdf2 25%,#ffffff 100%);
  border-color: #f59e0b;
  border-radius: 34px 18px 34px 18px;
  box-shadow: 0 8px 18px rgba(245,158,11,.12),inset 0 0 0 4px rgba(255,245,187,.55);
}
.science-bin-yaraticilik span {
  font-size: 32px;
  filter: drop-shadow(0 3px 4px rgba(245,158,11,.22));
}
.science-bin-soru.drop-hover,
.science-bin-soru:hover {
  background: #d7fbff;
  border-color: #0891b2;
}
.science-bin-degisebilir.drop-hover,
.science-bin-degisebilir:hover {
  background: #e7f0ff;
  border-color: #2563eb;
}
.science-bin-kanit.drop-hover,
.science-bin-kanit:hover {
  background: #fff3c4;
  border-color: #d99a00;
}
.science-bin-yaraticilik.drop-hover,
.science-bin-yaraticilik:hover {
  background: #fff7d1;
  border-color: #d97706;
}
@media (max-width:560px) {
  .science-bin-kanit {
    align-items: center;
    text-align: center;
    border-left: 2px solid #f2c94c;
    padding-left: 10px;
  }
  .science-bin-degisebilir span {
    width: 34px;
    height: 34px;
    font-size: 20px;
  }
}
.living-sort-card,
.group-board-card,
.feature-pick-card {
  background: linear-gradient(180deg,#ffffff,#f6fffb);
  border-radius: 24px;
  padding: 14px;
  box-shadow: 0 12px 26px rgba(23,48,76,.09);
}
.living-sort-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.living-sort-counter,
.feature-stage-title,
.group-board-question {
  font-weight: 900;
}
.living-sort-counter {
  color: #0c7a39;
  font-size: 15px;
}
.living-sort-stage {
  min-height: 215px;
  display: grid;
  place-items: center;
  padding: 8px 0 14px;
}
.living-sort-draggable {
  width: min(230px,72vw);
  aspect-ratio: 1/1;
  background: #fff;
  border: 3px dashed #9fd8ac;
  border-radius: 26px;
  box-shadow: 0 12px 24px rgba(22,163,74,.12);
  display: grid;
  place-items: center;
  touch-action: none;
  position: relative;
  user-select: none;
}
.living-sort-draggable.dragging {
  position: fixed;
  z-index: 40;
  box-shadow: 0 20px 36px rgba(23,48,76,.18);
  transform: scale(1.03);
}
.living-sort-image {
  max-width: 84%;
  max-height: 84%;
  object-fit: contain;
  display: block;
}
.living-sort-complete {
  font-size: 20px;
  font-weight: 900;
  color: #0c7a39;
  text-align: center;
}
.living-bins {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.living-bin {
  min-height: 96px;
  border-radius: 24px;
  padding: 10px;
  background: #fff;
  border: 3px solid #d7efe0;
  box-shadow: 0 10px 18px rgba(23,48,76,.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 900;
  transition: transform .15s ease,border-color .15s ease,box-shadow .15s ease;
}
.living-bin:active {
  transform: scale(.98);
}
.living-bin.drop-hover {
  border-color: #16a34a;
  box-shadow: 0 0 0 4px rgba(22,163,74,.12),0 10px 18px rgba(23,48,76,.08);
}
.living-bin-icon {
  font-size: 28px;
  line-height: 1;
}
.living-bin-canli {
  background: linear-gradient(180deg,#f1fff4,#e0f9ea);
}
.living-bin-cansiz {
  background: linear-gradient(180deg,#fff8ef,#f5efe5);
}
.group-board-images {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.group-board-image-wrap {
  background: #fff;
  border: 2px solid #d9efe3;
  border-radius: 20px;
  min-height: 112px;
  display: grid;
  place-items: center;
  padding: 8px;
  box-shadow: 0 8px 16px rgba(23,48,76,.06);
}
.group-board-image {
  max-width: 100%;
  max-height: 96px;
  object-fit: contain;
  display: block;
}
.group-board-question {
  font-size: 18px;
  line-height: 1.18;
  text-align: center;
  margin: 6px 0 12px;
}
.feature-image-box {
  background: #fff;
  border: 2px solid #d8f0de;
  border-radius: 22px;
  min-height: 200px;
  display: grid;
  place-items: center;
  padding: 10px;
  margin-bottom: 12px;
  box-shadow: 0 8px 16px rgba(23,48,76,.06);
}
.feature-main-image {
  max-width: 86%;
  max-height: 190px;
  object-fit: contain;
  display: block;
}
.feature-image-caption {
  font-size: 22px;
  font-weight: 900;
  text-align: center;
  color: #183153;
  margin: -2px 0 8px;
}
.feature-stage-title {
  font-size: 18px;
  line-height: 1.16;
  margin: 4px 0 12px;
  text-align: center;
}
.feature-group-grid,
.feature-toggle-grid {
  display: grid;
  gap: 10px;
}
.feature-group-grid {
  grid-template-columns: repeat(2,minmax(0,1fr));
}
.feature-group-btn,
.feature-toggle-btn {
  min-height: 48px;
  border-radius: 18px;
  background: #fff;
  border: 2px solid #d8e9de;
  box-shadow: 0 8px 16px rgba(23,48,76,.06);
  font-weight: 900;
  font-size: 15px;
  padding: 10px;
}
.feature-group-btn:active,
.feature-toggle-btn:active {
  transform: scale(.98);
}
.feature-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  text-align: left;
}
.feature-toggle-btn.selected {
  border-color: #16a34a;
  background: #ebfff1;
  box-shadow: 0 0 0 3px rgba(22,163,74,.12),0 8px 16px rgba(23,48,76,.06);
}
.feature-toggle-btn .tick {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eef5f0;
  color: #16a34a;
  font-size: 18px;
  font-weight: 900;
  flex: 0 0 auto;
}
.feature-toggle-btn.selected .tick {
  background: #16a34a;
  color: #fff;
}
.feature-submit-btn {
  width: 100%;
  margin-top: 12px;
}
@media (max-width:390px) {
  .group-board-images {
    gap: 8px;
  }
  .group-board-image-wrap {
    min-height: 98px;
  }
  .group-board-question,
  .feature-stage-title {
    font-size: 17px;
  }
  .living-bins {
    gap: 10px;
  }
}
.living-sort-top.only-counter {
  justify-content: flex-end;
  margin-bottom: 4px;
}
.living-sort-draggable.dragging {
  transform: none;
  opacity: .92;
}
.living-bin {
  min-height: 104px;
  padding: 12px;
}
.group-board-top {
  margin-bottom: 10px;
}
.group-board-images {
  grid-template-columns: repeat(2,minmax(0,1fr));
}
.group-drop-slot {
  background: linear-gradient(180deg,#f3fff6,#ebfff1);
  border: 3px dashed #96d8a4;
  border-radius: 20px;
  min-height: 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
  box-shadow: 0 8px 16px rgba(23,48,76,.06);
  text-align: center;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.group-drop-slot.drop-hover {
  border-color: #16a34a;
  box-shadow: 0 0 0 4px rgba(22,163,74,.12),0 8px 16px rgba(23,48,76,.06);
  transform: scale(1.02);
}
.group-drop-plus {
  font-size: 30px;
  font-weight: 900;
  color: #16a34a;
  line-height: 1;
}
.group-drop-label {
  font-size: 13px;
  font-weight: 900;
  color: #0c7a39;
  line-height: 1.1;
  margin-top: 4px;
}
.group-option-image-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
}
.group-option-card {
  background: #fff;
  border: 2px solid #d6f0dc;
  border-radius: 18px;
  box-shadow: 0 8px 16px rgba(23,48,76,.07);
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  touch-action: none;
  user-select: none;
  position: relative;
  min-height: 132px;
}
.group-option-card.dragging {
  position: fixed;
  z-index: 45;
  box-shadow: 0 20px 34px rgba(23,48,76,.18);
  opacity: .94;
}
.group-option-image-wrap {
  width: 100%;
  aspect-ratio: 1/1;
  background: #f7fbf8;
  border-radius: 14px;
  display: grid;
  place-items: center;
  padding: 6px;
}
.group-option-image {
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
  display: block;
}
.group-option-caption {
  font-size: 14px;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
}
@media (max-width:390px) {
  .group-option-image-grid {
    gap: 8px;
  }
  .group-option-card {
    min-height: 122px;
    padding: 7px;
  }
  .group-option-caption {
    font-size: 13px;
  }
}
.feature-toggle-btn.wrong-selected {
  border-color: #ef4444 !important;
  background: #fff1f2 !important;
  box-shadow: 0 0 0 3px rgba(239,68,68,.12),0 8px 16px rgba(23,48,76,.06) !important;
}
.feature-toggle-btn.wrong-selected .tick {
  background: #ef4444 !important;
  color: #fff !important;
}
.feature-toggle-btn.selected {
  border-color: #3b82f6 !important;
  background: #eff6ff !important;
  box-shadow: 0 0 0 3px rgba(59,130,246,.12),0 8px 16px rgba(23,48,76,.06) !important;
}
.feature-toggle-btn.selected .tick {
  background: #3b82f6 !important;
  color: #fff !important;
}
.feature-toggle-btn.checked-correct {
  border-color: #16a34a !important;
  background: #ebfff1 !important;
  box-shadow: 0 0 0 3px rgba(22,163,74,.12),0 8px 16px rgba(23,48,76,.06) !important;
}
.feature-toggle-btn.checked-correct .tick {
  background: #16a34a !important;
  color: #fff !important;
}
.science-drag-card-image {
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 12px;
  min-height: 164px;
}
.science-card-image-wrap {
  width: 100%;
  display: grid;
  place-items: center;
  background: #f7fbf8;
  border-radius: 18px;
  padding: 8px;
}
.science-card-image {
  width: min(100%,140px);
  height: auto;
  max-height: 116px;
  object-fit: contain;
  display: block;
}
.science-card-caption {
  font-weight: 900;
  font-size: 18px;
  line-height: 1.1;
}
@media (max-width:560px) {
  .science-drag-card-image {
    min-height: 148px;
    padding: 10px;
  }
  .science-card-image {
    max-height: 100px;
    width: min(100%,120px);
  }
  .science-card-caption {
    font-size: 16px;
  }
}
.science-bin {
  text-align: center;
  position: relative;
  overflow: hidden;
}
.science-bin strong {
  display: block;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.science-bin.no-icon {
  min-height: 108px;
  padding: 14px 16px;
  background: linear-gradient(180deg,#ffffff 0%,#f6fffd 100%);
  border-color: rgba(14,165,168,.22);
  box-shadow: 0 10px 20px rgba(16,91,105,.08), inset 0 0 0 1px rgba(255,255,255,.85);
}
.science-bin.no-icon strong {
  font-size: 18px;
  line-height: 1.22;
  color: #17324c;
}
.science-bin.no-icon.drop-hover,
.science-bin.no-icon:hover {
  background: linear-gradient(180deg,#edfffb 0%,#dcfbf4 100%);
  border-color: #19b2b3;
  box-shadow: 0 14px 26px rgba(16,91,105,.12), 0 0 0 4px rgba(14,165,168,.10);
}
@media (max-width:560px) {
  .science-bin.no-icon {
    min-height: 96px;
    padding: 12px 12px;
  }
  .science-bin.no-icon strong {
    font-size: 15px;
  }
}
.mc-image-card {
  background: #fff;
  border: 2px solid rgba(14,165,168,.18);
  border-radius: 24px;
  padding: 10px;
  box-shadow: 0 10px 22px rgba(16,91,105,.08);
  display: grid;
  place-items: center;
  margin-top: -4px;
}
.mc-image {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  display: block;
  border-radius: 18px;
}
@media (max-height:720px) {
  .mc-image {
    max-height: 160px;
  }
  .mc-image-card {
    padding: 8px;
    border-radius: 20px;
  }
}
@media (max-width:420px) {
  .mc-image {
    max-height: 190px;
  }
}
.ladder-step.has-visual {
  align-items: stretch;
}
.step-card.has-image {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  min-height: 96px;
}
.step-figure {
  width: 82px;
  height: 82px;
  border-radius: 16px;
  background: #f7faf8;
  border: 2px solid #e5edf8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 82px;
}
.step-figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.step-card .step-text {
  font-weight: 900;
  color: #17304c;
  line-height: 1.22;
  flex: 1;
}
@media (max-width:520px) {
  .step-card.has-image {
    min-height: 86px;
    padding: 8px;
    gap: 8px;
  }
  .step-figure {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    flex-basis: 64px;
  }
  .step-card .step-text {
    font-size: 13px;
  }
}
.drag-ladder .ladder-step.has-visual {
  grid-template-columns: 42px 1fr 34px 82px;
}
.step-card.has-image {
  min-height: 126px;
  align-items: center;
}
.step-figure {
  width: 118px !important;
  height: 104px !important;
  flex: 0 0 118px !important;
}
.step-figure img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}
@media (max-width:520px) {
  .drag-ladder .ladder-step.has-visual {
    grid-template-columns: 34px 1fr 28px 70px;
    align-items: center;
  }
  .step-card.has-image {
    min-height: 136px !important;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    padding: 8px 6px !important;
    text-align: center;
  }
  .step-figure {
    width: 128px !important;
    height: 92px !important;
    flex: 0 0 92px !important;
    border-radius: 16px;
  }
  .step-card .step-text {
    font-size: 13px;
    line-height: 1.15;
  }
}

/* Life-cycle sequential image slot game. */
.sequence-game-card {
  background: linear-gradient(180deg,#fffdf3,#ffffff);
  border: 2px solid rgba(255,192,66,.28);
  border-radius: 28px;
  padding: 14px;
  box-shadow: 0 12px 24px rgba(80,59,14,.08);
}
.sequence-slot-title,
.sequence-choice-title {
  font-weight: 950;
  color: #17304c;
  text-align: center;
  line-height: 1.2;
}
.sequence-slot-title {
  margin-bottom: 10px;
}
.sequence-choice-title {
  margin: 12px 0 8px;
  color: #607188;
  font-size: 13px;
}
.sequence-slots {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
}
.sequence-slot {
  min-height: 128px;
  border-radius: 20px;
  border: 2px dashed #bfe3d6;
  background: #f8fffb;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px;
  color: #17304c;
  font: inherit;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 14px rgba(23,48,76,.05);
}
.sequence-slot.filled {
  border-style: solid;
  border-color: #cfe5fa;
  background: #fff;
}
.sequence-slot.can-place {
  border-color: #59c88e;
  background: #effff5;
}
.sequence-slot.drop-hover {
  border-color: #16a34a;
  background: #e9fff0;
  box-shadow: 0 0 0 4px rgba(22,163,74,.12);
}
.sequence-slot img {
  width: 100%;
  height: 82px;
  object-fit: contain;
  display: block;
  border-radius: 12px;
  background: #f8faf8;
}
.sequence-caption {
  font-size: 12px;
  font-weight: 950;
  line-height: 1.05;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.slot-empty-mark {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg,#75d0ff,#5a87e2);
  color: #fff;
  font-weight: 950;
  font-size: 20px;
  box-shadow: 0 8px 15px rgba(90,135,226,.20);
}
.sequence-slot small {
  font-weight: 900;
  color: #8a9ab0;
}
.sequence-choices {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
}
.sequence-choice-card {
  border: 2px solid #d6e8fb;
  background: #fff;
  border-radius: 22px;
  padding: 9px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font: inherit;
  color: #17304c;
  box-shadow: 0 10px 18px rgba(23,48,76,.08);
  touch-action: none;
  position: relative;
  user-select: none;
}
.sequence-choice-card.selected {
  border-color: #16a34a;
  background: #ebfff1;
  box-shadow: 0 0 0 4px rgba(22,163,74,.12),0 10px 18px rgba(23,48,76,.08);
}
.sequence-choice-card.dragging {
  position: fixed;
  z-index: 50;
  opacity: .94;
  transform: scale(.88);
  box-shadow: 0 20px 34px rgba(23,48,76,.20);
}
.sequence-choice-card img {
  width: 100%;
  height: 102px;
  object-fit: contain;
  border-radius: 16px;
  background: #f7faf8;
}
.sequence-choice-card strong {
  font-size: 14px;
  line-height: 1.1;
  text-align: center;
}
.sequence-check-btn {
  width: 100%;
  margin-top: 12px;
}
.sequence-check-btn:disabled {
  opacity: .45;
}
@media (max-width:520px) {
  .sequence-game-card {
    padding: 10px;
    border-radius: 24px;
  }
  .sequence-slots {
    gap: 7px;
  }
  .sequence-slot {
    min-height: 112px;
    border-radius: 18px;
    padding: 6px;
  }
  .sequence-slot img {
    height: 70px;
  }
  .sequence-caption {
    font-size: 11px;
  }
  .slot-empty-mark {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }
  .sequence-choices {
    gap: 8px;
  }
  .sequence-choice-card {
    min-height: 132px;
    padding: 7px;
  }
  .sequence-choice-card img {
    height: 88px;
  }
  .sequence-choice-card strong {
    font-size: 12px;
  }
}
@media (max-width:380px) {
  .sequence-slot {
    min-height: 104px;
  }
  .sequence-slot img {
    height: 62px;
  }
  .sequence-choice-card {
    min-height: 122px;
  }
  .sequence-choice-card img {
    height: 78px;
  }
}
.sequence-slot.locked {
  opacity: .82;
  background: #f7fbfa;
  border-color: #dceee6;
  cursor: not-allowed;
}
.sequence-slot.locked .slot-empty-mark {
  background: linear-gradient(180deg,#d9e4ef,#b9c8d6);
  box-shadow: none;
}
.sequence-slot.active-next {
  border-color: #4cc88a;
  background: #f0fff6;
  box-shadow: 0 0 0 4px rgba(22,163,74,.10),0 8px 14px rgba(23,48,76,.05);
}
.sequence-slot.active-next .slot-empty-mark {
  background: linear-gradient(180deg,#61d394,#16a34a);
}
.sequence-slot small {
  font-size: 12px;
  line-height: 1.08;
  text-align: center;
  max-width: 92%;
  display: block;
  color: #607188;
  font-weight: 950;
}
.sequence-slot.active-next small {
  color: #0c7a39;
}
.sequence-slot.locked small {
  color: #9aa9b7;
}
@media (max-width:520px) {
  .sequence-slot small {
    font-size: 10.5px;
  }
}
.sequence-choices.all-choices.six {
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 7px;
}
.sequence-choices.all-choices.four {
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 9px;
}
.sequence-choices.all-choices .sequence-choice-card {
  min-height: 112px;
  padding: 6px;
  border-radius: 18px;
  gap: 5px;
}
.sequence-choices.all-choices .sequence-choice-card img {
  height: 74px;
  border-radius: 14px;
}
.sequence-choices.all-choices .sequence-choice-card strong {
  font-size: 11px;
  line-height: 1.05;
}
@media (max-width:520px) {
  .sequence-choices.all-choices.six {
    gap: 6px;
  }
  .sequence-choices.all-choices .sequence-choice-card {
    min-height: 98px;
    padding: 5px;
    border-radius: 16px;
  }
  .sequence-choices.all-choices .sequence-choice-card img {
    height: 58px;
    border-radius: 12px;
  }
  .sequence-choices.all-choices .sequence-choice-card strong {
    font-size: 10px;
    line-height: 1.05;
  }
}
@media (max-width:380px) {
  .sequence-choices.all-choices .sequence-choice-card {
    min-height: 88px;
  }
  .sequence-choices.all-choices .sequence-choice-card img {
    height: 50px;
  }
  .sequence-choices.all-choices .sequence-choice-card strong {
    font-size: 9px;
  }
}

/* Image use-choice game: one large use-case image, material choices below. */
.use-choice-card {
  background: linear-gradient(180deg,#ffffff,#f6fffb);
  border: 2px solid rgba(15,118,110,.16);
  border-radius: 24px;
  padding: 14px;
  box-shadow: 0 12px 26px rgba(23,48,76,.09);
}
.use-choice-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e7fff8;
  color: #0f766e;
  font-weight: 900;
  padding: 7px 12px;
  margin-bottom: 10px;
  font-size: 14px;
}
.use-main-image-wrap {
  min-height: 230px;
  border-radius: 22px;
  background: #fff;
  border: 2px solid #d8f0de;
  display: grid;
  place-items: center;
  padding: 10px;
  overflow: hidden;
}
.use-main-image {
  max-width: 100%;
  max-height: 250px;
  object-fit: contain;
  display: block;
}
.use-main-caption {
  font-size: 21px;
  font-weight: 950;
  line-height: 1.18;
  color: #183153;
  text-align: center;
  margin-top: 10px;
}
.use-choice-title {
  margin: 14px 2px 8px;
  text-align: center;
  color: #183153;
  font-weight: 950;
  font-size: 16px;
}
.use-option-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
}
.use-option-card {
  border: 2px solid rgba(15,118,110,.16);
  background: #fff;
  border-radius: 20px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: #0b2a44;
  font-weight: 950;
  min-height: 132px;
  box-shadow: 0 8px 18px rgba(23,48,76,.08);
  transition: transform .15s ease,border-color .15s ease,background .15s ease;
}
.use-option-card:hover {
  transform: translateY(-2px);
  border-color: #0f766e;
  background: #f0fffb;
}
.use-option-card.correct {
  border-color: #16a34a;
  background: #e9fff2;
}
.use-option-card.wrong {
  border-color: #ef4444;
  background: #fff0f0;
}
.use-option-image {
  width: 100%;
  height: 82px;
  object-fit: contain;
  display: block;
  border-radius: 14px;
  background: #fafafa;
}
.use-option-card strong {
  font-size: 14px;
  line-height: 1.12;
  text-align: center;
}
@media (max-width:560px) {
  .use-main-image-wrap {
    min-height: 190px;
  }
  .use-main-image {
    max-height: 205px;
  }
  .use-main-caption {
    font-size: 18px;
  }
  .use-option-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 9px;
  }
  .use-option-card {
    min-height: 116px;
    padding: 7px;
  }
  .use-option-image {
    height: 72px;
  }
}

/* Compact image-card tuning for science drag-and-drop activities. */
.science-drag-card-image {
  width: min(100%,380px);
  min-height: 202px;
  padding: 10px;
}
.science-card-image-wrap {
  min-height: 132px;
  padding: 7px;
}
.science-card-image {
  width: min(100%,220px);
  max-height: 148px;
}
.science-card-caption {
  font-size: 16px;
  line-height: 1.08;
  max-width: 340px;
}
.science-bin {
  min-height: 90px;
}
body.is-dragging-sort .science-bin {
  outline: 3px dashed rgba(14,165,168,.32);
  outline-offset: 3px;
}
@media (max-width:560px) {
  .science-lab-card {
    gap: 9px;
    padding: 10px;
  }
  .science-lab-top {
    padding: 9px 10px;
    border-radius: 18px;
  }
  .science-lab-top strong {
    font-size: 13px;
  }
  .science-lab-kicker {
    font-size: 12px;
  }
  .science-lab-counter {
    width: 46px;
    height: 46px;
    border-radius: 15px;
  }
  .science-current-zone {
    min-height: 198px;
    padding: 9px;
    border-radius: 20px;
  }
  .science-drag-card-image {
    min-height: 182px;
    width: min(100%,330px);
    padding: 8px;
  }
  .science-card-image-wrap {
    min-height: 120px;
    padding: 6px;
    border-radius: 16px;
  }
  .science-card-image {
    width: min(100%,190px);
    max-height: 128px;
  }
  .science-card-caption {
    font-size: 14px;
    line-height: 1.06;
  }
  .science-bins {
    gap: 8px;
  }
  .science-bin {
    min-height: 68px;
    padding: 9px;
    border-radius: 18px;
  }
  .science-bin strong {
    font-size: 14px;
  }
}
@media (max-height:720px) {
  .science-drag-card-image {
    min-height: 168px;
  }
  .science-card-image {
    max-height: 110px;
  }
  .science-card-caption {
    font-size: 13px;
  }
}

/* Fossil activity: keep sequence images visible and avoid stale-looking empty cards. */
.sequence-choice-card img,
.sequence-slot img,
.science-card-image {
  object-fit: contain;
  object-position: center;
  background: #f7faf8;
}

/* Fossil activity: compact, mobile-friendly image cards for the second game. */
.science-drag-card-image {
  width: min(100%, 420px);
  min-height: 190px;
  margin: 0 auto;
  padding: 10px;
}
.science-card-image-wrap {
  min-height: 126px;
  padding: 6px;
}
.science-card-image {
  width: min(100%, 210px);
  max-height: 138px;
}
.science-card-caption {
  font-size: clamp(14px, 3.6vw, 18px);
  line-height: 1.1;
}
.science-bin {
  min-height: 76px;
}
@media (max-width: 560px) {
  .science-drag-card-image {
    min-height: 170px;
    width: min(100%, 340px);
  }
  .science-card-image-wrap {
    min-height: 110px;
  }
  .science-card-image {
    max-height: 116px;
    width: min(100%, 180px);
  }
  .science-card-caption {
    font-size: 14px;
  }
  .science-bin {
    min-height: 66px;
    padding: 8px 10px;
  }
}

/* Fossil-themed target-sort layout for the Paleontologist duties activity. */
.fossil-sort-card {
  background: linear-gradient(180deg,#f7fbf8 0%,#fffdf8 100%) !important;
  border: 2px solid rgba(139,189,154,.30) !important;
  border-radius: 30px !important;
  box-shadow: 0 18px 30px rgba(23,48,76,.10) !important;
  padding: 14px !important;
}
.fossil-sort-card .fossil-sort-hero {
  border-radius: 24px;
  padding: 14px;
  background: radial-gradient(circle at 18% 22%,rgba(255,255,255,.82) 0 18px,transparent 19px),
    linear-gradient(180deg,#d7f4ec 0%,#f6fff8 100%);
  border: 2px solid rgba(133,196,181,.34);
  box-shadow: 0 10px 18px rgba(23,48,76,.06);
}
.fossil-sort-card .fossil-hero-main {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
}
.fossil-sort-card .fossil-hero-icon {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-size: 38px;
  background: linear-gradient(180deg,#fffaf0,#ffffff);
  border: 2px solid rgba(237,205,154,.50);
  box-shadow: 0 10px 16px rgba(23,48,76,.08);
}
.fossil-sort-card .fossil-hero-icon.has-image {
  padding: 6px;
  overflow: hidden;
}
.fossil-sort-card .fossil-hero-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.fossil-sort-card .fossil-hero-copy h3 {
  margin: 0 0 4px;
  color: #12324a;
  font-size: 26px;
  line-height: 1.05;
}
.fossil-sort-card .fossil-hero-copy p {
  margin: 0;
  color: #506475;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}
.fossil-sort-card .sort-current-wrap {
  margin-top: 12px;
}
.fossil-sort-card .sort-current-kicker {
  margin: 0 0 8px;
  color: #507164;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.fossil-sort-card .sort-current {
  min-height: 280px !important;
  padding: 14px !important;
  border-radius: 24px !important;
  background: linear-gradient(180deg,#ffffff,#fffef9) !important;
  border: 3px dashed rgba(172,194,233,.50) !important;
  box-shadow: 0 10px 18px rgba(23,48,76,.07) !important;
}
.fossil-sort-card .sort-drag-card {
  width: 100%;
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 12px;
}
.fossil-sort-card .sort-drag-card.with-image {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}
.fossil-sort-card .sort-card-media {
  width: min(100%, 290px);
  height: 190px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg,#f9fbff,#ffffff);
  border: 2px solid rgba(172,194,233,.36);
  box-shadow: 0 8px 14px rgba(23,48,76,.06);
  display: flex;
  align-items: center;
  justify-content: center;
}
.fossil-sort-card .sort-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.fossil-sort-card .sort-card-icon {
  width: 54px !important;
  height: 54px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg,#fff7dc,#ffffff) !important;
  border: 2px solid rgba(244,204,116,.38) !important;
  box-shadow: 0 8px 14px rgba(23,48,76,.08) !important;
  font-size: 30px !important;
}
.fossil-sort-card .sort-card-text {
  font-size: 19px;
  font-weight: 900;
  line-height: 1.2;
  color: #17304c;
}
.fossil-sort-card .sort-bins {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.fossil-sort-card .sort-bin {
  min-height: 154px !important;
  border-radius: 24px !important;
  padding: 14px 12px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  box-shadow: 0 12px 18px rgba(23,48,76,.07) !important;
}
.fossil-sort-card .sort-bin.gorev {
  background: linear-gradient(180deg,#eefcf4,#ffffff) !important;
  border: 3px solid rgba(110,205,145,.36) !important;
}
.fossil-sort-card .sort-bin.degil {
  background: linear-gradient(180deg,#fff4eb,#ffffff) !important;
  border: 3px solid rgba(255,182,136,.42) !important;
}
.fossil-sort-card .sort-bin .bin-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: #ffffff;
  box-shadow: 0 8px 14px rgba(23,48,76,.09);
}
.fossil-sort-card .sort-bin .bin-icon {
  font-size: 34px;
  line-height: 1;
}
.fossil-sort-card .sort-bin strong {
  font-size: 18px !important;
  font-weight: 950 !important;
  color: #17304c !important;
  text-align: center;
  line-height: 1.2;
}
.fossil-sort-card .sort-bin small {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #617687;
  text-align: center;
  line-height: 1.35;
}
.fossil-sort-card .sort-bin.drop-hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 16px 22px rgba(23,48,76,.12) !important;
}
@media (max-width:520px) {
  .fossil-sort-card {
    padding: 12px !important;
  }
  .fossil-sort-card .fossil-sort-hero {
    border-radius: 22px;
    padding: 12px;
  }
  .fossil-sort-card .fossil-hero-main {
    grid-template-columns: 60px 1fr;
    gap: 10px;
  }
  .fossil-sort-card .fossil-hero-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    font-size: 32px;
  }
  .fossil-sort-card .fossil-hero-icon.has-image {
    padding: 5px;
  }
  .fossil-sort-card .fossil-hero-copy h3 {
    font-size: 22px;
  }
  .fossil-sort-card .fossil-hero-copy p {
    font-size: 14px;
  }
  .fossil-sort-card .sort-current {
    min-height: 252px !important;
    padding: 12px !important;
  }
  .fossil-sort-card .sort-drag-card {
    grid-template-columns: 48px 1fr;
    gap: 10px;
  }
  .fossil-sort-card .sort-drag-card.with-image {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .fossil-sort-card .sort-card-media {
    width: min(100%, 260px);
    height: 170px;
    border-radius: 18px;
  }
  .fossil-sort-card .sort-card-icon {
    width: 46px !important;
    height: 46px !important;
    border-radius: 16px !important;
    font-size: 26px !important;
  }
  .fossil-sort-card .sort-card-text {
    font-size: 16px;
  }
  .fossil-sort-card .sort-bins {
    gap: 10px;
  }
  .fossil-sort-card .sort-bin {
    min-height: 132px !important;
    padding: 12px 8px !important;
    border-radius: 20px !important;
  }
  .fossil-sort-card .sort-bin .bin-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 18px;
  }
  .fossil-sort-card .sort-bin .bin-icon {
    font-size: 30px;
  }
  .fossil-sort-card .sort-bin strong {
    font-size: 16px !important;
  }
  .fossil-sort-card .sort-bin small {
    font-size: 11px;
  }
}

/* Concept-map fill layout for the fossil-formation map. */
.concept-map-card {
  border-radius: 28px;
  padding: 14px;
  background: linear-gradient(180deg,#fffaf0,#ffffff);
  border: 2px solid rgba(238,189,90,.45);
  box-shadow: 0 16px 28px rgba(23,48,76,.09);
}
.concept-map-head {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg,#fff3c8,#fff9e8);
  border: 2px solid rgba(246,198,82,.42);
  color: #744a15;
  font-weight: 950;
  margin-bottom: 10px;
}
.concept-map-head span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 6px 12px rgba(23,48,76,.08);
}
.concept-helper {
  border: 2px dashed rgba(255,193,100,.38);
  border-radius: 18px;
  padding: 10px 12px;
  color: #5d6d82;
  font-weight: 850;
  line-height: 1.35;
  margin-bottom: 12px;
  background: #ffffff;
}
.concept-chip-bank {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.concept-chip {
  border-radius: 18px;
  min-height: 54px;
  padding: 10px 12px;
  background: #ffffff;
  color: #17304c;
  font: inherit;
  font-weight: 900;
  box-shadow: 0 8px 16px rgba(23,48,76,.09);
  border: 2px solid rgba(191,217,251,.70);
  touch-action: none;
}
.concept-chip.selected,
.concept-chip:focus-visible {
  outline: none;
  border-color: #6bb7ff;
  box-shadow: 0 0 0 4px rgba(107,183,255,.18),0 8px 16px rgba(23,48,76,.09);
}
.concept-chip.dragging {
  position: fixed;
  z-index: 9999;
  transform: scale(1.03) rotate(-1deg);
  box-shadow: 0 18px 30px rgba(23,48,76,.18);
}
.concept-flow {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 6px 4px 0;
}
.concept-row {
  width: 100%;
  display: flex;
  align-items: center;
}
.concept-fixed,
.concept-blank {
  max-width: 100%;
  border-radius: 16px;
  padding: 11px 14px;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.25;
}
.concept-fixed {
  background: #ffffff;
  color: #17304c;
  border: 2px solid rgba(226,235,246,.92);
  box-shadow: 0 8px 14px rgba(23,48,76,.06);
}
.concept-blank {
  min-width: 230px;
  border: 2px dashed rgba(111,154,210,.55);
  background: linear-gradient(180deg,#f8fbff,#ffffff);
  color: #7890a9;
  font: inherit;
  font-weight: 950;
  text-align: center;
  touch-action: none;
}
.concept-blank.ready,
.concept-blank.drop-hover {
  border-style: solid;
  border-color: #6bb7ff;
  background: #eef8ff;
  color: #17304c;
  box-shadow: 0 0 0 4px rgba(107,183,255,.16);
}
.concept-blank.filled {
  border-style: solid;
  border-color: rgba(84,196,125,.46);
  background: linear-gradient(180deg,#ebfff3,#ffffff);
  color: #17304c;
}
.concept-arrow {
  width: 100%;
  padding-left: 35px;
  font-size: 30px;
  line-height: 1;
  color: #2b4056;
  font-weight: 900;
}
@media (max-width:520px) {
  .concept-map-card {
    padding: 12px;
    border-radius: 24px;
  }
  .concept-map-head {
    padding: 9px 12px;
    font-size: 14px;
  }
  .concept-helper {
    font-size: 13px;
    padding: 9px 10px;
  }
  .concept-chip-bank {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .concept-chip {
    min-height: 48px;
    border-radius: 16px;
    font-size: 14px;
  }
  .concept-fixed,
  .concept-blank {
    font-size: 15px;
    border-radius: 14px;
    padding: 10px 12px;
  }
  .concept-blank {
    min-width: 220px;
  }
  .concept-arrow {
    padding-left: 28px;
    font-size: 26px;
  }
}

/* States of Matter activity: property collection game. */

/* Shared property box layout for book-style property collection games. */
.property-box-card {
  border-radius: 30px;
  padding: 18px;
  background: linear-gradient(180deg,#f3fbff,#fff9eb);
  border: 2px solid rgba(21,167,219,.18);
  box-shadow: 0 18px 34px rgba(23,48,76,.09);
}
.property-top {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}
.property-visual {
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  border: 2px solid rgba(21,167,219,.22);
  box-shadow: 0 10px 20px rgba(23,48,76,.08);
  min-height: 128px;
  display: grid;
  place-items: center;
  padding: 10px;
}
.property-visual img {
  width: 78%;
  max-width: 78%;
  height: auto;
  max-height: 140px;
  object-fit: contain;
  display: block;
  background: #fff;
  margin: 0 auto;
}
.property-visual span {
  font-size: 58px;
}
.property-kicker {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: #e1f6ff;
  color: #087da8;
  font-weight: 950;
  font-size: 13px;
  margin-bottom: 8px;
}
.property-top h3 {
  margin: 0 0 6px;
  font-size: 25px;
  color: #17304c;
}
.property-top p {
  margin: 0;
  color: #5d6d82;
  font-weight: 850;
  line-height: 1.35;
}
.property-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 16px;
  align-items: stretch;
}
.property-bank {
  display: grid;
  gap: 10px;
  align-content: start;
}
.property-chip {
  border-radius: 18px;
  min-height: 54px;
  padding: 11px 14px;
  background: #fff;
  color: #17304c;
  border: 2px solid rgba(191,217,251,.78);
  box-shadow: 0 8px 16px rgba(23,48,76,.08);
  font: inherit;
  font-weight: 900;
  text-align: left;
  touch-action: none;
}
.property-chip.selected,
.property-chip:focus-visible {
  outline: none;
  border-color: #15a7db;
  box-shadow: 0 0 0 4px rgba(21,167,219,.16),0 8px 16px rgba(23,48,76,.08);
}
.property-chip.done {
  opacity: .48;
  text-decoration: line-through;
  box-shadow: none;
}
.property-chip.dragging {
  transform: scale(1.03) rotate(-1deg);
  box-shadow: 0 18px 30px rgba(23,48,76,.18);
}
.property-drop-box {
  width: 100%;
  min-height: 260px;
  border-radius: 26px;
  padding: 16px;
  background: #fff;
  border: 3px dashed rgba(21,167,219,.45);
  box-shadow: inset 0 0 0 6px rgba(21,167,219,.04),0 10px 20px rgba(23,48,76,.07);
  font: inherit;
  color: #17304c;
  text-align: left;
}
.property-drop-box.ready,
.property-drop-box.drop-hover {
  border-style: solid;
  border-color: #15a7db;
  background: #f0fbff;
  box-shadow: 0 0 0 5px rgba(21,167,219,.14),0 10px 20px rgba(23,48,76,.07);
}
.property-drop-box>strong {
  display: block;
  font-size: 20px;
  margin-bottom: 12px;
  text-align: center;
}
.property-placed-list {
  display: grid;
  gap: 10px;
}
.property-placed {
  border-radius: 16px;
  padding: 11px 13px;
  background: #eafff0;
  border: 2px solid rgba(84,196,125,.36);
  font-weight: 950;
}
.property-empty-note {
  min-height: 170px;
  display: grid;
  place-items: center;
  color: #7890a9;
  font-weight: 950;
  text-align: center;
}
@media (max-width:640px) {
  .property-box-card {
    padding: 12px;
    border-radius: 24px;
  }
  .property-top {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 12px;
  }
  .property-visual {
    min-height: 150px;
    max-height: 190px;
    padding: 10px;
  }
  .property-top h3 {
    font-size: 21px;
  }
  .property-top p {
    font-size: 14px;
  }
  .property-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .property-chip {
    min-height: 48px;
    border-radius: 15px;
    font-size: 14px;
    padding: 10px 12px;
  }
  .property-drop-box {
    min-height: 190px;
    border-radius: 20px;
    padding: 13px;
  }
  .property-drop-box>strong {
    font-size: 17px;
  }
  .property-empty-note {
    min-height: 100px;
  }
}

/* States of Matter activity: icon-free category boxes separated by color. */
.science-bin-kati.no-icon {
  background: linear-gradient(180deg,#fff7ed 0%,#ffedd5 100%);
  border-color: #fb923c;
  color: #7c2d12;
}
.science-bin-sivi.no-icon {
  background: linear-gradient(180deg,#eff6ff 0%,#dbeafe 100%);
  border-color: #38bdf8;
  color: #0c4a6e;
}
.science-bin-gaz.no-icon {
  background: linear-gradient(180deg,#f8fafc 0%,#e2e8f0 100%);
  border-color: #94a3b8;
  color: #334155;
}
.science-bin-kati.no-icon.drop-hover,
.science-bin-kati.no-icon:hover {
  background: linear-gradient(180deg,#ffedd5 0%,#fed7aa 100%);
  border-color: #f97316;
}
.science-bin-sivi.no-icon.drop-hover,
.science-bin-sivi.no-icon:hover {
  background: linear-gradient(180deg,#dbeafe 0%,#bfdbfe 100%);
  border-color: #0284c7;
}
.science-bin-gaz.no-icon.drop-hover,
.science-bin-gaz.no-icon:hover {
  background: linear-gradient(180deg,#e2e8f0 0%,#cbd5e1 100%);
  border-color: #64748b;
}

/* States of Matter activity, game 3: shared property image sizing rule. */
.property-box-card .property-visual img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

/* States of Matter activity, game 3: CSS-only ice image display fix. */
.property-visual:has(img[src*="fb1-maddenin-halleri/buz.webp"]) {
  height: 180px;
  min-height: 180px;
  max-height: 180px;
  padding: 12px;
  overflow: hidden;
}
.property-visual img[src*="fb1-maddenin-halleri/buz.webp"] {
  width: auto !important;
  height: auto !important;
  max-width: 82% !important;
  max-height: 145px !important;
  object-fit: contain !important;
  transform: none !important;
  margin: 0 auto !important;
}
@media (max-width: 640px) {
  .property-visual:has(img[src*="fb1-maddenin-halleri/buz.webp"]) {
    height: 180px;
    min-height: 180px;
    max-height: 180px;
    padding: 12px;
  }
  .property-visual img[src*="fb1-maddenin-halleri/buz.webp"] {
    max-width: 82% !important;
    max-height: 145px !important;
  }
}

/* Mixtures activity: book-style multiple-select question layout. */
.multi-select-panel {
  display: grid;
  gap: 16px;
  padding: 16px;
  border-radius: 24px;
  background: linear-gradient(180deg,#ffffff,#f7fffb);
  border: 2px solid rgba(21,167,219,.18);
  box-shadow: 0 10px 22px rgba(23,48,76,.07);
}
.multi-select-question {
  font-size: 20px;
  line-height: 1.25;
  font-weight: 950;
  color: #17304c;
  text-align: center;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
}
.multi-select-options {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
}
.multi-select-options.has-visuals {
  gap: 14px;
}
.multi-select-btn {
  min-height: 48px;
  border-radius: 16px;
  background: #ffffff;
  color: #17304c;
  font: inherit;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(23,48,76,.09);
  border: 2px solid rgba(191,217,251,.72);
}
.multi-select-btn-label {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}
.multi-select-btn.visual {
  min-height: 128px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 10px 12px;
}
.multi-select-btn-media {
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
}
.multi-select-btn-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.multi-select-btn.visual .multi-select-btn-label {
  font-size: 17px;
  line-height: 1.18;
}
.multi-select-btn.selected,
.multi-select-btn.good {
  background: #eafff1;
  border-color: #22c55e;
  color: #166534;
  box-shadow: 0 0 0 4px rgba(34,197,94,.13),0 8px 18px rgba(23,48,76,.09);
}
.multi-select-btn.bad {
  background: #fff1f2;
  border-color: #fb7185;
  color: #9f1239;
}

/* Mixtures activity, game 1: material visual board. */
.multi-select-visual {
  background: #fff;
  border: 2px solid rgba(21,167,219,.18);
  border-radius: 22px;
  padding: 8px;
  box-shadow: 0 8px 18px rgba(23,48,76,.07);
  overflow: hidden;
}
.multi-select-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}
@media (max-width:640px) {
  .multi-select-panel {
    gap: 12px;
    padding: 12px;
    border-radius: 22px;
  }
  .multi-select-question {
    font-size: 17px;
    padding: 10px;
  }
  .multi-select-options {
    gap: 10px;
  }
  .multi-select-options.has-visuals {
    gap: 10px;
  }
  .multi-select-btn {
    min-height: 46px;
    font-size: 14px;
    border-radius: 14px;
  }
  .multi-select-btn.visual {
    min-height: 104px;
    gap: 10px;
    padding: 8px 10px;
  }
  .multi-select-btn-media {
    width: 68px;
    height: 68px;
    flex-basis: 68px;
    border-radius: 12px;
  }
  .multi-select-btn.visual .multi-select-btn-label {
    font-size: 13.5px;
    line-height: 1.15;
  }
  .multi-select-visual {
    padding: 6px;
    border-radius: 18px;
  }
  .multi-select-visual img {
    border-radius: 12px;
  }
}

/* Waste Separation activity: colored text-only waste bins. */
.science-bins.waste-six {
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
}
.science-bins.waste-six .science-bin {
  min-height: 82px;
  padding: 12px 8px;
}
.science-bins.waste-actions {
  grid-template-columns: 1fr;
  gap: 12px;
}
.science-bins.waste-actions .science-bin {
  min-height: 82px;
}
.science-bin-kagit {
  background: #dbeafe;
  border-color: #3b82f6;
}
.science-bin-plastik {
  background: #fef3c7;
  border-color: #f59e0b;
}
.science-bin-cam {
  background: #dcfce7;
  border-color: #22c55e;
}
.science-bin-metal {
  background: #e5e7eb;
  border-color: #6b7280;
}
.science-bin-organik {
  background: #f5e6d3;
  border-color: #a16207;
}
.science-bin-pil {
  background: #fee2e2;
  border-color: #ef4444;
}
.science-bin-kagit strong {
  color: #1d4ed8;
}
.science-bin-plastik strong {
  color: #b45309;
}
.science-bin-cam strong {
  color: #15803d;
}
.science-bin-metal strong {
  color: #374151;
}
.science-bin-organik strong {
  color: #92400e;
}
.science-bin-pil strong {
  color: #b91c1c;
}
.science-bin-azalt {
  background: #e8f4ff;
  border-color: #83c5ff;
}
.science-bin-yeniden {
  background: #eef9e7;
  border-color: #9bd27f;
}
.science-bin-ayir {
  background: #fff0e5;
  border-color: #f2a365;
}
.science-bins.waste-six .science-bin.no-icon strong,
.science-bins.waste-actions .science-bin.no-icon strong {
  font-size: 16px;
  line-height: 1.15;
  text-align: center;
}
@media (max-width:560px) {
  .science-bins.waste-six {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .science-bins.waste-six .science-bin {
    min-height: 74px;
  }
  .science-bins.waste-six .science-bin.no-icon strong,
  .science-bins.waste-actions .science-bin.no-icon strong {
    font-size: 15px;
  }
}

/* Waste Separation activity overrides.
   Rules below are scoped to the activity-specific classes so earlier activities
   retain their existing layouts. */

/* Waste Separation activity: larger visual cards for the waste-sorting game. */
.waste-image-sort-game .science-current-zone {
  min-height: 230px;
}
.waste-image-sort-game .science-drag-card-image {
  min-height: 206px;
  padding: 12px;
}
.waste-image-sort-game .science-card-image-wrap {
  padding: 6px;
  background: #ffffff;
}
.waste-image-sort-game .science-card-image {
  width: min(100%,210px);
  max-height: 168px;
}
.waste-image-sort-game .science-card-caption {
  font-size: 18px;
}
@media (max-width:560px) {
  .waste-image-sort-game .science-current-zone {
    min-height: 206px;
  }
  .waste-image-sort-game .science-drag-card-image {
    min-height: 184px;
  }
  .waste-image-sort-game .science-card-image {
    width: min(100%,175px);
    max-height: 135px;
  }
  .waste-image-sort-game .science-card-caption {
    font-size: 16px;
  }
}

/* Waste Separation activity, game 2: strong recycling-bin colors overriding shared bin styles. */
.science-bins.waste-six .science-bin[data-bin="kagit"] {
  background: #1e88e5 !important;
  border-color: #0d47a1 !important;
  color: #ffffff !important;
}
.science-bins.waste-six .science-bin[data-bin="plastik"] {
  background: #f6c400 !important;
  border-color: #b77900 !important;
  color: #17304c !important;
}
.science-bins.waste-six .science-bin[data-bin="cam"] {
  background: #22a653 !important;
  border-color: #116b31 !important;
  color: #ffffff !important;
}
.science-bins.waste-six .science-bin[data-bin="metal"] {
  background: #6b7280 !important;
  border-color: #374151 !important;
  color: #ffffff !important;
}
.science-bins.waste-six .science-bin[data-bin="organik"] {
  background: #8b5a2b !important;
  border-color: #5c3517 !important;
  color: #ffffff !important;
}
.science-bins.waste-six .science-bin[data-bin="pil"] {
  background: #dc2626 !important;
  border-color: #7f1d1d !important;
  color: #ffffff !important;
}
.science-bins.waste-six .science-bin[data-bin] strong {
  color: inherit !important;
  text-shadow: 0 1px 1px rgba(0,0,0,.18);
}
.science-bins.waste-six .science-bin[data-bin="plastik"] strong {
  text-shadow: none;
}
.science-bins.waste-six .science-bin.drop-hover,
.science-bins.waste-six .science-bin:hover {
  filter: brightness(1.04) saturate(1.05);
  box-shadow: 0 12px 24px rgba(23,48,76,.16),0 0 0 4px rgba(255,255,255,.55) !important;
}

/* Waste Separation activity, game 3: visual behavior cards for illustrated actions. */
.waste-action-image-game .science-current-zone {
  min-height: 230px;
}
.waste-action-image-game .science-drag-card-image {
  min-height: 210px;
  padding: 12px;
}
.waste-action-image-game .science-card-image-wrap {
  padding: 6px;
  background: #ffffff;
  border-radius: 18px;
}
.waste-action-image-game .science-card-image {
  width: min(100%,220px);
  max-height: 168px;
  object-fit: contain;
}
.waste-action-image-game .science-card-caption {
  font-size: 17px;
  text-align: center;
}
@media (max-width:560px) {
  .waste-action-image-game .science-current-zone {
    min-height: 208px;
  }
  .waste-action-image-game .science-drag-card-image {
    min-height: 188px;
  }
  .waste-action-image-game .science-card-image {
    width: min(100%,180px);
    max-height: 138px;
  }
  .waste-action-image-game .science-card-caption {
    font-size: 15px;
  }
}

/* Waste Separation activity, game 3: visually distinct behavior-category bins.
   These rules target only this activity step and do not affect earlier activities. */
.science-bins.waste-actions {
  gap: 16px;
}
.waste-action-image-game .science-bins.waste-actions .science-bin.no-icon {
  min-height: 116px;
  padding: 18px 16px;
  border-width: 3px;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(23,48,76,.10), inset 0 1px 0 rgba(255,255,255,.9);
}
.waste-action-image-game .science-bins.waste-actions .science-bin.no-icon strong {
  font-size: 24px;
  font-weight: 950;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 2;
}
.waste-action-image-game .science-bins.waste-actions .science-bin.no-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,rgba(255,255,255,.72),rgba(255,255,255,.18));
  pointer-events: none;
}
.waste-action-image-game .science-bins.waste-actions .science-bin.no-icon::after {
  content: "";
  position: absolute;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  right: -18px;
  top: -18px;
  background: rgba(255,255,255,.28);
  box-shadow: 0 0 0 16px rgba(255,255,255,.13);
  pointer-events: none;
}
.waste-action-image-game .science-bins.waste-actions .science-bin[data-bin="azalt"] {
  background: linear-gradient(135deg,#dff3ff 0%,#bfe6ff 100%) !important;
  border-color: #4aa8df !important;
}
.waste-action-image-game .science-bins.waste-actions .science-bin[data-bin="azalt"] strong {
  color: #0f4f77 !important;
}
.waste-action-image-game .science-bins.waste-actions .science-bin[data-bin="yeniden"] {
  background: linear-gradient(135deg,#e8f9df 0%,#cdeebf 100%) !important;
  border-color: #72bf55 !important;
}
.waste-action-image-game .science-bins.waste-actions .science-bin[data-bin="yeniden"] strong {
  color: #245b1e !important;
}
.waste-action-image-game .science-bins.waste-actions .science-bin[data-bin="ayir"] {
  background: linear-gradient(135deg,#ffe8da 0%,#ffd0b3 100%) !important;
  border-color: #ef9758 !important;
}
.waste-action-image-game .science-bins.waste-actions .science-bin[data-bin="ayir"] strong {
  color: #7a3c14 !important;
}
.waste-action-image-game .science-bins.waste-actions .science-bin.drop-hover,
.waste-action-image-game .science-bins.waste-actions .science-bin:hover {
  transform: translateY(-3px) scale(1.02);
  filter: saturate(1.04) brightness(1.02);
  box-shadow: 0 16px 30px rgba(23,48,76,.16),0 0 0 4px rgba(255,255,255,.48) !important;
}
@media (max-width:560px) {
  .science-bins.waste-actions {
    gap: 12px;
  }
  .waste-action-image-game .science-bins.waste-actions .science-bin.no-icon {
    min-height: 100px;
    padding: 14px 12px;
    border-radius: 22px;
  }
  .waste-action-image-game .science-bins.waste-actions .science-bin.no-icon strong {
    font-size: 21px;
  }
  .waste-action-image-game .science-bins.waste-actions .science-bin.no-icon::after {
    width: 74px;
    height: 74px;
    right: -16px;
    top: -16px;
  }
}

/* Waste Separation activity, game 3: compact mobile layout to reduce page scrolling. */
@media (max-width:560px) {
  .waste-action-image-game.science-lab-card {
    gap: 8px !important;
    padding: 10px !important;
    border-radius: 22px !important;
  }
  .waste-action-image-game .science-lab-top {
    padding: 8px 10px !important;
    border-radius: 16px !important;
    gap: 8px !important;
  }
  .waste-action-image-game .science-lab-kicker {
    font-size: 11px !important;
    margin-bottom: 1px !important;
  }
  .waste-action-image-game .science-lab-top strong {
    font-size: 12px !important;
    line-height: 1.12 !important;
  }
  .waste-action-image-game .science-lab-counter {
    width: 44px !important;
    height: 44px !important;
    border-radius: 14px !important;
    font-size: 13px !important;
    flex: 0 0 44px !important;
  }
  .waste-action-image-game .science-current-zone {
    min-height: 168px !important;
    padding: 8px !important;
    border-radius: 20px !important;
  }
  .waste-action-image-game .science-drag-card-image {
    min-height: 150px !important;
    padding: 8px !important;
    gap: 6px !important;
    border-radius: 18px !important;
  }
  .waste-action-image-game .science-card-image-wrap {
    padding: 4px !important;
    border-radius: 14px !important;
  }
  .waste-action-image-game .science-card-image {
    width: min(100%,150px) !important;
    max-height: 104px !important;
  }
  .waste-action-image-game .science-card-caption {
    font-size: 13px !important;
    line-height: 1.08 !important;
  }
  .waste-action-image-game .science-bins.waste-actions {
    grid-template-columns: repeat(3,minmax(0,1fr)) !important;
    gap: 7px !important;
  }
  .waste-action-image-game .science-bins.waste-actions .science-bin.no-icon {
    min-height: 62px !important;
    padding: 8px 5px !important;
    border-width: 2px !important;
    border-radius: 16px !important;
  }
  .waste-action-image-game .science-bins.waste-actions .science-bin.no-icon strong {
    font-size: 12.5px !important;
    line-height: 1.08 !important;
    letter-spacing: -0.03em !important;
  }
  .waste-action-image-game .science-bins.waste-actions .science-bin.no-icon::after {
    width: 46px !important;
    height: 46px !important;
    right: -13px !important;
    top: -13px !important;
    box-shadow: 0 0 0 8px rgba(255,255,255,.10) !important;
  }
}
@media (max-height:760px) and (max-width:560px) {
  .waste-action-image-game .science-current-zone {
    min-height: 150px !important;
  }
  .waste-action-image-game .science-drag-card-image {
    min-height: 132px !important;
  }
  .waste-action-image-game .science-card-image {
    max-height: 88px !important;
    width: min(100%,136px) !important;
  }
  .waste-action-image-game .science-card-caption {
    font-size: 12px !important;
  }
  .waste-action-image-game .science-bins.waste-actions .science-bin.no-icon {
    min-height: 56px !important;
  }
}

/* --------------------------------------------------------------------------
   Grade 3 Turkish language activities
   Reusable language-game layouts shared by the Turkish 1 activities.
   -------------------------------------------------------------------------- */
.tr1-language-card {
  flex: 1;
  min-height: 0;
  border-radius: 24px;
  padding: 10px;
  background: linear-gradient(180deg,rgba(255,255,255,.96),rgba(247,245,255,.92));
  box-shadow: 0 12px 28px rgba(61,47,122,.10);
  border: 1px solid rgba(109,91,208,.12);
  overflow: hidden;
}
.tr1-language-helper {
  border-radius: 15px;
  padding: 8px 10px;
  background: #fff8d9;
  color: #4b4272;
  font-size: 12px;
  line-height: 1.18;
  font-weight: 850;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(245,185,66,.18);
}

/* Optional Kelimo guide beside the instruction card. */
.tr1-guide-row {
  position: relative;
  min-height: 74px;
  padding-right: 112px;
  display: flex;
  align-items: center;
}
.tr1-guide-row .tr1-language-helper {
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 12px;
}
.tr1-guide-mascot {
  position: absolute;
  z-index: 3;
  right: 4px;
  bottom: -10px;
  width: 100px;
  height: 128px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  user-select: none;
}
.tr1-guide-mascot::before {
  content: "";
  position: absolute;
  inset: 10px 8px 18px;
  border-radius: 26px;
  background: radial-gradient(circle at 42% 34%,rgba(255,255,255,.95),rgba(255,255,255,.35) 46%,transparent 62%);
  z-index: -1;
  opacity: .82;
}
.tr1-guide-mascot img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 8px 10px rgba(57,48,100,.16));
}
.tr1-guide-mascot.flip img {
  transform: scaleX(-1);
}
.tr1-guide-row.neighbors {
  min-height: 118px;
  padding-right: 108px;
  margin-bottom: 7px;
  align-items: center;
}
.tr1-guide-mascot.neighbors {
  right: 8px;
  bottom: 0;
  width: 96px;
  height: 122px;
}
.tr1-guide-mascot.neighbors::before {
  background: radial-gradient(circle at 50% 35%,rgba(255,255,255,.97),rgba(232,242,255,.72) 44%,rgba(212,228,255,.30) 60%,transparent 66%);
}
.tr1-guide-row.factory {
  min-height: 114px;
  padding-right: 112px;
  margin-bottom: 6px;
}
.tr1-guide-mascot.factory {
  bottom: -4px;
  width: 98px;
  height: 124px;
}
.tr1-guide-mascot.factory::before {
  background: radial-gradient(circle at 50% 36%,rgba(255,255,255,.96),rgba(242,232,255,.72) 44%,rgba(204,183,255,.26) 61%,transparent 68%);
}
.tr1-bank-title {
  text-align: center;
  font-size: 11px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: .06em;
  color: #6557aa;
  margin-bottom: 6px;
}
.tr1-alphabet-panel {
  margin-top: 8px;
  padding: 8px;
  border-radius: 18px;
  background: linear-gradient(135deg,#ede9ff,#eaf8ff);
  box-shadow: inset 0 0 0 1px rgba(109,91,208,.10);
}
.tr1-alphabet-bank {
  display: grid;
  grid-template-columns: repeat(10,minmax(0,1fr));
  gap: 4px;
}
.tr1-letter-chip {
  min-width: 0;
  height: 29px;
  padding: 0;
  border-radius: 9px;
  background: #fff;
  color: #30295a;
  font-weight: 950;
  font-size: 14px;
  box-shadow: 0 3px 8px rgba(57,48,100,.10);
  border: 2px solid transparent;
  touch-action: none;
  user-select: none;
  transition: transform .14s ease,border-color .14s ease,background .14s ease,opacity .14s ease;
}
.tr1-letter-chip.selected {
  background: #e4dcff;
  border-color: #6d5bd0;
  transform: translateY(-2px);
}
.tr1-letter-chip:disabled {
  opacity: .30;
  box-shadow: none;
}
.tr1-letter-chip.dragging {
  transform: scale(1.14) rotate(-3deg);
  box-shadow: 0 14px 30px rgba(56,44,119,.28);
}

/* Letter train */
.tr1-letter-train-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.tr1-train-board {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 3px 0 1px;
}
.tr1-train-row {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: end;
  gap: 3px;
  min-height: 48px;
  position: relative;
}
.tr1-train-row::after {
  content: "";
  position: absolute;
  left: 27px;
  right: 2px;
  bottom: 3px;
  height: 3px;
  border-radius: 999px;
  background: #9187b7;
  opacity: .46;
}
.tr1-loco {
  width: 32px;
  height: 40px;
  display: grid;
  place-items: center;
  font-size: 26px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 5px rgba(49,40,91,.16));
}
.tr1-train-track {
  display: grid;
  grid-template-columns: 1fr 5px 1fr 5px 1fr 5px 1fr 5px 1fr;
  align-items: center;
  gap: 0;
  position: relative;
  z-index: 2;
}
.tr1-coupler {
  height: 3px;
  background: #746a9e;
  border-radius: 999px;
}
.tr1-wagon {
  height: 39px;
  min-width: 0;
  border-radius: 9px 9px 7px 7px;
  background: linear-gradient(180deg,#fff,#f6f3ff);
  border: 2px solid #8073bb;
  display: grid;
  place-items: center;
  position: relative;
  color: #31295d;
  font-size: 16px;
  font-weight: 950;
  box-shadow: 0 4px 8px rgba(61,47,122,.10);
  touch-action: none;
}
.tr1-wagon:nth-of-type(4n/**/+1) {
  background: linear-gradient(180deg,#fff6d8,#fff);
}
.tr1-wagon:nth-of-type(4n/**/+3) {
  background: linear-gradient(180deg,#e8f7ff,#fff);
}
.tr1-wagon i {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  bottom: -8px;
  background: #564d79;
  border: 2px solid #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.16);
}
.tr1-wagon i:first-of-type {
  left: 8px;
}
.tr1-wagon i:last-of-type {
  right: 8px;
}
.tr1-letter-slot {
  border-style: dashed;
  background: #fff9e9;
  color: #b18a1c;
  cursor: pointer;
}
.tr1-letter-slot.ready {
  box-shadow: 0 0 0 4px rgba(109,91,208,.12);
  border-color: #6d5bd0;
}
.tr1-letter-slot.drop-hover {
  background: #e9e3ff;
  border-style: solid;
  border-color: #6d5bd0;
  transform: scale(1.05);
}
.tr1-letter-slot.filled {
  background: #e6faed;
  border-style: solid;
  border-color: #2fa56c;
  color: #147448;
  animation: pop .25s ease;
}

/* Alphabet neighbor houses */
.tr1-neighbor-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  background: radial-gradient(circle at 16% 8%,rgba(255,255,255,.92) 0 5%,transparent 6%),
    radial-gradient(circle at 78% 16%,rgba(255,255,255,.75) 0 7%,transparent 8%),
    linear-gradient(180deg,#f6efff 0 48%,#fff8e5 48% 100%);
  border: 1px solid rgba(151,121,223,.18);
  box-shadow: 0 12px 26px rgba(90,71,158,.08);
}
.tr1-neighbor-kicker {
  width: max-content;
  max-width: 100%;
  margin: 2px auto -1px;
  border-radius: 999px;
  padding: 6px 13px;
  background: linear-gradient(180deg,#e6dbff,#cdbfff);
  color: #5b47b5;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .05em;
  box-shadow: 0 5px 10px rgba(111,88,194,.14),inset 0 2px 0 rgba(255,255,255,.65);
}
.tr1-neighbor-row {
  min-height: 198px;
  display: grid;
  grid-template-columns: 1fr 24px 1fr 24px 1fr;
  align-items: end;
  padding: 20px 4px 26px;
  position: relative;
}
.tr1-neighbor-row::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 12px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(180deg,#f4edff 0 38%,#dff3cb 38% 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.72);
}
.tr1-neighbor-row::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 18px;
  height: 12px;
  border-radius: 999px;
  background: repeating-linear-gradient(90deg,#bcb3e2 0 17px,#eeeaf9 17px 29px);
}
.tr1-house-path {
  height: 8px;
  margin-bottom: 28px;
  background: linear-gradient(180deg,#b7add8,#9c91c7);
  border-radius: 999px;
  position: relative;
  z-index: 2;
}
.tr1-letter-house {
  height: 96px;
  border-radius: 14px 14px 10px 10px;
  background: linear-gradient(180deg,#fff,#f6f4ff);
  border: 2px solid #8a7ec8;
  display: grid;
  place-items: center;
  position: relative;
  color: #30295a;
  box-shadow: 0 10px 18px rgba(55,44,105,.12);
  touch-action: none;
  z-index: 2;
}
.tr1-letter-house .tr1-house-roof {
  position: absolute;
  width: 66%;
  aspect-ratio: 1;
  left: 17%;
  top: -30px;
  background: #8b7cc9;
  transform: rotate(45deg);
  border-radius: 8px 2px 5px 2px;
  z-index: 0;
}
.tr1-letter-house:nth-child(1) .tr1-house-roof {
  background: #8d79d8;
}
.tr1-letter-house:nth-child(3) .tr1-house-roof {
  background: #f39ac9;
}
.tr1-letter-house:nth-child(5) .tr1-house-roof {
  background: #69c7ef;
}
.tr1-letter-house:nth-child(1) {
  border-color: #8d79d8;
  background: linear-gradient(180deg,#ffffff,#f3edff);
}
.tr1-letter-house:nth-child(3) {
  border-color: #f39ac9;
  background: linear-gradient(180deg,#fff,#fff0f8);
}
.tr1-letter-house:nth-child(5) {
  border-color: #69c7ef;
  background: linear-gradient(180deg,#fff,#eefaff);
}
.tr1-letter-house::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg,rgba(255,255,255,.86),rgba(255,255,255,.16));
  z-index: 1;
}
.tr1-letter-house strong {
  position: relative;
  z-index: 2;
  width: 47px;
  height: 55px;
  border-radius: 24px 24px 10px 10px;
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 950;
  box-shadow: inset 0 0 0 2px rgba(109,91,208,.12);
}
.tr1-neighbor-slot {
  cursor: pointer;
  border-style: dashed;
  background: #fff6d8;
}
.tr1-neighbor-slot.ready {
  border-color: #6d5bd0;
  box-shadow: 0 0 0 4px rgba(109,91,208,.12);
}
.tr1-neighbor-slot.drop-hover {
  background: #e7e1ff;
  border-style: solid;
  transform: translateY(-4px);
}
.tr1-neighbor-slot.filled {
  background: #e6faed;
  border-style: solid;
  border-color: #2fa56c;
  animation: pop .25s ease;
}
.tr1-neighbor-card .tr1-guide-row.neighbors .tr1-language-helper {
  min-height: 82px;
  padding: 12px 12px;
  border: 2px solid #f1cf75;
  background: linear-gradient(135deg,#fff8de,#fffdf5);
  color: #44356f;
  box-shadow: 0 7px 16px rgba(194,149,41,.10),inset 0 0 0 1px rgba(255,255,255,.76);
}
.tr1-neighbor-card .tr1-letter-box-panel {
  margin-top: 0;
  padding: 9px;
  border: 2px solid rgba(129,170,227,.16);
  background: linear-gradient(135deg,#f4ebff,#e5f4ff 56%,#f4ffe8);
  box-shadow: 0 7px 15px rgba(73,96,166,.08),inset 0 0 0 1px rgba(255,255,255,.76);
}
.tr1-neighbor-card .tr1-letter-chip:nth-child(5n/**/+1) {
  background: #fff0aa;
}
.tr1-neighbor-card .tr1-letter-chip:nth-child(5n/**/+2) {
  background: #dff4ff;
}
.tr1-neighbor-card .tr1-letter-chip:nth-child(5n/**/+3) {
  background: #e8ddff;
}
.tr1-neighbor-card .tr1-letter-chip:nth-child(5n/**/+4) {
  background: #ffe0ef;
}
.tr1-neighbor-card .tr1-letter-chip:nth-child(5n) {
  background: #e4f8d7;
}

/* Compact shuffled letter box and learner-controlled review state. */
.tr1-letter-box-panel {
  margin-top: auto;
}
.tr1-letter-box-bank {
  grid-template-columns: repeat(var(--tr1-bank-cols,5),minmax(0,1fr));
  gap: 6px;
}
.tr1-review-panel {
  margin-top: auto;
  padding: 10px;
  border-radius: 17px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
  background: linear-gradient(135deg,#e7faee,#eef8ff);
  color: #176b49;
  border: 2px solid rgba(47,165,108,.35);
  box-shadow: 0 8px 18px rgba(39,119,84,.10);
}
.tr1-review-panel strong {
  font-size: 14px;
  line-height: 1.05;
  font-weight: 950;
}
.tr1-review-panel span {
  font-size: 11px;
  line-height: 1.15;
  font-weight: 800;
  color: #47685b;
}
.tr1-review-btn {
  min-height: 38px;
  margin-top: 3px;
  padding: 0 16px;
  border-radius: 13px;
  font-size: 12px;
}

/* Word-length factory */
.tr1-factory-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tr1-factory-head {
  display: grid;
  grid-template-columns: 52px 1fr 38px;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 18px;
  background: linear-gradient(135deg,#5847b5,#7566dc);
  color: #fff;
  box-shadow: 0 8px 18px rgba(62,46,145,.20);
}
.tr1-factory-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 28px;
}
.tr1-factory-head span {
  display: block;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .08em;
  opacity: .82;
}
.tr1-factory-head strong {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.05;
}
.tr1-gear {
  display: grid;
  place-items: center;
  font-size: 27px;
  animation: tr1Gear 4s linear infinite;
}
.tr1-conveyor {
  min-height: 112px;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg,#eaf7ff 0 64%,#d7d3df 64% 100%);
  box-shadow: inset 0 0 0 1px rgba(72,60,129,.10);
}
.tr1-conveyor::before,
.tr1-conveyor::after {
  content: "";
  position: absolute;
  bottom: 7px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #675e82;
  box-shadow: inset 0 0 0 7px #bcb6cc;
  z-index: 2;
}
.tr1-conveyor::before {
  left: 17px;
}
.tr1-conveyor::after {
  right: 17px;
}
.tr1-conveyor-belt {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 16px;
  height: 22px;
  border-radius: 999px;
  background: repeating-linear-gradient(90deg,#655d7e 0 15px,#8d85a5 15px 28px);
  animation: tr1Belt 1.2s linear infinite;
}
.tr1-word-card {
  position: relative;
  z-index: 4;
  width: min(240px,75%);
  min-height: 64px;
  border-radius: 17px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: #fff;
  border: 3px solid #f0b843;
  color: #30295a;
  box-shadow: 0 11px 20px rgba(56,44,108,.18);
  touch-action: none;
  user-select: none;
}
.tr1-word-card strong {
  font-size: 23px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: .04em;
}
.tr1-word-card.reviewed {
  background: #e8faef;
  border-color: #2fa56c;
  color: #176b49;
  box-shadow: 0 11px 20px rgba(47,165,108,.16);
}
.tr1-word-card.reviewed small {
  font-size: 11px;
  line-height: 1;
  font-weight: 950;
  color: #147448;
}
.tr1-word-stamp {
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .13em;
  color: #9c782c;
}
.tr1-word-card.dragging {
  transform: scale(1.04) rotate(-2deg);
  box-shadow: 0 18px 32px rgba(56,44,108,.28);
}
.tr1-package-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 7px;
}
.tr1-package {
  min-height: 72px;
  position: relative;
  overflow: hidden;
  border-radius: 10px 10px 15px 15px;
  padding: 13px 5px 7px;
  background: linear-gradient(180deg,#fff4d5,#f6c96b);
  border: 2px solid #d9a842;
  color: #5c461a;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px;
  box-shadow: 0 7px 14px rgba(76,58,23,.11);
  transition: transform .15s ease,box-shadow .15s ease,background .15s ease;
}
.tr1-package:nth-child(1) {
  background: linear-gradient(180deg,#fff3cf,#ffd77b);
  border-color: #e4ad38;
  color: #6c4f12;
}
.tr1-package:nth-child(2) {
  background: linear-gradient(180deg,#e6f7ff,#9fdaf8);
  border-color: #60b2dd;
  color: #1d607f;
}
.tr1-package:nth-child(3) {
  background: linear-gradient(180deg,#f4eaff,#d4c0ff);
  border-color: #a885eb;
  color: #583e9d;
}
.tr1-package:nth-child(4) {
  background: linear-gradient(180deg,#e7fff0,#9fe5b9);
  border-color: #57bc7c;
  color: #1f7b48;
}
.tr1-package:nth-child(5) {
  background: linear-gradient(180deg,#fff0da,#ffc66f);
  border-color: #e59a35;
  color: #8a5417;
}
.tr1-package:nth-child(6) {
  background: linear-gradient(180deg,#f7efff,#cfbefd);
  border-color: #aa8aee;
  color: #6548aa;
}
.tr1-package-fold {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.60);
  box-shadow: 0 8px 0 rgba(89,75,39,.08);
}
.tr1-package strong {
  font-size: 12px;
  line-height: 1;
  font-weight: 950;
}
.tr1-package small {
  font-size: 9px;
  line-height: 1;
  font-weight: 850;
  opacity: .72;
}
.tr1-package.drop-hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 0 0 4px rgba(109,91,208,.14),0 10px 20px rgba(56,44,108,.14);
}
.tr1-package.bad {
  animation: shake .28s ease;
  background: #ffdbe2;
  border-color: #ef476f;
}
.tr1-package.review-good {
  background: linear-gradient(180deg,#edfff3,#bdeecf);
  border-color: #2fa56c;
  color: #176b49;
  box-shadow: 0 0 0 4px rgba(47,165,108,.12),0 9px 18px rgba(47,165,108,.12);
}
.tr1-factory-done {
  position: relative;
  z-index: 3;
  padding: 13px 18px;
  border-radius: 16px;
  background: #e5faed;
  color: #137348;
  font-weight: 950;
}
@keyframes tr1Gear {
  to {
    transform: rotate(360deg);
  }
}
@keyframes tr1Belt {
  to {
    background-position: 28px 0;
  }
}

/* Optional final badge reveal from a surprise box. */
.final-box-pop {
  width: min(330px,100%);
  position: relative;
  padding-bottom: 48px;
  display: grid;
  place-items: center;
}
.final-box-pop .final-rozet-card {
  position: relative;
  z-index: 2;
  width: 100%;
  animation: tr1BadgeRise .85s cubic-bezier(.2,.9,.25,1.25) both;
  transform-origin: center bottom;
}
.final-surprise-box {
  position: absolute;
  z-index: 4;
  bottom: 0;
  width: 116px;
  height: 57px;
  display: grid;
  place-items: center;
}
.final-surprise-body {
  width: 92px;
  height: 52px;
  border-radius: 8px 8px 13px 13px;
  background: linear-gradient(90deg,#6754c9 0 38%,#f4c24e 38% 61%,#6754c9 61%);
  border: 3px solid #4d3ca3;
  color: #fff;
  font-size: 18px;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 18px rgba(55,40,133,.22);
}
.final-surprise-lid {
  position: absolute;
  top: -5px;
  width: 108px;
  height: 20px;
  border-radius: 7px;
  background: linear-gradient(90deg,#806ce0 0 39%,#ffd263 39% 60%,#806ce0 60%);
  border: 3px solid #4d3ca3;
  animation: tr1LidPop .75s .08s cubic-bezier(.2,.8,.25,1.2) both;
  transform-origin: left bottom;
}
@keyframes tr1BadgeRise {
  0% {
    opacity: 0;
    transform: translateY(115px) scale(.45) rotate(-7deg);
  }
  68% {
    opacity: 1;
    transform: translateY(-7px) scale(1.035) rotate(1deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0);
  }
}
@keyframes tr1LidPop {
  0% {
    transform: translateY(0) rotate(0);
  }
  55% {
    transform: translate(-14px,-38px) rotate(-18deg);
  }
  100% {
    transform: translate(-24px,-28px) rotate(-12deg);
  }
}
@media (max-width:390px) {
  .tr1-language-card {
    padding: 8px;
  }
  .tr1-language-helper {
    padding: 7px 8px;
    font-size: 11px;
  }
  .tr1-alphabet-panel {
    padding: 6px;
  }
  .tr1-alphabet-bank {
    gap: 3px;
  }
  .tr1-letter-chip {
    height: 27px;
    font-size: 13px;
    border-radius: 8px;
  }
  .tr1-review-panel {
    padding: 8px;
    gap: 4px;
  }
  .tr1-review-panel strong {
    font-size: 13px;
  }
  .tr1-review-panel span {
    font-size: 10.5px;
  }
  .tr1-review-btn {
    min-height: 36px;
  }
  .tr1-train-row {
    grid-template-columns: 28px 1fr;
    min-height: 44px;
  }
  .tr1-loco {
    width: 28px;
    height: 36px;
    font-size: 23px;
  }
  .tr1-wagon {
    height: 35px;
    font-size: 15px;
  }
  .tr1-wagon i {
    width: 9px;
    height: 9px;
    bottom: -7px;
  }
  .tr1-neighbor-row {
    min-height: 176px;
    padding-top: 16px;
    grid-template-columns: 1fr 18px 1fr 18px 1fr;
  }
  .tr1-letter-house {
    height: 84px;
  }
  .tr1-letter-house .tr1-house-roof {
    top: -25px;
  }
  .tr1-letter-house strong {
    width: 42px;
    height: 48px;
    font-size: 25px;
  }
  .tr1-house-path {
    margin-bottom: 22px;
  }
  .tr1-factory-head {
    grid-template-columns: 44px 1fr 30px;
    padding: 7px 8px;
  }
  .tr1-factory-icon {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
  .tr1-factory-head strong {
    font-size: 12px;
  }
  .tr1-conveyor {
    min-height: 99px;
  }
  .tr1-word-card {
    min-height: 57px;
  }
  .tr1-word-card strong {
    font-size: 20px;
  }
  .tr1-package {
    min-height: 64px;
    padding: 12px 3px 5px;
  }
  .tr1-package strong {
    font-size: 11px;
  }
}
@media (max-height:720px) {
  .tr1-language-card {
    padding: 7px;
    gap: 5px;
  }
  .tr1-language-helper {
    padding: 6px 8px;
    font-size: 10.5px;
  }
  .tr1-train-board {
    gap: 3px;
  }
  .tr1-train-row {
    min-height: 40px;
  }
  .tr1-wagon {
    height: 32px;
    font-size: 14px;
  }
  .tr1-alphabet-panel {
    margin-top: 4px;
    padding: 5px;
  }
  .tr1-letter-chip {
    height: 24px;
    font-size: 12px;
  }
  .tr1-neighbor-row {
    min-height: 152px;
    padding: 12px 4px 20px;
  }
  .tr1-letter-house {
    height: 72px;
  }
  .tr1-letter-house .tr1-house-roof {
    top: -22px;
  }
  .tr1-letter-house strong {
    height: 42px;
    font-size: 23px;
  }
  .tr1-conveyor {
    min-height: 82px;
  }
  .tr1-word-card {
    min-height: 50px;
  }
  .tr1-word-card strong {
    font-size: 18px;
  }
  .tr1-package {
    min-height: 55px;
  }
}

/* --------------------------------------------------------------------------
   Grade 3 Turkish - Sounds and Letters
   Single-train presentation overrides scoped to the letterTrain renderer.
   -------------------------------------------------------------------------- */
.tr1-letter-train-card {
  position: relative;
  gap: 8px;
  background: radial-gradient(circle at 12% 8%,rgba(255,255,255,.86) 0 5%,transparent 6%),
    radial-gradient(circle at 82% 16%,rgba(255,255,255,.72) 0 7%,transparent 8%),
    linear-gradient(180deg,#e9f8ff 0 61%,#eff9dd 61% 100%);
  border: 1px solid rgba(76,162,215,.24);
  box-shadow: 0 12px 28px rgba(55,111,165,.15);
}
.tr1-letter-train-card .tr1-guide-row.train {
  min-height: 132px;
  padding-right: 122px;
  align-items: center;
}
.tr1-letter-train-card .tr1-guide-row.train .tr1-language-helper {
  min-height: 82px;
  padding: 12px 13px;
  border: 2px solid #f3ce69;
  background: linear-gradient(135deg,#fff7d7,#fffdf4);
  color: #41366d;
  box-shadow: 0 7px 16px rgba(194,149,41,.12),inset 0 0 0 1px rgba(255,255,255,.75);
}
.tr1-letter-train-card .tr1-guide-mascot.train {
  right: 6px;
  bottom: -2px;
  width: 108px;
  height: 128px;
  align-items: flex-end;
}
.tr1-letter-train-card .tr1-guide-mascot.train img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center bottom;
  transform: rotate(-2deg);
}
.tr1-train-kicker {
  align-self: center;
  min-width: 92px;
  padding: 6px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg,#ffca52,#f4a91f);
  color: #573709;
  font-size: 12px;
  line-height: 1;
  font-weight: 950;
  text-align: center;
  letter-spacing: .04em;
  border: 2px solid rgba(183,116,11,.22);
  box-shadow: 0 5px 12px rgba(160,104,18,.18),inset 0 2px 0 rgba(255,255,255,.52);
}
.tr1-letter-train-card .tr1-single-train-board {
  flex: 1;
  min-height: 176px;
  padding: 12px 7px 18px;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: 21px;
  background: radial-gradient(circle at 18% 18%,#fff 0 6%,transparent 7%),
    radial-gradient(circle at 72% 24%,rgba(255,255,255,.92) 0 8%,transparent 9%),
    linear-gradient(180deg,#cceeff 0 64%,#cdeb9e 64% 100%);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.74),0 8px 18px rgba(50,111,160,.11);
}
.tr1-letter-train-card .tr1-single-train-board::before {
  content: "";
  position: absolute;
  left: -3%;
  right: -3%;
  bottom: 12px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg,#8a765c 0 24%,#4f4651 24% 50%,#aa8a62 50% 68%,#5e5055 68% 100%);
  box-shadow: 0 7px 0 rgba(129,96,60,.24);
}
.tr1-single-train-stage {
  width: 100%;
  margin: 0;
  min-height: 128px;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 2px 8px;
  box-sizing: border-box;
}
.tr1-letter-train-card .tr1-train-row {
  grid-template-columns: 56px minmax(0,1fr);
  gap: 3px;
  min-height: 82px;
  width: 100%;
  align-items: end;
  margin-bottom: 6px;
  box-sizing: border-box;
}
.tr1-letter-train-card .tr1-train-row::after {
  display: none;
}
.tr1-letter-train-card .tr1-loco {
  width: 56px;
  height: 74px;
  font-size: 48px;
  filter: drop-shadow(0 7px 6px rgba(49,40,91,.22));
}
.tr1-letter-train-card .tr1-train-track {
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(0,1fr) 4px minmax(0,1fr) 4px minmax(0,1fr) 4px minmax(0,1fr) 4px minmax(0,1fr);
}
.tr1-letter-train-card .tr1-coupler {
  height: 4px;
  background: #4b4b66;
  box-shadow: 0 2px 0 rgba(255,255,255,.38);
}
.tr1-letter-train-card .tr1-wagon {
  min-width: 0;
  height: 68px;
  border-width: 3px;
  border-radius: 15px 15px 11px 11px;
  font-size: 28px;
  color: #24325e;
  box-shadow: 0 7px 12px rgba(45,52,112,.15),inset 0 3px 0 rgba(255,255,255,.54);
}
.tr1-letter-train-card .tr1-wagon-color-1 {
  background: linear-gradient(180deg,#ffe26e,#ffbd42);
  border-color: #d8901d;
}
.tr1-letter-train-card .tr1-wagon-color-2 {
  background: linear-gradient(180deg,#8fe0ff,#5fb8f6);
  border-color: #3988cf;
}
.tr1-letter-train-card .tr1-wagon-color-3 {
  background: linear-gradient(180deg,#fff6c4,#ffe998);
  border-color: #d7ad45;
}
.tr1-letter-train-card .tr1-wagon-color-4 {
  background: linear-gradient(180deg,#9ee9a1,#63ca82);
  border-color: #409b63;
}
.tr1-letter-train-card .tr1-wagon-color-5 {
  background: linear-gradient(180deg,#ffb5e6,#ef86c7);
  border-color: #ba5a9f;
}
.tr1-letter-train-card .tr1-letter-slot {
  background: linear-gradient(180deg,#fffce9,#fff2ba);
  color: #b27a08;
  border-color: #dfae39;
}
.tr1-letter-train-card .tr1-letter-slot.ready {
  border-color: #6d5bd0;
  box-shadow: 0 0 0 5px rgba(109,91,208,.14),0 7px 12px rgba(45,52,112,.15);
}
.tr1-letter-train-card .tr1-letter-slot.filled {
  background: linear-gradient(180deg,#baf2ca,#7bdc9d);
  border-color: #29935d;
  color: #12633f;
}
.tr1-letter-train-card .tr1-wagon i {
  width: 15px;
  height: 15px;
  bottom: -11px;
  background: #393956;
  border: 3px solid #fff;
}
.tr1-letter-train-card .tr1-wagon i:first-of-type {
  left: 12px;
}
.tr1-letter-train-card .tr1-wagon i:last-of-type {
  right: 12px;
}
.tr1-letter-train-card .tr1-letter-box-panel {
  margin-top: 0;
  padding: 9px;
  border: 2px solid rgba(81,128,203,.15);
  background: linear-gradient(135deg,#f0e7ff,#dff5ff 54%,#e9ffe7);
  box-shadow: 0 7px 15px rgba(64,78,149,.10),inset 0 0 0 1px rgba(255,255,255,.76);
}
.tr1-letter-train-card .tr1-letter-chip:nth-child(5n/**/+1) {
  background: #fff0aa;
}
.tr1-letter-train-card .tr1-letter-chip:nth-child(5n/**/+2) {
  background: #d9f5df;
}
.tr1-letter-train-card .tr1-letter-chip:nth-child(5n/**/+3) {
  background: #e7ddff;
}
.tr1-letter-train-card .tr1-letter-chip:nth-child(5n/**/+4) {
  background: #dff2ff;
}
.tr1-letter-train-card .tr1-letter-chip:nth-child(5n) {
  background: #ffe0ef;
}
@media (max-width:430px) {
  .tr1-letter-train-card .tr1-guide-row.train {
    min-height: 116px;
    padding-right: 102px;
  }
  .tr1-letter-train-card .tr1-guide-row.train .tr1-language-helper {
    min-height: 78px;
    padding: 9px 10px;
    font-size: 10.5px;
  }
  .tr1-letter-train-card .tr1-guide-mascot.train {
    width: 92px;
    height: 112px;
    right: 6px;
    bottom: 0;
  }
  .tr1-letter-train-card .tr1-single-train-board {
    min-height: 158px;
    padding: 10px 3px 16px;
  }
  .tr1-letter-train-card .tr1-train-row {
    grid-template-columns: 42px minmax(0,1fr);
    gap: 2px;
    min-height: 68px;
    margin-bottom: 4px;
  }
  .tr1-letter-train-card .tr1-loco {
    width: 42px;
    height: 60px;
    font-size: 38px;
  }
  .tr1-letter-train-card .tr1-train-track {
    grid-template-columns: minmax(0,1fr) 2px minmax(0,1fr) 2px minmax(0,1fr) 2px minmax(0,1fr) 2px minmax(0,1fr);
  }
  .tr1-letter-train-card .tr1-coupler {
    height: 4px;
  }
  .tr1-letter-train-card .tr1-wagon {
    height: 58px;
    font-size: 23px;
    border-width: 2.5px;
    border-radius: 13px 13px 10px 10px;
  }
  .tr1-letter-train-card .tr1-wagon i {
    width: 12px;
    height: 12px;
    bottom: -9px;
    border-width: 2px;
  }
  .tr1-letter-train-card .tr1-wagon i:first-of-type {
    left: 8px;
  }
  .tr1-letter-train-card .tr1-wagon i:last-of-type {
    right: 8px;
  }
  .tr1-train-kicker {
    padding: 5px 14px;
    font-size: 11px;
  }
}
@media (max-height:720px) {
  .tr1-letter-train-card .tr1-guide-row.train {
    min-height: 102px;
    padding-right: 92px;
  }
  .tr1-letter-train-card .tr1-guide-row.train .tr1-language-helper {
    min-height: 68px;
    padding: 7px 9px;
    font-size: 10px;
  }
  .tr1-letter-train-card .tr1-guide-mascot.train {
    width: 84px;
    height: 98px;
    right: 4px;
  }
  .tr1-letter-train-card .tr1-single-train-board {
    min-height: 128px;
    padding-top: 6px;
    padding-bottom: 12px;
  }
  .tr1-letter-train-card .tr1-train-row {
    grid-template-columns: 40px minmax(0,1fr);
    gap: 2px;
    min-height: 60px;
    margin-bottom: 4px;
  }
  .tr1-letter-train-card .tr1-loco {
    width: 40px;
    height: 55px;
    font-size: 35px;
  }
  .tr1-letter-train-card .tr1-wagon {
    height: 51px;
    font-size: 22px;
  }
  .tr1-letter-train-card .tr1-wagon i {
    width: 11px;
    height: 11px;
    bottom: -8px;
  }
}
.tr1-neighbor-card .tr1-guide-mascot.neighbors img {
  transform: rotate(0deg);
}
.tr1-factory-card .tr1-guide-mascot.factory img {
  transform: rotate(0deg);
}

/* --------------------------------------------------------------------------
   Grade 3 Turkish - Kelimo start, transitions, and final celebration
   Character images are data-driven and supplied by activity JSON.
   -------------------------------------------------------------------------- */
.activity-character {
  display: grid;
  place-items: center;
  pointer-events: none;
  user-select: none;
}
.activity-character img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 10px 12px rgba(55,48,93,.16));
}
.tr1-start-card {
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.tr1-start-card .start-info {
  margin-bottom: 0;
}
.tr1-start-hero {
  width: 100%;
  min-height: 210px;
  display: grid;
  place-items: center;
  position: relative;
  margin-bottom: 22px;
}
.tr1-start-hero::before {
  content: "";
  position: absolute;
  width: 210px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle,rgba(221,249,242,.95),rgba(231,244,255,.58) 56%,transparent 72%);
}
.start-kelimo {
  position: relative;
  z-index: 1;
  width: 170px;
  height: 210px;
}
.tr1-start-message {
  width: min(330px,100%);
  justify-content: center;
  text-align: center;
  border: 2px solid rgba(109,91,208,.10);
  background: linear-gradient(135deg,#ffffff,#fff9e8);
}
.tr1-start-card .actions .primary-btn {
  min-width: 132px;
}
.tr1-section-complete-card {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 18% 18%,rgba(255,235,150,.42),transparent 18%),
    radial-gradient(circle at 82% 22%,rgba(167,225,255,.45),transparent 21%),
    linear-gradient(180deg,#ffffff,#f6fbff 58%,#fff8e7);
}
.tr1-section-complete-card::before,
.tr1-section-complete-card::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  filter: blur(2px);
  opacity: .48;
  pointer-events: none;
}
.tr1-section-complete-card::before {
  left: -70px;
  top: 8%;
  background: #dff9ef;
}
.tr1-section-complete-card::after {
  right: -80px;
  bottom: 8%;
  background: #f5e4ff;
}
.section-kelimo {
  width: 178px;
  height: 224px;
  position: relative;
  z-index: 2;
}
.tr1-section-sparkles {
  position: relative;
  z-index: 2;
  margin-top: -12px;
  font-size: 25px;
  letter-spacing: 8px;
  color: #f1b82d;
  text-shadow: 0 4px 10px rgba(241,184,45,.18);
}
.tr1-section-complete-card h1,
.tr1-section-complete-card p,
.tr1-section-complete-card .primary-btn {
  position: relative;
  z-index: 2;
}
.tr1-section-complete-card .tr1-next-title {
  padding: 9px 13px;
  border-radius: 15px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 8px 18px rgba(23,48,76,.07);
  font-size: 14px;
}
.tr1-section-complete-card .primary-btn {
  min-width: 190px;
}
.tr1-finish-card .finish-kelimo {
  width: 142px;
  height: 178px;
  margin-bottom: -6px;
}
.tr1-finish-card .finish-kelimo img {
  filter: drop-shadow(0 9px 10px rgba(55,48,93,.15));
}
.tr1-finish-card.finish-period {
  justify-content: flex-start;
  padding: 20px 18px 18px;
  gap: 10px;
  background: linear-gradient(180deg,rgba(255,255,255,.92),rgba(248,252,255,.96));
}
.tr1-finish-card.finish-period h1 {
  margin: 0;
  color: #17304c;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -.02em;
}
.tr1-finish-card.finish-period .finish-message {
  max-width: 300px;
  color: #5a6d83;
  font-size: 14px;
  line-height: 1.42;
  font-weight: 800;
}
.tr1-finish-card.finish-period .score-box {
  min-width: 168px;
  padding: 14px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg,#ffffff,#f4f9ff) !important;
  border: 2px solid #d9e9fb !important;
  box-shadow: 0 8px 18px rgba(23,48,76,.07) !important;
  color: #17304c;
  font-size: 17px;
}
.tr1-finish-card.finish-period .final-rozet-card {
  width: min(312px,100%);
  margin: 2px auto 0;
  padding: 18px 16px 16px;
  border-radius: 24px;
  background: linear-gradient(180deg,#ffffff 0%,#f8fbff 100%) !important;
  border: 2px solid #dbe8f8 !important;
  box-shadow: 0 14px 28px rgba(23,48,76,.08) !important;
}
.tr1-finish-card.finish-period .final-rozet-card::before,
.tr1-finish-card.finish-period .final-rozet-card::after,
.tr1-finish-card.finish-period .final-rozet-glow {
  display: none !important;
  content: none !important;
}
.tr1-finish-card.finish-period .final-rozet-medal {
  width: 86px !important;
  height: 86px !important;
  margin: 0 auto 10px !important;
  border: 6px solid #eef6ff !important;
  background: radial-gradient(circle at 35% 30%,#ffffff,#7cc5ff 38%,var(--badge,#3b82c4) 72%,#23558a 100%) !important;
  box-shadow: 0 12px 24px rgba(59,130,196,.18), inset 0 0 0 3px rgba(255,255,255,.35) !important;
  font-size: 38px !important;
}
.tr1-finish-card.finish-period .final-rozet-kicker {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 6px 12px !important;
  border-radius: 999px !important;
  background: #eef6ff !important;
  border: 1px solid #cfe1f6 !important;
  color: #35597b !important;
  font-size: 12px !important;
  font-weight: 950 !important;
}
.tr1-finish-card.finish-period .final-rozet-title {
  margin-top: 10px !important;
  color: #17304c !important;
  font-size: 20px !important;
  line-height: 1.12 !important;
  font-weight: 950 !important;
}
.tr1-finish-card.finish-period .final-rozet-text {
  margin-top: 6px !important;
  color: #5f7288 !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  font-weight: 850 !important;
  max-width: 240px;
  margin-left: auto !important;
  margin-right: auto !important;
}
.tr1-finish-card.finish-period .result-actions {
  width: min(300px,100%);
  margin-top: 2px;
}
.tr1-finish-card.finish-period .result-actions .primary-btn,
.tr1-finish-card.finish-period .result-actions .ghost-btn {
  width: 100%;
  min-height: 48px;
  border-radius: 18px;
}
.tr1-finish-card.finish-period .result-actions .primary-btn {
  box-shadow: 0 10px 20px rgba(59,130,196,.18);
}
.tr1-finish-card.finish-period .result-actions .ghost-btn {
  background: #edf3fa;
  color: #17304c;
  box-shadow: none;
}
@media (max-width:390px) {
  .tr1-finish-card.finish-period {
    padding: 18px 14px 16px;
    gap: 9px;
  }
  .tr1-finish-card.finish-period h1 {
    font-size: 29px;
  }
  .tr1-finish-card.finish-period .score-box {
    font-size: 16px;
    padding: 12px 16px;
  }
  .tr1-finish-card.finish-period .final-rozet-card {
    padding: 16px 14px 14px;
  }
  .tr1-finish-card.finish-period .final-rozet-title {
    font-size: 18px !important;
  }
  .tr1-finish-card.finish-period .final-rozet-text {
    font-size: 12.5px !important;
  }
  .tr1-start-hero {
    min-height: 188px;
    margin-bottom: 20px;
  }
  .start-kelimo {
    width: 150px;
    height: 188px;
  }
  .section-kelimo {
    width: 154px;
    height: 194px;
  }
  .tr1-section-complete-card {
    gap: 10px;
    padding: 16px 14px;
  }
  .tr1-section-complete-card h1 {
    font-size: 30px;
  }
  .tr1-section-complete-card p {
    font-size: 15px;
  }
  .tr1-finish-card .finish-kelimo {
    width: 122px;
    height: 154px;
  }
  .tr1-finish-card.finish-period .finish-kelimo {
    width: 116px;
    height: 146px;
  }
}
@media (max-height:720px) {
  .tr1-finish-card.finish-period {
    padding: 16px 14px 14px;
    gap: 8px;
  }
  .tr1-finish-card.finish-period h1 {
    font-size: 28px;
  }
  .tr1-finish-card.finish-period .score-box {
    padding: 11px 14px;
    font-size: 15px;
  }
  .tr1-finish-card.finish-period .final-rozet-medal {
    width: 78px !important;
    height: 78px !important;
    font-size: 34px !important;
  }
  .tr1-start-hero {
    min-height: 148px;
    margin-bottom: 14px;
  }
  .start-kelimo {
    width: 122px;
    height: 150px;
  }
  .tr1-start-card {
    gap: 7px;
  }
  .section-kelimo {
    width: 126px;
    height: 158px;
  }
  .tr1-section-sparkles {
    font-size: 20px;
    margin-top: -10px;
  }
  .tr1-section-complete-card {
    gap: 8px;
    padding: 12px;
  }
  .tr1-section-complete-card h1 {
    font-size: 27px;
  }
  .tr1-section-complete-card p {
    font-size: 14px;
  }
  .tr1-finish-card .finish-kelimo {
    width: 104px;
    height: 130px;
  }
  .tr1-finish-card.finish-period .finish-kelimo {
    width: 98px;
    height: 122px;
  }
}

/* --------------------------------------------------------------------------
   Grade 3 Turkish - Dictionary Order
   Reusable dictionary-shelf sorting layout.
   -------------------------------------------------------------------------- */
.tr1-dictionary-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: radial-gradient(circle at 12% 8%,rgba(255,255,255,.92) 0 5%,transparent 6%),
    radial-gradient(circle at 82% 14%,rgba(255,255,255,.76) 0 7%,transparent 8%),
    linear-gradient(180deg,#f2f9ff 0 36%,#f9f1ff 36% 67%,#fff9e4 67% 100%);
  border: 1px solid rgba(109,91,208,.14);
  box-shadow: 0 12px 28px rgba(70,56,135,.10);
}
.tr1-dictionary-card.story-books {
  background: radial-gradient(circle at 11% 10%,rgba(255,255,255,.9) 0 5%,transparent 6%),
    linear-gradient(180deg,#effaf3 0 32%,#f6f0ff 32% 68%,#fff7df 68% 100%);
}
.tr1-dictionary-card.repair {
  background: radial-gradient(circle at 15% 10%,rgba(255,255,255,.9) 0 5%,transparent 6%),
    linear-gradient(180deg,#fff7ef 0 30%,#f4f1ff 30% 70%,#eef9ff 70% 100%);
}
.tr1-dictionary-card.master {
  background: radial-gradient(circle at 18% 10%,rgba(255,255,255,.9) 0 5%,transparent 6%),
    linear-gradient(180deg,#fff8de 0 26%,#f7f1ff 26% 62%,#eefcff 62% 100%);
}
.tr1-dictionary-card .tr1-guide-row {
  min-height: 116px;
  padding-right: 108px;
}
.tr1-dictionary-card .tr1-language-helper {
  min-height: 78px;
  padding: 11px 12px;
  border: 2px solid #efcf72;
  background: linear-gradient(135deg,#fff7d8,#fffdf5);
  color: #43366d;
  box-shadow: 0 7px 15px rgba(185,139,32,.10),inset 0 0 0 1px rgba(255,255,255,.78);
}
.tr1-dictionary-card .tr1-guide-mascot {
  right: 5px;
  bottom: 0;
  width: 100px;
  height: 118px;
}
.tr1-dictionary-card .tr1-guide-mascot img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 10px 15px rgba(55,47,103,.14));
}
.tr1-dictionary-card .tr1-guide-mascot.dictionary-pointing img {
  transform: rotate(-3deg);
}
.tr1-dictionary-card .tr1-guide-mascot.dictionary-waiting img {
  transform: rotate(2deg);
}
.tr1-dictionary-card .tr1-guide-mascot.dictionary-thinking img {
  transform: rotate(-1deg);
}
.tr1-dictionary-card .tr1-guide-mascot.dictionary-happy img {
  transform: rotate(3deg);
}
.tr1-dictionary-shelf-wrap {
  position: relative;
  padding: 12px 12px 16px;
  border-radius: 22px;
  background: linear-gradient(180deg,#8b5d37,#704426);
  box-shadow: 0 9px 18px rgba(83,48,23,.18),inset 0 2px 0 rgba(255,255,255,.20);
}
.tr1-dictionary-shelf-wrap::before,
.tr1-dictionary-shelf-wrap::after {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 12px;
  width: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg,#cca06f,#82522f);
  box-shadow: inset 0 0 0 1px rgba(95,57,28,.25);
}
.tr1-dictionary-shelf-wrap::before {
  left: 8px;
}
.tr1-dictionary-shelf-wrap::after {
  right: 8px;
}
.tr1-dictionary-shelf-title {
  width: max-content;
  max-width: 100%;
  margin: 0 auto 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff2c3;
  color: #67421d;
  font-size: 11px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: .04em;
  box-shadow: inset 0 0 0 2px rgba(116,74,34,.14);
}
.tr1-dictionary-shelf {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--shelf-cols,4),minmax(0,1fr));
  gap: 9px;
  padding: 10px 16px 12px;
  border-radius: 15px;
  background: linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,0)),
    repeating-linear-gradient(180deg,rgba(255,255,255,.08) 0 53px,rgba(89,49,22,.24) 53px 61px),
    linear-gradient(180deg,#c6935d,#ae7545);
  box-shadow: inset 0 0 0 2px rgba(74,39,18,.18);
}
.tr1-order-slot {
  min-width: 0;
  min-height: 68px;
  position: relative;
  padding: 16px 6px 8px;
  border: 2px dashed rgba(255,255,255,.68);
  border-radius: 11px 11px 5px 5px;
  background: rgba(255,255,255,.18);
  color: #fff8e9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
  touch-action: none;
  transition: transform .15s ease,background .15s ease,border-color .15s ease,box-shadow .15s ease;
}
.tr1-order-slot strong {
  font-size: 10px;
  line-height: 1.08;
  font-weight: 950;
  overflow-wrap: anywhere;
}
.tr1-word-text {
  display: inline;
}
.tr1-word-text mark {
  background: linear-gradient(180deg,#fff2a8,#ffd564);
  color: #51330b;
  border-radius: 6px;
  padding: 0 .08em;
  box-shadow: 0 1px 0 rgba(255,255,255,.62) inset;
}
.tr1-order-hint {
  font-size: 8px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .02em;
  color: #8a6330;
}
.tr1-slot-number {
  position: absolute;
  top: 4px;
  left: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: rgba(75,43,20,.72);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 9px;
  line-height: 1;
  font-weight: 950;
}
.tr1-order-slot.ready {
  border-color: #fff3a9;
  background: rgba(255,243,169,.26);
  box-shadow: 0 0 0 4px rgba(255,243,169,.12);
}
.tr1-order-slot.drop-hover {
  transform: translateY(-3px) scale(1.03);
  border-style: solid;
  border-color: #fff;
  background: rgba(255,255,255,.34);
}
.tr1-order-slot.filled {
  border-style: solid;
  border-color: #fff9d8;
  background: linear-gradient(180deg,#fffbe9,#ffe4a8);
  color: #413160;
  box-shadow: 0 5px 10px rgba(65,39,19,.18),inset 0 2px 0 rgba(255,255,255,.86);
}
.tr1-order-slot.filled .tr1-slot-number {
  background: #6d5bd0;
}
.tr1-dictionary-learning-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 15px;
  background: linear-gradient(135deg,#fff8da,#fffdf5);
  border: 2px solid rgba(239,207,114,.65);
  color: #5c4a24;
  box-shadow: 0 7px 14px rgba(124,95,29,.09);
}
.tr1-dictionary-learning-note strong {
  flex: 0 0 auto;
  font-size: 10px;
  line-height: 1;
  font-weight: 950;
  color: #6d5bd0;
}
.tr1-dictionary-learning-note span {
  font-size: 10px;
  line-height: 1.25;
  font-weight: 800;
}
.tr1-dictionary-source {
  position: relative;
  padding: 10px;
  border-radius: 20px;
  background: linear-gradient(135deg,#e9f8ff,#f2e9ff 56%,#efffdf);
  border: 2px solid rgba(109,91,208,.10);
  box-shadow: 0 7px 15px rgba(68,56,127,.08),inset 0 0 0 1px rgba(255,255,255,.75);
}
.tr1-dictionary-source.repair-source {
  background: linear-gradient(135deg,#fff0ef,#fff8d9 54%,#f2e9ff);
  border-color: rgba(229,112,96,.18);
}
.tr1-dictionary-source-title {
  margin-bottom: 7px;
  text-align: center;
  color: #5d4fa8;
  font-size: 11px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: .04em;
}
.tr1-book-bank {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 7px;
}
.tr1-book-card {
  min-width: 0;
  min-height: 76px;
  position: relative;
  overflow: hidden;
  padding: 9px 6px 8px 14px;
  border: 2px solid #d88d32;
  border-radius: 7px 12px 12px 6px;
  background: linear-gradient(135deg,#fff1a8,#ffc85d);
  color: #3d315e;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 7px 13px rgba(68,54,121,.12),inset -4px 0 0 rgba(255,255,255,.35);
  touch-action: none;
  user-select: none;
  cursor: pointer;
  transition: transform .16s ease,box-shadow .16s ease,border-color .16s ease;
}
.tr1-book-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,rgba(255,255,255,.18),transparent 50%);
  pointer-events: none;
}
.tr1-book-card:nth-child(6n/**/+2) {
  background: linear-gradient(135deg,#dff5ff,#8ed8f4);
  border-color: #55acd0;
}
.tr1-book-card:nth-child(6n/**/+3) {
  background: linear-gradient(135deg,#f2e7ff,#c5aff7);
  border-color: #9877df;
}
.tr1-book-card:nth-child(6n/**/+4) {
  background: linear-gradient(135deg,#e6fadf,#a9e58e);
  border-color: #6eba56;
}
.tr1-book-card:nth-child(6n/**/+5) {
  background: linear-gradient(135deg,#ffe8f4,#f6a9cf);
  border-color: #d777aa;
}
.tr1-book-card:nth-child(6n) {
  background: linear-gradient(135deg,#ffe7d6,#ffb47e);
  border-color: #dc8650;
}
.tr1-book-card strong {
  position: relative;
  z-index: 2;
  font-size: 10px;
  line-height: 1.08;
  font-weight: 950;
  overflow-wrap: anywhere;
}
.tr1-book-spine {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 8px;
  background: rgba(58,42,86,.16);
  border-right: 1px solid rgba(255,255,255,.45);
}
.tr1-bookmark {
  position: absolute;
  top: -1px;
  right: 9px;
  width: 10px;
  height: 14px;
  background: #ff6d8f;
  clip-path: polygon(0 0,100% 0,100% 76%,50% 100%,0 76%);
  opacity: .92;
}
.tr1-book-card.selected,
.tr1-book-card:hover {
  transform: translateY(-4px) rotate(-1deg);
  border-color: #6d5bd0;
  box-shadow: 0 0 0 4px rgba(109,91,208,.13),0 10px 15px rgba(68,54,121,.16);
}
.tr1-book-card.dragging {
  transform: scale(1.06) rotate(-3deg);
  box-shadow: 0 15px 26px rgba(56,44,108,.28);
}
.tr1-dictionary-card.repair .tr1-book-card,
.tr1-dictionary-card.master .tr1-book-card {
  min-height: 50px;
  border-radius: 10px;
  padding: 7px 6px 7px 12px;
}
.tr1-dictionary-card.repair .tr1-book-bank {
  grid-template-columns: repeat(4,minmax(0,1fr));
}
.tr1-dictionary-card.master .tr1-book-bank {
  grid-template-columns: repeat(3,minmax(0,1fr));
}
.tr1-dictionary-card.master .tr1-order-slot {
  min-height: 54px;
}
.tr1-dictionary-card.repair .tr1-book-card:nth-child(odd) {
  transform: rotate(-1.5deg);
}
.tr1-dictionary-card.repair .tr1-book-card:nth-child(even) {
  transform: rotate(1.5deg);
}
.tr1-dictionary-review {
  margin-top: 0;
}
@media (max-width:430px) {
  .tr1-dictionary-card {
    gap: 7px;
    padding: 8px;
  }
  .tr1-dictionary-card .tr1-guide-row {
    min-height: 104px;
    padding-right: 94px;
  }
  .tr1-dictionary-card .tr1-language-helper {
    min-height: 70px;
    padding: 8px 9px;
    font-size: 10.5px;
  }
  .tr1-dictionary-card .tr1-guide-mascot {
    width: 88px;
    height: 104px;
    right: 3px;
  }
  .tr1-dictionary-shelf-wrap {
    padding: 8px 8px 11px;
    border-radius: 18px;
  }
  .tr1-dictionary-shelf {
    gap: 6px;
    padding: 8px 12px 10px;
  }
  .tr1-order-slot {
    min-height: 60px;
    padding: 14px 3px 6px;
  }
  .tr1-order-slot strong {
    font-size: 9px;
  }
  .tr1-order-hint {
    font-size: 7px;
  }
  .tr1-dictionary-learning-note {
    padding: 8px 9px;
    gap: 6px;
  }
  .tr1-dictionary-learning-note strong,
  .tr1-dictionary-learning-note span {
    font-size: 9px;
  }
  .tr1-book-bank {
    gap: 5px;
  }
  .tr1-book-card {
    min-height: 64px;
    padding: 7px 4px 6px 11px;
  }
  .tr1-book-card strong {
    font-size: 9px;
  }
  .tr1-dictionary-card.repair .tr1-book-card,
  .tr1-dictionary-card.master .tr1-book-card {
    min-height: 45px;
  }
  .tr1-dictionary-card.master .tr1-order-slot {
    min-height: 49px;
  }
}
@media (max-height:720px) {
  .tr1-dictionary-card .tr1-guide-row {
    min-height: 90px;
    padding-right: 84px;
  }
  .tr1-dictionary-card .tr1-language-helper {
    min-height: 60px;
    padding: 6px 8px;
    font-size: 10px;
  }
  .tr1-dictionary-card .tr1-guide-mascot {
    width: 78px;
    height: 90px;
  }
  .tr1-dictionary-shelf-wrap {
    padding: 6px 6px 8px;
  }
  .tr1-dictionary-shelf-title {
    margin-bottom: 5px;
    padding: 4px 10px;
    font-size: 10px;
  }
  .tr1-dictionary-shelf {
    gap: 4px;
    padding: 6px 10px 8px;
  }
  .tr1-order-slot {
    min-height: 47px;
    padding-top: 12px;
  }
  .tr1-order-slot strong {
    font-size: 8.5px;
  }
  .tr1-order-hint {
    font-size: 6.8px;
  }
  .tr1-dictionary-learning-note {
    padding: 7px 8px;
  }
  .tr1-book-card {
    min-height: 50px;
  }
  .tr1-dictionary-source {
    padding: 6px;
  }
}

/* Grade 3 Turkish - Shared syllable activity layouts. */
.tr1-syllable-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: radial-gradient(circle at 12% 10%,rgba(255,255,255,.9) 0 5%,transparent 6%),
    radial-gradient(circle at 86% 14%,rgba(255,255,255,.75) 0 7%,transparent 8%),
    linear-gradient(180deg,#eef9ff 0 36%,#f8f0ff 36% 68%,#fff8df 68% 100%);
  border: 1px solid rgba(109,91,208,.14);
  box-shadow: 0 12px 28px rgba(70,56,135,.10);
}
.tr1-syllable-card .tr1-guide-row {
  min-height: 112px;
  padding-right: 106px;
}
.tr1-syllable-card .tr1-language-helper {
  min-height: 76px;
  padding: 10px 12px;
  border: 2px solid #9ddce9;
  background: linear-gradient(135deg,#ebfbff,#fffdf5);
  color: #403469;
  box-shadow: 0 7px 15px rgba(53,144,168,.09),inset 0 0 0 1px rgba(255,255,255,.8);
}
.tr1-syllable-card .tr1-guide-mascot {
  right: 4px;
  bottom: 0;
  width: 100px;
  height: 116px;
}
.tr1-syllable-card .tr1-guide-mascot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 9px 14px rgba(57,47,103,.14));
}
.tr1-syllable-stage,
.tr1-syllable-current-wrap {
  position: relative;
  padding: 11px;
  border-radius: 20px;
  background: linear-gradient(135deg,#ffffff,#f5fbff);
  border: 2px solid rgba(93,179,210,.18);
  box-shadow: 0 8px 17px rgba(61,84,133,.08),inset 0 0 0 1px rgba(255,255,255,.8);
  text-align: center;
}
.tr1-syllable-kicker {
  width: max-content;
  max-width: 100%;
  margin: 0 auto 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #e8ddff;
  color: #654db0;
  font-size: 10px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: .05em;
}
.tr1-syllable-word {
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 10px 22px;
  border-radius: 16px;
  background: linear-gradient(135deg,#cbefff,#a8dff5);
  color: #263757;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 950;
  box-shadow: 0 7px 14px rgba(53,130,166,.12),inset 0 0 0 1px rgba(255,255,255,.74);
}
.tr1-syllable-word-muted {
  background: linear-gradient(135deg,#f4eeff,#ded1ff);
  color: #534587;
}
.tr1-syllable-prompt {
  margin-top: 8px;
  color: #685d83;
  font-size: 10px;
  line-height: 1.25;
  font-weight: 800;
}
.tr1-syllable-options {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 8px;
}
.tr1-syllable-option {
  min-height: 58px;
  padding: 9px 7px;
  border: 2px solid #efd680;
  border-radius: 15px;
  background: linear-gradient(135deg,#fff9d8,#fff0aa);
  color: #40325e;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 900;
  box-shadow: 0 6px 12px rgba(121,91,34,.09),inset 0 1px 0 rgba(255,255,255,.85);
  cursor: pointer;
}
.tr1-syllable-option:nth-child(2) {
  border-color: #a8d5ee;
  background: linear-gradient(135deg,#e9f8ff,#cdeeff);
}
.tr1-syllable-option:nth-child(3) {
  border-color: #c9b5ee;
  background: linear-gradient(135deg,#f5edff,#e3d6ff);
}
.tr1-syllable-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 15px rgba(79,62,126,.13);
}
.tr1-syllable-review {
  margin-top: 0;
}
.tr1-syllable-answer,
.tr1-built-word {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #eaf9e3;
  color: #2d6b33;
  font-size: 14px;
  line-height: 1.1;
  font-weight: 950;
}
.tr1-syllable-sort-card {
  background: radial-gradient(circle at 14% 10%,rgba(255,255,255,.88) 0 5%,transparent 6%),
    linear-gradient(180deg,#f0fbff 0 28%,#f8f1ff 28% 64%,#fff7dc 64% 100%);
}
.tr1-syllable-drag-word {
  min-width: 150px;
  min-height: 62px;
  margin: 0 auto;
  padding: 8px 16px;
  border: 2px solid #53aed2;
  border-radius: 16px;
  background: linear-gradient(135deg,#dff6ff,#9fe0f7);
  color: #28395c;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  box-shadow: 0 8px 15px rgba(55,132,166,.15),inset 0 1px 0 rgba(255,255,255,.82);
  cursor: pointer;
  touch-action: none;
  user-select: none;
}
.tr1-syllable-drag-word span {
  font-size: 17px;
  line-height: 1.05;
  font-weight: 950;
}
.tr1-syllable-drag-word small {
  color: #5b7290;
  font-size: 8.5px;
  line-height: 1;
  font-weight: 800;
}
.tr1-syllable-drag-word.selected {
  transform: translateY(-3px);
  border-color: #6d5bd0;
  box-shadow: 0 0 0 4px rgba(109,91,208,.12),0 9px 16px rgba(55,68,132,.16);
}
.tr1-syllable-drag-word.dragging {
  transform: scale(1.05) rotate(-2deg);
  box-shadow: 0 15px 25px rgba(50,64,124,.24);
}
.tr1-syllable-bin-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
}
.tr1-syllable-bin {
  min-height: 94px;
  padding: 9px 8px;
  border: 2px solid transparent;
  border-radius: 17px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
  color: #233552;
  text-align: center;
  box-shadow: 0 7px 14px rgba(58,66,112,.09),inset 0 1px 0 rgba(255,255,255,.82);
  touch-action: none;
}
.tr1-syllable-bin strong {
  min-height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,.65);
  font-size: 11px;
  line-height: 1;
  font-weight: 950;
}
.tr1-syllable-bin.bin-0 {
  background: linear-gradient(135deg,#dff6ff,#9ee0f8);
  border-color: #54afd1;
}
.tr1-syllable-bin.bin-1 {
  background: linear-gradient(135deg,#ffe5f5,#f5add3);
  border-color: #d77aad;
}
.tr1-syllable-bin.bin-2 {
  background: linear-gradient(135deg,#e6f9df,#aee695);
  border-color: #72bd5b;
}
.tr1-syllable-bin.bin-3 {
  background: linear-gradient(135deg,#ffe5df,#ffb6a5);
  border-color: #df806d;
}
.tr1-syllable-bin.ready {
  border-style: dashed;
  box-shadow: 0 0 0 4px rgba(109,91,208,.08),0 7px 14px rgba(58,66,112,.09);
}
.tr1-syllable-bin.drop-hover {
  transform: translateY(-3px) scale(1.02);
  border-style: solid;
  border-color: #6d5bd0;
}
.tr1-syllable-bin-words {
  min-height: 36px;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: center;
  gap: 4px;
}
.tr1-syllable-bin-words span {
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  color: #43506d;
  font-size: 8.5px;
  line-height: 1.05;
  font-weight: 850;
}
.tr1-syllable-bin-words em {
  align-self: center;
  color: rgba(51,64,89,.55);
  font-size: 8px;
  line-height: 1.15;
  font-style: normal;
  font-weight: 750;
}
.tr1-syllable-sort-done {
  min-height: 54px;
  display: grid;
  place-items: center;
  color: #397243;
  font-size: 13px;
  font-weight: 950;
}
.tr1-syllable-build-card {
  background: radial-gradient(circle at 82% 12%,rgba(255,255,255,.82) 0 6%,transparent 7%),
    linear-gradient(180deg,#f4efff 0 33%,#edfbff 33% 67%,#fff8dc 67% 100%);
}
.tr1-syllable-build-slots {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}
.tr1-syllable-build-slot {
  min-width: 58px;
  min-height: 48px;
  padding: 7px 11px;
  border: 2px dashed #a38bd8;
  border-radius: 14px;
  background: rgba(255,255,255,.72);
  color: #7562aa;
  font-size: 14px;
  line-height: 1;
  font-weight: 950;
  touch-action: none;
}
.tr1-syllable-build-slot.ready {
  border-color: #6d5bd0;
  background: #f6f0ff;
  box-shadow: 0 0 0 4px rgba(109,91,208,.09);
}
.tr1-syllable-build-slot.drop-hover {
  transform: translateY(-3px) scale(1.04);
  border-style: solid;
  background: #eee6ff;
}
.tr1-syllable-build-slot.filled {
  border-style: solid;
  border-color: #70bf73;
  background: linear-gradient(135deg,#effbe8,#caefc6);
  color: #33683a;
  box-shadow: 0 5px 10px rgba(63,126,69,.10);
}
.tr1-syllable-piece-bank {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border-radius: 18px;
  background: linear-gradient(135deg,#fff6e8,#fffdf6);
  border: 2px solid rgba(225,174,87,.16);
}
.tr1-syllable-piece {
  min-width: 64px;
  min-height: 46px;
  padding: 7px 12px;
  border: 2px solid #e8b56a;
  border-radius: 13px;
  background: linear-gradient(135deg,#fff0cf,#ffd992);
  color: #47355e;
  font-size: 14px;
  line-height: 1;
  font-weight: 950;
  box-shadow: 0 6px 11px rgba(119,83,35,.10),inset 0 1px 0 rgba(255,255,255,.82);
  cursor: pointer;
  touch-action: none;
  user-select: none;
}
.tr1-syllable-piece:nth-child(2n) {
  border-color: #87c7de;
  background: linear-gradient(135deg,#e9faff,#bce9f7);
}
.tr1-syllable-piece:nth-child(3n) {
  border-color: #b89be5;
  background: linear-gradient(135deg,#f5edff,#dccbfa);
}
.tr1-syllable-piece.selected {
  transform: translateY(-3px);
  border-color: #6d5bd0;
  box-shadow: 0 0 0 4px rgba(109,91,208,.12),0 8px 14px rgba(72,56,133,.15);
}
.tr1-syllable-piece.dragging {
  transform: scale(1.06) rotate(-2deg);
  box-shadow: 0 14px 24px rgba(63,51,117,.23);
}
@media (max-width:430px) {
  .tr1-syllable-card {
    gap: 7px;
    padding: 8px;
  }
  .tr1-syllable-card .tr1-guide-row {
    min-height: 96px;
    padding-right: 88px;
  }
  .tr1-syllable-card .tr1-language-helper {
    min-height: 64px;
    padding: 7px 8px;
    font-size: 10px;
  }
  .tr1-syllable-card .tr1-guide-mascot {
    width: 82px;
    height: 96px;
  }
  .tr1-syllable-stage,
  .tr1-syllable-current-wrap {
    padding: 8px;
    border-radius: 16px;
  }
  .tr1-syllable-kicker {
    margin-bottom: 5px;
    padding: 4px 9px;
    font-size: 9px;
  }
  .tr1-syllable-word {
    padding: 8px 16px;
    border-radius: 13px;
    font-size: 18px;
  }
  .tr1-syllable-prompt {
    margin-top: 6px;
    font-size: 9px;
  }
  .tr1-syllable-options {
    gap: 6px;
  }
  .tr1-syllable-option {
    min-height: 50px;
    padding: 7px 4px;
    border-radius: 12px;
    font-size: 11px;
  }
  .tr1-syllable-drag-word {
    min-width: 138px;
    min-height: 54px;
    padding: 7px 13px;
  }
  .tr1-syllable-drag-word span {
    font-size: 15px;
  }
  .tr1-syllable-bin-grid {
    gap: 6px;
  }
  .tr1-syllable-bin {
    min-height: 82px;
    padding: 7px 6px;
    border-radius: 14px;
    gap: 5px;
  }
  .tr1-syllable-bin strong {
    min-height: 23px;
    font-size: 10px;
  }
  .tr1-syllable-bin-words {
    min-height: 29px;
    gap: 3px;
  }
  .tr1-syllable-bin-words span {
    padding: 2px 5px;
    font-size: 7.5px;
  }
  .tr1-syllable-build-slots {
    gap: 5px;
    margin-top: 8px;
  }
  .tr1-syllable-build-slot {
    min-width: 50px;
    min-height: 42px;
    padding: 6px 8px;
    font-size: 12px;
  }
  .tr1-syllable-piece-bank {
    gap: 6px;
    padding: 8px;
  }
  .tr1-syllable-piece {
    min-width: 56px;
    min-height: 40px;
    padding: 6px 9px;
    font-size: 12px;
  }
}
@media (max-height:720px) {
  .tr1-syllable-card .tr1-guide-row {
    min-height: 84px;
    padding-right: 78px;
  }
  .tr1-syllable-card .tr1-language-helper {
    min-height: 56px;
    padding: 6px 8px;
    font-size: 9.5px;
  }
  .tr1-syllable-card .tr1-guide-mascot {
    width: 72px;
    height: 84px;
  }
  .tr1-syllable-stage,
  .tr1-syllable-current-wrap {
    padding: 7px;
  }
  .tr1-syllable-word {
    padding: 7px 14px;
    font-size: 16px;
  }
  .tr1-syllable-option {
    min-height: 44px;
    font-size: 10px;
  }
  .tr1-syllable-bin {
    min-height: 70px;
    padding: 6px 5px;
  }
  .tr1-syllable-bin-words span {
    font-size: 7px;
  }
  .tr1-syllable-build-slot {
    min-height: 38px;
  }
  .tr1-syllable-piece {
    min-height: 36px;
  }
}

/* FB1 perception activity: keep five long answer cards readable on mobile. */
@media (max-width:560px) {
  .science-lab-card.living-perception-readable .science-bins.count-5 {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
  }
  .science-lab-card.living-perception-readable .science-bins.count-5 .science-bin {
    grid-column: auto;
    min-height: 88px;
    padding: 11px 10px;
  }
  .science-lab-card.living-perception-readable .science-bins.count-5 .science-bin:nth-child(4) {
    grid-column: auto;
  }
  .science-lab-card.living-perception-readable .science-bins.count-5 .science-bin:nth-child(5) {
    grid-column: 1 / -1;
    min-height: 76px;
  }
  .science-lab-card.living-perception-readable .science-bin.no-icon strong {
    font-size: 14px;
    line-height: 1.28;
    letter-spacing: 0;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }
}
@media (max-width:390px) {
  .science-lab-card.living-perception-readable .science-bins.count-5 {
    gap: 8px;
  }
  .science-lab-card.living-perception-readable .science-bins.count-5 .science-bin {
    min-height: 84px;
    padding: 9px 8px;
  }
  .science-lab-card.living-perception-readable .science-bin.no-icon strong {
    font-size: 13px;
    line-height: 1.26;
  }
}

/* --------------------------------------------------------------------------
   Grade 3 Turkish - Word Knowledge
   Sentence word-count machines and function-word collection game.
   -------------------------------------------------------------------------- */
.tr1-wordcount-game,
.tr1-function-word-game {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tr1-wordcount-current {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tr1-wordcount-card {
  width: 100%;
  min-height: 68px;
  border-radius: 18px;
  padding: 10px 14px;
  background: linear-gradient(135deg,#ffffff,#eafcff);
  border: 2px solid rgba(12,159,180,.18);
  box-shadow: 0 9px 18px rgba(21,112,130,.11);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-align: center;
  font-size: 17px;
  line-height: 1.08;
  font-weight: 900;
  touch-action: none;
  user-select: none;
  transition: border-color .16s ease,box-shadow .16s ease,transform .16s ease;
}
.tr1-wordcount-card small {
  color: #557287;
  font-size: 10.5px;
  line-height: 1;
  font-weight: 850;
}
.tr1-wordcount-card.selected {
  border-color: #0c9fb4;
  box-shadow: 0 0 0 4px rgba(12,159,180,.13),0 10px 20px rgba(21,112,130,.13);
  transform: translateY(-1px);
}
.tr1-wordcount-card.dragging {
  opacity: .96;
  box-shadow: 0 18px 36px rgba(23,48,76,.24);
}
.tr1-wordcount-complete {
  width: 100%;
  min-height: 104px;
  border-radius: 18px;
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: linear-gradient(135deg,#e9fbf2,#f5fffb);
  border: 2px solid rgba(21,184,147,.22);
  color: #117a58;
  text-align: center;
  box-shadow: 0 8px 18px rgba(17,122,88,.08);
}
.tr1-wordcount-complete strong {
  font-size: 16px;
  line-height: 1.12;
  font-weight: 950;
}
.tr1-wordcount-complete span {
  color: #476b65;
  font-size: 10.5px;
  line-height: 1.12;
  font-weight: 850;
}
.tr1-wordcount-next {
  min-height: 40px;
  margin-top: 3px;
  padding: 0 16px;
  border-radius: 14px;
  font-size: 12px;
  box-shadow: 0 7px 14px rgba(21,184,147,.16);
}
.tr1-drag-ghost {
  opacity: .97;
  pointer-events: none !important;
  box-shadow: 0 18px 36px rgba(23,48,76,.24) !important;
}
.tr1-wordcount-machine-grid {
  display: grid;
  grid-template-columns: repeat(6,minmax(0,1fr));
  gap: 6px;
  align-items: stretch;
}
.tr1-wordcount-machine {
  grid-column: span 2;
  position: relative;
  min-width: 0;
  border-radius: 16px;
  padding: 5px 5px 7px;
  background: #fff;
  border: 2px solid rgba(31,121,145,.12);
  box-shadow: 0 7px 16px rgba(23,48,76,.09);
  overflow: hidden;
  transition: border-color .16s ease,box-shadow .16s ease,transform .16s ease;
}
.tr1-wordcount-machine:nth-child(4) {
  grid-column: 2 / span 2;
}
.tr1-wordcount-machine:nth-child(5) {
  grid-column: 4 / span 2;
}
.tr1-wordcount-machine.ready {
  border-color: #13a9be;
  box-shadow: 0 0 0 3px rgba(19,169,190,.10),0 8px 18px rgba(23,48,76,.10);
}
.tr1-wordcount-machine.drop-hover {
  border-color: #f5a623;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 0 4px rgba(245,166,35,.15),0 12px 24px rgba(23,48,76,.14);
}
.tr1-wordcount-machine-image {
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 11px;
  background: #eefaff;
}
.tr1-wordcount-machine-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tr1-wordcount-machine strong {
  display: block;
  margin-top: 5px;
  color: #d63b3b;
  font-size: 12.5px;
  line-height: 1;
  font-weight: 950;
}
.tr1-wordcount-machine-count {
  position: absolute;
  top: 7px;
  right: 7px;
  min-width: 27px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #16b77a;
  color: #fff;
  font-size: 10px;
  font-weight: 950;
  box-shadow: 0 4px 9px rgba(10,89,64,.22);
}
.tr1-function-review {
  margin-top: auto;
}
.tr1-function-sentence-label {
  color: #64748b;
  text-align: center;
  font-size: 10.5px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: .06em;
}
.tr1-function-word-bank {
  min-height: 132px;
  border-radius: 20px;
  padding: 12px;
  background: linear-gradient(180deg,#f7fcff,#edf8ff);
  border: 1px solid rgba(12,159,180,.13);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.75);
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.tr1-function-word-chip {
  min-height: 39px;
  padding: 7px 11px;
  border-radius: 12px;
  background: #fff;
  border: 2px solid rgba(88,107,132,.14);
  box-shadow: 0 5px 11px rgba(23,48,76,.08);
  font-size: 15px;
  line-height: 1;
  font-weight: 900;
  touch-action: none;
  user-select: none;
  transition: border-color .15s ease,background .15s ease,transform .15s ease,opacity .15s ease;
}
.tr1-function-word-chip.selected {
  border-color: #0c9fb4;
  background: #e8fbff;
  transform: translateY(-2px);
  box-shadow: 0 0 0 3px rgba(12,159,180,.12),0 7px 14px rgba(23,48,76,.10);
}
.tr1-function-word-chip.collected {
  opacity: .34;
  text-decoration: line-through;
}
.tr1-function-word-chip.dragging {
  opacity: .96;
  box-shadow: 0 17px 34px rgba(23,48,76,.22);
}
.tr1-function-box {
  width: 100%;
  min-height: 112px;
  position: relative;
  border-radius: 24px;
  padding: 12px 16px 13px;
  background: linear-gradient(160deg,#fff5bf,#ffd66d);
  border: 3px solid #f5b62e;
  box-shadow: 0 10px 22px rgba(171,111,10,.16),inset 0 0 0 3px rgba(255,255,255,.48);
  text-align: center;
  overflow: hidden;
  transition: border-color .16s ease,box-shadow .16s ease,transform .16s ease;
}
.tr1-function-box::before,
.tr1-function-box::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.28);
  pointer-events: none;
}
.tr1-function-box::before {
  left: -12px;
  top: -13px;
}
.tr1-function-box::after {
  right: -11px;
  bottom: -15px;
}
.tr1-function-box.ready {
  border-color: #0c9fb4;
  box-shadow: 0 0 0 4px rgba(12,159,180,.12),0 11px 23px rgba(171,111,10,.18);
}
.tr1-function-box.drop-hover {
  border-color: #0c9fb4;
  transform: scale(1.015);
  box-shadow: 0 0 0 5px rgba(12,159,180,.14),0 14px 28px rgba(171,111,10,.20);
}
.tr1-function-box-icon {
  position: absolute;
  top: 8px;
  left: 12px;
  color: #f39a16;
  font-size: 21px;
  line-height: 1;
}
.tr1-function-box>strong {
  display: block;
  color: #71530a;
  font-size: 17px;
  line-height: 1;
  font-weight: 950;
}
.tr1-function-box-content {
  min-height: 48px;
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.tr1-function-box-content em {
  color: #8b6b25;
  font-size: 11px;
  line-height: 1.1;
  font-style: normal;
  font-weight: 800;
}
.tr1-function-box-content span {
  border-radius: 10px;
  padding: 6px 10px;
  background: #fff;
  color: #1a6675;
  box-shadow: 0 4px 9px rgba(118,78,10,.10);
  font-size: 14px;
  line-height: 1;
  font-weight: 950;
}
@media (max-height:760px) {
  .tr1-wordcount-game,
  .tr1-function-word-game {
    gap: 6px;
  }
  .tr1-wordcount-current {
    min-height: 62px;
  }
  .tr1-wordcount-card {
    min-height: 58px;
    padding: 8px 11px;
    font-size: 15px;
  }
  .tr1-wordcount-complete {
    min-height: 92px;
    padding: 9px 10px;
    gap: 4px;
  }
  .tr1-wordcount-complete strong {
    font-size: 14px;
  }
  .tr1-wordcount-next {
    min-height: 36px;
    font-size: 11px;
  }
  .tr1-wordcount-machine-grid {
    gap: 5px;
  }
  .tr1-wordcount-machine {
    padding: 4px 4px 5px;
    border-radius: 14px;
  }
  .tr1-wordcount-machine-image {
    border-radius: 9px;
  }
  .tr1-wordcount-machine strong {
    margin-top: 4px;
    font-size: 11.5px;
  }
  .tr1-function-word-bank {
    min-height: 110px;
    padding: 9px;
    gap: 5px;
  }
  .tr1-function-word-chip {
    min-height: 34px;
    padding: 6px 9px;
    font-size: 13px;
  }
  .tr1-function-box {
    min-height: 92px;
    padding: 10px 13px;
  }
  .tr1-function-box>strong {
    font-size: 15px;
  }
  .tr1-function-box-content {
    min-height: 38px;
    margin-top: 6px;
  }
}
@media (max-width:370px) {
  .tr1-wordcount-machine-grid {
    gap: 4px;
  }
  .tr1-wordcount-machine {
    border-radius: 13px;
  }
  .tr1-wordcount-machine strong {
    font-size: 11px;
  }
  .tr1-wordcount-machine-count {
    top: 5px;
    right: 5px;
    height: 20px;
    font-size: 9px;
  }
  .tr1-function-word-bank {
    padding: 8px;
    gap: 5px;
  }
  .tr1-function-word-chip {
    padding: 6px 8px;
    font-size: 12.5px;
  }
}

/* --------------------------------------------------------------------------
   Grade 3 Turkish - Word Knowledge responsive refinements
   Keep Kelimo visible, enlarge KelimoMatik targets, and stage the function-word guide.
   -------------------------------------------------------------------------- */
.tr1-wordcount-game .tr1-guide-row {
  min-height: 98px;
  padding-right: 92px;
  overflow: visible;
}
.tr1-wordcount-game .tr1-guide-row .tr1-language-helper {
  min-height: 62px;
  padding: 8px 10px;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 900;
}
.tr1-wordcount-game .tr1-guide-mascot {
  right: 2px;
  bottom: 0;
  width: 82px;
  height: 96px;
}
.tr1-wordcount-game .tr1-guide-mascot::before {
  inset: 10px 6px 7px;
}
.tr1-wordcount-machine-grid {
  width: min(100%,302px);
  margin: 0 auto;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 7px;
}
.tr1-wordcount-machine,
.tr1-wordcount-machine:nth-child(4),
.tr1-wordcount-machine:nth-child(5) {
  grid-column: auto;
}
.tr1-wordcount-machine:nth-child(5) {
  grid-column: 1 / -1;
  width: calc(50% - 3.5px);
  justify-self: center;
}
.tr1-wordcount-machine {
  padding: 3px 3px 5px;
  border-radius: 15px;
}
.tr1-wordcount-machine-image {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
}
.tr1-wordcount-machine-image img {
  object-fit: contain;
}
.tr1-wordcount-machine strong {
  margin-top: 4px;
  color: #d63b3b;
  font-size: 12.5px;
}
.tr1-function-intro-mode {
  display: flex;
  align-items: stretch;
  justify-content: center;
}
.tr1-function-intro {
  width: 100%;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
  padding: 14px 10px 12px;
}
.tr1-function-intro-main {
  display: grid;
  grid-template-columns: minmax(0,1.25fr) minmax(118px,.75fr);
  align-items: center;
  gap: 8px;
}
.tr1-function-intro-copy {
  min-height: 174px;
  padding: 18px 16px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg,#fff7d8,#fffdf5);
  border: 2px solid #efcf72;
  color: #43366d;
  box-shadow: 0 10px 20px rgba(185,139,32,.12),inset 0 0 0 1px rgba(255,255,255,.82);
  font-size: 15px;
  line-height: 1.24;
  font-weight: 900;
}
.tr1-function-intro-mascot {
  min-width: 0;
  height: 210px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.tr1-function-intro-mascot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 11px 15px rgba(57,48,100,.16));
}
.tr1-function-intro-btn {
  align-self: center;
  min-width: 170px;
}
.tr1-function-word-game:not(.tr1-function-intro-mode) .tr1-guide-row {
  min-height: 78px;
  padding-right: 72px;
  overflow: visible;
}
.tr1-function-word-game:not(.tr1-function-intro-mode) .tr1-guide-row .tr1-language-helper {
  min-height: 54px;
  padding: 7px 8px;
  font-size: 10.5px;
  line-height: 1.14;
}
.tr1-function-word-game:not(.tr1-function-intro-mode) .tr1-guide-mascot {
  right: 1px;
  bottom: 0;
  width: 64px;
  height: 74px;
}
.tr1-function-word-game:not(.tr1-function-intro-mode) .tr1-guide-mascot::before {
  inset: 10px 5px 5px;
}
.tr1-function-word-bank {
  color: var(--ink);
}
.tr1-function-word-chip {
  color: #17304c;
  opacity: 1;
  visibility: visible;
}
@media (max-height:760px) {
  .tr1-wordcount-game .tr1-guide-row {
    min-height: 88px;
    padding-right: 80px;
  }
  .tr1-wordcount-game .tr1-guide-row .tr1-language-helper {
    min-height: 60px;
    padding: 7px 9px;
    font-size: 13px;
    line-height: 1.22;
    font-weight: 900;
  }
  .tr1-wordcount-game .tr1-guide-mascot {
    width: 72px;
    height: 84px;
    bottom: 0;
  }
  .tr1-wordcount-machine-grid {
    width: min(100%,284px);
    gap: 5px;
  }
  .tr1-wordcount-machine:nth-child(5) {
    width: calc(50% - 2.5px);
  }
  .tr1-wordcount-machine strong {
    font-size: 11.5px;
  }
  .tr1-function-intro {
    min-height: 285px;
    gap: 10px;
    padding: 8px;
  }
  .tr1-function-intro-main {
    grid-template-columns: minmax(0,1.3fr) minmax(102px,.7fr);
  }
  .tr1-function-intro-copy {
    min-height: 144px;
    padding: 13px 12px;
    font-size: 13px;
  }
  .tr1-function-intro-mascot {
    height: 172px;
  }
}
@media (max-width:390px) {
  .tr1-wordcount-game .tr1-guide-row {
    min-height: 92px;
    padding-right: 84px;
  }
  .tr1-wordcount-game .tr1-guide-row .tr1-language-helper {
    min-height: 64px;
    padding: 8px 9px;
    font-size: 14px;
    line-height: 1.24;
    font-weight: 900;
  }
  .tr1-wordcount-game .tr1-guide-mascot {
    width: 68px;
    height: 80px;
    bottom: 0;
  }
  .tr1-wordcount-machine-grid {
    width: min(100%,296px);
    gap: 6px;
  }
  .tr1-wordcount-machine:nth-child(5) {
    width: calc(50% - 3px);
  }
  .tr1-wordcount-machine strong {
    font-size: 12px;
  }
  .tr1-function-intro {
    min-height: 325px;
    padding: 10px 7px;
    gap: 12px;
  }
  .tr1-function-intro-main {
    grid-template-columns: minmax(0,1.2fr) minmax(108px,.8fr);
    gap: 5px;
  }
  .tr1-function-intro-copy {
    min-height: 164px;
    padding: 14px 11px;
    font-size: 13.5px;
    line-height: 1.2;
  }
  .tr1-function-intro-mascot {
    height: 196px;
  }
  .tr1-function-word-game:not(.tr1-function-intro-mode) .tr1-guide-row {
    min-height: 74px;
    padding-right: 67px;
  }
  .tr1-function-word-game:not(.tr1-function-intro-mode) .tr1-guide-row .tr1-language-helper {
    min-height: 50px;
    padding: 6px 7px;
    font-size: 10px;
  }
  .tr1-function-word-game:not(.tr1-function-intro-mode) .tr1-guide-mascot {
    width: 61px;
    height: 70px;
    bottom: 0;
  }
}
@media (max-width:390px) and (max-height:760px) {
  .tr1-wordcount-game .tr1-guide-row {
    min-height: 84px;
    padding-right: 76px;
  }
  .tr1-wordcount-game .tr1-guide-row .tr1-language-helper {
    min-height: 60px;
    padding: 7px 8px;
    font-size: 12.5px;
    line-height: 1.2;
    font-weight: 900;
  }
  .tr1-wordcount-game .tr1-guide-mascot {
    width: 68px;
    height: 80px;
    bottom: 0;
  }
  .tr1-function-word-game:not(.tr1-function-intro-mode) .tr1-guide-row {
    min-height: 68px;
    padding-right: 62px;
  }
  .tr1-function-word-game:not(.tr1-function-intro-mode) .tr1-guide-row .tr1-language-helper {
    min-height: 54px;
    padding: 5px 7px;
    font-size: 9.5px;
  }
  .tr1-function-word-game:not(.tr1-function-intro-mode) .tr1-guide-mascot {
    width: 56px;
    height: 64px;
    bottom: 0;
  }
}

/* --------------------------------------------------------------------------
   Grade 3 Turkish - Antonym activities
   Broken KelimoMatik intro and reusable sentence-level replacement interactions.
   -------------------------------------------------------------------------- */
.tr1-antonym-machine-game,
.tr1-antonym-sentence-game {
  gap: 10px;
  overflow: visible;
}
.tr1-antonym-start-help {
  width: min(100%,310px);
  margin: 0 auto;
  padding: 9px 12px;
  border-radius: 16px;
  background: #fff4ce;
  border: 1px solid #efd279;
  color: #4d356d;
  text-align: center;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 900;
}
.tr1-antonym-input-word {
  align-self: center;
  min-width: 146px;
  min-height: 48px;
  padding: 9px 18px;
  border-radius: 16px;
  background: #fff;
  border: 3px solid #0c9fb4;
  color: #17304c;
  box-shadow: 0 8px 18px rgba(23,48,76,.12);
  font-size: 21px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: .03em;
  touch-action: none;
  user-select: none;
  transition: transform .16s ease,box-shadow .16s ease,background .16s ease;
}
.tr1-antonym-input-word.selected {
  background: #e8fbff;
  transform: translateY(-2px);
  box-shadow: 0 0 0 4px rgba(12,159,180,.13),0 9px 20px rgba(23,48,76,.13);
}
.tr1-antonym-input-word.dragging {
  opacity: .96;
  box-shadow: 0 18px 36px rgba(23,48,76,.24);
}
.tr1-antonym-machine-target,
.tr1-antonym-machine-frame {
  width: min(100%,326px);
  margin: 0 auto;
  border: 0;
  padding: 0;
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(23,48,76,.12);
}
.tr1-antonym-machine-target {
  display: block;
  cursor: pointer;
  transition: transform .16s ease,box-shadow .16s ease;
}
.tr1-antonym-machine-target.ready {
  box-shadow: 0 0 0 4px rgba(12,159,180,.15),0 12px 26px rgba(23,48,76,.14);
}
.tr1-antonym-machine-target.drop-hover {
  transform: scale(1.02);
  box-shadow: 0 0 0 5px rgba(12,159,180,.18),0 14px 30px rgba(23,48,76,.16);
}
.tr1-antonym-machine-target img,
.tr1-antonym-machine-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}
.tr1-antonym-machine-frame.compact {
  width: min(100%,286px);
  margin: 3px auto 8px;
}
.tr1-antonym-break-panel {
  width: min(100%,310px);
  margin: 0 auto;
  padding: 12px 14px 13px;
  border-radius: 20px;
  background: linear-gradient(145deg,#fff1e5,#fff9f2);
  border: 2px solid #ef8b58;
  box-shadow: 0 9px 20px rgba(163,73,27,.11);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.tr1-antonym-break-panel strong {
  color: #b84527;
  font-size: 18px;
  line-height: 1.05;
  font-weight: 950;
}
.tr1-antonym-break-panel span {
  max-width: 270px;
  color: #53394f;
  font-size: 12.5px;
  line-height: 1.22;
  font-weight: 850;
}
.tr1-antonym-break-panel .primary-btn {
  min-height: 38px;
  padding: 8px 18px;
  font-size: 12px;
}
.tr1-antonym-question {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-align: center;
}
.tr1-antonym-question span {
  color: #66788c;
  font-size: 11px;
  font-weight: 850;
}
.tr1-antonym-question strong {
  min-width: 126px;
  padding: 7px 14px;
  border-radius: 13px;
  background: #e8fbff;
  border: 2px solid rgba(12,159,180,.24);
  color: #075f70;
  font-size: 21px;
  line-height: 1;
  font-weight: 950;
}
.tr1-antonym-options {
  width: min(100%,310px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 7px;
}
.tr1-antonym-option {
  min-height: 46px;
  padding: 8px 5px;
  border-radius: 14px;
  border: 2px solid rgba(12,159,180,.22);
  background: #fff;
  color: #17304c;
  box-shadow: 0 6px 13px rgba(23,48,76,.08);
  font-size: 13px;
  line-height: 1.05;
  font-weight: 950;
  transition: transform .16s ease,border-color .16s ease,background .16s ease;
}
.tr1-antonym-option.correct {
  border-color: #20b877;
  background: #e9fbf3;
  color: #087149;
}
.tr1-antonym-option.wrong {
  border-color: #df5b5b;
  background: #fff0f0;
  color: #a12d2d;
}
.tr1-antonym-sentence-game .tr1-guide-row {
  min-height: 82px;
  padding-right: 72px;
  overflow: visible;
}
.tr1-antonym-sentence-game .tr1-guide-row .tr1-language-helper {
  min-height: 58px;
  padding: 8px 9px;
  font-size: 11.5px;
  line-height: 1.18;
  font-weight: 900;
}
.tr1-antonym-sentence-game .tr1-guide-mascot {
  right: 1px;
  bottom: 0;
  width: 66px;
  height: 78px;
}
.tr1-antonym-sentence-game .tr1-guide-mascot::before {
  inset: 9px 5px 5px;
}
.tr1-antonym-sentence-card {
  width: 100%;
  min-height: 54px;
  padding: 9px 12px;
  border-radius: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg,#f3fcff,#eaf9fd);
  border: 2px solid rgba(12,159,180,.20);
  box-shadow: 0 7px 17px rgba(23,48,76,.07);
  color: #17304c;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 850;
  text-align: center;
}
.tr1-antonym-sentence-text {
  display: block;
  width: 100%;
}
.tr1-antonym-sentence-card.ready {
  cursor: pointer;
  border-color: rgba(12,159,180,.42);
  box-shadow: 0 7px 17px rgba(23,48,76,.07);
}
.tr1-antonym-sentence-card.drop-hover {
  border-color: #0c9fb4;
  background: linear-gradient(180deg,#e8fbff,#def7fc);
  box-shadow: 0 0 0 4px rgba(12,159,180,.12),0 9px 20px rgba(23,48,76,.09);
}
.tr1-antonym-sentence-card.replaced {
  border-color: rgba(32,184,119,.32);
  background: linear-gradient(180deg,#f0fff8,#e8fbf2);
}
.tr1-antonym-sentence-target.replaced {
  display: inline-block;
  margin: 0 2px;
  padding: 3px 7px;
  border: 2px solid #20b877;
  border-radius: 9px;
  background: #e7fbf2;
  color: #087149;
  font-weight: 950;
}
.tr1-antonym-word-bank {
  width: 100%;
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 7px;
}
.tr1-antonym-word-chip {
  min-height: 40px;
  padding: 7px 9px;
  border-radius: 13px;
  border: 2px solid rgba(73,91,115,.13);
  background: #fff;
  color: #24364f;
  box-shadow: 0 5px 12px rgba(23,48,76,.07);
  font-size: 14px;
  line-height: 1;
  font-weight: 900;
  touch-action: none;
  user-select: none;
  transition: transform .16s ease,border-color .16s ease,background .16s ease,box-shadow .16s ease;
}
.tr1-antonym-word-chip.selected {
  transform: none;
  border-color: #0c9fb4;
  background: #e8fbff;
  color: #075f70;
  box-shadow: 0 5px 12px rgba(23,48,76,.07);
}
.tr1-antonym-word-chip.wrong {
  border-color: #df5b5b;
  background: #fff0f0;
  color: #a12d2d;
}
.tr1-antonym-word-chip.dragging {
  opacity: .97;
  box-shadow: 0 17px 32px rgba(23,48,76,.22);
}
.tr1-antonym-review {
  width: 100%;
  gap: 7px;
}
.tr1-antonym-review .tr1-antonym-sentence-target {
  pointer-events: none;
}
@media (max-height:760px) {
  .tr1-antonym-machine-game,
  .tr1-antonym-sentence-game {
    gap: 7px;
  }
  .tr1-antonym-start-help {
    padding: 7px 10px;
    font-size: 11.5px;
  }
  .tr1-antonym-input-word {
    min-height: 42px;
    font-size: 18px;
  }
  .tr1-antonym-machine-target {
    width: min(100%,286px);
  }
  .tr1-antonym-machine-frame {
    width: min(100%,258px);
  }
  .tr1-antonym-machine-frame.compact {
    width: min(100%,252px);
    margin: 2px auto 7px;
  }
  .tr1-antonym-break-panel {
    padding: 9px 11px;
    gap: 5px;
  }
  .tr1-antonym-break-panel strong {
    font-size: 16px;
  }
  .tr1-antonym-break-panel span {
    font-size: 11.5px;
  }
  .tr1-antonym-option {
    min-height: 40px;
    font-size: 12px;
  }
  .tr1-antonym-sentence-game .tr1-guide-row {
    min-height: 70px;
    padding-right: 64px;
  }
  .tr1-antonym-sentence-game .tr1-guide-row .tr1-language-helper {
    min-height: 50px;
    padding: 6px 8px;
    font-size: 10.5px;
  }
  .tr1-antonym-sentence-game .tr1-guide-mascot {
    width: 58px;
    height: 68px;
  }
  .tr1-antonym-sentence-card {
    min-height: 48px;
    padding: 8px 10px;
    font-size: 15.5px;
    line-height: 1.2;
  }
  .tr1-antonym-word-bank {
    margin-top: 12px;
  }
  .tr1-antonym-word-chip {
    min-height: 35px;
    padding: 6px 8px;
    font-size: 12.5px;
  }
}
@media (min-width:560px) {
  .tr1-antonym-word-bank {
    grid-template-columns: repeat(5,minmax(0,1fr));
  }
  .tr1-antonym-machine-target,
  .tr1-antonym-machine-frame {
    width: min(100%,360px);
  }
  .tr1-antonym-machine-frame.compact {
    width: min(100%,300px);
  }
}

/* --------------------------------------------------------------------------
   Grade 3 Turkish - Synonym activities
   Moving train pair fill, fake twin balloons, and shared sentence replacement.
   -------------------------------------------------------------------------- */
.tr1-synonym-train-game,
.tr1-fake-twin-game {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}
.tr1-synonym-train-help,
.tr1-fake-twin-help {
  width: min(100%,320px);
  margin: 0 auto;
  padding: 8px 11px;
  border-radius: 15px;
  background: #fff8d9;
  color: #4b4272;
  box-shadow: inset 0 0 0 1px rgba(245,185,66,.22);
  text-align: center;
  font-size: 12px;
  line-height: 1.18;
  font-weight: 900;
}
.tr1-synonym-train-stage-label {
  align-self: center;
  margin-top: -1px;
  color: #68788a;
  font-size: 10.5px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: .06em;
}
.tr1-synonym-train-viewport {
  position: relative;
  width: 100%;
  height: 208px;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(180deg,#eafaff 0 58%,#f7efd7 59% 100%);
  border: 1px solid rgba(12,159,180,.13);
  box-shadow: inset 0 -15px 28px rgba(122,91,37,.05);
}
.tr1-synonym-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  height: 9px;
  background: linear-gradient(180deg,#6d7784,#46515e);
  box-shadow: 0 9px 0 -5px #8d6a48;
}
.tr1-synonym-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -8px;
  height: 3px;
  background: repeating-linear-gradient(90deg,#86613e 0 18px,transparent 18px 34px);
}
.tr1-synonym-train {
  position: absolute;
  left: 0;
  bottom: 37px;
  display: flex;
  align-items: flex-end;
  gap: 18px;
  width: max-content;
  will-change: transform;
}
.tr1-synonym-locomotive {
  position: relative;
  flex: 0 0 236px;
  width: 236px;
  height: 144px;
  transform: scaleX(-1);
  transform-origin: center bottom;
  filter: drop-shadow(0 12px 12px rgba(22,50,77,.15));
}
.tr1-loco-shadow {
  position: absolute;
  left: 26px;
  right: 18px;
  bottom: 2px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at center,rgba(45,67,91,.28) 0 45%,rgba(45,67,91,0) 78%);
}
.tr1-loco-cab {
  position: absolute;
  left: 18px;
  bottom: 30px;
  width: 88px;
  height: 87px;
  border-radius: 16px 16px 10px 10px;
  background: linear-gradient(145deg,#13b6cb,#09829a 56%,#076878);
  border: 5px solid #f2b735;
  box-shadow: inset 0 -10px 0 rgba(0,0,0,.08),inset 0 8px 12px rgba(255,255,255,.15),0 10px 16px rgba(23,48,76,.12);
}
.tr1-loco-roof {
  position: absolute;
  left: -7px;
  right: -5px;
  top: -14px;
  height: 17px;
  border-radius: 14px 14px 6px 6px;
  background: linear-gradient(180deg,#7f5497,#5d3d74);
  border: 4px solid #432d56;
}
.tr1-loco-panel {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  height: 13px;
  border-radius: 7px;
  background: rgba(255,255,255,.17);
}
.tr1-loco-window {
  position: absolute;
  top: 16px;
  left: 12px;
  width: 26px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(180deg,#f7ffff,#cfeef9);
  border: 4px solid #17304c;
  box-shadow: inset 0 -3px 0 rgba(94,147,177,.12);
}
.tr1-loco-window.second {
  left: 46px;
}
.tr1-loco-boiler {
  position: absolute;
  right: 4px;
  bottom: 30px;
  width: 132px;
  height: 70px;
  border-radius: 36px 28px 16px 16px;
  background: linear-gradient(180deg,#18bdd1,#0b87a0 56%,#086f84);
  border: 5px solid #f2b735;
  box-shadow: inset 0 -10px 0 rgba(0,0,0,.08),inset 0 9px 12px rgba(255,255,255,.16),0 10px 16px rgba(23,48,76,.12);
}
.tr1-loco-band {
  position: absolute;
  top: 8px;
  width: 12px;
  height: 50px;
  border-radius: 8px;
  background: linear-gradient(180deg,#fed86f,#dfa22d);
  border: 2px solid rgba(155,95,18,.55);
}
.tr1-loco-band.band-one {
  left: 28px;
}
.tr1-loco-band.band-two {
  left: 79px;
}
.tr1-loco-front {
  position: absolute;
  right: -5px;
  top: 11px;
  width: 24px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(180deg,#18bdd1,#0b89a1 56%,#086d81);
  border: 5px solid #f2b735;
}
.tr1-loco-light {
  position: absolute;
  right: -18px;
  top: 19px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%,#fff8bf 0 38%,#ffe36c 39% 100%);
  border: 4px solid #f0a929;
  box-shadow: 0 0 16px rgba(255,217,73,.58);
}
.tr1-loco-pilot {
  position: absolute;
  right: -2px;
  bottom: -5px;
  width: 32px;
  height: 24px;
  background: linear-gradient(180deg,#d57b23,#aa5c17);
  clip-path: polygon(100% 0,0 40%,0 60%,100% 100%);
  border-radius: 0 0 6px 0;
}
.tr1-loco-chimney {
  position: absolute;
  left: 34px;
  top: -42px;
  width: 31px;
  height: 46px;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg,#67447d,#493261);
  border: 4px solid #39274b;
}
.tr1-loco-chimney::before {
  content: "";
  position: absolute;
  left: -8px;
  top: -8px;
  width: 39px;
  height: 13px;
  border-radius: 8px;
  background: #7d56a0;
}
.tr1-loco-dome {
  position: absolute;
  left: 72px;
  top: -15px;
  width: 22px;
  height: 18px;
  border-radius: 14px 14px 6px 6px;
  background: linear-gradient(180deg,#f6cf62,#d89122);
  border: 3px solid #965a13;
}
.tr1-loco-smoke {
  position: absolute;
  z-index: 3;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%,rgba(194,205,214,.62) 0 35%,rgba(124,138,151,.45) 36% 100%);
}
.tr1-loco-smoke.smoke-one {
  left: 136px;
  top: -10px;
  width: 24px;
  height: 24px;
}
.tr1-loco-smoke.smoke-two {
  left: 152px;
  top: -28px;
  width: 18px;
  height: 18px;
  opacity: .72;
}
.tr1-loco-smoke.smoke-three {
  left: 166px;
  top: -42px;
  width: 12px;
  height: 12px;
  opacity: .54;
}
.tr1-loco-frame {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 26px;
  height: 12px;
  border-radius: 8px;
  background: linear-gradient(180deg,#48627e,#30465d);
}
.tr1-loco-rod {
  position: absolute;
  bottom: 18px;
  height: 6px;
  border-radius: 4px;
  background: linear-gradient(180deg,#c8d0d9,#909ca8);
  box-shadow: 0 1px 0 rgba(255,255,255,.4);
}
.tr1-loco-rod.rod-main {
  left: 36px;
  width: 126px;
}
.tr1-loco-rod.rod-front {
  right: 29px;
  width: 34px;
  bottom: 24px;
  transform: rotate(6deg);
  transform-origin: right center;
}
.tr1-loco-wheel,
.tr1-synonym-wheel {
  position: absolute;
  bottom: 4px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%,#4d6581 0 28%,#30465d 29% 100%);
  border: 6px solid #17304c;
  box-shadow: inset 0 0 0 4px #f2b735;
}
.tr1-loco-wheel {
  width: 40px;
  height: 40px;
}
.tr1-loco-wheel::after,
.tr1-synonym-wheel::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: #f7f8fb;
  opacity: .45;
}
.tr1-loco-wheel.wheel-one {
  left: 29px;
}
.tr1-loco-wheel.wheel-two {
  left: 93px;
}
.tr1-loco-wheel.wheel-three {
  right: 18px;
}
.tr1-synonym-wagon {
  position: relative;
  flex: 0 0 258px;
  width: 258px;
  height: 135px;
  opacity: .44;
  transition: opacity .2s ease,filter .2s ease;
}
.tr1-synonym-wagon.active {
  opacity: 1;
}
.tr1-synonym-wagon.completed {
  opacity: .72;
  filter: saturate(.8);
}
.tr1-synonym-wagon-body {
  position: absolute;
  inset: 11px 0 30px;
  padding: 17px 14px 15px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  align-items: center;
  border-radius: 21px 21px 11px 11px;
  background: linear-gradient(160deg,#ffd86a,#f4a936);
  border: 5px solid #ca7b1e;
  box-shadow: inset 0 -10px 0 rgba(154,84,11,.10),0 10px 18px rgba(93,58,27,.14);
}
.tr1-synonym-wagon.active .tr1-synonym-wagon-body {
  border-color: #0c9fb4;
  box-shadow: inset 0 -10px 0 rgba(154,84,11,.10),0 0 0 4px rgba(12,159,180,.12),0 12px 20px rgba(23,48,76,.13);
}
.tr1-synonym-wagon-base {
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 24px;
  height: 15px;
  border-radius: 8px;
  background: #754b31;
}
.tr1-synonym-wagon-slot {
  min-width: 0;
  min-height: 49px;
  padding: 6px 5px;
  border-radius: 13px;
  background: #fffdf4;
  border: 3px dashed rgba(117,75,49,.30);
  color: #17304c;
  font-size: 14px;
  line-height: 1;
  font-weight: 950;
  box-shadow: inset 0 2px 6px rgba(54,36,20,.06);
}
.tr1-synonym-wagon-slot span {
  color: #a58d71;
  font-size: 19px;
}
.tr1-synonym-wagon-slot.ready {
  border-style: solid;
  border-color: #0c9fb4;
  background: #eefcff;
}
.tr1-synonym-wagon-slot.drop-hover {
  border-style: solid;
  border-color: #0c9fb4;
  background: #dcf8ff;
  box-shadow: 0 0 0 4px rgba(12,159,180,.14);
}
.tr1-synonym-wagon-slot.filled {
  border-style: solid;
  border-color: #20b877;
  background: #edfff7;
  color: #087149;
}
.tr1-synonym-wheel {
  width: 34px;
  height: 34px;
  bottom: 0;
}
.tr1-synonym-wheel.left {
  left: 42px;
}
.tr1-synonym-wheel.right {
  right: 42px;
}
.tr1-synonym-coupler {
  position: absolute;
  left: -18px;
  bottom: 55px;
  width: 22px;
  height: 8px;
  border-radius: 5px;
  background: #60402f;
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset;
}
.tr1-synonym-locomotive::after {
  content: "";
  position: absolute;
  right: -10px;
  bottom: 59px;
  width: 14px;
  height: 8px;
  border-radius: 4px;
  background: #60402f;
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset;
}
.tr1-synonym-train-bank {
  width: min(100%,320px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 7px;
}
.tr1-synonym-train-chip {
  min-height: 42px;
  padding: 7px 10px;
  border-radius: 14px;
  border: 2px solid rgba(73,91,115,.13);
  background: #fff;
  color: #24364f;
  box-shadow: 0 6px 14px rgba(23,48,76,.08);
  font-size: 14px;
  line-height: 1;
  font-weight: 950;
  touch-action: none;
  user-select: none;
}
.tr1-synonym-train-chip:nth-child(5):last-child {
  grid-column: 1 / -1;
  width: 52%;
  justify-self: center;
}
.tr1-synonym-train-chip.selected {
  border-color: #0c9fb4;
  background: #e8fbff;
  color: #075f70;
}
.tr1-synonym-train-chip.wrong {
  border-color: #df5b5b;
  background: #fff0f0;
  color: #a12d2d;
}
.tr1-synonym-train-chip.dragging {
  opacity: .97;
  box-shadow: 0 18px 34px rgba(23,48,76,.22);
}
.tr1-fake-twin-grid {
  width: min(100%,330px);
  margin: 2px auto 0;
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px 10px;
  align-items: start;
}
.tr1-fake-twin-balloon {
  position: relative;
  min-height: 150px;
  padding: 0 4px 24px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #34304d;
  box-shadow: none;
  font-size: 12.5px;
  font-weight: 900;
  line-height: 1.08;
  text-align: center;
  overflow: visible;
  touch-action: manipulation;
}
.tr1-balloon-body {
  position: relative;
  width: min(100%,132px);
  height: 124px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 11px 17px;
  border-radius: 52% 48% 46% 54% / 48% 48% 58% 58%;
  border: 2px solid hsla(var(--balloon-hue),72%,38%,.25);
  background: radial-gradient(circle at 30% 23%,rgba(255,255,255,.75) 0 7%,rgba(255,255,255,0) 22%),
    linear-gradient(145deg,hsl(var(--balloon-hue),88%,91%),hsl(var(--balloon-hue),76%,76%));
  box-shadow: inset 10px 12px 18px rgba(255,255,255,.28),
    inset -10px -14px 20px hsla(var(--balloon-hue),60%,34%,.12),
    0 10px 18px rgba(61,47,122,.13);
}
.tr1-balloon-body::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 18px;
  height: 12px;
  transform: translateX(-50%);
  background: hsl(var(--balloon-hue),70%,69%);
  clip-path: polygon(50% 0,100% 100%,0 100%);
  filter: drop-shadow(0 2px 1px rgba(79,61,96,.12));
}
.tr1-balloon-shine {
  position: absolute;
  left: 24px;
  top: 20px;
  width: 20px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(180deg,rgba(255,255,255,.76),rgba(255,255,255,.08));
  transform: rotate(24deg);
  pointer-events: none;
}
.tr1-balloon-pair {
  position: relative;
  z-index: 1;
  max-width: 96%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3px;
  text-shadow: 0 1px 0 rgba(255,255,255,.65);
}
.tr1-balloon-pair b {
  font-weight: 700;
  opacity: .62;
}
.tr1-balloon-knot {
  position: absolute;
  left: 50%;
  top: 121px;
  width: 14px;
  height: 10px;
  transform: translateX(-50%);
  background: hsl(var(--balloon-hue),68%,66%);
  clip-path: polygon(50% 0,100% 100%,0 100%);
  z-index: 2;
}
.tr1-balloon-string {
  position: absolute;
  left: 50%;
  top: 131px;
  width: 24px;
  height: 22px;
  transform: translateX(-2px) rotate(4deg);
  border-left: 1.5px solid rgba(93,86,105,.46);
  border-bottom: 1.5px solid rgba(93,86,105,.38);
  border-radius: 0 0 0 18px;
  pointer-events: none;
}
.tr1-fake-twin-balloon:nth-child(even) .tr1-balloon-string {
  transform: translateX(-20px) scaleX(-1) rotate(4deg);
}
.tr1-fake-twin-balloon:active .tr1-balloon-body {
  transform: scale(.97);
}
.tr1-fake-twin-balloon.is-popping {
  pointer-events: none;
}
.tr1-fake-twin-balloon.is-popping .tr1-balloon-body {
  animation: tr1BalloonPopBody .34s ease-out forwards;
}
.tr1-fake-twin-balloon.is-popping .tr1-balloon-pair,
.tr1-fake-twin-balloon.is-popping .tr1-balloon-shine {
  animation: tr1BalloonPopFade .18s linear forwards;
}
.tr1-fake-twin-balloon.is-popping .tr1-balloon-knot {
  animation: tr1BalloonKnotPop .34s ease-out forwards;
}
.tr1-fake-twin-balloon.is-popping .tr1-balloon-string {
  animation: tr1BalloonStringPop .34s ease-out forwards;
}
.tr1-balloon-burst,
.tr1-balloon-flash {
  position: absolute;
  left: 50%;
  top: 58px;
  opacity: 0;
  pointer-events: none;
}
.tr1-balloon-burst {
  width: 28px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg,hsla(var(--balloon-hue),92%,64%,0),hsla(var(--balloon-hue),92%,60%,.96),hsla(var(--balloon-hue),92%,64%,0));
  box-shadow: 0 0 8px hsla(var(--balloon-hue),90%,66%,.22);
}
.tr1-balloon-flash {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle,rgba(255,255,255,.92) 0 26%,hsla(var(--balloon-hue),95%,88%,.86) 26% 47%,hsla(var(--balloon-hue),95%,72%,0) 72%);
  transform: translate(-50%,-50%) scale(.2);
}
.burst-a {
  --burst-x: -34px;
  --burst-y: -20px;
  --burst-r: -30deg;
  transform: translate(-50%,-50%) rotate(-30deg);
}
.burst-b {
  --burst-x: 34px;
  --burst-y: -18px;
  --burst-r: 28deg;
  transform: translate(-50%,-50%) rotate(28deg);
}
.burst-c {
  --burst-x: -22px;
  --burst-y: 24px;
  --burst-r: 142deg;
  transform: translate(-50%,-50%) rotate(142deg);
}
.burst-d {
  --burst-x: 24px;
  --burst-y: 26px;
  --burst-r: -145deg;
  transform: translate(-50%,-50%) rotate(-145deg);
}
.tr1-fake-twin-balloon.is-popping .tr1-balloon-burst {
  animation: tr1BalloonBurst .32s ease-out forwards;
}
.tr1-fake-twin-balloon.is-popping .tr1-balloon-flash {
  animation: tr1BalloonFlash .26s ease-out forwards;
}
@keyframes tr1BalloonPopBody {
  0% {
    transform: scale(1);
    opacity: 1;
    filter: none;
  }
  24% {
    transform: scale(1.08);
  }
  58% {
    transform: scale(.82);
    opacity: .9;
  }
  100% {
    transform: scale(.18);
    opacity: 0;
    filter: blur(2px);
  }
}
@keyframes tr1BalloonPopFade {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes tr1BalloonKnotPop {
  0% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(8px) scale(.15);
  }
}
@keyframes tr1BalloonStringPop {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(-2px) translateY(14px) rotate(10deg);
  }
}
@keyframes tr1BalloonBurst {
  0% {
    opacity: 0;
    transform: translate(-50%,-50%) scale(.2) rotate(var(--burst-r,0deg));
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--burst-x,0px)),calc(-50% + var(--burst-y,0px))) scale(1.2) rotate(var(--burst-r,0deg));
  }
}
@keyframes tr1BalloonFlash {
  0% {
    opacity: 0;
    transform: translate(-50%,-50%) scale(.18);
  }
  28% {
    opacity: .95;
    transform: translate(-50%,-50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%,-50%) scale(1.55);
  }
}
.tr1-fake-twin-complete {
  width: min(100%,310px);
  margin: 0 auto;
  padding: 12px;
  border-radius: 17px;
  background: #e9fbf3;
  border: 2px solid rgba(32,184,119,.25);
  color: #087149;
  text-align: center;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 950;
}
@media (max-width:390px) {
  .tr1-synonym-train-viewport {
    height: 206px;
  }
  .tr1-synonym-train {
    gap: 16px;
    bottom: 35px;
  }
  .tr1-synonym-locomotive {
    flex-basis: 220px;
    width: 220px;
    height: 134px;
  }
  .tr1-synonym-wagon {
    flex-basis: 246px;
    width: 246px;
    height: 130px;
  }
  .tr1-synonym-wagon-body {
    padding: 16px 12px 14px;
  }
  .tr1-synonym-wagon-slot {
    min-height: 47px;
    font-size: 13.5px;
  }
  .tr1-synonym-train-chip {
    min-height: 40px;
    font-size: 13px;
  }
  .tr1-fake-twin-balloon {
    min-height: 138px;
    font-size: 11.8px;
  }
  .tr1-balloon-body {
    width: 124px;
    height: 116px;
  }
  .tr1-balloon-knot {
    top: 113px;
  }
  .tr1-balloon-string {
    top: 123px;
  }
}
@media (max-height:760px) {
  .tr1-synonym-train-game,
  .tr1-fake-twin-game {
    gap: 6px;
  }
  .tr1-synonym-train-help,
  .tr1-fake-twin-help {
    padding: 7px 9px;
    font-size: 10.8px;
  }
  .tr1-synonym-train-viewport {
    height: 176px;
  }
  .tr1-synonym-train {
    gap: 14px;
    bottom: 31px;
  }
  .tr1-synonym-locomotive {
    flex-basis: 192px;
    width: 192px;
    height: 116px;
  }
  .tr1-loco-cab {
    left: 14px;
    width: 75px;
    height: 78px;
    bottom: 22px;
  }
  .tr1-loco-window {
    width: 22px;
    height: 26px;
    left: 10px;
  }
  .tr1-loco-window.second {
    left: 40px;
  }
  .tr1-loco-boiler {
    width: 108px;
    height: 58px;
    bottom: 22px;
  }
  .tr1-synonym-wagon {
    flex-basis: 224px;
    width: 224px;
    height: 115px;
  }
  .tr1-synonym-wagon-body {
    inset: 9px 0 28px;
    padding: 12px 10px;
  }
  .tr1-synonym-wagon-slot {
    min-height: 40px;
    font-size: 12px;
  }
  .tr1-synonym-wheel {
    width: 29px;
    height: 29px;
  }
  .tr1-synonym-train-bank {
    gap: 5px;
  }
  .tr1-synonym-train-chip {
    min-height: 34px;
    padding: 6px 8px;
    font-size: 11.5px;
  }
  .tr1-fake-twin-grid {
    gap: 5px 8px;
  }
  .tr1-fake-twin-balloon {
    min-height: 121px;
    padding: 0 3px 18px;
    font-size: 10.7px;
  }
  .tr1-balloon-body {
    width: 112px;
    height: 104px;
    padding: 10px 8px 14px;
  }
  .tr1-balloon-shine {
    left: 21px;
    top: 17px;
    width: 16px;
    height: 31px;
  }
  .tr1-balloon-knot {
    top: 101px;
    width: 13px;
    height: 9px;
  }
  .tr1-balloon-string {
    top: 110px;
    height: 16px;
    width: 19px;
  }
}

/* --------------------------------------------------------------------------
   Grade 3 Turkish - reading comprehension cover, story quiz, and event order
   -------------------------------------------------------------------------- */
.story-cover-hero {
  min-height: auto;
  margin-bottom: 18px;
}
.story-cover-hero::before {
  display: none;
}
.story-cover-card {
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 10px;
  border-radius: 26px;
  background: linear-gradient(180deg,#ffffff 0%,#f7fff7 100%);
  border: 2px solid rgba(31,126,104,.12);
  box-shadow: 0 16px 32px rgba(32,81,74,.12);
}
.story-cover-image {
  display: block;
  width: 100%;
  border-radius: 20px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(25,68,63,.16);
}
.story-cover-image.wide,
.story-visual-image.wide {
  aspect-ratio: 16 / 9;
}
.story-cover-title {
  margin-top: 12px;
  font-size: 1.05rem;
  font-weight: 900;
  color: #21574d;
}
.story-cover-caption {
  margin-top: 6px;
  color: #49665e;
  font-size: .96rem;
  line-height: 1.5;
}
.story-quiz-card,
.event-sequence-card {
  width: min(760px, 100%);
  margin: 0 auto;
  background: rgba(255,255,255,.96);
  border: 2px solid rgba(53,123,112,.10);
  border-radius: 28px;
  box-shadow: 0 18px 30px rgba(26,73,68,.10);
  padding: 18px;
}
.story-reading-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg,#e8f8ee,#eef7ff);
  color: #21574d;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .04em;
}
.story-reading-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}
.story-reading-actions .primary-btn {
  min-width: 160px;
}
.story-scene-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.story-scene-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg,#dff6ea,#e9f7ff);
  color: #21574d;
  font-weight: 900;
  letter-spacing: .03em;
}
.story-scene-title {
  color: #59706a;
  font-weight: 700;
}
.story-visual-card {
  background: linear-gradient(180deg,#f9fffb,#eef9ff);
  border: 1px solid rgba(53,123,112,.12);
  border-radius: 24px;
  padding: 12px;
}
.story-visual-caption {
  margin-bottom: 8px;
  color: #56706a;
  font-size: .9rem;
  font-weight: 700;
}
.story-visual-image {
  display: block;
  width: 100%;
  border-radius: 18px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.story-text-card,
.story-question-box,
.story-feedback {
  margin-top: 14px;
  border-radius: 22px;
  padding: 16px 18px;
}
.story-text-card {
  background: #fffdf6;
  border: 1px solid rgba(221,181,87,.24);
  color: #324744;
}
.story-text-card p {
  margin: 0;
  line-height: 1.7;
}
.story-text-card p + p {
  margin-top: 10px;
}
.story-question-box {
  background: linear-gradient(180deg,#fef9ff,#f2f7ff);
  border: 1px solid rgba(124,101,214,.16);
}
.story-question-box p {
  margin: 8px 0 0;
  color: #2f3f5f;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.6;
}
.story-question-label {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  background: #6d5bd0;
  color: #fff;
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .05em;
}
.story-options-grid {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.story-option-btn {
  width: 100%;
  text-align: left;
  border: 2px solid rgba(67,124,116,.18);
  border-radius: 18px;
  background: #fff;
  padding: 14px 16px;
  font: inherit;
  font-weight: 800;
  color: #28453f;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.story-option-btn:hover,
.story-option-btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(33,87,77,.42);
  box-shadow: 0 10px 16px rgba(28,71,67,.10);
}
.story-option-btn.selected-good {
  border-color: #2db677;
  background: #effbf4;
  color: #1f6d47;
}
.story-option-btn.selected-bad {
  border-color: #e16464;
  background: #fff3f3;
  color: #9b3d3d;
}
.story-feedback {
  border: 2px solid transparent;
}
.story-feedback.good {
  background: #effbf4;
  border-color: rgba(45,182,119,.26);
  color: #245d41;
}
.story-feedback.bad {
  background: #fff3f3;
  border-color: rgba(225,100,100,.24);
  color: #7b3c3c;
}
.story-feedback-title {
  font-weight: 900;
  margin-bottom: 6px;
}
.story-feedback p {
  margin: 0;
  line-height: 1.6;
}
.story-feedback .primary-btn {
  margin-top: 12px;
}
.event-sequence-helper,
.event-sequence-choice-title {
  color: #4b6460;
  font-weight: 700;
  line-height: 1.55;
}
.event-sequence-choice-title {
  margin-top: 16px;
}
.event-sequence-slots {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.event-sequence-slot {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  border: 2px dashed rgba(65,134,126,.22);
  background: #f8fffc;
  border-radius: 18px;
  padding: 12px 14px;
  min-height: 72px;
  color: #294944;
}
.event-sequence-slot.filled {
  border-style: solid;
  border-color: rgba(45,182,119,.32);
  background: #f2fbf5;
}
.event-sequence-slot.active-next {
  border-color: rgba(33,87,77,.42);
  background: #fffef6;
}
.event-sequence-slot.can-place {
  box-shadow: 0 0 0 4px rgba(81,179,149,.14);
}
.event-sequence-slot.drop-hover {
  transform: scale(1.01);
  border-color: rgba(45,182,119,.68);
  background: #edfbf3;
  box-shadow: 0 0 0 5px rgba(45,182,119,.16);
}
.event-sequence-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg,#21574d,#3c8f7b);
  color: #fff;
  font-weight: 900;
}
.event-sequence-slot-text {
  font-weight: 800;
  line-height: 1.5;
}
.event-sequence-choices {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.event-sequence-choice {
  position: relative;
  width: 100%;
  text-align: left;
  border: 2px solid rgba(65,134,126,.18);
  border-radius: 18px;
  background: #fff;
  padding: 13px 14px;
  color: #274640;
  font: inherit;
  font-weight: 800;
  cursor: grab;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.event-sequence-choice:active {
  cursor: grabbing;
}
.event-sequence-choice-placeholder {
  width: 100%;
  border: 2px dashed rgba(65,134,126,.14);
  border-radius: 18px;
  background: rgba(238,250,244,.52);
}
.event-sequence-drag-active {
  user-select: none;
  -webkit-user-select: none;
  cursor: grabbing;
}
.event-sequence-choice:hover,
.event-sequence-choice:focus-visible,
.event-sequence-choice.selected {
  border-color: rgba(33,87,77,.38);
  box-shadow: 0 10px 16px rgba(28,71,67,.10);
}
.event-sequence-choice.selected {
  background: #eefaf4;
}
.event-sequence-choice.dragging {
  position: fixed;
  z-index: 1200;
  margin: 0;
  pointer-events: none;
  cursor: grabbing;
  transform: rotate(-2deg) scale(1.015);
  box-shadow: 0 18px 28px rgba(29,64,60,.22);
}
@media (max-width: 720px) {
  .story-cover-card {
    padding: 8px;
    border-radius: 22px;
  }
  .story-quiz-card,
  .event-sequence-card {
    padding: 14px;
    border-radius: 22px;
  }
  .story-text-card,
  .story-question-box,
  .story-feedback {
    padding: 14px 15px;
    border-radius: 18px;
  }
  .story-option-btn,
  .event-sequence-choice {
    padding: 13px 14px;
    font-size: .97rem;
  }
  .event-sequence-slot {
    grid-template-columns: 42px 1fr;
    gap: 10px;
    padding: 11px 12px;
    min-height: 68px;
  }
  .event-sequence-number {
    width: 34px;
    height: 34px;
    font-size: .95rem;
  }
}
@media (max-width: 480px) {
  .story-cover-caption {
    font-size: .9rem;
  }
  .story-question-box p,
  .story-option-btn,
  .event-sequence-slot-text,
  .event-sequence-choice {
    font-size: .95rem;
  }
  .story-scene-chip {
    font-size: .88rem;
    padding: 7px 12px;
  }
}

/* --------------------------------------------------------------------------
   Grade 3 Turkish - seed journey event-sequence feedback and progress
   -------------------------------------------------------------------------- */
.event-sequence-seed-journey .event-sequence-card.seed-journey {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg,rgba(255,255,255,.98),rgba(250,255,250,.97));
  border-color: rgba(107,155,101,.16);
}
.event-sequence-seed-journey .event-sequence-mini-progress {
  margin-bottom: 12px;
  padding: 9px 11px;
  border-radius: 16px;
  background: linear-gradient(135deg,#f4fae9,#eef9f3);
  border: 1px solid rgba(88,139,82,.14);
}
.event-sequence-seed-journey .event-sequence-mini-progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #426847;
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .05em;
}
.event-sequence-seed-journey .event-sequence-mini-progress-top strong {
  color: #2e5c3a;
  font-size: .9rem;
  letter-spacing: 0;
}
.event-sequence-seed-journey .event-sequence-mini-progress-track {
  height: 7px;
  margin-top: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(100,145,94,.12);
}
.event-sequence-seed-journey .event-sequence-mini-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg,#d9822b,#7ab96d);
  transition: width .32s ease;
}
.event-sequence-seed-journey .event-sequence-slots {
  position: relative;
  isolation: isolate;
}
.event-sequence-seed-journey .event-sequence-slot {
  grid-template-columns: 44px 1fr 26px;
  min-height: 76px;
  overflow: hidden;
  transition: transform .2s ease,border-color .2s ease,background .2s ease,box-shadow .2s ease;
}
.event-sequence-seed-journey .event-sequence-slot.empty {
  grid-template-columns: 44px 1fr;
}
.event-sequence-seed-journey .event-sequence-slot.filled {
  border-color: rgba(74,160,92,.34);
  background: linear-gradient(135deg,#f1fbf1,#f8fff7);
}
.event-sequence-seed-journey .event-sequence-slot.just-placed {
  animation: eventSequencePlaced .48s ease;
}
.event-sequence-seed-journey .event-sequence-slot.attempt-bad {
  border-color: rgba(226,91,91,.62);
  background: #fff5f3;
  animation: eventSequenceReject .42s ease;
}
.event-sequence-seed-journey .event-sequence-check {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #42a760;
  color: #fff;
  font-size: .78rem;
  font-weight: 950;
  box-shadow: 0 4px 10px rgba(60,146,82,.18);
}
.event-sequence-seed-journey .event-sequence-choices {
  gap: 9px;
}
.event-sequence-seed-journey .event-sequence-choice {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 12px 14px;
  border-color: rgba(99,145,96,.20);
  background: linear-gradient(135deg,#fff,#fbfff9);
}
.event-sequence-seed-journey .event-sequence-choice-text {
  min-width: 0;
  line-height: 1.35;
}
.event-sequence-seed-journey .event-sequence-choice:hover,
.event-sequence-seed-journey .event-sequence-choice:focus-visible,
.event-sequence-seed-journey .event-sequence-choice.selected {
  border-color: rgba(74,143,79,.44);
  box-shadow: 0 10px 18px rgba(53,92,60,.12);
}
.event-sequence-seed-journey .event-sequence-choice.selected {
  background: linear-gradient(135deg,#f0fbf0,#f8fff7);
}
.event-sequence-seed-journey .event-sequence-choice.dragging {
  transform: rotate(-1deg) scale(1.035);
  box-shadow: 0 22px 34px rgba(38,74,46,.24);
}
.event-sequence-seed-journey .event-sequence-choice.attempt-bad {
  border-color: rgba(226,91,91,.56);
  background: #fff5f3;
  animation: eventSequenceReject .42s ease;
}
.event-sequence-seed-journey .event-sequence-finish-note {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  text-align: center;
  background: linear-gradient(135deg,#eaf9eb,#f6fff1);
  color: #307047;
  font-weight: 950;
  animation: eventSequenceFinishNote .5s ease both;
}
.event-sequence-seed-journey .event-sequence-card.sequence-complete .event-sequence-slots::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 34px;
  top: 20px;
  width: 4px;
  height: calc(100% - 40px);
  border-radius: 999px;
  background: linear-gradient(180deg,#d9822b,#6fbb70);
  transform-origin: top;
  animation: eventSequencePathGrow .72s ease both;
}
.event-sequence-seed-journey .event-sequence-card.sequence-complete .event-sequence-slot.filled {
  animation: eventSequenceCompleteGlow .65s ease both;
}
.event-sequence-seed-journey .event-sequence-card.sequence-complete .event-sequence-slot.filled:nth-child(2) {
  animation-delay: .08s;
}
.event-sequence-seed-journey .event-sequence-card.sequence-complete .event-sequence-slot.filled:nth-child(3) {
  animation-delay: .16s;
}
.event-sequence-seed-journey .event-sequence-card.sequence-complete .event-sequence-slot.filled:nth-child(4) {
  animation-delay: .24s;
}
.event-sequence-seed-journey .event-sequence-card.sequence-complete .event-sequence-slot.filled:nth-child(5) {
  animation-delay: .32s;
}
@keyframes eventSequencePlaced {
  0% {
    transform: scale(.985);
    box-shadow: 0 0 0 rgba(66,167,96,0);
  }
  55% {
    transform: scale(1.018);
    box-shadow: 0 0 0 5px rgba(66,167,96,.12);
  }
  100% {
    transform: scale(1);
    box-shadow: none;
  }
}
@keyframes eventSequenceReject {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  50% {
    transform: translateX(5px);
  }
  75% {
    transform: translateX(-3px);
  }
}
@keyframes eventSequencePathGrow {
  from {
    transform: scaleY(0);
    opacity: .3;
  }
  to {
    transform: scaleY(1);
    opacity: .75;
  }
}
@keyframes eventSequenceCompleteGlow {
  0% {
    box-shadow: 0 0 0 rgba(74,160,92,0);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(74,160,92,.12);
  }
  100% {
    box-shadow: none;
  }
}
@keyframes eventSequenceFinishNote {
  from {
    opacity: 0;
    transform: translateY(5px) scale(.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width:720px) {
  .event-sequence-seed-journey .event-sequence-slot {
    grid-template-columns: 36px 1fr 24px;
    gap: 8px;
    min-height: 68px;
    padding: 9px 10px;
  }
  .event-sequence-seed-journey .event-sequence-slot.empty {
    grid-template-columns: 36px 1fr;
  }
  .event-sequence-seed-journey .event-sequence-choice {
    grid-template-columns: 1fr;
    min-height: 58px;
    gap: 9px;
    padding: 10px 12px;
  }
  .event-sequence-seed-journey .event-sequence-card.sequence-complete .event-sequence-slots::before {
    left: 27px;
  }
}
@media (max-width:480px) {
  .event-sequence-seed-journey .event-sequence-helper,
  .event-sequence-seed-journey .event-sequence-choice-title {
    font-size: .9rem;
  }
  .event-sequence-seed-journey .event-sequence-choice-text,
  .event-sequence-seed-journey .event-sequence-slot-text {
    font-size: .9rem;
  }
}
@media (prefers-reduced-motion:reduce) {
  .event-sequence-seed-journey .event-sequence-slot.just-placed,
  .event-sequence-seed-journey .event-sequence-slot.attempt-bad,
  .event-sequence-seed-journey .event-sequence-choice.attempt-bad,
  .event-sequence-seed-journey .event-sequence-card.sequence-complete .event-sequence-slots::before,
  .event-sequence-seed-journey .event-sequence-card.sequence-complete .event-sequence-slot.filled,
  .event-sequence-seed-journey .event-sequence-finish-note {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   Grade 3 Turkish - predicate classification and sentence-order transformation
   -------------------------------------------------------------------------- */
.tr1-predicate-card,
.tr1-rule-reorder-card {
  width: min(760px,100%);
  margin: 0 auto;
  border-radius: 26px;
  padding: 16px;
  background: linear-gradient(180deg,rgba(255,255,255,.98),rgba(247,251,255,.96));
  border: 2px solid rgba(42,129,153,.12);
  box-shadow: 0 16px 32px rgba(35,73,92,.10);
  overflow: hidden;
}
.tr1-predicate-card .tr1-guide-row,
.tr1-rule-reorder-card .tr1-guide-row {
  min-height: 88px;
  padding-right: 104px;
  margin-bottom: 10px;
}
.tr1-predicate-card .tr1-guide-row .tr1-language-helper,
.tr1-rule-reorder-card .tr1-guide-row .tr1-language-helper {
  min-height: 72px;
  padding: 12px 14px;
  padding-right: 14px;
  border-radius: 18px;
  background: linear-gradient(135deg,#fff8d9,#eefaff);
  color: #38515f;
  font-size: 14px;
  line-height: 1.45;
}
.tr1-predicate-card .tr1-guide-mascot,
.tr1-rule-reorder-card .tr1-guide-mascot {
  right: 2px;
  bottom: -4px;
  width: 96px;
  height: 116px;
}
.tr1-predicate-step {
  display: flex;
  align-items: center;
  gap: 9px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #edf8f8;
  color: #23626b;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 900;
}
.tr1-predicate-step span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 50%;
  background: #238b91;
  color: #fff;
  box-shadow: 0 4px 9px rgba(35,139,145,.22);
}
.tr1-predicate-sentence {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 18px 14px;
  border-radius: 22px;
  background: linear-gradient(135deg,#f8f4ff,#eefaff);
  border: 1px solid rgba(109,91,208,.13);
  min-height: 92px;
}
.tr1-predicate-word {
  appearance: none;
  border: 2px solid transparent;
  border-radius: 13px;
  padding: 8px 10px;
  background: #fff;
  color: #263e53;
  font: inherit;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 900;
  box-shadow: 0 6px 12px rgba(46,63,93,.09);
  cursor: pointer;
  transition: transform .15s ease,border-color .15s ease,background .15s ease,box-shadow .15s ease;
}
.tr1-predicate-word:hover,
.tr1-predicate-word:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(35,139,145,.38);
}
.tr1-predicate-word.found {
  color: #176941;
  background: #eaf9f0;
  border-color: #44b878;
  box-shadow: 0 7px 14px rgba(49,155,101,.14);
}
.tr1-predicate-word.tried {
  animation: tr1PredicateWrong .34s ease;
}
@keyframes tr1PredicateWrong {
  0%,
  100% {
    transform: translateX(0);
  }
  30% {
    transform: translateX(-4px);
  }
  65% {
    transform: translateX(4px);
  }
}
.tr1-predicate-kind-panel {
  margin-top: 12px;
  padding: 13px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(49,118,141,.12);
}
.tr1-predicate-kind-title {
  margin-bottom: 10px;
  text-align: center;
  color: #405a67;
  font-size: 14px;
  font-weight: 900;
}
.tr1-predicate-kind-actions {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
}
.tr1-predicate-kind-btn {
  border: 0;
  border-radius: 16px;
  min-height: 52px;
  padding: 10px 12px;
  font: inherit;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: .04em;
  cursor: pointer;
  transition: transform .15s ease,box-shadow .15s ease,filter .15s ease;
}
.tr1-predicate-kind-btn.kuralli {
  color: #185c4a;
  background: linear-gradient(135deg,#daf8ed,#c8f2e6);
  box-shadow: 0 7px 14px rgba(50,155,119,.13);
}
.tr1-predicate-kind-btn.kuralsiz {
  color: #6a4f1c;
  background: linear-gradient(135deg,#fff2ca,#ffe7a5);
  box-shadow: 0 7px 14px rgba(195,145,46,.13);
}
.tr1-predicate-kind-btn:hover,
.tr1-predicate-kind-btn:focus-visible {
  transform: translateY(-1px);
  filter: saturate(1.05);
}
.tr1-predicate-feedback,
.tr1-rule-feedback {
  display: grid;
  justify-items: center;
  gap: 7px;
  margin-top: 12px;
  padding: 13px 14px;
  border-radius: 20px;
  text-align: center;
  line-height: 1.45;
}
.tr1-predicate-feedback.good,
.tr1-rule-feedback.good {
  color: #245d41;
  background: #effbf4;
  border: 2px solid rgba(45,182,119,.24);
}
.tr1-predicate-feedback strong,
.tr1-rule-feedback strong {
  font-size: 16px;
  font-weight: 950;
}
.tr1-predicate-feedback span,
.tr1-rule-feedback span {
  font-size: 14px;
  font-weight: 750;
}
.tr1-predicate-feedback .primary-btn,
.tr1-rule-feedback .primary-btn {
  margin-top: 4px;
  min-width: 150px;
}
.tr1-rule-mission {
  display: grid;
  justify-items: center;
  gap: 4px;
  margin: 2px auto 14px;
  padding: 12px 14px;
  border-radius: 20px;
  text-align: center;
}
.tr1-rule-mission.kuralli {
  background: linear-gradient(135deg,#def8ee,#e9fff8);
  border: 2px solid rgba(55,169,129,.18);
  color: #1e654f;
}
.tr1-rule-mission.kuralsiz {
  background: linear-gradient(135deg,#fff2cf,#fff9e8);
  border: 2px solid rgba(205,155,58,.18);
  color: #775b20;
}
.tr1-rule-mission span {
  font-size: 16px;
  line-height: 1.25;
  font-weight: 950;
}
.tr1-rule-mission small {
  font-size: 12px;
  line-height: 1.35;
  font-weight: 750;
  opacity: .84;
}
.tr1-rule-workspace {
  position: relative;
  padding: 15px 10px 11px;
  border-radius: 22px;
  background: linear-gradient(135deg,#f6f4ff,#eef9ff);
  border: 1px solid rgba(109,91,208,.12);
}
.tr1-rule-token-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  row-gap: 10px;
}
.tr1-rule-token {
  position: relative;
  z-index: 2;
  border: 2px solid rgba(66,109,142,.14);
  border-radius: 14px;
  padding: 10px 12px;
  background: #fff;
  color: #2c4559;
  font: inherit;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 900;
  box-shadow: 0 6px 12px rgba(46,63,93,.09);
  cursor: grab;
  touch-action: none;
  user-select: none;
  transition: transform .15s ease,border-color .15s ease,background .15s ease,box-shadow .15s ease;
}
.tr1-rule-token:hover,
.tr1-rule-token:focus-visible,
.tr1-rule-token.selected {
  border-color: #6d5bd0;
  box-shadow: 0 8px 15px rgba(83,65,164,.14);
}
.tr1-rule-token.selected {
  background: #eeeaff;
  transform: translateY(-2px);
}
.tr1-rule-token.drag-ghost {
  position: fixed;
  z-index: 1500;
  margin: 0;
  pointer-events: none;
  opacity: .94;
  transform: rotate(-2deg) scale(1.02);
  box-shadow: 0 16px 26px rgba(45,53,89,.22);
}
.tr1-rule-slot {
  position: relative;
  z-index: 1;
  width: 12px;
  min-width: 12px;
  height: 44px;
  margin: 0 1px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: default;
  transition: width .14s ease,background .14s ease;
}
.tr1-rule-slot span {
  display: block;
  width: 4px;
  height: 34px;
  margin: auto;
  border-radius: 999px;
  background: transparent;
  transition: background .14s ease,box-shadow .14s ease;
}
.tr1-rule-slot.ready {
  cursor: pointer;
}
.tr1-rule-slot.ready span,
.tr1-rule-slot.hover span {
  background: #6d5bd0;
  box-shadow: 0 0 0 4px rgba(109,91,208,.11);
}
.tr1-rule-slot.hover {
  width: 24px;
}
.tr1-rule-punctuation {
  width: max-content;
  margin: 4px auto 0;
  min-height: 22px;
  color: #2c4559;
  font-size: 20px;
  font-weight: 950;
}
.tr1-rule-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 13px;
}
.tr1-rule-actions .ghost-btn,
.tr1-rule-actions .primary-btn {
  min-width: 120px;
}
.tr1-rule-built-sentence {
  width: 100%;
  padding: 9px 11px;
  border-radius: 14px;
  background: #fff;
  color: #245d41;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(45,182,119,.14);
}
@media (max-width:720px) {
  .tr1-predicate-card,
  .tr1-rule-reorder-card {
    padding: 13px;
    border-radius: 22px;
  }
  .tr1-predicate-card .tr1-guide-row,
  .tr1-rule-reorder-card .tr1-guide-row {
    min-height: 76px;
    padding-right: 84px;
    margin-bottom: 8px;
  }
  .tr1-predicate-card .tr1-guide-row .tr1-language-helper,
  .tr1-rule-reorder-card .tr1-guide-row .tr1-language-helper {
    min-height: 62px;
    padding: 10px 11px;
    font-size: 12.5px;
  }
  .tr1-predicate-card .tr1-guide-mascot,
  .tr1-rule-reorder-card .tr1-guide-mascot {
    width: 78px;
    height: 92px;
    bottom: -2px;
  }
  .tr1-predicate-sentence {
    min-height: 82px;
    padding: 14px 10px;
    gap: 6px;
  }
  .tr1-predicate-word {
    padding: 7px 9px;
    font-size: 15px;
    border-radius: 12px;
  }
  .tr1-predicate-kind-btn {
    min-height: 48px;
    font-size: 14px;
  }
  .tr1-rule-mission {
    margin-bottom: 10px;
    padding: 10px 12px;
  }
  .tr1-rule-workspace {
    padding: 13px 8px 9px;
  }
  .tr1-rule-token {
    padding: 9px 10px;
    font-size: 14px;
  }
  .tr1-rule-slot {
    width: 10px;
    min-width: 10px;
    height: 40px;
  }
  .tr1-rule-slot span {
    height: 31px;
  }
}
@media (max-width:480px) {
  .tr1-predicate-step {
    font-size: 11.5px;
    margin-bottom: 9px;
  }
  .tr1-predicate-step span {
    width: 23px;
    height: 23px;
    flex-basis: 23px;
  }
  .tr1-predicate-sentence {
    min-height: 72px;
    padding: 11px 8px;
  }
  .tr1-predicate-word {
    font-size: 14px;
    padding: 6px 8px;
  }
  .tr1-predicate-kind-panel {
    padding: 10px;
  }
  .tr1-predicate-kind-actions {
    gap: 8px;
  }
  .tr1-predicate-kind-btn {
    min-height: 44px;
    padding: 8px;
    font-size: 13px;
  }
  .tr1-predicate-feedback,
  .tr1-rule-feedback {
    padding: 11px 12px;
  }
  .tr1-rule-token-row {
    row-gap: 8px;
  }
  .tr1-rule-token {
    font-size: 13px;
    padding: 8px 9px;
  }
  .tr1-rule-actions .ghost-btn,
  .tr1-rule-actions .primary-btn {
    min-width: 105px;
    padding-left: 12px;
    padding-right: 12px;
  }
}
.tr1-rule-token-row > .tr1-rule-punctuation {
  display: inline-flex;
  align-items: center;
  align-self: center;
  width: auto;
  min-width: 8px;
  min-height: 0;
  margin: 0 0 0 1px;
  font-size: 20px;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   Grade 3 Turkish - positive/negative sentence classification and transformation
   -------------------------------------------------------------------------- */
.tr1-polarity-card,
.tr1-negative-card {
  width: min(760px,100%);
  margin: 0 auto;
  border-radius: 26px;
  padding: 16px;
  background: linear-gradient(180deg,rgba(255,255,255,.98),rgba(247,252,255,.96));
  border: 2px solid rgba(43,139,119,.12);
  box-shadow: 0 16px 32px rgba(35,73,92,.10);
  overflow: hidden;
}
.tr1-polarity-card .tr1-guide-row,
.tr1-negative-card .tr1-guide-row {
  min-height: 88px;
  padding-right: 104px;
  margin-bottom: 10px;
}
.tr1-polarity-card .tr1-guide-row .tr1-language-helper,
.tr1-negative-card .tr1-guide-row .tr1-language-helper {
  min-height: 72px;
  padding: 12px 14px;
  border-radius: 18px;
  background: linear-gradient(135deg,#fff8d9,#eefaff);
  color: #38515f;
  font-size: 14px;
  line-height: 1.45;
}
.tr1-polarity-card .tr1-guide-mascot,
.tr1-negative-card .tr1-guide-mascot {
  right: 2px;
  bottom: -4px;
  width: 96px;
  height: 116px;
}
.tr1-polarity-question {
  width: max-content;
  max-width: 100%;
  margin: 0 auto 10px;
  padding: 7px 13px;
  border-radius: 999px;
  background: #edf8f8;
  color: #23626b;
  text-align: center;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 900;
}
.tr1-polarity-sentence {
  display: grid;
  place-items: center;
  min-height: 108px;
  padding: 18px 16px;
  border-radius: 22px;
  background: linear-gradient(135deg,#f7f4ff,#eefaff);
  border: 1px solid rgba(109,91,208,.13);
  color: #263e53;
  text-align: center;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 900;
}
.tr1-polarity-actions {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-top: 14px;
}
.tr1-polarity-btn {
  flex: 1 1 0;
  width: 100%;
  height: 66px;
  min-height: 66px;
  margin: 0;
  align-self: stretch;
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  align-content: center;
  align-items: center;
  column-gap: 12px;
  border: 2px solid transparent;
  border-radius: 18px;
  padding: 0 14px;
  background: #fff;
  font: inherit;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: 0 8px 16px rgba(46,63,93,.09);
  transition: border-color .15s ease,box-shadow .15s ease;
}
.tr1-polarity-btn:hover,
.tr1-polarity-btn:focus-visible,
.tr1-polarity-btn:active {
  transform: none;
}
.tr1-polarity-btn.olumlu:hover,
.tr1-polarity-btn.olumlu:focus-visible {
  border-color: #42b66a;
  box-shadow: 0 0 0 4px rgba(66,182,106,.11),0 9px 18px rgba(46,63,93,.10);
}
.tr1-polarity-btn.olumsuz:hover,
.tr1-polarity-btn.olumsuz:focus-visible {
  border-color: #dd424b;
  box-shadow: 0 0 0 4px rgba(221,66,75,.10),0 9px 18px rgba(46,63,93,.10);
}
.tr1-polarity-dot {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.08);
}
.tr1-polarity-btn.olumlu .tr1-polarity-dot {
  background: #34ad56;
}
.tr1-polarity-btn.olumsuz .tr1-polarity-dot {
  background: #df2731;
}
.tr1-polarity-btn strong {
  display: block;
  color: #344255;
  font-size: 15px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: .035em;
}
.tr1-polarity-feedback,
.tr1-negative-feedback {
  display: grid;
  justify-items: center;
  gap: 7px;
  margin-top: 14px;
  padding: 14px;
  border-radius: 20px;
  text-align: center;
  line-height: 1.45;
}
.tr1-polarity-feedback.good,
.tr1-negative-feedback.good {
  color: #245d41;
  background: #effbf4;
  border: 2px solid rgba(45,182,119,.24);
}
.tr1-polarity-feedback strong,
.tr1-negative-feedback strong {
  font-size: 16px;
  font-weight: 950;
}
.tr1-polarity-feedback span,
.tr1-negative-feedback span {
  font-size: 14px;
  font-weight: 750;
}
.tr1-polarity-feedback .primary-btn,
.tr1-negative-feedback .primary-btn {
  min-width: 150px;
  margin-top: 4px;
}
.tr1-negative-step {
  display: flex;
  align-items: center;
  gap: 9px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #edf8f8;
  color: #23626b;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 900;
}
.tr1-negative-step span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 50%;
  background: #278c7d;
  color: #fff;
  box-shadow: 0 4px 9px rgba(39,140,125,.22);
}
.tr1-negative-sentence {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 98px;
  padding: 18px 14px;
  border-radius: 22px;
  background: linear-gradient(135deg,#f8f4ff,#eefaff);
  border: 1px solid rgba(109,91,208,.13);
}
.tr1-negative-word {
  appearance: none;
  border: 2px solid transparent;
  border-radius: 13px;
  padding: 8px 10px;
  background: #fff;
  color: #263e53;
  font: inherit;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 900;
  box-shadow: 0 6px 12px rgba(46,63,93,.09);
  cursor: pointer;
  transition: transform .15s ease,border-color .15s ease,background .15s ease,box-shadow .15s ease;
}
.tr1-negative-word:hover,
.tr1-negative-word:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(39,140,125,.40);
}
.tr1-negative-word.found {
  color: #176941;
  background: #eaf9f0;
  border-color: #44b878;
  box-shadow: 0 7px 14px rgba(49,155,101,.14);
}
.tr1-negative-word.tried {
  animation: tr1NegativeWrong .34s ease;
}
@keyframes tr1NegativeWrong {
  0%,
  100% {
    transform: translateX(0);
  }
  30% {
    transform: translateX(-4px);
  }
  65% {
    transform: translateX(4px);
  }
}
.tr1-negative-punctuation {
  margin-left: -5px;
  color: #263e53;
  font-size: 20px;
  line-height: 1;
  font-weight: 950;
}
.tr1-negative-form-panel {
  margin-top: 12px;
  padding: 13px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(49,118,141,.12);
}
.tr1-negative-form-title {
  margin-bottom: 10px;
  text-align: center;
  color: #405a67;
  font-size: 14px;
  font-weight: 900;
}
.tr1-negative-form-actions {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 9px;
}
.tr1-negative-form-btn {
  min-height: 50px;
  border: 2px solid rgba(39,140,125,.13);
  border-radius: 15px;
  padding: 9px 10px;
  background: linear-gradient(135deg,#f3fffb,#edf9ff);
  color: #28554e;
  font: inherit;
  font-size: 15px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 6px 12px rgba(46,63,93,.07);
  transition: transform .15s ease,border-color .15s ease,box-shadow .15s ease;
}
.tr1-negative-form-btn:hover,
.tr1-negative-form-btn:focus-visible {
  transform: translateY(-1px);
  border-color: #278c7d;
  box-shadow: 0 0 0 3px rgba(39,140,125,.10),0 7px 14px rgba(46,63,93,.09);
}
.tr1-negative-built-sentence {
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff;
  color: #245d41;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(45,182,119,.14);
}
@media (max-width:720px) {
  .tr1-polarity-card,
  .tr1-negative-card {
    padding: 13px;
    border-radius: 22px;
  }
  .tr1-polarity-card .tr1-guide-row,
  .tr1-negative-card .tr1-guide-row {
    min-height: 76px;
    padding-right: 84px;
    margin-bottom: 8px;
  }
  .tr1-polarity-card .tr1-guide-row .tr1-language-helper,
  .tr1-negative-card .tr1-guide-row .tr1-language-helper {
    min-height: 62px;
    padding: 10px 11px;
    font-size: 12.5px;
  }
  .tr1-polarity-card .tr1-guide-mascot,
  .tr1-negative-card .tr1-guide-mascot {
    width: 78px;
    height: 92px;
    bottom: -2px;
  }
  .tr1-polarity-sentence {
    min-height: 92px;
    padding: 15px 12px;
    font-size: 17px;
  }
  .tr1-polarity-actions {
    gap: 8px;
  }
  .tr1-polarity-btn {
    height: 58px;
    min-height: 58px;
    column-gap: 8px;
    padding: 0 10px;
  }
  .tr1-polarity-dot {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }
  .tr1-polarity-btn strong {
    font-size: 13px;
  }
  .tr1-negative-sentence {
    min-height: 86px;
    padding: 14px 10px;
    gap: 6px;
  }
  .tr1-negative-word {
    padding: 7px 9px;
    font-size: 15px;
    border-radius: 12px;
  }
  .tr1-negative-form-actions {
    gap: 7px;
  }
  .tr1-negative-form-btn {
    min-height: 46px;
    padding: 8px 7px;
    font-size: 13.5px;
  }
}
@media (max-width:390px) {
  .tr1-negative-form-actions {
    grid-template-columns: 1fr;
  }
  .tr1-negative-form-btn {
    min-height: 42px;
  }
}

/* --------------------------------------------------------------------------
   Grade 3 Turkish - seed journey storybook and quiz enhancements
   -------------------------------------------------------------------------- */
.story-seed-journey .story-quiz-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(184,137,50,.18);
  background: radial-gradient(circle at 8% 5%,rgba(245,201,92,.12),transparent 28%),
    linear-gradient(180deg,#fffef9 0%,#fbfff7 100%);
  box-shadow: 0 20px 42px rgba(89,92,55,.12);
}
.story-seed-journey .story-reading-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: linear-gradient(180deg,#e6a34a,#75b66e,#3d8f68);
  opacity: .78;
}
.story-book-stage {
  position: relative;
  width: min(760px,100%);
  margin: 0 auto;
  perspective: 1800px;
  transform-style: preserve-3d;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}
.story-book-stage > .story-quiz-card {
  width: 100%;
  margin: 0;
}
.story-book-page {
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform,opacity,filter;
}
.story-book-page-current {
  position: relative;
  z-index: 2;
  transform-origin: 0 50%;
}
.story-book-page-current::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  background: linear-gradient(90deg,rgba(61,45,24,.04) 0%,rgba(84,55,24,.22) 48%,rgba(255,255,255,.48) 82%,rgba(255,255,255,.08) 100%);
}
.story-book-page-next {
  position: absolute;
  inset: 0 auto auto 0;
  z-index: 1;
  width: 100%;
  margin: 0;
  pointer-events: none;
  transform: scale(.985) translateX(5px);
  opacity: .72;
  filter: brightness(.96) saturate(.96);
}
.story-book-stage.is-turning .story-book-page-current {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
}
.story-book-page-current.is-turning {
  pointer-events: none;
  animation: storyBookPageTurn .78s cubic-bezier(.58,.02,.22,.98) forwards;
}
.story-book-page-current.is-turning::after {
  animation: storyBookPageShade .78s ease-in-out forwards;
}
.story-book-page-next.is-revealing {
  animation: storyBookPageReveal .78s cubic-bezier(.25,.72,.28,1) forwards;
}
.story-book-page-previous {
  position: absolute;
  inset: 0 auto auto 0;
  z-index: 4;
  width: 100%;
  margin: 0;
  pointer-events: none;
  transform-origin: 0 50%;
  transform: rotateY(-166deg) translateX(-18px);
  opacity: 0;
  filter: brightness(.82);
}
.story-book-page-current.is-receding {
  pointer-events: none;
  animation: storyBookPageRecede .78s cubic-bezier(.25,.72,.28,1) forwards;
}
.story-book-page-previous.is-returning {
  animation: storyBookPageReturn .78s cubic-bezier(.58,.02,.22,.98) forwards;
}
@keyframes storyBookPageTurn {
  0% {
    transform: rotateY(0deg) translateX(0);
    opacity: 1;
    filter: brightness(1);
  }
  30% {
    transform: rotateY(-44deg) translateX(-2px);
    opacity: 1;
    filter: brightness(.98);
    box-shadow: 18px 18px 34px rgba(74,55,31,.18);
  }
  62% {
    transform: rotateY(-104deg) translateX(-8px);
    opacity: .84;
    filter: brightness(.88);
    box-shadow: 28px 16px 40px rgba(74,55,31,.24);
  }
  100% {
    transform: rotateY(-166deg) translateX(-18px);
    opacity: 0;
    filter: brightness(.82);
    box-shadow: 36px 12px 46px rgba(74,55,31,.10);
  }
}
@keyframes storyBookPageReturn {
  0% {
    transform: rotateY(-166deg) translateX(-18px);
    opacity: 0;
    filter: brightness(.82);
    box-shadow: 36px 12px 46px rgba(74,55,31,.10);
  }
  38% {
    transform: rotateY(-104deg) translateX(-8px);
    opacity: .84;
    filter: brightness(.88);
    box-shadow: 28px 16px 40px rgba(74,55,31,.24);
  }
  70% {
    transform: rotateY(-44deg) translateX(-2px);
    opacity: 1;
    filter: brightness(.98);
    box-shadow: 18px 18px 34px rgba(74,55,31,.18);
  }
  100% {
    transform: rotateY(0deg) translateX(0);
    opacity: 1;
    filter: brightness(1);
    box-shadow: none;
  }
}
@keyframes storyBookPageRecede {
  0% {
    transform: scale(1) translateX(0);
    opacity: 1;
    filter: brightness(1) saturate(1);
  }
  52% {
    transform: scale(.993) translateX(2px);
    opacity: .9;
    filter: brightness(.985) saturate(.98);
  }
  100% {
    transform: scale(.985) translateX(5px);
    opacity: .72;
    filter: brightness(.96) saturate(.96);
  }
}
@keyframes storyBookPageShade {
  0% {
    opacity: 0;
  }
  38% {
    opacity: .78;
  }
  68% {
    opacity: .42;
  }
  100% {
    opacity: 0;
  }
}
@keyframes storyBookPageReveal {
  0% {
    transform: scale(.985) translateX(5px);
    opacity: .72;
    filter: brightness(.96) saturate(.96);
  }
  48% {
    transform: scale(.993) translateX(2px);
    opacity: .9;
    filter: brightness(.985) saturate(.98);
  }
  100% {
    transform: scale(1) translateX(0);
    opacity: 1;
    filter: brightness(1) saturate(1);
  }
}
.story-journey-progress {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6,1fr);
  align-items: center;
  gap: 0;
  margin: 0 2px 14px;
  padding: 4px 0;
}
.story-journey-progress::before {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  top: 50%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg,rgba(217,130,43,.20),rgba(87,158,101,.24));
  transform: translateY(-50%);
}
.story-journey-dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
}
.story-journey-dot span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #d9cba8;
  background: #fffdf5;
  color: #8b744d;
  font-size: .75rem;
  font-weight: 950;
  box-shadow: 0 4px 10px rgba(91,72,39,.08);
}
.story-journey-dot.complete span {
  border-color: #75ad70;
  background: #eaf7e8;
  color: #34714a;
}
.story-journey-dot.active span {
  width: 36px;
  height: 36px;
  border-color: #d9822b;
  background: linear-gradient(145deg,#fff2cc,#fffdf7);
  color: #9a5315;
  box-shadow: 0 0 0 6px rgba(217,130,43,.11),0 8px 16px rgba(104,73,31,.12);
}
.story-seed-journey .story-reading-step {
  margin-left: 2px;
  background: linear-gradient(135deg,#fff1cf,#eaf7e6);
  color: #6e552d;
  border: 1px solid rgba(195,139,52,.17);
}
.story-seed-journey .story-visual-card {
  overflow: hidden;
  padding: 10px;
  border: 1px solid rgba(186,142,68,.18);
  background: linear-gradient(180deg,#fffdf7,#f3fbef);
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.72);
}
.story-image-window {
  overflow: hidden;
  border-radius: 18px;
}
.story-seed-journey .story-visual-image {
  transform-origin: center center;
  animation: storySeedBreath 7s ease-in-out infinite alternate;
}
.story-seed-journey .story-text-card {
  position: relative;
  padding: 18px 20px 18px 24px;
  background: linear-gradient(90deg,rgba(229,184,93,.14) 0 2px,transparent 2px) 18px 0/100% 100% no-repeat,
    #fffdf8;
  border-color: rgba(214,168,82,.26);
  box-shadow: 0 8px 20px rgba(101,80,44,.06);
}
.story-seed-journey .story-text-card p {
  color: #32453c;
  font-size: 1.02rem;
  font-weight: 700;
}
.story-seed-journey .story-reading-actions .primary-btn {
  min-width: 180px;
  box-shadow: 0 10px 20px rgba(183,115,39,.18);
}
.story-seed-journey .story-reading-actions.has-previous {
  justify-content: space-between;
  gap: 12px;
}
.story-previous-btn {
  min-width: 150px;
  min-height: 48px;
  padding: 10px 18px;
  border: 2px solid rgba(76,133,92,.20);
  border-radius: 18px;
  background: linear-gradient(145deg,#f6fbf3,#edf7ed);
  color: #356147;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(64,111,73,.10);
  transition: transform .16s ease,box-shadow .16s ease,background .16s ease;
}
.story-previous-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(64,111,73,.14);
}
.story-previous-btn:active {
  transform: translateY(1px);
}
.story-page-footer {
  display: flex;
  justify-content: flex-end;
  margin: 8px 4px -2px;
}
.story-page-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(142,111,62,.16);
  background: #fffdf6;
  color: #7d6a48;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .04em;
  box-shadow: 0 4px 10px rgba(91,72,39,.06);
}
.story-bridge-card {
  position: relative;
  width: min(620px,100%);
  margin: 12px auto 0;
  padding: 26px 24px 24px;
  text-align: center;
  overflow: hidden;
  border: 2px solid rgba(111,164,98,.20);
  border-radius: 30px;
  background: radial-gradient(circle at 16% 12%,rgba(255,207,95,.20),transparent 28%),
    radial-gradient(circle at 88% 82%,rgba(81,173,120,.16),transparent 32%),
    linear-gradient(180deg,#fffef7,#f2fbef);
  box-shadow: 0 22px 42px rgba(55,93,62,.12);
}
.story-bridge-card .story-bridge-kelimo {
  width: 112px;
  margin: 0 auto 4px;
}
.story-bridge-card h3 {
  margin: 6px 0 8px;
  color: #315d43;
  font-size: 1.35rem;
  font-weight: 950;
}
.story-bridge-card p {
  width: min(440px,100%);
  margin: 0 auto 18px;
  color: #4e6758;
  font-weight: 750;
  line-height: 1.6;
}
.story-seed-journey.story-quiz-phase .story-quiz-card {
  border-color: rgba(105,91,199,.16);
  background: radial-gradient(circle at 90% 0%,rgba(112,93,204,.09),transparent 34%),
    linear-gradient(180deg,#fff 0%,#fbfbff 100%);
}
.story-quiz-progress {
  margin: 0 2px 16px;
}
.story-quiz-progress-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #eceaf8;
  box-shadow: inset 0 1px 2px rgba(70,60,130,.08);
}
.story-quiz-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg,#73b66e,#6d5bd0);
  transition: width .35s ease;
}
.story-quiz-progress-dots {
  display: grid;
  grid-template-columns: repeat(6,1fr);
  margin-top: -12px;
  padding: 0 2px;
}
.story-quiz-progress-dots span {
  justify-self: center;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 2px solid #d8d4ee;
  border-radius: 50%;
  background: #fff;
  color: #8b84aa;
  font-size: .65rem;
  font-weight: 950;
  box-shadow: 0 3px 8px rgba(73,64,125,.08);
}
.story-quiz-progress-dots span.complete {
  border-color: #70ae6c;
  background: #edf8eb;
  color: #39744a;
}
.story-quiz-progress-dots span.active {
  border-color: #6d5bd0;
  color: #5b4ab7;
  box-shadow: 0 0 0 5px rgba(109,91,208,.09),0 4px 10px rgba(73,64,125,.11);
}
.story-seed-journey.story-quiz-phase .story-question-box {
  margin-top: 0;
  border-width: 2px;
  border-color: rgba(109,91,208,.16);
  box-shadow: 0 10px 22px rgba(76,68,136,.08);
}
.story-seed-journey.story-quiz-phase .story-question-label {
  background: linear-gradient(135deg,#6d5bd0,#8273df);
  box-shadow: 0 5px 12px rgba(89,74,183,.20);
}
.story-seed-journey.story-quiz-phase .story-option-btn {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0,1fr);
  align-items: center;
  gap: 11px;
  min-height: 58px;
  padding: 9px 44px 9px 10px;
  border-color: rgba(84,103,139,.16);
  background: linear-gradient(180deg,#fff,#fcfdff);
}
.story-option-letter {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(145deg,#f0eefb,#e4e1f7);
  color: #6254bb;
  font-size: .9rem;
  font-weight: 950;
  box-shadow: inset 0 0 0 1px rgba(109,91,208,.10);
}
.story-option-text {
  min-width: 0;
  line-height: 1.45;
}
.story-seed-journey.story-quiz-phase .story-option-btn::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid rgba(75,88,117,.28);
  border-right: 2px solid rgba(75,88,117,.28);
  transform: translateY(-50%) rotate(45deg);
}
.story-seed-journey.story-quiz-phase .story-option-btn.selected-good {
  border-color: #2db677;
  background: linear-gradient(180deg,#f0fbf5,#e9f8ef);
  box-shadow: 0 10px 20px rgba(45,182,119,.10);
}
.story-seed-journey.story-quiz-phase .story-option-btn.selected-good .story-option-letter {
  background: #2db677;
  color: #fff;
}
.story-seed-journey.story-quiz-phase .story-option-btn.selected-bad {
  border-color: #df6a6a;
  background: #fff3f3;
  color: #984141;
}
.story-seed-journey.story-quiz-phase .story-option-btn.selected-bad .story-option-letter {
  background: #f5dada;
  color: #a94444;
}
.story-seed-journey.story-quiz-phase .story-option-btn.attempted-wrong {
  opacity: .72;
  cursor: not-allowed;
}
.story-seed-journey.story-quiz-phase .story-option-btn.selected-good::after,
.story-seed-journey.story-quiz-phase .story-option-btn.selected-bad::after {
  display: none;
}
.story-seed-journey.story-quiz-phase .story-feedback.good {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 18px;
}
.story-feedback-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #2db677;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 950;
  box-shadow: 0 5px 12px rgba(45,182,119,.20);
}
.story-seed-journey.story-quiz-phase .story-feedback.good .story-feedback-title {
  margin: 0;
  font-weight: 950;
}
.story-seed-journey.story-quiz-phase .story-feedback.good .primary-btn {
  min-width: 142px;
  margin: 0;
}
@keyframes storySeedBreath {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.018);
  }
}
@media (max-width: 760px) {
  .story-seed-journey .story-text-card p {
    font-size: .97rem;
  }
}
@media (max-width: 480px) {
  .story-journey-dot span {
    width: 26px;
    height: 26px;
    font-size: .68rem;
  }
  .story-journey-dot.active span {
    width: 31px;
    height: 31px;
  }
  .story-seed-journey .story-reading-card {
    padding: 12px;
  }
  .story-seed-journey .story-text-card {
    padding: 14px 15px 14px 20px;
  }
  .story-page-number {
    min-width: 48px;
    padding: 4px 8px;
    font-size: .7rem;
  }
  .story-bridge-card {
    padding: 20px 16px 18px;
    border-radius: 24px;
  }
  .story-bridge-card .story-bridge-kelimo {
    width: 92px;
  }
  .story-bridge-card h3 {
    font-size: 1.16rem;
  }
  .story-seed-journey.story-quiz-phase .story-option-btn {
    grid-template-columns: 34px minmax(0,1fr);
    gap: 9px;
    min-height: 52px;
    padding: 8px 38px 8px 9px;
  }
  .story-option-letter {
    width: 31px;
    height: 31px;
    border-radius: 10px;
    font-size: .8rem;
  }
  .story-quiz-progress-dots span {
    width: 21px;
    height: 21px;
    font-size: .6rem;
  }
  .story-seed-journey.story-quiz-phase .story-feedback.good {
    grid-template-columns: auto 1fr;
    padding: 11px 12px;
  }
  .story-seed-journey.story-quiz-phase .story-feedback.good .primary-btn {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 2px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .story-seed-journey .story-visual-image {
    animation: none;
  }
}
@media (max-width:560px) {
  .story-seed-journey .story-reading-actions.has-previous {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .story-seed-journey .story-reading-actions.has-previous .primary-btn,
  .story-seed-journey .story-reading-actions.has-previous .story-previous-btn {
    min-width: 0;
    width: 100%;
  }
}

/* Grade 3 Turkish - period punctuation activities. */
.period-use-card,
.period-hunt-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}
.period-use-card .tr1-guide-row,
.period-hunt-card .tr1-guide-row {
  margin-bottom: 0;
}
.period-use-card .tr1-guide-row {
  min-height: 74px;
  padding-right: 76px;
}
.period-use-card .tr1-guide-row .tr1-language-helper {
  min-height: 66px;
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.26;
}
.period-use-card .tr1-guide-row .tr1-guide-mascot {
  width: 78px;
  height: 78px;
  right: -4px;
  bottom: -2px;
}
.period-use-card .tr1-guide-row .tr1-guide-mascot img {
  max-width: 100%;
  max-height: 100%;
}
.period-use-bank,
.period-use-targets-wrap {
  padding: 11px;
  border-radius: 21px;
  background: linear-gradient(145deg,#eef8ff,#fff8e8);
  border: 1px solid rgba(59,130,196,.15);
  box-shadow: 0 9px 20px rgba(23,48,76,.07);
}
.period-use-targets-wrap {
  background: linear-gradient(180deg,#fffefd,#f8fbff);
}
.period-use-bank-title,
.period-use-targets-title {
  margin-bottom: 8px;
  color: #41627d;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.period-use-chips {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 8px;
}
.period-use-chip {
  position: relative;
  min-width: 0;
  min-height: 60px;
  padding: 8px 7px;
  border-radius: 18px;
  background: linear-gradient(180deg,#ffffff,#f6fbff);
  border: 2px solid #d9e7f1;
  box-shadow: 0 8px 18px rgba(23,48,76,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #24435d;
  font-size: 11px;
  font-weight: 950;
  line-height: 1.12;
  text-align: center;
  touch-action: none;
  transition: transform .16s ease,border-color .16s ease,box-shadow .16s ease,opacity .16s ease,background .16s ease;
}
.period-use-chip .period-use-chip-text {
  display: block;
  max-width: 100%;
}
.period-use-chip b {
  position: absolute;
  right: 6px;
  top: 6px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #27ad75;
  color: #fff;
  font-size: 10px;
}
.period-use-chip.selected {
  border-color: #3b82c4;
  background: #eef8ff;
  box-shadow: 0 0 0 4px rgba(59,130,196,.12),0 10px 22px rgba(23,48,76,.1);
  transform: translateY(-2px) scale(1.02);
}
.period-use-chip.used {
  opacity: .58;
  border-color: #9ed5b9;
  background: #f1fbf5;
}
.period-use-chip.dragging {
  transform: scale(1.06) rotate(-1.4deg) !important;
  box-shadow: 0 16px 28px rgba(23,48,76,.16) !important;
}
.period-use-targets {
  display: grid;
  gap: 8px;
}
.period-use-target {
  width: 100%;
  min-height: 75px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255,255,255,.96);
  border: 2px solid #dce8e3;
  box-shadow: 0 8px 18px rgba(23,48,76,.065);
  display: grid;
  grid-template-columns: 36px minmax(0,1fr);
  align-items: flex-start;
  gap: 9px;
  text-align: left;
  transition: transform .16s ease,border-color .16s ease,background .16s ease,box-shadow .16s ease;
}
.period-use-target-no {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: #eef5fa;
  color: #4d6a80;
  font-size: 12px;
  font-weight: 950;
}
.period-use-target-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.period-use-sentence {
  color: #18364d;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.28;
  background-image: linear-gradient(120deg,rgba(255,225,130,.55),rgba(255,225,130,.18));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 100%;
  border-radius: 10px;
  padding: 1px 2px;
}
.period-use-sentence.is-corrected {
  color: #1a5f44;
}
.period-use-dropzone {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 13px;
  border: 2px dashed #c9d9e4;
  background: #f8fbff;
}
.period-use-dropzone-label {
  color: #6f8595;
  font-size: 10.5px;
  font-weight: 850;
}
.period-use-answer {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eefaf4;
  color: #23865e;
  font-size: 10.5px;
  font-weight: 900;
  border: 1px solid rgba(39,173,117,.22);
}
.period-use-answer i {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #27ad75;
  color: #fff;
  font-style: normal;
  font-size: 10px;
}
.period-use-target.drop-hover {
  border-color: #3b82c4;
  background: #eef8ff;
  box-shadow: 0 0 0 4px rgba(59,130,196,.11),0 12px 22px rgba(23,48,76,.09);
  transform: scale(1.012);
}
.period-use-target.good,
.period-use-target.solved {
  border-color: #65bc8f;
  background: #effaf4;
}
.period-use-target.bad {
  border-color: #e66a6a;
  background: #fff2f2;
  animation: shake .28s ease;
}
.period-use-target.solved-animate {
  box-shadow: 0 0 0 4px rgba(39,173,117,.12),0 10px 22px rgba(32,122,84,.1);
}
.period-hunt-card .tr1-guide-row {
  min-height: 76px;
  padding-right: 78px;
}
.period-hunt-card .tr1-guide-row .tr1-language-helper {
  min-height: 66px;
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.28;
}
.period-hunt-card .tr1-guide-row .tr1-guide-mascot {
  width: 80px;
  height: 80px;
  right: -4px;
  bottom: -2px;
}
.period-hunt-progress {
  padding: 11px 12px;
  border-radius: 18px;
  background: linear-gradient(145deg,#f7fbff,#fff9ec);
  border: 1px solid rgba(59,130,196,.14);
  box-shadow: 0 8px 18px rgba(23,48,76,.07);
  display: grid;
  gap: 8px;
}
.period-hunt-progress-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #4a667b;
  font-size: 11px;
  font-weight: 900;
}
.period-hunt-progress-copy strong {
  color: #2e78b5;
  font-size: 14px;
  font-weight: 950;
}
.period-hunt-progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #e7eff4;
}
.period-hunt-progress-track>i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg,#3b82c4,#f2bd4b);
  transition: width .28s ease;
}
.period-hunt-progress-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
}
.period-hunt-progress-dot {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d8e4ec;
  box-shadow: inset 0 0 0 2px #fff,0 0 0 1px #c8d7e0;
  transition: transform .2s ease,background .2s ease;
}
.period-hunt-progress-dot.done {
  background: #f0a43a;
  transform: scale(1.18);
}
.period-hunt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  gap: 9px;
}
.period-hunt-item {
  position: relative;
  width: 100%;
  min-height: 88px;
  padding: 11px;
  border-radius: 19px;
  background: linear-gradient(180deg,#fff,#fbfdff);
  border: 2px solid #dce8e3;
  box-shadow: 0 8px 18px rgba(23,48,76,.065);
  display: grid;
  grid-template-columns: 34px minmax(0,1fr) 66px;
  align-items: center;
  gap: 10px;
  text-align: left;
  color: #18364d;
  transition: transform .15s ease,border-color .15s ease,background .15s ease,box-shadow .15s ease;
}
.period-hunt-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 11px 21px rgba(23,48,76,.09);
}
.period-hunt-item:active {
  transform: scale(.985);
}
.period-hunt-number {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #edf5fa;
  color: #4a6a81;
  font-size: 11px;
  font-weight: 950;
}
.period-hunt-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.period-hunt-kicker {
  color: #7790a1;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .05em;
}
.period-hunt-text {
  display: block;
  color: #18364d;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.28;
}
.period-hunt-status {
  width: 66px;
  min-height: 48px;
  padding: 5px 4px;
  border-radius: 14px;
  background: #f0f5f8;
  color: #6f8798;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border: 1px solid #dce7ed;
}
.period-hunt-status b {
  font-size: 17px;
  line-height: 1;
  font-weight: 950;
}
.period-hunt-status small {
  font-size: 8px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: .04em;
}
.period-hunt-item.found {
  border-color: #e79a52;
  background: linear-gradient(180deg,#fff8ef,#fff2e5);
  box-shadow: 0 0 0 3px rgba(231,154,82,.10),0 9px 18px rgba(23,48,76,.065);
}
.period-hunt-item.found .period-hunt-number {
  background: #f6d5b2;
  color: #8a4d18;
}
.period-hunt-item.found .period-hunt-status {
  background: #e88732;
  color: #fff;
  border-color: #df7a24;
}
.period-hunt-item.found-now {
  animation: periodHuntFound .38s ease;
}
.period-hunt-item.bad {
  border-color: #e66a6a;
  background: #fff2f2;
  animation: shake .28s ease;
}
@keyframes periodHuntFound {
  0% {
    transform: scale(.98);
  }
  55% {
    transform: scale(1.018);
  }
  100% {
    transform: scale(1);
  }
}
@media (max-width:900px) {
  .period-hunt-item {
    min-height: 72px;
  }
}
@media (max-width:560px) {
  .period-use-card .tr1-guide-row {
    min-height: 66px;
    padding-right: 62px;
  }
  .period-use-card .tr1-guide-row .tr1-language-helper {
    min-height: 58px;
    padding: 8px 10px;
    font-size: 11px;
  }
  .period-use-card .tr1-guide-row .tr1-guide-mascot {
    width: 62px;
    height: 62px;
    right: -2px;
    bottom: 2px;
  }
  .period-use-chips {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .period-use-chip:last-child {
    grid-column: 1/-1;
    width: 56%;
    justify-self: center;
  }
  .period-use-chip {
    min-height: 52px;
    font-size: 11.5px;
  }
  .period-use-target {
    min-height: 68px;
    grid-template-columns: 30px minmax(0,1fr);
    padding: 8px;
  }
  .period-use-target-no {
    width: 28px;
    height: 28px;
    border-radius: 10px;
  }
  .period-use-sentence {
    font-size: 12px;
  }
  .period-use-dropzone {
    min-height: 30px;
    padding: 5px 9px;
  }
  .period-hunt-card .tr1-guide-row {
    min-height: 68px;
    padding-right: 64px;
  }
  .period-hunt-card .tr1-guide-row .tr1-language-helper {
    min-height: 58px;
    padding: 8px 10px;
    font-size: 11px;
  }
  .period-hunt-card .tr1-guide-row .tr1-guide-mascot {
    width: 64px;
    height: 64px;
  }
  .period-hunt-item {
    min-height: 72px;
    padding: 9px;
    grid-template-columns: 30px minmax(0,1fr) 58px;
    gap: 8px;
  }
  .period-hunt-number {
    width: 26px;
    height: 26px;
  }
  .period-hunt-status {
    width: 58px;
    min-height: 43px;
  }
  .period-hunt-text {
    font-size: 11.5px;
  }
  .period-hunt-progress {
    padding: 9px 10px;
  }
}
@media (max-height:720px) {
  .period-use-card,
  .period-hunt-card {
    gap: 7px;
  }
  .period-use-card .tr1-guide-row {
    min-height: 60px;
    padding-right: 58px;
  }
  .period-use-card .tr1-guide-row .tr1-language-helper {
    min-height: 54px;
    padding: 7px 9px;
    font-size: 10.5px;
  }
  .period-use-card .tr1-guide-row .tr1-guide-mascot {
    width: 58px;
    height: 58px;
  }
  .period-use-bank,
  .period-use-targets-wrap {
    padding: 8px;
  }
  .period-use-chip {
    min-height: 46px;
  }
  .period-use-targets {
    gap: 5px;
  }
  .period-use-target {
    min-height: 58px;
  }
  .period-use-dropzone {
    min-height: 28px;
    padding: 4px 8px;
  }
  .period-hunt-card .tr1-guide-row {
    min-height: 60px;
    padding-right: 58px;
  }
  .period-hunt-card .tr1-guide-row .tr1-language-helper {
    min-height: 54px;
    padding: 7px 9px;
    font-size: 10.5px;
  }
  .period-hunt-card .tr1-guide-row .tr1-guide-mascot {
    width: 58px;
    height: 58px;
  }
  .period-hunt-grid {
    gap: 6px;
  }
  .period-hunt-item {
    min-height: 64px;
    padding: 8px;
  }
  .period-hunt-progress {
    padding: 8px 9px;
    gap: 6px;
  }
}

/* --------------------------------------------------------------------------
   Grade 3 Turkish - comma punctuation activities
   -------------------------------------------------------------------------- */
.comma-game-card,
.punctuation-choice-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  padding: 14px;
  border-radius: 28px;
  background: linear-gradient(180deg,#ffffff 0%,#fbfdff 100%);
  border: 2px solid #dcedf4;
  box-shadow: 0 16px 32px rgba(23,48,76,.08);
}

/* Text and Kelimo always live in separate grid columns. */
.comma-game-card .tr1-guide-row,
.punctuation-choice-card .tr1-guide-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) 82px;
  gap: 10px;
  min-height: 94px;
  padding: 0;
  margin-bottom: 0;
  align-items: center;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.comma-game-card .tr1-guide-row .tr1-language-helper,
.punctuation-choice-card .tr1-guide-row .tr1-language-helper {
  grid-column: 1;
  width: 100%;
  min-width: 0;
  min-height: 80px;
  margin: 0;
  padding: 12px 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  text-align: center;
  font-size: 11.5px;
  line-height: 1.3;
}
.comma-game-card .tr1-guide-row .tr1-guide-mascot,
.punctuation-choice-card .tr1-guide-row .tr1-guide-mascot {
  grid-column: 2;
  position: relative;
  inset: auto;
  width: 82px;
  height: 98px;
  margin: 0;
  align-self: end;
  justify-self: center;
}
.comma-stage-label,
.punctuation-choice-kicker {
  align-self: flex-start;
  padding: 6px 11px;
  border-radius: 999px;
  background: linear-gradient(180deg,#fff4d9,#ffefc3);
  color: #8b6532;
  border: 1px solid #f2dca1;
  box-shadow: 0 6px 14px rgba(222,183,101,.18);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .04em;
}
.comma-sentence-board {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px 1px;
  min-height: 170px;
  padding: 24px 18px;
  border-radius: 26px;
  background: linear-gradient(180deg,#fffefd 0%,#f8fcff 100%);
  border: 2px solid #d9edf5;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8),0 10px 24px rgba(23,48,76,.07);
  color: #17364d;
  font-size: 20px;
  line-height: 1.6;
  font-weight: 900;
  text-align: center;
}
.comma-word-unit {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.comma-word {
  display: inline-block;
  padding: 2px 4px;
  border-radius: 10px;
}
.comma-complete-sentence {
  width: 100%;
  padding: 8px 10px;
  color: #17364d;
  font-size: 28px;
  line-height: 1.6;
  font-weight: 950;
  text-align: center;
}
.comma-gap {
  display: inline-grid;
  place-items: center;
  width: 29px;
  height: 42px;
  margin: 0 2px;
  border: 2px dashed #b9d8e7;
  border-radius: 10px;
  background: linear-gradient(180deg,#f9fdff,#eef8fd);
  color: #149fc8;
  touch-action: none;
  transition: transform .16s ease,border-color .16s ease,background .16s ease,box-shadow .16s ease;
}
.comma-gap i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d5e7f1;
  transition: transform .16s ease,background .16s ease,box-shadow .16s ease;
}
.comma-gap span {
  font-family: Georgia,serif;
  font-size: 31px;
  font-weight: 950;
  line-height: .6;
  transform: translateY(-4px);
}

/* Reveal all valid comma targets during pointer drag or tap selection. */
body.is-dragging-comma .comma-gap:not(.placed),
.comma-gap-screen.tap-comma-selected .comma-gap:not(.placed) {
  border-color: #72cde5;
  background: linear-gradient(180deg,#f4fdff,#e8f8fd);
  box-shadow: 0 0 0 3px rgba(18,169,203,.09),0 7px 16px rgba(23,48,76,.06);
}
body.is-dragging-comma .comma-gap:not(.placed) i,
.comma-gap-screen.tap-comma-selected .comma-gap:not(.placed) i {
  background: #29afd0;
  transform: scale(1.22);
  box-shadow: 0 0 0 4px rgba(41,175,208,.10);
}
.comma-gap.drop-hover,
body.is-dragging-comma .comma-gap.drop-hover {
  border-color: #0699bf;
  background: #dcf8ff;
  box-shadow: 0 0 0 5px rgba(6,153,191,.17),0 10px 20px rgba(23,48,76,.10);
  transform: scale(1.12);
}
body.is-dragging-comma .comma-gap.drop-hover i {
  background: #078fb2;
  transform: scale(1.45);
  box-shadow: 0 0 0 6px rgba(7,143,178,.12);
}
.comma-gap.placed {
  border-style: solid;
  border-color: #59ba89;
  background: #eefaf4;
  animation: pop .24s ease;
}
.comma-gap.bad {
  border-color: #e45f68;
  background: #fff0f1;
  animation: shake .28s ease;
}
.comma-toolbox {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 24px;
  background: linear-gradient(135deg,#e8fbff 0%,#fff6e8 100%);
  border: 2px solid #d6edf4;
  box-shadow: 0 12px 24px rgba(20,168,200,.10);
}
.comma-toolbox div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.comma-toolbox small {
  color: #5e8191;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .08em;
}
.comma-toolbox strong {
  color: #16405d;
  font-size: 18px;
  font-weight: 900;
}
.comma-drag-token {
  width: 84px;
  height: 64px;
  border-radius: 22px;
  background: linear-gradient(180deg,#24c3df,#1098c3);
  color: #fff;
  box-shadow: 0 14px 24px rgba(16,152,195,.24);
  display: grid;
  place-items: center;
  touch-action: none;
  transition: transform .16s ease,box-shadow .16s ease;
}
.comma-drag-token span {
  font-family: Georgia,serif;
  font-size: 55px;
  font-weight: 950;
  line-height: .7;
  transform: translateY(-7px);
}
.comma-drag-token.selected {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 0 0 4px rgba(18,169,203,.14),0 14px 24px rgba(11,146,191,.25);
}
.comma-drag-token.dragging {
  transform: scale(.78) !important;
  box-shadow: 0 12px 24px rgba(11,146,191,.24) !important;
  opacity: .96;
}
.comma-review {
  display: grid;
  grid-template-columns: 34px minmax(0,1fr);
  gap: 10px;
  align-items: center;
  padding: 16px;
  border-radius: 24px;
  background: linear-gradient(180deg,#eefbf4,#f9fffc);
  border: 2px solid #bfe6cf;
  box-shadow: 0 12px 24px rgba(62,156,106,.10);
}
.comma-review>span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #29ad75;
  color: #fff;
  font-weight: 950;
}
.comma-review strong {
  font-size: 13px;
  line-height: 1.35;
  color: #245a43;
}
.comma-review .primary-btn {
  grid-column: 1/-1;
  justify-self: center;
  min-width: 180px;
}
.punctuation-choice-sentence {
  display: grid;
  place-items: center;
  min-height: 156px;
  padding: 20px;
  border-radius: 26px;
  background: linear-gradient(180deg,#fffefd 0%,#f7fbff 100%);
  border: 2px solid #dcecf4;
  box-shadow: 0 12px 24px rgba(23,48,76,.07);
  text-align: center;
  color: #17364d;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 950;
}
.punctuation-choice-sentence-text {
  display: inline;
  max-width: 100%;
}

/* Keep corrected punctuation inline and pulse only the inserted mark. */
.punctuation-choice-inserted {
  display: inline-block;
  margin: 0;
  padding: 0;
  color: #29ad75;
  font-size: 1em;
  font-weight: 1000;
  line-height: inherit;
  transform-origin: 50% 65%;
  animation: punctuationChoicePulse .68s ease-in-out 3;
}
@keyframes punctuationChoicePulse {
  0%,
  100% {
    transform: scale(1);
    text-shadow: 0 0 0 rgba(41,173,117,0);
  }
  45% {
    transform: scale(1.45);
    text-shadow: 0 0 9px rgba(41,173,117,.38);
  }
}
.punctuation-choice-prompt {
  align-self: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: #edf8ff;
  color: #4e7790;
  font-size: 13px;
  font-weight: 850;
  text-align: center;
}
.punctuation-choice-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.punctuation-choice-btn {
  min-height: 112px;
  padding: 12px;
  border-radius: 24px;
  background: linear-gradient(180deg,#ffffff,#f8fbff);
  border: 2px solid #dbe7ef;
  box-shadow: 0 12px 24px rgba(23,48,76,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #17364d;
  font-weight: 950;
  transition: transform .16s ease,border-color .16s ease,background .16s ease,box-shadow .16s ease;
}
.punctuation-choice-btn span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 17px;
  font-family: Georgia,serif;
  font-size: 42px;
  line-height: .7;
  font-weight: 950;
}
.punctuation-choice-btn strong {
  font-size: 18px;
}
.punctuation-choice-btn.period span {
  background: linear-gradient(180deg,#fff0f1,#ffe4e7);
  color: #df3546;
}
.punctuation-choice-btn.comma span {
  background: linear-gradient(180deg,#e7fbff,#d8f5ff);
  color: #0aa6d4;
  padding-bottom: 12px;
}
.punctuation-choice-btn:hover {
  transform: translateY(-2px);
}
.punctuation-choice-btn.good {
  border-color: #5bb889;
  background: #effaf4;
  animation: pop .24s ease;
}
.punctuation-choice-btn.bad {
  border-color: #e45f68;
  background: #fff0f1;
  animation: shake .28s ease;
}
.punctuation-choice-review {
  display: grid;
  grid-template-columns: 34px minmax(0,1fr);
  gap: 10px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: linear-gradient(180deg,#effaf4,#fbfffd);
  border: 2px solid #8fd2ae;
  box-shadow: 0 9px 20px rgba(39,134,94,.09);
}
.punctuation-choice-review>span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #29ad75;
  color: #fff;
  font-weight: 950;
}
.punctuation-choice-review strong {
  color: #245a43;
  font-size: 13px;
  line-height: 1.35;
}
/* Corrected sentence spans the full feedback card instead of collapsing into the icon column. */
.punctuation-choice-review > div {
  grid-column: 1 / -1;
  width: 100%;
  padding: 11px 13px;
  border-radius: 15px;
  background: #ffffff;
  color: #17364d;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 850;
  text-align: center;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
}
.punctuation-choice-review .primary-btn {
  grid-column: 1/-1;
  justify-self: center;
  min-width: 180px;
}

/* Finish style for comma activity. */
.tr1-finish-card.finish-comma {
  justify-content: flex-start;
  padding: 20px 18px 18px;
  gap: 10px;
  background: linear-gradient(180deg,#f5fdff 0%,#fffaf1 100%);
  position: relative;
  overflow: hidden;
}
.tr1-finish-card.finish-comma::before,
.tr1-finish-card.finish-comma::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  filter: blur(8px);
  opacity: .22;
  pointer-events: none;
}
.tr1-finish-card.finish-comma::before {
  top: -42px;
  left: -36px;
  background: radial-gradient(circle,#82e5f7 0%,rgba(130,229,247,0) 70%);
}
.tr1-finish-card.finish-comma::after {
  right: -46px;
  bottom: 78px;
  background: radial-gradient(circle,#ffd78b 0%,rgba(255,215,139,0) 72%);
}
.tr1-finish-card.finish-comma>* {
  position: relative;
  z-index: 1;
}
.tr1-finish-card.finish-comma h1 {
  margin: 0;
  color: #17304c;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -.02em;
}
.tr1-finish-card.finish-comma .finish-message {
  max-width: 305px;
  color: #5a6d83;
  font-size: 14px;
  line-height: 1.42;
  font-weight: 820;
}
.tr1-finish-card.finish-comma .score-box {
  min-width: 170px;
  padding: 14px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg,#ffffff,#f1fbff) !important;
  border: 2px solid #cfe9f4 !important;
  box-shadow: 0 8px 18px rgba(23,48,76,.07) !important;
  color: #17304c;
  font-size: 17px;
}
.tr1-finish-card.finish-comma .final-rozet-card {
  width: min(320px,100%);
  padding: 18px 16px 16px;
  border-radius: 26px;
  background: linear-gradient(135deg,#ffffff 0%,#f6fdff 52%,#fffaf1 100%) !important;
  border: 2px solid #d7ebf4 !important;
  box-shadow: 0 16px 28px rgba(23,48,76,.09) !important;
}
.tr1-finish-card.finish-comma .final-rozet-card::before,
.tr1-finish-card.finish-comma .final-rozet-card::after,
.tr1-finish-card.finish-comma .final-rozet-glow {
  display: none !important;
  content: none !important;
}
.tr1-finish-card.finish-comma .final-rozet-medal {
  width: 92px !important;
  height: 92px !important;
  margin: 0 auto 10px !important;
  border: 6px solid #eefaff !important;
  background: radial-gradient(circle at 35% 28%,#ffffff,#9feeff 34%,var(--badge,#14a8c8) 66%,#0f7ea2 100%) !important;
  box-shadow: 0 14px 26px rgba(20,168,200,.22),inset 0 0 0 3px rgba(255,255,255,.34) !important;
  font-size: 42px !important;
}
.tr1-finish-card.finish-comma .final-rozet-kicker {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 6px 12px !important;
  border-radius: 999px !important;
  background: #eefbff !important;
  border: 1px solid #cce8f2 !important;
  color: #33677f !important;
  font-size: 12px !important;
  font-weight: 950 !important;
}
.tr1-finish-card.finish-comma .final-rozet-title {
  margin-top: 10px !important;
  color: #17304c !important;
  font-size: 21px !important;
  line-height: 1.12 !important;
  font-weight: 950 !important;
}
.tr1-finish-card.finish-comma .final-rozet-text {
  margin: 6px auto 0 !important;
  max-width: 240px;
  color: #5f7288 !important;
  font-size: 13px !important;
  line-height: 1.36 !important;
  font-weight: 850 !important;
}
.tr1-finish-card.finish-comma .result-actions {
  width: min(300px,100%);
  margin-top: 2px;
}
.tr1-finish-card.finish-comma .result-actions .primary-btn,
.tr1-finish-card.finish-comma .result-actions .ghost-btn {
  width: 100%;
  min-height: 48px;
  border-radius: 18px;
}
.tr1-finish-card.finish-comma .result-actions .primary-btn {
  background: linear-gradient(180deg,#15b0cf,#0f96be);
  box-shadow: 0 10px 20px rgba(20,168,200,.20);
}
.tr1-finish-card.finish-comma .result-actions .ghost-btn {
  background: #edf5fb;
  color: #17304c;
  box-shadow: none;
}
@media (max-width:390px) {
  .comma-game-card,
  .punctuation-choice-card {
    gap: 9px;
    padding: 12px;
  }
  .comma-game-card .tr1-guide-row,
  .punctuation-choice-card .tr1-guide-row {
    grid-template-columns: minmax(0,1fr) 64px;
    gap: 7px;
    min-height: 84px;
  }
  .comma-game-card .tr1-guide-row .tr1-language-helper,
  .punctuation-choice-card .tr1-guide-row .tr1-language-helper {
    min-height: 72px;
    padding: 9px 10px;
    font-size: 10.4px;
    line-height: 1.27;
  }
  .comma-game-card .tr1-guide-row .tr1-guide-mascot,
  .punctuation-choice-card .tr1-guide-row .tr1-guide-mascot {
    width: 64px;
    height: 76px;
  }
  .comma-sentence-board {
    min-height: 144px;
    padding: 18px 12px;
    font-size: 17px;
    gap: 5px 0;
  }
  .comma-complete-sentence {
    font-size: 22px;
    line-height: 1.55;
    padding: 4px 2px;
  }
  .comma-gap {
    width: 24px;
    height: 36px;
    margin: 0 1px;
  }
  .comma-gap span {
    font-size: 28px;
  }
  .comma-toolbox {
    padding: 12px;
  }
  .comma-drag-token {
    width: 72px;
    height: 56px;
  }
  .comma-drag-token span {
    font-size: 49px;
  }
  .punctuation-choice-sentence {
    min-height: 134px;
    padding: 17px 14px;
    font-size: 17px;
  }
  .punctuation-choice-actions {
    gap: 10px;
  }
  .punctuation-choice-btn {
    min-height: 96px;
    gap: 8px;
    padding: 9px;
  }
  .punctuation-choice-btn span {
    width: 44px;
    height: 44px;
    font-size: 36px;
  }
  .punctuation-choice-btn strong {
    font-size: 15px;
  }
  .tr1-finish-card.finish-comma {
    padding: 18px 14px 16px;
    gap: 9px;
  }
  .tr1-finish-card.finish-comma h1 {
    font-size: 29px;
  }
  .tr1-finish-card.finish-comma .score-box {
    font-size: 16px;
    padding: 12px 16px;
  }
  .tr1-finish-card.finish-comma .final-rozet-card {
    padding: 16px 14px 14px;
  }
  .tr1-finish-card.finish-comma .final-rozet-title {
    font-size: 18px !important;
  }
  .tr1-finish-card.finish-comma .final-rozet-text {
    font-size: 12.5px !important;
  }
}
@media (max-height:720px) {
  .comma-game-card .tr1-guide-row,
  .punctuation-choice-card .tr1-guide-row {
    grid-template-columns: minmax(0,1fr) 64px;
    gap: 7px;
    min-height: 76px;
  }
  .comma-game-card .tr1-guide-row .tr1-language-helper,
  .punctuation-choice-card .tr1-guide-row .tr1-language-helper {
    min-height: 66px;
    padding: 8px 9px;
    font-size: 10px;
    line-height: 1.25;
  }
  .comma-game-card .tr1-guide-row .tr1-guide-mascot,
  .punctuation-choice-card .tr1-guide-row .tr1-guide-mascot {
    width: 60px;
    height: 70px;
  }
  .comma-sentence-board {
    min-height: 112px;
    padding: 13px 10px;
    font-size: 16px;
  }
  .comma-complete-sentence {
    font-size: 20px;
    line-height: 1.5;
    padding: 2px 0;
  }
  .comma-toolbox {
    padding: 8px 10px;
  }
  .comma-drag-token {
    width: 62px;
    height: 48px;
  }
  .comma-drag-token span {
    font-size: 44px;
  }
  .punctuation-choice-sentence {
    min-height: 108px;
    padding: 13px;
    font-size: 16px;
  }
  .punctuation-choice-btn {
    min-height: 78px;
  }
  .tr1-finish-card.finish-comma {
    padding: 16px 14px 14px;
    gap: 8px;
  }
  .tr1-finish-card.finish-comma h1 {
    font-size: 28px;
  }
  .tr1-finish-card.finish-comma .score-box {
    padding: 11px 14px;
    font-size: 15px;
  }
  .tr1-finish-card.finish-comma .final-rozet-medal {
    width: 78px !important;
    height: 78px !important;
    font-size: 34px !important;
  }
}

/* Question-mark sentence selection activity. */
.question-mark-select-screen .counter,
.question-mark-select-screen .progress {
  display: none;
}
.question-mark-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}
.question-mark-card .tr1-guide-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) 70px;
  gap: 8px;
  align-items: center;
  min-height: 76px;
  padding: 0;
}
.question-mark-card .tr1-guide-row .tr1-language-helper {
  width: 100%;
  min-height: 66px;
  padding: 9px 10px;
  font-size: 10.8px;
  line-height: 1.25;
}
.question-mark-card .tr1-guide-row .tr1-guide-mascot {
  position: relative !important;
  inset: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: 70px;
  height: 82px;
  align-self: end;
}
.question-mark-selection {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 10px;
  border-radius: 13px;
  background: #eef9ff;
  border: 1px solid rgba(20,168,216,.18);
  color: #41627d;
  font-size: 10.5px;
  font-weight: 900;
}
.question-mark-selection strong {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: #14a8d8;
  color: #fff;
  font-size: 12px;
}
.question-mark-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
}
.question-mark-item {
  width: 100%;
  min-height: 42px;
  padding: 5px 7px;
  border-radius: 14px;
  background: #fff;
  border: 2px solid #dce9f1;
  box-shadow: 0 5px 12px rgba(23,48,76,.055);
  display: grid;
  grid-template-columns: 27px minmax(0,1fr) 32px;
  align-items: center;
  gap: 7px;
  text-align: left;
  transition: transform .14s ease,border-color .14s ease,background .14s ease,box-shadow .14s ease;
}
.question-mark-item:active {
  transform: scale(.992);
}
.question-mark-number {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 9px;
  background: #edf4f8;
  color: #587286;
  font-size: 10.5px;
  font-weight: 950;
}
.question-mark-text {
  min-width: 0;
  color: #213e55;
  font-size: 11.4px;
  line-height: 1.12;
  font-weight: 850;
}
.question-mark-toggle {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #edf5fa;
  border: 2px solid #d6e5ee;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  font-weight: 950;
  transition: transform .14s ease,background .14s ease,border-color .14s ease;
}
.question-mark-item.selected {
  border-color: #4eb9df;
  background: #f0fbff;
  box-shadow: 0 0 0 3px rgba(20,168,216,.09),0 6px 14px rgba(23,48,76,.06);
}
.question-mark-item.selected .question-mark-number {
  background: #dff5fd;
  color: #167ca2;
}
.question-mark-item.selected .question-mark-toggle {
  background: #14a8d8;
  border-color: #14a8d8;
  transform: scale(1.04);
}
.question-mark-item.bad {
  border-color: #ef6f75;
  background: #fff1f2;
  animation: shake .28s ease;
}
.question-mark-item.bad .question-mark-toggle {
  background: #ef5d68;
  border-color: #ef5d68;
}
.question-mark-item.good {
  border-color: #45bb78;
  background: #effbf4;
  box-shadow: 0 0 0 3px rgba(69,187,120,.10),0 6px 14px rgba(23,48,76,.06);
}
.question-mark-item.good .question-mark-number {
  background: #dcf6e7;
  color: #248553;
}
.question-mark-item.good .question-mark-toggle {
  background: #45bb78;
  border-color: #45bb78;
  transform: scale(1.04);
}
.question-mark-check {
  width: 100%;
  min-height: 46px;
  margin-top: 1px;
  border-radius: 16px;
  background: linear-gradient(180deg,#19b6e4,#1097c7);
  box-shadow: 0 9px 18px rgba(20,168,216,.19);
}
.question-mark-check.ready-next {
  background: linear-gradient(180deg,#4fca85,#32a96b);
  box-shadow: 0 9px 18px rgba(50,169,107,.20);
}
@media (max-width:390px) {
  .question-mark-card {
    gap: 6px;
  }
  .question-mark-card .tr1-guide-row {
    grid-template-columns: minmax(0,1fr) 62px;
    gap: 6px;
    min-height: 68px;
  }
  .question-mark-card .tr1-guide-row .tr1-language-helper {
    min-height: 60px;
    padding: 8px 9px;
    font-size: 10.1px;
  }
  .question-mark-card .tr1-guide-row .tr1-guide-mascot {
    width: 62px;
    height: 72px;
  }
  .question-mark-list {
    gap: 4px;
  }
  .question-mark-item {
    min-height: 40px;
    padding: 4px 6px;
    grid-template-columns: 25px minmax(0,1fr) 30px;
    gap: 6px;
  }
  .question-mark-number {
    width: 23px;
    height: 23px;
    font-size: 10px;
  }
  .question-mark-text {
    font-size: 10.9px;
  }
  .question-mark-toggle {
    width: 28px;
    height: 28px;
    font-size: 20px;
  }
  .question-mark-check {
    min-height: 44px;
  }
}
@media (max-height:720px) {
  .question-mark-card {
    gap: 4px;
  }
  .question-mark-card .tr1-guide-row {
    grid-template-columns: minmax(0,1fr) 48px;
    gap: 5px;
    min-height: 54px;
  }
  .question-mark-card .tr1-guide-row .tr1-language-helper {
    min-height: 48px;
    padding: 6px 7px;
    font-size: 9.4px;
    line-height: 1.16;
  }
  .question-mark-card .tr1-guide-row .tr1-guide-mascot {
    width: 48px;
    height: 55px;
  }
  .question-mark-selection {
    padding: 3px 8px;
    font-size: 10px;
  }
  .question-mark-selection strong {
    height: 22px;
    font-size: 11px;
  }
  .question-mark-list {
    gap: 2px;
  }
  .question-mark-item {
    min-height: 31px;
    padding: 2px 5px;
    grid-template-columns: 23px minmax(0,1fr) 26px;
    gap: 5px;
  }
  .question-mark-number {
    width: 21px;
    height: 21px;
    font-size: 9.5px;
  }
  .question-mark-text {
    font-size: 9.7px;
    line-height: 1.05;
  }
  .question-mark-toggle {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    font-size: 18px;
  }
  .question-mark-check {
    min-height: 36px;
  }
}

/* Exclamation-mark activity: one correct sentence per group. */
.exclamation-group-card,
.question-exclamation-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: 28px;
  background: linear-gradient(180deg,#fffefd 0%,#fff9ef 48%,#f7fcff 100%);
  border: 2px solid #f1dfbd;
  box-shadow: 0 14px 28px rgba(90,65,34,.08);
}
.exclamation-group-card .tr1-guide-row,
.question-exclamation-card .tr1-guide-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) 72px;
  gap: 9px;
  align-items: center;
  min-height: 82px;
  padding: 0;
}
.exclamation-group-card .tr1-guide-row .tr1-language-helper,
.question-exclamation-card .tr1-guide-row .tr1-language-helper {
  width: 100%;
  min-height: 72px;
  padding: 10px 12px;
  background: linear-gradient(180deg,#fff8dc,#fff3c9);
  border-color: #f3d899;
  color: #674731;
}
.exclamation-group-card .tr1-guide-row .tr1-guide-mascot,
.question-exclamation-card .tr1-guide-row .tr1-guide-mascot {
  position: relative !important;
  inset: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: 72px;
  height: 84px;
  align-self: end;
}
.exclamation-group-kicker,
.question-exclamation-kicker {
  align-self: flex-start;
  padding: 7px 13px;
  border-radius: 999px;
  background: #fff3d8;
  border: 1px solid #f2cf83;
  color: #9a641f;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .035em;
}
.exclamation-group-options {
  display: grid;
  gap: 9px;
}
.exclamation-group-option {
  width: 100%;
  min-height: 74px;
  padding: 10px 11px;
  border-radius: 20px;
  background: linear-gradient(180deg,#fff,#fbfdff);
  border: 2px solid #dce8ef;
  box-shadow: 0 7px 16px rgba(23,48,76,.06);
  display: grid;
  grid-template-columns: 34px minmax(0,1fr) 38px;
  gap: 9px;
  align-items: center;
  text-align: left;
  color: #18384f;
  transition: transform .16s ease,border-color .16s ease,background .16s ease,box-shadow .16s ease;
}
.exclamation-group-option:active {
  transform: scale(.992);
}
.exclamation-option-number {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 11px;
  background: #f1f6f9;
  color: #647f91;
  font-size: 12px;
  font-weight: 950;
}
.exclamation-option-text {
  font-size: 14px;
  line-height: 1.32;
  font-weight: 900;
}
.exclamation-option-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 13px;
  background: #fff5df;
  border: 2px dashed #f2d095;
  color: #d7a95e;
  font-family: Georgia,serif;
  font-size: 24px;
  font-weight: 950;
}
.exclamation-group-option.good {
  border-color: #61c693;
  background: linear-gradient(180deg,#f0fbf5,#fbfffd);
  box-shadow: 0 0 0 3px rgba(63,183,120,.09),0 8px 18px rgba(28,112,73,.08);
}
.exclamation-group-option.good .exclamation-option-number {
  background: #dff6e9;
  color: #278857;
}
.exclamation-group-option.good .exclamation-option-mark {
  background: #39b979;
  border-color: #39b979;
  color: #fff;
  animation: exclamationMarkPop .7s ease-in-out 2;
}
.exclamation-group-option.bad {
  border-color: #ea6d73;
  background: #fff1f2;
  animation: shake .28s ease;
}
.exclamation-group-review,
.question-exclamation-review {
  display: grid;
  grid-template-columns: 34px minmax(0,1fr);
  gap: 10px;
  align-items: center;
  padding: 13px;
  border-radius: 21px;
  background: linear-gradient(180deg,#effaf4,#fbfffd);
  border: 2px solid #91d5b1;
}
.exclamation-group-review>span,
.question-exclamation-review>span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #31b477;
  color: #fff;
  font-weight: 950;
}
.exclamation-group-review strong,
.question-exclamation-review strong {
  color: #285a44;
  font-size: 12.5px;
  line-height: 1.35;
}
/* Keep the corrected question/exclamation sentence readable across the full feedback card. */
.question-exclamation-review > div {
  grid-column: 1 / -1;
  width: 100%;
  padding: 11px 13px;
  border-radius: 15px;
  background: #ffffff;
  color: #17364d;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 850;
  text-align: center;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
}
.exclamation-group-review .primary-btn,
.question-exclamation-review .primary-btn {
  grid-column: 1/-1;
  justify-self: center;
  min-width: 190px;
}

/* Exclamation-mark activity: question mark versus exclamation mark. */
.question-exclamation-sentence {
  display: grid;
  place-items: center;
  min-height: 154px;
  padding: 20px 17px;
  border-radius: 25px;
  background: linear-gradient(180deg,#fff,#f7fbff);
  border: 2px solid #dcebf3;
  box-shadow: 0 11px 24px rgba(23,48,76,.07);
  text-align: center;
  color: #17364d;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 950;
}
.question-exclamation-prompt {
  align-self: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff3dc;
  color: #8b642e;
  font-size: 12.5px;
  font-weight: 900;
  text-align: center;
}
.question-exclamation-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.question-exclamation-btn {
  min-height: 112px;
  padding: 11px;
  border-radius: 23px;
  background: linear-gradient(180deg,#fff,#fbfdff);
  border: 2px solid #dbe7ef;
  box-shadow: 0 10px 22px rgba(23,48,76,.075);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #17364d;
  transition: transform .16s ease,border-color .16s ease,background .16s ease,box-shadow .16s ease;
}
.question-exclamation-btn span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  font-family: Georgia,serif;
  font-size: 42px;
  line-height: 1;
  font-weight: 950;
}
.question-exclamation-btn strong {
  font-size: 15px;
  font-weight: 950;
}
.question-exclamation-btn.question span {
  background: #e2f6ff;
  color: #129ac8;
}
.question-exclamation-btn.exclamation span {
  background: #fff0d9;
  color: #ed8b26;
}
.question-exclamation-btn:hover {
  transform: translateY(-2px);
}
.question-exclamation-btn.good {
  border-color: #5dbd8b;
  background: #effaf4;
  animation: pop .24s ease;
}
.question-exclamation-btn.bad {
  border-color: #e46069;
  background: #fff0f1;
  animation: shake .28s ease;
}
.question-exclamation-inserted {
  display: inline-block;
  color: #2daf72;
  font-size: 1em;
  font-weight: 1000;
  line-height: inherit;
  transform-origin: 50% 65%;
  animation: questionExclamationPulse .68s ease-in-out 3;
}
@keyframes exclamationMarkPop {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(49,180,119,0);
  }
  48% {
    transform: scale(1.22);
    box-shadow: 0 0 0 6px rgba(49,180,119,.12);
  }
}
@keyframes questionExclamationPulse {
  0%,
  100% {
    transform: scale(1);
    text-shadow: 0 0 0 rgba(45,175,114,0);
  }
  45% {
    transform: scale(1.45);
    text-shadow: 0 0 9px rgba(45,175,114,.38);
  }
}

/* Finish style for the exclamation-mark activity. */
.tr1-finish-card.finish-exclamation {
  background: linear-gradient(180deg,#fffaf0 0%,#f6fcff 100%);
}
.tr1-finish-card.finish-exclamation .score-box {
  background: linear-gradient(180deg,#fff,#fff7e8) !important;
  border-color: #f2d7a4 !important;
}
.tr1-finish-card.finish-exclamation .final-rozet-card {
  background: linear-gradient(135deg,#fff 0%,#fff8ea 52%,#f5fcff 100%) !important;
  border-color: #f0dfbe !important;
}
@media (max-width:390px) {
  .exclamation-group-card,
  .question-exclamation-card {
    gap: 9px;
    padding: 12px;
  }
  .exclamation-group-card .tr1-guide-row,
  .question-exclamation-card .tr1-guide-row {
    grid-template-columns: minmax(0,1fr) 62px;
    gap: 7px;
    min-height: 70px;
  }
  .exclamation-group-card .tr1-guide-row .tr1-language-helper,
  .question-exclamation-card .tr1-guide-row .tr1-language-helper {
    min-height: 62px;
    padding: 8px 9px;
    font-size: 10px;
    line-height: 1.24;
  }
  .exclamation-group-card .tr1-guide-row .tr1-guide-mascot,
  .question-exclamation-card .tr1-guide-row .tr1-guide-mascot {
    width: 62px;
    height: 73px;
  }
  .exclamation-group-option {
    min-height: 66px;
    padding: 8px;
    grid-template-columns: 30px minmax(0,1fr) 34px;
    gap: 7px;
  }
  .exclamation-option-number {
    width: 28px;
    height: 28px;
  }
  .exclamation-option-text {
    font-size: 12.3px;
    line-height: 1.25;
  }
  .exclamation-option-mark {
    width: 32px;
    height: 32px;
    font-size: 21px;
  }
  .question-exclamation-sentence {
    min-height: 132px;
    padding: 17px 13px;
    font-size: 17px;
  }
  .question-exclamation-actions {
    gap: 9px;
  }
  .question-exclamation-btn {
    min-height: 96px;
    padding: 9px;
  }
  .question-exclamation-btn span {
    width: 46px;
    height: 46px;
    font-size: 36px;
  }
  .question-exclamation-btn strong {
    font-size: 13px;
  }
}
@media (max-height:720px) {
  .exclamation-group-card,
  .question-exclamation-card {
    gap: 7px;
    padding: 10px;
  }
  .exclamation-group-card .tr1-guide-row,
  .question-exclamation-card .tr1-guide-row {
    grid-template-columns: minmax(0,1fr) 52px;
    gap: 6px;
    min-height: 58px;
  }
  .exclamation-group-card .tr1-guide-row .tr1-language-helper,
  .question-exclamation-card .tr1-guide-row .tr1-language-helper {
    min-height: 52px;
    padding: 7px 8px;
    font-size: 9.5px;
    line-height: 1.18;
  }
  .exclamation-group-card .tr1-guide-row .tr1-guide-mascot,
  .question-exclamation-card .tr1-guide-row .tr1-guide-mascot {
    width: 52px;
    height: 60px;
  }
  .exclamation-group-kicker,
  .question-exclamation-kicker {
    padding: 5px 10px;
    font-size: 10px;
  }
  .exclamation-group-options {
    gap: 6px;
  }
  .exclamation-group-option {
    min-height: 54px;
    padding: 6px 7px;
    grid-template-columns: 27px minmax(0,1fr) 30px;
    gap: 6px;
  }
  .exclamation-option-number {
    width: 25px;
    height: 25px;
    font-size: 10.5px;
  }
  .exclamation-option-text {
    font-size: 11px;
    line-height: 1.18;
  }
  .exclamation-option-mark {
    width: 28px;
    height: 28px;
    font-size: 19px;
  }
  .question-exclamation-sentence {
    min-height: 104px;
    padding: 12px;
    font-size: 16px;
  }
  .question-exclamation-prompt {
    padding: 5px 11px;
    font-size: 11px;
  }
  .question-exclamation-btn {
    min-height: 78px;
    gap: 4px;
  }
  .question-exclamation-btn span {
    width: 38px;
    height: 38px;
    font-size: 30px;
  }
  .question-exclamation-btn strong {
    font-size: 12px;
  }
  .exclamation-group-review,
  .question-exclamation-review {
    padding: 9px;
  }
}

/* FB2 movement outcomes: compact drag-sort presentation. */
.movement-outcome-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fcff 100%);
  border: 2px solid #c8e9fb;
  border-radius: 28px;
  box-shadow: 0 16px 34px rgba(23, 48, 76, 0.08);
  padding: 16px;
}
.movement-outcome-card .movement-outcome-hero {
  display: flex;
  justify-content: center;
  padding: 8px 6px 12px;
}
.movement-outcome-card .movement-outcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #e9f8ff 0%, #dff4ff 100%);
  border: 2px solid #bfe6fb;
  color: #17304c;
  font-weight: 900;
  font-size: 16px;
}
.movement-outcome-card .sort-current-wrap.compact {
  position: relative;
  margin-top: 4px;
}
.movement-outcome-card .sort-current-wrap.compact::after {
  content: '';
  position: absolute;
  inset: 22px 18px auto 18px;
  height: calc(100% - 22px);
  border-radius: 28px;
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.12), transparent 65%);
  pointer-events: none;
}
.movement-outcome-card .sort-current-kicker {
  text-align: center;
  margin-bottom: 8px;
  color: #7c3aed;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .3px;
}
.movement-outcome-card .sort-current {
  padding: 10px;
  border: 2px dashed #d7c3ff;
  border-radius: 24px;
  background: linear-gradient(180deg, #fdfbff 0%, #fbf8ff 100%);
}
.movement-outcome-card .sort-drag-card {
  min-height: 118px;
  border-radius: 22px;
  background: #ffffff;
}
.movement-outcome-card .sort-drag-card.featured {
  position: relative;
  overflow: visible;
  border: 3px solid #d6b6ff;
  box-shadow: 0 14px 30px rgba(123, 97, 255, 0.14);
  animation: movementCardPulse 1.8s ease-in-out infinite;
}
.movement-outcome-card .sort-card-tag {
  position: absolute;
  top: -12px;
  left: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #8b5cf6 0%, #7c3aed 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .35px;
  box-shadow: 0 8px 18px rgba(124, 58, 237, 0.28);
}
.movement-outcome-card .sort-card-icon {
  width: 54px;
  height: 54px;
  border: 2px solid #ffe0a1;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff8e9 0%, #fff1cf 100%);
  display: grid;
  place-items: center;
  font-size: 28px;
}
.movement-outcome-card .sort-card-text,
.movement-outcome-card .sort-drag-card.featured .sort-card-text {
  color: #17304c;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 900;
}
.movement-outcome-card .sort-bins {
  margin-top: 14px;
  gap: 12px;
}
.movement-outcome-card .sort-bin {
  position: relative;
  min-height: 152px;
  padding: 16px 14px;
  border-width: 3px;
  border-radius: 24px;
  box-shadow: none;
  gap: 8px;
  justify-content: center;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.movement-outcome-card .sort-bin::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(23, 48, 76, 0.10);
  border-radius: 18px;
  pointer-events: none;
}
.movement-outcome-card .sort-bin.olumlu {
  background: linear-gradient(180deg, #f2fff7 0%, #ebfff3 100%);
  border-color: #9de3ba;
}
.movement-outcome-card .sort-bin.olumsuz {
  background: linear-gradient(180deg, #fff8f3 0%, #fff3eb 100%);
  border-color: #f2c99b;
}
.movement-outcome-card .sort-bin span {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 8px 16px rgba(23,48,76,.08);
  display: grid;
  place-items: center;
  font-size: 30px;
}
.movement-outcome-card .sort-bin strong {
  font-size: 17px;
}
.movement-outcome-card .sort-bin small {
  color: #45607c;
  font-size: 13px;
  line-height: 1.35;
}
.movement-outcome-card .sort-bin.drop-hover,
.movement-outcome-card .sort-bin:active {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 14px 26px rgba(23,48,76,.10);
}
@keyframes movementCardPulse {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 14px 30px rgba(123, 97, 255, 0.14);
  }
  50% {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 18px 36px rgba(123, 97, 255, 0.20);
  }
}
@media (max-width: 720px) {
  .movement-outcome-card {
    padding: 14px;
  }
  .movement-outcome-card .sort-current-wrap.compact::after {
    inset: 20px 10px auto 10px;
  }
  .movement-outcome-card .sort-drag-card {
    min-height: 104px;
  }
  .movement-outcome-card .sort-card-text,
  .movement-outcome-card .sort-drag-card.featured .sort-card-text {
    font-size: 17px;
  }
  .movement-outcome-card .sort-bin {
    min-height: 138px;
    border-radius: 22px;
  }
  .movement-outcome-card .sort-bin strong {
    font-size: 16px;
  }
}

/* FB2 force activity: observation-choice layout for game 3. */
.force-observation-card .mc-card {
  padding: 18px 16px;
  font-size: 18px;
  line-height: 1.35;
}
.force-observation-card .mc-actions {
  grid-template-columns: 1fr;
  gap: 10px;
}
.force-observation-card .mc-btn {
  min-height: 58px;
  text-align: left;
  padding: 12px 14px;
  line-height: 1.35;
}
@media (max-width: 720px) {
  .force-observation-card .mc-btn {
    font-size: 14px;
  }
}

/* FB2 force activity: dedicated push/pull layout. */
.force-simple-sort {
  width: 100%;
  padding: 14px;
  border: 2px solid #c9e8fa;
  border-radius: 28px;
  background: linear-gradient(180deg, #f8fcff 0%, #ffffff 100%);
  box-shadow: 0 14px 28px rgba(23,48,76,.08);
}
.force-current-shell {
  width: 100%;
  padding: 8px;
  margin-bottom: 14px;
  border: 2px dashed #d5dff8;
  border-radius: 24px;
  background: #fcfeff;
}
.force-current-shell.done {
  border-color: rgba(24,183,119,.28);
  background: #f4fff8;
}
.force-current-card.sort-drag-card {
  width: 100%;
  min-height: 126px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #b8def5;
  border-radius: 21px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(23,48,76,.09);
}
.force-current-text {
  width: 100%;
  min-width: 0;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 900;
  color: #17304c;
  text-align: center;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: normal;
  hyphens: none;
}
.force-bin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.force-bin.sort-bin {
  min-height: 168px;
  padding: 12px 8px 14px;
  gap: 9px;
  border-width: 3px;
  border-radius: 24px;
  box-shadow: 0 9px 20px rgba(23,48,76,.08);
  cursor: pointer;
}
.force-bin.itme {
  background: linear-gradient(180deg,#effcf5 0%,#fbfffd 100%);
  border-color: #98e3bd;
}
.force-bin.cekme {
  background: linear-gradient(180deg,#fff5eb 0%,#fffdf9 100%);
  border-color: #efc89f;
}
.force-bin-image-wrap {
  width: 122px !important;
  height: 84px !important;
  max-width: 100%;
  display: grid !important;
  place-items: center;
  padding: 3px;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 8px 18px rgba(23,48,76,.09) !important;
  overflow: hidden;
}
.force-bin-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.force-bin strong {
  font-size: 20px !important;
  line-height: 1.2;
}
.force-bin:hover,
.force-bin:focus-visible,
.force-bin.drop-hover,
.force-bin:active {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 13px 25px rgba(23,48,76,.13);
}
@media (max-width: 520px) {
  .force-simple-sort {
    padding: 12px;
  }
  .force-current-card.sort-drag-card {
    min-height: 118px;
    padding: 16px 16px;
  }
  .force-current-text {
    font-size: 18px;
    line-height: 1.38;
  }
  .force-bin.sort-bin {
    min-height: 160px;
    padding: 11px 6px 13px;
  }
  .force-bin-image-wrap {
    width: 116px !important;
    height: 80px !important;
  }
  .force-bin strong {
    font-size: 18px !important;
  }
}


/* FB2 force activity: cleaner true-false layout for game 2 */
.force-truefalse-card {
  padding: 12px;
}
.force-truefalse-card .mc-card {
  margin-bottom: 14px;
  padding: 22px 18px;
  border: 2px solid #d9ebf8;
  border-radius: 24px;
  background: linear-gradient(180deg,#ffffff 0%,#f8fcff 100%);
  box-shadow: 0 10px 24px rgba(23,48,76,.08);
  font-size: 24px;
  line-height: 1.4;
}
.force-truefalse-card .mc-actions {
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.force-truefalse-card .mc-btn {
  min-height: 74px;
  padding: 14px 16px;
  border-width: 2px;
  border-radius: 22px;
  font-size: 20px;
  box-shadow: 0 6px 0 rgba(23,48,76,.08), 0 12px 24px rgba(23,48,76,.10);
}
.force-truefalse-card .mc-btn .mc-btn-label {
  font-size: 20px;
}
.force-truefalse-card .mc-btn.is-true {
  border-color: rgba(14,165,233,.45);
  background: linear-gradient(180deg,#ffffff 0%,#e8f6ff 100%);
  color: #0d5e90;
}
.force-truefalse-card .mc-btn.is-false {
  border-color: rgba(239,68,68,.35);
  background: linear-gradient(180deg,#ffffff 0%,#fff0f0 100%);
  color: #a22d2d;
}
.force-truefalse-card .mc-btn.is-true:hover {
  border-color: rgba(14,165,233,.6);
  box-shadow: 0 8px 0 rgba(14,165,233,.12), 0 14px 26px rgba(23,48,76,.12);
}
.force-truefalse-card .mc-btn.is-false:hover {
  border-color: rgba(239,68,68,.52);
  box-shadow: 0 8px 0 rgba(239,68,68,.12), 0 14px 26px rgba(23,48,76,.12);
}
.force-truefalse-card .mc-btn[aria-pressed="true"].is-true,
.force-truefalse-card .mc-btn.is-correct.is-true {
  border-color: rgba(14,165,233,.75);
  background: linear-gradient(180deg,#ecf9ff 0%,#d9f2ff 100%);
  box-shadow: 0 3px 0 rgba(14,165,233,.18), 0 10px 20px rgba(14,165,233,.18);
}
.force-truefalse-card .mc-btn[aria-pressed="true"].is-false,
.force-truefalse-card .mc-btn.is-correct.is-false {
  border-color: rgba(239,68,68,.62);
  background: linear-gradient(180deg,#fff6f6 0%,#ffe6e6 100%);
  box-shadow: 0 3px 0 rgba(239,68,68,.16), 0 10px 20px rgba(239,68,68,.16);
}
.force-truefalse-card .mc-compact-result {
  margin-top: 14px;
  min-height: 56px;
  padding: 12px 14px;
  border-radius: 18px;
  background: #f4fff8;
  border: 2px solid rgba(24,183,119,.18);
}
.force-truefalse-card .mc-compact-result.bad {
  background: #fff6f6;
  border-color: rgba(239,68,68,.16);
}
.force-truefalse-card .mc-next-btn {
  min-width: 170px;
}
@media (max-width: 720px) {
  .force-truefalse-card .mc-card {
    padding: 18px 16px;
    font-size: 22px;
  }
  .force-truefalse-card .mc-btn,
  .force-truefalse-card .mc-btn .mc-btn-label {
    font-size: 18px;
  }
}
@media (max-width: 420px) {
  .force-truefalse-card .mc-card {
    font-size: 20px;
  }
  .force-truefalse-card .mc-actions {
    gap: 12px;
  }
  .force-truefalse-card .mc-btn {
    min-height: 70px;
    padding: 12px 10px;
  }
}

/* FB2 electric tools: simple two-bin sort with visual item cards. */
.electric-simple-sort {
  background: linear-gradient(180deg,#ffffff 0%,#f8fcff 100%);
  border: 2px solid #c9e8fa;
  border-radius: 28px;
  padding: 16px;
  box-shadow: 0 14px 28px rgba(23,48,76,.08);
}
.electric-sort-current-shell {
  width: 100%;
  margin-bottom: 16px;
}
.electric-sort-current-shell.done {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.electric-sort-current-card {
  width: 100%;
  min-height: 248px;
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 3px solid #b9dff6;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(23,48,76,.10);
}
.electric-sort-current-image-wrap {
  width: min(170px,58vw);
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.electric-sort-current-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.electric-sort-current-text {
  width: 100%;
  font-size: 23px;
  line-height: 1.2;
  font-weight: 900;
  color: #17304c;
  text-align: center;
  word-break: normal;
  overflow-wrap: break-word;
}
.electric-sort-bin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.electric-sort-bin {
  min-height: 138px;
  padding: 16px 12px;
  border: 3px solid #d8e7f3;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(23,48,76,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.electric-sort-bin.elektrikli {
  background: linear-gradient(180deg,#eefaff 0%,#f9fdff 100%);
  border-color: #91d8f8;
}
.electric-sort-bin.elektriksiz {
  background: linear-gradient(180deg,#fff7ee 0%,#fffdf9 100%);
  border-color: #f0c69b;
}
.electric-sort-bin strong {
  font-size: 20px;
  line-height: 1.25;
  color: #17304c;
}
.electric-sort-bin.drop-hover,
.electric-sort-bin:hover,
.electric-sort-bin:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(23,48,76,.12);
  outline: none;
}
@media (max-width: 520px) {
  .electric-simple-sort {
    padding: 12px;
    border-radius: 24px;
  }
  .electric-sort-current-card {
    min-height: 228px;
    padding: 12px 12px 14px;
  }
  .electric-sort-current-image-wrap {
    width: min(154px,52vw);
    border-radius: 20px;
  }
  .electric-sort-current-text {
    font-size: 20px;
  }
  .electric-sort-bin-grid {
    gap: 10px;
  }
  .electric-sort-bin {
    min-height: 128px;
    padding: 12px 8px;
    border-radius: 20px;
  }
  .electric-sort-bin strong {
    font-size: 17px;
  }
}

@media (max-width: 640px) {
  .electric-hotspot-card .help-hotspot-check {
    width: 22px;
    height: 22px;
    font-size: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .electric-hotspot-card .help-hotspot-feedback {
    font-size: 13px;
    padding: 8px 10px;
  }
}


/* --------------------------------------------------------------------------
   Fen Bilimleri 2 - Elektrigin Guvenli Kullanimi
   Scoped presentation for the four electricity-safety games.
   -------------------------------------------------------------------------- */

/* Game 1: binary safety decisions. */
.electric-safety-binary-card {
  padding: 12px;
}
.electric-safety-binary-card .mc-card {
  margin-bottom: 14px;
  padding: 22px 18px;
  border: 2px solid #d7eaf7;
  border-radius: 24px;
  background: linear-gradient(180deg,#ffffff 0%,#f7fcff 100%);
  box-shadow: 0 10px 24px rgba(23,48,76,.08);
  font-size: 23px;
  line-height: 1.4;
}
.electric-safety-binary-card .mc-actions {
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.electric-safety-binary-card .mc-btn {
  min-height: 74px;
  border-width: 2px;
  border-radius: 22px;
  box-shadow: 0 7px 0 rgba(23,48,76,.08),0 13px 24px rgba(23,48,76,.10);
  font-size: 19px;
}
.electric-safety-binary-card .mc-btn:nth-child(1) {
  border-color: rgba(34,197,94,.42);
  background: linear-gradient(180deg,#ffffff 0%,#ecfff3 100%);
  color: #15723b;
}
.electric-safety-binary-card .mc-btn:nth-child(2) {
  border-color: rgba(239,68,68,.38);
  background: linear-gradient(180deg,#ffffff 0%,#fff0f0 100%);
  color: #a52c2c;
}
.electric-safety-binary-card .mc-btn:nth-child(1)[aria-pressed="true"],
.electric-safety-binary-card .mc-btn:nth-child(1).is-correct {
  border-color: rgba(34,197,94,.72);
  background: linear-gradient(180deg,#effff5 0%,#dff9e9 100%);
}
.electric-safety-binary-card .mc-btn:nth-child(2)[aria-pressed="true"],
.electric-safety-binary-card .mc-btn:nth-child(2).is-correct {
  border-color: rgba(239,68,68,.66);
  background: linear-gradient(180deg,#fff7f7 0%,#ffe3e3 100%);
}

/* Game 2: scenario choices with stable A/B/C labels. */
.electric-safety-scenario-card {
  padding: 12px;
}
.electric-safety-scenario-card .mc-card {
  margin-bottom: 14px;
  padding: 20px 18px;
  border: 2px solid #cfe7f7;
  border-radius: 24px;
  background: linear-gradient(180deg,#ffffff 0%,#f4fbff 100%);
  box-shadow: 0 10px 24px rgba(23,48,76,.08);
  color: #17304c;
  font-size: 21px;
  line-height: 1.4;
}
.electric-safety-scenario-card .mc-actions {
  grid-template-columns: 1fr;
  gap: 10px;
  counter-reset: safety-choice;
}
.electric-safety-scenario-card .mc-btn {
  counter-increment: safety-choice;
  position: relative;
  min-height: 64px;
  padding: 12px 16px 12px 62px;
  border-radius: 20px;
  justify-content: flex-start;
  text-align: left;
  line-height: 1.28;
}
.electric-safety-scenario-card .mc-btn::before {
  content: counter(safety-choice, upper-alpha);
  position: absolute;
  top: 50%;
  left: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 1.5px solid #b7def7;
  border-radius: 12px;
  background: #eaf6ff;
  color: #17689d;
  font-weight: 950;
}
.electric-safety-scenario-card .mc-btn.is-correct::before {
  border-color: #9fdfb8;
  background: #e7faef;
  color: #15723b;
}
.electric-safety-scenario-card .mc-btn.is-wrong::before {
  border-color: #efb0b0;
  background: #fff0f0;
  color: #a52c2c;
}
.electric-safety-scenario-card .mc-btn-label {
  text-align: left;
}
.electric-safety-binary-card .mc-compact-result,
.electric-safety-scenario-card .mc-compact-result {
  min-height: 56px;
  margin-top: 14px;
  border-radius: 18px;
}
.electric-safety-binary-card .mc-compact-result.good,
.electric-safety-scenario-card .mc-compact-result.good {
  border-color: #86efac;
  background: linear-gradient(135deg,#effff6,#e8fff2);
  box-shadow: 0 8px 18px rgba(34,197,94,.10);
  animation: electric-feedback-pop .3s ease both;
}
.electric-safety-binary-card .mc-compact-result.bad,
.electric-safety-scenario-card .mc-compact-result.bad {
  border-color: #fecaca;
  background: linear-gradient(135deg,#fff8f8,#fff1f2);
  animation: electric-answer-shake .32s ease;
}

/* Game 3: one sentence at a time with a full blue word bank. */
.electric-safety-fill-card.concept-sentence-paged {
  position: relative;
  overflow: hidden;
  padding: 10px;
  border: 2px solid #8fd7ff;
  background:
    radial-gradient(circle at 92% 8%, rgba(255,220,70,.28), transparent 24%),
    radial-gradient(circle at 8% 92%, rgba(72,201,176,.16), transparent 27%),
    linear-gradient(180deg,#f7fcff 0%,#eef9ff 100%);
  box-shadow: 0 16px 34px rgba(26,101,151,.12);
}
.electric-safety-fill-card.concept-sentence-paged::before,
.electric-safety-fill-card.concept-sentence-paged::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  border: 2px dashed rgba(44,157,221,.12);
  border-radius: 50%;
  pointer-events: none;
}
.electric-safety-fill-card.concept-sentence-paged::before {
  top: -56px;
  right: -42px;
}
.electric-safety-fill-card.concept-sentence-paged::after {
  bottom: -64px;
  left: -46px;
}
.electric-safety-fill-card.concept-sentence-paged .concept-map-head {
  position: relative;
  z-index: 1;
  justify-content: center;
  gap: 9px;
  margin-bottom: 7px;
  padding: 7px 11px;
  border: 0;
  background: transparent;
  color: #075b91;
  font-size: 17px;
}
.electric-safety-fill-card.concept-sentence-paged .concept-map-head span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(180deg,#fff7a8,#ffd84d);
  box-shadow: 0 5px 12px rgba(217,164,0,.22);
  font-size: 21px;
}
.electric-safety-fill-card .concept-sentence-progress {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 520px;
  margin: 1px auto 10px;
}
.electric-safety-fill-card .concept-sentence-stage {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 5px 9px;
  border: 1.5px solid #b8e1f8;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(29,104,149,.07);
  color: #166b9f;
}
.electric-safety-fill-card .concept-sentence-stage strong {
  font-size: 14px;
}
.electric-safety-fill-card .concept-sentence-stage small {
  color: #6d879a;
  font-size: 11px;
  font-weight: 900;
}
.electric-safety-fill-card .concept-sentence-dots {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(10,1fr);
  gap: 4px;
}
.electric-safety-fill-card .concept-sentence-dots i {
  height: 7px;
  border-radius: 999px;
  background: #d9edf8;
  transition: transform .2s ease,background .2s ease;
}
.electric-safety-fill-card .concept-sentence-dots i.done {
  background: #35c985;
}
.electric-safety-fill-card .concept-sentence-dots i.active {
  transform: scaleY(1.45);
  background: #ffc928;
  box-shadow: 0 0 0 2px rgba(255,201,40,.15);
}
.electric-safety-fill-card.concept-sentence-paged .concept-sentence-flow {
  gap: 0;
  padding: 0;
  margin-bottom: 9px;
}
.electric-safety-fill-card.concept-sentence-paged .concept-sentence-row {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 105px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  padding: 18px 15px;
  border: 2px solid #c3e5f8;
  border-radius: 22px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 10px 22px rgba(24,92,135,.08);
  color: #173d5a;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
}
.electric-safety-fill-card.concept-sentence-paged .concept-sentence-blank {
  min-width: 92px;
  min-height: 43px;
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 7px 10px;
  border: 2px dashed #5db9ea;
  border-radius: 12px;
  background: linear-gradient(180deg,#edf9ff,#ffffff);
  box-shadow: inset 0 0 0 3px rgba(105,196,240,.08);
  color: #1680ba;
  font-size: 15px;
  line-height: 1.15;
}
.electric-safety-fill-card .concept-sentence-blank.ready {
  box-shadow: 0 0 0 4px rgba(14,165,233,.10),inset 0 0 0 1px #7dd3fc;
}
.electric-safety-fill-card .concept-blank-bolt {
  font-size: 16px;
  animation: safety-bolt-pulse 1.15s ease-in-out infinite;
}
.electric-safety-fill-card .concept-word-bank-label {
  position: relative;
  z-index: 1;
  margin: 10px 0 7px;
  color: #55758a;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}
.electric-safety-fill-card.concept-sentence-paged .concept-chip-bank {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 7px;
  max-width: 540px;
  max-height: none;
  margin: 0 auto;
  overflow: visible;
}
.electric-safety-fill-card.concept-sentence-paged .concept-chip {
  min-height: 42px;
  padding: 8px 7px;
  border: 2px solid #a9d9f5;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 5px 0 #d7edf9,0 7px 12px rgba(28,91,129,.06);
  color: #0f5f90;
  font-size: 14px;
  font-weight: 950;
  touch-action: manipulation;
  transition: transform .14s ease,box-shadow .14s ease,border-color .14s ease,background .14s ease;
}
.electric-safety-fill-card.concept-sentence-paged .concept-chip:hover:not(:disabled) {
  transform: translateY(-2px);
}
.electric-safety-fill-card.concept-sentence-paged .concept-chip:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #d7edf9;
}
.electric-safety-fill-card.concept-sentence-paged .concept-chip.tap-correct {
  border-color: #34c887;
  background: #eafff4;
  color: #157141;
  animation: electric-answer-pop .4s cubic-bezier(.18,.89,.32,1.28);
}
.electric-safety-fill-card.concept-sentence-paged .concept-chip.tap-wrong {
  border-color: #fb7185;
  background: #fff1f2;
  color: #a33434;
  animation: electric-answer-shake .34s ease;
}

/* Four-game progress indicator. */
.activity-stepper.electric-safety-stepper {
  margin: 8px 0 9px;
  padding: 8px 10px;
  border: 1px solid #bfe7ff;
  border-radius: 15px;
  background: linear-gradient(135deg,#f7fcff,#edf9ff);
  box-shadow: 0 5px 14px rgba(14,116,144,.08);
}
.electric-safety-stepper .activity-stepper-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  color: #075985;
  font-size: 12px;
}
.electric-safety-stepper .activity-stepper-label > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 3px 9px rgba(2,132,199,.15);
  font-size: 17px;
}
.electric-safety-stepper .activity-stepper-label strong {
  font-weight: 900;
}
.electric-safety-stepper .activity-stepper-label small {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 999px;
  background: #dff4ff;
  color: #0369a1;
  font-weight: 900;
}
.electric-safety-stepper .activity-stepper-track {
  width: 100%;
  display: flex;
  align-items: center;
}
.electric-safety-stepper .activity-stepper-track > i {
  flex: 1;
  height: 3px;
  margin: 0 4px;
  border-radius: 999px;
  background: #d7edf8;
}
.electric-safety-stepper .activity-step {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  transform: scale(.92);
  border: 2px solid #c6e5f5;
  border-radius: 50%;
  background: #fff;
  transition: transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
.electric-safety-stepper .activity-step b {
  font-size: 14px;
  line-height: 1;
}
.electric-safety-stepper .activity-step.done {
  border-color: #34c887;
  background: #e9fff5;
}
.electric-safety-stepper .activity-step.active {
  transform: scale(1.06);
  border-color: #0ea5e9;
  background: #e6f7ff;
  box-shadow: 0 0 0 4px rgba(14,165,233,.12);
}

/* Light feedback motion shared by the four safety games. */
.electric-safety-binary-card .mc-card,
.electric-safety-scenario-card .mc-card,
.electric-safety-fill-card,
.electric-hotspot-card {
  animation: electric-card-in .34s cubic-bezier(.2,.8,.2,1) both;
}
.electric-safety-binary-card .mc-btn,
.electric-safety-scenario-card .mc-btn,
.electric-safety-fill-card .concept-chip,
.electric-hotspot-card .help-hotspot-point {
  will-change: transform;
}
.electric-safety-binary-card .mc-btn:active,
.electric-safety-scenario-card .mc-btn:active {
  transform: scale(.97);
}
.electric-safety-binary-card .mc-btn.is-correct,
.electric-safety-scenario-card .mc-btn.is-correct {
  animation: electric-answer-pop .42s cubic-bezier(.18,.89,.32,1.28);
}
.electric-safety-binary-card .mc-btn.is-wrong,
.electric-safety-scenario-card .mc-btn.is-wrong {
  animation: electric-answer-shake .34s ease;
}

/* Small success moment between games. */
.electric-safety-transition {
  overflow: hidden;
  border: 1px solid #bae6fd;
  background:
    radial-gradient(circle at 12% 12%, rgba(253,224,71,.23), transparent 22%),
    radial-gradient(circle at 88% 82%, rgba(56,189,248,.16), transparent 26%),
    linear-gradient(145deg,#ffffff,#f2fbff);
}
.electric-safety-transition .section-complete-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin: 0 auto 7px;
  border-radius: 22px;
  background: linear-gradient(145deg,#fff7be,#fff);
  box-shadow: 0 10px 24px rgba(14,116,144,.14);
  font-size: 38px;
  animation: electric-badge-bounce .55s cubic-bezier(.18,.89,.32,1.28) both;
}
.electric-safety-transition .section-complete-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 3px auto 11px;
  color: #0369a1;
  font-size: 12px;
  font-weight: 900;
}
.electric-safety-transition .section-complete-progress > span {
  padding: 3px 8px;
  border-radius: 999px;
  background: #e0f5ff;
}
.electric-safety-transition .section-complete-progress > div {
  display: flex;
  gap: 4px;
}
.electric-safety-transition .section-complete-progress i {
  width: 18px;
  height: 6px;
  border-radius: 999px;
  background: #d8eaf2;
}
.electric-safety-transition .section-complete-progress i.done {
  background: #34c887;
}
.electric-safety-transition .primary-btn {
  box-shadow: 0 8px 18px rgba(2,132,199,.18);
}

/* Game 4: reward a found hotspot without obscuring the source image. */
.electric-hotspot-card .help-hotspot-point.found {
  animation: electric-hotspot-pulse .55s cubic-bezier(.18,.89,.32,1.28);
}
.electric-hotspot-card .help-hotspot-point.found::before {
  content: '';
  position: absolute;
  inset: 9%;
  border: 3px solid rgba(34,197,94,.78);
  border-radius: 50%;
  animation: electric-risk-ring .65s ease-out both;
  pointer-events: none;
}
.electric-hotspot-card .help-hotspot-check {
  box-shadow: 0 6px 14px rgba(22,163,74,.28);
  animation: electric-check-pop .4s cubic-bezier(.18,.89,.32,1.28) both;
}
.electric-hotspot-card .help-hotspot-progress strong {
  min-width: 48px;
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  background: #eafff4;
  color: #15803d;
}

@keyframes safety-bolt-pulse {
  0%,100% { transform: scale(1) rotate(-5deg); opacity: .72; }
  50% { transform: scale(1.18) rotate(5deg); opacity: 1; }
}
@keyframes electric-card-in {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes electric-answer-pop {
  0% { transform: scale(.96); }
  55% { transform: scale(1.055); }
  100% { transform: scale(1); }
}
@keyframes electric-answer-shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-3px); }
}
@keyframes electric-feedback-pop {
  from { opacity: .5; transform: translateY(4px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes electric-badge-bounce {
  from { opacity: 0; transform: scale(.62) rotate(-8deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes electric-hotspot-pulse {
  0% { transform: scale(.9); }
  55% { transform: scale(1.08); }
  100% { transform: scale(1); }
}
@keyframes electric-risk-ring {
  from { opacity: .95; transform: scale(.6); }
  to { opacity: 0; transform: scale(1.3); }
}
@keyframes electric-check-pop {
  from { opacity: 0; transform: scale(.45) rotate(-14deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}

@media (max-width: 720px) {
  .electric-safety-binary-card .mc-card {
    padding: 18px 15px;
    font-size: 21px;
  }
  .electric-safety-binary-card .mc-btn {
    min-height: 68px;
    font-size: 17px;
  }
  .electric-safety-scenario-card .mc-card {
    padding: 17px 15px;
    font-size: 19px;
  }
}

@media (max-width: 520px) {
  .activity-stepper.electric-safety-stepper {
    margin: 6px 0 7px;
    padding: 7px 8px;
  }
  .electric-safety-stepper .activity-stepper-label {
    margin-bottom: 5px;
  }
  .electric-safety-stepper .activity-step {
    width: 27px;
    height: 27px;
    flex-basis: 27px;
  }
  .electric-safety-stepper .activity-step b {
    font-size: 12px;
  }
  .electric-safety-binary-card .mc-actions {
    gap: 10px;
  }
  .electric-safety-binary-card .mc-btn {
    min-height: 64px;
    padding: 11px 8px;
    font-size: 15px;
  }
  .electric-safety-scenario-card .mc-btn {
    min-height: 60px;
    padding: 11px 11px 11px 54px;
    font-size: 14px;
  }
  .electric-safety-scenario-card .mc-btn::before {
    left: 11px;
    width: 31px;
    height: 31px;
    border-radius: 10px;
  }
  .electric-safety-fill-card.concept-sentence-paged {
    padding: 8px;
  }
  .electric-safety-fill-card.concept-sentence-paged .concept-map-head {
    margin-bottom: 5px;
    padding: 6px 8px;
    font-size: 14px;
  }
  .electric-safety-fill-card.concept-sentence-paged .concept-map-head span {
    width: 31px;
    height: 31px;
    font-size: 18px;
  }
  .electric-safety-fill-card .concept-sentence-progress {
    gap: 7px;
    margin-bottom: 8px;
  }
  .electric-safety-fill-card .concept-sentence-dots {
    gap: 3px;
  }
  .electric-safety-fill-card .concept-sentence-dots i {
    height: 5px;
  }
  .electric-safety-fill-card.concept-sentence-paged .concept-sentence-row {
    min-height: 90px;
    padding: 13px 10px;
    border-radius: 18px;
    font-size: 15px;
  }
  .electric-safety-fill-card.concept-sentence-paged .concept-sentence-blank {
    min-width: 76px;
    min-height: 37px;
    padding: 5px 7px;
    font-size: 13px;
  }
  .electric-safety-fill-card .concept-word-bank-label {
    margin: 8px 0 6px;
    font-size: 12px;
  }
  .electric-safety-fill-card.concept-sentence-paged .concept-chip-bank {
    gap: 6px;
  }
  .electric-safety-fill-card.concept-sentence-paged .concept-chip {
    min-height: 38px;
    padding: 6px 5px;
    border-radius: 14px;
    font-size: 12.5px;
  }
  .electric-safety-transition .section-complete-icon {
    width: 62px;
    height: 62px;
    font-size: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .electric-safety-binary-card .mc-card,
  .electric-safety-scenario-card .mc-card,
  .electric-safety-fill-card,
  .electric-hotspot-card,
  .electric-safety-binary-card .mc-btn,
  .electric-safety-scenario-card .mc-btn,
  .electric-safety-fill-card .concept-chip,
  .electric-hotspot-card .help-hotspot-point,
  .electric-hotspot-card .help-hotspot-check,
  .electric-safety-transition .section-complete-icon,
  .electric-safety-fill-card .concept-blank-bolt {
    animation: none !important;
    transition: none !important;
  }
}


/* FB2 energy saving activity: compact, playful feedback without changing the shared subject theme. */
.energy-saving-choice-card .mc-card {
  position: relative;
  overflow: hidden;
  min-height: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 18px;
  border: 2px solid #cbe9d8;
  border-radius: 24px;
  background:
    radial-gradient(circle at 8% 18%,rgba(250,204,21,.20),transparent 22%),
    linear-gradient(180deg,#ffffff 0%,#f4fff8 100%);
  box-shadow: 0 12px 24px rgba(24,112,72,.10);
  color: #174f3a;
  font-size: 22px;
  line-height: 1.35;
}
.energy-saving-choice-card .mc-card::after {
  content: '💡';
  position: absolute;
  right: 12px;
  bottom: 7px;
  opacity: .13;
  font-size: 42px;
  transform: rotate(8deg);
  pointer-events: none;
}
.energy-saving-choice-card .mc-actions {
  gap: 12px;
}
.energy-saving-choice-card .mc-btn {
  min-height: 72px;
  border-radius: 20px;
  font-size: 17px;
  transition: transform .15s ease,box-shadow .15s ease,border-color .15s ease,background .15s ease;
}
.energy-saving-choice-card .mc-btn:nth-child(1) {
  border-color: #79d7a5;
  background: linear-gradient(180deg,#f1fff7 0%,#e2f8ec 100%);
  box-shadow: 0 5px 0 #bdebd1,0 10px 20px rgba(22,133,83,.10);
  color: #11683e;
}
.energy-saving-choice-card .mc-btn:nth-child(2) {
  border-color: #f3bf75;
  background: linear-gradient(180deg,#fffaf0 0%,#fff0d7 100%);
  box-shadow: 0 5px 0 #f6d6a8,0 10px 20px rgba(194,108,19,.09);
  color: #9a5718;
}
.energy-saving-choice-card .mc-btn:active:not(:disabled) {
  transform: translateY(3px) scale(.985);
  box-shadow: 0 2px 0 rgba(56,130,94,.15),0 5px 12px rgba(23,48,76,.08);
}
.energy-saving-choice-card .mc-btn.is-correct {
  border-color: #2fb878;
  background: linear-gradient(180deg,#eafff3,#d5f7e4);
  color: #11683e;
  animation: energy-saving-pop .42s cubic-bezier(.18,.89,.32,1.28);
}
.energy-saving-choice-card .mc-btn.is-wrong {
  border-color: #ef7b7b;
  background: linear-gradient(180deg,#fff6f2,#ffe6df);
  color: #a13a32;
  animation: energy-saving-shake .34s ease;
}
.energy-saving-choice-card .mc-compact-result {
  min-height: 58px;
  margin-top: 12px;
  border-radius: 18px;
  animation: energy-saving-feedback-in .24s ease both;
}
.energy-saving-choice-card .mc-compact-result.good {
  border: 2px solid #b6e9cd;
  background: #effcf5;
  color: #17663f;
}
.energy-saving-choice-card .mc-compact-result.bad {
  border: 2px solid #f6c7b8;
  background: #fff6f2;
  color: #963c31;
}

/* Two-game activity progress follows the same clear pattern as the previous safety activity. */
.activity-stepper.energy-saving-stepper {
  margin: 8px 0 9px;
  padding: 8px 10px;
  border: 1px solid #cbe9d8;
  border-radius: 15px;
  background: linear-gradient(135deg,#fbfff4,#effcf5);
  box-shadow: 0 5px 14px rgba(27,121,78,.08);
}
.energy-saving-stepper .activity-stepper-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  color: #17663f;
  font-size: 12px;
}
.energy-saving-stepper .activity-stepper-label > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 3px 9px rgba(27,121,78,.14);
  font-size: 17px;
}
.energy-saving-stepper .activity-stepper-label strong {
  font-weight: 900;
}
.energy-saving-stepper .activity-stepper-label small {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 999px;
  background: #e6f7ed;
  color: #17663f;
  font-weight: 900;
}
.energy-saving-stepper .activity-stepper-track {
  width: 100%;
  display: flex;
  align-items: center;
}
.energy-saving-stepper .activity-stepper-track > i {
  flex: 1;
  height: 4px;
  margin: 0 5px;
  border-radius: 999px;
  background: #dceee4;
}
.energy-saving-stepper .activity-step {
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  display: grid;
  place-items: center;
  transform: scale(.94);
  border: 2px solid #cfe8da;
  border-radius: 50%;
  background: #fff;
  transition: transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
.energy-saving-stepper .activity-step b {
  font-size: 14px;
  line-height: 1;
}
.energy-saving-stepper .activity-step.done {
  border-color: #35b979;
  background: #eafff3;
}
.energy-saving-stepper .activity-step.active {
  transform: scale(1.06);
  border-color: #e0aa1d;
  background: #fff8d8;
  box-shadow: 0 0 0 4px rgba(224,170,29,.13);
}

/* Target-sort variant for Tasarruf / Israf keeps one readable card on screen. */
.energy-saving-sort-body {
  padding-top: 2px;
}
.energy-saving-simple-sort {
  padding: 14px;
  border: 2px solid #cbe9d8;
  border-radius: 26px;
  background:
    radial-gradient(circle at 90% 8%,rgba(250,204,21,.15),transparent 21%),
    linear-gradient(180deg,#ffffff 0%,#f7fff9 100%);
  box-shadow: 0 14px 28px rgba(24,112,72,.09);
  /* Keep this drag container untransformed so fixed-position dragging uses viewport coordinates. */
  animation: none;
  transform: none;
}
.energy-saving-sort-helper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: 14px;
  background: #f3fbf6;
  color: #4a6d5c;
  font-size: 13px;
  font-weight: 850;
  text-align: center;
}
.energy-saving-current-shell {
  width: 100%;
  margin-bottom: 12px;
}
.energy-saving-current-shell.done {
  min-height: 138px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.energy-saving-current-card {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 18px 16px 15px;
  border: 3px solid #bfe7d0;
  border-radius: 23px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(24,112,72,.10);
  color: #174f3a;
  text-align: center;
  touch-action: none;
  cursor: grab;
  animation: energy-saving-card-in .3s ease both;
}
.energy-saving-current-card:active {
  cursor: grabbing;
}
/* Shrink only the active drag card so both answer bins remain visible. */
.energy-saving-current-card.dragging {
  min-height: 92px;
  gap: 5px;
  padding: 9px 11px;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(24,112,72,.18);
}
.energy-saving-current-card.dragging .energy-saving-current-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  font-size: 20px;
}
.energy-saving-current-card.dragging .energy-saving-current-text {
  font-size: 14px;
  line-height: 1.18;
}
.energy-saving-current-card.dragging small {
  display: none;
}
.energy-saving-current-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(145deg,#fff8cb,#fffef4);
  box-shadow: 0 7px 16px rgba(207,159,32,.12);
  font-size: 30px;
}
.energy-saving-current-text {
  max-width: 560px;
  color: #174f3a;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 950;
}
.energy-saving-current-card small {
  color: #719080;
  font-size: 12px;
  font-weight: 850;
}
.energy-saving-bin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}
.energy-saving-bin {
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 8px;
  border: 3px solid transparent;
  border-radius: 22px;
  box-shadow: 0 7px 17px rgba(23,48,76,.08);
  text-align: center;
  transition: transform .15s ease,box-shadow .15s ease,border-color .15s ease;
}
.energy-saving-bin.tasarruf {
  border-color: #7ad4a2;
  background: linear-gradient(180deg,#effff6,#def6e9);
  color: #17663f;
}
.energy-saving-bin.israf {
  border-color: #f0b673;
  background: linear-gradient(180deg,#fff9ed,#ffecd5);
  color: #975516;
}
.energy-saving-bin-icon {
  font-size: 27px;
  line-height: 1;
}
.energy-saving-bin strong {
  font-size: 19px;
  line-height: 1.1;
}
.energy-saving-bin small {
  opacity: .72;
  font-size: 11px;
  font-weight: 800;
}
.energy-saving-bin.drop-hover,
.energy-saving-bin:hover,
.energy-saving-bin:focus-visible {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 11px 22px rgba(23,48,76,.12);
  outline: none;
}
.energy-saving-bin.tasarruf.drop-hover {
  border-color: #2fad71;
  box-shadow: 0 0 0 5px rgba(47,173,113,.12),0 11px 22px rgba(23,48,76,.10);
}
.energy-saving-bin.israf.drop-hover {
  border-color: #e5973c;
  box-shadow: 0 0 0 5px rgba(229,151,60,.12),0 11px 22px rgba(23,48,76,.10);
}

/* Small reward card between the two tasks. */
.energy-saving-transition {
  overflow: hidden;
  border: 1px solid #cbe9d8;
  background:
    radial-gradient(circle at 14% 14%,rgba(250,204,21,.24),transparent 23%),
    radial-gradient(circle at 86% 82%,rgba(74,222,128,.15),transparent 25%),
    linear-gradient(145deg,#ffffff,#f4fff7);
}
.energy-saving-transition .section-complete-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin: 0 auto 7px;
  border-radius: 22px;
  background: linear-gradient(145deg,#fff8c8,#ffffff);
  box-shadow: 0 10px 24px rgba(72,120,74,.14);
  font-size: 38px;
  animation: energy-saving-badge-bounce .55s cubic-bezier(.18,.89,.32,1.28) both;
}
.energy-saving-transition .section-complete-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 3px auto 11px;
  color: #17663f;
  font-size: 12px;
  font-weight: 900;
}
.energy-saving-transition .section-complete-progress > span {
  padding: 3px 8px;
  border-radius: 999px;
  background: #e7f8ee;
}
.energy-saving-transition .section-complete-progress > div {
  display: flex;
  gap: 4px;
}
.energy-saving-transition .section-complete-progress i {
  width: 22px;
  height: 6px;
  border-radius: 999px;
  background: #dceee4;
}
.energy-saving-transition .section-complete-progress i.done {
  background: #35b979;
}
.energy-saving-transition .primary-btn {
  box-shadow: 0 8px 18px rgba(27,121,78,.16);
}

@keyframes energy-saving-card-in {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes energy-saving-pop {
  0% { transform: scale(.96); }
  55% { transform: scale(1.055); }
  100% { transform: scale(1); }
}
@keyframes energy-saving-shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-3px); }
}
@keyframes energy-saving-feedback-in {
  from { opacity: .45; transform: translateY(4px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes energy-saving-badge-bounce {
  from { opacity: 0; transform: scale(.62) rotate(-8deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}

@media (max-width: 520px) {
  .activity-stepper.energy-saving-stepper {
    margin: 6px 0 7px;
    padding: 7px 8px;
  }
  .energy-saving-stepper .activity-stepper-label {
    margin-bottom: 5px;
  }
  .energy-saving-stepper .activity-step {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }
  .energy-saving-choice-card .mc-card {
    min-height: 102px;
    padding: 16px 14px;
    border-radius: 20px;
    font-size: 18px;
  }
  .energy-saving-choice-card .mc-btn {
    min-height: 62px;
    padding: 10px 7px;
    font-size: 15px;
  }
  .energy-saving-simple-sort {
    padding: 10px;
    border-radius: 22px;
  }
  .energy-saving-sort-helper {
    margin-bottom: 8px;
    padding: 6px 8px;
    font-size: 11.5px;
  }
  .energy-saving-current-shell {
    margin-bottom: 9px;
  }
  .energy-saving-current-card {
    max-width: 100%;
    min-height: 122px;
    padding: 11px 9px 10px;
    border-radius: 20px;
  }
  .energy-saving-current-icon {
    width: 40px;
    height: 40px;
    border-radius: 15px;
    font-size: 25px;
  }
  .energy-saving-current-text {
    font-size: 15px;
    line-height: 1.24;
  }
  .energy-saving-current-card small {
    font-size: 10.5px;
  }
  .energy-saving-bin-grid {
    gap: 8px;
  }
  .energy-saving-bin {
    min-height: 96px;
    padding: 9px 5px;
    border-radius: 18px;
  }
  .energy-saving-bin-icon {
    font-size: 23px;
  }
  .energy-saving-bin strong {
    font-size: 16px;
  }
  .energy-saving-bin small {
    font-size: 9.5px;
  }
  .energy-saving-transition .section-complete-icon {
    width: 62px;
    height: 62px;
    font-size: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .energy-saving-choice-card .mc-card,
  .energy-saving-choice-card .mc-btn,
  .energy-saving-choice-card .mc-compact-result,
  .energy-saving-simple-sort,
  .energy-saving-current-card,
  .energy-saving-bin,
  .energy-saving-transition .section-complete-icon {
    animation: none !important;
    transition: none !important;
  }
}


/* Optional pointer-drag ghost for sequence games that need full mobile reordering. */
.ladder-drag-ghost {
  position: fixed !important;
  z-index: 10000;
  pointer-events: none !important;
  margin: 0 !important;
  opacity: .94;
  transform: scale(.97) rotate(-.5deg);
  box-shadow: 0 16px 34px rgba(42,51,38,.20) !important;
}
body.is-dragging-ladder {
  user-select: none;
  overscroll-behavior: contain;
}

/* FB2 soil formation activity: scoped earthy visual treatment. */
.activity-stepper.soil-stepper {
  margin: 8px 0 9px;
  padding: 8px 10px;
  border: 1px solid #d8dfbc;
  border-radius: 15px;
  background: linear-gradient(135deg,#fffaf0,#f0f8e8);
  box-shadow: 0 5px 14px rgba(91,116,55,.09);
}
.soil-stepper .activity-stepper-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  color: #4b6f2f;
  font-size: 12px;
}
.soil-stepper .activity-stepper-label > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 3px 9px rgba(91,116,55,.14);
  font-size: 17px;
}
.soil-stepper .activity-stepper-label strong {
  font-weight: 900;
}
.soil-stepper .activity-stepper-label small {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 999px;
  background: #e8f4dd;
  color: #4b6f2f;
  font-weight: 900;
}
.soil-stepper .activity-stepper-track {
  width: 100%;
  display: flex;
  align-items: center;
}
.soil-stepper .activity-stepper-track > i {
  flex: 1;
  height: 4px;
  margin: 0 5px;
  border-radius: 999px;
  background: #e2e7d4;
}
.soil-stepper .activity-step {
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  display: grid;
  place-items: center;
  transform: scale(.94);
  border: 2px solid #d5dec3;
  border-radius: 50%;
  background: #fff;
  transition: transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
.soil-stepper .activity-step b {
  font-size: 14px;
  line-height: 1;
}
.soil-stepper .activity-step.done {
  border-color: #6fa34b;
  background: #eff9e9;
}
.soil-stepper .activity-step.active {
  transform: scale(1.06);
  border-color: #b88445;
  background: #fff5df;
  box-shadow: 0 0 0 4px rgba(184,132,69,.12);
}

/* Game 1: compact image discovery board. */
.soil-select-game .helper {
  border: 1px solid #dfe8cf;
  background: #fbfff7;
}
.soil-select-game .multi-select-panel {
  gap: 10px;
  padding: 12px;
  border-color: #d9e4c6;
  background: linear-gradient(180deg,#fffef9,#f7fbf1);
  box-shadow: 0 10px 22px rgba(91,116,55,.08);
}
.soil-select-game .multi-select-question {
  padding: 9px 10px;
  background: #fffaf0;
  color: #4b6035;
  font-size: 17px;
}
.soil-select-game .multi-select-options.has-visuals {
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 9px;
}
.soil-select-game .multi-select-btn.visual {
  position: relative;
  min-height: 132px;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 8px 7px;
  border-color: #d7e2c4;
  background: #fff;
  text-align: center;
  box-shadow: 0 7px 15px rgba(76,91,55,.08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.soil-select-game .multi-select-btn.visual:hover,
.soil-select-game .multi-select-btn.visual:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(76,91,55,.11);
}
.soil-select-game .multi-select-btn-status {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  box-shadow: 0 4px 10px rgba(66,82,48,.12);
  font-size: 14px;
  opacity: 0;
  transform: scale(.6);
}
.soil-select-game .multi-select-btn.good .multi-select-btn-status,
.soil-select-game .multi-select-btn.bad .multi-select-btn-status {
  opacity: 1;
  transform: scale(1);
}
.soil-select-game .multi-select-btn.good .multi-select-btn-status::before {
  content: '✓';
  color: #2f8d4f;
  font-weight: 900;
}
.soil-select-game .multi-select-btn.bad .multi-select-btn-status::before {
  content: '✕';
  color: #d86b5c;
  font-weight: 900;
}
.soil-select-game .multi-select-btn-media {
  width: 78px;
  height: 78px;
  flex-basis: 78px;
  border-radius: 14px;
  background: #fffefb;
}
.soil-select-game .multi-select-btn.visual .multi-select-btn-label {
  font-size: 13px;
  line-height: 1.12;
  color: #435633;
}
.soil-select-game .multi-select-btn.selected,
.soil-select-game .multi-select-btn.good {
  border-color: #68ad62;
  background: #eef9e9;
  color: #356b31;
  box-shadow: 0 0 0 4px rgba(104,173,98,.12),0 7px 15px rgba(76,91,55,.08);
}
.soil-select-game .multi-select-btn.bad {
  border-color: #e27a68;
  background: #fff2ee;
}
.soil-select-game .multi-select-btn.fx-pop {
  animation: soil-feedback-pop .34s ease;
}
.soil-select-game .multi-select-btn.fx-shake {
  animation: soil-feedback-shake .36s ease;
}

/* Game 2: compact soil-formation sequence cards. */
.soil-sequence-game {
  max-width: 780px;
  margin-inline: auto;
  padding: 12px;
  border: 2px solid #dfd5bd;
  border-radius: 24px;
  background: linear-gradient(180deg,#fffdf7,#f6f8ec);
  box-shadow: 0 12px 26px rgba(91,82,56,.08);
}
.soil-sequence-game .ladder-title {
  color: #654c2c;
}
.soil-sequence-game .ladder-title-icon {
  border-color: #d8c6a8;
  background: #fff8e9;
}
.soil-sequence-game .ladder-sub {
  margin-bottom: 9px;
  border-color: #d8c8ad;
  background: #fffaf1;
  color: #6a5a43;
}
.soil-sequence-game .ladder-list {
  gap: 7px;
}
.soil-sequence-game .ladder-step {
  min-height: 58px;
  border: 1px solid #e0d6c3;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 14px rgba(91,82,56,.06);
}
.soil-sequence-game .ladder-step.drag-over {
  border-color: #d2b178;
  background: #fff8eb;
  box-shadow: 0 0 0 4px rgba(210,177,120,.14),0 10px 18px rgba(91,82,56,.10);
}
.soil-sequence-game .ladder-step.just-moved {
  animation: soil-feedback-pop .32s ease;
}
.soil-sequence-game .step-no {
  color: #fff;
  background: #8aa968;
}
.soil-sequence-game .step-card {
  min-height: 44px;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.soil-sequence-game .step-text {
  color: #4e4a3d;
  font-size: 14px;
  line-height: 1.2;
}
.soil-sequence-game .step-grip {
  border-color: #e7dfd0;
  background: #faf7f0;
  color: #9a8a73;
}
.soil-sequence-game .ladder-check {
  margin-top: 10px;
}

/* Game 3: two-column matching board with clear visual grouping. */
.soil-match-game .helper {
  border: 1px solid #dfe8cf;
  background: #fbfff7;
}
.soil-match-game .match-grid {
  gap: 10px;
  padding: 10px;
  border: 2px solid #dfe5cf;
  border-radius: 22px;
  background: linear-gradient(180deg,#fffef9,#f8fbf3);
  box-shadow: 0 10px 22px rgba(91,116,55,.07);
}
.soil-match-game .col-title {
  min-height: 28px;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
  padding: 5px 7px;
  border-radius: 10px;
  font-size: 11.5px;
}
.soil-match-game .match-grid > div:first-child .col-title {
  background: #fff2dc;
  color: #79522a;
}
.soil-match-game .match-grid > div:last-child .col-title {
  background: #eaf6e2;
  color: #42652e;
}
.soil-match-game .card-btn {
  position: relative;
  min-height: 58px;
  padding: 8px 28px 8px 9px;
  border: 1px solid #e2e5da;
  border-radius: 14px;
  color: #475242;
  font-size: 12px;
  line-height: 1.18;
  box-shadow: 0 5px 12px rgba(76,91,55,.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.soil-match-game .card-btn:hover,
.soil-match-game .card-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 9px 18px rgba(76,91,55,.10);
}
.soil-match-game .card-btn-status {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  box-shadow: 0 3px 8px rgba(66,82,48,.11);
  opacity: 0;
  transform: translateY(-50%) scale(.7);
  font-size: 11px;
  font-weight: 900;
}
.soil-match-game .card-btn.good .card-btn-status,
.soil-match-game .card-btn.bad .card-btn-status,
.soil-match-game .card-btn.done .card-btn-status {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}
.soil-match-game .card-btn.good .card-btn-status::before,
.soil-match-game .card-btn.done .card-btn-status::before {
  content: '✓';
  color: #2f8d4f;
}
.soil-match-game .card-btn.bad .card-btn-status::before {
  content: '!';
  color: #d86b5c;
}
.soil-match-game .cause {
  background: #fffaf1;
}
.soil-match-game .answer {
  background: #f7fcf3;
}
.soil-match-game .card-btn.selected {
  border-color: #8aae68;
  background: #edf7e7;
  box-shadow: 0 0 0 3px rgba(138,174,104,.12);
}
.soil-match-game .card-btn.good {
  border-color: #69ae63;
  background: #eef9e9;
}
.soil-match-game .card-btn.bad {
  border-color: #e27a68;
  background: #fff2ee;
}
.soil-match-game .card-btn.fx-pop {
  animation: soil-feedback-pop .34s ease;
}
.soil-match-game .card-btn.fx-shake {
  animation: soil-feedback-shake .36s ease;
}
.soil-match-game .card-btn.done {
  opacity: .42;
}

/* Small reward card shown between soil activity tasks. */
.soil-transition {
  overflow: hidden;
  border: 1px solid #d8dfbc;
  background:
    radial-gradient(circle at 14% 14%,rgba(216,168,98,.18),transparent 23%),
    radial-gradient(circle at 86% 82%,rgba(111,159,69,.14),transparent 25%),
    linear-gradient(145deg,#fffdf7,#f4faee);
}
.soil-transition .section-complete-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin: 0 auto 7px;
  border-radius: 22px;
  background: linear-gradient(145deg,#fff2d6,#ffffff);
  box-shadow: 0 10px 24px rgba(91,116,55,.13);
  font-size: 38px;
  animation: soil-badge-bounce .55s cubic-bezier(.18,.89,.32,1.28) both;
}
.soil-transition .section-complete-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 3px auto 11px;
  color: #4b6f2f;
  font-size: 12px;
  font-weight: 900;
}
.soil-transition .section-complete-progress > span {
  padding: 3px 8px;
  border-radius: 999px;
  background: #edf5e6;
}
.soil-transition .section-complete-progress > div {
  display: flex;
  gap: 4px;
}
.soil-transition .section-complete-progress i {
  width: 22px;
  height: 6px;
  border-radius: 999px;
  background: #e1e7d5;
}
.soil-transition .section-complete-progress i.done {
  background: #7aa356;
}
@keyframes soil-badge-bounce {
  from { opacity: 0; transform: scale(.65) rotate(-6deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes soil-feedback-pop {
  0% { transform: scale(.95); }
  60% { transform: scale(1.05); }
  100% { transform: scale(1); }
}
@keyframes soil-feedback-shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
}

@media (max-width: 640px) {
  .activity-stepper.soil-stepper {
    margin: 6px 0 7px;
    padding: 7px 8px;
  }
  .soil-stepper .activity-stepper-label {
    margin-bottom: 5px;
  }
  .soil-stepper .activity-step {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }
  .soil-select-game .multi-select-panel {
    gap: 8px;
    padding: 9px;
    border-radius: 20px;
  }
  .soil-select-game .multi-select-question {
    padding: 7px 8px;
    font-size: 14px;
  }
  .soil-select-game .multi-select-options.has-visuals {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 7px;
  }
  .soil-select-game .multi-select-btn.visual {
    min-height: 98px;
    gap: 4px;
    padding: 5px;
    border-radius: 14px;
  }
  .soil-select-game .multi-select-btn-media {
    width: 60px;
    height: 60px;
    flex-basis: 60px;
    border-radius: 10px;
  }
  .soil-select-game .multi-select-btn.visual .multi-select-btn-label {
    font-size: 11.5px;
  }
  .soil-sequence-game {
    padding: 9px;
    border-radius: 20px;
  }
  .soil-sequence-game .ladder-list {
    gap: 5px;
  }
  .soil-sequence-game .ladder-step {
    grid-template-columns: 30px 1fr 24px 58px;
    min-height: 50px;
    border-radius: 13px;
  }
  .soil-sequence-game .step-no {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }
  .soil-sequence-game .step-card {
    min-height: 38px;
    padding: 4px 5px;
  }
  .soil-sequence-game .step-text {
    font-size: 11.5px;
    line-height: 1.15;
  }
  .soil-sequence-game .step-grip {
    width: 22px;
    height: 28px;
    font-size: 11px;
  }
  .soil-sequence-game .step-actions {
    gap: 2px;
  }
  .soil-sequence-game .step-move {
    width: 27px;
    height: 27px;
    min-width: 27px;
    padding: 0;
    font-size: 12px;
  }
  .soil-match-game .match-grid {
    gap: 6px;
    padding: 7px;
    border-radius: 18px;
  }
  .soil-match-game .col-title {
    min-height: 26px;
    padding: 4px;
    font-size: 10px;
  }
  .soil-match-game .card-btn {
    min-height: 54px;
    padding: 6px;
    font-size: 10.5px;
    line-height: 1.15;
  }
  .soil-transition .section-complete-icon {
    width: 62px;
    height: 62px;
    font-size: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .soil-stepper .activity-step,
  .soil-select-game .multi-select-btn,
  .soil-sequence-game .ladder-step,
  .soil-match-game .card-btn,
  .soil-transition .section-complete-icon {
    animation: none !important;
    transition: none !important;
  }
}

/* Multiple-choice reference table and zoom dialog. */
.mc-reference-card{
  margin: 0 0 14px;
  padding: 12px;
  border: 2px solid rgba(72,157,104,.22);
  border-radius: 20px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 8px 20px rgba(37,82,54,.07);
}
.mc-reference-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
.mc-reference-head > div{
  min-width:0;
}
.mc-reference-head strong{
  display:block;
  color:#245f38;
  font-size:16px;
  line-height:1.2;
}
.mc-reference-head span{
  display:block;
  margin-top:3px;
  color:#5e7666;
  font-size:12px;
  line-height:1.3;
}
.mc-reference-zoom,
.mc-reference-close{
  border:0;
  border-radius:14px;
  font:inherit;
  font-weight:800;
  cursor:pointer;
  touch-action:manipulation;
}
.mc-reference-zoom{
  flex:0 0 auto;
  padding:9px 11px;
  background:#e8f6ec;
  color:#21653b;
  box-shadow:inset 0 0 0 1px rgba(54,144,87,.24);
}
.mc-reference-swipe-hint{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  margin:0 0 8px;
  padding:6px 10px;
  border-radius:12px;
  background:#f2f8ed;
  color:#3f704d;
  font-size:12px;
  font-weight:850;
  line-height:1.2;
}
.mc-reference-swipe-hint span{
  font-size:17px;
  line-height:1;
}
.mc-reference-scroll-wrap{
  position:relative;
}
.mc-reference-edge-cue{
  position:absolute;
  top:50%;
  z-index:8;
  display:grid;
  place-items:center;
  width:30px;
  height:42px;
  border-radius:999px;
  background:rgba(47,116,67,.92);
  color:#fff;
  font-size:28px;
  font-weight:900;
  line-height:1;
  box-shadow:0 5px 14px rgba(30,78,43,.24);
  opacity:0;
  pointer-events:none;
  border:0;
  padding:0;
  font-family:inherit;
  cursor:default;
  transform:translateY(-50%) scale(.88);
  transition:opacity .18s ease,transform .18s ease,background .18s ease;
}

.mc-reference-scroll-wrap.has-column-nav .mc-reference-edge-cue{
  pointer-events:auto;
  cursor:pointer;
  touch-action:manipulation;
}
.mc-reference-scroll-wrap.has-column-nav .mc-reference-edge-cue:hover:not(:disabled),
.mc-reference-scroll-wrap.has-column-nav .mc-reference-edge-cue:focus-visible:not(:disabled){
  background:rgba(38,101,56,.98);
  outline:3px solid rgba(67,158,94,.2);
  outline-offset:2px;
}
.mc-reference-scroll-wrap.has-column-nav .mc-reference-edge-cue:disabled{
  opacity:0;
  pointer-events:none;
}

.mc-reference-edge-cue.left{ left:6px; }
.mc-reference-edge-cue.right{ right:6px; }
.mc-reference-scroll-wrap.can-scroll-left .mc-reference-edge-cue.left,
.mc-reference-scroll-wrap.can-scroll-right .mc-reference-edge-cue.right{
  opacity:.88;
  transform:translateY(-50%) scale(1);
}
.mc-reference-scroll-wrap.can-scroll-left::before,
.mc-reference-scroll-wrap.can-scroll-right::after{
  content:'';
  position:absolute;
  top:0;
  bottom:0;
  z-index:7;
  width:46px;
  pointer-events:none;
}
.mc-reference-scroll-wrap.can-scroll-left::before{
  left:0;
  background:linear-gradient(90deg,rgba(255,255,255,.95),rgba(255,255,255,0));
}
.mc-reference-scroll-wrap.can-scroll-right::after{
  right:0;
  background:linear-gradient(270deg,rgba(255,255,255,.95),rgba(255,255,255,0));
}
.mc-reference-scroll{
  width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  border:1px solid #cfe4d3;
  border-radius:14px;
  background:#fff;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-inline:contain;
}
.mc-reference-table{
  width:100%;
  min-width:690px;
  border-collapse:separate;
  border-spacing:0;
  color:#294236;
  font-size:14px;
  line-height:1.28;
}
.mc-reference-table th,
.mc-reference-table td{
  padding:10px 12px;
  text-align:center;
  vertical-align:middle;
  border-right:1px solid #d5e6d8;
  border-bottom:1px solid #d5e6d8;
  background:#fff;
}
.mc-reference-table thead th{
  position:sticky;
  top:0;
  z-index:2;
  background:#e9f5e8;
  color:#245f38;
  font-weight:900;
}
.mc-reference-table th:first-child,
.mc-reference-table td:first-child{
  position:sticky;
  left:0;
  z-index:3;
  min-width:92px;
  background:#f6fbf5;
  font-weight:900;
  color:#285f3b;
  box-shadow:5px 0 8px rgba(37,82,54,.05);
}
.mc-reference-table thead th:first-child{
  z-index:4;
  background:#e3f2e2;
}
.mc-reference-table tr:last-child > *{
  border-bottom:0;
}
.mc-reference-table tr > *:last-child{
  border-right:0;
}
.mc-reference-modal{
  position:fixed;
  inset:0;
  z-index:20000;
  display:none;
  align-items:center;
  justify-content:center;
  padding:14px;
  background:rgba(17,36,25,.72);
  backdrop-filter:blur(4px);
}
.mc-reference-modal.open{
  display:flex;
}
.mc-reference-modal-content{
  width:min(980px,96vw);
  max-height:92vh;
  overflow:hidden;
  padding:14px;
  border-radius:22px;
  background:#fff;
  box-shadow:0 24px 70px rgba(0,0,0,.28);
}
.mc-reference-modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.mc-reference-modal-head strong{
  color:#245f38;
  font-size:20px;
}
.mc-reference-close{
  padding:9px 12px;
  background:#f1f5f2;
  color:#2e4b38;
}
.mc-reference-modal .mc-reference-scroll{
  max-height:calc(92vh - 76px);
  overflow:auto;
}
.mc-reference-modal .mc-reference-table{
  min-width:820px;
  font-size:18px;
}
.mc-reference-modal .mc-reference-table th,
.mc-reference-modal .mc-reference-table td{
  padding:15px 16px;
}
body.mc-reference-modal-open{
  overflow:hidden;
}
@media (max-width:600px){
  .mc-reference-card{
    padding:10px;
    border-radius:18px;
  }
  .mc-reference-head{
    align-items:flex-start;
  }
  .mc-reference-head strong{
    font-size:15px;
  }
  .mc-reference-head span{
    font-size:11px;
  }
  .mc-reference-zoom{
    padding:8px 9px;
    font-size:12px;
  }
  .mc-reference-swipe-hint{
    justify-content:flex-start;
    font-size:11px;
  }
  .mc-reference-edge-cue{
    width:28px;
    height:38px;
    font-size:25px;
  }
  .mc-reference-table{
    min-width:660px;
    font-size:13px;
  }
  .mc-reference-table th,
  .mc-reference-table td{
    padding:9px 10px;
  }
  .mc-reference-modal{
    padding:8px;
  }
  .mc-reference-modal-content{
    width:100%;
    max-height:96vh;
    padding:10px;
    border-radius:18px;
  }
  .mc-reference-modal-head strong{
    font-size:17px;
  }
  .mc-reference-close{
    font-size:13px;
  }
  .mc-reference-modal .mc-reference-scroll{
    max-height:calc(96vh - 68px);
  }
  .mc-reference-modal .mc-reference-table{
    min-width:760px;
    font-size:17px;
  }
}


/* Bitki Yetistirme: scoped table-quiz presentation. */
.plant-table-choice-card .mc-card{
  min-height:88px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:6px;
  padding:14px 16px;
  border:2px solid #c8ead8;
  border-radius:20px;
  background:linear-gradient(180deg,#ffffff 0%,#f7fffa 100%);
  box-shadow:0 8px 18px rgba(24,112,72,.08);
  color:#174f3a;
  font-size:19px;
  line-height:1.22;
}
.plant-table-choice-card .mc-actions{
  grid-template-columns:repeat(auto-fit,minmax(118px,1fr));
  gap:8px;
}
.plant-table-choice-card .mc-btn{
  --plant-btn-border:#72d1af;
  --plant-btn-depth:#45b889;
  --plant-btn-soft:rgba(25,103,69,.16);
  position:relative;
  z-index:0;
  min-height:56px;
  margin-bottom:6px;
  padding:8px 9px;
  border:2px solid var(--plant-btn-border);
  border-radius:17px;
  background:linear-gradient(180deg,#fbfffd 0%,#e8f9f1 100%);
  box-shadow:0 9px 18px var(--plant-btn-soft);
  color:#17613f;
  font-size:14px;
  line-height:1.15;
  overflow:visible;
}
.plant-table-choice-card .mc-btn::after{
  content:"";
  position:absolute;
  z-index:-1;
  left:3px;
  right:3px;
  bottom:-7px;
  height:9px;
  border-radius:0 0 14px 14px;
  background:var(--plant-btn-depth);
  pointer-events:none;
  transition:height .14s ease,bottom .14s ease,filter .14s ease;
}
.plant-table-choice-card .mc-btn:nth-child(2){
  --plant-btn-border:#a8d6eb;
  --plant-btn-depth:#87c7df;
  --plant-btn-soft:rgba(28,99,133,.14);
  border-color:var(--plant-btn-border);
  background:linear-gradient(180deg,#fbfeff 0%,#eaf7fd 100%);
  color:#21627e;
}
.plant-table-choice-card .mc-btn:nth-child(3){
  --plant-btn-border:#d9c58f;
  --plant-btn-depth:#cfae66;
  --plant-btn-soft:rgba(119,92,37,.14);
  border-color:var(--plant-btn-border);
  background:linear-gradient(180deg,#fffdf7 0%,#fbf3df 100%);
  color:#72551d;
}
/* Keep button depth visible in every interaction state. */
.game-body.mc-lock-mode.plant-table-choice-card .mc-btn:hover:not(.is-wrong):not(.is-correct),
.game-body.mc-lock-mode.plant-table-choice-card .mc-btn:focus-visible:not(.is-wrong):not(.is-correct){
  border-color:var(--plant-btn-border);
  box-shadow:0 9px 18px var(--plant-btn-soft);
}
.game-body.mc-lock-mode.plant-table-choice-card .mc-btn:active,
.game-body.mc-lock-mode.plant-table-choice-card .mc-btn[aria-pressed="true"]{
  transform:translateY(3px) scale(.985);
  box-shadow:0 6px 14px var(--plant-btn-soft);
}
.game-body.mc-lock-mode.plant-table-choice-card .mc-btn:active::after,
.game-body.mc-lock-mode.plant-table-choice-card .mc-btn[aria-pressed="true"]::after{
  bottom:-4px;
  height:6px;
}
.plant-table-choice-card .mc-btn.is-correct{
  border-color:#2fb878;
  background:linear-gradient(180deg,#eafff3,#d5f7e4);
  color:#11683e;
  box-shadow:0 8px 16px var(--plant-btn-soft);
}
.plant-table-choice-card .mc-btn.is-wrong{
  border-color:#ef7b7b;
  background:linear-gradient(180deg,#fff6f2,#ffe6df);
  color:#a13a32;
  box-shadow:0 8px 16px var(--plant-btn-soft);
}
.plant-table-choice-card .mc-compact-result{
  min-height:48px;
  margin-top:6px;
  border-radius:15px;
}

@media (max-width:600px){
  .plant-table-choice-card{
    gap:5px;
    padding-top:4px;
    padding-bottom:5px;
  }
  .plant-table-choice-card .mc-reference-card{
    margin-bottom:5px;
    padding:7px 8px 8px;
    border-radius:16px;
  }
  .plant-table-choice-card .mc-reference-head{
    align-items:center;
    margin-bottom:5px;
    gap:7px;
  }
  .plant-table-choice-card .mc-reference-head strong{
    font-size:14px;
  }
  .plant-table-choice-card .mc-reference-head span{
    display:none;
  }
  .plant-table-choice-card .mc-reference-zoom{
    padding:6px 8px;
    border-radius:11px;
    font-size:10.5px;
  }
  .plant-table-choice-card .mc-reference-swipe-hint{
    min-height:25px;
    margin-bottom:5px;
    padding:4px 8px;
    border-radius:10px;
    font-size:10px;
  }
  .plant-table-choice-card .mc-reference-swipe-hint span{
    font-size:14px;
  }
  .plant-table-choice-card .mc-reference-scroll{
    border-radius:11px;
  }
  .plant-table-choice-card .mc-reference-table{
    min-width:620px;
    font-size:11px;
    line-height:1.12;
  }
  .plant-table-choice-card .mc-reference-table th,
  .plant-table-choice-card .mc-reference-table td{
    height:29px;
    padding:4px 7px;
  }
  .plant-table-choice-card .mc-reference-table th:first-child,
  .plant-table-choice-card .mc-reference-table td:first-child{
    min-width:84px;
  }
  .plant-table-choice-card .mc-reference-edge-cue{
    width:28px;
    height:36px;
    font-size:23px;
  }
  .plant-table-choice-card .mc-card{
    min-height:64px;
    margin-bottom:4px;
    padding:9px 12px;
    border-radius:17px;
    font-size:16px;
    line-height:1.18;
  }
  .plant-table-choice-card .mc-actions{
    grid-template-columns:repeat(auto-fit,minmax(82px,1fr));
    gap:6px;
  }
  .plant-table-choice-card .mc-btn{
    min-height:50px;
    margin-bottom:6px;
    padding:6px 5px;
    border-radius:14px;
    box-shadow:0 8px 14px var(--plant-btn-soft);
    font-size:11.5px;
    line-height:1.12;
  }
  .plant-table-choice-card .mc-btn::after{
    left:2px;
    right:2px;
    bottom:-7px;
    height:8px;
    border-radius:0 0 12px 12px;
  }
  .game-body.mc-lock-mode.plant-table-choice-card .mc-btn:hover:not(.is-wrong):not(.is-correct),
  .game-body.mc-lock-mode.plant-table-choice-card .mc-btn:focus-visible:not(.is-wrong):not(.is-correct){
    border-color:var(--plant-btn-border);
    box-shadow:0 8px 14px var(--plant-btn-soft);
  }
  .game-body.mc-lock-mode.plant-table-choice-card .mc-btn:active,
  .game-body.mc-lock-mode.plant-table-choice-card .mc-btn[aria-pressed="true"]{
    box-shadow:0 5px 11px var(--plant-btn-soft);
  }
  .game-body.mc-lock-mode.plant-table-choice-card .mc-btn:active::after,
  .game-body.mc-lock-mode.plant-table-choice-card .mc-btn[aria-pressed="true"]::after{
    bottom:-4px;
    height:5px;
  }
  .plant-table-choice-card .mc-compact-result{
    min-height:42px;
    margin-top:4px;
    padding:6px 8px;
    font-size:11px;
  }
}

@media (max-width:600px) and (max-height:820px){
  .panel:has(.plant-table-choice-card) .game-head{
    padding:6px 12px 4px;
  }
  .panel:has(.plant-table-choice-card) .game-title{
    font-size:20px;
  }
  .panel:has(.plant-table-choice-card) .game-sub{
    font-size:11px;
  }
  .panel:has(.plant-table-choice-card) .activity-stepper.soil-stepper{
    margin:4px 0 5px;
    padding:5px 7px;
  }
  .panel:has(.plant-table-choice-card) .soil-stepper .activity-stepper-label{
    margin-bottom:3px;
    font-size:10.5px;
  }
  .panel:has(.plant-table-choice-card) .soil-stepper .activity-stepper-label > span{
    width:24px;
    height:24px;
    font-size:14px;
  }
  .panel:has(.plant-table-choice-card) .soil-stepper .activity-step{
    width:25px;
    height:25px;
    flex-basis:25px;
  }
  .panel:has(.plant-table-choice-card) .soil-stepper .activity-step b{
    font-size:12px;
  }
  .panel:has(.plant-table-choice-card) .counter{
    margin:4px 0 3px;
    font-size:13px;
  }
  .panel:has(.plant-table-choice-card) .progress{
    height:7px;
  }
  .panel:has(.plant-table-choice-card) .footer{
    padding-top:4px;
    padding-bottom:7px;
  }
}


/* Bitki Yetistirme: scoped true/false presentation. */
.plant-true-false-game{
  gap:10px;
  padding-top:5px;
}
.plant-true-false-game .tf-learning-strip{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:56px;
  padding:8px 11px;
  border:1px solid #dcecdf;
  border-radius:17px;
  background:linear-gradient(135deg,#fbfffc 0%,#f0f8ed 100%);
  box-shadow:0 5px 14px rgba(52,107,67,.06);
  color:#194f37;
}
.plant-true-false-game .tf-learning-icon{
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  flex:0 0 38px;
  border:2px solid #b9d9ae;
  border-radius:13px;
  background:#fff;
  font-size:22px;
  box-shadow:0 3px 0 #dcebd6;
}
.plant-true-false-game .tf-learning-strip div{
  display:flex;
  flex-direction:column;
  gap:1px;
  min-width:0;
}
.plant-true-false-game .tf-learning-strip strong{
  font-size:14px;
  line-height:1.1;
}
.plant-true-false-game .tf-learning-strip small{
  color:#577263;
  font-size:11px;
  line-height:1.2;
}
.plant-true-false-game .tf-question-panel{
  position:relative;
  flex:1 1 auto;
  min-height:190px;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:2px solid #cde8d7;
  border-radius:24px;
  background:
    radial-gradient(circle at 92% 14%,rgba(137,203,105,.17) 0 34px,transparent 35px),
    radial-gradient(circle at 8% 86%,rgba(108,186,144,.12) 0 48px,transparent 49px),
    linear-gradient(160deg,#ffffff 0%,#f7fff9 58%,#f0f9ec 100%);
  box-shadow:0 8px 0 #dcefe3,0 16px 30px rgba(32,99,62,.08);
}
.plant-true-false-game .tf-question-panel::after{
  content:'🌱';
  position:absolute;
  right:15px;
  bottom:10px;
  font-size:34px;
  opacity:.14;
  transform:rotate(-8deg);
  pointer-events:none;
}
.plant-true-false-game .tf-question-label{
  display:flex;
  align-items:center;
  gap:7px;
  width:max-content;
  margin:13px 0 0 13px;
  padding:6px 10px;
  border:1px solid #cfe5c5;
  border-radius:999px;
  background:#f2faed;
  color:#3d7435;
  font-size:12px;
  line-height:1;
}
.plant-true-false-game .tf-question-label span{
  font-size:15px;
}
.plant-true-false-game .tf-card{
  flex:1;
  min-height:0;
  display:grid;
  place-items:center;
  margin:0;
  padding:24px 28px 28px;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  color:#123f32;
  font-size:clamp(21px,5.8vw,29px);
  line-height:1.16;
  text-wrap:balance;
}
.plant-true-false-game .tf-actions{
  gap:12px;
}
.plant-true-false-game .tf-btn{
  position:relative;
  min-height:76px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  overflow:visible;
  padding:10px 12px;
  border:2px solid transparent;
  border-radius:20px;
  color:#fff;
  transition:transform .14s ease,box-shadow .14s ease,filter .14s ease;
}
.plant-true-false-game .tf-btn.true{
  border-color:#079f70;
  background:linear-gradient(180deg,#15c590 0%,#08aa78 100%);
  box-shadow:0 6px 0 #087b5b,0 12px 20px rgba(8,139,98,.18);
}
.plant-true-false-game .tf-btn.false{
  border-color:#e83862;
  background:linear-gradient(180deg,#ff5b7f 0%,#ee4068 100%);
  box-shadow:0 6px 0 #b52d4f,0 12px 20px rgba(215,48,91,.17);
}
.plant-true-false-game .tf-btn:hover{
  filter:brightness(1.03);
  transform:translateY(-1px);
}
.plant-true-false-game .tf-btn:active{
  transform:translateY(4px);
  box-shadow:0 2px 0 rgba(20,70,50,.35),0 5px 10px rgba(20,70,50,.10);
}
.plant-true-false-game .tf-btn-icon{
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  flex:0 0 38px;
  border:2px solid rgba(255,255,255,.74);
  border-radius:13px;
  background:rgba(255,255,255,.14);
  font-size:25px;
  line-height:1;
  font-weight:900;
}
.plant-true-false-game .tf-btn-copy{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:1px;
  text-align:left;
}
.plant-true-false-game .tf-btn-copy strong{
  font-size:19px;
  line-height:1;
}
.plant-true-false-game .tf-btn-copy small{
  color:rgba(255,255,255,.88);
  font-size:10px;
  line-height:1.1;
  font-weight:800;
}
.plant-true-false-game .tf-btn.is-correct{
  outline:4px solid rgba(43,184,114,.25);
  filter:brightness(1.04);
}
.plant-true-false-game .tf-btn.is-correct::after,
.plant-true-false-game .tf-btn.is-wrong::after{
  position:absolute;
  top:-8px;
  right:-7px;
  display:grid;
  place-items:center;
  width:27px;
  height:27px;
  border:3px solid #fff;
  border-radius:50%;
  color:#fff;
  font-size:15px;
  line-height:1;
  box-shadow:0 4px 10px rgba(34,69,51,.18);
}
.plant-true-false-game .tf-btn.is-correct::after{
  content:'✓';
  background:#20aa6b;
}
.plant-true-false-game .tf-btn.is-wrong::after{
  content:'×';
  background:#f59b23;
}
.plant-true-false-game .tf-btn.is-wrong{
  outline:4px solid rgba(245,155,35,.24);
}
.plant-true-false-game .tf-inline-feedback{
  min-height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:7px 11px;
  border-radius:14px;
  font-size:12px;
  text-align:center;
}
.plant-true-false-game .tf-inline-feedback span{
  display:grid;
  place-items:center;
  width:24px;
  height:24px;
  flex:0 0 24px;
  border-radius:50%;
  color:#fff;
  font-size:15px;
  font-weight:900;
}
.plant-true-false-game .tf-inline-feedback.good{
  border:1px solid #b9e5cd;
  background:#eafaf1;
  color:#17643e;
}
.plant-true-false-game .tf-inline-feedback.good span{
  background:#21a96c;
}
.plant-true-false-game .tf-inline-feedback.bad{
  border:1px solid #f0d7a9;
  background:#fff7e8;
  color:#805816;
}
.plant-true-false-game .tf-inline-feedback.bad span{
  background:#e99a25;
}
.plant-true-false-game .tf-success-pop{
  animation:plantTfSuccess .42s ease;
}
.plant-true-false-game .tf-retry-shake{
  animation:plantTfRetry .34s ease;
}
@keyframes plantTfSuccess{
  0%{transform:scale(.985)}
  55%{transform:scale(1.018)}
  100%{transform:scale(1)}
}
@keyframes plantTfRetry{
  0%,100%{transform:translateX(0)}
  25%{transform:translateX(-5px)}
  55%{transform:translateX(5px)}
  78%{transform:translateX(-2px)}
}

@media (max-width:600px){
  .plant-true-false-game{
    gap:8px;
    padding-top:3px;
  }
  .plant-true-false-game .tf-learning-strip{
    min-height:48px;
    padding:6px 9px;
    border-radius:15px;
  }
  .plant-true-false-game .tf-learning-icon{
    width:34px;
    height:34px;
    flex-basis:34px;
    border-radius:11px;
    font-size:19px;
  }
  .plant-true-false-game .tf-learning-strip strong{
    font-size:12.5px;
  }
  .plant-true-false-game .tf-learning-strip small{
    font-size:9.5px;
  }
  .plant-true-false-game .tf-question-panel{
    min-height:205px;
    border-radius:21px;
    box-shadow:0 6px 0 #dcefe3,0 12px 22px rgba(32,99,62,.07);
  }
  .plant-true-false-game .tf-question-label{
    margin:10px 0 0 10px;
    padding:5px 8px;
    font-size:10px;
  }
  .plant-true-false-game .tf-card{
    padding:18px 20px 22px;
    font-size:clamp(19px,5.7vw,24px);
  }
  .plant-true-false-game .tf-actions{
    gap:9px;
  }
  .plant-true-false-game .tf-btn{
    min-height:68px;
    gap:7px;
    padding:8px 7px;
    border-radius:17px;
  }
  .plant-true-false-game .tf-btn.true{
    box-shadow:0 5px 0 #087b5b,0 9px 15px rgba(8,139,98,.15);
  }
  .plant-true-false-game .tf-btn.false{
    box-shadow:0 5px 0 #b52d4f,0 9px 15px rgba(215,48,91,.14);
  }
  .plant-true-false-game .tf-btn-icon{
    width:32px;
    height:32px;
    flex-basis:32px;
    border-radius:10px;
    font-size:21px;
  }
  .plant-true-false-game .tf-btn-copy strong{
    font-size:16px;
  }
  .plant-true-false-game .tf-btn-copy small{
    display:none;
  }
  .plant-true-false-game .tf-inline-feedback{
    min-height:36px;
    padding:5px 8px;
    font-size:10.5px;
  }
}

@media (max-width:600px) and (max-height:760px){
  .panel:has(.plant-true-false-game) .game-head{
    padding:6px 12px 4px;
  }
  .panel:has(.plant-true-false-game) .game-title{
    font-size:20px;
  }
  .panel:has(.plant-true-false-game) .game-sub{
    font-size:10.5px;
  }
  .panel:has(.plant-true-false-game) .activity-stepper.soil-stepper{
    margin:4px 0 5px;
    padding:5px 7px;
  }
  .panel:has(.plant-true-false-game) .counter{
    margin:4px 0 3px;
    font-size:13px;
  }
  .panel:has(.plant-true-false-game) .progress{
    height:7px;
  }
  .plant-true-false-game .tf-learning-strip{
    min-height:43px;
  }
  .plant-true-false-game .tf-question-panel{
    min-height:165px;
  }
  .plant-true-false-game .tf-btn{
    min-height:60px;
  }
  .panel:has(.plant-true-false-game) .footer{
    padding-top:4px;
    padding-bottom:7px;
  }
}

/* Fen Bilimleri 2, habitat activity: compact visual choices and fact cards. */
.habitat-choice-game .mc-card {
  padding: 10px 14px;
  min-height: 54px;
  display: grid;
  place-items: center;
}
.habitat-choice-game .mc-image-card {
  padding: 8px;
  border-color: rgba(57,168,107,.24);
  background: linear-gradient(180deg,#ffffff,#f5fff9);
}
.habitat-choice-game .mc-image {
  max-height: 205px;
}
.habitat-choice-game .mc-actions {
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
}
.habitat-choice-game .mc-btn {
  min-height: 54px;
  padding: 9px 8px;
  border-radius: 16px;
}
.habitat-facts-game .helper {
  margin-bottom: 0;
}
.habitat-facts-game .multi-select-visual {
  padding: 6px;
  border-color: rgba(57,168,107,.24);
  background: #ffffff;
}
.habitat-facts-game .multi-select-visual img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}
.habitat-facts-game .multi-select-panel {
  gap: 10px;
  padding: 12px;
  border-color: rgba(57,168,107,.20);
  background: linear-gradient(180deg,#ffffff,#f5fff9);
}
.habitat-facts-game .multi-select-question {
  padding: 9px 10px;
  font-size: 18px;
}
.habitat-facts-game .multi-select-options {
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 9px;
}
.habitat-facts-game .multi-select-btn {
  min-height: 62px;
  padding: 9px 10px;
  font-size: 14px;
  line-height: 1.16;
}
/* FB2 habitat activity: two-stage progress card matching the established task stepper. */
.activity-stepper.habitat-stepper {
  margin: 8px 0 9px;
  padding: 8px 10px;
  border: 1px solid #cfe5d5;
  border-radius: 15px;
  background: linear-gradient(135deg,#f7fff9,#eef8f2);
  box-shadow: 0 5px 14px rgba(57,168,107,.09);
}
.habitat-stepper .activity-stepper-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  color: #267749;
  font-size: 12px;
}
.habitat-stepper .activity-stepper-label > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 3px 9px rgba(57,168,107,.14);
  font-size: 17px;
  line-height: 1;
}
.habitat-stepper .activity-stepper-label strong {
  font-weight: 900;
  white-space: nowrap;
}
.habitat-stepper .activity-stepper-label small {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 999px;
  background: #e1f5e8;
  color: #267749;
  font-weight: 900;
  line-height: 1.35;
}
.habitat-stepper .activity-stepper-track {
  width: 100%;
  display: flex;
  align-items: center;
}
.habitat-stepper .activity-stepper-track > i {
  flex: 1;
  height: 4px;
  margin: 0 6px;
  border-radius: 999px;
  background: #dbeadf;
}
.habitat-stepper .activity-step {
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  display: grid;
  place-items: center;
  transform: scale(.94);
  border: 2px solid #cfe2d5;
  border-radius: 50%;
  background: #fff;
  transition: transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
.habitat-stepper .activity-step b {
  font-size: 14px;
  line-height: 1;
}
.habitat-stepper .activity-step.done {
  border-color: #39a86b;
  background: #eaf8ef;
}
.habitat-stepper .activity-step.active {
  transform: scale(1.06);
  border-color: #39a86b;
  background: #f0fff5;
  box-shadow: 0 0 0 4px rgba(57,168,107,.12);
}

@media (max-width:420px) {
  .activity-stepper.habitat-stepper {
    margin: 7px 0 8px;
    padding: 7px 9px;
  }
  .habitat-stepper .activity-stepper-label {
    margin-bottom: 6px;
  }
  .habitat-stepper .activity-stepper-label > span {
    width: 27px;
    height: 27px;
    flex-basis: 27px;
    font-size: 16px;
  }
  .habitat-stepper .activity-step {
    width: 29px;
    height: 29px;
    flex-basis: 29px;
  }
  .habitat-choice-game .mc-image {
    max-height: 178px;
  }
  .habitat-choice-game .mc-card {
    min-height: 48px;
    padding: 8px 10px;
    font-size: 16px;
  }
  .habitat-choice-game .mc-btn {
    min-height: 50px;
    padding: 8px 5px;
    font-size: 13px;
  }
  .habitat-facts-game .multi-select-visual img {
    height: 128px;
  }
  .habitat-facts-game .multi-select-panel {
    gap: 8px;
    padding: 10px;
  }
  .habitat-facts-game .multi-select-question {
    padding: 7px 8px;
    font-size: 16px;
  }
  .habitat-facts-game .multi-select-options {
    gap: 7px;
  }
  .habitat-facts-game .multi-select-btn {
    min-height: 58px;
    padding: 7px 8px;
    font-size: 12.5px;
  }
}

@media (max-height:720px) and (max-width:420px) {
  .habitat-choice-game .mc-image {
    max-height: 150px;
  }
  .habitat-facts-game .multi-select-visual img {
    height: 112px;
  }
  .habitat-facts-game .multi-select-btn {
    min-height: 52px;
    font-size: 12px;
  }
}

/* Optional fixed-bottom advance action keeps completed answers visible without requiring scroll. */
.multi-select-next-result.multi-select-sticky-next,
.mc-compact-result.mc-sticky-next {
  position: fixed;
  left: 50%;
  bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 1200;
  width: min(340px, calc(100vw - 24px));
  margin: 0;
  padding: 9px 10px;
  transform: translateX(-50%);
  border: 1px solid rgba(57,168,107,.32);
  border-radius: 16px;
  background: rgba(247,255,250,.98);
  box-shadow: 0 10px 28px rgba(28,92,56,.20);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.multi-select-next-result.multi-select-sticky-next span,
.mc-compact-result.mc-sticky-next span {
  display: block;
  margin-bottom: 7px;
  color: #1f7144;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}
.multi-select-next-result.multi-select-sticky-next .mc-next-btn,
.mc-compact-result.mc-sticky-next .mc-next-btn {
  width: 100%;
  min-height: 46px;
  margin: 0;
  border-radius: 13px;
}
@media (max-width:420px) {
  .multi-select-next-result.multi-select-sticky-next,
  .mc-compact-result.mc-sticky-next {
    width: calc(100vw - 20px);
    bottom: max(8px, env(safe-area-inset-bottom));
    padding: 8px;
    border-radius: 14px;
  }
  .multi-select-next-result.multi-select-sticky-next span,
  .mc-compact-result.mc-sticky-next span {
    margin-bottom: 6px;
    font-size: 11.5px;
  }
  .multi-select-next-result.multi-select-sticky-next .mc-next-btn,
  .mc-compact-result.mc-sticky-next .mc-next-btn {
    min-height: 44px;
  }
}



/* Canli Cesitliligi: compact two-column reference table and research box. */
.biodiversity-table-choice-card .mc-reference-table{
  min-width:0;
  table-layout:fixed;
}
.biodiversity-table-choice-card .mc-reference-table th:first-child,
.biodiversity-table-choice-card .mc-reference-table td:first-child{
  width:30%;
  min-width:0;
}
.biodiversity-table-choice-card .mc-reference-table th:nth-child(2),
.biodiversity-table-choice-card .mc-reference-table td:nth-child(2){
  width:70%;
  white-space:normal;
}
.biodiversity-table-choice-card .mc-reference-edge-cue,
.biodiversity-table-choice-card .mc-reference-scroll-wrap::before,
.biodiversity-table-choice-card .mc-reference-scroll-wrap::after{
  display:none;
}
.biodiversity-table-choice-card .mc-card{
  min-height:82px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:13px 15px;
  border:2px solid #c8ead8;
  border-radius:20px;
  background:linear-gradient(180deg,#fff 0%,#f7fffa 100%);
}
.biodiversity-research-game .property-box-card{
  background:linear-gradient(180deg,#f4fff9 0%,#f7fbff 100%);
  border-color:rgba(47,159,112,.22);
}
.biodiversity-research-game .property-visual{
  border-color:rgba(47,159,112,.28);
  background:#effcf5;
}
.biodiversity-research-game .property-kicker{
  background:#def7e9;
  color:#227a53;
}
.biodiversity-research-game .property-chip{
  border-color:#cce8da;
  box-shadow:0 7px 14px rgba(35,111,78,.08);
}
.biodiversity-research-game .property-chip.selected,
.biodiversity-research-game .property-chip:focus-visible{
  border-color:#2f9f70;
  box-shadow:0 0 0 4px rgba(47,159,112,.14),0 7px 14px rgba(35,111,78,.08);
}
.biodiversity-research-game .property-drop-box{
  border-color:rgba(47,159,112,.46);
  box-shadow:inset 0 0 0 6px rgba(47,159,112,.04),0 10px 20px rgba(35,111,78,.07);
}
.biodiversity-research-game .property-drop-box.ready,
.biodiversity-research-game .property-drop-box.drop-hover{
  border-color:#2f9f70;
  background:#f1fff7;
  box-shadow:0 0 0 5px rgba(47,159,112,.13),0 10px 20px rgba(35,111,78,.07);
}
@media (max-width:600px){
  .biodiversity-table-choice-card .mc-reference-card{
    padding:8px;
  }
  .biodiversity-table-choice-card .mc-reference-table{
    font-size:11px;
  }
  .biodiversity-table-choice-card .mc-reference-table th,
  .biodiversity-table-choice-card .mc-reference-table td{
    padding:7px 6px;
  }
  .biodiversity-table-choice-card .mc-card{
    min-height:68px;
    margin-bottom:5px;
    padding:10px 12px;
    font-size:15px;
  }
  .biodiversity-table-choice-card .mc-actions{
    gap:7px;
  }
  .biodiversity-research-game .property-top{
    grid-template-columns:64px 1fr;
    align-items:center;
  }
  .biodiversity-research-game .property-visual{
    min-height:64px;
    max-height:64px;
    border-radius:18px;
  }
  .biodiversity-research-game .property-visual span{
    font-size:34px;
  }
  .biodiversity-research-game .property-top h3{
    font-size:18px;
  }
  .biodiversity-research-game .property-top p{
    font-size:12px;
  }
  .biodiversity-research-game .property-bank{
    grid-template-columns:1fr 1fr;
    gap:8px;
  }
  .biodiversity-research-game .property-chip{
    min-height:58px;
    padding:9px 10px;
    font-size:12px;
    line-height:1.25;
    text-align:center;
  }
  .biodiversity-research-game .property-drop-box{
    min-height:150px;
  }
  .biodiversity-research-game .property-placed-list{
    grid-template-columns:1fr 1fr;
    gap:7px;
  }
  .biodiversity-research-game .property-placed{
    padding:8px 9px;
    font-size:11px;
    line-height:1.25;
  }
}

/* Canli Cesitliligi: compact one-question research decision mode. */
.biodiversity-research-game.research-single-mode{
  padding-bottom:110px;
}
.biodiversity-research-game .research-status-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
  margin-bottom:10px;
}
.biodiversity-research-game .research-status-pill{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:40px;
  padding:8px 10px;
  border:1.5px solid #cce8da;
  border-radius:15px;
  background:#fff;
  color:#245f47;
  box-shadow:0 5px 12px rgba(35,111,78,.07);
  font-size:12px;
}
.biodiversity-research-game .research-status-pill.found{
  background:#effcf5;
  border-color:#b8e4cd;
}
.biodiversity-research-game .research-lab-card{
  position:relative;
  overflow:hidden;
  border:2px solid #bfe6d2;
  border-radius:24px;
  padding:14px;
  background:linear-gradient(160deg,#f4fff9 0%,#ffffff 58%,#eef8ff 100%);
  box-shadow:0 12px 28px rgba(30,103,72,.09);
}
.biodiversity-research-game .research-lab-card::after{
  content:"";
  position:absolute;
  width:120px;
  height:120px;
  right:-55px;
  top:-55px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(47,159,112,.12),rgba(47,159,112,0) 70%);
  pointer-events:none;
}
.biodiversity-research-game .research-lab-head{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:64px 1fr;
  gap:12px;
  align-items:center;
}
.biodiversity-research-game .research-lab-icon{
  display:grid;
  place-items:center;
  width:64px;
  height:64px;
  border:2px solid #9fd8bc;
  border-radius:20px;
  background:#edfff5;
  font-size:34px;
  box-shadow:inset 0 -5px 0 rgba(47,159,112,.08);
}
.biodiversity-research-game .research-lab-kicker{
  display:inline-flex;
  padding:5px 9px;
  border-radius:999px;
  background:#dff7e9;
  color:#237a54;
  font-size:11px;
  font-weight:900;
}
.biodiversity-research-game .research-lab-head h3{
  margin:5px 0 2px;
  color:#173d31;
  font-size:19px;
}
.biodiversity-research-game .research-lab-head p{
  margin:0;
  color:#547267;
  font-size:12px;
  line-height:1.35;
}
.biodiversity-research-game .research-found-track{
  display:flex;
  justify-content:center;
  gap:6px;
  margin:12px 0 10px;
}
.biodiversity-research-game .research-found-dot{
  width:12px;
  height:12px;
  border:2px solid #a9d8c0;
  border-radius:50%;
  background:#fff;
  transition:transform .2s ease,background .2s ease,border-color .2s ease;
}
.biodiversity-research-game .research-found-dot.filled{
  border-color:#13a86c;
  background:#13a86c;
  box-shadow:0 0 0 3px rgba(19,168,108,.12);
  transform:scale(1.08);
}

.biodiversity-research-game .research-collection-box{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:38px 1fr auto;
  align-items:center;
  gap:9px;
  width:100%;
  margin:11px 0 10px;
  padding:9px 10px;
  border:1.5px solid #a8dec3;
  border-radius:16px;
  background:linear-gradient(180deg,#effcf5 0%,#e7f8ef 100%);
  color:#1b6f4c;
  text-align:left;
  font:inherit;
  cursor:pointer;
  box-shadow:0 5px 12px rgba(35,111,78,.07);
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;
}
.biodiversity-research-game .research-collection-box:not(:disabled):active{
  transform:translateY(2px);
}
.biodiversity-research-game .research-collection-box:disabled{
  cursor:default;
  opacity:.72;
}
.biodiversity-research-game .research-collection-icon{
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  border:1.5px solid #91d2b0;
  border-radius:12px;
  background:#fff;
  font-size:20px;
}
.biodiversity-research-game .research-collection-copy{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.biodiversity-research-game .research-collection-copy strong{
  color:#176844;
  font-size:12px;
  line-height:1.15;
}
.biodiversity-research-game .research-collection-copy small{
  color:#588071;
  font-size:10px;
  line-height:1.2;
}
.biodiversity-research-game .research-collection-action{
  color:#168158;
  font-size:11px;
  font-weight:900;
  white-space:nowrap;
}
.biodiversity-research-game .research-collection-modal{
  position:fixed;
  inset:0;
  z-index:220;
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:rgba(13,45,34,.48);
  backdrop-filter:blur(5px);
}
.biodiversity-research-game .research-collection-modal.open{
  display:flex;
}
.research-collection-modal-open{
  overflow:hidden;
}
.biodiversity-research-game .research-collection-modal-card{
  width:min(620px,100%);
  max-height:min(72vh,620px);
  overflow:hidden;
  border:2px solid #9bd8b9;
  border-radius:22px;
  background:#f8fffb;
  box-shadow:0 22px 60px rgba(8,47,32,.28);
}
.biodiversity-research-game .research-collection-modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:12px 14px;
  border-bottom:1px solid #cde8da;
  background:#eaf9f1;
}
.biodiversity-research-game .research-collection-modal-head>div{
  display:flex;
  align-items:center;
  gap:8px;
  color:#176844;
}
.biodiversity-research-game .research-collection-close{
  padding:7px 10px;
  border:1px solid #b7dcca;
  border-radius:11px;
  background:#fff;
  color:#245f47;
  font:inherit;
  font-size:11px;
  font-weight:900;
  cursor:pointer;
}
.biodiversity-research-game .research-collection-list{
  display:grid;
  gap:8px;
  max-height:calc(min(72vh,620px) - 60px);
  overflow:auto;
  padding:12px;
}
.biodiversity-research-game .research-collection-item{
  display:grid;
  grid-template-columns:28px 1fr;
  gap:9px;
  align-items:start;
  padding:10px;
  border:1px solid #cde8da;
  border-radius:14px;
  background:#fff;
}
.biodiversity-research-game .research-collection-item>span{
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  border-radius:50%;
  background:#20ad72;
  color:#fff;
  font-size:11px;
  font-weight:1000;
}
.biodiversity-research-game .research-collection-item p{
  margin:2px 0 0;
  color:#23483b;
  font-size:12px;
  font-weight:800;
  line-height:1.35;
}
.biodiversity-research-game .research-collection-empty{
  padding:22px 12px;
  color:#688277;
  text-align:center;
  font-size:12px;
}
.biodiversity-research-game .research-collection-pop{
  animation:researchCollectionPop .42s ease-out;
}
@keyframes researchCollectionPop{
  0%{transform:scale(.97)}
  55%{transform:scale(1.025);box-shadow:0 0 0 5px rgba(31,174,113,.12),0 7px 16px rgba(35,111,78,.1)}
  100%{transform:scale(1);box-shadow:0 5px 12px rgba(35,111,78,.07)}
}
.biodiversity-research-game .research-question-card{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:150px;
  padding:24px 22px;
  border:2px solid #d4e9df;
  border-radius:22px;
  background:#fff;
  box-shadow:0 8px 18px rgba(30,92,67,.07);
  text-align:center;
}
.biodiversity-research-game .research-question-card.resolved{
  border-color:#7dd8ad;
  background:#f5fff9;
}
.biodiversity-research-game .research-question-card p{
  position:relative;
  z-index:1;
  margin:0;
  max-width:560px;
  color:#173d31;
  font-size:19px;
  font-weight:900;
  line-height:1.35;
}
.biodiversity-research-game .research-question-mark{
  position:absolute;
  top:10px;
  right:14px;
  color:#d9eee4;
  font-size:44px;
  font-weight:1000;
  line-height:1;
}
.biodiversity-research-game .research-decision-actions{
  display:grid;
  grid-template-columns:1.18fr .82fr;
  gap:10px;
  margin-top:12px;
}
.biodiversity-research-game .research-decision-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:64px;
  padding:11px 12px;
  border:2px solid transparent;
  border-radius:18px;
  font:inherit;
  font-weight:900;
  cursor:pointer;
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease,background .16s ease;
}
.biodiversity-research-game .research-decision-btn.accept{
  border-color:#38c98c;
  background:linear-gradient(180deg,#eafff4 0%,#dff8eb 100%);
  color:#08794b;
  box-shadow:0 7px 0 #a7dfc3,0 11px 18px rgba(18,111,72,.08);
}
.biodiversity-research-game .research-decision-btn.reject{
  border-color:#ffc98d;
  background:linear-gradient(180deg,#fffaf1 0%,#fff1dd 100%);
  color:#9a5a13;
  box-shadow:0 7px 0 #efd0a5,0 11px 18px rgba(127,83,27,.07);
}
.biodiversity-research-game .research-decision-btn:not(:disabled):active{
  transform:translateY(4px);
  box-shadow:0 3px 0 rgba(0,0,0,.12);
}
.biodiversity-research-game .research-decision-btn.is-correct{
  border-color:#13aa6d;
  background:#e5faef;
}
.biodiversity-research-game .research-decision-btn.is-wrong{
  border-color:#ef6a72;
  background:#fff0f1;
  color:#a92e37;
}
.biodiversity-research-game .research-decision-icon{
  display:grid;
  place-items:center;
  min-width:26px;
  font-size:22px;
}
.biodiversity-research-game .research-decision-result{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin-top:12px;
  min-height:42px;
  padding:9px 11px;
  border-radius:14px;
  font-size:12px;
  font-weight:850;
  text-align:center;
}
.biodiversity-research-game .research-decision-result.good{
  color:#087a4b;
  background:#e8faef;
  border:1px solid #abe1c4;
}
.biodiversity-research-game .research-decision-result.bad{
  color:#a42f38;
  background:#fff0f1;
  border:1px solid #f4b3b7;
}
.biodiversity-research-game .research-result-icon{
  display:grid;
  place-items:center;
  width:24px;
  height:24px;
  border-radius:50%;
  background:rgba(255,255,255,.76);
  font-weight:1000;
}
.biodiversity-research-game .research-sticky-next{
  position:fixed;
  left:50%;
  bottom:12px;
  z-index:80;
  width:min(680px,calc(100vw - 24px));
  transform:translateX(-50%);
  display:grid;
  grid-template-columns:1fr auto;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border:2px solid #83d9ae;
  border-radius:19px;
  background:rgba(244,255,249,.97);
  box-shadow:0 15px 38px rgba(20,78,56,.2);
  backdrop-filter:blur(8px);
  animation:researchStickyIn .28s ease-out both;
}
.biodiversity-research-game .research-sticky-copy{
  display:flex;
  align-items:center;
  gap:8px;
  color:#126c49;
  font-size:12px;
}
.biodiversity-research-game .research-sticky-copy>span{
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  border-radius:50%;
  background:#19b878;
  color:#fff;
  font-weight:1000;
}
.biodiversity-research-game .research-next-btn{
  min-height:44px;
  white-space:nowrap;
}
.biodiversity-research-game .research-pop{ animation:researchPop .35s ease-out; }
.biodiversity-research-game .research-shake{ animation:researchShake .36s ease-out; }
@keyframes researchStickyIn{ from{opacity:0;transform:translate(-50%,16px) scale(.98)} to{opacity:1;transform:translate(-50%,0) scale(1)} }
@keyframes researchPop{ 0%{transform:scale(.94)} 65%{transform:scale(1.04)} 100%{transform:scale(1)} }
@keyframes researchShake{ 0%,100%{transform:translateX(0)} 25%{transform:translateX(-6px)} 50%{transform:translateX(5px)} 75%{transform:translateX(-3px)} }
@media (max-width:600px){
  .biodiversity-research-game.research-single-mode{
    padding-bottom:96px;
  }
  .biodiversity-research-game .research-status-row{
    gap:6px;
    margin-bottom:7px;
  }
  .biodiversity-research-game .research-status-pill{
    min-height:34px;
    padding:6px 7px;
    font-size:10px;
  }
  .biodiversity-research-game .research-lab-card{
    padding:10px;
    border-radius:20px;
  }
  .biodiversity-research-game .research-lab-head{
    grid-template-columns:50px 1fr;
    gap:9px;
  }
  .biodiversity-research-game .research-lab-icon{
    width:50px;
    height:50px;
    border-radius:16px;
    font-size:27px;
  }
  .biodiversity-research-game .research-lab-head h3{
    margin-top:3px;
    font-size:16px;
  }
  .biodiversity-research-game .research-lab-head p{
    font-size:10.5px;
  }
  .biodiversity-research-game .research-found-track{
    margin:8px 0;
  }
  .biodiversity-research-game .research-found-dot{
    width:10px;
    height:10px;
  }
  .biodiversity-research-game .research-question-card{
    min-height:128px;
    padding:18px 15px;
    border-radius:18px;
  }
  .biodiversity-research-game .research-question-card p{
    font-size:16px;
    line-height:1.3;
  }
  .biodiversity-research-game .research-decision-actions{
    gap:8px;
    margin-top:9px;
  }
  .biodiversity-research-game .research-decision-btn{
    min-height:58px;
    padding:8px 7px;
    border-radius:16px;
    font-size:11px;
    line-height:1.15;
  }
  .biodiversity-research-game .research-decision-icon{
    min-width:22px;
    font-size:18px;
  }
  .biodiversity-research-game .research-decision-result{
    margin-top:8px;
    min-height:36px;
    padding:7px 9px;
    font-size:10.5px;
  }
  .biodiversity-research-game .research-sticky-next{
    bottom:7px;
    width:calc(100vw - 14px);
    grid-template-columns:1fr auto;
    padding:7px 8px;
    border-radius:16px;
  }
  .biodiversity-research-game .research-sticky-copy{
    font-size:10px;
  }
  .biodiversity-research-game .research-sticky-copy>span{
    width:24px;
    height:24px;
  }
  .biodiversity-research-game .research-next-btn{
    min-height:39px;
    padding:8px 11px;
    font-size:11px;
  }
  .biodiversity-research-game .research-collection-box{
    grid-template-columns:32px 1fr auto;
    gap:7px;
    margin:7px 0 8px;
    padding:7px 8px;
    border-radius:14px;
  }
  .biodiversity-research-game .research-collection-icon{
    width:32px;
    height:32px;
    border-radius:10px;
    font-size:17px;
  }
  .biodiversity-research-game .research-collection-copy strong{font-size:10.5px;}
  .biodiversity-research-game .research-collection-copy small{font-size:9px;}
  .biodiversity-research-game .research-collection-action{font-size:9.5px;}
  .biodiversity-research-game .research-collection-modal{padding:10px;}
  .biodiversity-research-game .research-collection-modal-card{max-height:78vh;border-radius:18px;}
  .biodiversity-research-game .research-collection-modal-head{padding:9px 10px;}
  .biodiversity-research-game .research-collection-modal-head strong{font-size:12px;}
  .biodiversity-research-game .research-collection-list{max-height:calc(78vh - 52px);padding:9px;gap:7px;}
  .biodiversity-research-game .research-collection-item{padding:8px;grid-template-columns:24px 1fr;gap:7px;}
  .biodiversity-research-game .research-collection-item>span{width:24px;height:24px;font-size:10px;}
  .biodiversity-research-game .research-collection-item p{font-size:10.5px;}
}
