/* =========================================================
   EduLabs – Trò chơi "Đua thuyền trên sông" (tiền tố dt-)
   Sân khấu 1280×720 co giãn đều (engine-dua-thuyen.js)
   ========================================================= */
.ge-stage .dt-host, .gp-host.dt-host { position: absolute; inset: 0; }
.dt-host { overflow: hidden; background: #2b9fd4; font-family: "Be Vietnam Pro", "Segoe UI", system-ui, sans-serif; user-select: none; -webkit-user-select: none; --dt-ink: #123d6b; --dt-navy: #0b2f5c; }
.dt-host [hidden] { display: none !important; }
.dt-backdrop { position: absolute; inset: -30px; background: #2a6b8a url("../games/dua-thuyen/bg-blur.jpg") 20% 60% / cover; }
.dt-layer { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; transform-origin: 0 0; overflow: hidden; }
.dt-layer img { -webkit-user-drag: none; max-width: none; max-height: none; }
.dt-scr { position: absolute; inset: 0; display: none; }
.dt-scr.on { display: block; }
.dt-loading { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(10,70,120,.6); color: #fff; font-size: 26px; font-weight: 800; z-index: 60; }
.dt-paused .dt-fx, .dt-paused .dt-bob, .dt-paused .dt-water, .dt-paused .dt-ripple, .dt-paused .dt-sp, .dt-paused .dt-msg, .dt-paused .dt-wake, .dt-paused .dt-speed, .dt-paused .dt-glow { animation-play-state: paused !important; }

/* ----- thế giới: panorama + mặt nước + cảnh vật + thuyền ----- */
.dt-world { position: absolute; left: 0; top: 0; width: 3475px; height: 720px; z-index: 1; will-change: transform; pointer-events: none; }
.dt-world > * { position: absolute; left: 0; top: 0; }
.dt-water { top: 300px; width: 3995px; height: 250px; opacity: .9; will-change: transform; background: url("../games/dua-thuyen/water.png") 0 0 / 520px 250px repeat-x;
  animation: dt-flow 7s linear infinite; }
@keyframes dt-flow { from { transform: translate3d(0,0,0); } to { transform: translate3d(-520px,0,0); } }
.dt-props, .dt-boats, .dt-fxw { width: 3475px; height: 720px; }
.dt-sp { position: absolute; pointer-events: none; }
.dt-far { }
.dt-buoy { animation: dt-buoy 2.6s ease-in-out infinite; transform-origin: 50% 90%; }
.dt-buoy:nth-child(2n) { animation-delay: -1.2s; }
@keyframes dt-buoy { 50% { transform: translateY(-2px) rotate(2.5deg); } }
.dt-ybuoy.lit { filter: drop-shadow(0 0 10px #ffe24a) drop-shadow(0 0 4px #fff2a8); animation: dt-buoy 2.6s ease-in-out infinite, dt-lit 1s ease-out; }
@keyframes dt-lit { 30% { transform: scale(1.3); } }
.dt-lily { animation: dt-lily 5s ease-in-out infinite; }
@keyframes dt-lily { 50% { transform: translateY(1.5px) rotate(-2deg); } }
.dt-obst { animation: dt-buoy 3.4s ease-in-out infinite; }
.dt-gate { filter: drop-shadow(0 6px 6px rgba(0,30,60,.25)); }
.dt-gfin.pop { animation: dt-gpop .7s cubic-bezier(.2,1.5,.4,1); transform-origin: 50% 100%; }
@keyframes dt-gpop { from { transform: scale(.3); opacity: 0; } }
.dt-finline { width: 18px; z-index: 300; transform: skewX(-12deg); opacity: .7; border-radius: 4px;
  background: repeating-conic-gradient(#fff 0 25%, #1c2433 0 50%) 0 0 / 18px 18px; box-shadow: 0 0 0 2px rgba(255,255,255,.4); }

/* ----- thuyền: 3 góc nhìn + sóng tách riêng ----- */
.dt-boat { position: absolute; left: 0; top: 0; width: 0; height: 0; --k: .38; --sp: 0; will-change: transform; }
.dt-boat .dt-bob { position: absolute; left: 0; top: 0; animation: dt-bob 1.9s ease-in-out infinite; }
@keyframes dt-bob { 50% { transform: translateY(-2.5px) rotate(-1.2deg); } }
.dt-v { position: absolute; width: calc(var(--w) * var(--k) * 1px); height: calc(var(--h) * var(--k) * 1px); left: calc(var(--w) * var(--k) * -.5px); top: calc(var(--h) * var(--k) * -.9px);
  opacity: 0; transition: opacity .18s; }
.dt-v.on { opacity: 1; filter: drop-shadow(0 4px 3px rgba(0,40,80,.22)); }
.dt-wake { position: absolute; height: auto; transform-origin: 100% 50%; pointer-events: none;
  width: calc(var(--k) * 520px); right: calc(var(--k) * 90px); top: calc(var(--k) * -70px); opacity: calc(.45 + var(--sp) * .55); transform: scaleX(calc(.7 + var(--sp) * .5)); transition: opacity .3s; }
.dt-boat[data-s="idle"] .dt-wake { width: calc(var(--k) * 300px); right: calc(var(--k) * -150px); top: calc(var(--k) * -60px); opacity: .85; transform: none; animation: dt-ripple 2.2s ease-in-out infinite; transform-origin: 50% 50%; }
.dt-boat[data-s="slow"] .dt-wake { width: calc(var(--k) * 330px); top: calc(var(--k) * -50px); }
.dt-boat[data-s="boost"] .dt-wake { width: calc(var(--k) * 620px); right: calc(var(--k) * 60px); top: calc(var(--k) * -150px); }
.dt-boat[data-s="special"] .dt-wake { width: calc(var(--k) * 720px); right: calc(var(--k) * 70px); top: calc(var(--k) * -110px); filter: drop-shadow(0 0 8px rgba(120,240,255,.9)); }
@keyframes dt-ripple { 50% { transform: scale(1.08); opacity: .6; } }
.dt-ripple { position: absolute; width: calc(var(--k) * 360px); left: calc(var(--k) * -180px); top: calc(var(--k) * -66px); opacity: .55; animation: dt-ripple 2.6s ease-in-out infinite; }
.dt-speed { position: absolute; width: calc(var(--k) * 560px); right: calc(var(--k) * 110px); top: calc(var(--k) * -150px); opacity: 0; transition: opacity .3s; }
.dt-glow { position: absolute; width: calc(var(--k) * 300px); left: calc(var(--k) * -150px); top: calc(var(--k) * -250px); opacity: 0; transition: opacity .3s; }
.dt-boat[data-s="special"] .dt-speed, .dt-boosting .dt-speed { opacity: .95; animation: dt-zip .35s linear infinite; }
.dt-boat[data-s="special"] .dt-glow, .dt-boosting .dt-glow { opacity: .9; animation: dt-glow .6s ease-in-out infinite; }
@keyframes dt-zip { 50% { transform: translateX(-10px); } }
@keyframes dt-glow { 50% { transform: scale(1.1); opacity: .6; } }
.dt-spray { position: absolute; width: calc(var(--k) * 300px); left: calc(var(--k) * 40px); top: calc(var(--k) * -150px); opacity: 0; transform-origin: 0 100%; }
.dt-boat[data-s="boost"] .dt-spray, .dt-boat[data-s="special"] .dt-spray { opacity: calc(var(--sp) * 1.1); animation: dt-spray .5s ease-in-out infinite; }
@keyframes dt-spray { 50% { transform: scale(1.12) rotate(-3deg); } }
.dt-tag { position: absolute; left: calc(var(--k) * 22px); top: calc(var(--k) * -40px); transform: translate(-50%, -50%); display: flex; align-items: center; gap: 2px; white-space: nowrap;
  color: #fff; font-size: calc(var(--k) * 46px); font-weight: 900; line-height: 1; letter-spacing: .01em; pointer-events: none; z-index: 2;
  text-shadow: 0 0 2px var(--cd), 1px 1px 0 var(--cd), -1px -1px 0 var(--cd), 1px -1px 0 var(--cd), -1px 1px 0 var(--cd), 0 2px 3px rgba(0,0,0,.35); }
.dt-tag span { max-width: calc(var(--k) * 230px); overflow: hidden; text-overflow: ellipsis; }
.dt-tag .dt-rk { display: none; }
.dt-boat[data-v="up"] .dt-tag { transform: translate(-50%, -50%) rotate(-8deg); top: calc(var(--k) * -46px); }
.dt-boat[data-v="down"] .dt-tag { transform: translate(-50%, -50%) rotate(9deg); left: calc(var(--k) * 8px); top: calc(var(--k) * -48px); }
.dt-rk { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 50%; background: #6b7c93; color: #fff; font-style: normal; font-size: 13px; font-weight: 900; }
.dt-rk.r1 { background: linear-gradient(180deg, #ffd84a, #e6a700); color: #6b3a00; } .dt-rk.r2 { background: linear-gradient(180deg, #e8eef5, #a9b6c6); color: #2f3d52; } .dt-rk.r3 { background: linear-gradient(180deg, #f2b27a, #c46d2a); }
.dt-en { width: 0; height: calc(var(--k) * 50px); background: url("../games/dua-thuyen/fx-bolt.webp") center / contain no-repeat; transition: width .25s; }
.dt-en.on { width: calc(var(--k) * 56px); animation: dt-glow .7s ease-in-out infinite; }
.dt-pick { transition: transform .45s ease-in, opacity .45s; animation: dt-glow .6s ease-in-out infinite; }
.dt-pick.got { transform: translateX(-120px) scale(.3); opacity: 0; }
.dt-fin-tag { position: absolute; z-index: 900; transform: translateX(-50%); padding: 4px 16px; border-radius: 99px; background: var(--c); color: #fff; font-size: 24px; font-weight: 900; border: 3px solid #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,.3); animation: dt-up 1.9s ease-out forwards; white-space: nowrap; }
.dt-fin-tag.r1 { background: linear-gradient(180deg, #ffd84a, #f0a400); color: #6b3a00; font-size: 28px; }

/* ----- lớp gần camera ----- */
.dt-near { position: absolute; left: 0; top: 0; width: 4400px; height: 720px; z-index: 2; pointer-events: none; will-change: transform; }
.dt-fg { position: absolute; left: 0; top: 0; width: 6500px; height: 720px; z-index: 3; pointer-events: none; will-change: transform; }
.dt-fgp { }

/* ----- hiệu ứng ----- */
.dt-fx { position: absolute; pointer-events: none; animation-fill-mode: forwards; animation-timing-function: ease-out; }
.dt-pop { animation-name: dt-pop; }
.dt-up { animation-name: dt-up; }
.dt-fall { animation-name: dt-fall; }
@keyframes dt-pop { 0% { transform: scale(.3); opacity: 0; } 25% { transform: scale(1.08); opacity: 1; } 70% { opacity: 1; } 100% { transform: scale(1.18); opacity: 0; } }
@keyframes dt-up { 0% { transform: translateY(10px) scale(.6); opacity: 0; } 20% { transform: translateY(0) scale(1); opacity: 1; } 75% { opacity: 1; } 100% { transform: translateY(-50px); opacity: 0; } }
@keyframes dt-fall { 0% { transform: translateY(-40px) rotate(-8deg); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(70px) rotate(10deg); opacity: 0; } }

/* ----- HUD ----- */
.dt-hud { position: absolute; left: 0; top: 0; width: 1280px; height: 62px; z-index: 10; display: flex; align-items: center; gap: 10px; padding: 6px 12px 0 300px; box-sizing: border-box; }
.dt-logo { position: absolute; left: 4px; top: 2px; width: 286px; height: auto; filter: drop-shadow(0 4px 5px rgba(0,30,60,.35)); pointer-events: none; }
.dt-pills { display: flex; gap: 14px; }
.dt-pill { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px 0 10px; box-sizing: border-box; border-radius: 99px; background: linear-gradient(180deg, #fffdf5, #f6efd9);
  border: 3px solid #4aa3e6; box-shadow: inset 0 -3px 0 rgba(0,40,90,.08), 0 3px 5px rgba(0,30,60,.3); white-space: nowrap; }
.dt-pi { display: block; width: 30px; height: 30px; flex: none; }
.dt-pi svg { width: 100%; height: 100%; display: block; }
.dt-pill > b { color: #17325c; font-size: 25px; font-weight: 900; font-variant-numeric: tabular-nums; }
.dt-p-q { min-width: 168px; } .dt-p-zone { min-width: 176px; } .dt-p-time { min-width: 158px; }
.dt-p-time > b { color: #d7261c; }
.dt-p-time.warn > b { animation: dt-warn .5s ease-in-out infinite alternate; }
@keyframes dt-warn { to { transform: scale(1.12); } }
.dt-tools { margin-left: auto; display: flex; gap: 6px; }
.dt-tool { border: 0; background: none; padding: 0; cursor: pointer; transition: transform .15s; filter: drop-shadow(0 3px 4px rgba(0,30,60,.3)); }
.dt-tool img { height: 50px; width: auto; display: block; }
.dt-tool[data-a="pause"] img { filter: hue-rotate(196deg) saturate(1.7) brightness(1.12); }   /* cam như ảnh mẫu */
.dt-tool[data-a="fs"] img { filter: hue-rotate(-75deg) saturate(1.2); }                      /* xanh lá */
.dt-tool:hover { transform: translateY(-2px) scale(1.06); }
.dt-tool:active { transform: scale(.94); }
.dt-edit .dt-tool { pointer-events: none; }

/* ----- bảng xếp hạng + thanh tiến trình (trên vùng đua, phía bờ xa) ----- */
.dt-board, .dt-track { opacity: 0; transition: opacity .4s, top .3s; }
.dt-race .dt-board, .dt-race .dt-track, .dt-edit .dt-board, .dt-edit .dt-track { opacity: 1; }
.dt-board { display: none !important; position: absolute; left: 12px; z-index: 9; display: flex; flex-direction: column; gap: 3px; transition: top .3s; }
.dt-br { display: flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px 0 3px; border-radius: 99px; background: rgba(255,255,255,.88); border-left: 6px solid var(--c);
  color: var(--dt-ink); font-size: 15px; font-weight: 800; box-shadow: 0 2px 4px rgba(0,40,80,.22); min-width: 170px; transition: transform .35s; }
.dt-br .dt-bm { height: 20px; width: auto; }
.dt-br span { flex: 1; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-br b { color: #0f7a3a; font-size: 15px; }
.dt-br.me, .dt-br.turn { background: #fffbe0; box-shadow: 0 0 0 2px var(--c), 0 2px 5px rgba(0,40,80,.3); }
.dt-track { position: absolute; left: 236px; width: 790px; height: 62px; z-index: 9; transition: top .3s, opacity .4s; pointer-events: none; }
.dt-rail { position: absolute; inset: 0; box-sizing: border-box; border-style: solid; border-color: transparent; border-width: 0 55px;
  border-image: url("../games/dua-thuyen/track-bar.webp") 0 140 fill / 0 55px stretch; filter: drop-shadow(0 3px 4px rgba(0,30,60,.3)); }
.dt-fill { position: absolute; left: 22px; top: 31px; height: 14px; opacity: .9; width: 0; border-radius: 99px; background: linear-gradient(180deg, #8cf06a, #2fae2b); box-shadow: 0 0 6px rgba(80,230,80,.7); transition: width .4s linear; }
.dt-tzones i { position: absolute; top: 28px; width: 3px; height: 20px; margin-left: -1px; border-radius: 2px; background: rgba(255,255,255,.85); }
.dt-minis { position: absolute; left: 0; top: 0; width: 790px; height: 62px; }
.dt-mini { position: absolute; top: 14px; transform: translateX(-50%); transition: left .4s linear; }
.dt-mini img { height: 32px; width: auto; display: block; filter: drop-shadow(0 2px 2px rgba(0,30,60,.4)); }
.dt-mini .dt-rk { position: absolute; left: -7px; top: -9px; min-width: 17px; height: 17px; font-size: 11px; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.dt-qtall .dt-board .dt-br { height: 22px; font-size: 13px; min-width: 150px; }
.dt-qtall .dt-board .dt-bm { height: 17px; }

/* ----- khung câu hỏi (9-slice: mẫu ngắn / mẫu cao) ----- */
.dt-q { position: absolute; left: 296px; width: 966px; top: 64px; z-index: 8; box-sizing: border-box; min-height: 100px; padding: 0 0 2px;
  border-style: solid; border-color: transparent; border-width: 24px 72px 30px; border-image: url("../games/dua-thuyen/q-short.webp") 45 140 58 140 fill / 24px 72px 30px stretch;
  display: flex; align-items: center; justify-content: center; filter: drop-shadow(0 4px 6px rgba(0,30,60,.3)); --qf: 32px;
  transform: translateY(-160%); opacity: 0; transition: transform .5s cubic-bezier(.2,1.2,.4,1), opacity .35s; }
.dt-q[data-tall="1"] { border-image-source: url("../games/dua-thuyen/q-tall.webp"); border-image-slice: 50 150 96 150 fill; border-width: 24px 72px 44px; }
.dt-qa-on .dt-q { transform: none; opacity: 1; }
.dt-qt { width: calc(100% + 96px); margin: 0 -48px; color: var(--dt-ink); font-size: var(--qf); line-height: 1.28; font-weight: 800; text-align: center; overflow-wrap: anywhere; }
.dt-q[data-tall="1"] .dt-qt { text-align: left; }
.dt-qt .dt-img { max-height: 120px; max-width: 30%; float: right; margin: 0 0 4px 16px; border-radius: 10px; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.dt-ct .dt-img { max-height: calc(var(--ch) - 26px); vertical-align: middle; margin: 0 6px; border-radius: 6px; }
.dt-frac { display: inline-flex; flex-direction: column; vertical-align: middle; text-align: center; font-size: .82em; line-height: 1.1; margin: 0 .12em; }
.dt-frac > span:first-child { border-bottom: .09em solid currentColor; padding: 0 .15em; }
.dt-ov { border-top: .08em solid currentColor; padding-top: .05em; }
.dt-qt sup, .dt-ct sup, .dt-qt sub, .dt-ct sub { font-size: .66em; }

/* ----- thẻ đáp án 2×2: A xanh dương · B vàng · C xanh lá · D tím; 4 trạng thái ----- */
.dt-cards { position: absolute; left: 16px; width: 1248px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; row-gap: 10px; z-index: 8; --cf: 28px; --ch: 92px;
  transform: translateY(130%); opacity: 0; transition: transform .5s cubic-bezier(.2,1.1,.4,1), opacity .35s; }
.dt-qa-on .dt-cards { transform: none; opacity: 1; }
.dt-card { --ci: url("../games/dua-thuyen/card-a.webp"); position: relative; isolation: isolate; box-sizing: border-box; height: var(--ch); margin: 0; border: 0; background: none;
  display: flex; align-items: center; padding: 8px calc(var(--ch) * .5) 12px calc(var(--ch) * .86); cursor: pointer; font: inherit; color: #12355e; text-align: left;
  transition: transform .15s ease, filter .2s ease; filter: drop-shadow(0 4px 5px rgba(0,30,60,.28)); }
.dt-card::before { content: ""; position: absolute; inset: 0; z-index: -1; box-sizing: border-box; border-style: solid; border-color: transparent;
  border-width: calc(var(--ch) / 2) calc(var(--ch) * .734) calc(var(--ch) / 2) calc(var(--ch) * .767);
  border-image: var(--ci) 50% 22% 50% 23% fill / calc(var(--ch) / 2) calc(var(--ch) * .734) calc(var(--ch) / 2) calc(var(--ch) * .767) stretch; }
.dt-c-b { --ci: url("../games/dua-thuyen/card-b.webp"); } .dt-c-c { --ci: url("../games/dua-thuyen/card-c.webp"); } .dt-c-d { --ci: url("../games/dua-thuyen/card-d.webp"); }
.dt-c-a:hover:not(.dim):not(.right):not(.wrong), .dt-c-a:focus-visible { --ci: url("../games/dua-thuyen/card-a-hi.webp"); }
.dt-c-b:hover:not(.dim):not(.right):not(.wrong), .dt-c-b:focus-visible { --ci: url("../games/dua-thuyen/card-b-hi.webp"); }
.dt-c-c:hover:not(.dim):not(.right):not(.wrong), .dt-c-c:focus-visible { --ci: url("../games/dua-thuyen/card-c-hi.webp"); }
.dt-c-d:hover:not(.dim):not(.right):not(.wrong), .dt-c-d:focus-visible { --ci: url("../games/dua-thuyen/card-d-hi.webp"); }
.dt-c-a.right { --ci: url("../games/dua-thuyen/card-a-ok.webp"); } .dt-c-b.right { --ci: url("../games/dua-thuyen/card-b-ok.webp"); }
.dt-c-c.right { --ci: url("../games/dua-thuyen/card-c-ok.webp"); } .dt-c-d.right { --ci: url("../games/dua-thuyen/card-d-ok.webp"); }
.dt-c-a.wrong { --ci: url("../games/dua-thuyen/card-a-no.webp"); } .dt-c-b.wrong { --ci: url("../games/dua-thuyen/card-b-no.webp"); }
.dt-c-c.wrong { --ci: url("../games/dua-thuyen/card-c-no.webp"); } .dt-c-d.wrong { --ci: url("../games/dua-thuyen/card-d-no.webp"); }
.dt-ct { flex: 1; min-width: 0; max-height: calc(var(--ch) - 18px); overflow: hidden; padding: 3px 0; font-size: var(--cf); line-height: 1.2; font-weight: 800; text-align: left; overflow-wrap: anywhere; }
.dt-card.right { animation: dt-right .6s ease-out; filter: drop-shadow(0 0 8px rgba(40,220,110,.9)); }
.dt-card.wrong { animation: dt-wrong .45s ease-in-out; filter: drop-shadow(0 0 7px rgba(240,60,40,.7)); }
.dt-card.dim { filter: drop-shadow(0 3px 4px rgba(0,30,60,.2)) saturate(.55) brightness(.95); opacity: .8; }
.dt-card:hover:not(.dim) { transform: translateY(-3px); }
.dt-card:focus-visible { outline: none; }
.dt-cards.dt-lock .dt-card { cursor: default; pointer-events: none; }
.dt-card.key::after { content: "Đáp án đúng"; position: absolute; right: 34px; top: -9px; z-index: 2; line-height: 18px; background: #16a34a; color: #fff; font-size: 13px; font-weight: 800; padding: 2px 10px; border-radius: 99px; }
.dt-marks { position: absolute; right: calc(var(--ch) * .2); bottom: 10px; display: flex; gap: 3px; }
.dt-marks i { width: 18px; height: 18px; border-radius: 50%; background: var(--c); border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
@keyframes dt-right { 30% { transform: scale(1.04); } 100% { transform: scale(1); } }
@keyframes dt-wrong { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }

/* ----- lượt nhóm, biểu ngữ chặng, thông báo ----- */
.dt-turn { position: absolute; right: 8px; max-width: 240px; flex-wrap: wrap; justify-content: flex-end; z-index: 9; display: flex; align-items: center; gap: 6px; padding: 4px 6px 4px 14px; border-radius: 99px;
  background: rgba(8,52,96,.78); color: #fff; font-size: 16px; font-weight: 700; white-space: nowrap; box-shadow: 0 3px 8px rgba(0,0,0,.25); }
.dt-tchip { border: 0; font: inherit; font-size: 16px; font-weight: 900; padding: 5px 14px; border-radius: 99px; background: rgba(255,255,255,.18); color: #fff; cursor: pointer; border: 2px solid var(--c); }
.dt-tchip.cur { background: var(--c); color: #fff; box-shadow: 0 0 0 3px #fff; }
.dt-tchip.done { opacity: .8; }
span.dt-tchip { cursor: default; }
.dt-banner { position: absolute; left: 50%; top: 250px; z-index: 12; display: flex; flex-direction: column; align-items: center; padding: 8px 40px 10px; border-radius: 26px; transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255,250,232,.97), rgba(255,236,190,.97)); border: 4px solid #1fb6d8; box-shadow: 0 8px 24px rgba(0,30,60,.35); color: var(--dt-navy); pointer-events: none; }
.dt-banner small { font-size: 16px; font-weight: 900; color: #0f8aa8; letter-spacing: .5px; text-transform: uppercase; }
.dt-banner b { font-size: 36px; font-weight: 900; line-height: 1.1; }
.dt-banner.in { animation: dt-bin .55s cubic-bezier(.2,1.4,.4,1); }
.dt-banner.out { animation: dt-bout .4s ease-in forwards; }
@keyframes dt-bin { from { transform: translateX(-50%) scale(.5); opacity: 0; } }
@keyframes dt-bout { to { transform: translateX(-50%) translateY(-30px) scale(.85); opacity: 0; } }
.dt-msg { position: absolute; left: 50%; top: 440px; z-index: 12; transform: translateX(-50%); padding: 8px 26px; border-radius: 99px; font-size: 22px; font-weight: 800; color: #fff; white-space: nowrap; pointer-events: none;
  background: linear-gradient(180deg, #3fd57a, #17a64c); box-shadow: 0 4px 0 #0e7a36, 0 8px 18px rgba(0,0,0,.25); max-width: 1180px; overflow: hidden; text-overflow: ellipsis; }
.dt-msg b { color: #fff6a0; margin: 0 2px; }
.dt-msg.dt-m-no { background: linear-gradient(180deg, #ffb04a, #f07d1a); box-shadow: 0 4px 0 #b55a07, 0 8px 18px rgba(0,0,0,.25); }
.dt-msg.dt-m-en { background: linear-gradient(180deg, #ffe066, #f5a800); color: #5a3000; box-shadow: 0 4px 0 #b27400, 0 8px 18px rgba(0,0,0,.25); }
.dt-msg.dt-m-en b { color: #8a1c00; }
.dt-msg.in { animation: dt-msgin .4s ease-out; }
@keyframes dt-msgin { from { transform: translateX(-50%) scale(.6); opacity: 0; } }
.dt-next { position: absolute; right: 24px; top: 440px; z-index: 12; border: 0; cursor: pointer; padding: 12px 26px; border-radius: 99px; font: inherit; font-size: 22px; font-weight: 900; color: #fff;
  background: linear-gradient(180deg, #2fb4f0, #0b78c9); box-shadow: 0 4px 0 #075a98, 0 8px 18px rgba(0,0,0,.25); }
.dt-note { position: absolute; left: 50%; top: 80px; transform: translateX(-50%); z-index: 40; background: rgba(4,30,60,.88); color: #fff; padding: 10px 20px; border-radius: 12px; font-size: 18px; font-weight: 700; }
.dt-count { position: absolute; inset: 0; z-index: 25; display: grid; place-items: center; pointer-events: none; }
.dt-count b { font-size: 190px; font-weight: 900; color: #fff; line-height: 1; -webkit-text-stroke: 8px #0b5fa6; paint-order: stroke fill; text-shadow: 0 10px 0 #073d70, 0 18px 30px rgba(0,0,0,.35); }
.dt-count b.go { font-size: 120px; color: #ffe14a; -webkit-text-stroke-color: #c0392b; text-shadow: 0 8px 0 #7a1d12, 0 16px 30px rgba(0,0,0,.35); }
.dt-count.in b { animation: dt-cnt .8s ease-out; }
@keyframes dt-cnt { 0% { transform: scale(2.2); opacity: 0; } 30% { transform: scale(1); opacity: 1; } 100% { transform: scale(.9); opacity: .9; } }
.dt-pause { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; background: rgba(4,40,80,.55); backdrop-filter: blur(3px); }
.dt-pbox { display: flex; flex-direction: column; align-items: center; gap: 10px; color: #fff; text-align: center; }
.dt-pbox b { font-size: 56px; font-weight: 900; text-shadow: 0 4px 0 #0b2f5c; }
.dt-pbox span { font-size: 20px; opacity: .9; }
.dt-resume { display: flex; align-items: center; gap: 10px; margin-top: 12px; border: 0; cursor: pointer; padding: 8px 30px 8px 10px; border-radius: 99px; background: #ffd23f; color: #6b3a00; font: inherit; font-size: 24px; font-weight: 900; box-shadow: 0 5px 0 #c99400; }
.dt-resume img { height: 44px; }

/* ----- màn mở đầu ----- */
.dt-intro { position: absolute; inset: 0; z-index: 20; display: flex; justify-content: center; align-items: flex-start; background: linear-gradient(180deg, rgba(4,60,110,.35), rgba(4,60,110,.05) 40%, rgba(4,40,80,.45)); transition: opacity .45s; }
.dt-intro.out { opacity: 0; pointer-events: none; }
.dt-ibox { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 4px; }
.dt-ilogo { width: 330px; height: auto; filter: drop-shadow(0 8px 14px rgba(0,0,0,.35)); animation: dt-logo 3s ease-in-out infinite; }
@keyframes dt-logo { 50% { transform: translateY(-6px) rotate(-1deg); } }
.dt-iset { display: flex; flex-direction: column; gap: 7px; width: 900px; padding: 12px 20px; box-sizing: border-box; border-radius: 22px; background: rgba(255,251,236,.95); border: 4px solid #22b8dd; box-shadow: 0 10px 26px rgba(0,30,60,.35); color: var(--dt-navy); }
.dt-irow { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.dt-irow > span:first-child { width: 120px; flex: none; font-size: 17px; font-weight: 900; }
.dt-sub { margin-left: 14px; font-size: 16px; font-weight: 800; color: #3a5d80; }
.dt-seg { display: flex; gap: 4px; padding: 3px; border-radius: 99px; background: #e6eef5; }
.dt-seg button { border: 0; font: inherit; font-size: 16px; font-weight: 800; padding: 6px 16px; border-radius: 99px; background: none; color: #3a5d80; cursor: pointer; }
.dt-seg button.on { background: linear-gradient(180deg, #2fb4f0, #0b78c9); color: #fff; box-shadow: 0 2px 0 #075a98; }
.dt-tgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; flex: 1; }
.dt-trow { display: flex; align-items: center; gap: 6px; }
.dt-tmini { height: 30px; width: auto; }
.dt-in { width: 170px; height: 34px; box-sizing: border-box; border: 2px solid #b9cfe2; border-radius: 10px; padding: 0 10px; font: inherit; font-size: 16px; font-weight: 700; color: var(--dt-navy); background: #fff; }
.dt-in:focus { outline: none; border-color: #1e9ad6; box-shadow: 0 0 0 3px rgba(30,154,214,.2); }
.dt-colors { display: flex; gap: 4px; }
.dt-col { width: 24px; height: 24px; border-radius: 50%; border: 3px solid #fff; background: var(--c); cursor: pointer; box-shadow: 0 0 0 1px #c5d3e0; padding: 0; }
.dt-col.on { box-shadow: 0 0 0 3px var(--c); }
.dt-alloc > div { display: flex; gap: 6px; flex: 1; }
.dt-alloc em { flex: 1; font-style: normal; text-align: center; padding: 3px 4px; border-radius: 10px; background: #dff3fb; font-size: 14px; font-weight: 700; color: #2f5d80; }
.dt-alloc em b { display: block; font-size: 15px; color: var(--dt-navy); }
.dt-alloc em.skip { opacity: .55; }
.dt-start { display: flex; align-items: center; gap: 10px; margin-top: 4px; border: 0; cursor: pointer; padding: 6px 34px 6px 8px; border-radius: 99px; font: inherit; font-size: 28px; font-weight: 900; color: #fff;
  background: linear-gradient(180deg, #ffb52e, #f07d1a); box-shadow: 0 5px 0 #b55a07, 0 10px 20px rgba(0,0,0,.25); animation: dt-pulse 1.6s ease-in-out infinite; }
.dt-start img { height: 48px; }
@keyframes dt-pulse { 50% { transform: scale(1.05); } }
.dt-ihint { color: #fff; font-size: 15px; font-weight: 700; text-shadow: 0 2px 3px rgba(0,0,0,.5); }

/* ----- màn tổng kết (ảnh nhóm 11: khung trái + cúp, thuyền bên phải) ----- */
.dt-sbg { position: absolute; inset: 0; width: 1280px; height: 720px; object-fit: cover; }
.dt-stitle { position: absolute; left: 198px; top: 34px; width: 400px; text-align: center; z-index: 3; color: #fff; font-size: 34px; font-weight: 900; text-shadow: 0 3px 0 #0b4f9c, 0 6px 10px rgba(0,0,0,.25); letter-spacing: .3px; }
.dt-sbox { position: absolute; left: 44px; top: 120px; width: 690px; height: 494px; z-index: 3; display: flex; flex-direction: column; gap: 10px; color: var(--dt-navy); }
.dt-shead { display: flex; align-items: center; gap: 12px; }
.dt-cupi { height: 50px; width: auto; filter: drop-shadow(0 3px 3px rgba(0,0,0,.2)); }
.dt-shead b { display: block; font-size: 30px; font-weight: 900; line-height: 1.15; }
.dt-shead small { font-size: 16px; font-weight: 700; color: #3a6283; }
.dt-tbl { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-size: 18px; }
.dt-tbl th { font-size: 14px; font-weight: 800; color: #3a6283; text-align: center; padding: 0 4px; white-space: nowrap; }
.dt-tbl td { background: #fff; text-align: center; padding: 6px 6px; font-weight: 800; border-top: 2px solid #d7e6f1; border-bottom: 2px solid #d7e6f1; white-space: nowrap; }
.dt-tbl td:first-child { border-left: 2px solid #d7e6f1; border-radius: 14px 0 0 14px; }
.dt-tbl td:last-child { border-right: 2px solid #d7e6f1; border-radius: 0 14px 14px 0; }
.dt-tbl tr.r1 td { background: #fff6cf; border-color: #f2cf55; }
.dt-tbl tr.me td { box-shadow: inset 0 0 0 0 transparent; }
.dt-tbl .nm { text-align: left; }
.dt-nmc { display: flex; align-items: center; gap: 8px; }
.dt-tbl td.nm small { margin-left: 6px; font-size: 12px; padding: 1px 6px; border-radius: 6px; background: #e3ebf3; color: #50677f; }
.dt-sm { height: 30px; width: auto; }
.dt-tbl td b { font-size: 22px; color: #0b4f9c; }
.dt-tbl td.ok { color: #138a3e; } .dt-tbl td.no { color: #d0452d; }
.dt-medal { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-style: normal; font-weight: 900; font-size: 18px; color: #fff; background: #7d8ea5; box-shadow: inset 0 -3px 0 rgba(0,0,0,.18); }
.dt-medal.m1 { background: linear-gradient(180deg, #ffe066, #e6a700); color: #6b3a00; } .dt-medal.m2 { background: linear-gradient(180deg, #f1f5f9, #a7b4c4); color: #2f3d52; } .dt-medal.m3 { background: linear-gradient(180deg, #f6be8a, #c46d2a); }
.dt-crit { margin: 0; font-size: 14.5px; line-height: 1.4; color: #2f5576; background: #eaf6fb; border-radius: 12px; padding: 8px 12px; }
.dt-sbtn { display: flex; gap: 10px; margin-top: auto; justify-content: center; }
.dt-wbtn { border: 0; cursor: pointer; padding: 11px 22px; border-radius: 99px; font: inherit; font-size: 19px; font-weight: 900; color: #fff; background: linear-gradient(180deg, #ffb52e, #f07d1a); box-shadow: 0 4px 0 #b55a07; }
.dt-wb2 { background: linear-gradient(180deg, #2fb4f0, #0b78c9); box-shadow: 0 4px 0 #075a98; }
.dt-wb3 { background: linear-gradient(180deg, #8fa3b8, #5f7690); box-shadow: 0 4px 0 #435669; }
.dt-wbtn:hover { transform: translateY(-2px); }
.dt-podium { position: absolute; left: 820px; top: 486px; width: 456px; height: 211px; z-index: 2; animation: dt-gpop .8s cubic-bezier(.2,1.4,.4,1) .2s both; }
.dt-podimg { position: absolute; left: 0; top: 0; width: 456px; height: auto; filter: drop-shadow(0 8px 10px rgba(0,30,60,.3)); }
.dt-pboat { position: absolute; width: 118px; height: auto; transform: translate(-50%, -88%); filter: drop-shadow(0 4px 4px rgba(0,30,60,.3)); animation: dt-gpop .7s cubic-bezier(.2,1.5,.4,1) both; }
.dt-sfx { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.dt-detail { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; background: rgba(4,40,80,.5); }
.dt-dbox { width: 1060px; max-height: 640px; display: flex; flex-direction: column; background: #fffbea; border-radius: 22px; border: 4px solid #22b8dd; padding: 16px 22px; box-sizing: border-box; color: var(--dt-navy); }
.dt-dbox h3 { margin: 0 0 8px; font-size: 26px; font-weight: 900; }
.dt-dbox ol { margin: 0; padding: 0 6px 0 0; list-style: none; overflow: auto; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.dt-dbox li { background: #fff; border: 2px solid #d7e6f1; border-radius: 14px; padding: 8px 14px; }
.dt-dq { font-size: 18px; font-weight: 800; } .dt-dq small { display: block; font-size: 13px; color: #4c7393; }
.dt-dq .dt-img { max-height: 60px; vertical-align: middle; }
.dt-da { font-size: 16px; margin-top: 2px; } .dt-da em { display: block; color: #5a6f86; font-size: 14px; }
.dt-dwho { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
.dt-dr { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 800; padding: 2px 10px 2px 4px; border-radius: 99px; background: #eef3f8; }
.dt-dr i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); }
.dt-dr.ok { background: #dcf7e5; color: #11743a; } .dt-dr.no { background: #fde3dc; color: #b23a21; } .dt-dr.to { background: #fff1d6; color: #9a6200; }
.dt-dact { display: flex; justify-content: center; margin-top: 10px; }

/* ----- trang soạn ----- */
.dt-edit .dt-q, .dt-edit .dt-cards { transition: none; }
.ge-row .dt-names { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.dt-set .ge-input { margin-bottom: 0; }
.dt-set .dt-nm { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 6px; }
.dt-set .dt-nm input { width: 100%; box-sizing: border-box; }
.dt-set .dt-r { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--text-strong, #1f2d3d); }
.dt-set .dt-r small { display: block; font-weight: 400; color: var(--text-muted, #6b7a8c); font-size: 12px; }
.dt-set .ge-sel { max-width: 170px; }
@media (prefers-reduced-motion: reduce) { .dt-water, .dt-buoy, .dt-lily, .dt-bob, .dt-ripple, .dt-ilogo, .dt-start { animation: none !important; } }

/* ----- màn mở đầu: ẩn logo nhỏ + thẻ Câu/Chặng/Thời gian (màn mở đầu đã có logo lớn) ----- */
.dt-logo, .dt-pills { transition: opacity .4s; }
.dt-play:not(.dt-race) .dt-logo, .dt-play:not(.dt-race) .dt-pills { opacity: 0; }
.dt-edit .dt-play .dt-logo, .dt-edit .dt-play .dt-pills { opacity: 1; }

/* ----- câu hỏi dài: logo nhỏ trên thanh trên, khung câu hỏi rộng hết màn hình ----- */
.dt-logo-s { position: absolute; left: 10px; top: 4px; height: 54px; width: auto; opacity: 0; transition: opacity .3s; pointer-events: none; filter: drop-shadow(0 3px 4px rgba(0,30,60,.35)); }
.dt-qwide .dt-logo { opacity: 0 !important; }
.dt-race.dt-qwide .dt-logo-s, .dt-edit .dt-qwide .dt-logo-s { opacity: 1; }
.dt-qwide .dt-q { left: 16px; width: 1248px; }
