/* 水滴拍拍樂 — all selectors scoped under .wdwh-root */
.wdwh-root {
	--wdwh-blue: #1a73c7;
	--wdwh-purple: #6b2d8b;
	--wdwh-ink: #1f2540;
	--wdwh-muted: #5b6075;
	box-sizing: border-box;
	width: 100%;
	max-width: 540px;
	margin: 20px auto;
	padding: 0;
	font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
	font-size: 16px;
	line-height: 1.55;
	color: var(--wdwh-ink);
	text-align: left;
	outline: none;
	-webkit-tap-highlight-color: transparent;
}
.wdwh-root *, .wdwh-root *::before, .wdwh-root *::after { box-sizing: border-box; }
.wdwh-root [hidden] { display: none !important; }
.wdwh-root .wdwh-box { padding: 18px; border-radius: 22px; background: linear-gradient(160deg, #e6f7ef 0%, #e8f2ff 100%); box-shadow: 0 12px 28px rgba(15, 40, 70, .14); }
.wdwh-root .wdwh-eyebrow { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .12em; color: #1f7a64; }
.wdwh-root .wdwh-title { margin: 0; padding: 0; font-size: 22px; line-height: 1.3; font-weight: 800; color: var(--wdwh-blue); letter-spacing: 0; text-transform: none; }
.wdwh-root .wdwh-lead { margin: 6px 0 12px; font-size: 14px; color: var(--wdwh-muted); }
.wdwh-root .wdwh-hud { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0 0 12px; }
.wdwh-root .wdwh-stat { display: flex; flex-direction: column; align-items: center; padding: 4px 2px; border-radius: 12px; background: rgba(255, 255, 255, .88); }
.wdwh-root .wdwh-stat-label { font-size: 13px; color: var(--wdwh-muted); }
.wdwh-root .wdwh-stat-value { font-size: 18px; font-weight: 800; line-height: 1.25; color: var(--wdwh-blue); font-variant-numeric: tabular-nums; }
.wdwh-root .wdwh-stage { position: relative; }
.wdwh-root .wdwh-field { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 10px; border-radius: 18px; background: radial-gradient(circle at 30% 20%, #bff0d9 0%, #8fd6b5 60%, #6cc29d 100%); touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.wdwh-root .wdwh-hole { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; font-family: inherit; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
.wdwh-root .wdwh-hole:focus-visible { outline: 3px solid rgba(26, 115, 199, .7); outline-offset: -2px; border-radius: 14px; }
.wdwh-root .wdwh-pit, .wdwh-root .wdwh-lip { position: absolute; left: 8%; right: 8%; bottom: 10%; height: 24%; border-radius: 50%; }
.wdwh-root .wdwh-pit { background: radial-gradient(ellipse at 50% 40%, #0f3f70 0%, #1a73c7 70%, #4fb3ea 100%); box-shadow: inset 0 4px 8px rgba(0, 0, 0, .35); }
.wdwh-root .wdwh-lip { background: radial-gradient(ellipse at 50% 30%, #2b8fd8 0%, #4fb3ea 55%, #9fdcff 100%); clip-path: inset(50% 0 0 0); z-index: 3; }
.wdwh-root .wdwh-mask { position: absolute; left: 14%; right: 14%; top: 0; bottom: 22%; overflow: hidden; z-index: 2; pointer-events: none; }
.wdwh-root .wdwh-char { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; transform: translateY(110%); transition: transform .14s ease-in; display: none; }
.wdwh-root .wdwh-hole[data-kind="drop"] .wdwh-char-drop,
.wdwh-root .wdwh-hole[data-kind="gold"] .wdwh-char-gold,
.wdwh-root .wdwh-hole[data-kind="mud"] .wdwh-char-mud { display: block; }
.wdwh-root .wdwh-up .wdwh-char { transform: translateY(6%); transition: transform .16s cubic-bezier(.2, 1.4, .5, 1); }
.wdwh-root .wdwh-hit .wdwh-char { transform: translateY(110%) scaleY(.6); transition: transform .1s ease-in; }
.wdwh-root .wdwh-hit .wdwh-pit { animation: wdwh-splash .3s ease-out; }
@keyframes wdwh-splash { 0% { box-shadow: inset 0 4px 8px rgba(0, 0, 0, .35), 0 0 0 0 rgba(255, 255, 255, .9); } 100% { box-shadow: inset 0 4px 8px rgba(0, 0, 0, .35), 0 0 0 14px rgba(255, 255, 255, 0); } }
.wdwh-root .wdwh-pop { position: absolute; left: 0; right: 0; top: 18%; z-index: 4; text-align: center; font-size: 20px; font-weight: 800; opacity: 0; pointer-events: none; text-shadow: 0 2px 0 #fff; }
.wdwh-root .wdwh-pop-good { color: var(--wdwh-purple); }
.wdwh-root .wdwh-pop-bad { color: #c0392b; }
.wdwh-root .wdwh-pop-go { animation: wdwh-float .6s ease-out; }
@keyframes wdwh-float { 0% { opacity: 1; transform: translateY(10px) scale(.8); } 30% { opacity: 1; transform: translateY(0) scale(1.1); } 100% { opacity: 0; transform: translateY(-22px) scale(1); } }
.wdwh-root .wdwh-key { position: absolute; top: 4px; left: 6px; z-index: 4; display: none; font-size: 13px; font-weight: 700; color: rgba(15, 63, 112, .55); }
@media (hover: hover) and (pointer: fine) { .wdwh-root .wdwh-key { display: block; } }
.wdwh-root .wdwh-overlay { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px; text-align: center; border-radius: 18px; background: rgba(240, 250, 246, .92); }
.wdwh-root .wdwh-overlay-title { margin: 0; font-size: 26px; font-weight: 800; color: var(--wdwh-purple); }
.wdwh-root .wdwh-overlay-text { margin: 0; font-size: 15px; white-space: pre-line; }
.wdwh-root .wdwh-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin: 0; padding: 0; list-style: none; }
.wdwh-root .wdwh-legend li { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 15px; font-weight: 700; }
.wdwh-root .wdwh-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; }
.wdwh-root .wdwh-dot-drop { background: #1a73c7; }
.wdwh-root .wdwh-dot-gold { background: #e0a526; }
.wdwh-root .wdwh-dot-mud { background: #6b4a2b; }
.wdwh-root .wdwh-btn { display: block; width: 100%; max-width: 300px; min-height: 46px; margin: 6px auto 0; padding: 8px 16px; font-family: inherit; font-size: 17px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--wdwh-blue), var(--wdwh-purple)); border: 0; border-radius: 999px; cursor: pointer; }
.wdwh-root .wdwh-btn:focus-visible { outline: 3px solid rgba(26, 115, 199, .45); outline-offset: 2px; }
.wdwh-root .wdwh-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; font-size: 13px; }
.wdwh-root .wdwh-help { margin: 12px 0 0; border-radius: 12px; background: rgba(255, 255, 255, .75); }
.wdwh-root .wdwh-help-sum { padding: 10px 14px; font-size: 15px; font-weight: 700; color: var(--wdwh-blue); cursor: pointer; }
.wdwh-root .wdwh-help-list { margin: 0; padding: 0 14px 10px 32px; }
.wdwh-root .wdwh-help-list li { margin: 0 0 4px; font-size: 14px; }
.wdwh-root .wdwh-link { display: inline-block; margin: 12px 0 0; font-size: 14px; font-weight: 700; color: var(--wdwh-purple); text-decoration: none; }
@media (max-width: 420px) {
	.wdwh-root { margin: 12px auto; }
	.wdwh-root .wdwh-box { padding: 14px 12px; border-radius: 18px; }
	.wdwh-root .wdwh-title { font-size: 20px; }
	.wdwh-root .wdwh-field { padding: 8px; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
	.wdwh-root .wdwh-char, .wdwh-root .wdwh-up .wdwh-char { transition: none; }
	.wdwh-root .wdwh-pop-go, .wdwh-root .wdwh-hit .wdwh-pit { animation: none; }
}
