/* Clock It: bright gradient sky, chunky outlined cards. Colours from Theme.swift. */
:root { --ink: #2b2d42; --cream: #fffaeb; --red: #ff5d5d; --yellow: #ffc93c; --green: #06c995; --blue: #3a86ff; --sky: #4cc9f0; --pink: #ff4fa3; --violet: #7b6cf6; --purple: #9b5de5; }

* { box-sizing: border-box; }
html { background: var(--violet); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font: 500 16px/1.45 "Fredoka", ui-rounded, "SF Pro Rounded", sans-serif;
  background:
    radial-gradient(circle at 8% 22%, rgb(255 255 255 / .16) 0 46px, transparent 47px),
    radial-gradient(circle at 92% 12%, rgb(255 255 255 / .14) 0 30px, transparent 31px),
    radial-gradient(circle at 88% 58%, rgb(255 255 255 / .14) 0 58px, transparent 59px),
    radial-gradient(circle at 4% 76%, rgb(255 255 255 / .12) 0 24px, transparent 25px),
    linear-gradient(135deg, var(--sky), var(--violet) 55%, var(--purple));
  font-synthesis: none;
  overflow-x: hidden;
}
b { font-weight: 600; }
img { display: block; max-width: 100%; height: auto; }
h1, h2 { font-weight: 600; text-wrap: balance; }
a { color: inherit; }
a:focus-visible, .reel:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.top, .hero, main, .foot { max-width: 960px; margin-inline: auto; padding-inline: clamp(20px, 4vw, 40px); }
.top { padding-top: 20px; }
.pill { display: inline-block; padding: 5px 13px; border: 2px solid var(--ink); border-radius: 99px; background: #fff; color: var(--ink); box-shadow: 0 3px 0 var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; transition: translate .12s, box-shadow .12s; }
.pill:hover { translate: 0 2px; box-shadow: 0 1px 0 var(--ink); }

.card { border: 3px solid var(--ink); border-radius: 22px; background: var(--cream); box-shadow: 0 5px 0 rgb(43 45 66 / .35); }

.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; align-items: stretch; padding-block: 22px 18px; }
.intro { padding: clamp(20px, 2.8vw, 30px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.icon { width: 60px; height: 60px; border: 3px solid var(--ink); border-radius: 15px; }
h1 { margin: 14px 0 8px; font-size: clamp(32px, 4.2vw, 46px); line-height: 1.05; }
.intro p { margin: 0; font-size: 17px; }
.intro .soon { margin-top: 16px; padding: 6px 13px; border: 2px dashed var(--ink); border-radius: 99px; font-size: 14px; font-weight: 600; }

.toy { padding: 14px 14px 12px; text-align: center; }
#clock { display: block; width: min(100%, 250px); margin: 0 auto; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
#clock:active { cursor: grabbing; }
#clock:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; border-radius: 16px; }
.readout { margin: 4px 0 0; font-size: 16px; }
.readout b { margin-right: 6px; font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.hint { margin: 0; color: #5a5c74; font-size: 13.5px; }

.modes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mode { padding: 14px 16px; }
.mode h2 { margin: 0 0 4px; font-size: 19px; line-height: 1.15; }
.mode p { margin: 0; font-size: 14.5px; }
.mode--learn { background: #cdf0a0; }
.mode--read { background: #a8f3dc; }
.mode--set { background: #ffc6e2; }
.mode--board { background: #ffe08a; }

.levels { margin-top: 16px; padding: 16px 20px; }
.levels h2, .safe h2 { margin: 0 0 8px; font-size: 22px; line-height: 1.15; }
.levels ol { list-style: none; counter-reset: l; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.levels li { counter-increment: l; padding: 3px 12px 3px 4px; border: 2px solid var(--ink); border-radius: 99px; background: #fff; font-size: 14.5px; }
.levels li::before { content: counter(l); display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 6px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; }

.reel { display: flex; gap: 12px; margin-top: 18px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 10px; scrollbar-color: var(--ink) transparent; }
.reel img { flex: none; width: clamp(150px, 16vw, 172px); border: 3px solid var(--ink); border-radius: 18px; scroll-snap-align: start; }

.safe { margin-block: 12px 28px; padding: 16px 20px; }
.safe h2 { margin-bottom: 2px; }
.safe p { margin: 0; }

.foot { display: flex; justify-content: space-between; gap: 16px; padding-block: 0 26px; }
.policy + .foot { padding-inline: clamp(16px, 4vw, 24px); }

/* Privacy page */
.policy { max-width: 700px; margin: 0 auto; padding: 22px clamp(16px, 4vw, 24px) 40px; }
.top:has(+ .policy) { max-width: 700px; padding-inline: clamp(16px, 4vw, 24px); }
.policy header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; color: #fff; }
.policy header img { width: 50px; height: 50px; border: 3px solid var(--ink); border-radius: 13px; }
.policy header h1 { margin: 0; font-size: 28px; text-shadow: 0 3px 0 rgb(43 45 66 / .45); }
.langs { margin-left: auto; display: flex; gap: 6px; }
.sheet { margin-bottom: 16px; padding: 22px clamp(18px, 4vw, 26px); border: 3px solid var(--ink); border-radius: 22px; background: var(--cream); box-shadow: 0 5px 0 rgb(43 45 66 / .35); font-size: 15.5px; font-weight: 400; line-height: 1.5; }
.sheet h2 { margin: 0 0 4px; color: #5a49d6; font-size: 24px; }
.sheet .updated { margin-top: 0; opacity: .7; font-weight: 600; }
.sheet li { margin: 6px 0; }
.sheet a { color: #5a49d6; font-weight: 600; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .modes { grid-template-columns: 1fr; }
}
