@charset "UTF-8";

:root {
  --ink: #17313b;
  --muted: #526970;
  --cream: #f8f4e9;
  --paper: #fffdf7;
  --white: #ffffff;
  --teal: #1e746b;
  --teal-dark: #0f615b;
  --teal-pale: #dcefe9;
  --yellow: #f2bf4f;
  --yellow-pale: #f9e9b6;
  --coral: #ee7767;
  --coral-pale: #f8d9d2;
  --blue: #668cbc;
  --blue-pale: #dfe8f3;
  --line: rgba(23, 49, 59, .14);
  --shadow: 0 18px 50px rgba(38, 64, 67, .12);
  --radius-sm: 14px;
  --radius: 24px;
  --radius-lg: 36px;
  --display: "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --body: Inter, Avenir, "Segoe UI", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-140%);
  transition: transform .2s;
}

.skip-link:focus {
  transform: none;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: -webkit-sticky;
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid transparent;
  background: rgba(248, 244, 233, .88);
  backdrop-filter: blur(16px);
  transition: box-shadow .2s, border-color .2s;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 30px rgba(23, 49, 59, .06);
}

.header-inner {
  position: relative;
  z-index: 3;
  display: flex;
  height: 78px;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.04em;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  transform: rotate(-6deg);
}

.brand-hand {
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 2.5px;
  border-radius: 4px;
  background: var(--ink);
  transform-origin: 50% 100%;
}

.brand-hand-hour {
  height: 9px;
  transform: translateX(-50%) rotate(-50deg);
}

.brand-hand-minute {
  height: 13px;
  transform: translateX(-50%) rotate(30deg);
}

.brand-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
  transform: translate(-50%, -50%);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 247, .72);
}

.desktop-nav a,
.footer-main nav a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.desktop-nav a {
  padding: 8px 14px;
  border-radius: 9px;
  color: var(--muted);
  border: 0;
  transition: color .18s, background .18s;
}

.desktop-nav a:hover {
  color: var(--ink);
  background: var(--cream);
}

.desktop-nav a.is-current {
  color: var(--white);
  background: var(--ink);
}

.menu-audio-controls {
  display: flex;
  align-items: center;
  gap: 3px;
}

.menu-icon-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 34px;
  padding: 7px;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  cursor: pointer;
  transition: color .18s, background .18s;
}

.menu-icon-toggle:hover {
  color: var(--ink);
  background: var(--cream);
}

.menu-icon-toggle span {
  display: inline-flex;
  line-height: 0;
}

.menu-icon-toggle.is-off,
.menu-icon-toggle.is-muted {
  color: var(--muted);
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: 14px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s, background .18s;
}

.button:hover {
  transform: translateY(-2px);
}

.button-small {
  min-height: 42px;
  padding: 10px 17px;
  border-radius: 12px;
  font-size: 14px;
}

.button-dark {
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 6px 0 #0b2028;
}

.button-dark:hover {
  box-shadow: 0 8px 0 #0b2028;
}

.button-primary {
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 0 6px 0 #d89b2a;
}

.button-primary:hover {
  box-shadow: 0 8px 0 #d89b2a;
}

.button-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, .45);
}

.button-ghost:hover {
  background: var(--white);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}

.menu-button span {
  width: 23px;
  height: 2px;
  border-radius: 9px;
  background: var(--ink);
  transition: transform .2s, opacity .2s;
}

.menu-button[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-button[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-button[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  position: absolute;
  z-index: 2;
  top: calc(100% + 8px);
  right: max(14px, calc((100vw - 1180px) / 2));
  width: min(320px, calc(100% - 28px));
  padding: 12px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 6px 7px 0 var(--ink);
}

.mobile-nav-label {
  display: block;
  padding: 3px 10px 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.mobile-nav a,
.mobile-nav .menu-icon-toggle {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 12px 10px;
  border: 0;
  border-radius: 10px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-weight: 800;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.mobile-nav a+a,
.mobile-nav a+.menu-audio-controls {
  border-top: 1px solid var(--line);
  border-radius: 0;
}

.mobile-nav a:hover,
.mobile-nav .menu-icon-toggle:hover {
  background: var(--cream);
}

.mobile-nav a span,
.mobile-nav .menu-icon-toggle span {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 9px;
  background: var(--teal-pale);
}

.mobile-nav .menu-audio-controls {
  gap: 8px;
  margin: 4px 10px 0;
  padding: 8px 0 0;
  border-top: 1px solid var(--line);
}

.mobile-nav .menu-icon-toggle {
  width: 45px;
  height: 45px;
  padding: 8px;
}

.hero {
  display: grid;
  min-height: 640px;
  grid-template-columns: 1.03fr .97fr;
  align-items: center;
  gap: 70px;
  padding-block: 72px 95px;
}

.hero-copy {
  position: relative;
}

.hero-copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 48px;
  left: -26px;
  width: 88px;
  height: 48px;
  border-top: 3px dashed rgba(238, 119, 103, .35);
  border-radius: 50%;
  transform: rotate(-24deg);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow span {
  display: inline-block;
  margin-right: 5px;
  color: var(--coral);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  letter-spacing: -.055em;
  line-height: 1.02;
}

h1 {
  max-width: 700px;
  font-size: clamp(56px, 6.5vw, 91px);
}

h2 {
  font-size: clamp(38px, 4.1vw, 58px);
}

h3 {
  font-size: 30px;
}

em {
  color: var(--teal);
  font-style: normal;
}

.hero-lead {
  max-width: 590px;
  margin: 25px 0 20px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.62;
}

.hero-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 27px;
}

.hero-skills>span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px 7px 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .5);
  font-size: 11px;
  font-weight: 850;
}

.hero-skills>span:nth-child(1) {
  background: var(--yellow-pale);
}

.hero-skills>span:nth-child(2) {
  background: var(--teal-pale);
}

.hero-skills>span:nth-child(3) {
  background: var(--coral-pale);
}

.mini-clock {
  position: relative;
  display: inline-block;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
}

.mini-clock::before,
.mini-clock::after {
  content: "";
  position: absolute;
  bottom: 50%;
  left: 50%;
  width: 2px;
  border-radius: 4px;
  background: var(--ink);
  transform-origin: 50% 100%;
}

.mini-clock::before {
  height: 7px;
}

.mini-clock::after {
  height: 9px;
  background: var(--coral);
}

.mini-clock-whole::before {
  transform: translateX(-50%) rotate(60deg);
}

.mini-clock-whole::after {
  transform: translateX(-50%) rotate(0deg);
}

.mini-clock-half::before {
  transform: translateX(-50%) rotate(210deg);
}

.mini-clock-half::after {
  transform: translateX(-50%) rotate(180deg);
}

.mini-clock-quarter::before {
  transform: translateX(-50%) rotate(105deg);
}

.mini-clock-quarter::after {
  transform: translateX(-50%) rotate(90deg);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 31px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.hero-proof i {
  display: inline-grid;
  width: 20px;
  height: 20px;
  margin-right: 4px;
  place-items: center;
  border-radius: 50%;
  color: var(--teal-dark);
  background: var(--teal-pale);
  font-style: normal;
}

.hero-visual {
  position: relative;
  min-height: 470px;
  isolation: isolate;
}

.hero-visual::before {
  content: "";
  position: absolute;
  z-index: -3;
  top: 4%;
  right: 0;
  width: 93%;
  aspect-ratio: 1;
  border-radius: 48% 52% 44% 56%;
  background: var(--teal-pale);
  transform: rotate(-7deg);
}

.hero-clock {
  position: absolute !important;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: min(355px, 74vw) !important;
  height: min(355px, 74vw) !important;
  transform: translate(-50%, -50%) rotate(2deg);
  filter: drop-shadow(0 22px 26px rgba(23, 49, 59, .16));
}

.orbit {
  position: absolute;
  z-index: -1;
  border: 2px dashed rgba(23, 49, 59, .17);
  border-radius: 50%;
}

.orbit-one {
  inset: 8%;
  transform: rotate(12deg);
}

.orbit-two {
  inset: 15% 3% 4% 16%;
  transform: rotate(-18deg);
}

.float-card {
  position: absolute;
  z-index: 3;
  display: flex;
  width: 112px;
  height: 84px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 2px solid var(--ink);
  border-radius: 18px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 7px 8px 0 rgba(23, 49, 59, .16);
  transform: rotate(-6deg);
}

.float-card b {
  font-family: var(--display);
  font-size: 25px;
  line-height: 1;
}

.float-card small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.float-card-top {
  top: 3%;
  right: -2%;
}

.float-card-bottom {
  bottom: 3%;
  left: -2%;
  width: 140px;
  transform: rotate(5deg);
}

.spark {
  position: absolute;
  z-index: 4;
  color: var(--coral);
  font-size: 24px;
}

.spark-a {
  top: 6%;
  left: 14%;
  transform: rotate(20deg);
}

.spark-b {
  right: 7%;
  bottom: 5%;
  color: var(--yellow);
  font-size: 35px;
}

.spark-c {
  top: 21%;
  right: -2%;
  color: var(--blue);
  font-size: 13px;
}

.clock-face {
  position: relative;
  width: 100%;
  height: 100%;
  border: 10px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 0 0 var(--ring-width) var(--yellow);
  overflow: hidden;
  isolation: isolate;
  --ring-width: 7px;
}

.clock-tick {
  position: absolute;
  top: 5.5%;
  left: 50%;
  width: 2px;
  height: 4.8%;
  border-radius: 4px;
  background: rgba(23, 49, 59, .34);
  transform-origin: 50% 50%;
}

.clock-tick.major {
  width: 4px;
  height: 6%;
  background: var(--ink);
}

.clock-number {
  position: absolute;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  font-family: var(--display);
  font-size: clamp(15px, 4.5cqw, 22px);
  font-weight: 900;
  transform: translate(-50%, -50%);
}

.clock-minute-number {
  position: absolute;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  color: var(--teal-dark);
  background: var(--teal-pale);
  font-size: clamp(8px, 2.2cqw, 11px);
  font-weight: 900;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity .2s;
}

.show-minute-labels .clock-minute-number {
  opacity: 1;
}

.clock-hand {
  position: absolute;
  z-index: 3;
  bottom: 50%;
  left: 50%;
  border-radius: 20px 20px 5px 5px;
  background: var(--ink);
  transform-origin: 50% calc(100% - 2px);
  transition: transform .28s cubic-bezier(.2, .8, .2, 1);
}

.clock-hand.hour {
  width: 7px;
  height: 24%;
  margin-left: -3.5px;
}

.clock-hand.minute {
  width: 5px;
  height: 34%;
  margin-left: -2.5px;
  background: var(--coral);
}

.clock-hand.second {
  position: absolute;
  bottom: 50%;
  left: 50%;
  width: 2px;
  height: 42%;
  margin-left: -1px;
  background: var(--teal);
  z-index: 4;
  border-radius: 4px 4px 0 0;
  transform-origin: 50% calc(100% - 2px);
  transition: transform 0.1s linear, width 0.15s ease, margin-left 0.15s ease, opacity 0.15s ease;
}

.hero-clock .clock-hand.second,
.interactive-clock .clock-hand.second {
  width: 4px;
  margin-left: -2px;
}

.hero-clock .clock-hand.second:hover,
.hero-clock .clock-hand.second:active,
.interactive-clock .clock-hand.second:hover,
.interactive-clock .clock-hand.second:active {
  width: 8px;
  margin-left: -4px;
}

.interactive-clock .clock-hand.second.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.clock-hand.second::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: inherit;
  transform: translate(-50%, 50%);
}

.interactive-clock .clock-hand.hour {
  height: 20%;
}

.clock-hand.minute::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 50%;
  width: 0;
  height: 0;
  border-right: 4px solid transparent;
  border-bottom: 9px solid var(--coral);
  border-left: 4px solid transparent;
  transform: translate(-50%, -50%);
}

.clock-center {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  border: 4px solid var(--paper);
  border-radius: 50%;
  background: var(--ink);
  transform: translate(-50%, -50%);
}

.quick-paths {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: -43px;
}

.quick-card {
  display: flex;
  min-height: 104px;
  align-items: center;
  gap: 14px;
  padding: 16px 17px;
  border: 2px solid var(--ink);
  border-radius: 19px;
  box-shadow: 5px 6px 0 var(--ink);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}

.quick-card:hover {
  box-shadow: 7px 9px 0 var(--ink);
  transform: translateY(-3px);
}

.quick-card>span:nth-child(2) {
  min-width: 0;
}

.quick-card strong,
.quick-card small {
  display: block;
}

.quick-card strong {
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: -.03em;
}

.quick-card small {
  overflow: hidden;
  margin-top: 3px;
  color: rgba(23, 49, 59, .72);
  font-size: 11px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-card i {
  margin-left: auto;
  font-style: normal;
  font-weight: 900;
}

.quick-icon {
  display: grid;
  width: 45px;
  height: 45px;
  flex: 0 0 45px;
  place-items: center;
  border: 2px solid rgba(23, 49, 59, .18);
  border-radius: 14px;
  background: rgba(255, 255, 255, .45);
  font-size: 22px;
  font-weight: 900;
}

.quick-card-teal {
  background: #a9ded3;
}

.quick-card-yellow {
  background: var(--yellow-pale);
}

.quick-card-coral {
  background: var(--coral-pale);
}

.quick-card-blue {
  background: var(--blue-pale);
}

.ad-placement {
  padding-block: 42px;
}

.ad-placement[hidden] {
  display: none !important;
}

.ad-label {
  display: block;
  margin-bottom: 11px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .12em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.ad-placement .adsbygoogle {
  display: block;
  min-height: 250px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 247, .5);
}

.section {
  padding-block: 112px;
}

.section-heading {
  margin-bottom: 46px;
}

.section-heading>p:not(.eyebrow) {
  max-width: 610px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.centered {
  max-width: 760px;
  margin-right: auto;
  margin-bottom: 50px;
  margin-left: auto;
  text-align: center;
}

.centered>p:not(.eyebrow) {
  margin-right: auto;
  margin-left: auto;
}

.split-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 70px;
}

.split-heading>p {
  max-width: 400px !important;
  margin-bottom: 5px !important;
}

.section-tools {
  background: var(--paper);
}

.tool-toolbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-bottom: 20px;
}

.tool-toolbar .tool-tabs {
  grid-column: 2;
  margin: 0;
}

body.has-fullscreen-fallback {
  overflow: hidden;
}

.fullscreen-shell {
  position: relative;
}

.fullscreen-open-button,
.fullscreen-icon-button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 12px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 3px 4px 0 var(--ink);
  line-height: 1;
  cursor: pointer;
  transition: transform .16s, background .16s, box-shadow .16s;
}

.fullscreen-open-button:hover,
.fullscreen-icon-button:hover {
  background: var(--yellow-pale);
  transform: translateY(-2px);
}

.fullscreen-open-button span,
.fullscreen-icon-button span {
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
}

.fullscreen-dock {
  position: absolute;
  z-index: 80;
  top: 16px;
  right: 16px;
  display: none;
  align-items: flex-start;
  gap: 8px;
}

.fullscreen-menu {
  position: relative;
}

.fullscreen-brand {
  display: none;
}

.fullscreen-dock .fullscreen-menu {
  position: static;
}

.fullscreen-popover {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  display: grid;
  width: min(330px, calc(100vw - 32px));
  max-height: min(560px, calc(100vh - 100px));
  gap: 6px;
  padding: 10px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 6px 7px 0 var(--ink);
  overflow-y: auto;
}

.fullscreen-popover[hidden] {
  display: none !important;
}

.fullscreen-popover-title {
  padding: 3px 7px 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.fullscreen-option {
  display: grid;
  min-height: 46px;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 7px 11px 7px 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: var(--white);
  text-align: left;
  cursor: pointer;
}

.fullscreen-option span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  background: var(--teal-pale);
  font-size: 17px;
  font-weight: 900;
}

