/* 03 · Under a minute — statement on cobalt, floating J-cards, the visitor's own stopwatch. */
#rule { overflow: hidden; }
#rule .rl-inner {
  position: relative; max-width: 1440px; margin: 0 auto; min-height: 780px;
  padding: 96px max(var(--pad), 16vw) 104px; display: flex; flex-direction: column; align-items: center; text-align: center;
}
#rule .rl-tag { margin: 0 0 28px; color: var(--white); }
#rule .rl-shout { position: relative; z-index: 2; max-width: 15.5em; font-size: clamp(44px, 6.4vw, 96px); line-height: .88; text-wrap: balance; }
#rule .rl-shout .it { color: var(--white); }
#rule .rl-support { position: relative; z-index: 2; margin: 22px 0 0; max-width: 44ch; font: 500 clamp(17px, 1.4vw, 20px)/1.45 var(--body); color: var(--white); text-wrap: pretty; }

/* floating covers */
#rule .rl-covers { list-style: none; margin: 0; padding: 0; }
#rule .rl-cover { position: absolute; z-index: 1; width: clamp(110px, 9.6vw, 142px); }
#rule .rl-cover:nth-child(1) { left: 2.5%; top: 9%; --r: -4deg; }
#rule .rl-cover:nth-child(2) { left: 4%; top: 39%; --r: 3deg; }
#rule .rl-cover:nth-child(3) { left: 1.5%; top: 68%; --r: -2deg; }
#rule .rl-cover:nth-child(4) { right: 2.5%; top: 7%; --r: 3.5deg; }
#rule .rl-cover:nth-child(5) { right: 4%; top: 37%; --r: -3deg; }
#rule .rl-cover:nth-child(6) { right: 2%; top: 67%; --r: 2deg; }
#rule .rl-cbtn {
  display: block; width: 100%; padding: 6px 6px 0; cursor: pointer; text-align: left; color: var(--ink);
  background: var(--white); border: 0; border-radius: var(--radius-tape);
  box-shadow: 0 14px 26px -8px rgba(10, 18, 50, .55), 0 2px 4px rgba(10, 18, 50, .3);
  transform: translate3d(var(--px, 0), var(--py, 0), 0) rotate(var(--r, 0));
  transition: box-shadow .2s;
}
#rule .rl-cbtn img { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 3px; }
#rule .rl-cbtn span { display: flex; justify-content: space-between; gap: 6px; padding: 6px 2px 7px; font: 600 10.5px/1.1 var(--mono); text-transform: uppercase; letter-spacing: .03em; }
#rule .rl-cbtn:hover { box-shadow: 0 20px 34px -8px rgba(10, 18, 50, .65), 0 0 0 3px var(--orange); }
#rule .rl-cbtn:focus-visible { outline: 3px solid var(--white); outline-offset: 4px; }

/* the stopwatch */
#rule .rl-clock { position: relative; z-index: 2; margin-top: 56px; display: flex; flex-direction: column; align-items: center; gap: 18px; max-width: 640px; }
#rule .rl-status { margin: 0; font: 800 clamp(18px, 1.7vw, 24px)/1.2 var(--display); text-transform: uppercase; letter-spacing: .02em; }
#rule .rl-status .it { display: block; margin-top: .1em; font-size: 1.7em; line-height: 1; text-transform: none; letter-spacing: 0; }
#rule .rl-face {
  display: flex; align-items: center; gap: 8px; padding: 14px; background: var(--ink);
  border-radius: var(--radius-tape); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14), 6px 6px 0 rgba(10, 18, 50, .45);
}
#rule .rl-dig {
  position: relative; display: grid; place-items: center; width: clamp(62px, 6.2vw, 92px); aspect-ratio: 5 / 7;
  background: linear-gradient(#262a33 50%, #1c1f26 50%); border-radius: 5px; color: var(--paper);
  font: 600 clamp(58px, 6vw, 88px)/1 var(--mono); font-variant-numeric: tabular-nums;
}
#rule .rl-dig::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--ink); }
#rule .rl-colon { color: var(--orange); font: 600 clamp(48px, 5vw, 72px)/1 var(--mono); margin-top: -.12em; }
#rule [data-state="running"] .rl-colon { animation: rl-blink 1s steps(1) infinite; }
@keyframes rl-blink { 50% { opacity: .25; } }
#rule [data-state="held"] .rl-dig { color: var(--white); background: linear-gradient(#1a8a4a 50%, #167a41 50%); }
#rule [data-state="held"] .rl-colon { color: var(--white); }
#rule [data-state="over"] .rl-dig { color: var(--ink); background: linear-gradient(#f5813c 50%, var(--orange) 50%); }
#rule [data-state="over"] .rl-colon { color: var(--paper); }

#rule .rl-after { margin: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 18px; font: 500 17px/1.4 var(--body); }
#rule .rl-go:focus-visible, #rule .rl-slow:focus-visible, #rule .rl-next:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
#rule .rl-slow, #rule .rl-next { color: var(--white); font-weight: 600; text-underline-offset: 4px; }
#rule .rl-verdict { font: italic 800 clamp(26px, 2.6vw, 38px)/1 var(--display); width: 100%; }
#rule [data-state="running"] .rl-slow, #rule [data-state="running"] .rl-next, #rule [data-state="running"] .rl-verdict,
#rule .rl-slow[hidden], #rule .rl-next[hidden], #rule .rl-verdict[hidden] { display: none; }
#rule [data-state="held"] .rl-hint, #rule [data-state="held"] .rl-go,
#rule [data-state="over"] .rl-hint, #rule [data-state="over"] .rl-go { display: none; }
#rule .rl-measure { margin: 0; max-width: 46ch; font: 400 13px/1.5 var(--mono); color: rgba(255, 255, 255, .86); }

@media (max-width: 1100px) {
  #rule .rl-inner { padding-inline: calc(var(--pad) + 100px); }
  #rule .rl-cover { width: 96px; }
}

/* 390: covers become a tilted row between statement and clock */
@media (max-width: 760px) {
  #rule .rl-inner { min-height: 0; padding: 64px var(--pad) 72px; align-items: flex-start; text-align: left; }
  #rule .rl-tag { margin-bottom: 20px; }
  #rule .rl-shout { font-size: clamp(40px, 12.6vw, 60px); }
  #rule .rl-covers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 14px; margin-top: 34px; width: 100%; }
  #rule .rl-cover { position: static; width: auto; }
  #rule .rl-cbtn span { font-size: 9.5px; }
  #rule .rl-cbtn span b { display: none; }
  #rule .rl-clock { margin-top: 40px; align-items: flex-start; width: 100%; }
  #rule .rl-face { gap: 6px; padding: 10px; }
  #rule .rl-dig { width: 64px; font-size: 56px; }
  #rule .rl-colon { font-size: 44px; }
  #rule .rl-after { justify-content: flex-start; }
}
@media (max-width: 360px) { #rule .rl-dig { width: 56px; font-size: 48px; } }

@media (prefers-reduced-motion: reduce) {
  #rule .rl-cbtn { transform: rotate(var(--r, 0)); transition: none; }
  #rule [data-state="running"] .rl-colon { animation: none; }
}
