/* ================= Tinh Mắt Tìm Đồ — màn chơi: tranh phủ kín màn hình, kéo + chụm để phóng to / thu nhỏ ================= */
body.mb-light.td-play { background: #1d1611 !important; --mb-bg: #2d231c; --mb-line: #4a3a2e; --mb-txt: #f6ecd8; --mb-mut: #c9b79a; --mb-acc: #ffcf5a; --mb-hover: #3a2d24; --mb-btn: #3a2d24; --mb-on: #46372b; }
#scPlay { animation: none; }
.tp { position: fixed; inset: 0; z-index: 30; overflow: hidden; background: #1d1611; touch-action: none; -webkit-user-select: none; user-select: none; }
.tp-view { position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: grab; }
.tp-view.drag { cursor: grabbing; }
.tp-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.tp-world img { display: block; width: 100%; height: 100%; pointer-events: none; -webkit-user-drag: none; }

/* Marks live in the picture's own coordinates (percent of the world), so zooming moves them for free. */
.mk { position: absolute; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; box-sizing: border-box; }
.mk.ok { border: calc(3px / var(--sc, 1)) solid #34c759; box-shadow: 0 0 0 calc(2px / var(--sc, 1)) rgba(0, 0, 0, .35), 0 0 calc(12px / var(--sc, 1)) rgba(52, 199, 89, .9); animation: pop .35s ease-out; }
.mk.hint { border: calc(3px / var(--sc, 1)) dashed #ffcf5a; background: rgba(255, 207, 90, .14); box-shadow: 0 0 calc(18px / var(--sc, 1)) rgba(255, 207, 90, .8); animation: beat 1s ease-in-out infinite; }
.mk.lens { border: calc(4px / var(--sc, 1)) solid #fff; box-shadow: 0 0 0 calc(3px / var(--sc, 1)) rgba(0, 0, 0, .45), 0 0 calc(22px / var(--sc, 1)) rgba(255, 255, 255, .9); animation: beat .8s ease-in-out infinite; }
.mk.bad { width: calc(30px / var(--sc, 1)); border-radius: 0; animation: fadeout .7s ease-out forwards; }
.mk.bad::before, .mk.bad::after { content: ''; position: absolute; left: 50%; top: 50%; width: 100%; height: calc(5px / var(--sc, 1)); margin: calc(-2.5px / var(--sc, 1)) 0 0 -50%; border-radius: 4px; background: #ff4d4d; box-shadow: 0 0 calc(6px / var(--sc, 1)) rgba(0, 0, 0, .6); transform: rotate(45deg); }
.mk.bad::after { transform: rotate(-45deg); }
@keyframes pop { 0% { transform: translate(-50%, -50%) scale(1.8); opacity: 0; } 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
@keyframes beat { 50% { transform: translate(-50%, -50%) scale(1.08); } }
@keyframes fadeout { to { opacity: 0; } }

.tp-top { position: absolute; left: 12px; right: 12px; top: calc(12px + env(safe-area-inset-top)); z-index: 3; display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 8px; border-radius: 18px; background: rgba(36, 28, 22, .86); color: #f6ecd8; font-weight: 800; }
.tp-top button { width: 40px; height: 40px; flex: none; padding: 0; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .12); color: #f6ecd8; display: grid; place-items: center; }
.tp-top button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tp-top .t { flex: 1; min-width: 0; font-size: 16px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-top .t small { display: block; font-size: 11px; color: #ffcf5a; letter-spacing: .5px; font-weight: 800; }
.tp-top .tm { min-width: 64px; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: 17px; font-variant-numeric: tabular-nums; text-align: center; }
.tp-top .tm.low { background: #c4281c; animation: beat2 .8s ease-in-out infinite; }
@keyframes beat2 { 50% { transform: scale(1.06); } }

.tp-tray { position: absolute; left: 12px; right: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 3; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 18px; background: rgba(36, 28, 22, .9); }
.tp-tray .cnt { color: #ffcf5a; font-weight: 800; font-size: 14px; padding: 0 4px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tp-tray .row { display: flex; gap: 6px; flex: 1; justify-content: flex-end; min-width: 0; }
.tl { position: relative; flex: 1 1 0; max-width: 46px; aspect-ratio: 1; border-radius: 11px; background: #f6ecd8 center / cover no-repeat; transition: opacity .25s, filter .25s; }
.tl.f { opacity: .35; filter: grayscale(.7); }
.tl.f::after { content: ''; position: absolute; right: -3px; top: -3px; width: 18px; height: 18px; border-radius: 50%; background: #34c759 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat; }
.tl.new { animation: pop2 .5s ease-out; }
@keyframes pop2 { 0% { transform: scale(1.5); } 100% { transform: scale(1); } }

.tp-zl { position: absolute; left: 14px; bottom: calc(82px + env(safe-area-inset-bottom)); z-index: 3; padding: 5px 11px; border-radius: 999px; background: rgba(36, 28, 22, .86); color: #f6ecd8; font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums; pointer-events: none; }
.tp-boost { position: absolute; right: 14px; bottom: calc(82px + env(safe-area-inset-bottom)); z-index: 3; display: flex; flex-direction: column; gap: 8px; }
.tp-boost button { position: relative; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: rgba(36, 28, 22, .9); color: #ffcf5a; display: grid; place-items: center; }
.tp-boost button svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tp-boost button u { position: absolute; right: -3px; top: -3px; min-width: 20px; padding: 0 5px; border-radius: 999px; background: #ffcf5a; color: #3a2a1a; font-size: 12px; font-weight: 900; text-decoration: none; line-height: 20px; text-align: center; }
.tp-boost button:disabled { opacity: .4; }
.tp-boost button.arm { background: #ffcf5a; color: #3a2a1a; }

.tp-float { position: absolute; z-index: 4; pointer-events: none; font-weight: 900; font-size: 22px; color: #ff6b6b; text-shadow: 0 2px 6px rgba(0, 0, 0, .8); animation: floatup 1s ease-out forwards; }
.tp-float.good { color: #7dffa3; }
@keyframes floatup { from { opacity: 1; transform: translate(-50%, 0); } to { opacity: 0; transform: translate(-50%, -46px); } }
.tp-shake { animation: shake .3s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@media (min-width: 700px) { .tp-top { left: 50%; right: auto; width: 560px; transform: translateX(-50%); } .tp-tray { left: 50%; right: auto; width: 560px; transform: translateX(-50%); } }