.fullscreen-option b {
  min-width: 0;
  font-size: 13px;
  line-height: 1.2;
}

.fullscreen-option:hover {
  border-color: var(--teal);
  background: var(--teal-pale);
}

.fullscreen-option.is-active {
  border-color: var(--ink);
  color: var(--white);
  background: var(--ink);
}

.fullscreen-option.is-active span {
  color: var(--ink);
  background: var(--yellow);
}

.fullscreen-shell:fullscreen,
.fullscreen-shell:-webkit-full-screen,
.fullscreen-shell.is-fullscreen-fallback {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  width: 100vw;
  height: 100vh;
  flex-direction: column;
  margin: 0;
  padding: 76px clamp(14px, 3vw, 34px) clamp(16px, 3vw, 34px);
  background: var(--cream);
  overflow: auto;
}

.tool-fullscreen-shell:fullscreen,
.tool-fullscreen-shell:-webkit-full-screen,
.tool-fullscreen-shell.is-fullscreen-fallback {
  background: var(--paper);
}

.game-fullscreen-shell:fullscreen,
.game-fullscreen-shell:-webkit-full-screen,
.game-fullscreen-shell.is-fullscreen-fallback {
  background: var(--teal-pale);
}

.fullscreen-shell:fullscreen .fullscreen-dock,
.fullscreen-shell:-webkit-full-screen .fullscreen-dock,
.fullscreen-shell.is-fullscreen-fallback .fullscreen-dock {
  position: fixed;
  display: flex;
}

.fullscreen-shell:fullscreen .fullscreen-brand,
.fullscreen-shell:-webkit-full-screen .fullscreen-brand,
.fullscreen-shell.is-fullscreen-fallback .fullscreen-brand {
  position: fixed;
  z-index: 80;
  top: 16px;
  left: 18px;
  display: inline-flex;
}

.fullscreen-shell:fullscreen .fullscreen-open-button,
.fullscreen-shell:-webkit-full-screen .fullscreen-open-button,
.fullscreen-shell.is-fullscreen-fallback .fullscreen-open-button,
.tool-fullscreen-shell:fullscreen .tool-toolbar,
.tool-fullscreen-shell:-webkit-full-screen .tool-toolbar,
.tool-fullscreen-shell.is-fullscreen-fallback .tool-toolbar,
.game-fullscreen-shell:fullscreen .game-toolbar,
.game-fullscreen-shell:-webkit-full-screen .game-toolbar,
.game-fullscreen-shell.is-fullscreen-fallback .game-toolbar,
.game-fullscreen-shell:fullscreen .game-settings,
.game-fullscreen-shell:-webkit-full-screen .game-settings,
.game-fullscreen-shell.is-fullscreen-fallback .game-settings {
  display: none;
}

.tool-tabs,
.game-picker {
  display: flex;
  width: max-content;
  max-width: 100%;
  gap: 5px;
  margin: 0 auto 20px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--cream);
  overflow-x: auto;
}

.tool-tab,
.game-pick {
  min-width: max-content;
  padding: 10px 19px;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
}

.tool-tab.is-active,
.game-pick.is-active {
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 3px 7px rgba(23, 49, 59, .15);
}

.tool-stage {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--cream);
  box-shadow: 10px 12px 0 var(--ink);
}

.tool-fullscreen-button {
  position: absolute;
  z-index: 14;
  top: 15px;
  right: 15px;
}

.tool-panel {
  min-height: 570px;
}

.tool-fullscreen-shell:fullscreen .tool-stage,
.tool-fullscreen-shell:-webkit-full-screen .tool-stage,
.tool-fullscreen-shell.is-fullscreen-fallback .tool-stage {
  flex: 1;
  min-height: 0;
  border-radius: 24px;
  box-shadow: none;
}

.tool-fullscreen-shell:fullscreen .tool-panel,
.tool-fullscreen-shell:-webkit-full-screen .tool-panel,
.tool-fullscreen-shell.is-fullscreen-fallback .tool-panel {
  min-height: calc(100vh - 126px);
}

.tool-fullscreen-shell:fullscreen .clock-tool.is-active,
.tool-fullscreen-shell:-webkit-full-screen .clock-tool.is-active,
.tool-fullscreen-shell.is-fullscreen-fallback .clock-tool.is-active {
  min-height: calc(100vh - 126px);
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, .75fr);
}

.tool-fullscreen-shell:fullscreen .digital-clock-tool.is-active,
.tool-fullscreen-shell:-webkit-full-screen .digital-clock-tool.is-active,
.tool-fullscreen-shell.is-fullscreen-fallback .digital-clock-tool.is-active {
  min-height: calc(100vh - 126px);
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, .75fr);
}

.tool-fullscreen-shell:fullscreen .interactive-clock,
.tool-fullscreen-shell:-webkit-full-screen .interactive-clock,
.tool-fullscreen-shell.is-fullscreen-fallback .interactive-clock {
  width: min(520px, 72vh, 100%);
}

.tool-fullscreen-shell:fullscreen .timeline-workspace,
.tool-fullscreen-shell:-webkit-full-screen .timeline-workspace,
.tool-fullscreen-shell.is-fullscreen-fallback .timeline-workspace,
.tool-fullscreen-shell:fullscreen .timer-workspace,
.tool-fullscreen-shell:-webkit-full-screen .timer-workspace,
.tool-fullscreen-shell.is-fullscreen-fallback .timer-workspace,
.tool-fullscreen-shell:fullscreen .world-clock-workspace,
.tool-fullscreen-shell:-webkit-full-screen .world-clock-workspace,
.tool-fullscreen-shell.is-fullscreen-fallback .world-clock-workspace,
.tool-fullscreen-shell:fullscreen .stopwatch-workspace,
.tool-fullscreen-shell:-webkit-full-screen .stopwatch-workspace,
.tool-fullscreen-shell.is-fullscreen-fallback .stopwatch-workspace,
.tool-fullscreen-shell:fullscreen .digital-clock-display,
.tool-fullscreen-shell:-webkit-full-screen .digital-clock-display,
.tool-fullscreen-shell.is-fullscreen-fallback .digital-clock-display {
  min-height: calc(100vh - 126px);
}

.clock-tool {
  display: none;
  grid-template-columns: 1.15fr .85fr;
}

.clock-tool.is-active {
  display: grid;
}

.tool-display {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 40px;
  background: var(--teal-pale);
}

.interactive-clock {
  width: min(430px, 100%);
  aspect-ratio: 1;
  container-type: inline-size;
}

@media (min-width: 761px) {
  .tool-display {
    container-type: size;
  }

  .interactive-clock {
    width: min(680px, 100%, calc(100cqh - 74px));
  }
}

.digital-readout {
  margin-top: 18px;
  padding: 7px 18px;
  border: 2px solid var(--ink);
  border-radius: 11px;
  color: var(--ink);
  background: var(--white);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: .05em;
  transition: opacity .2s, transform .2s;
}

.digital-readout.is-hidden {
  opacity: 0;
  transform: translateY(4px);
}

