/* =========================================================
   EduLabs – Nhảy cóc – Vượt đầm sen · kiểu chạy vượt chướng ngại vật (tiền tố ncr-)
   Sân khấu 1280×720 co giãn đều (engine-nhay-coc-chay.js). Thế giới vẽ bằng canvas.
   ========================================================= */
.ge-stage .ncr-host, .gp-host.ncr-host { position: absolute; inset: 0; }
.ncr-host { overflow: hidden; background: #2a7a6a; font-family: "Be Vietnam Pro", "Segoe UI", system-ui, sans-serif; user-select: none; -webkit-user-select: none;
  --ncr-ink: #14532d; --ncr-navy: #0f3d22; --ncr-blue: #2e9d4f; }
.ncr-host [hidden] { display: none !important; }
.ncr-layer { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; transform-origin: 0 0; overflow: hidden; background: #5fb7d6; }
.ncr-layer img { -webkit-user-drag: none; max-width: none; max-height: none; }
.ncr-cv { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; display: block; }
.ncr-loading { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(10,70,50,.7); color: #fff; font-size: 26px; font-weight: 800; z-index: 80; }
.ncr-paused .ncr-pop, .ncr-paused .ncr-hearts.hit img, .ncr-paused .ncr-banner { animation-play-state: paused !important; }

/* ----- thanh trên ----- */
.ncr-hud { position: absolute; left: 10px; right: 10px; top: 8px; height: 58px; display: flex; align-items: center; gap: 8px; z-index: 20; }
.ncr-btn { border: 0; background: none; padding: 0; cursor: pointer; flex: none; transition: transform .12s; }
.ncr-btn:hover { transform: translateY(-2px) scale(1.04); }
.ncr-btn:active { transform: scale(.95); }
.ncr-ibtn { width: 54px; height: 52px; position: relative; }
.ncr-ibtn img { width: 100%; height: 100%; filter: drop-shadow(0 3px 3px rgba(0,50,30,.3)); }
.ncr-ibtn s { position: absolute; left: 50%; top: 50%; width: 46px; height: 5px; margin: -2px 0 0 -23px; background: #ff3b30; border-radius: 3px; transform: rotate(-42deg); box-shadow: 0 0 0 2px #fff; display: none; }
.ncr-muted .ncr-ibtn s { display: block; }
.ncr-cbtn { width: 46px; height: 46px; border-radius: 13px; background: linear-gradient(#4cc46a, #1f7a3a); box-shadow: inset 0 -4px 0 rgba(0,40,120,.35), inset 0 2px 0 rgba(255,255,255,.5), 0 3px 4px rgba(0,50,30,.3); display: grid; place-items: center; }
.ncr-cbtn svg { width: 24px; height: 24px; }
.ncr-exit { background: linear-gradient(#ff6d5e, #d8322a); box-shadow: inset 0 -4px 0 rgba(120,10,0,.35), inset 0 2px 0 rgba(255,255,255,.5), 0 3px 4px rgba(0,50,30,.3); }
.ncr-pill { height: 44px; display: flex; align-items: center; gap: 6px; padding: 0 14px 0 6px; background: rgba(255,255,255,.94); border: 3px solid #2e9d4f; border-radius: 24px; box-shadow: 0 3px 0 rgba(14,80,40,.35);
  color: var(--ncr-ink); font-weight: 800; font-size: 19px; white-space: nowrap; flex: none; }
.ncr-pill i { width: 34px; height: 34px; display: grid; place-items: center; flex: none; }
.ncr-pill i img { max-width: 34px; max-height: 32px; }
.ncr-stage em { font-style: normal; font-weight: 700; font-size: 15px; color: #2d7a2a; padding-left: 4px; border-left: 2px solid #d4ead0; margin-left: 2px; }
.ncr-clock b { font-variant-numeric: tabular-nums; min-width: 52px; }
.ncr-hearts { gap: 2px; padding: 0 12px 0 8px; border-color: #e5392f; }
.ncr-hearts .ncr-h { width: 32px; height: 28px; object-fit: contain; }
.ncr-hearts em { font-style: normal; font-size: 14px; color: var(--c); margin-left: 6px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.ncr-hearts.hit { animation: ncr-shake .45s; }
.ncr-hearts .brk { animation: ncr-brk .8s ease-out forwards; }
@keyframes ncr-shake { 20% { transform: translateX(-5px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }
@keyframes ncr-brk { 0% { transform: scale(1.5); } 60% { transform: scale(1.1) rotate(-8deg); opacity: 1; } 100% { transform: scale(1); opacity: .9; } }
.ncr-score { border-color: #f2a705; }
.ncr-score b { font-variant-numeric: tabular-nums; min-width: 46px; }
.ncr-prog { position: relative; width: 196px; height: 72px; flex: none; margin-left: auto; }
.ncr-prog .ncr-pimg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ncr-pbar { position: absolute; left: 8.4%; width: 57.6%; top: 57%; height: 26%; border-radius: 10px; overflow: hidden; z-index: 1; }
.ncr-pbar i { display: block; height: 100%; width: 0; background: linear-gradient(#ffe066, #f5a300); transition: width .5s; }
.ncr-prog span { position: absolute; left: 6%; top: 8px; font-size: 15px; font-weight: 800; color: #fff; text-shadow: 0 2px 0 #146a32, 0 0 4px #146a32; }

/* ----- thông tin từng làn (thi đấu) ----- */
.ncr-lanes { position: absolute; inset: 0; pointer-events: none; z-index: 6; }
.ncr-li { position: absolute; left: 54px; height: 31px; max-width: 214px; display: flex; align-items: center; gap: 4px; padding: 0 8px; border-radius: 16px; background: rgba(255,255,255,.9);
  border: 2px solid var(--c); font-size: 13px; color: var(--ncr-ink); box-shadow: 0 2px 0 rgba(0,0,0,.18); }
.ncr-li b { max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ncr-li.me b { color: var(--c); }
.ncr-li .ncr-lh { display: flex; }
.ncr-li .ncr-h { width: 16px; height: 14px; object-fit: contain; }
.ncr-li em { font-style: normal; font-weight: 800; min-width: 28px; text-align: right; font-variant-numeric: tabular-nums; }
.ncr-li.out { opacity: .6; filter: grayscale(.8); }
.ncr-bub { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 900; background: #2e9d4f; color: #fff; }
.ncr-bub.timeout { background: #f08a00; }

/* ----- câu hỏi + đáp án ----- */
.ncr-panel { position: absolute; left: 12px; right: 12px; top: 494px; bottom: 8px; z-index: 10; display: flex; flex-direction: column; gap: 7px; }
.ncr-q { position: relative; flex: 0 0 100px; border-style: solid; border-width: 24px; border-image: url("../games/nhay-coc/moi/ui/panel-cream.webp") 76 fill / 24px stretch;
  filter: drop-shadow(0 4px 4px rgba(0,50,30,.25)); }
.ncr-qt { position: absolute; left: -10px; right: -10px; top: -12px; bottom: -4px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ncr-qin { color: var(--ncr-navy); font-weight: 800; line-height: 1.22; text-align: center; max-width: 100%; overflow-wrap: anywhere; }
.ncr-tbar { position: absolute; left: -6px; right: -6px; bottom: -14px; height: 10px; border-radius: 6px; background: rgba(18,61,107,.14); overflow: visible; }
.ncr-tbar i { display: block; height: 100%; width: 100%; border-radius: 6px; background: linear-gradient(90deg, #38c24a, #7ad94a); }
.ncr-tbar[data-lv="mid"] i { background: linear-gradient(90deg, #f5b400, #ffd447); }
.ncr-tbar[data-lv="lo"] i { background: linear-gradient(90deg, #e5392f, #ff7b5c); }
.ncr-tbar span { position: absolute; right: 0; top: -22px; font-size: 14px; font-weight: 800; color: #146a32; background: #fff; padding: 1px 8px; border-radius: 10px; box-shadow: 0 1px 2px rgba(0,0,0,.15); font-variant-numeric: tabular-nums; }
.ncr-tbar.idle i { opacity: .25; }
.ncr-tbar.idle span { display: none; }
.ncr-cards { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; min-height: 0; }
.ncr-cards.grid { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.ncr-cards[data-n="3"]:not(.grid) { grid-template-columns: repeat(3, 1fr); }
.ncr-cards[data-n="2"]:not(.grid) { grid-template-columns: repeat(2, 1fr); }
.ncr-card { position: relative; min-height: 0; cursor: pointer; padding: 0; font: inherit; color: #fff; display: flex; align-items: center; gap: 8px;
  border-style: solid; border-width: 16px 18px; border-image-slice: 62 fill; border-image-width: 16px 18px; border-image-repeat: stretch; background: none;
  transition: transform .12s, filter .15s, opacity .2s; filter: drop-shadow(0 3px 3px rgba(0,50,30,.28)); }
.ncr-card.c1 { border-image-source: url("../games/nhay-coc/moi/ui/card-1.webp"); }
.ncr-card.c2 { border-image-source: url("../games/nhay-coc/moi/ui/card-2.webp"); color: #5a3a00; }
.ncr-card.c3 { border-image-source: url("../games/nhay-coc/moi/ui/card-3.webp"); }
.ncr-card.c4 { border-image-source: url("../games/nhay-coc/moi/ui/card-4.webp"); }
.ncr-card i { flex: none; width: 34px; height: 34px; margin-left: -6px; border-radius: 50%; background: #fff; color: #123d6b; display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: 19px; box-shadow: 0 2px 0 rgba(0,0,0,.2); }
.ncr-card span { flex: 1; min-width: 0; max-height: 100%; overflow: hidden; font-weight: 800; line-height: 1.18; text-align: left; overflow-wrap: anywhere; text-shadow: 0 1px 0 rgba(0,0,0,.18); }
.ncr-card.c2 span { text-shadow: none; }
.ncr-card:hover:not(:disabled) { transform: translateY(-3px); }
.ncr-cards.locked .ncr-card { cursor: default; transform: none; }
.ncr-card.dim { opacity: .45; filter: grayscale(.4); }
.ncr-card.picked { outline: 4px solid #fff; outline-offset: 2px; }
.ncr-card.ok::after, .ncr-card.no::after { content: ""; position: absolute; right: -12px; top: -16px; width: 40px; height: 40px; background: url("../games/nhay-coc/moi/ui/ic-ok.webp") center / contain no-repeat; animation: ncr-pop .4s cubic-bezier(.2,1.6,.4,1); }
.ncr-card.no::after { background-image: url("../games/nhay-coc/moi/ui/ic-no.webp"); }
.ncr-card.ok { opacity: 1; filter: drop-shadow(0 0 8px #7dff7a) drop-shadow(0 3px 3px rgba(0,50,30,.28)); }
.ncr-card.key { outline: 3px dashed #fff; outline-offset: 2px; }
@keyframes ncr-pop { from { transform: scale(.2); } }
.ncr-teams { flex: none; display: flex; gap: 6px; align-items: center; height: 30px; }
.ncr-teams > span { font-size: 13px; font-weight: 800; color: #fff; text-shadow: 0 1px 2px #0b2f5c; margin-right: 4px; }
.ncr-tchip { height: 28px; padding: 0 12px; border-radius: 15px; border: 2px solid var(--c); background: #fff; color: var(--c); font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; }
.ncr-tchip.cur { background: var(--c); color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.8); }
.ncr-tchip.done { opacity: .75; }
.ncr-tchip.off { opacity: .35; cursor: default; }
.has-teams .ncr-q { flex-basis: 80px; }

/* ----- phản hồi, biểu ngữ, đếm ngược, điểm ----- */
.ncr-fb { position: absolute; left: 50%; top: 76px; transform: translateX(-50%); z-index: 25; max-width: 900px; padding: 9px 22px; border-radius: 22px; font-size: 20px; font-weight: 800; color: #fff;
  background: #2e9d4f; box-shadow: 0 4px 0 rgba(0,0,0,.18); text-align: center; animation: ncr-drop .35s cubic-bezier(.2,1.4,.4,1); }
.ncr-fb.ok { background: linear-gradient(#3cc44c, #239a34); }
.ncr-fb.no { background: linear-gradient(#ff6a5c, #d8322a); }
.ncr-fb.time { background: linear-gradient(#ffae2b, #e57f00); }
.ncr-fb .ncr-frac { font-size: .85em; }
@keyframes ncr-drop { from { transform: translate(-50%, -20px); opacity: 0; } }
.ncr-banner { position: absolute; left: 50%; top: 150px; transform: translate(-50%, 0) scale(.6); opacity: 0; z-index: 26; text-align: center; padding: 14px 44px 16px; border-radius: 26px;
  background: linear-gradient(#ffffff, #eefbea); border: 5px solid #2e9d4f; box-shadow: 0 8px 0 rgba(14,80,40,.35); color: var(--ncr-navy); transition: transform .35s cubic-bezier(.2,1.5,.4,1), opacity .25s; }
.ncr-banner.in { transform: translate(-50%, 0) scale(1); opacity: 1; }
.ncr-banner b { display: block; font-size: 40px; line-height: 1.1; font-weight: 900; }
.ncr-banner small { display: block; font-size: 18px; font-weight: 800; color: #2d7a2a; }
.ncr-banner.stage small { font-size: 20px; color: #e5392f; }
.ncr-banner.out { border-color: #e5392f; }
.ncr-banner.out b { font-size: 32px; }
.ncr-banner.fin { border-color: #f2a705; }
.ncr-count { position: absolute; inset: 0; display: grid; place-items: center; z-index: 27; pointer-events: none; }
.ncr-count b { font-size: 150px; font-weight: 900; color: #fff; -webkit-text-stroke: 8px #2e9d4f; paint-order: stroke; text-shadow: 0 8px 0 rgba(14,80,40,.45); }
.ncr-count b.go { font-size: 96px; color: #ffd84a; -webkit-text-stroke-color: #e5392f; }
.ncr-count.in b { animation: ncr-cnt .7s ease-out; }
@keyframes ncr-cnt { from { transform: scale(1.8); opacity: 0; } 40% { opacity: 1; } }
.ncr-pop { position: absolute; z-index: 15; transform: translate(-50%, 0); display: flex; align-items: center; gap: 3px; pointer-events: none; animation: ncr-up 1.2s ease-out forwards; }
.ncr-pop img { width: 30px; height: 28px; }
.ncr-pop b { font-size: 26px; font-weight: 900; color: #fff; -webkit-text-stroke: 5px #f08a00; paint-order: stroke; }
.ncr-pop.big b { font-size: 32px; -webkit-text-stroke-color: #e5392f; }
@keyframes ncr-up { from { transform: translate(-50%, 10px) scale(.6); opacity: 0; } 20% { transform: translate(-50%, 0) scale(1.1); opacity: 1; } 75% { opacity: 1; } to { transform: translate(-50%, -50px); opacity: 0; } }
.ncr-note { position: absolute; left: 50%; bottom: 236px; transform: translateX(-50%); z-index: 70; background: rgba(11,47,92,.9); color: #fff; padding: 8px 18px; border-radius: 16px; font-size: 16px; font-weight: 700; }

/* ----- tạm dừng ----- */
.ncr-pause { position: absolute; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(6,40,30,.55); }
.ncr-pbox { background: #fff; border: 5px solid #2e9d4f; border-radius: 26px; padding: 26px 44px; text-align: center; color: var(--ncr-navy); box-shadow: 0 10px 0 rgba(14,80,40,.35); }
.ncr-pbox b { display: block; font-size: 40px; font-weight: 900; }
.ncr-pbox span { display: block; font-size: 18px; margin: 8px 0 18px; line-height: 1.4; }
.ncr-go, .ncr-start { border: 0; cursor: pointer; font: inherit; font-weight: 900; color: #fff; background: linear-gradient(#5bd85a, #2fa83a); border-radius: 18px; padding: 12px 36px; font-size: 24px;
  box-shadow: inset 0 -5px 0 rgba(0,80,0,.3), inset 0 2px 0 rgba(255,255,255,.5), 0 5px 0 rgba(0,60,0,.25); }
.ncr-go:hover, .ncr-start:hover { filter: brightness(1.06); transform: translateY(-1px); }

/* ----- màn mở đầu ----- */
.ncr-intro { position: absolute; inset: 0; z-index: 40; display: grid; place-items: center; background: linear-gradient(rgba(6,50,40,.35), rgba(6,50,40,.55)); transition: opacity .4s; }
.ncr-intro.out { opacity: 0; pointer-events: none; }
.ncr-ibox { width: 930px; background: rgba(255,255,255,.97); border: 5px solid #2e9d4f; border-radius: 28px; padding: 6px 30px 18px; text-align: center; box-shadow: 0 10px 0 rgba(14,80,40,.35); position: relative; }
.ncr-ilogo { width: 360px; margin: -62px auto -4px; display: block; filter: drop-shadow(0 6px 6px rgba(0,50,30,.3)); }
.ncr-iset { display: flex; flex-direction: column; gap: 9px; margin: 4px 0 14px; text-align: left; }
.ncr-irow { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.ncr-irow > span { flex: 0 0 96px; font-weight: 800; color: var(--ncr-ink); font-size: 16px; }
.ncr-irow .ncr-sub { flex: none; margin-left: 10px; font-weight: 800; color: #4a6b4c; font-size: 14px; }
.ncr-seg { display: flex; background: #e6f5e4; border-radius: 14px; padding: 3px; gap: 3px; }
.ncr-seg button { border: 0; background: none; font: inherit; font-weight: 700; font-size: 15px; color: #2f5a33; padding: 7px 14px; border-radius: 11px; cursor: pointer; }
.ncr-seg button.on { background: #2e9d4f; color: #fff; box-shadow: 0 2px 0 rgba(0,40,120,.35); }
.ncr-chars { display: flex; gap: 10px; }
.ncr-char { width: 98px; height: 112px; border: 3px solid #cfe6cc; border-radius: 16px; background: linear-gradient(#f6fcf4, #e3f3df); cursor: pointer; position: relative; padding: 0; overflow: hidden; }
.ncr-char.on { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 35%, transparent); background: linear-gradient(#fff, color-mix(in srgb, var(--c) 18%, #fff)); }
.ncr-char .ncr-port { position: absolute; left: 50%; top: 4px; transform: translateX(-50%); width: 74px; height: 88px; }
.ncr-char b { position: absolute; left: 0; right: 0; bottom: 3px; font-size: 12px; color: var(--c); font-weight: 800; }
.ncr-port { display: block; background-repeat: no-repeat; background-size: 800% 100%; background-position: 14.2857% 0; }
.ncr-port.win { background-position: 100% 0; }
.ncr-port.sad { background-size: 600% 100%; background-position: 100% 0; }
.ncr-port.sm { width: 30px; height: 36px; flex: none; }
.ncr-in { height: 38px; border: 2px solid #bcdcb8; border-radius: 12px; padding: 0 12px; font: inherit; font-size: 16px; font-weight: 700; color: var(--ncr-ink); width: 240px; background: #fff; }
.ncr-in:focus { outline: 0; border-color: #2e9d4f; }
.ncr-tgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.ncr-tgrid label { display: flex; align-items: center; gap: 6px; }
.ncr-tgrid label .ncr-in { width: 250px; border-color: var(--c); }
.ncr-route > div { display: flex; gap: 6px; flex-wrap: wrap; }
.ncr-route em { font-style: normal; font-size: 12px; color: #4a6b4c; background: #eef6e8; border: 2px solid #9ccf84; border-radius: 10px; padding: 3px 9px; line-height: 1.25; }
.ncr-route em b { display: block; font-size: 13px; color: #2d6a1e; }
.ncr-route em.skip { opacity: .5; background: #f2f2f2; border-color: #ddd; }
.ncr-ihint { display: block; margin-top: 10px; font-size: 13px; color: #557458; }

/* ----- tổng kết ----- */
.ncr-sum { position: absolute; inset: 0; z-index: 50; opacity: 0; transition: opacity .5s; }
.ncr-sum.on { opacity: 1; }
.ncr-sbg { position: absolute; inset: 0; background: #2a7bbf center / cover no-repeat; }
.ncr-sbg::after { content: ""; position: absolute; inset: 0; background: rgba(6,50,40,.35); }
.ncr-board { position: absolute; left: 50%; top: 16px; width: 840px; height: 615px; transform: translateX(-50%); }
.ncr-bimg { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 10px 12px rgba(0,20,60,.35)); }
.ncr-btitle { position: absolute; left: 0; right: 0; top: 30px; text-align: center; font-size: 34px; font-weight: 900; color: #fff; text-shadow: 0 3px 0 #146a32, 0 0 6px #146a32; }
.ncr-bin { position: absolute; left: 70px; right: 60px; top: 150px; bottom: 70px; display: flex; gap: 14px; align-items: center; }
.ncr-sp { flex: 0 0 170px; height: 300px; display: grid; place-items: end center; }
.ncr-sp .ncr-port { width: 170px; height: 201px; }
.ncr-sp .ncr-port.sad { height: 170px; }
.ncr-sg { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ncr-sg > div { background: #fff; border: 3px solid #cfe6cc; border-radius: 16px; padding: 7px 6px; text-align: center; }
.ncr-sg > div b { display: block; font-size: 30px; font-weight: 900; color: var(--ncr-ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.ncr-sg > div span { font-size: 13px; font-weight: 700; color: #4a6b4c; }
.ncr-sg > div.big { border-color: #f2a705; background: #fff8e1; }
.ncr-sg > div.big b { color: #d07a00; }
.ncr-sg > div.ok b { color: #239a34; } .ncr-sg > div.no b { color: #d8322a; }
.ncr-best { grid-column: span 2; position: relative; display: flex; align-items: center; gap: 8px; background: linear-gradient(#fffbe6, #fff0b8); border: 3px solid #f2c94c; border-radius: 16px; padding: 6px 12px; }
.ncr-best img { width: 44px; height: 46px; object-fit: contain; }
.ncr-best span { font-weight: 800; color: #8a5a00; font-size: 15px; }
.ncr-best b { font-size: 28px; font-weight: 900; color: #d07a00; margin-left: auto; }
.ncr-best small { position: absolute; left: 64px; bottom: 3px; font-size: 11px; color: #8a6a2a; }
.ncr-best.new { animation: ncr-glow 1.2s ease-in-out infinite; }
.ncr-best .ncr-ring { position: absolute; left: -10px; top: -14px; width: 74px; height: 74px; animation: ncr-spin 4s linear infinite; }
@keyframes ncr-glow { 50% { box-shadow: 0 0 18px #ffd84a; } }
@keyframes ncr-spin { to { transform: rotate(360deg); } }
.ncr-sact { position: absolute; left: 0; right: 0; bottom: -64px; display: flex; justify-content: center; gap: 16px; }
.ncr-gbtn { position: relative; width: 210px; height: 62px; border: 0; background: none; cursor: pointer; padding: 0; }
.ncr-gbtn img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ncr-gbtn b { position: relative; font-size: 24px; font-weight: 900; color: #fff; text-shadow: 0 2px 0 #1d7a22; }
.ncr-xbtn { height: 56px; margin-top: 3px; padding: 0 30px; border: 0; border-radius: 16px; cursor: pointer; font: inherit; font-weight: 900; font-size: 22px; color: #fff;
  background: linear-gradient(#ff6d5e, #d8322a); box-shadow: inset 0 -4px 0 rgba(120,10,0,.35), inset 0 2px 0 rgba(255,255,255,.5); }
.ncr-gbtn:hover, .ncr-xbtn:hover { transform: translateY(-2px); }
/* bục trao giải + bảng xếp hạng */
.ncr-pods { position: absolute; inset: 0; }
.ncr-pod { position: absolute; width: 0; height: 0; }
.ncr-pod .ncr-port { position: absolute; left: -62px; bottom: -6px; width: 124px; height: 147px; }
.ncr-pod.r1 .ncr-port { left: -70px; width: 140px; height: 166px; }
.ncr-pod .ncr-medal { position: absolute; left: -22px; top: 24px; width: 44px; height: 54px; object-fit: contain; filter: drop-shadow(0 3px 3px rgba(0,0,0,.3)); }
.ncr-pod b { position: absolute; left: -80px; width: 160px; top: 84px; text-align: center; font-size: 15px; font-weight: 900; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ncr-rank { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); width: 900px; background: rgba(255,255,255,.95); border: 4px solid #2e9d4f; border-radius: 22px; padding: 8px 16px 12px; box-shadow: 0 6px 0 rgba(14,80,40,.3); }
.ncr-rtitle { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 28px; font-weight: 900; color: var(--ncr-navy); }
.ncr-rtitle img { width: 52px; height: 44px; object-fit: contain; }
.ncr-rank table { width: 100%; border-collapse: collapse; font-size: 15px; color: var(--ncr-ink); margin-top: 4px; }
.ncr-rank th { font-size: 12px; color: #4a6b4c; font-weight: 800; padding: 3px 4px; border-bottom: 2px solid #cfe6cc; }
.ncr-rank td { text-align: center; padding: 3px 4px; border-bottom: 1px solid #edf7ec; font-variant-numeric: tabular-nums; }
.ncr-rank td:nth-child(2) { text-align: left; font-weight: 800; white-space: nowrap; }
.ncr-rank td i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--c); margin-right: 6px; vertical-align: -1px; }
.ncr-rank td small { color: #d8322a; font-weight: 700; }
.ncr-rank tr.me td { background: #fff7d6; }
.ncr-rank tr.out td { color: #8a99ad; }
.ncr-rank { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: 16px; }
.ncr-rank > .ncr-rtitle, .ncr-rank > table { flex: 0 0 100%; }
.ncr-rank .ncr-best.mini { margin: 8px 0 0; width: 330px; }
.ncr-rank .ncr-sact { position: static; margin-top: 8px; }
.ncr-rank .ncr-gbtn { width: 180px; height: 54px; }
.ncr-rank .ncr-xbtn { height: 48px; }

/* chữ toán */
.ncr-frac { display: inline-flex; flex-direction: column; vertical-align: middle; text-align: center; font-size: .82em; line-height: 1.05; margin: 0 2px; }
.ncr-frac > span:first-child { border-bottom: 2px solid currentColor; padding: 0 2px; }
.ncr-ov { text-decoration: overline; }
.ncr-img { max-height: 52px; vertical-align: middle; border-radius: 6px; }
.ncr-card .ncr-img { max-height: 40px; }
.ncr-edit .ncr-hud .ncr-btn { pointer-events: none; }
.ncr-set .dt-r > span small { display: block; font-size: 11px; font-weight: 500; color: #7a8aa0; line-height: 1.35; margin-top: 1px; }

/* =========================================================
   Riêng Nhảy cóc (kiểu chạy): thanh hành trình, huy hiệu chặng, bảng tổng kết đầm sen, bục lá sen vàng
   ========================================================= */
.ncr-stage i { width: 40px; height: 40px; margin-left: -2px; }
.ncr-stage i img.ncr-badge { max-width: 40px; max-height: 40px; border-radius: 50%; }
.ncr-prog { width: 214px; height: 52px; }
.ncr-ptrack { position: absolute; left: 6px; right: 30px; top: 27px; height: 14px; border-radius: 9px; background: rgba(255,255,255,.88); border: 3px solid #2e9d4f; box-shadow: 0 2px 0 rgba(14,80,40,.35); }
.ncr-ptrack > i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 9px; background: linear-gradient(#9be36b, #3fb34a); transition: width .5s; }
.ncr-pfrog { position: absolute; left: 0; top: -21px; width: 34px; height: 34px; margin-left: -17px; object-fit: contain; transition: left .5s; filter: drop-shadow(0 2px 2px rgba(0,40,20,.35)); }
.ncr-pend { position: absolute; right: -32px; top: -15px; width: 36px; height: 38px; object-fit: contain; }
.ncr-prog span { left: 4px; top: 0; text-shadow: 0 2px 0 #146a32, 0 0 4px #146a32; }
.ncr-banner img { display: block; width: 74px; height: 74px; margin: -54px auto 2px; border-radius: 50%; filter: drop-shadow(0 4px 4px rgba(0,40,20,.35)); }
.ncr-banner.stage small { color: #c2185b; }
.ncr-li { left: 16px; }
.ncr-card i { color: #14532d; }
.ncr-q { border-image-source: url("../games/nhay-coc/moi/ui/panel-cream.webp"); }
/* màn mở đầu */
.ncr-ilogo { width: 300px; margin: -70px auto -6px; }
.ncr-char { width: 96px; height: 108px; }
.ncr-port { display: block; background-repeat: no-repeat; background-size: 800% 100%; background-position: 0 0; }
.ncr-port.win { background-size: 400% 100%; background-position: 66.667% 0; }
.ncr-port.sad { background-size: 800% 100%; background-position: 100% 0; }
.ncr-char .ncr-port { width: 78px; height: 72px; top: 8px; }
.ncr-char::after { content: ""; position: absolute; left: 50%; top: 70px; width: 58px; height: 12px; margin-left: -29px; border-radius: 50%; border: 3px solid var(--c); opacity: .85; }
.ncr-port.sm { width: 38px; height: 35px; }
.ncr-route em { display: flex; flex-direction: column; align-items: center; min-width: 120px; text-align: center; }
.ncr-route em img { width: 34px; height: 34px; border-radius: 50%; margin-bottom: 2px; }
/* tổng kết */
.ncr-sbg { background-position: center; background-size: cover; }
.ncr-sbg::after { background: rgba(6,50,40,.3); }
.ncr-board { top: 22px; height: 600px; background: linear-gradient(#fffdf3, #fff3d1); border: 6px solid #e9b53a; border-radius: 34px; box-shadow: 0 0 0 6px #2e9d4f, 0 14px 26px rgba(0,40,20,.4); }
.ncr-btitle { top: -34px; left: 50%; right: auto; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 8px 34px; border-radius: 40px; background: linear-gradient(#4cc46a, #1f7a3a);
  border: 5px solid #ffe08a; box-shadow: 0 6px 0 rgba(14,80,40,.4); white-space: nowrap; text-shadow: 0 3px 0 #0f5a28; }
.ncr-btitle img { width: 42px; height: 46px; object-fit: contain; }
.ncr-bin { top: 70px; bottom: 96px; left: 44px; right: 44px; }
.ncr-sp { flex-basis: 190px; height: 330px; }
.ncr-sp .ncr-port { width: 190px; height: 175px; }
.ncr-sp .ncr-port.win { width: 190px; height: 240px; }
.ncr-sp .ncr-port.sad { width: 190px; height: 171px; }
.ncr-sact { bottom: 22px; }
.ncr-gbtn { width: 210px; height: 58px; border-radius: 18px; background: linear-gradient(#5bd85a, #2fa83a); box-shadow: inset 0 -5px 0 rgba(0,80,0,.3), inset 0 2px 0 rgba(255,255,255,.5), 0 5px 0 rgba(0,60,0,.25); }
.ncr-pods { position: absolute; inset: 0; }
.ncr-pod .ncr-ppad { position: absolute; left: -82px; top: -34px; width: 164px; height: auto; filter: drop-shadow(0 6px 6px rgba(0,40,20,.35)); }
.ncr-pod.r1 .ncr-ppad { left: -96px; width: 192px; top: -40px; }
.ncr-pod .ncr-port { position: absolute; left: -60px; bottom: -4px; width: 120px; height: 110px; }
.ncr-pod .ncr-port.win { left: -62px; width: 124px; height: 156px; bottom: -14px; }
.ncr-pod .ncr-port.sad { height: 108px; }
.ncr-pod .ncr-medal { top: 26px; }
.ncr-pod b { top: 70px; }
.ncr-rank { top: 14px; }
.ncr-rank .ncr-gbtn { width: 180px; height: 50px; }
.ncr-ibox { width: 1000px; padding: 4px 30px 14px; }
.ncr-ilogo { width: 230px; margin: -40px auto -8px; }
.ncr-iset { gap: 7px; margin: 2px 0 10px; }
.ncr-route > div { flex-wrap: nowrap; }
.ncr-route em { min-width: 0; flex: 1; padding: 3px 4px; }
.ncr-route em b { font-size: 12px; white-space: nowrap; }
/* gọn bảng tổng kết luyện tập */
.ncr-board { top: 96px; height: 500px; }
.ncr-bin { top: 64px; bottom: 96px; }
.ncr-best { padding-left: 88px; }
.ncr-best img:not(.ncr-ring) { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); }
.ncr-best .ncr-ring { left: 0; top: 50%; margin-top: -37px; }
.ncr-best small { left: 88px; }

/* =========================================================
   V2 (01/12/2026): combo, hạt sáng đáp án đúng, điểm bay, tim vỡ, biểu ngữ chặng gọn, tổng kết 2 trường hợp, xem lại đáp án
   ========================================================= */
.ncr-combo { position: absolute; left: 14px; top: 72px; z-index: 21; height: 38px; display: flex; align-items: center; gap: 6px; padding: 0 14px 0 8px; border-radius: 20px;
  background: linear-gradient(#fff6c8, #ffd95a); border: 3px solid #f29a05; box-shadow: 0 3px 0 rgba(150,80,0,.35); color: #8a4a00; font-weight: 900; font-size: 18px; pointer-events: none; }
.ncr-combo img { width: 28px; height: 26px; }
.ncr-combo span { font-size: 22px; color: #e5392f; }
.ncr-combo.up { animation: ncr-cup .45s cubic-bezier(.2,1.6,.4,1); }
.ncr-combo.hot { background: linear-gradient(#fff2a8, #ffbe2e); box-shadow: 0 3px 0 rgba(150,80,0,.35), 0 0 14px rgba(255,200,40,.75); }
@keyframes ncr-cup { from { transform: scale(.6); } }
.ncr-spk { position: absolute; left: 0; top: 0; z-index: 30; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, #fffbe0 0 22%, #ffd84a 42%, rgba(255,190,40,0) 70%); animation: ncr-spk .78s cubic-bezier(.45,.05,.55,.95) forwards; }
@keyframes ncr-spk {
  0% { transform: translate(var(--x0), var(--y0)) scale(.5); opacity: 0; }
  12% { opacity: 1; }
  50% { transform: translate(var(--xm), var(--ym)) scale(1.15); opacity: 1; }
  100% { transform: translate(var(--x1), var(--y1)) scale(.6); opacity: .15; } }
.ncr-fly { position: absolute; z-index: 30; display: flex; align-items: center; gap: 3px; pointer-events: none; transform: translate(-50%, -50%); animation: ncr-fly 1.05s cubic-bezier(.5,0,.7,1) forwards; }
.ncr-fly img { width: 30px; height: 28px; }
.ncr-fly b { font-size: 28px; font-weight: 900; color: #fff; -webkit-text-stroke: 5px #f08a00; paint-order: stroke; }
@keyframes ncr-fly {
  0% { transform: translate(-50%, -30%) scale(.5); opacity: 0; }
  18% { transform: translate(-50%, -70%) scale(1.15); opacity: 1; }
  34% { transform: translate(-50%, -70%) scale(1); }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(.45); opacity: .7; } }
.ncr-score.bump { animation: ncr-bump .4s cubic-bezier(.2,1.6,.4,1); }
@keyframes ncr-bump { 40% { transform: scale(1.18); box-shadow: 0 0 16px #ffd84a, 0 3px 0 rgba(14,80,40,.35); } }
.ncr-hp { position: absolute; z-index: 30; width: 9px; height: 9px; margin: -4px 0 0 -4px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, #fff 0 25%, #ff5a5a 55%, rgba(255,60,60,0) 72%); animation: ncr-hp .9s ease-out forwards; }
@keyframes ncr-hp { from { transform: translate(0, 0) scale(1.3); opacity: 1; } to { transform: translate(var(--dx), var(--dy)) scale(.3); opacity: 0; } }
.ncr-pop.combo b { font-size: 24px; -webkit-text-stroke-color: #c2185b; color: #fff6c8; }
.ncr-banner.mini { top: 78px; padding: 8px 30px 10px; border-width: 4px; }
.ncr-banner.mini b { font-size: 28px; }
.ncr-banner.mini small { font-size: 15px; }
.ncr-banner.mini img { width: 54px; height: 54px; margin: -38px auto 0; }
.ncr-paused .ncr-spk, .ncr-paused .ncr-fly, .ncr-paused .ncr-hp, .ncr-paused .ncr-combo, .ncr-paused .ncr-score, .ncr-paused .ncr-fb, .ncr-paused .ncr-count b { animation-play-state: paused !important; }
/* tổng kết */
.ncr-board .ncr-bin { top: 84px; }
.ncr-sg > .ncr-best { padding-left: 88px; text-align: left; }
.ncr-bsub { position: absolute; left: 0; right: 0; top: 46px; text-align: center; font-size: 19px; font-weight: 800; color: #2d7a2a; }
.ncr-board.out .ncr-bsub { color: #b0527a; }
.ncr-sp { position: relative; }
.ncr-scene { position: relative; width: 190px; height: 300px; }
.ncr-scene .ncr-spad { position: absolute; left: 50%; bottom: 18px; width: 186px; transform: translateX(-50%); filter: drop-shadow(0 6px 6px rgba(0,40,20,.3)); }
.ncr-scene.sad .ncr-spad { width: 170px; bottom: 26px; }
.ncr-scene .ncr-sbloom { position: absolute; left: 50%; bottom: 40px; width: 200px; transform: translateX(-50%) scale(.2); opacity: 0; animation: ncr-bloom 1.2s .3s cubic-bezier(.2,1.4,.4,1) forwards; }
@keyframes ncr-bloom { to { transform: translateX(-50%) scale(1); opacity: .95; } }
.ncr-sfrog { position: absolute; left: 50%; display: block; background-repeat: no-repeat; }
.ncr-sfrog.joy { bottom: 64px; width: 150px; height: 144px; margin-left: -75px; background-size: 400% 131.6%; background-position-y: 0; animation: ncr-joyf .9s steps(1) infinite, ncr-joyy .9s ease-in-out infinite; }
@keyframes ncr-joyf { 0% { background-position-x: 33.333%; } 33% { background-position-x: 66.667%; } 66% { background-position-x: 100%; } }
@keyframes ncr-joyy { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(-22px); } }
.ncr-sfrog.sad { bottom: 44px; width: 150px; height: 135px; margin-left: -75px; background-size: 800% 100%; background-position: 100% 0; animation: ncr-sad 3s ease-in-out infinite; }
@keyframes ncr-sad { 50% { transform: translateY(2px) rotate(-2deg); } }
.ncr-sstar { position: absolute; width: 34px; height: 32px; animation: ncr-tw 1.6s ease-in-out infinite; }
.ncr-sstar.s1 { left: 6px; top: 40px; } .ncr-sstar.s2 { right: 4px; top: 70px; animation-delay: .5s; } .ncr-sstar.s3 { left: 30px; top: 120px; width: 24px; height: 22px; animation-delay: 1s; }
@keyframes ncr-tw { 50% { transform: scale(1.35) rotate(20deg); opacity: .6; } }
.ncr-confetti { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.ncr-confetti i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 3px; background: var(--c); animation: ncr-conf 3.2s linear infinite; }
@keyframes ncr-conf { to { transform: translateY(760px) rotate(540deg); } }
.ncr-rbtn { height: 52px; margin-top: 3px; padding: 0 20px; border: 3px solid #2e9d4f; border-radius: 16px; cursor: pointer; font: inherit; font-weight: 900; font-size: 18px; color: #1f6b2c; background: #fff; box-shadow: 0 4px 0 rgba(14,80,40,.25); }
.ncr-rbtn:hover { transform: translateY(-2px); }
.ncr-review { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; background: rgba(6,40,30,.55); }
.ncr-rvbox { width: 900px; max-height: 620px; display: flex; flex-direction: column; background: #fffdf3; border: 5px solid #2e9d4f; border-radius: 24px; padding: 14px 22px 16px; box-shadow: 0 10px 0 rgba(14,80,40,.35); }
.ncr-rvt { font-size: 26px; font-weight: 900; color: var(--ncr-navy); text-align: center; }
.ncr-rvbox ol { flex: 1; overflow: auto; margin: 8px 0 12px; padding: 0 6px 0 30px; color: var(--ncr-ink); }
.ncr-rvbox li { padding: 6px 4px; border-bottom: 1px solid #e3efdc; font-size: 16px; }
.ncr-rvbox li .q { font-weight: 800; }
.ncr-rvbox li .a { font-size: 15px; margin-top: 2px; color: #4a6b4c; }
.ncr-rvbox li.ok .a { color: #1c7a2a; } .ncr-rvbox li.no .a { color: #b3261e; }
.ncr-rvbox .ncr-go { align-self: center; font-size: 20px; padding: 9px 34px; }
.ncr-rank .ncr-rbtn { height: 46px; font-size: 16px; }
