:root {
  color-scheme: light;
  --night: #19090f;
  --cream: #fff3e5;
  --ink: #2a1720;
  --soft: #72545a;
  --orange: #ff9d37;
  --red: #bc303b;
  font-family: Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
body {
  min-width: 280px;
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(circle at 76% -10%, #5f2730, transparent 34%), var(--night);
  color: var(--cream);
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.skip-link {
  position: absolute;
  top: -70px;
  left: 14px;
  z-index: 10;
  padding: 12px 16px;
  border-radius: 9px;
  background: var(--orange);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }
.page-shell { width: min(980px, 100%); margin: 0 auto; }
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  padding: 15px 18px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--red);
  color: #fff;
  font: 25px Impact, 'Arial Black', sans-serif;
  letter-spacing: -3px;
  transform: rotate(-5deg);
}
.brand-name { font: 24px Impact, 'Arial Black', sans-serif; letter-spacing: .6px; }
.home-link { color: #d9b9b1; font-size: 13px; font-weight: 700; text-underline-offset: 4px; }
.home-link:hover { color: var(--orange); }
.tracking-page { padding: 19px 18px 40px; }
.tracking-page h1 {
  margin: 0 0 10px;
  color: #fff4e7;
  font: clamp(48px, 11vw, 78px)/.95 Impact, 'Arial Black', sans-serif;
  letter-spacing: .4px;
  text-transform: uppercase;
}
.tracking-intro {
  max-width: 40rem;
  margin: 0 0 24px;
  color: #f0cfc5;
  font-size: clamp(16px, 4.5vw, 20px);
  line-height: 1.4;
}
.machine-card {
  overflow: hidden;
  border: 1px solid #f8dcc5;
  border-radius: 22px;
  background: var(--cream);
  box-shadow: 0 18px 50px #09010455;
  color: var(--ink);
}
.timer-block, .stage-block { min-width: 0; padding: 26px 24px; }
.stage-block { border-top: 1px solid #e6cab9; }
.field-label {
  margin: 0 0 10px;
  color: #99504a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}
.timer-text {
  min-height: 1em;
  margin: 0;
  color: #a42f37;
  font: clamp(70px, 18vw, 132px)/.95 Impact, 'Arial Black', sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: -2px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.stage-text {
  min-height: 1.3em;
  margin: 0;
  font-size: clamp(26px, 7vw, 40px);
  font-weight: 800;
  line-height: 1.22;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.tracking-status {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 0;
  padding: 13px 16px;
  border: 1px solid #af7565;
  border-radius: 11px;
  color: #ffdec1;
  font-size: 13px;
  line-height: 1.45;
}
.connection-light {
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 50%;
  background: #f5a44d;
  box-shadow: 0 0 0 4px #f5a44d24;
}
.tracking-status.is-live { border-color: #537d59; color: #d8f1d7; }
.tracking-status.is-live .connection-light { background: #78c487; box-shadow: 0 0 0 4px #78c48724; }
[hidden] { display: none !important; }
@media (min-width: 700px) {
  .site-header { min-height: 96px; padding: 21px 30px; }
  .brand-mark { width: 51px; height: 51px; font-size: 29px; }
  .brand-name { font-size: 29px; }
  .tracking-page { padding: 35px 30px 60px; }
  .tracking-intro { margin-bottom: 30px; }
  .machine-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 260px; }
  .timer-block, .stage-block { display: flex; flex-direction: column; justify-content: center; padding: 35px; }
  .stage-block { border-top: 0; border-left: 1px solid #e6cab9; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; } }