.clock-meridiem {
  margin-top: 10px;
  color: var(--teal-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .06em;
}

.tool-controls {
  padding: 35px 40px;
  background: var(--paper);
}

.tool-kicker {
  margin: 0 0 8px;
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.tool-controls h3 {
  margin-bottom: 20px;
}

.clock-range-picker {
  margin: -10px 0 18px;
  padding: 11px 12px 12px;
  border: 2px solid rgba(24, 138, 125, .34);
  border-radius: 14px;
  background: rgba(255, 255, 255, .72);
}

.clock-range-picker>span,
.material-option-picker>span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.clock-range-picker .level-options {
  width: 100%;
  overflow: visible;
}

.time-range-picker {
  padding: 9px 11px 10px;
  border: 2px solid rgba(24, 138, 125, .34);
  border-radius: 14px;
  background: rgba(255, 255, 255, .66);
}

.level-options.time-range-options,
.material-level-options.time-range-options {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  overflow: visible;
}

.time-range-option {
  min-width: 0;
  padding: 8px 9px;
  border-width: 2px;
  font-size: 11px;
  white-space: nowrap;
}

.time-range-option.is-active {
  border-color: var(--teal-dark);
  background: var(--teal-dark);
}

.time-stepper {
  display: flex;
  align-items: flex-end;
  gap: 7px;
}

.time-stepper.is-hidden {
  display: none;
}

.time-stepper button {
  display: grid;
  width: 43px;
  height: 49px;
  flex: 0 0 43px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--cream);
  font-size: 25px;
  font-weight: 700;
  cursor: pointer;
}

.time-stepper label {
  flex: 1;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.time-stepper input {
  width: 100%;
  height: 49px;
  margin-top: 5px;
  border: 2px solid var(--ink);
  border-radius: 11px;
  color: var(--ink);
  background: var(--white);
  font-size: 21px;
  font-weight: 800;
  text-align: center;
}

.time-colon {
  padding-bottom: 7px;
  font-size: 26px;
  font-weight: 900;
}

.minute-buttons {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 12px 0 25px;
}

.minute-buttons>div {
  display: grid;
  gap: 8px;
}

.minute-buttons button {
  width: 100%;
}

.minute-buttons button,
.timer-presets button {
  padding: 9px 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: var(--cream);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.minute-buttons button:hover,
.timer-presets button:hover,
.timer-presets button.is-active {
  border-color: var(--teal);
  background: var(--teal-pale);
}

.tool-options {
  border-top: 1px solid var(--line);
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.switch-row span,
.switch-row b,
.switch-row small {
  display: block;
}

.switch-row b {
  font-size: 13px;
}

.switch-row small {
  color: var(--muted);
  font-size: 10px;
}

.switch-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-row i {
  position: relative;
  width: 41px;
  height: 23px;
  flex: 0 0 41px;
  border-radius: 50px;
  background: #cbd4d3;
  transition: background .2s;
}

.switch-row i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
  transition: transform .2s;
}

.switch-row input:checked+i {
  background: var(--teal);
}

.switch-row input:checked+i::after {
  transform: translateX(18px);
}

.switch-row input:focus-visible+i {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.tool-random,
.tool-current {
  width: 100%;
  margin-top: 0;
}

.tool-actions-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 27px;
  width: 100%;
}

.digital-clock-tool.is-active {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
}

.digital-clock-display {
  display: flex;
  min-height: 570px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 15px;
  padding: 40px;
  color: var(--ink);
  background: var(--teal-pale);
  text-align: center;
}

.digital-clock-label {
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.digital-clock-display strong {
  position: relative;
  display: grid;
  place-items: center;
  max-width: 100%;
  padding: clamp(18px, 3vw, 36px) clamp(20px, 4vw, 52px);
  border: 3px solid var(--ink);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 8px 9px 0 var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(52px, 9vw, 122px);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.07em;
  line-height: .95;
  white-space: nowrap;
}

.digital-clock-meridiem {
  position: absolute;
  right: clamp(5px, 1.3vw, 18px);
  bottom: clamp(14px, 3vw, 34px);
  color: var(--teal-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(18px, 2.4vw, 30px);
  font-weight: 900;
  letter-spacing: .05em;
}

.digital-clock-display.is-large strong {
  font-size: clamp(72px, 13vw, 172px);
}

.world-clock-tool.is-active,
.stopwatch-tool.is-active {
  display: block;
}

.world-clock-workspace,
.stopwatch-workspace {
  display: flex;
  min-height: 570px;
  align-items: center;
  flex-direction: column;
  padding: 55px clamp(20px, 7vw, 100px);
  text-align: center;
}

.world-clock-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(335px, 390px);
  align-items: start;
  padding: 0;
  text-align: left;
}

.world-clock-controls {
  display: grid;
  width: 100%;
  grid-column: 2;
  grid-row: 1 / -1;
  grid-template-columns: 1fr;
  align-items: stretch;
  align-content: start;
  grid-auto-rows: max-content;
  gap: 18px;
  align-self: stretch;
  margin: 0;
  padding: 35px 40px;
  background: var(--paper);
}

.world-clock-intro .tool-kicker {
  margin: 0 0 7px;
}

.world-clock-intro h3 {
  margin: 0;
}

.world-clock-intro>p:not(.tool-kicker) {
  margin: 7px 0 24px;
  color: var(--muted);
}

.world-clock-control-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.world-clock-control-actions .button {
  width: 100%;
  min-height: 58px;
  padding-inline: 12px;
}

.world-clock-controls > label,
.stopwatch-laps-heading label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

.world-clock-controls select,
.world-clock-card select,
.stopwatch-laps-heading select {
  min-height: 40px;
  padding: 7px 31px 7px 10px;
  border: 2px solid var(--ink);
  border-radius: 9px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-weight: 800;
}

@media (max-width: 980px) {
  .world-clock-workspace {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 50px 25px;
    text-align: center;
  }

  .world-clock-controls {
    width: min(560px, 100%);
    padding: 25px;
    text-align: left;
  }
}

@media (max-width: 620px) {
  .world-clock-control-actions { grid-template-columns: 1fr; }
}

.world-clock-grid {
  display: grid;
  width: 100%;
  grid-column: 1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-self: start;
  padding: 35px 48px 48px;
}

.world-clock-card {
  position: relative;
  padding: 19px 15px;
  border: 2px solid var(--ink);
  border-radius: 17px;
  background: var(--white);
  box-shadow: 4px 5px 0 var(--ink);
}

.world-clock-card:nth-child(3n + 2) { background: var(--yellow-pale); }
.world-clock-card:nth-child(3n) { background: var(--coral-pale); }

.world-clock-card-header {
  display: flex;
  align-items: center;
  gap: 7px;
}

.world-clock-picker { position: relative; min-width: 0; flex: 1; }

.world-clock-city-select {
  display: flex;
  width: 100%;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  margin-top: 0;
  padding: 5px 10px;
  border: 2px solid var(--ink);
  border-radius: 9px;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-align: left;
}

.world-clock-city-select::after {
  content: "⌄";
  margin-left: 12px;
  font-size: 20px;
  line-height: 1;
}

.world-clock-city-dropdown {
  position: absolute;
  z-index: 5;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 3px 4px 0 var(--ink);
}

.world-clock-city-dropdown[hidden] {
  display: none;
}

.world-clock-search-wrapper {
  padding: 6px 8px;
  border-bottom: 2px solid var(--ink);
  background: #f7f7f7;
  border-radius: 6px 6px 0 0;
}

.world-clock-search {
  width: 100%;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  outline: none;
}

.world-clock-search::placeholder {
  color: var(--muted);
}

.world-clock-city-results {
  max-height: 180px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.world-clock-city-result-group {
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}

.world-clock-city-result-group:last-child { border-bottom: 0; }

.world-clock-city-result-group>span {
  display: block;
  padding: 0 9px 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.world-clock-city-result-group button {
  display: block;
  width: 100%;
  padding: 6px 9px;
  border: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

.world-clock-city-result-group button:hover,
.world-clock-city-result-group button:focus-visible {
  outline: none;
  background: var(--teal-pale);
}

.world-clock-remove {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.world-clock-remove:hover { background: var(--coral-pale); }

.world-clock-zone {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.world-clock-weekday {
  display: block;
  margin-top: 11px;
  color: var(--teal);
  font-family: var(--body);
  font-size: clamp(14px, 1.6vw, 18px);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.world-clock-time-row {
  display: grid;
  place-items: center;
  margin-top: 9px;
}

.world-clock-time-wrap {
  position: relative;
  display: block;
}

.world-clock-time {
  display: block;
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(22px, 3vw, 33px);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.05em;
}

.world-clock-meridiem {
  position: absolute;
  bottom: 1px;
  left: calc(100% + 9px);
  color: var(--teal-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .05em;
}

.world-clock-analog {
  display: none;
  width: min(165px, 100%);
  aspect-ratio: 1;
  margin: 15px auto 0;
  pointer-events: none;
}

.world-clock-analog .clock-face { border-width: 7px; --ring-width: 4px; }
.world-clock-analog .clock-number { font-size: clamp(11px, 4.5cqw, 18px); }
.world-clock-analog .clock-minute-number { font-size: clamp(6px, 2.2cqw, 9px); }
.world-clock-grid:not(.show-digital) .world-clock-time { display: none; }
.world-clock-grid:not(.show-digital) .world-clock-meridiem { display: none; }
.world-clock-grid:not(.show-digital) .world-clock-time-row { margin-top: 8px; }
.world-clock-grid.show-analog .world-clock-analog { display: block; }

.tool-fullscreen-shell:fullscreen .world-clock-analog,
.tool-fullscreen-shell:-webkit-full-screen .world-clock-analog,
.tool-fullscreen-shell.is-fullscreen-fallback .world-clock-analog {
  width: min(150px, 18vw, 19vh, 100%) !important;
}

.tool-fullscreen-shell:fullscreen .tool-stage,
.tool-fullscreen-shell:-webkit-full-screen .tool-stage,
.tool-fullscreen-shell.is-fullscreen-fallback .tool-stage {
  overflow-y: auto;
}

.tool-fullscreen-shell:fullscreen .world-clock-tool.is-active,
.tool-fullscreen-shell:-webkit-full-screen .world-clock-tool.is-active,
.tool-fullscreen-shell.is-fullscreen-fallback .world-clock-tool.is-active {
  flex: 0 0 auto;
  min-height: calc(100vh - 126px);
}

.stopwatch-display {
  display: grid;
  width: min(560px, 100%);
  min-height: 170px;
  place-items: center;
  margin: 26px 0;
  padding: 22px;
  border: 3px solid var(--ink);
  border-radius: 24px;
  background: var(--yellow-pale);
  box-shadow: 8px 9px 0 var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(46px, 10vw, 96px);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.08em;
  line-height: 1;
}

.stopwatch-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.stopwatch-actions .button { min-width: 132px; }
.stopwatch-actions .button:disabled { opacity: .5; cursor: not-allowed; }

.stopwatch-laps-wrap {
  width: min(560px, 100%);
  margin-top: 32px;
  text-align: left;
}

.stopwatch-laps-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 9px;
}

.stopwatch-laps-wrap h4 { margin: 0; font-size: 15px; }
.stopwatch-laps-heading select { min-height: 34px; padding-block: 4px; }

.stopwatch-laps {
  max-height: 190px;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
  overflow: auto;
}

.stopwatch-laps:empty::after {
  content: "Ingen omgangstider endnu.";
  display: block;
  padding: 16px 0;
  color: var(--muted);
  font-size: 13px;
}

.stopwatch-laps li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.stopwatch-laps li.is-finish { color: var(--teal-dark); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 480px) {
  .tool-actions-row {
    flex-direction: row;
  }
  .tool-actions-row button {
    flex: 1;
  }
}

.timeline-tool.is-active,
.timer-tool.is-active {
  display: block;
}

.timeline-workspace,
.timer-workspace {
  display: flex;
  min-height: 570px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 60px 10%;
  text-align: center;
}

.timeline-times {
  display: flex;
  width: min(620px, 100%);
  align-items: end;
  gap: 24px;
  margin: 42px 0;
}

.timeline-times label {
  flex: 1;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

.timeline-times input {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 13px 16px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  color: var(--ink);
  background: var(--white);
  font-size: 21px;
  font-weight: 850;
}

.timeline-times>span {
  padding-bottom: 13px;
  color: var(--coral);
  font-size: 30px;
  font-weight: 900;
}

.time-line {
  position: relative;
  width: min(720px, 100%);
  height: 116px;
  margin: 8px 0 25px;
}

.timeline-track {
  position: absolute;
  right: 0;
  bottom: 30px;
  left: 0;
  height: 4px;
  border-radius: 10px;
  background: var(--ink);
}

.timeline-track::after {
  content: "";
  position: absolute;
  top: -5px;
  right: -2px;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid var(--ink);
}

.timeline-point {
  position: absolute;
  bottom: 0;
  left: var(--point-left);
  min-width: 46px;
  text-align: center;
  transform: translateX(-50%);
}

.timeline-point.is-start {
  text-align: left;
  transform: none;
}

.timeline-point.is-end {
  text-align: right;
  transform: translateX(-100%);
}

.timeline-point i {
  display: block;
  width: 4px;
  height: 17px;
  margin: 0 auto 5px;
  border-radius: 5px;
  background: var(--ink);
}

.timeline-point.is-start i {
  margin-left: 0;
}

.timeline-point.is-end i {
  margin-right: 0;
}

.timeline-point b {
  font-size: 11px;
  white-space: nowrap;
}

.timeline-arc {
  position: absolute;
  bottom: 34px;
  left: var(--arc-left);
  width: var(--arc-width);
  height: 42px;
  border: 2px dashed var(--teal-dark);
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
}

.timeline-arc b {
  position: absolute;
  top: -24px;
  left: 50%;
  padding: 3px 7px;
  border-radius: 10px;
  color: var(--teal-dark);
  background: var(--teal-pale);
  font-size: 10px;
  white-space: nowrap;
  transform: translateX(-50%);
}

.elapsed-result {
  display: flex;
  align-items: center;
  justify-content: center;
}

.elapsed-result strong {
  font-family: var(--display);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
}

.timeline-explanation {
  color: var(--muted);
}

.timer-ring {
  --progress: 0deg;
  position: relative;
  display: grid;
  flex: 0 0 auto;
  width: 270px;
  height: 270px;
  margin: 32px 0 20px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--coral) var(--progress), var(--coral-pale) 0);
}

.timer-ring::before {
  content: "";
  position: absolute;
  inset: 17px;
  border-radius: 50%;
  background: var(--paper);
}

.timer-ring span {
  position: relative;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 45px;
  font-weight: 850;
  letter-spacing: -.04em;
}

.timer-adjust {
  display: grid;
  width: min(460px, 100%);
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 9px;
  margin-bottom: 13px;
}

.timer-adjust button {
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: var(--yellow-pale);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.timer-adjust button:hover {
  border-color: var(--teal);
  background: var(--teal-pale);
}

.timer-presets {
  display: flex;
  max-width: 560px;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.timer-presets button {
  min-width: 67px;
}

.timer-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.section-games {
  position: relative;
  overflow: hidden;
  background: var(--teal-pale);
}

.section-games::before,
.section-games::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border: 2px dashed rgba(23, 49, 59, .12);
  border-radius: 50%;
}

.section-games::before {
  top: 55px;
  left: -80px;
}

.section-games::after {
  right: -60px;
  bottom: 90px;
}

.game-toolbar {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px 12px;
  margin-bottom: 22px;
}

.game-toolbar .game-picker {
  display: grid;
  width: 100%;
  max-width: none;
  grid-row: 2;
  grid-column: 1 / -1;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  margin-bottom: 0;
  overflow: visible;
}

.game-picker {
  background: rgba(255, 255, 255, .55);
}

.game-picker .game-pick {
  width: 100%;
  min-width: 0;
  padding: 9px 10px;
  font-size: 13px;
}

.level-picker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin: -6px auto 25px;
}

.game-settings {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px 24px;
  margin: -6px auto 25px;
}

.game-settings .level-picker {
  margin: 0;
}

.level-picker>span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.level-options {
  display: flex;
  max-width: 100%;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.level-option {
  min-width: max-content;
  padding: 7px 11px;
  border: 1px solid rgba(23, 49, 59, .18);
  border-radius: 20px;
  color: var(--muted);
  background: rgba(255, 255, 255, .48);
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
}

.level-option:hover {
  border-color: var(--teal);
  color: var(--ink);
}

.level-option.is-active {
  border-color: var(--ink);
  color: var(--white);
  background: var(--ink);
}

.game-arena {
  position: relative;
  z-index: 2;
  min-height: 480px;
  padding: 36px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: 10px 12px 0 var(--ink);
}

.game-fullscreen-shell:fullscreen .game-arena,
.game-fullscreen-shell:-webkit-full-screen .game-arena,
.game-fullscreen-shell.is-fullscreen-fallback .game-arena {
  flex: 1;
  min-height: calc(100vh - 126px);
  padding: clamp(22px, 3vw, 42px);
  border-radius: 24px;
  box-shadow: none;
  overflow: auto;
}

.game-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 25px;
}

.game-head h3 {
  font-size: 25px;
}

.game-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.game-complete-fullscreen {
  position: absolute;
  z-index: 5;
  top: 18px;
  right: 18px;
}

.game-stats {
  display: flex;
  gap: 8px;
}

.game-stat {
  min-width: 78px;
  padding: 7px 13px;
  border-radius: 11px;
  background: var(--cream);
  font-size: 11px;
  font-weight: 750;
  text-align: center;
}

.game-stat b {
  display: block;
  font-family: var(--display);
  font-size: 20px;
  line-height: 1.1;
}

.game-body {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: 55px;
}

.game-clock {
  width: min(310px, 100%);
  aspect-ratio: 1;
  margin: auto;
  container-type: inline-size;
}

.game-question .eyebrow {
  margin-bottom: 9px;
}

.game-question h4 {
  margin: 0 0 22px;
  font-family: var(--display);
  font-size: clamp(27px, 3vw, 40px);
  letter-spacing: -.045em;
  line-height: 1.08;
}

.answer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.answer-button {
  min-height: 62px;
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: var(--white);
  font-size: 18px;
  font-weight: 850;
  cursor: pointer;
  transition: transform .15s, border-color .15s, background .15s;
}

.answer-button:hover {
  border-color: var(--teal);
  background: var(--teal-pale);
  transform: translateY(-2px);
}

.answer-button.is-correct {
  border-color: var(--teal-dark);
  color: var(--teal-dark);
  background: var(--teal-pale);
}

.answer-button.is-wrong {
  border-color: var(--coral);
  background: var(--coral-pale);
}

.game-feedback {
  min-height: 38px;
  margin-top: 18px;
  color: var(--muted);
  font-weight: 750;
}

.game-feedback.correct {
  color: var(--teal-dark);
}

.game-feedback.wrong {
  color: #b84335;
}

.set-clock-display {
  padding: 30px;
  border-radius: 25px;
  background: var(--teal-pale);
}

.target-time {
  display: inline-block;
  margin: 11px 0 25px;
  padding: 8px 18px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--white);
  font-family: ui-monospace, monospace;
  font-size: 29px;
  font-weight: 900;
}

.set-controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 18px;
}

.set-control-group {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
}

.set-control-group>span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-align: center;
}

.set-controls button {
  min-height: 45px;
  padding: 10px 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: var(--cream);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.set-controls button:hover {
  background: var(--yellow-pale);
}

.check-time {
  width: 100%;
  margin-top: 10px;
}

.phrase-card {
  display: grid;
  min-height: 275px;
  place-items: center;
  padding: 40px;
  border-radius: 27px;
  background: var(--yellow-pale);
  text-align: center;
}

.phrase-card>div {
  display: grid;
  gap: 18px;
  justify-items: center;
}

.phrase-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.phrase-card strong {
  display: block;
  max-width: 390px;
  margin-top: 0;
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 50px);
  letter-spacing: -.05em;
  line-height: 1.05;
}

.phrase-speak-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  margin-top: 4px;
  padding: 10px 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 8px 18px rgba(23, 49, 59, .16);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .15s, background .15s, box-shadow .15s, color .15s;
}

.phrase-speak-button[hidden] {
  display: none;
}

.phrase-speak-button:hover {
  color: var(--ink);
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(23, 49, 59, .18);
}

.phrase-speak-button:active {
  transform: translateY(1px);
  box-shadow: 0 6px 12px rgba(23, 49, 59, .15);
}

.speech-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.15;
}

.speech-float-button {
  position: fixed;
  z-index: 120;
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 10px 24px rgba(23, 49, 59, .28);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px) scale(.96);
  transition: opacity .28s ease, transform .28s ease, background .15s, color .15s, box-shadow .15s;
}

.speech-float-button[hidden] {
  display: none;
}

.speech-float-button.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.speech-float-button:hover {
  color: var(--ink);
  background: var(--yellow);
  border-color: var(--yellow);
  transform: translateY(-1px) scale(1);
  box-shadow: 0 14px 28px rgba(23, 49, 59, .32);
}

.speech-float-button b {
  display: none;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

.speech-float-button.is-selection,
.speech-float-button.is-speaking {
  width: auto;
  gap: 8px;
  padding: 0 12px;
}

.speech-float-button.is-selection b,
.speech-float-button.is-speaking b {
  display: block;
}

::highlight(speech-highlight) {
  background-color: var(--yellow);
  color: var(--ink);
}

::selection {
  background-color: var(--yellow-pale);
  color: var(--ink);
}

.game-check-button {
  width: 100%;
  margin-top: 12px;
}

.answer-button.is-selected {
  border-color: var(--ink);
  background: var(--yellow-pale);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.clock-number-slot {
  z-index: 4;
  border: 2px dashed var(--teal);
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  cursor: pointer;
}

.clock-number-slot:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

.clock-number-slot.is-wrong {
  border-color: var(--coral);
  color: #b84335;
  background: var(--coral-pale);
}

.clock-number-slot.is-correct {
  border-style: solid;
  border-color: var(--teal-dark);
  color: var(--teal-dark);
  background: var(--teal-pale);
}

.number-pile,
.digit-pile {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 15px;
  border: 2px dashed var(--line);
  border-radius: 16px;
  background: var(--white);
}

.number-chip,
.digit-chip {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 14px;
  color: var(--ink);
  background: var(--yellow-pale);
  box-shadow: 3px 4px 0 var(--ink);
  font-family: var(--display);
  font-size: 23px;
  font-weight: 900;
  cursor: grab;
  transition: transform .15s, opacity .15s, background .15s;
}

.number-chip:hover,
.digit-chip:hover {
  transform: translateY(-2px);
}

.number-chip.is-selected {
  color: var(--white);
  background: var(--teal-dark);
}

.number-chip.is-used:not(.is-selected),
.digit-chip.is-used {
  opacity: .35;
  box-shadow: none;
  transform: translateY(2px);
}

.built-time {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 88px;
  margin-bottom: 15px;
  padding: 14px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: var(--white);
}

.built-time span {
  display: grid;
  width: 48px;
  height: 55px;
  place-items: center;
  border-radius: 10px;
  background: var(--cream);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 31px;
  font-weight: 900;
}

.built-time b {
  font-size: 31px;
}

.built-time.is-wrong {
  border-color: var(--coral);
  background: var(--coral-pale);
}

.built-time.is-correct {
  border-color: var(--teal-dark);
  background: var(--teal-pale);
}

.build-time-actions {
  display: grid;
  grid-template-columns: .65fr 1.35fr;
  gap: 10px;
  margin-top: 13px;
}

.build-time-actions .button {
  width: 100%;
}

.number-prep-body {
  align-items: stretch;
}

.clock-prep-card {
  align-content: center;
  gap: 16px;
}

.number-focus-card,
.number-minute-card,
.number-jump-board {
  display: grid;
  min-height: 320px;
  place-items: center;
  padding: 28px;
  border-radius: 27px;
  background: var(--yellow-pale);
  text-align: center;
}

.prep-clock {
  width: min(265px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
  container-type: inline-size;
}

.prep-clock .clock-face {
  border-width: 9px;
  --ring-width: 5px;
}

.prep-clock .clock-number.is-highlighted {
  z-index: 4;
  border-radius: 50%;
  color: var(--white);
  background: var(--coral);
  box-shadow: 0 0 0 3px var(--ink);
  transform: translate(-50%, -50%) scale(1.18);
}

.number-only-clock .clock-hand {
  display: none;
}

.number-only-clock .clock-center {
  width: 16px;
  height: 16px;
}

.minute-pointer-clock .clock-hand.hour {
  opacity: .35;
}

.minute-count-clock .clock-hand.hour {
  display: none;
}

.prep-fact {
  display: grid;
  gap: 6px;
  width: min(330px, 100%);
  margin: 0 auto;
  padding: 13px 15px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 4px 5px 0 var(--ink);
}

.prep-fact span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.prep-fact strong {
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
}

.prep-fact small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.number-focus-card>span,
.number-minute-card>span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.number-focus-card>strong,
.number-minute-card>strong {
  display: block;
  padding-block: .04em;
  font-family: var(--display);
  font-size: clamp(50px, 7vw, 86px);
  line-height: 1.08;
}

.number-minute-card {
  align-content: center;
  gap: 12px;
  background: var(--teal-pale);
}

.number-minute-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.number-answer-grid .answer-button {
  font-size: 24px;
}

.number-jump-board {
  gap: 14px;
  background: var(--teal-pale);
}

.jump-task {
  display: grid;
  gap: 5px;
  width: min(330px, 100%);
  padding: 14px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 4px 5px 0 var(--ink);
}

.jump-task span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.jump-task strong {
  display: block;
  padding-block: 2px;
  font-family: var(--display);
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.08;
}

.number-order-intro {
  margin-bottom: 20px;
  text-align: center;
}

.number-order-intro .eyebrow {
  margin-bottom: 5px;
}

.number-order-intro h4 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(25px, 3vw, 37px);
}

.sort-number-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: min(960px, 100%);
  margin: 0 auto;
}

.sort-number-card {
  position: relative;
  min-width: 0;
  padding: 34px 14px 14px;
  border: 2px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  cursor: grab;
  text-align: center;
  transition: border-color .15s, transform .15s, opacity .15s;
}

.sort-number-card:hover {
  border-color: var(--teal);
  transform: translateY(-3px);
}

.sort-number-card.is-dragging {
  opacity: .35;
}

.sort-number-card.is-wrong {
  border-color: var(--coral);
  background: var(--coral-pale);
}

.sort-number-card.is-correct {
  border-color: var(--teal-dark);
  background: var(--teal-pale);
}

.sort-mini-clock {
  display: block;
  width: min(150px, 100%);
  aspect-ratio: 1;
  margin: 0 auto 10px;
  container-type: inline-size;
  pointer-events: none;
}

.sort-mini-clock .clock-face {
  border-width: 8px;
  --ring-width: 4px;
}

.sort-mini-clock .clock-number {
  width: 22px;
  height: 22px;
  font-size: clamp(11px, 4.1cqw, 16px);
}

.sort-mini-clock .clock-hand.hour {
  width: 6px;
  height: 22%;
  margin-left: -3px;
  border-radius: 20px 20px 4px 4px;
}

.sort-mini-clock .clock-hand.minute {
  width: 4px;
  height: 34%;
  margin-left: -2px;
  border-radius: 18px 18px 4px 4px;
}

.sort-mini-clock .clock-hand.minute::after {
  display: none;
}

.sort-mini-clock .clock-center {
  width: 13px;
  height: 13px;
  border-width: 3px;
}

.sort-position {
  position: absolute;
  top: 8px;
  left: 10px;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--ink);
  font-size: 11px;
}

.sort-number-card strong {
  display: block;
  padding-block: .08em;
  font-family: var(--display);
  font-size: clamp(34px, 4.1vw, 52px);
  line-height: 1.08;
}

.sort-level-label {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sort-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 12px;
}

.sort-card-actions button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: var(--cream);
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.sort-card-actions button:hover {
  background: var(--yellow-pale);
}

.sequence-board {
  display: grid;
  min-height: 275px;
  align-content: center;
  gap: 18px;
  padding: 30px;
  border-radius: 27px;
  background: var(--yellow-pale);
  text-align: center;
}

.sequence-board>div {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.sequence-board strong {
  padding: 11px 13px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--white);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(17px, 2.1vw, 25px);
}

.sequence-board i {
  color: var(--teal-dark);
  font-size: 22px;
  font-style: normal;
  font-weight: 900;
}

.sequence-board .sequence-missing {
  min-width: 72px;
  color: var(--coral);
}

.time-machine-board {
  position: relative;
  display: grid;
  min-height: 320px;
  place-items: center;
  padding: 24px;
  border-radius: 27px;
  background: var(--teal-pale);
}

.time-machine-board .game-clock {
  width: min(270px, 100%);
}

.time-machine-board>span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 9px 13px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 3px 4px 0 var(--ink);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 900;
}

.drag-clock-stage {
  display: grid;
  min-height: 340px;
  place-items: center;
  padding: 25px;
  border-radius: 27px;
  background: var(--teal-pale);
}

.drag-clock-stage p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.drag-hand-clock .clock-hand,
.interactive-clock[data-interactive] .clock-hand,
.hero-clock .clock-hand {
  z-index: 5;
  cursor: grab;
  touch-action: none;
}

.drag-hand-clock .clock-hand:active,
.interactive-clock[data-interactive] .clock-hand:active,
.hero-clock .clock-hand:active {
  cursor: grabbing;
}

.drag-hand-clock .clock-hand:focus-visible,
.interactive-clock[data-interactive] .clock-hand:focus-visible,
.hero-clock .clock-hand:focus-visible {
  outline: 4px solid var(--yellow);
  outline-offset: 3px;
}

.drag-hand-clock .clock-hand.hour,
.interactive-clock[data-interactive] .clock-hand.hour,
.hero-clock .clock-hand.hour {
  width: 12px;
  margin-left: -6px;
}

.drag-hand-clock .clock-hand.minute,
.interactive-clock[data-interactive] .clock-hand.minute,
.hero-clock .clock-hand.minute {
  width: 10px;
  margin-left: -5px;
}

.drag-hand-clock.is-dragging .clock-hand,
.interactive-clock[data-interactive].is-dragging .clock-hand,
.hero-clock.is-dragging .clock-hand {
  transition: none;
}

.drag-hand-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 16px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.drag-hand-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.drag-hand-legend i {
  display: inline-block;
  width: 22px;
  height: 5px;
  border-radius: 8px;
  background: var(--ink);
}

.drag-hand-legend .minute-swatch {
  height: 3px;
  background: var(--coral);
}

.move-time-start {
  position: relative;
  display: grid;
  min-height: 340px;
  place-items: center;
  padding: 28px 24px 48px;
  border-radius: 27px;
  background: var(--teal-pale);
}

.move-time-start>p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.move-time-start .game-clock {
  width: min(255px, 100%);
}

.move-time-change {
  position: absolute;
  right: 16px;
  bottom: 14px;
  padding: 9px 13px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 3px 4px 0 var(--ink);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 900;
}

.time-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.time-choice {
  display: grid;
  min-height: 145px;
  place-items: center;
  padding: 10px;
  border: 2px solid var(--line);
  border-radius: 17px;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .15s;
}

.time-choice:hover {
  border-color: var(--teal);
  background: var(--teal-pale);
  transform: translateY(-2px);
}

.time-choice.is-wrong {
  border-color: var(--coral);
  background: var(--coral-pale);
}

.time-choice.is-correct {
  border-color: var(--teal-dark);
  background: var(--teal-pale);
}

.move-time-choice-clock,
.connector-clock {
  display: block;
  container-type: inline-size;
  pointer-events: none;
}

.move-time-choice-clock {
  width: 112px;
  height: 112px;
}

.connector-clock {
  width: 120px;
  height: 120px;
}

.move-time-choice-clock .clock-face,
.connector-clock .clock-face {
  border-width: 6px;
  --ring-width: 3px;
}

.move-time-choice-clock .clock-number,
.connector-clock .clock-number {
  width: 16px;
  height: 16px;
  font-size: 10px;
}

.move-time-choice-clock .clock-hand.hour,
.connector-clock .clock-hand.hour {
  width: 4px;
  margin-left: -2px;
}

.move-time-choice-clock .clock-hand.minute,
.connector-clock .clock-hand.minute {
  width: 3px;
  margin-left: -1.5px;
}

.move-time-choice-clock .clock-center,
.connector-clock .clock-center {
  width: 11px;
  height: 11px;
  border-width: 2px;
}

.connect-game-intro,
.order-game-intro {
  margin-bottom: 20px;
  text-align: center;
}

.connect-game-intro .eyebrow,
.order-game-intro .eyebrow {
  margin-bottom: 5px;
}

.connect-game-intro h4,
.order-game-intro h4 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(25px, 3vw, 37px);
}

.connect-board {
  position: relative;
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(130px, 1fr);
  gap: clamp(70px, 15vw, 190px);
  width: min(850px, 100%);
  margin: 0 auto;
}

.connection-lines {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.connection-line {
  fill: none;
  stroke: var(--teal-dark);
  stroke-width: 4;
  stroke-linecap: round;
}

.connection-line.is-preview {
  stroke: var(--coral);
  stroke-dasharray: 7 6;
}

.connection-line.is-wrong {
  stroke: var(--coral);
  stroke-dasharray: 8 7;
}

.connection-line.is-correct {
  stroke: var(--teal);
  stroke-width: 5;
}

.connector-column {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 10px;
}

.connector-column>span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}

.time-connector {
  position: relative;
  display: grid;
  min-height: 132px;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: var(--white);
  cursor: grab;
  touch-action: none;
  transition: border-color .15s, background .15s, transform .15s;
}

.time-connector:hover,
.time-connector.is-selected {
  border-color: var(--teal);
  background: var(--teal-pale);
  transform: translateY(-2px);
}

.time-connector.is-linked {
  border-color: var(--ink);
}

.time-connector.is-dragging {
  opacity: .45;
}

.time-connector>i {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 2px var(--ink);
  transform: translateY(-50%);
}

.digital-connector>i {
  right: -8px;
}

.analog-connector>i {
  left: -8px;
}

.digital-connector b {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(18px, 2.3vw, 27px);
}

.connect-check,
.order-check {
  display: block;
  width: min(520px, 100%);
  margin: 22px auto 0;
}

.connect-feedback,
.order-feedback {
  text-align: center;
}

.order-scale {
  display: flex;
  width: min(820px, 100%);
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0 auto 13px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.order-scale i {
  flex: 1;
  color: var(--coral);
  font-size: 22px;
  font-style: normal;
  text-align: center;
}

.clock-order-list {
  display: grid;
  grid-template-columns: repeat(var(--clock-count), minmax(0, 1fr));
  gap: 13px;
  width: min(1000px, 100%);
  margin: 0 auto;
}

.clock-order-card {
  position: relative;
  min-width: 0;
  padding: 24px 12px 12px;
  border: 2px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  cursor: grab;
  transition: border-color .15s, transform .15s, opacity .15s;
}

.clock-order-card:hover {
  border-color: var(--teal);
  transform: translateY(-3px);
}

.clock-order-card.is-dragging {
  opacity: .35;
}

.clock-order-card.is-dropped {
  animation: order-card-drop .28s ease-out;
}

.clock-order-card.is-wrong {
  border-color: var(--coral);
  background: var(--coral-pale);
}

.clock-order-card.is-correct {
  border-color: var(--teal-dark);
  background: var(--teal-pale);
}

.order-position {
  position: absolute;
  top: 8px;
  left: 10px;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--ink);
  font-size: 11px;
}

.order-clock {
  width: min(170px, 100%);
  aspect-ratio: 1;
  margin: auto;
  container-type: inline-size;
  pointer-events: none;
}

.order-clock .clock-face {
  border-width: 7px;
  --ring-width: 4px;
}

.order-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 9px;
}

