#lbg-timer { --pink:#FF007F; --purple:#A100FF; --gold:#FFD700; --muted:#b9b2c7; --game-background:none; margin:-8px; width:calc(100% + 16px); min-height:100dvh; height:100dvh; overflow:auto; overflow-x:hidden; background:#121212; color:#f9f5ff !important; font-family:Kanit,Sarabun,system-ui,sans-serif; font-size:14px; line-height:1.45; color-scheme:dark; -webkit-tap-highlight-color:transparent; }
#lbg-timer *, #lbg-timer *::before, #lbg-timer *::after { box-sizing:border-box; }
#lbg-timer .shell { position:relative; width:100%; max-width:460px; min-height:100%; margin:0 auto; padding:18px 24px 12px; display:flex; flex-direction:column; isolation:isolate; }
#lbg-timer.loaded .shell::before { content:""; position:absolute; z-index:-1; inset:0; background:linear-gradient(#121212aa,#12121266),var(--game-background) center/cover; opacity:.68; }
#lbg-timer p, #lbg-timer h1, #lbg-timer h2, #lbg-timer ol { margin:0; color:inherit !important; }
#lbg-timer button, #lbg-timer a { font:inherit; font-weight:600; cursor:pointer; text-decoration:none; touch-action:manipulation; color:#fff !important; }
#lbg-timer button:focus-visible, #lbg-timer a:focus-visible { outline:3px solid #FFD700; outline-offset:4px; }
#lbg-timer .topbar { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:44px; flex-shrink:0; }
#lbg-timer .brand { display:flex; gap:7px; align-items:center; color:#f6f0ff !important; font-size:14px; font-weight:600; letter-spacing:.2px; }
#lbg-timer .brand i { color:#ff4d9f !important; font-style:normal; font-size:27px; font-weight:400; }
#lbg-timer .sound { padding:10px 12px; min-width:96px; min-height:44px; background:#211c29; border:1px solid #3a3146; border-radius:24px; color:#ddd2e9 !important; font-size:12px; }
#lbg-timer .screen { flex:1; display:flex; flex-direction:column; min-height:0; }
#lbg-timer .cover, #lbg-timer .game-panel, #lbg-timer .summary { display:flex; flex-direction:column; align-items:center; text-align:center; width:100%; margin:auto 0; }
#lbg-timer .eyebrow { color:#ed82c4 !important; font-size:12px; font-weight:600; letter-spacing:.6px; margin:8px 0 6px; }
#lbg-timer h1 { font-size:24px; line-height:1.35; font-weight:700; }
#lbg-timer .cover h1 { font-size:29px; }
#lbg-timer .cover h1 strong { display:block; font-size:66px; line-height:1.02; letter-spacing:-3px; color:#ff5da8 !important; text-shadow:0 0 32px #ff007f44; font-variant-numeric:tabular-nums; }
#lbg-timer .cover h1 small { display:inline-block; margin-left:10px; font-size:17px; font-weight:400; letter-spacing:0; color:#e5dbea !important; }
#lbg-timer .cover-art { object-fit:cover; width:100%; height:208px; margin:-2px 0 0; border-radius:28px; mask-image:linear-gradient(transparent,#000 14%,#000 85%,transparent); }
#lbg-timer .cover-description { color:#c6bdd1 !important; font-size:12px; margin:0 0 12px; }
#lbg-timer .rules { width:100%; padding:0; list-style:none; text-align:left; display:grid; gap:7px; margin-bottom:16px; }
#lbg-timer .rules li { display:flex; align-items:center; gap:10px; color:#e2d9eb !important; font-size:12px; }
#lbg-timer .rules li span { width:22px; height:22px; border:1px solid #594064; border-radius:50%; display:grid; place-items:center; color:#e285bd !important; font-size:12px; font-variant-numeric:tabular-nums; }
#lbg-timer .primary { display:flex; justify-content:center; align-items:center; gap:16px; width:100%; min-height:54px; padding:12px 20px; background:linear-gradient(115deg,#FF8C00,#FF4500); border:1px solid #ffad4e66; border-radius:16px; box-shadow:0 7px 24px #ff650020,inset 0 1px #ffd7ab66; font-size:18px; color:#fff !important; }
#lbg-timer .primary span { color:#fff !important; font-size:20px; }
#lbg-timer .primary:hover { filter:brightness(1.08); }
#lbg-timer .primary:active { transform:scale(.985); }
#lbg-timer .tiny { color:#aaa0b8 !important; font-size:12px; margin:8px 0 0; }
#lbg-timer .free-note { flex-shrink:0; color:#a9a1b4 !important; text-align:center; font-size:12px; line-height:1.5; padding:12px 0 0; }
#lbg-timer .loading { flex:1; display:flex; flex-direction:column; justify-content:center; align-items:center; text-align:center; gap:22px; }
#lbg-timer .loading h2 { font-size:20px; color:#f1e7fa !important; }
#lbg-timer .load-orbit { width:64px; height:64px; border:3px solid #48204e; border-top-color:#FF007F; border-right-color:#A100FF; border-radius:50%; animation:timer-orbit 1.2s linear infinite; }
#lbg-timer .load-track { width:100%; height:6px; background:#302736; border-radius:9px; overflow:hidden; }
#lbg-timer .load-track span { height:100%; width:0; display:block; background:linear-gradient(90deg,#FF007F,#A100FF); transition:width .15s; }
#lbg-timer .load-value { color:#d7abc9 !important; font-variant-numeric:tabular-nums; }
#lbg-timer .attempts { width:100%; display:flex; justify-content:space-between; align-items:center; color:#c6b5d8 !important; font-size:12px; padding:10px 0 28px; }
#lbg-timer .attempts b { color:#fff !important; }
#lbg-timer .attempt-dots { display:flex; gap:7px; }
#lbg-timer .attempt-dots i { width:22px; height:5px; background:#403047; border-radius:9px; }
#lbg-timer .attempt-dots .current { background:#FF007F; box-shadow:0 0 9px #ff007f66; }
#lbg-timer .attempt-dots .done { background:#b566df; }
#lbg-timer .target-line { color:#c5b8d4 !important; font-size:13px; margin:12px 0 8px; }
#lbg-timer .target-line strong { color:#FFD700 !important; font-variant-numeric:tabular-nums; font-size:16px; }
#lbg-timer .clock { position:relative; width:calc(100% + 10px); aspect-ratio:1.8; margin:20px -5px 6px; }
#lbg-timer .clock-frame { position:absolute; width:100%; height:100%; object-fit:contain; inset:0; pointer-events:none; }
#lbg-timer .clock-face { position:absolute; inset:15% 13%; display:flex; flex-direction:column; align-items:center; justify-content:center; border-radius:20px; z-index:1; }
#lbg-timer .clock-number { font-family:system-ui,monospace; font-size:58px; font-weight:700; line-height:1.1; font-variant-numeric:tabular-nums; letter-spacing:-3px; color:#ff6eb6 !important; text-shadow:0 0 20px #FF007F88; transition:opacity .45s; }
#lbg-timer .clock-unit { color:#b6a1c9 !important; font-size:12px; margin-top:8px; }
#lbg-timer .clock-number.hidden-digits { opacity:0; }
#lbg-timer .counting-blind .clock-unit { visibility:hidden; }
#lbg-timer .game-hint { font-size:12px; line-height:1.7; color:#d0c2dc !important; min-height:42px; margin:8px 0 26px; }
#lbg-timer .stop { min-height:76px; font-size:27px; border-radius:22px; margin-top:0; }
#lbg-timer .running .eyebrow { color:#d9adfa !important; }
#lbg-timer .revealed { animation:timer-neon .55s ease-out 2; margin:8px -5px 0; }
#lbg-timer .result-panel .attempts { padding-bottom:12px; }
#lbg-timer .result-panel h1 { font-size:23px; }
#lbg-timer .result-caption { color:#baadcb !important; font-size:12px; margin-top:-2px; }
#lbg-timer .result-diff { display:flex; flex-direction:column; margin:12px 0 8px; }
#lbg-timer .result-diff > span { font-size:12px; color:#baaaca !important; }
#lbg-timer .result-diff strong { color:#ffe9f6 !important; font-size:32px; font-variant-numeric:tabular-nums; }
#lbg-timer .result-diff small { color:#cdbad6 !important; font-size:12px; font-weight:400; }
#lbg-timer .score-pill { display:inline-flex; align-items:center; gap:6px; color:#FFD700 !important; background:#ffd7000e; border:1px solid #ffd70044; border-radius:24px; padding:5px 18px; font-size:23px; line-height:1.3; font-weight:700; }
#lbg-timer .score-pill span { color:#efcf71 !important; font-size:12px; font-weight:400; }
#lbg-timer .stamp { position:relative; width:100%; display:flex; text-align:left; align-items:center; gap:8px; padding:8px 10px; margin:12px 0; border:1px solid #b68d3544; border-radius:14px; background:#ffe69308; }
#lbg-timer .stamp img { width:42px; height:42px; object-fit:contain; }
#lbg-timer .stamp strong { display:block; color:#ffe37e !important; font-size:14px; }
#lbg-timer .stamp small { display:block; color:#c1ae86 !important; font-size:12px; line-height:1.6; }
#lbg-timer .spark { position:absolute; width:5px; height:5px; border-radius:1px; background:#FFD700; animation:timer-spark .9s ease-out 2; pointer-events:none; }
#lbg-timer .spark-one { top:3px; left:23px; }
#lbg-timer .spark-two { top:13px; right:18px; animation-delay:.15s; }
#lbg-timer .result-note { margin:15px 0; }
#lbg-timer .next { margin-top:6px; }
#lbg-timer .summary .eyebrow { margin-top:8px; }
#lbg-timer .summary h1 { font-size:22px; margin-bottom:12px; }
#lbg-timer .best-card { width:100%; padding:14px; border:1px solid #a7459344; border-radius:22px; background:radial-gradient(ellipse at top,#6b184f55,#1d152c99); box-shadow:inset 0 1px #ffb8e212; }
#lbg-timer .best-card > p { font-size:12px; color:#d8aed1 !important; }
#lbg-timer .best-diff { display:block; color:#ff8ec4 !important; font-size:49px; line-height:1.3; font-variant-numeric:tabular-nums; letter-spacing:-2px; }
#lbg-timer .best-diff small { color:#cbb1d2 !important; font-size:12px; font-weight:400; letter-spacing:0; margin-left:8px; }
#lbg-timer .best-card .score-pill { font-size:20px; margin-top:4px; }
#lbg-timer .history { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); width:100%; gap:8px; margin:10px 0; }
#lbg-timer .history > div { border-radius:12px; border:1px solid #42354b; padding:8px 4px; background:#1a1424aa; }
#lbg-timer .history span { display:block; color:#b3a6c1 !important; font-size:12px; }
#lbg-timer .history strong { display:block; color:#e8d7f1 !important; font-size:19px; font-variant-numeric:tabular-nums; }
#lbg-timer .history small { display:block; color:#bbae92 !important; font-size:12px; }
#lbg-timer .history .best-try { border-color:#f3bb6244; }
#lbg-timer .history .best-try strong { color:#FFD700 !important; }
#lbg-timer .records { width:100%; text-align:left; border-bottom:1px solid #403047; padding:5px 2px 12px; }
#lbg-timer .records h2 { color:#d9c8e5 !important; font-size:12px; margin-bottom:7px; font-weight:500; }
#lbg-timer .records > div { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
#lbg-timer .records span { display:block; color:#ac9db9 !important; font-size:12px; }
#lbg-timer .records b { display:block; color:#f3e7fc !important; font-size:21px; font-variant-numeric:tabular-nums; margin-top:2px; }
#lbg-timer .records small { color:#b7a7c5 !important; font-size:12px; font-weight:400; }
#lbg-timer .replay { color:#edb0dc !important; min-height:44px; display:flex; gap:8px; align-items:center; justify-content:center; border:0; background:transparent; margin:3px 0; font-size:13px; }
#lbg-timer .replay span { color:#edb0dc !important; font-size:22px; }
#lbg-timer .out-links { display:grid; gap:8px; width:100%; }
#lbg-timer .out-links .primary { min-height:50px; font-size:16px; }
#lbg-timer .secondary { min-height:44px; display:grid; place-items:center; border:1px solid #746b7d; border-radius:14px; color:#d4cbdc !important; background:#17121daa; font-size:13px; }
@keyframes timer-orbit { to { transform:rotate(360deg); } }
@keyframes timer-neon { 30% { filter:brightness(1.55); } 65% { filter:brightness(.85); } }
@keyframes timer-spark { 0% { transform:translateY(12px) scale(0) rotate(0); opacity:0; } 45% { opacity:1; } 100% { transform:translateY(-22px) scale(1.4) rotate(130deg); opacity:0; } }
@media (prefers-reduced-motion:reduce) {
  #lbg-timer *, #lbg-timer *::before, #lbg-timer *::after { animation:none !important; transition:none !important; scroll-behavior:auto !important; }
}
@media (min-width:700px) {
  #lbg-timer .shell { max-width:460px; padding-top:22px; padding-bottom:16px; }
  #lbg-timer .cover-art { height:220px; }
}
@media (max-height:650px) {
  #lbg-timer .shell { min-height:650px; }
}
#lbg-timer .result-panel .attempts { padding:4px 0 8px; }
#lbg-timer .result-panel .eyebrow { margin:4px 0; }
#lbg-timer .result-panel .clock { width:290px; max-width:100%; margin:7px 0 0; }
#lbg-timer .result-panel .result-diff { margin:6px 0; }
#lbg-timer .result-panel .result-diff strong { font-size:28px; }
#lbg-timer .result-panel .score-pill { font-size:21px; padding:4px 16px; }
#lbg-timer .result-panel .stamp { margin:8px 0; }
#lbg-timer .summary .eyebrow { margin:4px 0; }
#lbg-timer .summary h1 { font-size:21px; margin-bottom:8px; }
#lbg-timer .summary .best-card { padding:9px 12px; border-radius:18px; }
#lbg-timer .summary .best-diff { font-size:40px; line-height:1.2; }
#lbg-timer .summary .best-card .score-pill { font-size:18px; padding:3px 15px; margin-top:2px; }
#lbg-timer .summary .stamp { margin:8px 0 3px; padding:6px 9px; }
#lbg-timer .summary .stamp img { width:36px; height:36px; }
#lbg-timer .summary .history { margin:7px 0; }
#lbg-timer .summary .history > div { padding:5px 4px; }
#lbg-timer .summary .records { padding:3px 2px 8px; }
#lbg-timer .summary .records h2 { margin-bottom:4px; }
#lbg-timer .summary .records b { font-size:20px; }
#lbg-timer .summary .replay { margin:0; }
#lbg-timer .result-panel .clock-number { font-size:46px; letter-spacing:-2px; }
#lbg-timer .result-panel .clock-unit { margin-top:3px; font-size:12px; }
