/* =========================================================
   EduLabs – Trò chơi "Nhảy cóc – Vượt đầm sen" (engine-nhay-coc.js)
   Mọi lớp có tiền tố nc- (không dùng tên lớp chung đứng riêng ở phạm vi toàn trang).
   Sân chơi cố định 1280 × 720, phóng đều theo khung chứa; ảnh nền phủ kín khung
   (background-size: cover – giữ đúng tỉ lệ, không kéo méo).
   ========================================================= */
.ge-stage .nc-host, .gp-host.nc-host { position: absolute; inset: 0; }
.ge-stage.nc-host { position: relative; inset: auto; }
.nc-host img { max-width: none; }
.nc-host { overflow: hidden; background: #3fb6c9; font-family: "Be Vietnam Pro", "Segoe UI", system-ui, sans-serif; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.nc-host * { box-sizing: border-box; }
.nc-bg { position: absolute; inset: 0; background-size: cover; background-position: 30% 50%; background-repeat: no-repeat; }
.nc-bg.b { opacity: 0; }
.nc-layer { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; transform-origin: 0 0; }
.nc-world { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; will-change: transform; }
.nc-stage { position: absolute; inset: 0; }

/* ---------- lá sen ---------- */
.nc-pad { position: absolute; pointer-events: none; }
/* phần hình của lá (nhấp nhô, nhún) tách khỏi khung bấm: vùng bấm đứng yên khi lá dập dềnh */
.nc-pb { position: absolute; inset: 0; transform-origin: 50% 62%; transform: scaleY(var(--sq, 1)); transition: scale .18s; }
.nc-pb > img.pi, .nc-pad.nc-dock .nc-pb > img, .nc-pad.nc-finish .nc-pb > img { position: relative; display: block; width: 100%; height: 100%; z-index: 1; }
.nc-pring { position: absolute; left: -8%; right: -8%; top: 36%; height: 64%; border-radius: 50%; border: 3px solid rgba(255,255,255,.55); opacity: 0; transform: scale(.9); z-index: 0; }
.nc-pad.nc-cur .nc-pring { animation: nc-ring 2.6s ease-out infinite; }
@keyframes nc-ring { 0% { opacity: .7; transform: scale(.85); } 100% { opacity: 0; transform: scale(1.18); } }
.nc-pglow { position: absolute; left: -22%; right: -22%; top: -24%; bottom: -24%; border-radius: 50%; background: radial-gradient(ellipse, rgba(255,240,140,.95) 0%, rgba(255,214,70,.6) 38%, rgba(255,214,70,0) 70%); opacity: 0; z-index: 0; pointer-events: none; }
.nc-pad.nc-glowon .nc-pglow { opacity: 1; animation: nc-glow .5s ease-in-out infinite alternate; }
.nc-pad.nc-goal .nc-pglow { opacity: .55; animation: nc-glow 1.4s ease-in-out infinite alternate; }
@keyframes nc-glow { from { transform: scale(.9); } to { transform: scale(1.08); } }
.nc-bloom { position: absolute; left: 58%; top: 2%; width: 38%; z-index: 2; opacity: 0; transform: scale(.2); transition: opacity .35s, transform .45s cubic-bezier(.3,1.6,.5,1); }
.nc-pad.nc-done .nc-bloom { opacity: 1; transform: scale(1); }
.nc-pad.nc-done img.pi { filter: saturate(.85) brightness(1.04); }
.nc-pad.nc-goal.nc-reached .nc-pglow { opacity: .9; }

/* ---------- trang trí, biển chặng, sinh vật ---------- */
.nc-deco { position: absolute; pointer-events: none; animation: nc-float 4.2s ease-in-out infinite alternate; animation-delay: var(--dl, 0s); }
.nc-deco.far { z-index: 300; opacity: .96; }
.nc-deco.near { z-index: 600; }
@keyframes nc-float { from { translate: 0 -2px; } to { translate: 0 2px; } }
.nc-sign { position: absolute; z-index: 380; pointer-events: none; }
.nc-sign img { display: block; width: 100%; height: 100%; }
.nc-sign b { position: absolute; left: 8%; right: 8%; top: 18%; height: 32%; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 13px; line-height: 1.02; font-weight: 900; color: #fff6dc; text-shadow: 0 1px 0 #6b3a12, 0 0 3px #6b3a12; }
.nc-crit { position: absolute; left: 0; top: 0; z-index: 820; pointer-events: none; will-change: transform; }
.nc-crit.fish { z-index: 640; }

/* ---------- ếch, hiệu ứng ---------- */
.nc-frog { position: absolute; left: 0; top: 0; transform-origin: 50% 97.7%; z-index: 900; pointer-events: none; will-change: transform; }
.nc-frog img { position: relative; display: block; width: 100%; height: 100%; z-index: 1; }
.nc-fshadow { position: absolute; left: 50%; bottom: 0; width: 56%; height: 16px; margin-bottom: -6px; border-radius: 50%; background: radial-gradient(ellipse, rgba(10,60,30,.42), rgba(10,60,30,0) 70%); z-index: 0; transform-origin: 50% 50%; }
.nc-fx { position: absolute; inset: 0; z-index: 950; pointer-events: none; }
.nc-rip { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.nc-rip .nc-sp { position: absolute; }
.nc-sp { position: absolute; pointer-events: none; will-change: transform, opacity; transform-origin: 50% 50%; }
.nc-sp.splash { transform-origin: 50% 86%; }
.nc-sp.ripple { z-index: -1; }
.nc-plus { position: absolute; font-size: 34px; font-weight: 900; color: #fff7b0; -webkit-text-stroke: 2px #b26a00; paint-order: stroke; text-shadow: 0 3px 0 #8a4f00; white-space: nowrap; pointer-events: none; }

/* ---------- thanh thông tin phía trên ---------- */
.nc-hud { position: absolute; left: 6px; right: 12px; top: 8px; height: 58px; display: flex; align-items: center; gap: 8px; z-index: 1005; padding-left: 152px; }
.nc-logo { position: absolute; left: 0; top: 0; height: 138px; width: auto; pointer-events: none; filter: drop-shadow(0 4px 6px rgba(0,50,30,.25)); }
.nc-plq { position: relative; flex: none; height: 62px; width: 113px; margin-top: -6px; }
.nc-plq img { display: block; width: 100%; height: 100%; }
.nc-plq b { position: absolute; left: 12%; right: 8%; top: 52%; height: 34%; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 900; color: #fff8d6; white-space: nowrap; text-shadow: 0 1px 1px rgba(0,40,0,.6); }
.nc-pill { height: 46px; flex: none; display: inline-flex; align-items: center; white-space: nowrap; border-style: solid; border-width: 0 12px 0 60px; border-image-slice: 0 7% 0 38% fill; border-image-repeat: stretch; padding: 0 12px 1px 8px; min-width: 128px; }
.nc-pill b { font-size: 19px; font-weight: 900; color: #fffbe6; letter-spacing: .2px; text-shadow: 0 1px 1px rgba(0,30,10,.5); }
.nc-score { min-width: 112px; }
.nc-pill.pop b { animation: nc-pop .5s ease-out; display: inline-block; }
.nc-time.warn b { color: #ffd166; animation: nc-pulse .5s ease-in-out infinite alternate; display: inline-block; }
.nc-pill[hidden], .nc-chip[hidden] { display: none; }
.nc-prog { position: relative; flex: none; width: 213px; height: 24px; }
.nc-prog > img:first-child { display: block; width: 100%; height: 100%; }
.nc-pdark { position: absolute; left: 12%; right: 11.5%; top: 30%; height: 40%; border-radius: 0 99px 99px 0; background: linear-gradient(#11502a, #1b6a37); box-shadow: inset 0 2px 3px rgba(0,0,0,.35); }
.nc-pfrog { position: absolute; top: -15px; width: 38px; height: auto; margin-left: -19px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.3)); }
.nc-chip { height: 40px; flex: none; display: inline-flex; align-items: center; gap: 3px; padding: 0 11px; border-radius: 99px; background: linear-gradient(#21854a, #125c31); border: 3px solid #f2c94c; box-shadow: 0 3px 0 #9a7a12; white-space: nowrap; }
.nc-team b { font-size: 16px; color: #fff3b8; } .nc-team span { font-size: 16px; font-weight: 700; color: #fff; margin-left: 4px; }
.nc-heart { width: 22px; height: 22px; fill: #ff5d7a; stroke: #fff; stroke-width: 1.5; }
.nc-heart.off { fill: rgba(255,255,255,.28); }
.nc-gap { flex: 1; min-width: 0; }
.nc-ibtn, .nc-cbtn { flex: none; padding: 0; border: 0; background: none; cursor: pointer; transition: transform .15s; position: relative; }
.nc-ibtn { width: 58px; height: 50px; }
.nc-ibtn img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.nc-mute i { position: absolute; left: 30%; top: 14%; width: 5px; height: 58%; border-radius: 3px; background: #ff5b5b; box-shadow: 0 0 0 2px #fff; transform: rotate(-42deg); display: none; pointer-events: none; }
.nc-muted .nc-mute i { display: block; }
.nc-cbtn { width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle at 40% 30%, #2f9a55, #0f5a2c 70%); border: 4px solid #f3c64a; box-shadow: 0 3px 0 #9a7413, inset 0 2px 0 rgba(255,255,255,.25); }
.nc-cbtn svg { width: 24px; height: 24px; fill: none; stroke: #fff8de; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.nc-exit { background: radial-gradient(circle at 40% 30%, #f07a5a, #c03a28 70%); }
.nc-ibtn:hover, .nc-cbtn:hover { transform: scale(1.07); } .nc-ibtn:active, .nc-cbtn:active { transform: scale(.94); }
.nc-host:not(.nc-inplayer) .nc-ibtn, .nc-host:not(.nc-inplayer) .nc-cbtn { visibility: hidden; }
.nc-hud.tight { gap: 5px; }
.nc-hud.tight .nc-jr { width: 250px; }
.nc-hud.tight .nc-pill { min-width: 0; } .nc-hud.tight .nc-pill b { font-size: 17px; }
.nc-hud.tight2 .nc-jr { width: 205px; } .nc-hud.tight2 .nc-jname { display: none; }
.nc-hud.tight2 .nc-ibtn { width: 50px; height: 44px; } .nc-hud.tight2 .nc-cbtn { width: 42px; height: 42px; }
@keyframes nc-pop { 0% { transform: scale(1); } 40% { transform: scale(1.35); color: #fff36b; } 100% { transform: scale(1); } }
@keyframes nc-pulse { from { transform: scale(1); } to { transform: scale(1.12); } }

/* ---------- câu hỏi (trang trí trái/phải giữ đúng tỉ lệ, chỉ kéo dài đoạn giữa) ---------- */
.nc-q { position: absolute; z-index: 1001; border-style: solid; border-image-repeat: stretch; transition: opacity .24s; }
.nc-q.nc-qout { opacity: 0; }
.nc-qt { width: 100%; height: 100%; display: flex; align-items: safe center; justify-content: center; flex-wrap: wrap; gap: 4px 12px; text-align: center; font-size: 34px; font-weight: 800; line-height: 1.18; color: #2f4a12; padding: 12px 8px 22px; overflow: hidden; }
.nc-q.k1 .nc-qt { padding: 14px 8px 30px; }
.nc-q.k2 .nc-qt { padding: 22px 10px 40px; }
.nc-qt.ph { color: #9aa77a; font-weight: 600; }
.nc-img { max-height: 112px; max-width: 300px; border-radius: 10px; vertical-align: middle; object-fit: contain; }
.nc-frac { display: inline-flex; flex-direction: column; vertical-align: middle; text-align: center; line-height: 1; margin: 0 2px; font-size: .82em; }
.nc-frac > span:first-child { border-bottom: 2px solid currentColor; padding: 0 3px 1px; }
.nc-frac > span:last-child { padding: 1px 3px 0; }
.nc-ov { text-decoration: overline; }

@keyframes nc-shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }

/* ---------- lời nhắn ngắn ---------- */
.nc-fb { position: absolute; right: 24px; top: 196px; z-index: 1003; display: flex; align-items: center; gap: 6px; padding: 6px 20px 7px; border-radius: 99px; background: linear-gradient(#fffef4, #fff3c9); border: 3px solid #f2c94c; box-shadow: 0 4px 0 #b89216; font-size: 20px; font-weight: 800; color: #5a4200; white-space: nowrap; opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .25s, transform .25s; max-width: 640px; overflow: hidden; }
.nc-fb.on { opacity: 1; transform: translateY(0); }
.nc-fb.ok { color: #1f7a16; border-color: #8fd14f; box-shadow: 0 4px 0 #4f9a1e; }
.nc-fb.no { color: #a8481e; }
.nc-fb .nc-img { max-height: 34px; max-width: 60px; border-radius: 6px; }

/* ---------- băng chuyển chặng ---------- */
.nc-banner { position: absolute; left: 50%; top: 250px; width: 360px; height: 200px; margin-left: -180px; z-index: 1004; pointer-events: none; opacity: 0; transform: scale(.6) translateY(20px); transition: opacity .35s, transform .45s cubic-bezier(.3,1.5,.5,1); }
.nc-banner.on { opacity: 1; transform: none; }
.nc-banner img { display: block; width: 100%; height: 100%; }
.nc-banner b { position: absolute; left: 12%; right: 8%; top: 49%; display: block; text-align: center; font-size: 34px; font-weight: 900; color: #fff6c4; text-shadow: 0 2px 0 #0b4a22, 0 0 6px rgba(0,0,0,.35); line-height: 1; }
.nc-banner span { position: absolute; left: 12%; right: 8%; top: 70%; display: block; text-align: center; font-size: 19px; font-weight: 800; color: #fff; text-shadow: 0 1px 2px rgba(0,40,10,.7); white-space: nowrap; }
.nc-veil { position: absolute; inset: 0; z-index: 990; pointer-events: none; background: radial-gradient(ellipse at 50% 55%, rgba(255,255,255,0), rgba(20,70,50,.25)); opacity: 0; transition: opacity .5s; }
.nc-veil.on { opacity: 1; }

/* ---------- tải ảnh ---------- */
.nc-loading { position: absolute; inset: 0; z-index: 1010; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: rgba(225,248,240,.88); font-size: 22px; font-weight: 800; color: #1d6b36; }
.nc-loading img { width: 200px; animation: nc-pulse .7s ease-in-out infinite alternate; }

/* ---------- tạm dừng / kết thúc ---------- */
.nc-paused *, .nc-paused *::before, .nc-paused *::after { animation-play-state: paused !important; }
.nc-ending .nc-q, .nc-ending .nc-fb, .nc-over .nc-q, .nc-over .nc-fb, .nc-over .nc-world, .nc-over .nc-fore, .nc-over .nc-water, .nc-over .nc-amb, .nc-over .nc-flyl { opacity: 0 !important; pointer-events: none; }
.nc-ending .nc-ans, .nc-over .nc-ans { pointer-events: none !important; }
.nc-over .nc-hud .nc-jr, .nc-over .nc-hud .nc-pill, .nc-over .nc-hud .nc-chip, .nc-over .nc-hud .nc-pause, .nc-over .nc-logo { visibility: hidden; }

/* ---------- màn tổng kết (thác nước cầu vồng) ---------- */
.nc-sum { position: absolute; inset: 0; z-index: 1004; opacity: 0; transition: opacity .6s ease; }
.nc-sum.in { opacity: 1; }
.nc-sbg { position: absolute; inset: -1px; background-size: cover; background-position: 50% 50%; }
.nc-sarch { position: absolute; left: 370px; top: -6px; width: 540px; height: auto; z-index: 2; pointer-events: none; }
.nc-satitle { position: absolute; left: 470px; top: 66px; width: 340px; z-index: 3; text-align: center; font-size: 40px; font-weight: 900; color: #fff7cc; -webkit-text-stroke: 2px #7a3d0d; paint-order: stroke; text-shadow: 0 3px 0 #5a2c08; letter-spacing: .5px; }
.nc-sfrog { position: absolute; left: 36px; top: 300px; width: 270px; z-index: 4; animation: nc-hop .9s ease-in-out infinite alternate; transform-origin: 50% 100%; }
.nc-sfrog img { display: block; width: 100%; height: auto; }
.nc-spad { position: absolute; left: 22px; top: 548px; width: 300px; z-index: 3; }
@keyframes nc-hop { from { transform: translateY(4px) scale(1.02, .98); } to { transform: translateY(-16px) scale(.98, 1.02); } }
.nc-conf { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; pointer-events: none; z-index: 6; }
.nc-board { position: absolute; left: 330px; top: 176px; width: 820px; height: 520px; z-index: 5; display: flex; flex-direction: column; align-items: center; padding: 16px 28px 0;
  border-radius: 36px; background: linear-gradient(#fffdf3, #fbf1d2); border: 10px solid #e9b53a; box-shadow: inset 0 0 0 4px #fff0b8, 0 8px 0 #a77a17, 0 16px 34px rgba(0,50,30,.32); animation: nc-boardin .5s cubic-bezier(.3,1.4,.5,1) both; }
@keyframes nc-boardin { from { transform: scale(.9); } to { transform: scale(1); } }
.nc-smsg { margin: 0 0 8px; font-size: 23px; font-weight: 800; color: #24561a; text-align: center; line-height: 1.2; }
.nc-sscore { display: flex; align-items: center; gap: 10px; height: 66px; padding: 0 26px 0 8px; border-radius: 99px; background: linear-gradient(#fff6c8, #ffe58a); border: 3px solid #e9b53a; box-shadow: 0 3px 0 rgba(167,122,23,.5); }
.nc-sscore img { width: 84px; margin: -10px -6px -10px -10px; }
.nc-sscore span { font-size: 20px; font-weight: 800; color: #6a4a00; }
.nc-sscore b { font-size: 40px; font-weight: 900; color: #1f6b1a; min-width: 70px; text-align: right; }
.nc-tiles { display: grid; grid-template-columns: repeat(4, 176px); gap: 12px; margin-top: 12px; }
.nc-tile { height: 106px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 18px; background: rgba(255,255,255,.85); border: 3px solid #a8d878; box-shadow: 0 3px 0 rgba(80,140,40,.35); text-align: center; padding: 0 6px; }
.nc-tile .ic { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 22px; font-weight: 900; color: #fff; }
.nc-tile .ic.ok { background: #3faa2c; } .nc-tile .ic.no { background: #e0564a; } .nc-tile .ic.pc { background: #2f8fd6; font-size: 19px; }
.nc-tile b { font-size: 28px; font-weight: 900; color: #24561a; line-height: 1.05; }
.nc-tile b small { font-size: 13px; font-weight: 700; color: #8a6a2a; }
.nc-tile span { font-size: 15px; font-weight: 700; color: #5d6b3a; line-height: 1.15; }
.nc-tile.ok b { color: #2b8a1e; } .nc-tile.no b { color: #c0392b; }
.nc-tile.rw img { height: 64px; width: auto; margin-bottom: 2px; }
.nc-tile b:empty { display: none; }
.nc-route { position: relative; width: 720px; height: 108px; margin-top: 12px; display: flex; justify-content: space-between; padding: 0 22px; }
.nc-rbar { position: absolute; left: 30px; right: 30px; top: 18px; width: calc(100% - 60px); height: 34px; opacity: .9; }
.nc-rst { position: relative; width: 112px; display: flex; flex-direction: column; align-items: center; z-index: 1; }
.nc-rst .lo { position: relative; width: 66px; height: 66px; border-radius: 50%; background: radial-gradient(circle, #fff, #e8f6d8); border: 4px solid #c9b98a; display: flex; align-items: center; justify-content: center; }
.nc-rst .lo img { width: 52px; filter: grayscale(.85) opacity(.6); }
.nc-rst .lo i { position: absolute; right: -6px; bottom: -4px; width: 26px; height: 26px; border-radius: 50%; background: #3faa2c; color: #fff; font-style: normal; font-size: 16px; font-weight: 900; display: none; align-items: center; justify-content: center; border: 2px solid #fff; }
.nc-rst.nc-ok .lo { border-color: #e9b53a; box-shadow: 0 0 10px rgba(255,210,70,.8); }
.nc-rst.nc-ok .lo img { filter: none; }
.nc-rst.nc-ok .lo i { display: flex; }
.nc-sum.fresh .nc-rst.nc-ok .lo { animation: nc-stamp .5s cubic-bezier(.3,1.6,.5,1) both; animation-delay: calc(var(--i) * .15s + .4s); }
@keyframes nc-stamp { from { transform: scale(.3); } to { transform: scale(1); } }
.nc-rst b { margin-top: 3px; padding: 1px 10px; border-radius: 99px; background: #fff; border: 2px solid #d9c38a; font-size: 14px; font-weight: 800; color: #4a3a0a; }
.nc-rst em { font-style: normal; font-size: 13px; font-weight: 700; color: #4f7a2a; margin-top: 1px; }
.nc-spass { font-size: 18px; font-weight: 700; color: #4f5a2a; margin-top: 2px; }
.nc-spass b { color: #1f6b1a; font-size: 20px; }
.nc-rank { list-style: none; display: flex; gap: 10px; margin: 6px 0 0; padding: 0; }
.nc-rank li { display: flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 99px; background: #f1fbe6; border: 2px solid #a8d878; font-size: 15px; color: #2f4a12; }
.nc-rank li.top { background: #fff3b0; border-color: #e9b53a; }
.nc-rank em { font-style: normal; font-weight: 800; }
.nc-sact { position: absolute; left: 0; right: 0; bottom: -30px; display: flex; justify-content: center; gap: 14px; }
.nc-sbtn { height: 56px; padding: 0 26px; border-radius: 99px; border: 4px solid #f3d36b; background: linear-gradient(#2e9d4f, #146a32); box-shadow: 0 5px 0 #0c4a21; color: #fff; font: inherit; font-size: 21px; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: transform .12s; white-space: nowrap; text-shadow: 0 1px 1px rgba(0,40,0,.5); }
.nc-sbtn:hover { transform: translateY(-2px); } .nc-sbtn:active { transform: translateY(2px); box-shadow: 0 2px 0 #0c4a21; }
.nc-sbtn.cta { background: linear-gradient(#ffd84d, #f5a300); border-color: #fff3b0; box-shadow: 0 5px 0 #b86a00; color: #5a2e00; text-shadow: none; }
.nc-sbtn.exit { background: linear-gradient(#f07a5a, #c03a28); box-shadow: 0 5px 0 #8a2414; }
@media (prefers-reduced-motion: reduce) {
  .nc-deco, .nc-sfrog, .nc-pad.nc-cur .nc-pring { animation: none !important; }
}


/* ===== Lá đáp án: chữ/số in ngay trên mặt lá sen (theo ảnh mẫu) ===== */
.nc-pl { position: absolute; left: 15%; right: 15%; top: 20%; height: 54%; z-index: 3; display: flex; pointer-events: none; }
.nc-plt { width: 100%; height: 100%; display: flex; flex-wrap: wrap; align-items: safe center; align-content: safe center; justify-content: center; gap: 2px 6px; text-align: center; overflow: hidden;
  font-size: 62px; font-weight: 900; line-height: 1.04; color: #fff; -webkit-text-stroke: .085em #13460a; paint-order: stroke fill; text-shadow: 0 3px 0 #13460a, 0 0 10px rgba(0,40,0,.5); overflow-wrap: break-word; word-break: normal; hyphens: manual; }
.nc-pl.sm { left: 11%; right: 11%; top: 17%; height: 60%; }
.nc-pl.sm .nc-plt { color: #1d4a0b; -webkit-text-stroke: 0; text-shadow: none; background: rgba(255,253,236,.93); border-radius: 16px; padding: 4px 8px; box-shadow: 0 3px 0 rgba(28,90,16,.45), inset 0 0 0 2px rgba(255,255,255,.7); line-height: 1.12; font-weight: 800; }
.nc-plt .nc-img { max-height: 100%; max-width: 100%; border-radius: 10px; }
.nc-pad.ph .nc-plt { color: #e9f6d6; -webkit-text-stroke: 0; text-shadow: none; }
.nc-pk { position: absolute; left: 9%; top: 13%; z-index: 4; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(#ffe582, #f4b52b);
  border: 2px solid #fff; box-shadow: 0 2px 0 #a26f0c; color: #5b3a00; font-size: 17px; font-weight: 900; pointer-events: none; }
.nc-host.nc-play .nc-ans { pointer-events: auto; cursor: pointer; }
.nc-host.nc-play .nc-ans:not(.no):hover .nc-pb { scale: 1.05; }
.nc-ans { transition: scale .18s, opacity .3s, filter .3s; }
.nc-ans.picked .nc-pring { opacity: 1; animation: nc-ring 1s ease-out infinite; }
.nc-ans.ok .nc-pglow { background: radial-gradient(ellipse, rgba(170,255,140,.95) 0%, rgba(70,220,80,.6) 40%, rgba(70,220,80,0) 70%); }
.nc-pad.ok .nc-pb::after { content: "✓"; position: absolute; right: 8%; top: 10%; z-index: 5; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #2fb344; border: 2px solid #fff; color: #fff; font-size: 20px; font-weight: 900; box-shadow: 0 2px 0 #1b7a2a; }
.nc-pad.no .nc-pb::after { content: "✗"; position: absolute; right: 8%; top: 10%; z-index: 5; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #e5483b; border: 2px solid #fff; color: #fff; font-size: 19px; font-weight: 900; }
.nc-ans.dim { filter: saturate(.55) brightness(.92); } .nc-ans.dim .nc-pl, .nc-ans.dim .nc-pk { opacity: .55; }
.nc-ans.shake .nc-pb { animation: nc-shake .42s ease-in-out; }
.nc-ans .nc-pk, .nc-ans .nc-pl { transition: opacity .3s; }

/* ===== Mặt hồ sinh động: vệt sáng trôi + lấp lánh ===== */
.nc-water { position: absolute; left: -440px; right: -440px; top: 300px; bottom: 0; pointer-events: none; overflow: hidden; transition: top 1s ease; }
.nc-shim { position: absolute; inset: 0; opacity: .75;
  background: repeating-linear-gradient(174deg, rgba(255,255,255,0) 0 26px, rgba(255,255,255,.13) 30px, rgba(255,255,255,0) 35px 64px);
  background-size: 520px 100%; animation: nc-shim 14s linear infinite;
  -webkit-mask-image: linear-gradient(rgba(0,0,0,.15), #000 30%); mask-image: linear-gradient(rgba(0,0,0,.15), #000 30%); }
.nc-shim.b { opacity: .45; background-size: 380px 100%; animation-duration: 9s; animation-direction: reverse;
  background-image: repeating-linear-gradient(8deg, rgba(255,255,255,0) 0 40px, rgba(220,255,250,.12) 44px, rgba(255,255,255,0) 48px 90px); }
@keyframes nc-shim { to { background-position: 520px 0; } }
.nc-water b { position: absolute; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: radial-gradient(#fff 0, rgba(255,255,255,.85) 30%, rgba(255,255,255,0) 70%); opacity: 0; animation: nc-tw 3s ease-in-out infinite; }
.nc-water b::before, .nc-water b::after { content: ""; position: absolute; left: 50%; top: 50%; width: 26px; height: 2px; margin: -1px 0 0 -13px; background: linear-gradient(90deg, rgba(255,255,255,0), #fff, rgba(255,255,255,0)); }
.nc-water b::after { transform: rotate(90deg); width: 16px; margin-left: -8px; }
@keyframes nc-tw { 0%, 100% { opacity: 0; transform: scale(.3); } 50% { opacity: .95; transform: scale(1); } }

/* ===== Sen tiền cảnh (hai góc dưới, đung đưa nhẹ) ===== */
.nc-fore { position: absolute; inset: 0; pointer-events: none; z-index: 985; }
.nc-fore .fl { position: absolute; bottom: -26px; width: 200px; height: 190px; transform-origin: 50% 100%; animation: nc-sway 6s ease-in-out infinite alternate; }
.nc-fore .fl.l { left: -96px; } .nc-fore .fl.r { right: -118px; bottom: -58px; animation-delay: -3s; }
.nc-fore img { position: absolute; display: block; }
.nc-fore .lf { left: 0; bottom: 0; width: 200px; }
.nc-fore .lo { left: 46px; bottom: 58px; width: 118px; }
.nc-fore .bu { left: 150px; bottom: 74px; width: 34px; }
.nc-fore .fl.r .lo { left: 30px; } .nc-fore .fl.r .bu { left: 6px; }
@keyframes nc-sway { from { rotate: -1.6deg; } to { rotate: 1.6deg; } }
.nc-edit .nc-fore { opacity: .95; }
@media (prefers-reduced-motion: reduce) { .nc-shim, .nc-water b, .nc-fore .fl { animation: none !important; } }


/* ===== Bản nâng cấp: cỡ lá theo độ dài đáp án ===== */
.nc-pad.nc-sz-m .nc-pl { left: 12%; right: 12%; }
.nc-pad.nc-sz-l .nc-pl, .nc-pad.nc-sz-img .nc-pl { left: 6%; right: 6%; top: 19%; height: 62%; }
.nc-pl.sm .nc-plt { border: 2px solid #b9dd8c; }
.nc-pl.grow { height: auto !important; min-height: 62%; }
.nc-pl.grow .nc-plt { height: auto; overflow: visible; }
.nc-pk { left: 5%; top: 9%; width: 32px; height: 32px; font-size: 18px; }
.nc-host[data-s="4"] .nc-ans .nc-pglow { opacity: .32; }
/* lá vừa đáp: chữ đáp án thu xuống mép trước của lá (không bị ếch che), còn đọc được đến câu sau */
.nc-pad.nc-kept .nc-pl { left: 12%; right: 12%; top: auto; bottom: -6%; height: 30%; z-index: 6; }
.nc-pad.nc-kept .nc-plt { color: #1d4a0b; -webkit-text-stroke: 0; text-shadow: none; background: rgba(255,253,236,.96); border: 2px solid #8fd14f; border-radius: 12px; padding: 1px 8px; box-shadow: 0 3px 0 rgba(28,90,16,.4); font-weight: 800; line-height: 1.08; }
.nc-pad.nc-kept .nc-pk { display: none; }

/* ===== Thanh hành trình 5 mốc ===== */
.nc-jr { position: relative; flex: none; width: 310px; height: 50px; }
.nc-jtr { position: absolute; left: 0; right: 0; top: 19px; height: 13px; border-radius: 99px; background: linear-gradient(#0f4a26, #1d6a3a); border: 2px solid #f3d36b; box-shadow: 0 2px 0 #9a7413, inset 0 2px 3px rgba(0,0,0,.35); }
.nc-jfill { position: absolute; left: 0; top: 21px; height: 9px; width: 0; border-radius: 99px; background: linear-gradient(#b8f57a, #48b934); box-shadow: inset 0 1px 0 rgba(255,255,255,.5); }
.nc-ms { position: absolute; top: 7px; width: 36px; height: 36px; margin-left: -18px; border-radius: 50%; border: 3px solid #e7dcb4; background: #fff; box-shadow: 0 2px 0 rgba(0,40,10,.3); opacity: .6; filter: grayscale(.6); transition: opacity .3s, filter .3s, width .3s, height .3s, margin .3s, top .3s; z-index: 1; }
.nc-ms img { display: block; width: 100%; height: 100%; border-radius: 50%; }
.nc-ms i { position: absolute; right: -6px; bottom: -5px; width: 18px; height: 18px; border-radius: 50%; background: #2fb344; border: 2px solid #fff; color: #fff; font-size: 11px; font-style: normal; font-weight: 900; display: none; place-items: center; line-height: 1; }
.nc-ms.nc-msd { opacity: 1; filter: none; border-color: #f3c64a; }
.nc-ms.nc-msd i { display: grid; }
.nc-ms.nc-msc { opacity: 1; filter: none; width: 46px; height: 46px; margin-left: -23px; top: 2px; border-color: #ffe066; box-shadow: 0 0 0 3px rgba(255,224,102,.55), 0 0 14px rgba(255,236,140,.95); z-index: 2; }
.nc-ms.nc-mspop { animation: nc-stamp .55s cubic-bezier(.3,1.6,.5,1); }
.nc-jfrog { position: absolute; top: -12px; width: 32px; height: auto; margin-left: -16px; z-index: 3; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); pointer-events: none; }
.nc-jname { position: absolute; top: 46px; transform: translateX(-50%); padding: 0 9px; border-radius: 99px; background: rgba(14,84,40,.9); border: 2px solid #f3d36b; font-size: 12px; line-height: 15px; font-weight: 900; color: #fff8d6; white-space: nowrap; z-index: 2; transition: left .4s; }
.nc-flyl { position: absolute; inset: 0; pointer-events: none; z-index: 1006; }
.nc-flylo { position: absolute; left: 0; top: 0; width: 60px; height: auto; will-change: transform; }

/* ===== Ếch: hào quang khi đúng liên tiếp ===== */
.nc-faura { will-change: transform; position: absolute; left: -16%; right: -16%; top: -6%; bottom: -8%; border-radius: 50%; background: radial-gradient(ellipse, rgba(255,242,150,.8), rgba(255,220,90,.38) 45%, rgba(255,220,90,0) 70%); opacity: 0; z-index: 0; transition: opacity .4s; pointer-events: none; }
.nc-frog.nc-aura .nc-faura { opacity: 1; animation: nc-glow 1s ease-in-out infinite alternate; }
.nc-streak { position: absolute; font-size: 30px; font-weight: 900; color: #fff3a6; -webkit-text-stroke: 2px #a35a00; paint-order: stroke; text-shadow: 0 3px 0 #7a4200; white-space: nowrap; pointer-events: none; }
.nc-sp.glotus { filter: sepia(1) saturate(3.5) hue-rotate(-14deg) brightness(1.18) drop-shadow(0 0 10px rgba(255,210,60,.95)); }
.nc-wconf { z-index: 1000; }

/* ===== Vật trôi trên mặt nước (cánh hoa · lá trôi · bọt ghềnh) ===== */
.nc-flo { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 310; will-change: transform; }
.nc-flo.petal { width: 14px; height: 9px; margin: -4px 0 0 -7px; border-radius: 60% 40% 60% 40%; background: linear-gradient(135deg, #ffe0ec, #ff86b4); }
.nc-flo.leaf { opacity: .95; }
.nc-flo.foam { will-change: transform, opacity; width: 70px; height: 15px; margin: -7px 0 0 -35px; border-radius: 50%; background: radial-gradient(ellipse, rgba(255,255,255,.92), rgba(255,255,255,0) 70%); animation: nc-foam 1.4s ease-in-out infinite alternate; }
@keyframes nc-foam { from { opacity: .45; } to { opacity: 1; } }

/* ===== Không khí từng chặng: sương thác, tia nắng ===== */
.nc-amb { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s; overflow: hidden; }
.nc-host[data-s="4"] .nc-amb.back { opacity: 1; }
.nc-host[data-s="3"] .nc-amb.back { opacity: .45; }
.nc-host[data-s="2"] .nc-amb.front, .nc-host[data-s="4"] .nc-amb.front { opacity: 1; }
.nc-mist { will-change: transform, opacity; position: absolute; left: 22%; top: 300px; width: 720px; height: 190px; border-radius: 50%; background: radial-gradient(ellipse, rgba(255,255,255,.55), rgba(255,255,255,0) 70%); animation: nc-mist 9s ease-in-out infinite alternate; }
.nc-mist.b { left: 46%; top: 350px; width: 560px; height: 150px; animation-duration: 11s; animation-delay: -4s; }
.nc-mist.c { left: 2%; top: 370px; width: 520px; height: 140px; animation-duration: 13s; animation-delay: -7s; }
@keyframes nc-mist { from { transform: translateX(-40px); opacity: .55; } to { transform: translateX(50px); opacity: 1; } }
.nc-ray { will-change: opacity; position: absolute; top: -140px; left: 150px; width: 150px; height: 820px; transform-origin: 50% 0; transform: rotate(-30deg); background: linear-gradient(rgba(255,250,214,.42), rgba(255,250,214,0) 85%); animation: nc-ray 6s ease-in-out infinite alternate; }
.nc-ray.b { left: 300px; width: 80px; animation-delay: -2s; animation-duration: 7.5s; }
.nc-ray.c { left: 420px; width: 120px; animation-delay: -4s; animation-duration: 9s; }
@keyframes nc-ray { from { opacity: .25; } to { opacity: .85; } }
.nc-spass .nc-fin { font-style: normal; display: inline-block; padding: 0 10px; margin-right: 4px; border-radius: 99px; background: #fff3b0; border: 2px solid #e9b53a; color: #6a4a00; font-weight: 800; }
.nc-tile .nc-rwc { display: block; font-size: 12px; font-weight: 700; color: #8a6a2a; }
@media (prefers-reduced-motion: reduce) { .nc-mist, .nc-ray, .nc-flo, .nc-ms.nc-mspop, .nc-frog.nc-aura .nc-faura { animation: none !important; } }

/* ===== Tổng kết: tiêu đề cong theo vòm biển gỗ + bố cục thẻ gọn, cân đối ===== */
.nc-stitle { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; pointer-events: none; overflow: visible; z-index: 3; }
.nc-stitle text { font: 900 42px "Be Vietnam Pro", "Segoe UI", sans-serif; letter-spacing: .5px; }
.nc-stitle .nc-st-sh { fill: rgba(60,25,0,.45); stroke: rgba(60,25,0,.45); stroke-width: 7px; stroke-linejoin: round; }
.nc-stitle .nc-st-x { fill: #8a4a12; stroke: #5a2c08; stroke-width: 6px; stroke-linejoin: round; paint-order: stroke; }
.nc-stitle .nc-st-f { fill: url(#ncStG); stroke: #6b360c; stroke-width: 3px; stroke-linejoin: round; paint-order: stroke; }
.nc-board { top: 170px; height: 538px; padding: 18px 30px 20px; justify-content: space-between; }
.nc-smsg { margin: 0; font-size: 24px; }
.nc-srow { display: flex; align-items: center; justify-content: center; gap: 16px; }
.nc-srow .nc-sscore { height: 64px; }
.nc-spass { display: flex; align-items: center; gap: 8px; height: 54px; padding: 0 18px; margin: 0; border-radius: 99px; background: #f1fbe6; border: 3px solid #a8d878; font-size: 19px; font-weight: 800; color: #3d5a1e; white-space: nowrap; }
.nc-spass .nc-fin { margin: 0; font-size: 17px; }
.nc-spass b { font-size: 24px; color: #1f6b1a; }
.nc-tiles { grid-template-columns: repeat(4, 178px); gap: 14px; margin: 0; }
.nc-tile { height: 118px; gap: 3px; }
.nc-tile b { font-size: 32px; }
.nc-tile span { font-size: 16px; }
.nc-tile.rw b:empty + span { font-size: 15px; }
.nc-route { margin: 0; height: 112px; width: 740px; }
.nc-rank { margin: 0; }
.nc-sact { position: static; margin: 0; }
.nc-sbtn { height: 54px; }
.nc-sscore span, .nc-sscore b { white-space: nowrap; }
.nc-sscore.nc-steam span { font-size: 18px; }
.nc-sscore.nc-steam b { font-size: 32px; min-width: 0; }
/* ếch rơi xuống nước: phần thân dưới chìm dưới mặt nước, viền nước ôm quanh */
.nc-frog.nc-wet img { clip-path: inset(0 0 20% 0); }
.nc-frog.nc-wet::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: 16%; height: 16%; border-radius: 50%; z-index: 2; background: radial-gradient(ellipse at 50% 50%, rgba(255,255,255,0) 46%, rgba(235,252,255,.75) 58%, rgba(160,225,240,.35) 70%, rgba(160,225,240,0) 74%); }
.nc-pad.nc-sinking { transition: none !important; }
/* bộ ảnh mới cho kiểu cổ điển: lá chìm 4 khung giữ tỉ lệ, ếch thò mắt khỏi nước không bị cắt */
.nc-pb > img.pi.nc-sinkf { object-fit: contain; object-position: 50% 62%; transform: scale(1.12); }
.nc-frog.nc-wet[data-pose="peek"] img, .nc-frog.nc-wet[data-pose="dunk"] img, .nc-frog.nc-wet[data-pose="swim"] img { clip-path: none; }
.nc-frog.nc-wet[data-pose="peek"]::after, .nc-frog.nc-wet[data-pose="dunk"]::after { display: none; }
.nc-pad.nc-rippled .nc-pk, .nc-pad.nc-rippled .nc-pl, .nc-pad.nc-rippled .nc-pglow, .nc-pad.nc-rippled .nc-pring, .nc-pad.nc-rippled .nc-bloom { display: none !important; }