.order-card-actions button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: var(--cream);
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.order-card-actions button:hover {
  background: var(--yellow-pale);
}

.duration-game-body,
.detective-game-body {
  align-items: stretch;
}

.duration-clocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  align-content: center;
  min-height: 330px;
  padding: 22px;
  border-radius: 27px;
  background: var(--teal-pale);
}

.duration-clock-card {
  display: grid;
  min-width: 0;
  place-items: center;
  gap: 9px;
  padding: 18px 10px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--white);
  text-align: center;
}

.duration-clock-card>span,
.detective-target span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.duration-clock-card>b {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 17px;
}

.duration-clock {
  width: min(150px, 100%);
  aspect-ratio: 1;
  container-type: inline-size;
  pointer-events: none;
}

.duration-clock .clock-face {
  border-width: 7px;
  --ring-width: 4px;
}

.duration-clock .clock-number {
  width: 17px;
  height: 17px;
  font-size: 10px;
}

.duration-clock .clock-hand.hour {
  width: 4px;
  margin-left: -2px;
}

.duration-clock .clock-hand.minute {
  width: 3px;
  margin-left: -1.5px;
}

.duration-clock .clock-center {
  width: 11px;
  height: 11px;
  border-width: 2px;
}

.detective-board {
  display: grid;
  min-height: 340px;
  align-content: center;
  gap: 16px;
  padding: 24px;
  border-radius: 27px;
  background: var(--yellow-pale);
}

.detective-target {
  display: grid;
  gap: 6px;
  width: min(310px, 100%);
  margin: 0 auto;
  padding: 14px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 4px 5px 0 var(--ink);
  text-align: center;
}

.detective-target strong {
  display: block;
  padding-block: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(30px, 4vw, 45px);
  line-height: 1.08;
}

.detective-clock-wrap {
  display: grid;
  place-items: center;
}

.detective-clock-wrap .game-clock {
  width: min(245px, 100%);
}

.detective-answer-grid .answer-button {
  font-size: 16px;
}

