:root { color-scheme: light; font-family: Arial, Helvetica, sans-serif; background: #74b74b; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; overscroll-behavior: none; }
body { display: grid; place-items: center; padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); background: #80c650 url('../ddsqt/yxbj.jpg') center / cover no-repeat; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
[hidden] { display: none !important; }
button { font: inherit; cursor: pointer; touch-action: manipulation; -webkit-touch-callout: none; }
button:focus-visible { outline: 6px solid #fff; outline-offset: 5px; }
img { display: block; pointer-events: none; -webkit-user-drag: none; }
#stage { position: fixed; left: 0; top: 0; width: 750px; height: 1700px; overflow: hidden; transform-origin: top left; background: url('../ddsqt/yxbj.jpg') center / 750px 100% no-repeat; color: #285029; }
#stage[data-scene="WELCOME"] { background-image: url('../ddsqt/ksbj.jpg'); }
#welcome, #game { position: absolute; inset: 0; }
.image-button { border: 0; padding: 0; background: transparent; position: absolute; transition: filter .1s, scale .1s; }
.image-button img { width: 100%; height: auto; }
.image-button:active { scale: .97; filter: brightness(1.08); }
.welcome-question { position: absolute; width: 483px; height: 108px; left: 134px; top: 415px; }
.experienced { width: 318px; left: 216px; top: 704px; }
.new-player { width: 318px; left: 216px; top: 875px; }
.plaque { position: absolute; width: 391px; height: 99px; left: 180px; top: 100px; }
.ready-title { position: absolute; width: 254px; height: 28px; left: 248px; top: 285px; }
.challenge-caption { position: absolute; top: 38px; left: 0; width: 100%; text-align: center; margin: 0; font-size: 23px; font-weight: 800; color: #17638c; }
.hud { position: absolute; top: 220px; left: 217px; width: 338px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 60px; text-align: center; }
.hud-stat { font-size: 21px; color: #186585; font-weight: 800; white-space: nowrap; }
.hud-stat strong { display: block; color: #174e50; font-size: 36px; line-height: 40px; }
.time-track { grid-column: 1 / -1; margin-top: 5px; width: 338px; height: 11px; background: url('../ddsqt/jdtbj.png') no-repeat; overflow: hidden; border-radius: 12px; }
#time-fill { width: 100%; height: 11px; background: url('../ddsqt/jdt.png') left / 338px 11px no-repeat; }
.score-label { grid-column: 1 / -1; margin: 15px -40px 0; font-size: 17px; color: #254d39; font-weight: bold; }
.score-label strong { margin-left: 10px; font-size: 24px; }
.board { position: absolute; width: 610px; height: 642px; top: 390px; left: 70px; background: url('../ddsqt/sydsbj.png') no-repeat; }
.hole { position: absolute; width: 104px; height: 104px; padding: 0; border: 0; background: none; overflow: visible; touch-action: manipulation; }
.hole-back, .hole-front { position: absolute; width: 96px; height: 80px; left: 4px; top: 24px; background: url('../ddsqt/tk.png') no-repeat; pointer-events: none; }
.mole-window { position: absolute; width: 96px; height: 85px; left: 4px; top: -9px; overflow: hidden; pointer-events: none; border-radius: 0 0 43% 43%; }
.mole { position: absolute; width: 69px; height: 64px; left: 14px; bottom: 4px; transform: translateY(74px); transform-origin: 50% 90%; will-change: transform; }
.hole-front { clip-path: inset(57px 0 0 0); z-index: 2; }
.coin-tag { position: absolute; left: 18px; top: -25px; width: 68px; height: 34px; padding-top: 4px; color: #684115; background: url('../ddsqt/jjbbj.png') no-repeat; text-align: center; font-size: 22px; font-weight: 800; pointer-events: none; z-index: 4; }
.hole[data-state="ACTIVE"] { cursor: crosshair; }
.hole[data-state="HIT"] .mole { filter: brightness(1.2); }
.start { width: 284px; left: 233px; top: 1330px; }
.rules { position: absolute; top: 1450px; width: 100%; margin: 0; text-align: center; color: #244e24; font-size: 22px; font-weight: bold; }
.instruction { position: absolute; top: 1120px; width: 610px; left: 70px; padding: 22px; border-radius: 25px; background: #fff6cced; text-align: center; font-size: 27px; font-weight: 700; margin: 0; box-shadow: 0 4px 12px #426f4220; }
.result { position: absolute; top: 1120px; left: 65px; width: 619px; height: 202px; background: url('../ddsqt/dtbjkx.png') top center / 619px 202px no-repeat; text-align: center; padding-top: 12px; }
.result h1 { font-size: 32px; color: #cc721e; line-height: 38px; margin: 0; }
.result p { font-size: 23px; line-height: 28px; font-weight: 700; margin: 4px 0; color: #273213; }
.result #best-score { font-size: 18px; font-weight: 500; }
.replay { width: 246px; top: 137px; left: 186px; }
.countdown { position: absolute; z-index: 8; top: 550px; width: 100%; text-align: center; font-size: 210px; line-height: 260px; color: #fff3a4; font-weight: 900; -webkit-text-stroke: 5px #6d4218; text-shadow: 0 9px 0 #0003; pointer-events: none; }
.modal-mask { position: absolute; inset: 0; z-index: 20; background: #142919b8; display: flex; align-items: center; justify-content: center; touch-action: none; }
.reward-card { width: 552px; height: 344px; background: url('../ddsqt/hdjldcbj.png') no-repeat; text-align: center; color: #583918; position: relative; }
.reward-card h1 { margin: 28px 0 0; font-size: 30px; }
.demo-label { font-size: 25px; display: block; margin-top: 7px; color: #a4470a; letter-spacing: 2px; }
.reward-card p { font-size: 21px; margin: 5px 0; font-weight: 700; }
.reward-card .demo-detail { font-size: 17px; font-weight: 400; line-height: 23px; }
.receive { width: 246px; left: 153px; bottom: 25px; }
.pause-card { width: 540px; background: #fff2bf; border: 6px solid #eeb058; border-radius: 30px; text-align: center; padding: 36px; box-shadow: 0 10px 0 #293e3f33; }
.pause-card h1 { font-size: 40px; margin: 0 0 12px; }.pause-card p { font-size: 26px; }
.text-button { color: #673909; background: #ffc656; border: 4px solid #c68635; border-radius: 23px; padding: 20px 25px; font-weight: 800; font-size: 29px; }
.effect-hammer { position: absolute; width: 96px; height: 101px; left: 46px; top: -34px; z-index: 7; transform-origin: 85% 80%; animation: hammer .35s ease-out forwards; pointer-events: none; }
.effect-score { top: -23px; animation: float-score .7s ease-out forwards; }
.tutorial-praise { position: absolute; left: 70px; top: 1120px; width: 610px; margin: 0; padding: 20px; background: #fff4c9; border-radius: 25px; text-align: center; color: #476b20; font-size: 32px; font-weight: 800; z-index: 9; }
.effect-miss { animation: miss .25s ease-out; }
@keyframes hammer { 0% { transform: rotate(45deg); } 35% { transform: rotate(-24deg); } 100% { transform: rotate(10deg); opacity: 0; } }
@keyframes float-score { 0% { transform: translateY(0) scale(.8); } 30% { transform: translateY(-20px) scale(1.15); } 100% { transform: translateY(-75px); opacity: 0; } }
@keyframes miss { 50% { filter: brightness(1.3); transform: translateY(3px); } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); overflow: hidden; }
.landscape-hint { display: none; position: fixed; bottom: 6px; left: 6px; right: 6px; margin: 0; padding: 6px; text-align: center; border-radius: 8px; background: #fff4cee8; color: #365224; font-size: 12px; pointer-events: none; }
#stage.compact { height: 1334px; }
.compact .welcome-question { top: 325px; }
.compact .experienced { top: 550px; }
.compact .new-player { top: 684px; }
.compact .plaque { top: 62px; }
.compact .ready-title { top: 206px; }
.compact .challenge-caption { top: 25px; }
.compact .hud { top: 173px; }
.compact .score-label { position: absolute; top: 82px; left: -40px; width: 418px; margin: 0; font-size: 15px; }
.compact .score-label strong { font-size: 20px; }
.compact .board { top: 286px; }
.compact .start { top: 1061px; }
.compact .rules { top: 1170px; }
.compact .result, .compact .instruction, .compact .tutorial-praise { top: 990px; }
.compact .countdown { top: 450px; }
@media (orientation: landscape) and (max-height: 600px) { .landscape-hint { display: block; } }
@media (prefers-reduced-motion: reduce) { .effect-hammer, .effect-score { animation-duration: .12s; } }
