[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button:focus-visible, a:focus-visible, .tk-hang:focus-visible {
  outline: 3px solid var(--tk-yellow);
  outline-offset: 5px;
}
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.tk-cue { background: none; border: none; padding: 0; }
.tk-stop-body { min-width: 0; }
.tk-stop-desc, .tk-roadsign .v, .tk-toll-copy { overflow-wrap: anywhere; }
.tk-toll-copy { min-width: 0; text-align: right; }
.tk-toll-copy svg { flex-shrink: 0; }
.tk-hang { animation: photo-sway 4s ease-in-out infinite alternate; }
.tk-hang:nth-child(even) { animation-direction: alternate-reverse; }
.tk-hang:nth-child(3) { animation-duration: 5s; }
:root { --tk-vv-gap: env(safe-area-inset-bottom, 0px); }
.tk-intro-stage, .tk-horn-zone { flex-shrink: 0; }
.intro-truck {
  width: 70%;
  margin: 0 auto;
  position: relative;
  /* The drawing occupies x=4.5..167 in its 200-unit viewBox. */
  left: 5%;
  z-index: 2;
  aspect-ratio: 5 / 3;
  animation: intro-rattle .25s ease-in-out infinite;
}
.intro-truck > img, .truck-bounce > svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 3;
}
/* The tyres end at y=107 of 120; align that point to the road stripe. */
.tk-intro-road { bottom: calc(10.833333% - 43px); }
.intro-truck .tk-headlight {
  left: 80%;
  right: auto;
  top: 61.666667%;
  bottom: auto;
  transform: translateY(-50%);
  width: clamp(100px, 32vw, 180px);
  height: clamp(50px, 14vw, 80px);
}
.tk-drive {
  bottom: 0;
  height: calc(92px + env(safe-area-inset-bottom, 0px));
}
.tk-drive-road::after { top: 44px; }
.tk-truck {
  --tk-truck-width: 168px;
  width: var(--tk-truck-width);
  aspect-ratio: 5 / 3;
  bottom: calc(44px + env(safe-area-inset-bottom, 0px) - var(--tk-truck-width) * .065);
}
.truck-bounce { width: 100%; aspect-ratio: 5 / 3; animation: truck-bob 1.2s ease-in-out infinite; }
.tk-horn { width: 200px; height: 160px; padding: 0; transition: transform .1s; }
.tk-horn > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.tk-horn.holding { transform: scale(.82); }
.tk-intro.leaving { transform: translateY(-100%); transition: transform .9s cubic-bezier(.7,0,.3,1); }
.tk-horn-label { margin-bottom: max(8px, env(safe-area-inset-bottom)); }
.tk-hero > [data-reveal] { width: 100%; }
.tk-flip-window { min-width: 0; }
.tk-flip-digit { overflow: hidden; }
.tk-flip-digit.long { font-size: 1.3rem; }
.tk-overlay { padding-top: max(1rem,env(safe-area-inset-top)); padding-bottom: max(1rem,env(safe-area-inset-bottom)); }
.tk-modal { max-height: min(92vh,92dvh); overscroll-behavior: contain; }
.tk-overlay .tk-input, .tk-overlay .tk-select, .tk-overlay .tk-textarea { font-size: 16px; }
.tk-btn:disabled { cursor: not-allowed; opacity: .5; }
.form-error { margin: 0; color: #a12220; font-size: .85rem; font-weight: 600; }
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.lightbox { position: fixed; inset: 0; background: rgba(15,8,30,.94); backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center; z-index: 99999; cursor: zoom-out; padding: 2rem; }
.lightbox img { max-width: 90vw; max-height: 80vh; max-height: 80dvh; object-fit: contain; border-radius: 6px; border: 6px solid #fff; box-shadow: 0 25px 50px rgba(0,0,0,.8); }
.lightbox-close { position: absolute; top: max(1.5rem,env(safe-area-inset-top)); right: 1.5rem; width: 44px; height: 44px; border-radius: 50%; background: var(--tk-yellow); border: 3px solid var(--tk-ink); color: var(--tk-ink); cursor: pointer; font-size: 1.1rem; font-weight: 800; }
.tk-toast { position: fixed; z-index: 100000; bottom: 170px; left: 50%; transform: translateX(-50%); max-width: calc(100vw - 2rem); padding: .65rem 1rem; border: 3px solid var(--tk-ink); border-radius: 12px; color: var(--tk-ink); background: var(--tk-cream); font-family: var(--tk-font-head); font-weight: 700; box-shadow: 0 4px 0 var(--tk-ink); }
@keyframes photo-sway { from { transform: rotate(-2.5deg); } to { transform: rotate(2.5deg); } }
@keyframes intro-rattle { 0%,100% { transform: translate(0,0); } 33% { transform: translate(2px,-1px); } 66% { transform: translate(-2px,1px); } }
@keyframes truck-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@media (max-width: 600px) {
  .tk-truck { --tk-truck-width: clamp(140px, 42vw, 168px); left: 6%; }
}
@media (max-height: 600px) {
  .tk-intro-title { top: max(16px, 6dvh); }
  .tk-intro-title .k { font-size: clamp(1.8rem, 6vw, 2.6rem); }
  .tk-intro-stage { width: min(560px, 96vw, 58dvh); margin-bottom: clamp(20px, 8dvh, 48px); }
  .tk-horn { width: 150px; height: 120px; }
}
@media (max-width: 360px) {
  .tk-flip-window { width: 44px; height: 50px; }
  .tk-flip-digit { font-size: 1.45rem; }
  .tk-plate { gap: 3px; padding: 6px; }
  .tk-plate-tag { padding: 0 .25rem; font-size: .65rem; }
  .tk-toll-row { padding: .75rem .1rem; gap: .4rem; }
  .tk-ticket-top .route { font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tk-hang, .intro-truck, .truck-bounce { animation: none; }
  .tk-intro.leaving { transition: none; }
}