@keyframes order-card-drop {
  from {
    opacity: .55;
    transform: translateY(-10px) scale(.96);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.game-complete {
  display: grid;
  min-height: 400px;
  place-items: center;
  text-align: center;
}

.complete-badge {
  display: grid;
  width: 95px;
  height: 95px;
  margin: 0 auto 23px;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 6px 7px 0 var(--ink);
  font-size: 40px;
}

.game-complete p {
  color: var(--muted);
}

.tool-fullscreen-shell:fullscreen .tool-stage,
.tool-fullscreen-shell:-webkit-full-screen .tool-stage,
.tool-fullscreen-shell.is-fullscreen-fallback .tool-stage,
.game-fullscreen-shell:fullscreen .game-arena,
.game-fullscreen-shell:-webkit-full-screen .game-arena,
.game-fullscreen-shell.is-fullscreen-fallback .game-arena {
  display: flex;
  flex-direction: column;
}

.tool-fullscreen-shell:fullscreen .tool-panel,
.tool-fullscreen-shell:-webkit-full-screen .tool-panel,
.tool-fullscreen-shell.is-fullscreen-fallback .tool-panel {
  flex: 1;
  min-height: 0;
}

.tool-fullscreen-shell:fullscreen .timeline-tool.is-active,
.tool-fullscreen-shell:-webkit-full-screen .timeline-tool.is-active,
.tool-fullscreen-shell.is-fullscreen-fallback .timeline-tool.is-active,
.tool-fullscreen-shell:fullscreen .timer-tool.is-active,
.tool-fullscreen-shell:-webkit-full-screen .timer-tool.is-active,
.tool-fullscreen-shell.is-fullscreen-fallback .timer-tool.is-active {
  display: flex;
  flex-direction: column;
}

.tool-fullscreen-shell:fullscreen .clock-tool.is-active,
.tool-fullscreen-shell:-webkit-full-screen .clock-tool.is-active,
.tool-fullscreen-shell.is-fullscreen-fallback .clock-tool.is-active {
  min-height: 0;
  grid-template-columns: minmax(520px, 1.12fr) minmax(360px, .88fr);
}

.tool-fullscreen-shell:fullscreen .tool-display,
.tool-fullscreen-shell:-webkit-full-screen .tool-display,
.tool-fullscreen-shell.is-fullscreen-fallback .tool-display {
  min-height: 0;
  padding: 48px;
}

.tool-fullscreen-shell:fullscreen .tool-controls,
.tool-fullscreen-shell:-webkit-full-screen .tool-controls,
.tool-fullscreen-shell.is-fullscreen-fallback .tool-controls {
  display: flex;
  justify-content: center;
  flex-direction: column;
  min-height: 0;
  padding: 46px 54px;
}

.tool-fullscreen-shell:fullscreen .tool-controls h3,
.tool-fullscreen-shell:-webkit-full-screen .tool-controls h3,
.tool-fullscreen-shell.is-fullscreen-fallback .tool-controls h3,
.tool-fullscreen-shell:fullscreen .timeline-workspace h3,
.tool-fullscreen-shell:-webkit-full-screen .timeline-workspace h3,
.tool-fullscreen-shell.is-fullscreen-fallback .timeline-workspace h3,
.tool-fullscreen-shell:fullscreen .timer-workspace h3,
.tool-fullscreen-shell:-webkit-full-screen .timer-workspace h3,
.tool-fullscreen-shell.is-fullscreen-fallback .timer-workspace h3 {
  font-size: 44px;
}

.tool-fullscreen-shell:fullscreen .interactive-clock,
.tool-fullscreen-shell:-webkit-full-screen .interactive-clock,
.tool-fullscreen-shell.is-fullscreen-fallback .interactive-clock {
  width: min(680px, 74vh, 100%);
}

.tool-fullscreen-shell:fullscreen .digital-readout,
.tool-fullscreen-shell:-webkit-full-screen .digital-readout,
.tool-fullscreen-shell.is-fullscreen-fallback .digital-readout {
  font-size: 34px;
}

.tool-fullscreen-shell:fullscreen .timeline-workspace,
.tool-fullscreen-shell:-webkit-full-screen .timeline-workspace,
.tool-fullscreen-shell.is-fullscreen-fallback .timeline-workspace,
.tool-fullscreen-shell:fullscreen .timer-workspace,
.tool-fullscreen-shell:-webkit-full-screen .timer-workspace,
.tool-fullscreen-shell.is-fullscreen-fallback .timer-workspace {
  flex: 1;
  min-height: 0;
  padding: 64px 8%;
}

.tool-fullscreen-shell:fullscreen .timeline-times,
.tool-fullscreen-shell:-webkit-full-screen .timeline-times,
.tool-fullscreen-shell.is-fullscreen-fallback .timeline-times {
  width: min(920px, 100%);
}

.tool-fullscreen-shell:fullscreen .time-line,
.tool-fullscreen-shell:-webkit-full-screen .time-line,
.tool-fullscreen-shell.is-fullscreen-fallback .time-line {
  width: min(1120px, 100%);
  height: 156px;
}

.tool-fullscreen-shell:fullscreen .elapsed-result strong,
.tool-fullscreen-shell:-webkit-full-screen .elapsed-result strong,
.tool-fullscreen-shell.is-fullscreen-fallback .elapsed-result strong {
  font-size: 60px;
}

.tool-fullscreen-shell:fullscreen .timer-ring,
.tool-fullscreen-shell:-webkit-full-screen .timer-ring,
.tool-fullscreen-shell.is-fullscreen-fallback .timer-ring {
  width: min(430px, 58vh);
  height: min(430px, 58vh);
}

.tool-fullscreen-shell:fullscreen .timer-ring span,
.tool-fullscreen-shell:-webkit-full-screen .timer-ring span,
.tool-fullscreen-shell.is-fullscreen-fallback .timer-ring span {
  font-size: 62px;
}

.tool-fullscreen-shell:fullscreen .timer-adjust,
.tool-fullscreen-shell:-webkit-full-screen .timer-adjust,
.tool-fullscreen-shell.is-fullscreen-fallback .timer-adjust {
  width: min(620px, 100%);
}

.tool-fullscreen-shell:fullscreen .timer-adjust button,
.tool-fullscreen-shell:-webkit-full-screen .timer-adjust button,
.tool-fullscreen-shell.is-fullscreen-fallback .timer-adjust button {
  min-height: 54px;
  font-size: 14px;
}

.game-fullscreen-shell:fullscreen .game-arena,
.game-fullscreen-shell:-webkit-full-screen .game-arena,
.game-fullscreen-shell.is-fullscreen-fallback .game-arena {
  padding: 44px 58px;
}

.game-fullscreen-shell:fullscreen .game-head,
.game-fullscreen-shell:-webkit-full-screen .game-head,
.game-fullscreen-shell.is-fullscreen-fallback .game-head {
  flex: 0 0 auto;
  margin-bottom: 18px;
}

.game-fullscreen-shell:fullscreen .game-head h3,
.game-fullscreen-shell:-webkit-full-screen .game-head h3,
.game-fullscreen-shell.is-fullscreen-fallback .game-head h3 {
  font-size: 30px;
}

.game-fullscreen-shell:fullscreen .game-stat,
.game-fullscreen-shell:-webkit-full-screen .game-stat,
.game-fullscreen-shell.is-fullscreen-fallback .game-stat {
  min-width: 86px;
  padding: 10px 15px;
}

.game-fullscreen-shell:fullscreen .game-stat b,
.game-fullscreen-shell:-webkit-full-screen .game-stat b,
.game-fullscreen-shell.is-fullscreen-fallback .game-stat b {
  font-size: 26px;
}

.game-fullscreen-shell:fullscreen .game-body,
.game-fullscreen-shell:-webkit-full-screen .game-body,
.game-fullscreen-shell.is-fullscreen-fallback .game-body {
  flex: 1;
  min-height: 0;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  gap: 74px;
  width: min(1680px, 100%);
  margin: 0 auto;
}

.game-fullscreen-shell:fullscreen .game-question,
.game-fullscreen-shell:-webkit-full-screen .game-question,
.game-fullscreen-shell.is-fullscreen-fallback .game-question {
  width: 100%;
  max-width: 760px;
}

.game-fullscreen-shell:fullscreen .game-question h4,
.game-fullscreen-shell:-webkit-full-screen .game-question h4,
.game-fullscreen-shell.is-fullscreen-fallback .game-question h4,
.game-fullscreen-shell:fullscreen .number-order-intro h4,
.game-fullscreen-shell:-webkit-full-screen .number-order-intro h4,
.game-fullscreen-shell.is-fullscreen-fallback .number-order-intro h4,
.game-fullscreen-shell:fullscreen .connect-game-intro h4,
.game-fullscreen-shell:-webkit-full-screen .connect-game-intro h4,
.game-fullscreen-shell.is-fullscreen-fallback .connect-game-intro h4,
.game-fullscreen-shell:fullscreen .order-game-intro h4,
.game-fullscreen-shell:-webkit-full-screen .order-game-intro h4,
.game-fullscreen-shell.is-fullscreen-fallback .order-game-intro h4 {
  font-size: 54px;
}

.game-fullscreen-shell:fullscreen .answer-grid,
.game-fullscreen-shell:-webkit-full-screen .answer-grid,
.game-fullscreen-shell.is-fullscreen-fallback .answer-grid,
.game-fullscreen-shell:fullscreen .time-choice-grid,
.game-fullscreen-shell:-webkit-full-screen .time-choice-grid,
.game-fullscreen-shell.is-fullscreen-fallback .time-choice-grid {
  gap: 16px;
}

.game-fullscreen-shell:fullscreen .answer-button,
.game-fullscreen-shell:-webkit-full-screen .answer-button,
.game-fullscreen-shell.is-fullscreen-fallback .answer-button {
  min-height: 78px;
  font-size: 24px;
}

.game-fullscreen-shell:fullscreen .game-feedback,
.game-fullscreen-shell:-webkit-full-screen .game-feedback,
.game-fullscreen-shell.is-fullscreen-fallback .game-feedback {
  min-height: 32px;
  font-size: 18px;
}

.game-fullscreen-shell:fullscreen .game-clock,
.game-fullscreen-shell:-webkit-full-screen .game-clock,
.game-fullscreen-shell.is-fullscreen-fallback .game-clock {
  width: min(480px, 52vh, 100%);
}

.game-fullscreen-shell:fullscreen .set-clock-display,
.game-fullscreen-shell:-webkit-full-screen .set-clock-display,
.game-fullscreen-shell.is-fullscreen-fallback .set-clock-display,
.game-fullscreen-shell:fullscreen .phrase-card,
.game-fullscreen-shell:-webkit-full-screen .phrase-card,
.game-fullscreen-shell.is-fullscreen-fallback .phrase-card,
.game-fullscreen-shell:fullscreen .sequence-board,
.game-fullscreen-shell:-webkit-full-screen .sequence-board,
.game-fullscreen-shell.is-fullscreen-fallback .sequence-board,
.game-fullscreen-shell:fullscreen .time-machine-board,
.game-fullscreen-shell:-webkit-full-screen .time-machine-board,
.game-fullscreen-shell.is-fullscreen-fallback .time-machine-board,
.game-fullscreen-shell:fullscreen .drag-clock-stage,
.game-fullscreen-shell:-webkit-full-screen .drag-clock-stage,
.game-fullscreen-shell.is-fullscreen-fallback .drag-clock-stage,
.game-fullscreen-shell:fullscreen .move-time-start,
.game-fullscreen-shell:-webkit-full-screen .move-time-start,
.game-fullscreen-shell.is-fullscreen-fallback .move-time-start,
.game-fullscreen-shell:fullscreen .number-focus-card,
.game-fullscreen-shell:-webkit-full-screen .number-focus-card,
.game-fullscreen-shell.is-fullscreen-fallback .number-focus-card,
.game-fullscreen-shell:fullscreen .number-minute-card,
.game-fullscreen-shell:-webkit-full-screen .number-minute-card,
.game-fullscreen-shell.is-fullscreen-fallback .number-minute-card,
.game-fullscreen-shell:fullscreen .number-jump-board,
.game-fullscreen-shell:-webkit-full-screen .number-jump-board,
.game-fullscreen-shell.is-fullscreen-fallback .number-jump-board,
.game-fullscreen-shell:fullscreen .duration-clocks,
.game-fullscreen-shell:-webkit-full-screen .duration-clocks,
.game-fullscreen-shell.is-fullscreen-fallback .duration-clocks,
.game-fullscreen-shell:fullscreen .detective-board,
.game-fullscreen-shell:-webkit-full-screen .detective-board,
.game-fullscreen-shell.is-fullscreen-fallback .detective-board {
  min-height: min(640px, 70vh);
  padding: 42px;
}

.game-fullscreen-shell:fullscreen .number-prep-body,
.game-fullscreen-shell:-webkit-full-screen .number-prep-body,
.game-fullscreen-shell.is-fullscreen-fallback .number-prep-body,
.game-fullscreen-shell:fullscreen .duration-game-body,
.game-fullscreen-shell:-webkit-full-screen .duration-game-body,
.game-fullscreen-shell.is-fullscreen-fallback .duration-game-body,
.game-fullscreen-shell:fullscreen .detective-game-body,
.game-fullscreen-shell:-webkit-full-screen .detective-game-body,
.game-fullscreen-shell.is-fullscreen-fallback .detective-game-body {
  align-items: center;
}

.game-fullscreen-shell:fullscreen .prep-clock,
.game-fullscreen-shell:-webkit-full-screen .prep-clock,
.game-fullscreen-shell.is-fullscreen-fallback .prep-clock {
  width: min(460px, 48vh, 100%);
}

.game-fullscreen-shell:fullscreen .prep-fact,
.game-fullscreen-shell:-webkit-full-screen .prep-fact,
.game-fullscreen-shell.is-fullscreen-fallback .prep-fact,
.game-fullscreen-shell:fullscreen .jump-task,
.game-fullscreen-shell:-webkit-full-screen .jump-task,
.game-fullscreen-shell.is-fullscreen-fallback .jump-task {
  width: min(540px, 100%);
  padding: 18px 22px;
}

.game-fullscreen-shell:fullscreen .prep-fact strong,
.game-fullscreen-shell:-webkit-full-screen .prep-fact strong,
.game-fullscreen-shell.is-fullscreen-fallback .prep-fact strong,
.game-fullscreen-shell:fullscreen .jump-task strong,
.game-fullscreen-shell:-webkit-full-screen .jump-task strong,
.game-fullscreen-shell.is-fullscreen-fallback .jump-task strong {
  font-size: 48px;
}

.game-fullscreen-shell:fullscreen .number-focus-card>strong,
.game-fullscreen-shell:-webkit-full-screen .number-focus-card>strong,
.game-fullscreen-shell.is-fullscreen-fallback .number-focus-card>strong,
.game-fullscreen-shell:fullscreen .number-minute-card>strong,
.game-fullscreen-shell:-webkit-full-screen .number-minute-card>strong,
.game-fullscreen-shell.is-fullscreen-fallback .number-minute-card>strong {
  font-size: 96px;
}

.game-fullscreen-shell:fullscreen .number-order-intro,
.game-fullscreen-shell:-webkit-full-screen .number-order-intro,
.game-fullscreen-shell.is-fullscreen-fallback .number-order-intro,
.game-fullscreen-shell:fullscreen .connect-game-intro,
.game-fullscreen-shell:-webkit-full-screen .connect-game-intro,
.game-fullscreen-shell.is-fullscreen-fallback .connect-game-intro,
.game-fullscreen-shell:fullscreen .order-game-intro,
.game-fullscreen-shell:-webkit-full-screen .order-game-intro,
.game-fullscreen-shell.is-fullscreen-fallback .order-game-intro {
  margin-top: auto;
}

.game-fullscreen-shell:fullscreen .number-order-intro~.game-feedback,
.game-fullscreen-shell:-webkit-full-screen .number-order-intro~.game-feedback,
.game-fullscreen-shell.is-fullscreen-fallback .number-order-intro~.game-feedback,
.game-fullscreen-shell:fullscreen .connect-game-intro~.game-feedback,
.game-fullscreen-shell:-webkit-full-screen .connect-game-intro~.game-feedback,
.game-fullscreen-shell.is-fullscreen-fallback .connect-game-intro~.game-feedback,
.game-fullscreen-shell:fullscreen .order-game-intro~.game-feedback,
.game-fullscreen-shell:-webkit-full-screen .order-game-intro~.game-feedback,
.game-fullscreen-shell.is-fullscreen-fallback .order-game-intro~.game-feedback {
  margin-bottom: auto;
}

.game-fullscreen-shell:fullscreen .sort-number-list,
.game-fullscreen-shell:-webkit-full-screen .sort-number-list,
.game-fullscreen-shell.is-fullscreen-fallback .sort-number-list {
  width: min(1440px, 100%);
  gap: 24px;
}

.game-fullscreen-shell:fullscreen .sort-number-card,
.game-fullscreen-shell:-webkit-full-screen .sort-number-card,
.game-fullscreen-shell.is-fullscreen-fallback .sort-number-card {
  padding: 44px 20px 20px;
}

.game-fullscreen-shell:fullscreen .sort-mini-clock,
.game-fullscreen-shell:-webkit-full-screen .sort-mini-clock,
.game-fullscreen-shell.is-fullscreen-fallback .sort-mini-clock {
  width: min(230px, 100%);
}

.game-fullscreen-shell:fullscreen .sort-number-card strong,
.game-fullscreen-shell:-webkit-full-screen .sort-number-card strong,
.game-fullscreen-shell.is-fullscreen-fallback .sort-number-card strong {
  font-size: 70px;
}

.game-fullscreen-shell:fullscreen .sort-card-actions button,
.game-fullscreen-shell:-webkit-full-screen .sort-card-actions button,
.game-fullscreen-shell.is-fullscreen-fallback .sort-card-actions button,
.game-fullscreen-shell:fullscreen .order-card-actions button,
.game-fullscreen-shell:-webkit-full-screen .order-card-actions button,
.game-fullscreen-shell.is-fullscreen-fallback .order-card-actions button {
  min-height: 44px;
  font-size: 23px;
}

.game-fullscreen-shell:fullscreen .clock-order-list,
.game-fullscreen-shell:-webkit-full-screen .clock-order-list,
.game-fullscreen-shell.is-fullscreen-fallback .clock-order-list {
  width: min(1440px, 100%);
  gap: 24px;
}

.game-fullscreen-shell:fullscreen .clock-order-card,
.game-fullscreen-shell:-webkit-full-screen .clock-order-card,
.game-fullscreen-shell.is-fullscreen-fallback .clock-order-card {
  padding: 34px 18px 18px;
}

.game-fullscreen-shell:fullscreen .order-clock,
.game-fullscreen-shell:-webkit-full-screen .order-clock,
.game-fullscreen-shell.is-fullscreen-fallback .order-clock {
  width: min(250px, 100%);
}

.game-fullscreen-shell:fullscreen .connect-board,
.game-fullscreen-shell:-webkit-full-screen .connect-board,
.game-fullscreen-shell.is-fullscreen-fallback .connect-board {
  width: min(1320px, 100%);
  gap: 220px;
}

.game-fullscreen-shell:fullscreen .connector-column,
.game-fullscreen-shell:-webkit-full-screen .connector-column,
.game-fullscreen-shell.is-fullscreen-fallback .connector-column {
  gap: 14px;
}

.game-fullscreen-shell:fullscreen .time-connector,
.game-fullscreen-shell:-webkit-full-screen .time-connector,
.game-fullscreen-shell.is-fullscreen-fallback .time-connector {
  min-height: 172px;
}

.game-fullscreen-shell:fullscreen .connector-clock,
.game-fullscreen-shell:-webkit-full-screen .connector-clock,
.game-fullscreen-shell.is-fullscreen-fallback .connector-clock {
  width: 172px;
  height: 172px;
}

.game-fullscreen-shell:fullscreen .digital-connector b,
.game-fullscreen-shell:-webkit-full-screen .digital-connector b,
.game-fullscreen-shell.is-fullscreen-fallback .digital-connector b {
  font-size: 38px;
}

.game-fullscreen-shell:fullscreen .connect-check,
.game-fullscreen-shell:-webkit-full-screen .connect-check,
.game-fullscreen-shell.is-fullscreen-fallback .connect-check,
.game-fullscreen-shell:fullscreen .order-check,
.game-fullscreen-shell:-webkit-full-screen .order-check,
.game-fullscreen-shell.is-fullscreen-fallback .order-check,
.game-fullscreen-shell:fullscreen .game-check-button,
.game-fullscreen-shell:-webkit-full-screen .game-check-button,
.game-fullscreen-shell.is-fullscreen-fallback .game-check-button {
  max-width: 720px;
  min-height: 70px;
  font-size: 19px;
}

.game-fullscreen-shell:fullscreen .duration-clock,
.game-fullscreen-shell:-webkit-full-screen .duration-clock,
.game-fullscreen-shell.is-fullscreen-fallback .duration-clock {
  width: min(240px, 100%);
}

.game-fullscreen-shell:fullscreen .duration-clock-card>b,
.game-fullscreen-shell:-webkit-full-screen .duration-clock-card>b,
.game-fullscreen-shell.is-fullscreen-fallback .duration-clock-card>b {
  font-size: 24px;
}

.game-fullscreen-shell:fullscreen .detective-clock-wrap .game-clock,
.game-fullscreen-shell:-webkit-full-screen .detective-clock-wrap .game-clock,
.game-fullscreen-shell.is-fullscreen-fallback .detective-clock-wrap .game-clock {
  width: min(420px, 48vh, 100%);
}

.game-fullscreen-shell:fullscreen .detective-target,
.game-fullscreen-shell:-webkit-full-screen .detective-target,
.game-fullscreen-shell.is-fullscreen-fallback .detective-target {
  width: min(460px, 100%);
}

.game-fullscreen-shell:fullscreen .detective-target strong,
.game-fullscreen-shell:-webkit-full-screen .detective-target strong,
.game-fullscreen-shell.is-fullscreen-fallback .detective-target strong {
  font-size: 58px;
}

.game-fullscreen-shell:fullscreen .game-complete,
.game-fullscreen-shell:-webkit-full-screen .game-complete,
.game-fullscreen-shell.is-fullscreen-fallback .game-complete {
  flex: 1;
  min-height: 0;
}

.section-materials {
  background: var(--paper);
}

.material-generator {
  display: grid;
  grid-template-columns: minmax(250px, .72fr) 1.28fr;
  align-items: center;
  gap: 35px;
  margin-bottom: 32px;
  padding: 25px 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--teal-pale);
}

.material-generator .tool-kicker {
  margin-bottom: 5px;
}

.material-generator h3 {
  font-size: 24px;
}

.material-generator p:not(.tool-kicker) {
  max-width: 520px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.material-level-options {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}

.material-generator-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(275px, auto);
  align-items: start;
  gap: 18px;
}

.material-option-picker {
  min-width: 0;
}

.material-option-picker .material-level-options {
  justify-content: flex-start;
}

.material-level-option {
  background: rgba(255, 255, 255, .68);
}

.material-level-option.is-active {
  border-color: var(--ink);
  color: var(--white);
  background: var(--ink);
}

.card-grid {
  display: grid;
  gap: 20px;
}

.materials-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.material-card {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform .2s, box-shadow .2s;
}

.material-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.material-preview {
  position: relative;
  display: grid;
  min-height: 210px;
  place-items: center;
  overflow: hidden;
}

.material-preview::before {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  border: 2px dashed rgba(23, 49, 59, .12);
  border-radius: 50%;
}

.material-card:nth-child(4n+1) .material-preview {
  background: var(--teal-pale);
}

.material-card:nth-child(4n+2) .material-preview {
  background: var(--yellow-pale);
}

.material-card:nth-child(4n+3) .material-preview {
  background: var(--coral-pale);
}

.material-card:nth-child(4n) .material-preview {
  background: var(--blue-pale);
}

.paper-preview {
  position: relative;
  display: grid;
  width: 124px;
  height: 158px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--paper);
  box-shadow: 7px 8px 0 rgba(23, 49, 59, .15);
  transform: rotate(-3deg);
}

