/* =========================================================
   EduLabs – Trò chơi "Chạy vượt chướng ngại vật" (tiền tố cvr-)
   Sân khấu 1280×720 co giãn đều (engine-chay-vuot-rao.js). Thế giới vẽ bằng canvas.
   ========================================================= */
.ge-stage .cvr-host, .gp-host.cvr-host { position: absolute; inset: 0; }
.cvr-host { overflow: hidden; background: #1d5c8f; font-family: "Be Vietnam Pro", "Segoe UI", system-ui, sans-serif; user-select: none; -webkit-user-select: none;
  --cvr-ink: #123d6b; --cvr-navy: #0b2f5c; --cvr-blue: #1f7ee6; }
.cvr-host [hidden] { display: none !important; }
.cvr-layer { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; transform-origin: 0 0; overflow: hidden; background: #6fbde8; }
.cvr-layer img { -webkit-user-drag: none; max-width: none; max-height: none; }
.cvr-cv { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; display: block; }
.cvr-loading { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(10,60,110,.7); color: #fff; font-size: 26px; font-weight: 800; z-index: 80; }
.cvr-paused .cvr-pop, .cvr-paused .cvr-hearts.hit img, .cvr-paused .cvr-banner { animation-play-state: paused !important; }

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

/* ----- thông tin từng làn (thi đấu) ----- */
.cvr-lanes { position: absolute; inset: 0; pointer-events: none; z-index: 6; }
.cvr-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(--cvr-ink); box-shadow: 0 2px 0 rgba(0,0,0,.18); }
.cvr-li b { max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cvr-li.me b { color: var(--c); }
.cvr-li .cvr-lh { display: flex; }
.cvr-li .cvr-h { width: 16px; height: 14px; object-fit: contain; }
.cvr-li em { font-style: normal; font-weight: 800; min-width: 28px; text-align: right; font-variant-numeric: tabular-nums; }
.cvr-li.out { opacity: .6; filter: grayscale(.8); }
.cvr-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: #1f7ee6; color: #fff; }
.cvr-bub.timeout { background: #f08a00; }

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

/* ----- phản hồi, biểu ngữ, đếm ngược, điểm ----- */
.cvr-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: #1f7ee6; box-shadow: 0 4px 0 rgba(0,0,0,.18); text-align: center; animation: cvr-drop .35s cubic-bezier(.2,1.4,.4,1); }
.cvr-fb.ok { background: linear-gradient(#3cc44c, #239a34); }
.cvr-fb.no { background: linear-gradient(#ff6a5c, #d8322a); }
.cvr-fb.time { background: linear-gradient(#ffae2b, #e57f00); }
.cvr-fb .cvr-frac { font-size: .85em; }
@keyframes cvr-drop { from { transform: translate(-50%, -20px); opacity: 0; } }
.cvr-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, #e8f4ff); border: 5px solid #1f7ee6; box-shadow: 0 8px 0 rgba(12,60,130,.35); color: var(--cvr-navy); transition: transform .35s cubic-bezier(.2,1.5,.4,1), opacity .25s; }
.cvr-banner.in { transform: translate(-50%, 0) scale(1); opacity: 1; }
.cvr-banner b { display: block; font-size: 40px; line-height: 1.1; font-weight: 900; }
.cvr-banner small { display: block; font-size: 18px; font-weight: 800; color: #2d7a2a; }
.cvr-banner.stage small { font-size: 20px; color: #e5392f; }
.cvr-banner.out { border-color: #e5392f; }
.cvr-banner.out b { font-size: 32px; }
.cvr-banner.fin { border-color: #f2a705; }
.cvr-count { position: absolute; inset: 0; display: grid; place-items: center; z-index: 27; pointer-events: none; }
.cvr-count b { font-size: 150px; font-weight: 900; color: #fff; -webkit-text-stroke: 8px #1f7ee6; paint-order: stroke; text-shadow: 0 8px 0 rgba(12,60,130,.45); }
.cvr-count b.go { font-size: 96px; color: #ffd84a; -webkit-text-stroke-color: #e5392f; }
.cvr-count.in b { animation: cvr-cnt .7s ease-out; }
@keyframes cvr-cnt { from { transform: scale(1.8); opacity: 0; } 40% { opacity: 1; } }
.cvr-pop { position: absolute; z-index: 15; transform: translate(-50%, 0); display: flex; align-items: center; gap: 3px; pointer-events: none; animation: cvr-up 1.2s ease-out forwards; }
.cvr-pop img { width: 30px; height: 28px; }
.cvr-pop b { font-size: 26px; font-weight: 900; color: #fff; -webkit-text-stroke: 5px #f08a00; paint-order: stroke; }
.cvr-pop.big b { font-size: 32px; -webkit-text-stroke-color: #e5392f; }
@keyframes cvr-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; } }
.cvr-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 ----- */
.cvr-pause { position: absolute; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(8,35,70,.55); }
.cvr-pbox { background: #fff; border: 5px solid #1f7ee6; border-radius: 26px; padding: 26px 44px; text-align: center; color: var(--cvr-navy); box-shadow: 0 10px 0 rgba(12,60,130,.35); }
.cvr-pbox b { display: block; font-size: 40px; font-weight: 900; }
.cvr-pbox span { display: block; font-size: 18px; margin: 8px 0 18px; line-height: 1.4; }
.cvr-go, .cvr-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); }
.cvr-go:hover, .cvr-start:hover { filter: brightness(1.06); transform: translateY(-1px); }

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

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

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