:root {
  --hot-pink: #ff2d78; --electric-blue: #00c2ff; --sunny: #ffd23f;
  --lime: #7bed4f; --grape: #9b5de5; --tangerine: #ff6b35;
  --cream: #fff8f0; --ink: #1a1a2e; --ink-light: #3d3d5c;
  --muted: #62627b; --card-bg: #fff;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 1rem/1.5 'Outfit', 'Inter', system-ui, sans-serif; }
button, textarea { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
h1, h2, p { margin: 0; }
.fun-font { font-family: 'Titan One', 'Outfit', sans-serif; font-weight: 400; }
.color-bar { display: flex; height: 6px; }
.color-bar span { flex: 1; background: var(--hot-pink); }
.color-bar span:nth-child(2) { background: var(--grape); }
.color-bar span:nth-child(3) { background: var(--lime); }
.color-bar span:nth-child(4) { background: var(--sunny); }
.color-bar span:nth-child(5) { background: var(--electric-blue); }
.ten-skip { position: fixed; top: 1rem; left: 1rem; z-index: 2000; padding: .75rem; background: var(--card-bg); transform: translateY(-200%); }
.ten-skip:focus { transform: none; }
.ten-main { width: min(100%, 580px); padding: 16px 16px 40px; margin: auto; }
.ten-main:focus { outline: none; }
.ten-breadcrumb { font-size: .85rem; margin-bottom: 18px; }
.ten-heading { text-align: center; margin-bottom: 22px; }
.ten-eyebrow { font-size: .72rem; letter-spacing: .12em; font-weight: 800; margin-bottom: 8px; }
h1 { font-size: clamp(2rem, 8.3vw, 3.2rem); line-height: 1.12; margin-bottom: 12px; }
h1 span { white-space: nowrap; text-decoration: underline; text-decoration-color: var(--sunny); text-decoration-thickness: 7px; text-underline-offset: 3px; }
.ten-heading > p:last-child { font-size: 1.05rem; }
.game-container { border: 2px solid var(--ink); border-radius: 20px; padding: 20px; background: var(--card-bg); box-shadow: 5px 5px 0 var(--grape); }
.ten-stats { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: .85rem; font-weight: 800; margin-bottom: 16px; }
.ten-stats span { border: 2px solid var(--ink); border-radius: 8px; background: #f0e5ff; padding: 4px 10px; }
.ten-stats span:last-child { background: #fff0ae; }
#clock-stage { font-size: 1.3rem; line-height: 1.25; text-align: center; margin-bottom: 8px; }
#clock-hint { text-align: center; font-size: .95rem; min-height: 3em; }
.ten-clock { text-align: center; margin: 14px 0 20px; }
.ten-clock svg { display: block; width: 58px; height: 58px; margin: 0 auto 6px; fill: var(--sunny); stroke: var(--ink); stroke-width: 4px; stroke-linecap: round; }
#clock-display { font-size: clamp(3.2rem, 14vw, 4.5rem); line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ten-primary, .ten-secondary { border: 2px solid var(--ink); border-radius: 12px; padding: 11px 16px; min-height: 48px; font-weight: 800; line-height: 1.25; }
.ten-primary { width: 100%; min-height: 72px; font-size: 1.3rem; background: var(--lime); box-shadow: 3px 3px 0 var(--ink); }
[data-phase="running"] .ten-primary { background: var(--hot-pink); font-size: 1.9rem; }
.ten-secondary { background: var(--card-bg); }
#clock-cancel { display: block; margin: 14px auto 0; }
.ten-actions { display: flex; gap: 12px; justify-content: center; }
.ten-actions:has(button:not([hidden])) { margin-top: 16px; }
.ten-actions button { flex: 1; }
.ten-status { margin-top: 16px; font-size: .9rem; }
.ten-status:empty { margin: 0; }
.ten-best { font-size: 1.05rem; font-weight: 800; text-align: center; margin-top: 20px; }
.ten-small { font-size: .85rem; color: var(--ink-light); }
#clock-storage { text-align: center; margin-top: 5px; }
.ten-history { margin-top: 30px; }
.ten-history h2, .ten-about h2 { font-size: 1.3rem; }
.ten-history ol { list-style: none; margin: 12px 0 0; padding: 0; }
.ten-history li { display: grid; grid-template-columns: 26px 1fr 1.3fr; align-items: center; gap: 8px; padding: 12px 10px; border-bottom: 1px solid var(--ink-light); }
.ten-history li.is-best { background: #e4f9da; border-radius: 8px; }
.ten-history li > span:last-child { font-size: .9rem; text-align: right; }
.ten-history li strong { font-variant-numeric: tabular-nums; }
.ten-about { border-top: 2px solid var(--ink); margin-top: 30px; padding-top: 22px; }
.ten-about ol { padding-left: 22px; }
.ten-about li, .ten-about p { margin-top: 12px; }
#clock-share-fallback { margin-top: 18px; }
label { display: block; font-weight: 700; margin-bottom: 8px; }
textarea { width: 100%; border: 2px solid var(--ink); border-radius: 8px; background: var(--card-bg); padding: 10px; resize: vertical; }
[data-theme="pro"] .ten-primary { background: #0a66c2; color: #fff; box-shadow: none; }
[data-theme="pro"] [data-phase="running"] .ten-primary { background: #0a66c2; }
[data-theme="pro"] .ten-stats span { background: #edf2f6; }
@media (max-width: 359px) {
  .ten-main { padding: 12px 12px 36px; }
  .ten-breadcrumb { margin-bottom: 14px; }
  .ten-heading { margin-bottom: 18px; }
  .game-container { padding: 14px 12px; }
  .ten-clock { margin-block: 10px 16px; }
  .ten-clock svg { width: 46px; height: 46px; }
  .ten-stats { font-size: .8rem; }
  #clock-stage { font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