.paper-preview::after {
  content: "";
  position: absolute;
  right: 15px;
  bottom: 18px;
  left: 15px;
  height: 3px;
  box-shadow: 0 -10px 0 rgba(23, 49, 59, .18), 0 -20px 0 rgba(23, 49, 59, .18);
  background: rgba(23, 49, 59, .18);
}

.preview-clock {
  display: grid;
  width: 75px;
  height: 75px;
  place-items: center;
  border: 4px solid var(--ink);
  border-radius: 50%;
  color: #b84f43;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 900;
}

.material-badge {
  position: absolute;
  z-index: 2;
  top: 13px;
  right: 13px;
  padding: 4px 9px;
  border-radius: 20px;
  color: var(--ink);
  background: var(--white);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.material-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.material-content h3 {
  font-size: 20px;
}

.material-content p {
  min-height: 64px;
  margin: 11px 0 17px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.material-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.material-meta span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.material-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.material-generate {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 11px;
  border: 0;
  border-radius: 10px;
  color: var(--white);
  background: var(--ink);
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.material-generate:hover {
  background: var(--teal-dark);
}

.material-generate span {
  font-size: 16px;
}

.download-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.download-link:hover {
  text-decoration: underline;
}

.material-dialog {
  width: min(1030px, calc(100% - 28px));
  height: min(900px, calc(100dvh - 28px));
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 20px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 10px 12px 0 var(--ink);
  overflow: hidden;
}

.material-dialog::backdrop {
  background: rgba(11, 32, 40, .72);
  backdrop-filter: blur(4px);
}

.material-dialog-bar {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 17px 12px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.material-dialog-bar>div:first-child {
  display: grid;
  gap: 3px;
}

.material-dialog-bar span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.material-dialog-bar b {
  font-family: var(--display);
  font-size: 20px;
}

.material-dialog-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.material-dialog-actions .button {
  min-height: 42px;
  padding: 10px 15px;
  font-size: 11px;
}

.material-dialog-close {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: var(--cream);
  font-size: 27px;
  cursor: pointer;
}

.material-dialog iframe {
  display: block;
  width: 100%;
  height: calc(100% - 72px);
  border: 0;
  background: white;
}

.section-activities {
  background: var(--cream);
}

.activity-controls {
  display: grid;
  grid-template-columns: minmax(280px, 1.4fr) minmax(180px, .7fr) minmax(180px, .7fr);
  align-items: end;
  gap: 13px;
  margin-bottom: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, .62);
}

.activity-controls label {
  display: grid;
  gap: 7px;
}

.activity-controls label>span:first-child {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.activity-controls input,
.activity-controls select {
  width: 100%;
  height: 47px;
  padding: 0 14px;
  border: 2px solid transparent;
  border-radius: 12px;
  color: var(--ink);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  outline: none;
}

.activity-controls input:focus,
.activity-controls select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(47, 169, 155, .14);
}

.activity-search-field {
  position: relative;
  display: block;
}

.activity-search-field i {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 15px;
  color: var(--teal-dark);
  font-size: 21px;
  font-style: normal;
  transform: translateY(-54%);
}

.activity-search-field input {
  padding-left: 43px;
}

.activity-result-count {
  min-height: 21px;
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.activities-grid {
  grid-template-columns: repeat(3, 1fr);
}

.activity-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  padding: 28px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 6px 7px 0 var(--ink);
  transition: transform .2s, box-shadow .2s;
}

.activity-card:hover {
  box-shadow: 8px 10px 0 var(--ink);
  transform: translateY(-3px);
}

.activity-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.activity-card-badges {
  display: flex;
  max-width: calc(100% - 63px);
  align-items: flex-end;
  flex-direction: column;
  gap: 5px;
}

.activity-icon {
  display: grid;
  width: 53px;
  height: 53px;
  place-items: center;
  border-radius: 16px;
  font-size: 26px;
}

.activity-card:nth-child(3n+1) .activity-icon {
  background: var(--teal-pale);
}

.activity-card:nth-child(3n+2) .activity-icon {
  background: var(--yellow-pale);
}

.activity-card:nth-child(3n) .activity-icon {
  background: var(--coral-pale);
}

.activity-category {
  padding: 4px 9px;
  border-radius: 20px;
  color: var(--teal-dark);
  background: var(--teal-pale);
  font-size: 9px;
  font-weight: 900;
}

.activity-duration {
  padding: 4px 9px;
  border-radius: 20px;
  color: var(--muted);
  background: var(--cream);
  font-size: 10px;
  font-weight: 850;
}

.activity-card h3 {
  margin-top: 23px;
  font-size: 22px;
}

.activity-card p {
  margin: 10px 0 23px;
  color: var(--muted);
  font-size: 13px;
}

.activity-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: auto;
}

.activity-open {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding: 0;
  border: 0;
  color: var(--teal-dark);
  background: none;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.activity-open:hover {
  text-decoration: underline;
}

.activity-pdf-mark {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  background: var(--white);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .07em;
}

.activity-empty {
  grid-column: 1 / -1;
  padding: 60px 25px;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.activity-empty>span {
  display: block;
  color: var(--teal);
  font-size: 40px;
}

.activity-empty h3 {
  margin: 9px 0 4px;
  color: var(--ink);
  font-size: 23px;
}

.activity-empty p {
  margin: 0;
  font-size: 13px;
}

.teacher-note {
  padding-block: 80px;
  color: var(--paper);
  background: var(--ink);
}

.teacher-note-inner {
  display: grid;
  grid-template-columns: 210px 1fr auto;
  align-items: center;
  gap: 55px;
}

.teacher-note .eyebrow {
  color: #7fd3c4;
}

.teacher-note h2 {
  font-size: clamp(35px, 4vw, 54px);
}

.teacher-note h2 em {
  color: var(--yellow);
}

.teacher-note p:not(.eyebrow) {
  max-width: 610px;
  margin: 18px 0 0;
  color: #b9c7c9;
}

.section-about {
  background: var(--paper);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
  align-items: center;
  gap: 84px;
}

.about-intro h2 {
  max-width: 610px;
  margin: 0;
  font-size: clamp(35px, 4vw, 54px);
  line-height: 1.03;
}

.about-intro h2 em {
  color: var(--teal);
}

.about-intro p:not(.eyebrow) {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--muted);
}

.about-intro .button {
  margin-top: 29px;
}

.about-details {
  display: grid;
  gap: 14px;
}

.about-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 17px;
  align-items: start;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}

.about-card-legal {
  border-color: rgba(30, 116, 107, .28);
  background: var(--teal-pale);
}

.about-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 15px;
  color: var(--teal-dark);
  background: var(--yellow-pale);
  font-family: var(--display);
  font-size: 28px;
  font-weight: 900;
}

.about-card:nth-child(2) .about-icon {
  color: var(--ink);
  background: var(--coral-pale);
}

.about-card-legal .about-icon {
  color: var(--white);
  background: var(--teal);
}

.about-card h3 {
  margin: 1px 0 5px;
  font-size: 18px;
}

.about-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.note-illustration {
  position: relative;
  height: 175px;
}

.note-clock {
  position: absolute !important;
  top: 5px;
  left: 10px;
  width: 150px !important;
  height: 150px !important;
  transform: rotate(-8deg);
}

.note-clock .clock-face {
  border-width: 6px;
  --ring-width: 4px;
}

.note-clock .clock-number {
  font-size: 10px;
}

.note-clock .clock-tick {
  display: none;
}

.note-clock .clock-hand.hour {
  width: 4px;
}

.note-clock .clock-hand.minute {
  width: 3px;
}

.note-clock .clock-center {
  width: 12px;
  height: 12px;
  border-width: 3px;
}

.note-pencil {
  position: absolute;
  z-index: 3;
  right: 12px;
  bottom: 13px;
  width: 24px;
  height: 115px;
  border: 3px solid var(--ink);
  border-radius: 6px 6px 0 0;
  background: var(--coral);
  transform: rotate(38deg);
}

.note-pencil::after {
  content: "";
  position: absolute;
  bottom: -27px;
  left: -3px;
  border-top: 27px solid var(--yellow-pale);
  border-right: 12px solid transparent;
  border-left: 12px solid transparent;
}

.site-footer {
  padding-block: 50px 22px;
  background: #10252d;
  color: var(--white);
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 1.3fr auto;
  align-items: center;
  gap: 50px;
  padding-bottom: 37px;
}

.brand-footer {
  color: var(--white);
}

.brand-footer .brand-mark {
  border-color: var(--white);
}

.footer-main>p {
  margin: 0;
  color: #9fb2b7;
  font-size: 13px;
}

.footer-main nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}

.footer-main nav a {
  color: #c3d0d2;
  font-size: 12px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 19px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: #799097;
  font-size: 10px;
}

.activity-dialog {
  width: min(620px, calc(100% - 30px));
  max-height: min(780px, calc(100dvh - 30px));
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 25px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 10px 12px 0 var(--ink);
}

.activity-dialog::backdrop {
  background: rgba(11, 32, 40, .68);
  backdrop-filter: blur(4px);
}

.dialog-close {
  position: absolute;
  z-index: 2;
  top: 17px;
  right: 17px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: var(--cream);
  font-size: 25px;
  cursor: pointer;
}

.dialog-body {
  padding: 43px;
}

.dialog-hero {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 28px;
  padding-right: 40px;
}

.dialog-hero .activity-icon {
  flex: 0 0 53px;
  background: var(--teal-pale);
}

.dialog-hero h2 {
  font-size: 33px;
}

