* {
  box-sizing: border-box;
}
html {
  color-scheme: light;
}
body {
  margin: 0;
  background: #faf2de;
  color: #263d40;
  font:
    16px/1.5 Nunito,
    'Trebuchet MS',
    system-ui,
    sans-serif;
}
header,
footer {
  padding: 12px max(4vw, calc((100vw - 1100px) / 2));
  background: #214951;
  color: #fff5d9;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
header a,
footer a {
  color: inherit;
}
nav,
.actions,
.rooms,
.meter,
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.brand {
  font-family: Georgia, serif;
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: bold;
  text-decoration: none;
  font-size: 22px;
}
.brand img {
  width: 32px;
}
nav a {
  font-size: 14px;
}
main {
  width: min(1100px, 94%);
  margin: 20px auto 30px;
}
h1,
h2,
h3,
p {
  margin: 0 0 0.5em;
}
h1,
h2,
h3 {
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.1;
  color: #503c40;
}
h1 {
  font-size: clamp(32px, 5.8vw, 66px);
}
h2 {
  font-size: clamp(22px, 3vw, 33px);
}
a {
  color: #125960;
}
button,
.btn,
.rooms a {
  font: inherit;
  font-weight: 700;
  color: #22464c;
  background: #fff9e7;
  border: 1.5px solid #bda986;
  border-radius: 10px;
  padding: 8px 13px;
  text-decoration: none;
  cursor: pointer;
}
button:hover,
.btn:hover,
.rooms a:hover {
  background: #ffdf91;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 3px solid #aa482a;
  outline-offset: 2px;
}
button[disabled] {
  opacity: 0.47;
  cursor: default;
}
.primary,
.selected,
.rooms a[aria-current='page'] {
  background: #205b61;
  color: #fff8df;
  border-color: #1a494f;
}
.primary:hover,
.selected:hover {
  background: #2d686e;
}
.hero {
  position: relative;
  min-height: clamp(340px, 49vw, 538px);
  display: flex;
  align-items: flex-end;
  border-radius: 22px;
  overflow: hidden;
  background: #488c9d url('assets/cloudberry-balloon-port.webp') 50% 47% / cover;
  box-shadow: 0 6px 0 #b4a487;
}
.hero-box {
  color: #fff6df;
  background: linear-gradient(transparent, rgba(22, 44, 52, 0.93) 35%);
  padding: 60px clamp(20px, 4vw, 55px) 26px;
  width: 100%;
}
.hero h1 {
  color: inherit;
  text-shadow: 0 2px 4px #23434c;
}
.hero p {
  max-width: 56ch;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
  margin: 18px 0;
}
.ticket,
.board,
.field,
.side {
  border: 1px solid #c9b997;
  background: #fffbef;
  border-radius: 15px;
  padding: clamp(14px, 2.4vw, 27px);
}
.ticket {
  position: relative;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 3px 0 #d3c4a2;
}
.ticket:hover {
  border-color: #33838b;
}
.ticket b,
.ticket small {
  display: block;
}
.ticket b {
  font:
    700 23px/1.2 Georgia,
    serif;
  margin: 7px 0;
}
.ticket small,
.overline {
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 12px;
  color: #705248;
}
.ticket i {
  font-style: normal;
  font-size: 26px;
}
.rooms {
  margin: 10px 0 15px;
}
.rooms a {
  font-size: 14px;
  padding: 5px 9px;
}
.room-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 15px;
  align-items: start;
}
.field {
  padding: 15px;
  background: #f5ead0;
}
.side {
  margin-top: 12px;
}
.room-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin: 18px 0;
}
.room-head h1 {
  font-size: clamp(30px, 4.5vw, 50px);
}
.room-head img {
  width: clamp(66px, 10vw, 102px);
}
.callout,
.receipt {
  margin: 12px 0;
  padding: 10px 13px;
  background: #e1efe2;
  border-left: 4px solid #438178;
  border-radius: 5px;
}
.receipt {
  background: #f9e4bc;
  border-color: #b16b38;
  min-height: 44px;
}
.tape {
  margin: 10px 0;
}
.track {
  position: relative;
  height: 29px;
  margin: 4px 0 4px 42px;
  background: #f0e7d5;
  border-radius: 5px;
}
.track > b {
  position: absolute;
  right: calc(100% + 5px);
  top: 4px;
  font: 700 13px/20px monospace;
}
.strip {
  position: absolute;
  height: 100%;
  display: grid;
  place-items: center;
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  font: 700 12px/1 monospace;
  border-right: 1px solid #fffbef;
  background: #306770;
}
.strip.decode {
  background: #805370;
}
.strip.handoff {
  background: #945322;
}
.strip.mixed {
  background: #616245;
}
.ruler {
  display: flex;
  justify-content: space-between;
  margin-left: 42px;
  font-size: 12px;
}
.tablewrap {
  overflow: auto;
  max-width: 100%;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
}
td,
th {
  padding: 4px 7px;
  text-align: left;
  border-bottom: 1px solid #d8cbb0;
}
.crates {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 40px;
  margin: 8px 0;
}
.crate {
  display: grid;
  place-items: center;
  background: #e2ad61;
  border: 2px solid #90572c;
  color: #4c301d;
  width: 32px;
  height: 32px;
  border-radius: 4px;
}
.flight {
  height: 230px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #75bac1 url('assets/cloudberry-balloon-port.webp') center 32% / cover;
  isolation: isolate;
}
.flight:before {
  content: '';
  position: absolute;
  inset: 0;
  background: #b5e7f0aa;
}
.flight canvas,
.sky-signs {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.sky-signs span {
  position: absolute;
  right: 6%;
  transform: translateY(-50%);
  padding: 3px 11px;
  background: #144e59;
  color: white;
  border: 2px solid #fff2c1;
  border-radius: 50px;
  font-weight: bold;
}
@media (prefers-reduced-motion: no-preference) {
  .wind-hit .stormcat {
    animation: nimbus-hop 0.6s ease-out;
  }
  .wind-miss .stormcat {
    animation: nimbus-gust 0.54s ease-out;
  }
  @keyframes nimbus-hop {
    35% {
      transform: translate(12%, -10%) rotate(12deg);
    }
  }
  @keyframes nimbus-gust {
    30% {
      transform: translate(-22%, 10%) rotate(-9deg) scale(1.1);
    }
  }
}
.stormcat {
  position: absolute;
  right: 31%;
  top: 2%;
  width: 21%;
  max-height: 115px;
  object-fit: contain;
}
.flight-alt {
  position: absolute;
  left: 20%;
  transform: translateY(-50%);
  text-align: center;
}
.flight-alt span,
.flight-alt b {
  display: block;
}
.flight-alt span {
  font-size: 35px;
}
.controls,
.dials {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 9px 0;
}
.dials label {
  display: grid;
  font-size: 13px;
  font-weight: bold;
}
.dials select {
  min-height: 34px;
  color: inherit;
  border: 1px solid #a89672;
  background: #fffdf2;
  border-radius: 6px;
}
.gate-note {
  font-size: 18px;
  font-weight: bold;
  margin-top: 8px;
}
.gift {
  background: #f8dda0;
  padding: 13px;
  border: 1px dashed #9b652d;
  border-radius: 12px;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
footer {
  margin-top: 25px;
}
footer a {
  margin: 0 3px;
}
town-flow {
  display: block;
}
.field .flow-caption p {
  line-height: 1.45;
}
.board h3 {
  margin-top: 15px;
}
.legend {
  font-size: 13px;
  color: #534939;
}
.meter {
  font-weight: bold;
  color: #7b3847;
}
@media (max-width: 760px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .room-grid {
    grid-template-columns: 1fr;
  }
  .room-head {
    margin: 10px 0;
  }
  .hero {
    min-height: 380px;
    background-position: 53% center;
  }
  header {
    flex-wrap: wrap;
  }
  .board,
  .field {
    padding: 13px;
  }
  .rooms {
    gap: 4px;
  }
  .rooms a {
    font-size: 12px;
  }
  .flight {
    height: 195px;
  }
}
@media (max-width: 420px) {
  .cards {
    gap: 8px;
  }
  .ticket {
    padding: 12px;
  }
  .ticket b {
    font-size: 19px;
  }
  .hero-box {
    padding: 60px 15px 16px;
  }
  .brand {
    font-size: 18px;
  }
  .brand img {
    width: 25px;
  }
  nav {
    gap: 6px;
  }
  nav a {
    font-size: 12px;
  }
}
