.dft-game {
	--dft-navy: #10233f;
	--dft-blue: #2968ff;
	--dft-cyan: #28c6e7;
	--dft-yellow: #ffc942;
	--dft-orange: #ff8b37;
	--dft-purple: #7147e8;
	--dft-green: #15956f;
	--dft-red: #bd443e;
	--dft-ink: #1a2940;
	--dft-muted: #65758a;
	--dft-line: #dce5ef;
	--dft-soft: #f3f7fc;
	position: relative;
	overflow: hidden;
	color: var(--dft-ink);
	background: #eaf3ff;
	font: 16px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	isolation: isolate;
}

.dft-game *, .dft-game *::before, .dft-game *::after { box-sizing: border-box; }
.dft-game button { font: inherit; }
.dft-game button:focus-visible, .dft-game a:focus-visible { outline: 4px solid rgba(255, 201, 66, .85); outline-offset: 3px; }
.dft-game [hidden] { display: none !important; }
.dft-game h2, .dft-game h3, .dft-game h4, .dft-game p { margin-top: 0; }
.dft-game h2, .dft-game h3, .dft-game h4 { color: var(--dft-navy); line-height: 1.12; letter-spacing: -.025em; }
.dft-game .dft-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; color: var(--dft-blue); font-size: .75rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.dft-game .dft-kicker::before { content: ""; width: 20px; height: 3px; border-radius: 3px; background: var(--dft-yellow); }
.dft-game .dft-button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 14px; padding: 13px 22px; color: #fff; background: linear-gradient(135deg, var(--dft-blue), var(--dft-purple)); box-shadow: 0 12px 26px rgba(41,104,255,.24); font-weight: 850; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.dft-game .dft-button:hover { transform: translateY(-2px); box-shadow: 0 15px 30px rgba(41,104,255,.3); }
.dft-game .dft-button-secondary { color: var(--dft-blue); border: 2px solid #cbd9fa; background: #fff; box-shadow: none; }

.dft-game .dft-sky { position: absolute; z-index: -1; inset: 0; pointer-events: none; }
.dft-game .dft-sky span { position: absolute; border-radius: 50%; opacity: .45; filter: blur(1px); }
.dft-game .dft-sky span:nth-child(1) { width: 360px; height: 360px; top: 240px; left: -210px; background: #b8eaf5; }
.dft-game .dft-sky span:nth-child(2) { width: 420px; height: 420px; top: 550px; right: -250px; background: #d9cfff; }
.dft-game .dft-sky span:nth-child(3) { width: 180px; height: 180px; top: 35%; left: 72%; background: #ffe7a5; }

.dft-game .dft-hero { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 55px; min-height: 520px; padding: 76px max(24px, calc((100% - 1120px) / 2)); color: #fff; background: radial-gradient(circle at 80% 15%, rgba(40,198,231,.34), transparent 26%), linear-gradient(125deg, #0b1d35, #12375b 62%, #175276); }
.dft-game .dft-hero h2 { margin-bottom: 16px; color: #fff; font-size: clamp(3rem, 7vw, 5.8rem); }
.dft-game .dft-hero h2 span { display: block; color: #79e3f4; }
.dft-game .dft-hero .dft-kicker { color: #79e3f4; }
.dft-game .dft-tagline { max-width: 650px; color: #d9e6f3; font-size: clamp(1.1rem, 2.3vw, 1.35rem); font-weight: 700; }
.dft-game .dft-privacy-pill { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 9px 13px; color: #d5e5f4; background: rgba(255,255,255,.08); font-size: .78rem; font-weight: 700; }
.dft-game .dft-hero-art { position: relative; display: grid; min-height: 380px; place-items: center; }
.dft-game .dft-phone { position: relative; width: 230px; height: 380px; border: 9px solid #071524; border-radius: 34px; padding: 36px 18px 18px; color: var(--dft-navy); background: #fff; box-shadow: 0 30px 70px rgba(0,0,0,.3); transform: rotate(6deg); }
.dft-game .dft-phone-top { position: absolute; top: 10px; left: 78px; width: 58px; height: 7px; border-radius: 5px; background: #071524; }
.dft-game .dft-avatar { display: grid; width: 48px; height: 48px; margin-bottom: 13px; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--dft-purple), #b14bce); font-weight: 900; }
.dft-game .dft-phone-line { width: 55%; height: 8px; margin: 8px 0; border-radius: 8px; background: #dce6f0; }
.dft-game .dft-phone-line.long { width: 88%; }
.dft-game .dft-post-image { display: grid; grid-template-columns: repeat(3,1fr); align-items: end; height: 180px; margin-top: 18px; border-radius: 17px; padding: 18px 8px; background: linear-gradient(#a5e7f5 0 60%, #8ed29d 60%); font-size: 2.2rem; }
.dft-game .dft-magnifier { position: absolute; top: 85px; right: 15px; font-size: 5rem; filter: drop-shadow(0 12px 12px rgba(0,0,0,.25)); animation: dft-float 3s ease-in-out infinite; }
.dft-game .dft-footprints { position: absolute; bottom: 20px; left: 0; color: rgba(255,255,255,.32); font-size: 1.8rem; transform: rotate(-20deg); }
@keyframes dft-float { 50% { transform: translateY(-10px) rotate(-4deg); } }

.dft-game .dft-shell { width: min(1040px, calc(100% - 40px)); margin: -44px auto 80px; }
.dft-game .dft-screen { position: relative; border: 1px solid rgba(16,35,63,.08); border-radius: 28px; padding: 44px; background: rgba(255,255,255,.97); box-shadow: 0 25px 70px rgba(16,35,63,.13); }
.dft-game .dft-welcome { text-align: center; }
.dft-game .dft-mission-badge { display: inline-block; margin-bottom: 17px; border: 2px dashed #bd8b00; border-radius: 8px; padding: 7px 12px; color: #6f5200; background: #fff4c9; font-size: .72rem; font-weight: 950; letter-spacing: .12em; transform: rotate(-2deg); }
.dft-game .dft-welcome h3, .dft-game .dft-complete h3 { margin-bottom: 14px; font-size: clamp(2rem, 4vw, 3.1rem); }
.dft-game .dft-welcome > p { max-width: 720px; margin-inline: auto; color: var(--dft-muted); font-size: 1.05rem; }
.dft-game .dft-mission-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin: 32px 0; }
.dft-game .dft-mission-grid > div { border: 1px solid var(--dft-line); border-radius: 17px; padding: 22px 16px; background: var(--dft-soft); }
.dft-game .dft-mission-grid span { display: block; margin-bottom: 9px; font-size: 2rem; }
.dft-game .dft-mission-grid strong, .dft-game .dft-mission-grid small { display: block; }
.dft-game .dft-mission-grid small { margin-top: 3px; color: var(--dft-muted); }
.dft-game .dft-start { font-size: 1.05rem; }
.dft-game .dft-small { margin: 18px auto 0 !important; font-size: .78rem !important; }

.dft-game .dft-play { padding: 30px; }
.dft-game .dft-toolbar { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 15px; margin-bottom: 22px; }
.dft-game .dft-progress-wrap { min-width: 0; }
.dft-game .dft-level-label { margin-bottom: 6px; color: var(--dft-muted); font-size: .78rem; font-weight: 700; }
.dft-game .dft-progress { overflow: hidden; height: 11px; border-radius: 99px; background: #e3eaf2; }
.dft-game .dft-progress span { display: block; width: 20%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--dft-cyan), var(--dft-blue)); transition: width .35s ease; }
.dft-game .dft-score-card, .dft-game .dft-streak-card { display: flex; align-items: center; gap: 8px; min-width: 100px; border: 1px solid var(--dft-line); border-radius: 13px; padding: 8px 11px; background: #fff; }
.dft-game .dft-score-card > span, .dft-game .dft-streak-card > span { font-size: 1.5rem; }
.dft-game .dft-score-card small, .dft-game .dft-streak-card small { display: block; color: var(--dft-muted); font-size: .65rem; text-transform: uppercase; }
.dft-game .dft-score-card strong, .dft-game .dft-streak-card strong { display: block; color: var(--dft-navy); line-height: 1; }
.dft-game .dft-stage { overflow: hidden; border: 1px solid var(--dft-line); border-radius: 20px; background: var(--dft-soft); }
.dft-game .dft-level-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 23px 26px; color: #fff; background: linear-gradient(120deg, var(--dft-navy), #154d75); }
.dft-game .dft-level-head .dft-kicker { margin-bottom: 4px; color: #79e3f4; }
.dft-game .dft-level-head h3 { margin-bottom: 4px; color: #fff; font-size: 1.65rem; }
.dft-game .dft-level-head p:last-child { margin: 0; color: #cfdeeb; font-size: .88rem; }
.dft-game .dft-level-icon { display: grid; width: 57px; height: 57px; place-items: center; border-radius: 16px; background: rgba(255,255,255,.12); font-size: 2rem; }
.dft-game .dft-goal { border-radius: 99px; padding: 8px 12px; color: #573f00; background: var(--dft-yellow); font-size: .78rem; font-weight: 900; white-space: nowrap; }
.dft-game .dft-level-content { padding: 28px; }
.dft-game .dft-social-card, .dft-game .dft-photo-post { max-width: 650px; margin-inline: auto; border: 1px solid #d9e2ec; border-radius: 19px; padding: 20px; background: #fff; box-shadow: 0 12px 30px rgba(16,35,63,.08); }
.dft-game .dft-social-top, .dft-game .dft-post-header { display: flex; align-items: center; gap: 10px; margin-bottom: 17px; }
.dft-game .dft-avatar-large, .dft-game .dft-mini-avatar { display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(135deg,var(--dft-purple),#c154c5); font-weight: 900; }
.dft-game .dft-avatar-large { width: 52px; height: 52px; }
.dft-game .dft-mini-avatar { width: 39px; height: 39px; }
.dft-game .dft-social-top div span, .dft-game .dft-post-header small { display: block; color: var(--dft-muted); font-size: .75rem; }
.dft-game .dft-public { margin-left: auto; color: var(--dft-muted); font-size: .75rem; }
.dft-game .dft-profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dft-game .dft-clue, .dft-game .dft-inline-clue, .dft-game .dft-story, .dft-game .dft-settings button { border: 2px solid var(--dft-line); border-radius: 12px; color: var(--dft-ink); background: #fff; text-align: left; cursor: pointer; transition: border-color .16s ease, transform .16s ease, background .16s ease; }
.dft-game .dft-clue:hover:not(:disabled), .dft-game .dft-inline-clue:hover:not(:disabled), .dft-game .dft-story:hover:not(:disabled), .dft-game .dft-settings button:hover:not(:disabled) { transform: translateY(-2px); border-color: #9cb6ed; }
.dft-game .dft-clue { padding: 13px; }
.dft-game .dft-clue small, .dft-game .dft-clue strong { display: block; }
.dft-game .dft-clue small { color: var(--dft-muted); }
.dft-game button.is-found { border-color: var(--dft-green) !important; color: #0e5e48 !important; background: #eaf9f4 !important; box-shadow: inset 0 0 0 1px var(--dft-green); }
.dft-game button.is-found::after { content: "  ✓"; font-weight: 950; }
.dft-game button.is-decoy { border-color: #e3b9b6 !important; color: #7f3c37 !important; background: #fff3f2 !important; opacity: .8; }

.dft-game .dft-scene { position: relative; overflow: hidden; height: 330px; border-radius: 15px; background: linear-gradient(#99e1f2 0 58%, #88cc8f 58%); }
.dft-game .dft-sun { position: absolute; top: 18px; right: 25px; font-size: 2.6rem; }
.dft-game .dft-cloud { position: absolute; top: 35px; left: 65px; font-size: 2.5rem; }
.dft-game .dft-house { position: absolute; right: 45px; bottom: 54px; width: 170px; height: 120px; background: #f6e7c1; }
.dft-game .dft-roof { position: absolute; width: 0; height: 0; top: -60px; left: -18px; border-left: 103px solid transparent; border-right: 103px solid transparent; border-bottom: 68px solid #c45047; }
.dft-game .dft-door { position: absolute; bottom: 0; left: 63px; width: 45px; height: 70px; padding-top: 8px; color: #fff; background: #6f4939; text-align: center; font-weight: 900; }
.dft-game .dft-road-sign { position: absolute; bottom: 25px; left: 30px; border: 4px solid #fff; padding: 8px; color: #fff; background: #2d7f55; font-size: .7rem; font-weight: 900; transform: rotate(-3deg); }
.dft-game .dft-road-sign::after { content: ""; position: absolute; width: 5px; height: 60px; top: 100%; left: 50%; background: #656d73; }
.dft-game .dft-person { position: absolute; z-index: 2; left: 43%; bottom: 23px; width: 72px; text-align: center; }
.dft-game .dft-head { display: block; font-size: 3.3rem; }
.dft-game .dft-body { display: grid; height: 90px; place-items: center; border-radius: 22px 22px 8px 8px; color: #fff; background: #274f9c; font-weight: 900; }
.dft-game .dft-hotspot { position: absolute; z-index: 5; display: grid; min-width: 42px; min-height: 42px; place-items: center; border: 3px solid #fff; border-radius: 50%; color: #fff; background: var(--dft-orange); box-shadow: 0 4px 0 rgba(0,0,0,.18); font-size: .72rem; font-weight: 900; cursor: pointer; animation: dft-pulse 2s infinite; }
.dft-game .dft-hotspot b { position: absolute; width: max-content; max-width: 110px; top: 48px; border-radius: 7px; padding: 5px 7px; color: var(--dft-navy); background: #fff; box-shadow: 0 5px 14px rgba(0,0,0,.16); font-size: .65rem; opacity: 0; pointer-events: none; transition: opacity .15s ease; }
.dft-game .dft-hotspot:hover b, .dft-game .dft-hotspot:focus b { opacity: 1; }
.dft-game .dft-hotspot.house { right: 56px; bottom: 73px; }
.dft-game .dft-hotspot.road { left: 48px; bottom: 85px; }
.dft-game .dft-hotspot.badge { left: 16px; bottom: 40px; }
.dft-game .dft-hotspot.cloud { left: 80px; top: 55px; }
@keyframes dft-pulse { 50% { box-shadow: 0 4px 0 rgba(0,0,0,.18), 0 0 0 8px rgba(255,139,55,.18); } }
.dft-game .dft-caption { margin: 15px 0 0; }

.dft-game .dft-location-visual { display: flex; align-items: center; gap: 14px; border-radius: 14px; padding: 18px; background: linear-gradient(135deg,#dff7fb,#edf1ff); }
.dft-game .dft-pin-big { font-size: 2.8rem; }
.dft-game .dft-location-visual small { display: block; color: var(--dft-muted); }
.dft-game .dft-post-copy { display: grid; gap: 8px; margin-top: 14px; }
.dft-game .dft-inline-clue { width: 100%; padding: 11px 13px; }
.dft-game .dft-story-list { display: grid; gap: 11px; max-width: 720px; margin-inline: auto; }
.dft-game .dft-story { display: flex; width: 100%; align-items: center; gap: 13px; padding: 14px; }
.dft-game .dft-story > span { font-size: 1.7rem; }
.dft-game .dft-story strong, .dft-game .dft-story small { display: block; }
.dft-game .dft-story small { margin-top: 3px; color: var(--dft-muted); }

.dft-game .dft-settings { display: grid; gap: 14px; max-width: 750px; margin-inline: auto; }
.dft-game .dft-settings fieldset { min-width: 0; border: 1px solid var(--dft-line); border-radius: 15px; padding: 17px; background: #fff; }
.dft-game .dft-settings legend { padding: 0 7px; color: var(--dft-navy); font-weight: 850; }
.dft-game .dft-settings legend span { margin-right: 7px; }
.dft-game .dft-settings fieldset > div { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 8px; }
.dft-game .dft-settings button { flex: 1 1 150px; min-height: 46px; padding: 10px 12px; text-align: center; font-weight: 750; }

.dft-game .dft-feedback { display: grid; grid-template-columns: auto 1fr; gap: 12px; margin-top: 16px; border-radius: 14px; padding: 15px 17px; }
.dft-game .dft-feedback > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; font-size: 1.2rem; }
.dft-game .dft-feedback p { margin: 2px 0 0; font-size: .86rem; }
.dft-game .dft-feedback.is-correct { color: #0d5e46; background: #e8f8f2; }
.dft-game .dft-feedback.is-correct > span { background: #c9ecdf; }
.dft-game .dft-feedback.is-try-again { color: #6d5011; background: #fff5d8; }
.dft-game .dft-feedback.is-try-again > span { background: #ffe8a7; }
.dft-game .dft-level-complete { display: grid; grid-template-columns: auto 1fr; gap: 17px; margin: 20px; border: 2px solid #b9dfd2; border-radius: 17px; padding: 22px; background: #ecfaf5; animation: dft-pop .3s ease-out; }
.dft-game .dft-level-star { font-size: 3rem; }
.dft-game .dft-level-complete h4 { margin-bottom: 6px; font-size: 1.5rem; }
.dft-game .dft-level-complete p:not(.dft-kicker) { color: #42675d; }
.dft-game .dft-next { min-height: 45px; padding: 10px 16px; }
@keyframes dft-pop { from { opacity: 0; transform: scale(.96); } }

.dft-game .dft-complete { overflow: hidden; text-align: center; }
.dft-game .dft-trophy { font-size: 5rem; animation: dft-trophy .7s ease-out; }
@keyframes dft-trophy { from { opacity: 0; transform: scale(.3) rotate(-18deg); } 65% { transform: scale(1.15) rotate(5deg); } }
.dft-game .dft-complete > p:not(.dft-kicker) { max-width: 680px; margin-inline: auto; color: var(--dft-muted); }
.dft-game .dft-final-score { display: inline-flex; align-items: baseline; gap: 8px; margin: 17px 0 25px; border-radius: 17px; padding: 15px 22px; color: #573f00; background: #fff1b8; }
.dft-game .dft-final-score small { font-weight: 700; }
.dft-game .dft-final-score strong { font-size: 2.6rem; line-height: 1; }
.dft-game .dft-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.dft-game .dft-badges > div { min-width: 130px; border: 1px solid var(--dft-line); border-radius: 14px; padding: 14px; background: var(--dft-soft); }
.dft-game .dft-badges span, .dft-game .dft-badges strong { display: block; }
.dft-game .dft-badges span { font-size: 2rem; }
.dft-game .dft-badges strong { margin-top: 4px; font-size: .78rem; }
.dft-game .dft-tips { max-width: 650px; margin: 28px auto; border-radius: 17px; padding: 20px 25px; background: #eff7ff; text-align: left; }
.dft-game .dft-tips h4 { margin-bottom: 8px; }
.dft-game .dft-tips ul { margin: 0; padding-left: 20px; columns: 2; color: #52647a; }
.dft-game .dft-complete-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 11px; }
.dft-game .dft-confetti i { position: absolute; width: 10px; height: 20px; top: -25px; background: var(--dft-yellow); animation: dft-confetti 3s linear infinite; }
.dft-game .dft-confetti i:nth-child(1){left:8%;background:#ff6b6b;animation-delay:.1s}.dft-game .dft-confetti i:nth-child(2){left:20%;background:#28c6e7;animation-delay:.6s}.dft-game .dft-confetti i:nth-child(3){left:36%;background:#7147e8;animation-delay:1.1s}.dft-game .dft-confetti i:nth-child(4){left:50%;background:#ffc942;animation-delay:.3s}.dft-game .dft-confetti i:nth-child(5){left:63%;background:#15956f;animation-delay:1.5s}.dft-game .dft-confetti i:nth-child(6){left:76%;background:#ff8b37;animation-delay:.8s}.dft-game .dft-confetti i:nth-child(7){left:88%;background:#2968ff;animation-delay:1.8s}.dft-game .dft-confetti i:nth-child(8){left:95%;background:#e650a0;animation-delay:.4s}
@keyframes dft-confetti { to { transform: translateY(700px) rotate(720deg); } }
.dft-game .dft-certificate { display: none; }

@media (max-width: 820px) {
	.dft-game .dft-hero { grid-template-columns: 1fr; padding-top: 60px; text-align: center; }
	.dft-game .dft-hero-copy { display: flex; flex-direction: column; align-items: center; }
	.dft-game .dft-hero-art { min-height: 330px; }
	.dft-game .dft-phone { width: 200px; height: 330px; }
	.dft-game .dft-post-image { height: 140px; }
	.dft-game .dft-magnifier { right: 16%; }
	.dft-game .dft-shell { margin-top: -30px; }
	.dft-game .dft-mission-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
	.dft-game .dft-hero { padding-inline: 20px; }
	.dft-game .dft-shell { width: calc(100% - 24px); margin-bottom: 55px; }
	.dft-game .dft-screen { padding: 24px 18px; border-radius: 20px; }
	.dft-game .dft-play { padding: 14px; }
	.dft-game .dft-toolbar { grid-template-columns: 1fr 1fr; }
	.dft-game .dft-progress-wrap { grid-column: 1 / -1; }
	.dft-game .dft-score-card, .dft-game .dft-streak-card { justify-content: center; }
	.dft-game .dft-level-head { grid-template-columns: auto 1fr; padding: 18px; }
	.dft-game .dft-goal { grid-column: 1 / -1; justify-self: start; }
	.dft-game .dft-level-content { padding: 15px; }
	.dft-game .dft-profile-grid { grid-template-columns: 1fr; }
	.dft-game .dft-scene { height: 290px; }
	.dft-game .dft-house { right: 15px; transform: scale(.8); transform-origin: bottom right; }
	.dft-game .dft-person { left: 42%; transform: scale(.85); transform-origin: bottom center; }
	.dft-game .dft-hotspot.house { right: 35px; }
	.dft-game .dft-level-complete { grid-template-columns: 1fr; margin: 12px; }
	.dft-game .dft-tips ul { columns: 1; }
	.dft-game .dft-complete-actions { flex-direction: column; }
	.dft-game .dft-complete-actions .dft-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.dft-game *, .dft-game *::before, .dft-game *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

@media print {
	body:has(.dft-print-mode) * { visibility: hidden !important; }
	.dft-game.dft-print-mode .dft-certificate, .dft-game.dft-print-mode .dft-certificate * { visibility: visible !important; }
	.dft-game.dft-print-mode .dft-certificate { position: fixed; display: block !important; inset: 0; padding: 25mm; color: #10233f; background: #fff; }
	.dft-game.dft-print-mode .dft-certificate-inner { height: 100%; border: 9px double #2968ff; padding: 20mm; text-align: center; }
	.dft-game.dft-print-mode .dft-certificate h2 { margin: 10mm 0 4mm; color: #10233f; font-size: 36pt; }
	.dft-game.dft-print-mode .dft-certificate-award { color: #7147e8; font-size: 18pt; font-weight: 800; }
	.dft-game.dft-print-mode .dft-certificate-shield { margin: 8mm; font-size: 50pt; }
	.dft-game.dft-print-mode .dft-certificate h3 { color: #2968ff; font-size: 24pt; }
	.dft-game.dft-print-mode .dft-certificate-score { margin: 8mm; font-size: 18pt; }
}