.activity-source {
  margin: 0 0 4px;
  color: var(--teal-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dialog-intro {
  color: var(--muted);
}

.dialog-info {
  display: flex;
  gap: 8px;
  margin: 24px 0;
}

.dialog-info span {
  padding: 6px 11px;
  border-radius: 20px;
  background: var(--cream);
  font-size: 11px;
  font-weight: 800;
}

.dialog-body h3 {
  margin: 28px 0 11px;
  font-size: 18px;
}

.dialog-body ol,
.dialog-body ul {
  padding-left: 22px;
  color: var(--muted);
  font-size: 14px;
}

.dialog-body li+li {
  margin-top: 9px;
}

.activity-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}

.activity-dialog-actions .button {
  min-height: 43px;
  padding: 10px 14px;
  font-size: 11px;
}

.cookie-banner {
  position: fixed;
  z-index: 420;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: flex;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity .22s, transform .22s;
}

.cookie-banner.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.cookie-banner-inner {
  display: grid;
  width: min(880px, 100%);
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: start;
  padding: 22px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: rgba(255, 253, 247, .98);
  box-shadow: 9px 10px 0 rgba(23, 49, 59, .9);
}

.cookie-copy h2 {
  margin: 3px 0 8px;
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 31px);
  line-height: 1.04;
}

