/* JTL Games page */
[hidden] { display: none !important; }
#jtl-games { background: #f4f6fb; }
.g-hero { background: radial-gradient(120% 140% at 85% 0%, #0a3fa8 0%, var(--navy, #003087) 45%, var(--navy2, #00205a) 100%); color: #fff; padding: 8rem 1.25rem 4.5rem; }
@media (max-width: 900px) { .g-hero { padding-top: 6rem; } }
.g-hero-in { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 1.75rem; }
.g-hero-logo { width: 88px; height: 88px; object-fit: contain; filter: drop-shadow(0 8px 18px rgba(0,0,0,.35)); animation: g-float 4s ease-in-out infinite; flex-shrink: 0; }
@keyframes g-float { 50% { transform: translateY(-8px) rotate(-3deg); } }
.g-eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-lt, #ECC84A); margin-bottom: .6rem; }
.g-hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; margin: 0 0 .75rem; color: #fff; }
.g-hero h1 em { font-style: normal; color: var(--gold-lt, #ECC84A); }
.g-sub { max-width: 560px; font-size: 1.05rem; line-height: 1.6; color: rgba(255,255,255,.78); margin: 0; }

.g-wrap { max-width: 1100px; margin: -2.75rem auto 0; padding: 0 1rem 3rem; position: relative; }

/* stats */
.g-stats { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.4fr; gap: .75rem; background: #fff; border-radius: 18px; padding: 1rem; box-shadow: 0 1px 2px rgba(0,32,90,.06), 0 12px 32px rgba(0,32,90,.10); }
.g-stat { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; padding: .5rem; border-radius: 12px; background: #f7f8fc; min-width: 0; }
.g-stat-v { font-size: 1.45rem; font-weight: 800; color: var(--navy, #003087); line-height: 1; }
.g-stat-k { font-size: .72rem; font-weight: 600; color: #667; text-transform: uppercase; letter-spacing: .06em; text-align: center; }
.g-stat-s { font-size: .78rem; color: #556; }
.g-stat-level .g-stat-v { font-size: 1.9rem; }
.g-xpbar { width: 100%; max-width: 160px; height: 8px; border-radius: 99px; background: #e3e7f2; overflow: hidden; }
.g-xpbar span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold, #D4A820), var(--gold-lt, #ECC84A)); transform-origin: left; transform: scaleX(0); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.g-ring { --p: 0; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--gold, #D4A820) calc(var(--p) * 360deg), #e3e7f2 0); position: relative; }
.g-ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #f7f8fc; }
.g-ring span { position: relative; font-size: .72rem; font-weight: 800; color: var(--navy, #003087); }
.g-badges { display: flex; flex-wrap: wrap; gap: .3rem; justify-content: center; }
.g-badge { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 1rem; background: #e9ecf4; filter: grayscale(1); opacity: .45; }
.g-badge.on { background: #fff6d6; box-shadow: inset 0 0 0 2px var(--gold, #D4A820); filter: none; opacity: 1; }

/* controls */
.g-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem 1rem; margin: 1.5rem 0 1.25rem; }
.g-field { display: flex; flex-direction: column; gap: .3rem; font-size: .75rem; font-weight: 700; color: #556; text-transform: uppercase; letter-spacing: .06em; }
.g-field select { font: inherit; font-size: .95rem; text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--navy2, #00205a); padding: .55rem 2rem .55rem .8rem; border: 1.5px solid #d6dbea; border-radius: 10px; background: #fff; min-width: 150px; cursor: pointer; }
.g-field select:focus-visible { outline: 3px solid rgba(212,168,32,.5); outline-offset: 1px; }
.g-topics { display: flex; flex-wrap: wrap; gap: .45rem; margin-left: auto; }
.g-chip { font: inherit; font-size: .88rem; font-weight: 600; padding: .5rem .9rem; border-radius: 99px; border: 1.5px solid #d6dbea; background: #fff; color: #334; cursor: pointer; transition: transform .15s, background-color .15s, border-color .15s; }
.g-chip:hover { transform: translateY(-1px); border-color: var(--navy, #003087); }
.g-chip:active { transform: translateY(0); }
.g-chip.on { background: var(--navy, #003087); border-color: var(--navy, #003087); color: #fff; }
.g-chip:focus-visible, .g-card:focus-visible, .g-btn:focus-visible, .g-ghost:focus-visible { outline: 3px solid rgba(212,168,32,.6); outline-offset: 2px; }

/* game menu */
.g-menu { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.g-card { font: inherit; text-align: left; display: flex; flex-direction: column; gap: .45rem; padding: 1.4rem 1.25rem 1.1rem; border-radius: 18px; border: 0; background: #fff; cursor: pointer; color: #223; box-shadow: 0 1px 2px rgba(0,32,90,.06), 0 8px 24px rgba(0,32,90,.08); transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s; position: relative; overflow: hidden; }
.g-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--navy, #003087), var(--gold, #D4A820)); }
.g-card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(0,32,90,.08), 0 18px 40px rgba(0,32,90,.16); }
.g-card:active { transform: translateY(-1px); }
.g-card-ic { font-size: 2.1rem; }
.g-card-t { font-size: 1.1rem; font-weight: 800; color: var(--navy2, #00205a); }
.g-card-d { font-size: .88rem; line-height: 1.5; color: #556; flex: 1; }
.g-card-best { font-size: .75rem; font-weight: 700; color: #9a7a10; }
.g-card-play { font-size: .9rem; font-weight: 800; color: var(--navy, #003087); margin-top: .3rem; }

/* stage */
.g-stage { background: #fff; border-radius: 20px; padding: 1.25rem; box-shadow: 0 1px 2px rgba(0,32,90,.06), 0 12px 32px rgba(0,32,90,.10); scroll-margin-top: 90px; }
.g-stage-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding-bottom: 1rem; border-bottom: 1px solid #eef0f6; margin-bottom: 1.25rem; }
.g-stage-title { margin: 0; font-size: 1.25rem; font-weight: 800; color: var(--navy2, #00205a); flex: 1; }
.g-stage-info { font-size: .95rem; font-weight: 600; color: #445; }
.g-stage-info b { color: var(--navy, #003087); }
.g-btn, .g-ghost { font: inherit; font-weight: 700; font-size: .95rem; border-radius: 12px; padding: .7rem 1.2rem; cursor: pointer; transition: transform .15s, background-color .15s, box-shadow .15s; }
.g-btn { border: 0; color: var(--navy2, #00205a); background: linear-gradient(180deg, var(--gold-lt, #ECC84A), var(--gold, #D4A820)); box-shadow: 0 2px 0 #a8840f, 0 6px 16px rgba(212,168,32,.3); }
.g-btn:hover { transform: translateY(-1px); }
.g-btn:active { transform: translateY(1px); box-shadow: 0 1px 0 #a8840f; }
.g-ghost { border: 1.5px solid #d6dbea; background: #fff; color: #334; }
.g-ghost:hover { border-color: var(--navy, #003087); color: var(--navy, #003087); }
.g-row { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }

/* pairs */
.g-pairs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; max-width: 720px; margin: 0 auto; perspective: 900px; }
.g-pair { font: inherit; aspect-ratio: 4 / 3; border: 0; padding: 0; background: none; cursor: pointer; position: relative; }
.g-pair-num { position: absolute; top: .35rem; left: .45rem; z-index: 2; min-width: 1.6em; padding: .05em .35em; border-radius: 999px; background: rgba(0,32,90,.85); box-shadow: inset 0 0 0 1.5px var(--gold-lt, #ECC84A); color: #fff; font-weight: 800; font-size: clamp(.95rem, 2.4vw, 1.35rem); line-height: 1.3; text-align: center; pointer-events: none; }
.g-pair-in { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.g-pair.up .g-pair-in, .g-pair.done .g-pair-in { transform: rotateY(180deg); }
.g-pair-back, .g-pair-front { position: absolute; inset: 0; border-radius: 14px; display: grid; place-items: center; backface-visibility: hidden; -webkit-backface-visibility: hidden; padding: .4rem; text-align: center; }
.g-pair-back { background: linear-gradient(145deg, var(--navy, #003087), var(--navy2, #00205a)); box-shadow: inset 0 0 0 2px rgba(212,168,32,.55), 0 4px 10px rgba(0,32,90,.18); }
.g-pair-back img { width: 42%; max-width: 54px; opacity: .9; }
.g-pair:hover .g-pair-back { box-shadow: inset 0 0 0 2px var(--gold-lt, #ECC84A), 0 8px 18px rgba(0,32,90,.25); }
.g-pair-front { transform: rotateY(180deg); background: #fff; box-shadow: inset 0 0 0 2px #d6dbea; font-weight: 700; font-size: clamp(.8rem, 2.2vw, 1.05rem); color: #223; }
.g-pair-front.learn { color: var(--navy, #003087); }
.g-pair-front.pic { font-size: clamp(1.8rem, 6vw, 2.8rem); }
.g-pair.done .g-pair-front { box-shadow: inset 0 0 0 3px var(--gold, #D4A820); background: #fffbea; }

/* flashcards */
.g-flash { max-width: 440px; margin: 0 auto; perspective: 1000px; }
.g-fcard { font: inherit; display: block; width: 100%; aspect-ratio: 3 / 2; border: 0; padding: 0; background: none; cursor: pointer; }
.g-fcard-in { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.g-fcard.flipped .g-fcard-in { transform: rotateY(180deg); }
.g-f-front, .g-f-back { position: absolute; inset: 0; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.g-f-front { background: linear-gradient(145deg, var(--navy, #003087), var(--navy2, #00205a)); color: #fff; box-shadow: 0 10px 30px rgba(0,32,90,.25); }
.g-f-word { font-size: clamp(1.6rem, 6vw, 2.4rem); font-weight: 800; }
.g-f-hint { font-size: .8rem; color: rgba(255,255,255,.6); }
.g-f-back { transform: rotateY(180deg); background: #fffbea; box-shadow: inset 0 0 0 3px var(--gold, #D4A820), 0 10px 30px rgba(0,32,90,.15); }
.g-f-pic { font-size: 3.4rem; }
.g-f-mean { font-size: 1.3rem; font-weight: 700; color: var(--navy2, #00205a); }

/* speed */
.g-timebar { height: 10px; border-radius: 99px; background: #e3e7f2; overflow: hidden; margin-bottom: 1.25rem; }
.g-timebar span { display: block; height: 100%; background: linear-gradient(90deg, var(--navy, #003087), #2c6be0); transform-origin: left; transition: transform 1s linear; }
.g-timebar.hot span { background: linear-gradient(90deg, var(--red, #CF142B), #ff5a6e); }
.g-speed { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 640px; margin: 0 auto; }
.g-col { display: flex; flex-direction: column; gap: .6rem; }
.g-tile { font: inherit; font-weight: 700; font-size: 1rem; padding: .95rem .8rem; border-radius: 12px; border: 1.5px solid #d6dbea; background: #fff; color: #223; cursor: pointer; transition: transform .12s, background-color .15s, border-color .15s, opacity .3s; }
.g-tile:hover { border-color: var(--navy, #003087); }
.g-tile.sel { border-color: var(--navy, #003087); background: #eaf0ff; transform: scale(1.02); }
.g-tile.ok { border-color: var(--gold, #D4A820); background: #fffbea; opacity: .55; cursor: default; }
.g-tile.bad { border-color: var(--red, #CF142B); background: #fff0f2; animation: g-shake .35s; }
@keyframes g-shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

/* listen */
.g-hear { display: block; margin: 0 auto 1rem; }
.g-note { text-align: center; color: #667; font-size: .9rem; min-height: 1.2em; }
.g-listen { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; max-width: 620px; margin: 0 auto; }
.g-pic { font: inherit; font-size: 2.8rem; aspect-ratio: 1; border-radius: 16px; border: 1.5px solid #d6dbea; background: #fff; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; transition: transform .15s, border-color .15s, background-color .15s; }
.g-pic small { font-size: .78rem; font-weight: 700; color: #334; }
.g-pic:hover { transform: translateY(-2px); border-color: var(--navy, #003087); }
.g-pic.ok { border-color: var(--gold, #D4A820); background: #fffbea; }
.g-pic.bad { border-color: var(--red, #CF142B); background: #fff0f2; opacity: .7; }

/* end of a game */
.g-win { text-align: center; padding: 1.5rem 1rem; }
.g-win-ic { font-size: 3rem; animation: g-float 2s ease-in-out infinite; }
.g-win h4 { font-size: 1.5rem; font-weight: 800; color: var(--navy2, #00205a); margin: .4rem 0; }
.g-win p { color: #556; margin: 0; }

/* effects */
.g-float { position: absolute; transform: translate(-50%, 0); font-weight: 800; color: var(--gold, #D4A820); text-shadow: 0 1px 0 #fff; pointer-events: none; z-index: 60; animation: g-up .9s ease-out forwards; }
@keyframes g-up { to { transform: translate(-50%, -40px); opacity: 0; } }
.g-spark { position: absolute; width: 8px; height: 8px; border-radius: 2px; pointer-events: none; z-index: 60; animation: g-spark .8s ease-out forwards; }
@keyframes g-spark { to { transform: translate(var(--dx), var(--dy)) rotate(200deg); opacity: 0; } }
.g-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; background: var(--navy2, #00205a); color: #fff; font-weight: 700; padding: .8rem 1.2rem; border-radius: 12px; box-shadow: 0 0 0 2px var(--gold, #D4A820), 0 12px 30px rgba(0,0,0,.25); z-index: 70; transition: transform .35s, opacity .35s; }
.g-toast.show { transform: translate(-50%, 0); opacity: 1; }

/* why */
.g-why { background: #fff; padding: 3.5rem 1.25rem; }
.g-why-in { max-width: 1100px; margin: 0 auto; text-align: center; }
.g-why h2 { font-size: 1.9rem; font-weight: 800; color: var(--navy2, #00205a); margin: 0 0 1.75rem; }
.g-why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; text-align: left; }
.g-why-grid div { background: #f7f8fc; border-radius: 16px; padding: 1.25rem; }
.g-why-grid span { font-size: 1.6rem; }
.g-why-grid h3 { font-size: 1rem; font-weight: 800; color: var(--navy, #003087); margin: .5rem 0 .35rem; }
.g-why-grid p { font-size: .9rem; line-height: 1.55; color: #556; margin: 0; }
.g-research { color: #667; font-size: .92rem; margin: 1.75rem auto 1.25rem; max-width: 560px; }
.g-cta { display: inline-block; font-weight: 800; color: var(--navy2, #00205a); background: linear-gradient(180deg, var(--gold-lt, #ECC84A), var(--gold, #D4A820)); padding: .85rem 1.4rem; border-radius: 12px; text-decoration: none; box-shadow: 0 2px 0 #a8840f, 0 8px 20px rgba(212,168,32,.3); transition: transform .15s; }
.g-cta:hover { transform: translateY(-2px); }

@media (max-width: 900px) {
  .g-stats { grid-template-columns: repeat(4, 1fr); }
  .g-stat-badges { grid-column: 1 / -1; }
  .g-menu, .g-why-grid { grid-template-columns: 1fr 1fr; }
  .g-topics { margin-left: 0; }
}
@media (max-width: 560px) {
  .g-hero { padding: 2.5rem 1rem 4rem; }
  .g-hero-in { flex-direction: column; text-align: center; gap: 1rem; }
  .g-hero-logo { display: none; }
  .g-stats { grid-template-columns: repeat(3, 1fr); padding: .75rem; gap: .5rem; }
  .g-stat-v { font-size: 1.2rem; }
  .g-stat-k { font-size: .62rem; }
  .g-ring { width: 48px; height: 48px; }
  .g-stat-level { grid-column: 1 / -1; }
  .g-controls { flex-direction: column; align-items: stretch; }
  .g-field select { width: 100%; }
  .g-menu, .g-why-grid { grid-template-columns: 1fr; }
  .g-pairs { grid-template-columns: repeat(3, 1fr); gap: .5rem; }
  .g-listen { grid-template-columns: 1fr 1fr; }
  .g-stage { padding: 1rem .75rem; }
}
/* ── flips that work in every browser: each face is hidden half-way through the turn ── */
.g-pair, .g-fcard { display: block; position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.g-pair:focus-visible, .g-fcard:focus-visible { outline: 3px solid rgba(212,168,32,.6); outline-offset: 3px; border-radius: 16px; }
.g-pair-front, .g-f-back { visibility: hidden; transition: visibility 0s .2s; }
.g-pair-back, .g-f-front { visibility: visible; transition: visibility 0s .2s; }
.g-pair.up .g-pair-front, .g-pair.done .g-pair-front, .g-fcard.flipped .g-f-back { visibility: visible; }
.g-pair.up .g-pair-back, .g-pair.done .g-pair-back, .g-fcard.flipped .g-f-front { visibility: hidden; }
.g-f-word2 { font-size: .95rem; font-weight: 700; color: #9a7a10; }
.g-snd, .g-snd-inline { border: 0; cursor: pointer; border-radius: 50%; display: inline-grid; place-items: center; transition: transform .15s, background-color .15s; }
.g-snd { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; font-size: 1.1rem; background: rgba(255,255,255,.16); z-index: 2; }
.g-snd:hover, .g-snd-inline:hover { transform: scale(1.08); background: rgba(212,168,32,.35); }
.g-snd-inline { width: 34px; height: 34px; font-size: 1rem; background: #eef1f8; vertical-align: middle; }
.g-fcard.flipped .g-snd { background: rgba(0,48,135,.08); }
.g-dots { display: flex; gap: 6px; justify-content: center; margin-bottom: .9rem; }
.g-dots span { width: 9px; height: 9px; border-radius: 50%; background: #dfe3ee; transition: background-color .3s, transform .3s; }
.g-dots span.on { background: var(--gold, #D4A820); transform: scale(1.15); }

.g-opts { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 1rem; }
.g-opts .g-tile { min-width: 140px; }

/* open the box */
.g-boxes { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; max-width: 640px; margin: 0 auto; }
.g-box { font: inherit; aspect-ratio: 1; border: 0; border-radius: 16px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem;
  background: linear-gradient(160deg, #c0392b, var(--red, #CF142B) 55%, #8f0d1d); color: #fff; box-shadow: inset 0 0 0 3px rgba(255,255,255,.18), 0 6px 0 #6e0a16, 0 10px 20px rgba(0,0,0,.15);
  transition: transform .15s; position: relative; overflow: hidden; }
.g-box::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 14px; transform: translateX(-50%); background: var(--gold, #D4A820); opacity: .9; }
.g-box-lid { position: relative; font-size: 1.6rem; font-weight: 800; background: var(--navy2, #00205a); border-radius: 50%; width: 46px; height: 46px; display: grid; place-items: center; box-shadow: 0 0 0 3px var(--gold, #D4A820); }
.g-box:hover:not(.open) { transform: translateY(-3px) rotate(-2deg); }
.g-box.open { background: #fffbea; box-shadow: inset 0 0 0 3px var(--gold, #D4A820); color: #223; cursor: default; animation: g-pop .35s; }
.g-box.open::before { display: none; }
.g-box-pic { font-size: 2.6rem; }
.g-box small { font-size: .75rem; font-weight: 700; color: var(--navy, #003087); }
.g-box.won { opacity: .75; }
@keyframes g-pop { 0% { transform: scale(.8); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }
.g-boxq { min-height: 90px; }

/* whack-a-mole */
.g-whack-q { text-align: center; font-size: 1.15rem; color: #334; margin-bottom: 1rem; }
.g-whack-q b { color: var(--navy, #003087); font-size: 1.4rem; }
.g-holes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 480px; margin: 0 auto; }
.g-hole { aspect-ratio: 1.15; border-radius: 50% / 40%; background: radial-gradient(ellipse at 50% 85%, #3b2a1a 0 38%, #6b4a2b 39% 55%, #8fbf5a 56%); position: relative; overflow: hidden; }
.g-hole.hit { box-shadow: 0 0 0 4px var(--gold, #D4A820); }
.g-hole.miss { box-shadow: 0 0 0 4px var(--red, #CF142B); }
.g-mole { font: inherit; position: absolute; left: 50%; bottom: 8%; width: 66%; aspect-ratio: 1; border-radius: 50% 50% 40% 40%; border: 0; cursor: pointer; font-size: clamp(1.6rem, 6vw, 2.4rem);
  background: radial-gradient(circle at 50% 35%, #b98a5e, #8a5d38); box-shadow: inset 0 -6px 0 rgba(0,0,0,.18); transform: translate(-50%, 115%); transition: transform .22s cubic-bezier(.2,.8,.2,1.3); }
.g-mole.up { transform: translate(-50%, 0); }

/* unjumble */
.g-ana-pic { text-align: center; margin-bottom: 1rem; }
.g-ana-pic span { font-size: 3.4rem; display: block; }
.g-ana-pic small { font-size: 1rem; color: #556; font-weight: 600; }
.g-slots, .g-code { display: flex; gap: .4rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1rem; }
.g-slot { width: 44px; height: 52px; border-radius: 10px; border-bottom: 4px solid var(--navy, #003087); background: #f3f5fb; display: grid; place-items: center; font-size: 1.5rem; font-weight: 800; color: var(--navy2, #00205a); }
.g-slots.ok .g-slot { border-color: var(--gold, #D4A820); background: #fffbea; }
.g-slots.bad, .g-code.bad { animation: g-shake .35s; }
.g-slots.bad .g-slot, .g-code.bad .g-slot { border-color: var(--red, #CF142B); }
.g-letters, .g-pad { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; }
.g-pad { max-width: 300px; margin: 0 auto; }
.g-letter { font: inherit; width: 52px; height: 52px; border-radius: 12px; border: 0; cursor: pointer; font-size: 1.4rem; font-weight: 800; color: var(--navy2, #00205a);
  background: linear-gradient(180deg, var(--gold-lt, #ECC84A), var(--gold, #D4A820)); box-shadow: 0 4px 0 #a8840f; transition: transform .1s, opacity .2s; }
.g-letter:hover { transform: translateY(-2px); }
.g-letter:active { transform: translateY(2px); box-shadow: 0 2px 0 #a8840f; }
.g-letter:disabled { opacity: .25; cursor: default; transform: none; }

/* escape room */
.g-room { background: radial-gradient(120% 100% at 50% 0%, #1c2b4f, #0b1328); border-radius: 18px; padding: 1.25rem; color: #fff; text-align: center; box-shadow: inset 0 0 0 2px rgba(212,168,32,.35); }
.g-room-story { color: rgba(255,255,255,.8); max-width: 520px; margin: 0 auto 1.1rem; line-height: 1.55; }
.g-locks { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.g-lock { font: inherit; width: 84px; height: 96px; border-radius: 14px; border: 0; cursor: pointer; background: #2a3a63; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.12); transition: transform .15s, box-shadow .15s, background-color .2s; }
.g-lock span { font-size: 1.8rem; }
.g-lock b { font-size: 1.3rem; color: var(--gold-lt, #ECC84A); }
.g-lock:hover:not(.open), .g-lock.sel { transform: translateY(-3px); box-shadow: inset 0 0 0 2px var(--gold, #D4A820), 0 0 18px rgba(212,168,32,.35); }
.g-lock.open { background: #23402c; cursor: default; animation: g-pop .35s; }
.g-chest { font-size: 3rem; margin: 1rem 0 .4rem; }
.g-chest.open { animation: g-pop .5s; filter: drop-shadow(0 0 16px rgba(236,200,74,.8)); }
.g-panel { background: #fff; color: #223; border-radius: 14px; padding: 1rem; min-height: 80px; }
.g-panel .g-note { margin: .4rem 0; }
.g-panel-q { font-size: 1.1rem; font-weight: 600; margin: 0; }
.g-big { font-size: 2.2rem; vertical-align: middle; }
.g-gap { letter-spacing: .18em; font-size: 1.4rem; color: var(--navy, #003087); }

@media (max-width: 560px) {
  .g-menu { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .g-card { padding: 1rem .85rem .85rem; }
  .g-card-d { font-size: .8rem; }
  .g-boxes { gap: .5rem; }
  .g-box-lid { width: 34px; height: 34px; font-size: 1.1rem; }
  .g-box-pic { font-size: 1.8rem; }
  .g-holes { gap: .6rem; }
  .g-slot { width: 36px; height: 44px; font-size: 1.2rem; }
  .g-letter { width: 46px; height: 46px; }
  .g-lock { width: 68px; height: 82px; }
}

@media (prefers-reduced-motion: reduce) {
  .g-hero-logo, .g-win-ic { animation: none; }
  .g-pair-in, .g-fcard-in { transition-duration: .01s; }
}

/* escape room: three themed rooms (v4) */
.g-rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; margin-top: .6rem; }
.g-roomcard { font: inherit; border: 0; cursor: pointer; border-radius: 16px; min-height: 150px; padding: 1rem; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; position: relative; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.g-roomcard:hover { transform: translateY(-3px); }
.g-roomcard-ic { font-size: 2.6rem; position: relative; }
.g-roomcard b { font-size: 1.1rem; position: relative; }
.g-room { position: relative; overflow: hidden; }
.g-room > *:not(.g-fx) { position: relative; z-index: 1; }
.g-fx { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.g-intro { min-height: 260px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.4rem; padding: 1rem 1.25rem; text-align: left; }
.g-intro-t { font-size: 1.6rem; line-height: 1.35; max-width: 560px; margin: 0; animation: g-in 1.2s ease-out both; }
@keyframes g-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.g-code-top { margin: 0 0 1rem; display: flex; gap: .4rem; justify-content: center; }
.g-room .g-code-top .g-slot { background: rgba(255,255,255,.1); color: #fff; border-color: var(--gold, #D4A820); }
.g-code.ok .g-slot { border-color: #3fbf6f; color: #fff; background: rgba(63,191,111,.25); }
.g-room.jolt { animation: g-shake .35s; }

/* dungeon: night stone, red gothic words, lightning */
.g-th-dungeon { background: radial-gradient(90% 120% at 80% 30%, #3a3a3a 0%, #161616 55%, #050505 100%); box-shadow: inset 0 0 0 2px rgba(207,20,43,.4); }
.g-th-dungeon .g-intro-t, .g-roomcard.g-th-dungeon b { font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif; font-style: italic; color: #e3121f; text-shadow: 0 0 12px rgba(227,18,31,.35); letter-spacing: .02em; }
.g-th-dungeon .g-intro-t { font-size: 1.9rem; }
.g-th-dungeon .g-fx { background:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(255,255,255,.5), transparent), radial-gradient(1.5px 1.5px at 30% 70%, rgba(255,255,255,.35), transparent),
    radial-gradient(1.5px 1.5px at 55% 12%, rgba(255,255,255,.45), transparent), radial-gradient(1.5px 1.5px at 75% 55%, rgba(255,255,255,.3), transparent),
    radial-gradient(1.5px 1.5px at 90% 85%, rgba(255,255,255,.4), transparent); }
.g-th-dungeon .g-fx::before { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 70%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 200' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M300 70 L250 78 L262 86 L200 96 L214 102 L150 112 L168 118 L110 126' stroke-width='2.4'/%3E%3Cpath d='M300 110 L260 120 L270 130 L222 138 L236 150 L180 156 L196 166 L120 178' stroke-width='3'/%3E%3Cpath d='M236 150 L210 170 L222 176 L196 196' stroke-width='1.6'/%3E%3Cpath d='M200 96 L178 84 L160 90' stroke-width='1.4'/%3E%3C/g%3E%3C/svg%3E") right center / 100% 100% no-repeat;
  filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 14px #9fc4ff); opacity: 0; animation: g-bolt 5s infinite; }
.g-th-dungeon .g-fx::after { content: ""; position: absolute; inset: 0; background: #fff; opacity: 0; animation: g-flash 5s infinite; }
@keyframes g-bolt { 0%, 62%, 74%, 100% { opacity: 0; } 63%, 66% { opacity: 1; } 64.5% { opacity: .2; } 70% { opacity: .55; } }
@keyframes g-flash { 0%, 62%, 66%, 100% { opacity: 0; } 63% { opacity: .12; } }
.g-th-dungeon .g-lock { background: #2b2b2b; box-shadow: inset 0 0 0 2px rgba(255,255,255,.1); }
.g-th-dungeon .g-lock b { color: #ff4b55; }
.g-th-dungeon .g-lock.open { background: #3b1a1a; }

/* library: the JTL navy and gold, candle light */
.g-th-library { background: radial-gradient(120% 100% at 50% 0%, #1c2b4f, #0b1328); box-shadow: inset 0 0 0 2px rgba(212,168,32,.35); }
.g-th-library .g-intro-t, .g-roomcard.g-th-library b { font-family: Georgia, 'Times New Roman', serif; color: var(--gold-lt, #ECC84A); }
.g-th-library .g-fx { background: radial-gradient(35% 45% at 15% 85%, rgba(236,170,60,.28), transparent 70%); animation: g-candle 2.4s ease-in-out infinite alternate; }
@keyframes g-candle { from { opacity: .65; } to { opacity: 1; } }

/* space station: the JTL rocket among the stars */
.g-th-space { background: radial-gradient(100% 120% at 20% 0%, #1a2b6b 0%, #0a1240 45%, #02040f 100%); box-shadow: inset 0 0 0 2px rgba(120,170,255,.35); }
.g-th-space .g-intro-t, .g-roomcard.g-th-space b { font-family: 'Trebuchet MS', 'Segoe UI', sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #9fd3ff; text-shadow: 0 0 10px rgba(80,170,255,.5); }
.g-th-space .g-intro-t { font-size: 1.35rem; }
.g-th-space .g-fx { background:
    radial-gradient(1.5px 1.5px at 8% 20%, #fff, transparent), radial-gradient(1px 1px at 22% 60%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 40% 30%, #cfe3ff, transparent), radial-gradient(1px 1px at 58% 80%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 72% 15%, #fff, transparent), radial-gradient(1px 1px at 86% 50%, #cfe3ff, transparent),
    radial-gradient(1.5px 1.5px at 94% 88%, #fff, transparent); animation: g-twinkle 3s ease-in-out infinite alternate; }
.g-th-space .g-fx::after { content: "🚀"; position: absolute; right: 6%; top: 14%; font-size: 2.4rem; transform: rotate(-20deg); animation: g-float2 4s ease-in-out infinite; }
.g-room.free.g-th-space .g-fx::after { animation: g-launch 1.2s ease-in forwards; }
@keyframes g-twinkle { from { opacity: .6; } to { opacity: 1; } }
@keyframes g-float2 { 50% { transform: rotate(-20deg) translateY(-8px); } }
@keyframes g-launch { to { transform: rotate(-20deg) translate(80px, -260px); opacity: 0; } }
.g-th-space .g-lock { background: #16245a; }
.g-th-space .g-lock b { color: #9fd3ff; }

@media (max-width: 560px) {
  .g-rooms { grid-template-columns: 1fr; }
  .g-roomcard { min-height: 96px; flex-direction: row; }
  .g-intro { min-height: 220px; }
  .g-intro-t, .g-th-dungeon .g-intro-t { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .g-fx, .g-fx::before, .g-fx::after, .g-intro-t { animation: none !important; }
  .g-th-dungeon .g-fx::before { opacity: .8; }
}

/* ── Quiz show (after Wordwall Quiz / Wayground) ── */
.g-quiz-q { text-align: center; font-size: 1.25rem; margin: .25rem 0 1rem; }
.g-quiz { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; max-width: 760px; margin: 0 auto; }
.g-qopt { font: inherit; font-weight: 800; font-size: 1.05rem; color: #fff; border: 0; border-radius: 14px; padding: 1.1rem 1rem; min-height: 72px; display: flex; align-items: center; gap: .8rem; text-align: left; cursor: pointer; box-shadow: 0 4px 0 rgba(0,0,0,.22); transition: transform .12s, opacity .25s, filter .25s; }
.g-qopt:hover { transform: translateY(-2px); }
.g-qopt:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,.22); }
.g-qopt-0 { background: var(--navy, #003087); }
.g-qopt-1 { background: #1f6fd6; }
.g-qopt-2 { background: var(--gold, #D4A820); color: var(--navy2, #00205a); }
.g-qopt-3 { background: var(--navy2, #00205a); }
.g-qshape { width: 34px; height: 34px; flex-shrink: 0; border-radius: 9px; background: rgba(255,255,255,.18); display: grid; place-items: center; font-size: .95rem; }
.g-qopt.dim { opacity: .3; filter: grayscale(.6); }
.g-qopt.ok { box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--gold, #D4A820); }
.g-qopt.bad { animation: g-shake .35s; box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--red, #CF142B); }
.g-quiz-fb { font-weight: 800; color: var(--navy, #003087); font-size: 1.1rem; margin-top: .9rem; }

/* ── Team battle (after Baamboozle) ── */
.g-tboard { background: radial-gradient(120% 120% at 50% 0%, #0a3fa8, var(--navy2, #00205a)); border-radius: 18px; padding: 1rem; color: #fff; }
.g-tscore { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-bottom: 1rem; }
.g-team { display: flex; justify-content: space-between; align-items: center; padding: .7rem 1rem; border-radius: 12px; background: rgba(255,255,255,.08); border: 2px solid transparent; transition: border-color .2s, background-color .2s; }
.g-team span { font-weight: 700; font-size: .9rem; }
.g-team b { font-size: 1.6rem; font-weight: 900; }
.g-team-0.on { border-color: #5aa0ff; background: rgba(90,160,255,.2); }
.g-team-1.on { border-color: var(--gold, #D4A820); background: rgba(212,168,32,.2); }
.g-tgrid { display: grid; grid-template-columns: repeat(8, 1fr); gap: .5rem; margin-bottom: 1rem; }
.g-ttile { font: inherit; aspect-ratio: 1; border: 0; border-radius: 12px; cursor: pointer; background: linear-gradient(180deg, var(--gold-lt, #ECC84A), var(--gold, #D4A820)); color: var(--navy2, #00205a); font-size: 1.35rem; font-weight: 900; box-shadow: 0 3px 0 #a8840f; transition: transform .12s; display: grid; place-items: center; }
.g-ttile:hover:not(:disabled) { transform: translateY(-2px) rotate(-2deg); }
.g-ttile.used { background: rgba(255,255,255,.1); box-shadow: none; cursor: default; color: #fff; }
.g-ttile.won-0 { background: rgba(90,160,255,.35); }
.g-ttile.won-1 { background: rgba(212,168,32,.4); }
.g-ttile.g-tpow { background: rgba(207,20,43,.35); }
.g-tpic { font-size: 1.6rem; }
.g-tpanel { text-align: center; }
.g-tpts { display: inline-block; background: var(--navy, #003087); color: #fff; border-radius: 8px; padding: .15rem .55rem; font-size: .8rem; font-weight: 800; margin-right: .3rem; vertical-align: middle; }

/* ── Penalty shoot-out ── */
.g-pitch { position: relative; border-radius: 18px; overflow: hidden; padding: 1rem 1rem 5.5rem; text-align: center;
  background: repeating-linear-gradient(180deg, #2f8f3a 0 38px, #2a8234 38px 76px); color: #fff; }
.g-pen-q { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.4); min-height: 3rem; }
.g-pen-q small { opacity: .85; }
.g-goal { position: relative; max-width: 560px; margin: .5rem auto 0; height: 170px; border: 6px solid #fff; border-bottom: 0; border-radius: 6px 6px 0 0;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 2px, transparent 2px 16px), repeating-linear-gradient(0deg, rgba(255,255,255,.18) 0 2px, transparent 2px 16px), rgba(0,32,90,.35); }
.g-pen-spots { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .4rem; padding: .6rem; align-items: start; }
.g-spot { font: inherit; font-weight: 800; font-size: 1rem; color: var(--navy2, #00205a); background: #fff; border: 3px solid var(--gold, #D4A820); border-radius: 12px; padding: .7rem .4rem; cursor: pointer; transition: transform .12s, background-color .2s; position: relative; z-index: 2; }
.g-spot:hover { transform: scale(1.05); }
.g-spot.ok { background: var(--gold-lt, #ECC84A); }
.g-spot.bad { background: #ffd6dc; border-color: var(--red, #CF142B); }
.g-keeper { position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); font-size: 3rem; transition: left .45s cubic-bezier(.2,.8,.2,1), transform .45s; z-index: 1; }
.g-keeper.dive-0 { left: 17%; transform: translateX(-50%) rotate(-35deg); }
.g-keeper.dive-1 { left: 50%; transform: translateX(-50%) translateY(-60px); }
.g-keeper.dive-2 { left: 83%; transform: translateX(-50%) rotate(35deg); }
.g-ball { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); font-size: 2.4rem; transition: bottom .5s cubic-bezier(.2,.7,.3,1), left .5s cubic-bezier(.2,.7,.3,1), transform .5s; z-index: 3; }
.g-ball.shot-0 { left: 22%; bottom: calc(100% - 200px); transform: translateX(-50%) scale(.6) rotate(-360deg); }
.g-ball.shot-1 { left: 50%; bottom: calc(100% - 200px); transform: translateX(-50%) scale(.6) rotate(360deg); }
.g-ball.shot-2 { left: 78%; bottom: calc(100% - 200px); transform: translateX(-50%) scale(.6) rotate(360deg); }
.g-goal-t { font-size: 2rem; font-weight: 900; color: var(--gold-lt, #ECC84A); letter-spacing: .04em; }
.g-saved-t { font-weight: 900; color: #ffd6dc; }
.g-pen-dots { margin-top: .9rem; }
.g-dots span.miss { background: var(--red, #CF142B); }

@media (max-width: 640px) {
  .g-quiz { grid-template-columns: 1fr; }
  .g-qopt { min-height: 58px; padding: .8rem; }
  .g-tgrid { grid-template-columns: repeat(4, 1fr); }
  .g-goal { height: 150px; }
  .g-spot { font-size: .85rem; padding: .55rem .25rem; }
}

/* ── More ways to play (external games: board game, classroom word wall) ── */
.g-more { margin-top: 2rem; }
.g-more-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.g-more-head h2 { font-size: 1.2rem; font-weight: 800; color: var(--navy2, #00205a); margin: 0; }
.g-more-head p { font-size: .85rem; color: #667; margin: 0; }
.g-more-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (max-width: 640px) { .g-more-grid { grid-template-columns: 1fr; } }
.g-more-card { display: flex; flex-direction: column; text-decoration: none; border-radius: 18px; background: #fff; box-shadow: 0 1px 2px rgba(0,32,90,.06), 0 8px 24px rgba(0,32,90,.08); transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s; position: relative; overflow: hidden; }
.g-more-card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(0,32,90,.08), 0 18px 40px rgba(0,32,90,.16); }
.g-more-photo { position: relative; height: 150px; overflow: hidden; background: var(--navy2, #00205a); }
.g-more-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.g-more-card:hover .g-more-photo img { transform: scale(1.05); }
.g-more-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,20,60,.55) 0%, rgba(0,20,60,0) 55%); }
.g-more-ic { position: absolute; left: .9rem; bottom: .7rem; font-size: 1.6rem; filter: drop-shadow(0 2px 4px rgba(0,0,0,.5)); }
.g-more-body { padding: 1.1rem 1.25rem 1.2rem; }
.g-more-t { font-size: 1.05rem; font-weight: 800; color: var(--navy2, #00205a); margin-bottom: .25rem; }
.g-more-d { font-size: .86rem; line-height: 1.5; color: #556; }
.g-more-go { display: block; font-size: .85rem; font-weight: 800; color: var(--navy, #003087); margin-top: .5rem; }

/* ── JTL tip card ── */
.g-tip { margin-top: 1.5rem; border: 1.5px solid var(--gold, #D4A820); background: #fffaef; border-radius: 16px; padding: 1.1rem 1.3rem; }
.g-tip-tag { display: inline-flex; align-items: center; gap: .4rem; background: var(--navy2, #00205a); color: var(--gold-lt, #ECC84A); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 99px; margin-bottom: .6rem; }
.g-tip-tag img { width: 16px; height: 16px; }
.g-tip h3 { font-size: 1.02rem; font-weight: 800; color: var(--navy2, #00205a); margin: 0 0 .5rem; }
.g-tip p { font-size: .88rem; line-height: 1.6; color: #445; margin: 0 0 .5rem; }
.g-tip em { font-style: normal; font-weight: 800; color: var(--navy, #003087); }
.g-tip .g-no { color: var(--red, #CF142B); font-weight: 800; }
.g-tip .g-yes { color: #1e7a2a; font-weight: 800; }
.g-tip a { color: var(--navy, #003087); font-weight: 800; text-decoration: none; }
.g-tip a:hover { text-decoration: underline; }

/* ── v8 JTL touches: the rocket inside the games ── */
.g-stage-title { display: flex; align-items: center; gap: .55rem; }
.g-stage-logo { width: 34px; height: 34px; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 2px 4px rgba(0,32,90,.25)); }
.g-mute { min-width: 44px; padding-left: .6rem; padding-right: .6rem; }
.g-track { --p: 0; position: relative; height: 46px; margin: -.4rem 0 1rem; }
.g-track-line { position: absolute; left: 20px; right: 34px; top: 50%; height: 6px; margin-top: -3px; border-radius: 99px; background: #e3e7f2; overflow: hidden; }
.g-track-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--navy, #003087), var(--gold, #D4A820)); transform-origin: left; transform: scaleX(var(--p)); transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.g-track-run { position: absolute; left: 0; right: 74px; top: 0; bottom: 0; pointer-events: none; }
.g-track-rocket { display: block; width: 100%; height: 100%; transform: translateX(calc(var(--p) * 100%)); transition: transform .7s cubic-bezier(.34,1.56,.64,1); }
.g-track-rocket img { width: 40px; height: 40px; margin-top: 3px; object-fit: contain; transform: rotate(90deg); filter: drop-shadow(0 3px 5px rgba(0,32,90,.3)); }
.g-track-moon { position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.7rem; line-height: 1; opacity: .55; transition: opacity .4s, transform .4s; }
.g-track.done .g-track-moon { opacity: 1; transform: translateY(-50%) scale(1.2); }
.g-rpop { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; pointer-events: none; z-index: 61; animation: g-rpop 1s cubic-bezier(.3,.6,.4,1) forwards; }
@keyframes g-rpop { 0% { transform: translateY(0) scale(.4); opacity: 0; } 15% { opacity: 1; transform: translateY(-6px) scale(1); } 100% { transform: translateY(-120px) scale(.8); opacity: 0; } }
.g-launch { position: relative; width: 110px; height: 130px; margin: 0 auto; }
.g-launch img { position: relative; width: 110px; height: 110px; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0,32,90,.3)); animation: g-launch .9s cubic-bezier(.34,1.56,.64,1) both, g-float 3s .9s ease-in-out infinite; }
.g-flame { position: absolute; left: 50%; bottom: 0; width: 30px; height: 44px; margin-left: -15px; border-radius: 50% 50% 50% 50% / 30% 30% 70% 70%;
  background: radial-gradient(circle at 50% 30%, #fff6c2 0 20%, var(--gold-lt, #ECC84A) 35%, #CF142B 75%, transparent 76%); transform-origin: 50% 0; animation: g-flame .18s ease-in-out infinite alternate; opacity: .9; }
@keyframes g-launch { from { transform: translateY(70px) scale(.5); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes g-flame { from { transform: scaleY(.8) scaleX(.9); } to { transform: scaleY(1.15) scaleX(1); } }
.g-stars { display: flex; justify-content: center; gap: .35rem; margin: .3rem 0 .1rem; }
.g-stars span { font-size: 2rem; line-height: 1; color: #dfe3ee; transform: scale(.4); opacity: 0; animation: g-star .45s cubic-bezier(.34,1.56,.64,1) var(--d) forwards; }
.g-stars span.on { color: var(--gold, #D4A820); text-shadow: 0 2px 6px rgba(212,168,32,.45); }
@keyframes g-star { to { transform: none; opacity: 1; } }
.g-keys { margin: 1rem 0 0; font-size: .8rem; color: #778; text-align: center; }
.g-f-logo { position: absolute; top: 12px; left: 14px; width: 30px; height: 30px; object-fit: contain; opacity: .9; }
.g-box::after { content: ""; position: absolute; right: 8px; bottom: 8px; width: 22px; height: 22px; background: url("brandassets/LOGO/rocketJTL-float.png") center / contain no-repeat; opacity: .85; }
.g-box.open::after { display: none; }
.g-ttile:not(.used) { position: relative; background: url("brandassets/LOGO/rocketJTL-float.png") right 5px bottom 5px / 32% no-repeat, linear-gradient(180deg, var(--gold-lt, #ECC84A), var(--gold, #D4A820)); }
.g-chest-rocket { width: 72px; height: 72px; object-fit: contain; }
.g-goal-crest { position: absolute; left: 50%; bottom: 10px; width: 90px; height: 90px; margin-left: -45px; object-fit: contain; opacity: .22; z-index: 0; pointer-events: none; }
.g-boards { display: flex; max-width: 640px; margin: .4rem auto 0; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,.25); }
.g-board { flex: 1; display: flex; align-items: center; justify-content: center; gap: .3rem; padding: .25rem 0; background: var(--navy2, #00205a); color: var(--gold-lt, #ECC84A); font-weight: 900; font-size: .8rem; letter-spacing: .08em; }
.g-board:nth-child(even) { background: var(--gold, #D4A820); color: var(--navy2, #00205a); }
.g-board img { width: 20px; height: 20px; object-fit: contain; }
@media (max-width: 560px) {
  .g-stage-head { gap: .6rem; }
  .g-stage-title { order: 3; flex-basis: 100%; font-size: 1.15rem; }
  .g-stage-info { margin-left: auto; }
  .g-board:nth-child(n+5) { display: none; }
  .g-stage-logo { width: 28px; height: 28px; }
  .g-goal-crest { width: 64px; height: 64px; margin-left: -32px; }
}
@media (prefers-reduced-motion: reduce) {
  .g-launch img, .g-flame, .g-rpop, .g-stars span { animation: none; opacity: 1; transform: none; }
  .g-rpop { display: none; }
  .g-track-rocket, .g-track-fill { transition: none; }
}

/* Sound Lab card: full width, the phonemic symbols as its picture */
.g-more-wide { grid-column: 1 / -1; flex-direction: row; }
.g-more-wide .g-more-photo { flex: 0 0 40%; height: auto; min-height: 150px; }
.g-more-wide .g-more-body { align-self: center; }
@media (max-width: 640px) { .g-more-wide { flex-direction: column; } .g-more-wide .g-more-photo { flex-basis: auto; height: 150px; } }
.g-more-ipa { display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: .3rem 1rem; padding: 1rem 1.2rem;
  background: radial-gradient(120% 90% at 20% 10%, #0E3478 0%, #00205a 60%); font-family: 'Charis SIL','Doulos SIL','Segoe UI','Lucida Sans Unicode',sans-serif; }
.g-more-ipa span:not(.g-more-ic) { color: #ECC84A; font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 700; position: relative; z-index: 1; transition: transform .35s ease; }
.g-more-ipa span:nth-child(even):not(.g-more-ic) { color: #fff; }
.g-more-card:hover .g-more-ipa span:not(.g-more-ic) { transform: translateY(-2px); }

/* ── v10 (17 Nov 2026): levels, Spelling bee, True or false, Word rain, Build the sentence ── */
.g-levels { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; flex-basis: 100%; }
.g-lv-l { font-size: .75rem; font-weight: 700; color: #556; text-transform: uppercase; letter-spacing: .06em; margin-right: .25rem; }
.g-lv b { display: inline-grid; place-items: center; width: 1.4em; height: 1.4em; border-radius: 50%; background: var(--gold, #D4A820); color: var(--navy2, #00205a); font-size: .8rem; margin-right: .2rem; }
.g-chip.on.g-lv b { background: #fff; }
.g-listen.g-listen-6 { grid-template-columns: repeat(3, 1fr); }
.g-btn-gold { background: linear-gradient(180deg, #fff3c4, var(--gold-lt, #ECC84A)); }

.g-spell { display: flex; flex-direction: column; align-items: center; gap: .9rem; max-width: 520px; margin: 0 auto; }
.g-spell-cue { display: flex; flex-direction: column; align-items: center; gap: .35rem; }
.g-spell-cue .g-big { font-size: 3.4rem; }
.g-spell-cue small { color: #667; font-weight: 600; }
.g-spell-cue .g-hear { margin: .3rem 0 0; }
.g-spell-art { font-weight: 700; color: var(--navy, #003087); }
.g-spell-form { display: flex; gap: .5rem; width: 100%; }
.g-spell-in { flex: 1; min-width: 0; font: inherit; font-size: 1.4rem; font-weight: 700; text-align: center; padding: .7rem .9rem; border-radius: 12px; border: 2px solid #d6dbea; color: var(--navy2, #00205a); background: #fff; }
.g-spell-in:focus { outline: 3px solid rgba(212,168,32,.5); border-color: var(--navy, #003087); }
.g-spell-in.ok { border-color: var(--gold, #D4A820); background: #fffbea; }
.g-spell-in.near { border-color: #e59a1c; background: #fff6e8; }
.g-spell-in.bad { border-color: var(--red, #CF142B); background: #fff0f2; animation: g-shake .35s; }
.g-acc { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: center; }
.g-acc .g-letter { width: 44px; height: 44px; font-size: 1.15rem; }

.g-tf-card { display: flex; flex-direction: column; align-items: center; gap: .4rem; max-width: 360px; margin: 1rem auto 0; padding: 1.2rem; border-radius: 18px; border: 2px solid #d6dbea; background: #fff; transition: border-color .15s, background-color .15s; }
.g-tf-card .g-big { font-size: 4rem; }
.g-tf-card b { font-size: 1.5rem; color: var(--navy2, #00205a); }
.g-tf-card small { color: #667; font-weight: 600; }
.g-tf-card.ok { border-color: var(--gold, #D4A820); background: #fffbea; }
.g-tf-card.bad { border-color: var(--red, #CF142B); background: #fff0f2; animation: g-shake .35s; }
.g-tf-opts .g-tile { min-width: 150px; font-size: 1.1rem; }
.g-tf-yes { color: #1d6b2a; } .g-tf-no { color: var(--red, #CF142B); }

.g-rain-q { text-align: center; }
.g-sky { position: relative; height: 380px; max-width: 640px; margin: .8rem auto 0; border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, #0b1d4a 0%, #18367a 70%, #2f5aa8 100%); box-shadow: inset 0 -6px 0 #6b8f3a; }
.g-sky::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(2px 2px at 20% 18%, #fff8, transparent), radial-gradient(1.5px 1.5px at 70% 30%, #fff8, transparent), radial-gradient(2px 2px at 45% 10%, #fff6, transparent), radial-gradient(1.5px 1.5px at 85% 12%, #fff7, transparent); }
.g-drop { position: absolute; top: -56px; transform: translateX(-50%); font: inherit; font-weight: 800; font-size: 1rem; padding: .6rem .9rem; border-radius: 999px; border: 0; cursor: pointer;
  color: var(--navy2, #00205a); background: linear-gradient(180deg, #fff, #dfe8ff); box-shadow: 0 3px 0 #9fb2e0, 0 8px 18px rgba(0,0,0,.25); white-space: nowrap; max-width: 30%; overflow: hidden; text-overflow: ellipsis;
  animation: g-fall linear forwards; }
.g-drop.ok { background: linear-gradient(180deg, #fff3c4, var(--gold, #D4A820)); }
.g-drop.bad { background: #ffd6dc; opacity: .5; cursor: default; }
.g-drop.miss { background: #ffd6dc; }
@keyframes g-fall { from { top: -56px; } to { top: calc(100% - 50px); } }
.g-dim { opacity: .5; }

.g-sent-mean { text-align: center; font-style: italic; color: #445; }
.g-sent-line { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; min-height: 3.2rem; margin: 1rem auto; padding: .6rem; max-width: 640px; border-radius: 14px; border: 2px dashed #d6dbea; }
.g-sent-line.ok { border-style: solid; border-color: var(--gold, #D4A820); background: #fffbea; }
.g-sent-w { font-weight: 800; font-size: 1.15rem; color: var(--navy2, #00205a); padding: .35rem .2rem; }
.g-letter.g-word { width: auto; min-width: 52px; padding: 0 .9rem; font-size: 1.1rem; }
.g-letter.g-word.bad { animation: g-shake .35s; background: #ffd6dc; }
.g-sent-tiles { margin-bottom: .6rem; }
@media (max-width: 560px) {
  .g-sky { height: 330px; }
  .g-drop { font-size: .88rem; padding: .5rem .65rem; }
  .g-listen.g-listen-6 { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { .g-drop { animation-timing-function: linear; } }
.g-more-where span:not(.g-more-ic) { font-family: "Segoe UI Emoji","Apple Color Emoji","Noto Color Emoji",sans-serif; font-size: clamp(2rem, 4vw, 2.8rem); }

/* What's missing? (v12) — pictures on a table, a cloth comes down, one is gone */
.g-stage-body > [hidden] { display: none !important; }
.g-miss-table { --cols: 3; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: .7rem; max-width: 560px; margin: .4rem auto 1rem; padding: 1rem; border-radius: 20px; background: linear-gradient(160deg, #f6efe0, #efe3c8); border: 2px solid #e2d3ae; position: relative; overflow: hidden; }
.g-miss-table::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, #003087 0 18px, #0a3d9e 18px 36px); transform: translateY(-102%); transition: transform .3s ease-in; pointer-events: none; }
.g-miss-table.cloth::after { transform: translateY(0); }
.g-miss-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; padding: .7rem .4rem; border-radius: 14px; background: #fff; border: 1.5px solid #d6dbea; box-shadow: 0 3px 8px rgba(0,48,135,.08); cursor: pointer; text-align: center; animation: g-miss-in .35s ease-out both; }
.g-miss-card small { font-weight: 700; font-size: .85rem; color: #223; line-height: 1.2; overflow-wrap: anywhere; }
.g-miss-pic { font-size: 2.4rem; line-height: 1.1; }
.g-miss-card.gone { background: repeating-linear-gradient(45deg, #fff 0 10px, #fbf6e8 10px 20px); border: 2px dashed #D4A820; cursor: default; }
.g-miss-card.gone .g-miss-pic { opacity: .6; }
.g-miss-card.found { border-color: #1f9d55; background: #eafaf0; animation: g-miss-pop .4s ease-out; }
.g-miss-opts { justify-content: center; }
@keyframes g-miss-in { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes g-miss-pop { 50% { transform: scale(1.12); } }
@media (max-width: 520px) { .g-miss-table { gap: .45rem; padding: .6rem; --cols: 3 !important; } .g-miss-pic { font-size: 2rem; } .g-miss-card small { font-size: .75rem; } }
/* ── v12 (21 Nov 2026): pinyin / Latin letters under Chinese and Russian words ── */
.g-rom { display: block; font-size: .72rem; font-weight: 600; line-height: 1.2; letter-spacing: .01em; opacity: .72; margin-top: .15em; font-style: normal; text-transform: none; }
.g-rom .g-rom, small .g-rom { font-size: 1em; }
.g-rom-line { flex-basis: 100%; text-align: center; font-size: .9rem; opacity: .85; }
.g-f-word .g-rom, .g-f-word2 .g-rom { font-size: .9rem; }
.g-romchip { margin-left: .4rem; }

/* v13 (22 Nov 2026): Odd one out, Fill the gap, Write it, Mixed challenge */
.g-odd .g-tile, .g-mix .g-opts .g-tile { display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.g-odd .g-tile .g-big { font-size: 2.2rem; }
.g-gap-line { font-size: 1.25rem; line-height: 1.6; text-align: center; }
.g-gap { display: inline-block; min-width: 4.5ch; border-bottom: 3px solid #D4A820; color: transparent; }
.g-gapword { font-size: 1.4rem; letter-spacing: .12em; }
.g-letter-big { font-size: 1.5rem; min-width: 72px !important; }
.g-mix { max-width: 640px; margin: 0 auto; text-align: center; }
.g-mix .g-hear, .g-panel-q .g-hear { margin-left: .4rem; }

/* Games in real classes (24 Nov 2026) */
.g-classes { background: #00205a; color: #fff; padding: 3.5rem 1.25rem; }
.g-classes-in { max-width: 1100px; margin: 0 auto; }
.g-classes h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 850; }
.g-classes-sub { color: #c9d3ea; margin: .4rem 0 0; }
.g-classes h3 { margin: 2rem 0 .9rem; font-size: 1.1rem; color: #F5E3A0; }
.g-cvs { display: grid; grid-template-columns: repeat(3, minmax(0, 270px)); gap: 1.6rem; }
.g-cv video { width: 100%; aspect-ratio: 9/16; object-fit: cover; border-radius: 18px; background: #000; border: 3px solid rgba(212,168,32,.55); display: block; }
.g-cv small { display: block; margin-top: .6rem; color: #ECC84A; font-weight: 800; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.g-cv b { display: block; font-size: 1rem; }
@media (max-width: 860px) { .g-cvs { grid-template-columns: repeat(2, minmax(0, 270px)); } }
@media (max-width: 560px) { .g-cvs { grid-template-columns: 1fr; } }

/* Talk with Jack card (30 Nov 2026): cartoon Jack with a comic speech bubble */
.g-more-talk { display: flex; align-items: flex-end; justify-content: center; gap: .6rem; padding: 1rem 1rem 0; background-image: radial-gradient(rgba(255,255,255,.12) 1.2px, transparent 1.4px); background-size: 9px 9px; }
.g-more-talk img { width: 120px; height: 120px; object-fit: cover; border-radius: 50% 50% 0 0; border: 3px solid #0B1733; border-bottom: 0; position: relative; z-index: 1; }
.g-more-bub { align-self: flex-start; background: #fff; color: #0B1733; font-weight: 800; border: 3px solid #0B1733; border-radius: 18px; padding: .35em .7em; position: relative; z-index: 1; transition: transform .35s ease; }
.g-more-card:hover .g-more-bub { transform: translateY(-2px) rotate(-2deg); }