.cookie-copy p {
  max-width: 610px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.cookie-kicker {
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.cookie-details {
  display: grid;
  gap: 7px;
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.cookie-details[hidden] {
  display: none;
}

.cookie-details p {
  font-size: 13px;
}

.cookie-details b {
  color: var(--ink);
}

.cookie-actions {
  display: grid;
  min-width: 210px;
  gap: 9px;
  justify-items: stretch;
  padding-top: 24px;
}

.cookie-actions button,
.cookie-icon-button {
  border: 2px solid transparent;
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s, background .18s, opacity .18s;
}

.cookie-actions button:hover,
.cookie-icon-button:hover {
  transform: translateY(-2px);
}

.cookie-accept {
  min-height: 58px;
  padding: 14px 22px;
  border-radius: 14px;
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 0 6px 0 #d89b2a;
  font-size: 17px;
}

.cookie-details-toggle {
  min-height: 44px;
  padding: 10px 16px;
  border-color: var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--teal-pale);
  font-size: 13px;
}

.cookie-decline {
  justify-self: center;
  min-height: 34px;
  padding: 6px 8px;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-decline:hover,
.cookie-decline:focus-visible {
  color: var(--ink);
  opacity: 1;
}

.cookie-icon-button {
  position: fixed;
  z-index: 390;
  bottom: 18px;
  left: 18px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-color: var(--ink);
  border-radius: 50%;
  color: var(--ink);
  background:
    radial-gradient(circle at 61% 31%, var(--ink) 0 3px, transparent 4px),
    radial-gradient(circle at 35% 57%, var(--ink) 0 3px, transparent 4px),
    radial-gradient(circle at 65% 69%, var(--ink) 0 2.5px, transparent 3.5px),
    var(--yellow);
  box-shadow: 4px 5px 0 var(--ink);
}

.cookie-icon-button span {
  width: 31px;
  height: 31px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  color: transparent;
}

.cookie-icon-button[hidden] {
  display: none;
}

.toast {
  position: fixed;
  z-index: 300;
  right: 22px;
  bottom: 22px;
  max-width: 340px;
  padding: 13px 18px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  color: var(--ink);
  background: var(--yellow-pale);
  box-shadow: 5px 6px 0 var(--ink);
  font-size: 13px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
  transition: opacity .2s, transform .2s;
}

.toast.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .desktop-nav a,
  .desktop-nav .text-speech-toggle {
    padding-inline: 10px;
  }

  .hero {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }

  .quick-paths {
    grid-template-columns: 1fr 1fr;
    margin-top: -30px;
  }

  .clock-tool {
    grid-template-columns: 1fr 1fr;
  }

  .digital-clock-tool.is-active {
    grid-template-columns: 1fr 1fr;
  }

  .tool-display {
    padding: 25px;
  }

  .tool-controls {
    padding: 30px 25px;
  }

  .materials-grid {
    grid-template-columns: 1fr 1fr;
  }

  .teacher-note-inner {
    grid-template-columns: 170px 1fr;
  }

  .teacher-note-inner .button {
    grid-column: 2;
    width: max-content;
  }

  .about-layout {
    gap: 42px;
  }

  .footer-main {
    grid-template-columns: 1fr 1.5fr;
  }

  .footer-main nav {
    grid-column: 1 / -1;
    display: flex;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 28px, 620px);
  }

  .header-inner {
    height: 68px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: flex;
  }

  .ad-placement {
    padding-block: 34px;
  }

  .ad-placement .adsbygoogle {
    min-height: 280px;
  }

  .cookie-banner {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .cookie-banner-inner {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px;
    border-radius: 15px;
    box-shadow: 6px 7px 0 rgba(23, 49, 59, .9);
  }

  .cookie-actions {
    min-width: 0;
    padding-top: 0;
  }

  .cookie-icon-button {
    bottom: 14px;
    left: 14px;
    width: 44px;
    height: 44px;
  }

  .site-header.is-menu-open::after {
    content: "";
    position: fixed;
    z-index: 1;
    inset: 68px 0 0;
    background: rgba(16, 37, 45, .2);
    backdrop-filter: blur(2px);
  }

  .tool-toolbar {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
  }

  .tool-toolbar .tool-tabs {
    width: 100%;
  }

  .fullscreen-shell:fullscreen,
  .fullscreen-shell:-webkit-full-screen,
  .fullscreen-shell.is-fullscreen-fallback {
    padding: 72px 14px 16px;
  }

  .fullscreen-dock {
    top: 12px;
    right: 12px;
  }

  .fullscreen-shell:fullscreen .fullscreen-brand,
  .fullscreen-shell:-webkit-full-screen .fullscreen-brand,
  .fullscreen-shell.is-fullscreen-fallback .fullscreen-brand {
    top: 13px;
    left: 12px;
    gap: 8px;
    max-width: calc(100vw - 212px);
    font-size: 15px;
    white-space: nowrap;
  }

  .fullscreen-shell:fullscreen .fullscreen-brand .brand-mark,
  .fullscreen-shell:-webkit-full-screen .fullscreen-brand .brand-mark,
  .fullscreen-shell.is-fullscreen-fallback .fullscreen-brand .brand-mark {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .fullscreen-shell:fullscreen .fullscreen-brand>span:last-child,
  .fullscreen-shell:-webkit-full-screen .fullscreen-brand>span:last-child,
  .fullscreen-shell.is-fullscreen-fallback .fullscreen-brand>span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .tool-fullscreen-shell:fullscreen .clock-tool.is-active,
  .tool-fullscreen-shell:-webkit-full-screen .clock-tool.is-active,
  .tool-fullscreen-shell.is-fullscreen-fallback .clock-tool.is-active {
    display: block;
    min-height: calc(100vh - 102px);
  }

  .tool-fullscreen-shell:fullscreen .tool-panel,
  .tool-fullscreen-shell:-webkit-full-screen .tool-panel,
  .tool-fullscreen-shell.is-fullscreen-fallback .tool-panel,
  .tool-fullscreen-shell:fullscreen .timeline-workspace,
  .tool-fullscreen-shell:-webkit-full-screen .timeline-workspace,
  .tool-fullscreen-shell.is-fullscreen-fallback .timeline-workspace,
  .tool-fullscreen-shell:fullscreen .timer-workspace,
  .tool-fullscreen-shell:-webkit-full-screen .timer-workspace,
  .tool-fullscreen-shell.is-fullscreen-fallback .timer-workspace,
  .game-fullscreen-shell:fullscreen .game-arena,
  .game-fullscreen-shell:-webkit-full-screen .game-arena,
  .game-fullscreen-shell.is-fullscreen-fallback .game-arena {
    min-height: calc(100vh - 102px);
  }

  .tool-fullscreen-shell:fullscreen .tool-stage,
  .tool-fullscreen-shell:-webkit-full-screen .tool-stage,
  .tool-fullscreen-shell.is-fullscreen-fallback .tool-stage,
  .game-fullscreen-shell:fullscreen .game-arena,
  .game-fullscreen-shell:-webkit-full-screen .game-arena,
  .game-fullscreen-shell.is-fullscreen-fallback .game-arena {
    overflow: auto;
  }

  .tool-fullscreen-shell:fullscreen .tool-display,
  .tool-fullscreen-shell:-webkit-full-screen .tool-display,
  .tool-fullscreen-shell.is-fullscreen-fallback .tool-display {
    padding: 28px 18px;
  }

  .tool-fullscreen-shell:fullscreen .tool-controls,
  .tool-fullscreen-shell:-webkit-full-screen .tool-controls,
  .tool-fullscreen-shell.is-fullscreen-fallback .tool-controls {
    display: block;
    padding: 24px 20px 28px;
  }

  .tool-fullscreen-shell:fullscreen .tool-controls h3,
  .tool-fullscreen-shell:-webkit-full-screen .tool-controls h3,
  .tool-fullscreen-shell.is-fullscreen-fallback .tool-controls h3,
  .tool-fullscreen-shell:fullscreen .timeline-workspace h3,
  .tool-fullscreen-shell:-webkit-full-screen .timeline-workspace h3,
  .tool-fullscreen-shell.is-fullscreen-fallback .timeline-workspace h3,
  .tool-fullscreen-shell:fullscreen .timer-workspace h3,
  .tool-fullscreen-shell:-webkit-full-screen .timer-workspace h3,
  .tool-fullscreen-shell.is-fullscreen-fallback .timer-workspace h3 {
    font-size: 34px;
  }

  .tool-fullscreen-shell:fullscreen .interactive-clock,
  .tool-fullscreen-shell:-webkit-full-screen .interactive-clock,
  .tool-fullscreen-shell.is-fullscreen-fallback .interactive-clock {
    width: min(420px, 78vw, 58vh, 100%);
  }

  .tool-fullscreen-shell:fullscreen .timeline-workspace,
  .tool-fullscreen-shell:-webkit-full-screen .timeline-workspace,
  .tool-fullscreen-shell.is-fullscreen-fallback .timeline-workspace,
  .tool-fullscreen-shell:fullscreen .timer-workspace,
  .tool-fullscreen-shell:-webkit-full-screen .timer-workspace,
  .tool-fullscreen-shell.is-fullscreen-fallback .timer-workspace {
    padding: 42px 22px;
  }

  .tool-fullscreen-shell:fullscreen .time-line,
  .tool-fullscreen-shell:-webkit-full-screen .time-line,
  .tool-fullscreen-shell.is-fullscreen-fallback .time-line {
    height: 122px;
  }

  .tool-fullscreen-shell:fullscreen .elapsed-result strong,
  .tool-fullscreen-shell:-webkit-full-screen .elapsed-result strong,
  .tool-fullscreen-shell.is-fullscreen-fallback .elapsed-result strong {
    font-size: 42px;
  }

  .tool-fullscreen-shell:fullscreen .timer-ring,
  .tool-fullscreen-shell:-webkit-full-screen .timer-ring,
  .tool-fullscreen-shell.is-fullscreen-fallback .timer-ring {
    width: min(320px, 72vw, 46vh);
    height: min(320px, 72vw, 46vh);
  }

  .tool-fullscreen-shell:fullscreen .timer-ring span,
  .tool-fullscreen-shell:-webkit-full-screen .timer-ring span,
  .tool-fullscreen-shell.is-fullscreen-fallback .timer-ring span {
    font-size: 46px;
  }

  .game-fullscreen-shell:fullscreen .game-arena,
  .game-fullscreen-shell:-webkit-full-screen .game-arena,
  .game-fullscreen-shell.is-fullscreen-fallback .game-arena {
    padding: 24px;
  }

  .game-fullscreen-shell:fullscreen .game-head,
  .game-fullscreen-shell:-webkit-full-screen .game-head,
  .game-fullscreen-shell.is-fullscreen-fallback .game-head {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }

  .game-fullscreen-shell:fullscreen .game-head h3,
  .game-fullscreen-shell:-webkit-full-screen .game-head h3,
  .game-fullscreen-shell.is-fullscreen-fallback .game-head h3 {
    font-size: 24px;
  }

  .game-fullscreen-shell:fullscreen .game-stat,
  .game-fullscreen-shell:-webkit-full-screen .game-stat,
  .game-fullscreen-shell.is-fullscreen-fallback .game-stat {
    min-width: 62px;
    padding: 7px 8px;
  }

  .game-fullscreen-shell:fullscreen .game-stat b,
  .game-fullscreen-shell:-webkit-full-screen .game-stat b,
  .game-fullscreen-shell.is-fullscreen-fallback .game-stat b {
    font-size: 21px;
  }

  .game-fullscreen-shell:fullscreen .game-body,
  .game-fullscreen-shell:-webkit-full-screen .game-body,
  .game-fullscreen-shell.is-fullscreen-fallback .game-body {
    flex: 0 0 auto;
    grid-template-columns: 1fr;
    gap: 30px;
    width: 100%;
  }

  .game-fullscreen-shell:fullscreen .game-question,
  .game-fullscreen-shell:-webkit-full-screen .game-question,
  .game-fullscreen-shell.is-fullscreen-fallback .game-question {
    max-width: none;
  }

  .game-fullscreen-shell:fullscreen .game-question h4,
  .game-fullscreen-shell:-webkit-full-screen .game-question h4,
  .game-fullscreen-shell.is-fullscreen-fallback .game-question h4,
  .game-fullscreen-shell:fullscreen .number-order-intro h4,
  .game-fullscreen-shell:-webkit-full-screen .number-order-intro h4,
  .game-fullscreen-shell.is-fullscreen-fallback .number-order-intro h4,
  .game-fullscreen-shell:fullscreen .connect-game-intro h4,
  .game-fullscreen-shell:-webkit-full-screen .connect-game-intro h4,
  .game-fullscreen-shell.is-fullscreen-fallback .connect-game-intro h4,
  .game-fullscreen-shell:fullscreen .order-game-intro h4,
  .game-fullscreen-shell:-webkit-full-screen .order-game-intro h4,
  .game-fullscreen-shell.is-fullscreen-fallback .order-game-intro h4 {
    font-size: 34px;
  }

  .game-fullscreen-shell:fullscreen .answer-button,
  .game-fullscreen-shell:-webkit-full-screen .answer-button,
  .game-fullscreen-shell.is-fullscreen-fallback .answer-button {
    min-height: 64px;
    font-size: 18px;
  }

  .game-fullscreen-shell:fullscreen .game-clock,
  .game-fullscreen-shell:-webkit-full-screen .game-clock,
  .game-fullscreen-shell.is-fullscreen-fallback .game-clock {
    width: min(320px, 76vw, 42vh, 100%);
  }

  .game-fullscreen-shell:fullscreen .set-clock-display,
  .game-fullscreen-shell:-webkit-full-screen .set-clock-display,
  .game-fullscreen-shell.is-fullscreen-fallback .set-clock-display,
  .game-fullscreen-shell:fullscreen .phrase-card,
  .game-fullscreen-shell:-webkit-full-screen .phrase-card,
  .game-fullscreen-shell.is-fullscreen-fallback .phrase-card,
  .game-fullscreen-shell:fullscreen .sequence-board,
  .game-fullscreen-shell:-webkit-full-screen .sequence-board,
  .game-fullscreen-shell.is-fullscreen-fallback .sequence-board,
  .game-fullscreen-shell:fullscreen .time-machine-board,
  .game-fullscreen-shell:-webkit-full-screen .time-machine-board,
  .game-fullscreen-shell.is-fullscreen-fallback .time-machine-board,
  .game-fullscreen-shell:fullscreen .drag-clock-stage,
  .game-fullscreen-shell:-webkit-full-screen .drag-clock-stage,
  .game-fullscreen-shell.is-fullscreen-fallback .drag-clock-stage,
  .game-fullscreen-shell:fullscreen .move-time-start,
  .game-fullscreen-shell:-webkit-full-screen .move-time-start,
  .game-fullscreen-shell.is-fullscreen-fallback .move-time-start,
  .game-fullscreen-shell:fullscreen .number-focus-card,
  .game-fullscreen-shell:-webkit-full-screen .number-focus-card,
  .game-fullscreen-shell.is-fullscreen-fallback .number-focus-card,
  .game-fullscreen-shell:fullscreen .number-minute-card,
  .game-fullscreen-shell:-webkit-full-screen .number-minute-card,
  .game-fullscreen-shell.is-fullscreen-fallback .number-minute-card,
  .game-fullscreen-shell:fullscreen .number-jump-board,
  .game-fullscreen-shell:-webkit-full-screen .number-jump-board,
  .game-fullscreen-shell.is-fullscreen-fallback .number-jump-board,
  .game-fullscreen-shell:fullscreen .duration-clocks,
  .game-fullscreen-shell:-webkit-full-screen .duration-clocks,
  .game-fullscreen-shell.is-fullscreen-fallback .duration-clocks,
  .game-fullscreen-shell:fullscreen .detective-board,
  .game-fullscreen-shell:-webkit-full-screen .detective-board,
  .game-fullscreen-shell.is-fullscreen-fallback .detective-board {
    min-height: 0;
    padding: 22px;
  }

  .game-fullscreen-shell:fullscreen .prep-clock,
  .game-fullscreen-shell:-webkit-full-screen .prep-clock,
  .game-fullscreen-shell.is-fullscreen-fallback .prep-clock {
    width: min(260px, 76vw, 38vh, 100%);
  }

  .game-fullscreen-shell:fullscreen .prep-fact strong,
  .game-fullscreen-shell:-webkit-full-screen .prep-fact strong,
  .game-fullscreen-shell.is-fullscreen-fallback .prep-fact strong,
  .game-fullscreen-shell:fullscreen .jump-task strong,
  .game-fullscreen-shell:-webkit-full-screen .jump-task strong,
  .game-fullscreen-shell.is-fullscreen-fallback .jump-task strong {
    font-size: 34px;
  }

  .game-fullscreen-shell:fullscreen .number-focus-card>strong,
  .game-fullscreen-shell:-webkit-full-screen .number-focus-card>strong,
  .game-fullscreen-shell.is-fullscreen-fallback .number-focus-card>strong,
  .game-fullscreen-shell:fullscreen .number-minute-card>strong,
  .game-fullscreen-shell:-webkit-full-screen .number-minute-card>strong,
  .game-fullscreen-shell.is-fullscreen-fallback .number-minute-card>strong {
    font-size: 74px;
  }

  .game-fullscreen-shell:fullscreen .number-order-intro,
  .game-fullscreen-shell:-webkit-full-screen .number-order-intro,
  .game-fullscreen-shell.is-fullscreen-fallback .number-order-intro,
  .game-fullscreen-shell:fullscreen .connect-game-intro,
  .game-fullscreen-shell:-webkit-full-screen .connect-game-intro,
  .game-fullscreen-shell.is-fullscreen-fallback .connect-game-intro,
  .game-fullscreen-shell:fullscreen .order-game-intro,
  .game-fullscreen-shell:-webkit-full-screen .order-game-intro,
  .game-fullscreen-shell.is-fullscreen-fallback .order-game-intro,
  .game-fullscreen-shell:fullscreen .number-order-intro~.game-feedback,
  .game-fullscreen-shell:-webkit-full-screen .number-order-intro~.game-feedback,
  .game-fullscreen-shell.is-fullscreen-fallback .number-order-intro~.game-feedback,
  .game-fullscreen-shell:fullscreen .connect-game-intro~.game-feedback,
  .game-fullscreen-shell:-webkit-full-screen .connect-game-intro~.game-feedback,
  .game-fullscreen-shell.is-fullscreen-fallback .connect-game-intro~.game-feedback,
  .game-fullscreen-shell:fullscreen .order-game-intro~.game-feedback,
  .game-fullscreen-shell:-webkit-full-screen .order-game-intro~.game-feedback,
  .game-fullscreen-shell.is-fullscreen-fallback .order-game-intro~.game-feedback {
    margin-top: 0;
    margin-bottom: 0;
  }

  .game-fullscreen-shell:fullscreen .sort-number-list,
  .game-fullscreen-shell:-webkit-full-screen .sort-number-list,
  .game-fullscreen-shell.is-fullscreen-fallback .sort-number-list,
  .game-fullscreen-shell:fullscreen .clock-order-list,
  .game-fullscreen-shell:-webkit-full-screen .clock-order-list,
  .game-fullscreen-shell.is-fullscreen-fallback .clock-order-list {
    display: flex;
    width: 100%;
    gap: 14px;
    overflow-x: auto;
    padding: 3px 3px 10px;
    scroll-snap-type: x proximity;
  }

  .game-fullscreen-shell:fullscreen .sort-number-card,
  .game-fullscreen-shell:-webkit-full-screen .sort-number-card,
  .game-fullscreen-shell.is-fullscreen-fallback .sort-number-card,
  .game-fullscreen-shell:fullscreen .clock-order-card,
  .game-fullscreen-shell:-webkit-full-screen .clock-order-card,
  .game-fullscreen-shell.is-fullscreen-fallback .clock-order-card {
    min-width: 230px;
    flex: 0 0 230px;
    scroll-snap-align: start;
  }

  .game-fullscreen-shell:fullscreen .sort-mini-clock,
  .game-fullscreen-shell:-webkit-full-screen .sort-mini-clock,
  .game-fullscreen-shell.is-fullscreen-fallback .sort-mini-clock,
  .game-fullscreen-shell:fullscreen .order-clock,
  .game-fullscreen-shell:-webkit-full-screen .order-clock,
  .game-fullscreen-shell.is-fullscreen-fallback .order-clock {
    width: 160px;
  }

  .game-fullscreen-shell:fullscreen .sort-number-card strong,
  .game-fullscreen-shell:-webkit-full-screen .sort-number-card strong,
  .game-fullscreen-shell.is-fullscreen-fallback .sort-number-card strong {
    font-size: 52px;
  }

  .game-fullscreen-shell:fullscreen .connect-board,
  .game-fullscreen-shell:-webkit-full-screen .connect-board,
  .game-fullscreen-shell.is-fullscreen-fallback .connect-board {
    grid-template-columns: minmax(100px, 1fr) minmax(100px, 1fr);
    gap: 42px;
  }

  .game-fullscreen-shell:fullscreen .time-connector,
  .game-fullscreen-shell:-webkit-full-screen .time-connector,
  .game-fullscreen-shell.is-fullscreen-fallback .time-connector {
    min-height: 118px;
  }

  .game-fullscreen-shell:fullscreen .connector-clock,
  .game-fullscreen-shell:-webkit-full-screen .connector-clock,
  .game-fullscreen-shell.is-fullscreen-fallback .connector-clock {
    width: 105px;
    height: 105px;
  }

  .game-fullscreen-shell:fullscreen .duration-clocks,
  .game-fullscreen-shell:-webkit-full-screen .duration-clocks,
  .game-fullscreen-shell.is-fullscreen-fallback .duration-clocks {
    grid-template-columns: 1fr;
  }

  .game-fullscreen-shell:fullscreen .duration-clock,
  .game-fullscreen-shell:-webkit-full-screen .duration-clock,
  .game-fullscreen-shell.is-fullscreen-fallback .duration-clock {
    width: 130px;
  }

  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
    padding-block: 61px 85px;
    text-align: center;
  }

  .hero-copy {
    display: flex;
    align-items: center;
    flex-direction: column;
  }

  .hero-skills {
    justify-content: center;
  }

  .hero-lead {
    font-size: 17px;
  }

  .hero-proof {
    justify-content: center;
  }

  .hero-visual {
    min-height: 400px;
  }

  .hero-visual::before {
    right: 5%;
    width: 90%;
  }

  .float-card-top {
    right: 0;
  }

  .float-card-bottom {
    left: 0;
  }

  .quick-paths {
    grid-template-columns: 1fr 1fr;
  }

  .section {
    padding-block: 82px;
  }

  .split-heading {
    display: block;
  }

  .split-heading>p {
    margin-top: 18px !important;
  }

  .clock-tool.is-active {
    display: block;
  }

  .digital-clock-tool.is-active {
    display: block;
  }

  .tool-display {
    padding: 25px 20px;
  }

  .tool-controls {
    padding: 25px 20px 30px;
  }

  .tool-panel {
    min-height: 0;
  }

  .timeline-workspace,
  .timer-workspace,
  .world-clock-workspace,
  .stopwatch-workspace,
  .digital-clock-display {
    min-height: 570px;
    padding: 50px 25px;
  }

  .world-clock-workspace {
    min-height: 0;
    padding: 25px 14px 35px;
  }

  .world-clock-grid {
    grid-template-columns: 1fr;
    padding: 25px 0 0;
  }

  .game-arena {
    padding: 25px;
  }

  .level-picker {
    align-items: stretch;
    flex-direction: column;
    gap: 7px;
  }

  .game-settings {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .level-picker>span {
    text-align: center;
  }

  .level-options {
    justify-content: center;
    flex-wrap: wrap;
    overflow: visible;
    padding-bottom: 3px;
  }

  .game-body {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .game-clock {
    width: min(265px, 75vw);
  }

  .game-head {
    align-items: flex-start;
  }

  .material-generator {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .material-level-options {
    justify-content: flex-start;
  }

  .material-generator-options {
    grid-template-columns: 1fr;
  }

  .activity-controls {
    grid-template-columns: 1fr 1fr;
  }

  .activity-search {
    grid-column: 1 / -1;
  }

  .activities-grid {
    grid-template-columns: 1fr 1fr;
  }

  .teacher-note-inner {
    grid-template-columns: 140px 1fr;
    gap: 30px;
  }

  .teacher-note-inner .button {
    grid-column: 1 / -1;
  }

  .note-clock {
    width: 120px !important;
    height: 120px !important;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 50px;
  }

  h2 {
    font-size: 38px;
  }

  .brand {
    font-size: 17px;
  }

  .hero {
    padding-top: 46px;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-proof {
    gap: 9px 13px;
  }

  .hero-visual {
    min-height: 335px;
  }

  .hero-clock {
    width: 255px !important;
    height: 255px !important;
  }

  .orbit-two {
    inset: 18%;
    transform: none;
  }

  .float-card {
    width: 88px;
    height: 67px;
  }

  .float-card-bottom {
    width: 112px;
  }

  .float-card b {
    font-size: 20px;
  }

  .float-card small {
    font-size: 8px;
  }

  .quick-paths {
    grid-template-columns: 1fr;
    margin-top: -40px;
  }

  .quick-card {
    min-height: 87px;
  }

  .tool-tabs {
    width: 100%;
  }

  .tool-tab {
    flex: 1;
    padding-inline: 10px;
  }

  .tool-stage {
    border-radius: 25px;
    box-shadow: 6px 7px 0 var(--ink);
  }

  .fullscreen-open-button,
  .fullscreen-icon-button {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-radius: 10px;
  }

  .fullscreen-open-button span,
  .fullscreen-icon-button span {
    font-size: 22px;
  }

  .fullscreen-popover {
    width: calc(100vw - 24px);
  }

  .interactive-clock {
    width: 250px;
  }

  .time-stepper {
    gap: 4px;
  }

  .time-stepper button {
    width: 37px;
    flex-basis: 37px;
  }

  .timeline-times {
    gap: 8px;
  }

  .timeline-times input {
    padding-inline: 6px;
    font-size: 16px;
  }

  .game-picker {
    width: 100%;
  }

  .game-pick {
    flex: 1;
    padding-inline: 10px;
  }

  .game-arena {
    padding: 18px;
    border-radius: 25px;
    box-shadow: 6px 7px 0 var(--ink);
  }

  .game-head h3 {
    font-size: 21px;
  }

  .game-head {
    gap: 10px;
  }

  .game-head-actions {
    gap: 7px;
  }

  .game-stat {
    min-width: 57px;
    padding-inline: 7px;
  }

  .answer-grid {
    grid-template-columns: 1fr;
  }

  .number-pile,
  .digit-pile {
    justify-content: center;
    padding: 12px;
  }

  .number-chip,
  .digit-chip {
    width: 48px;
    height: 48px;
  }

  .built-time span {
    width: 39px;
    height: 49px;
    font-size: 27px;
  }

  .number-focus-card,
  .number-minute-card,
  .number-jump-board {
    min-height: 255px;
    padding: 18px;
  }

  .prep-clock {
    width: min(210px, 100%);
  }

  .prep-fact {
    padding: 11px 12px;
  }

  .sort-number-list {
    display: flex;
    overflow-x: auto;
    padding: 3px 3px 10px;
    scroll-snap-type: x proximity;
  }

  .sort-number-card {
    min-width: 210px;
    flex: 0 0 210px;
    scroll-snap-align: start;
  }

  .sort-mini-clock {
    width: 145px;
  }

  .sequence-board {
    min-height: 235px;
    padding: 20px 14px;
  }

  .sequence-board>div {
    gap: 6px;
  }

  .sequence-board strong {
    padding: 9px 8px;
  }

  .time-machine-board {
    min-height: 285px;
    padding: 17px;
  }

  .drag-clock-stage,
  .move-time-start {
    min-height: 285px;
    padding: 17px;
  }

  .time-choice {
    min-height: 130px;
    padding: 7px;
  }

  .move-time-choice-clock {
    width: 96px;
    height: 96px;
  }

  .connect-board {
    grid-template-columns: minmax(100px, 1fr) minmax(100px, 1fr);
    gap: 38px;
  }

  .time-connector {
    min-height: 116px;
  }

  .connector-clock {
    width: 104px;
    height: 104px;
  }

  .clock-order-list {
    display: flex;
    overflow-x: auto;
    padding: 3px 3px 10px;
    scroll-snap-type: x proximity;
  }

  .clock-order-card {
    min-width: 170px;
    flex: 0 0 170px;
    scroll-snap-align: start;
  }

  .duration-clocks {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 17px;
  }

  .duration-clock-card {
    grid-template-columns: 80px 1fr;
    justify-items: center;
    min-height: 120px;
  }

  .duration-clock-card>span,
  .duration-clock-card>b {
    grid-column: 2;
  }

  .duration-clock {
    grid-row: 1 / span 2;
    width: 80px;
  }

  .detective-board {
    min-height: 285px;
    padding: 17px;
  }

  .timeline-arc b {
    top: -21px;
    padding-inline: 4px;
    font-size: 9px;
  }

  .timeline-point b {
    font-size: 9px;
  }

  .materials-grid,
  .activities-grid {
    grid-template-columns: 1fr;
  }

  .material-generator {
    padding: 22px;
  }

  .material-level-options {
    justify-content: center;
  }

  .material-option-picker>span {
    text-align: center;
  }

  .material-dialog-bar {
    align-items: flex-start;
  }

  .material-dialog-bar>div:first-child {
    display: none;
  }

  .material-dialog-actions {
    width: 100%;
    justify-content: space-between;
  }

  .material-content p {
    min-height: 0;
  }

  .activity-controls {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .activity-search {
    grid-column: auto;
  }

  .dialog-info {
    flex-wrap: wrap;
  }

  .activity-dialog-actions {
    flex-direction: column;
  }

  .activity-dialog-actions .button {
    width: 100%;
  }

  .teacher-note-inner {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .note-illustration {
    display: none;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer-main nav {
    grid-column: auto;
    flex-wrap: wrap;
  }

  .footer-bottom {
    gap: 12px;
    flex-direction: column;
  }

  .dialog-body {
    padding: 35px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {

  .site-header,
  .hero,
  .quick-paths,
  .ad-placement,
  .section-tools,
  .section-games,
  .section-materials,
  .teacher-note,
  .site-footer {
    display: none !important;
  }

  .section-activities {
    padding: 0;
    background: white;
  }

  .activities-grid {
    grid-template-columns: 1fr 1fr;
  }

  .activity-card {
    break-inside: avoid;
    box-shadow: none;
  }
}
