:root {
  --bg: #090a0a;
  --bg-2: #111312;
  --ink: #f8f1e5;
  --muted: #b7aa96;
  --line: rgba(232, 211, 172, 0.26);
  --gold: #e8d3ac;
  --gold-strong: #f5d889;
  --green: #1f7b65;
  --green-bright: #2baa88;
  --sea: #6ab8c9;
  --cream: #f6eddb;
  --card: rgba(255, 250, 239, 0.07);
  --card-strong: rgba(255, 250, 239, 0.12);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 5%, rgba(43, 170, 136, 0.18), transparent 30rem),
    radial-gradient(circle at 86% 0%, rgba(232, 211, 172, 0.12), transparent 22rem),
    linear-gradient(180deg, #151716 0%, var(--bg) 42%, #030404 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 76%);
  content: "";
}

img {
  max-width: 100%;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.site-shell {
  width: min(1180px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 22px 0 42px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0 26px;
}

.brand-mark {
  display: grid;
  gap: 2px;
  min-width: 130px;
}

.brand-mark strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 68px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.88;
}

.brand-mark span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav-pill,
.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: rgba(255, 250, 239, 0.05);
  color: var(--ink);
  font-weight: 850;
  white-space: nowrap;
}

.nav-pill.active,
.nav-pill:hover,
.button.secondary:hover {
  border-color: rgba(232, 211, 172, 0.55);
  background: rgba(232, 211, 172, 0.12);
}

.button.primary {
  border-color: transparent;
  background: var(--green-bright);
  color: #06110e;
}

.button.primary:hover {
  background: #42c49d;
}

.button.ghost {
  background: transparent;
}

.home-hero {
  display: grid;
  gap: 12px;
  margin-bottom: 26px;
}

.home-logo-card {
  display: grid;
  min-height: clamp(330px, 48vw, 460px);
  align-content: center;
  justify-items: center;
  gap: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(28px, 5vw, 58px);
  background:
    radial-gradient(circle at 50% 28%, rgba(232, 211, 172, 0.1), transparent 18rem),
    linear-gradient(145deg, rgba(255, 250, 239, 0.11), rgba(255, 250, 239, 0.03)),
    rgba(0, 0, 0, 0.34);
  box-shadow: var(--shadow);
  text-align: center;
}

.home-logo {
  width: min(760px, 86vw);
  max-height: 250px;
  object-fit: contain;
}

.home-tagline {
  max-width: 54ch;
  margin: 0;
  color: rgba(248, 241, 229, 0.82);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.45;
}

.home-statusbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.status-pill {
  display: grid;
  min-height: 86px;
  align-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
  background:
    linear-gradient(140deg, rgba(255, 250, 239, 0.1), rgba(255, 250, 239, 0.035)),
    rgba(0, 0, 0, 0.22);
}

.status-pill:hover {
  border-color: rgba(232, 211, 172, 0.55);
  background:
    linear-gradient(140deg, rgba(232, 211, 172, 0.16), rgba(255, 250, 239, 0.04)),
    rgba(0, 0, 0, 0.18);
}

.status-pill span {
  color: var(--gold-strong);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.status-pill strong {
  overflow-wrap: anywhere;
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.05;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(330px, 0.96fr);
  gap: 24px;
  align-items: stretch;
}

.hero-copy {
  display: grid;
  align-content: center;
  gap: 20px;
  min-height: 570px;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(140deg, rgba(255, 250, 239, 0.12), rgba(255, 250, 239, 0.035)),
    rgba(0, 0, 0, 0.18);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0;
  color: var(--gold-strong);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 10ch;
  margin-bottom: 0;
  font-size: clamp(56px, 8vw, 112px);
  line-height: 0.88;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 54ch;
  margin: 0;
  color: rgba(248, 241, 229, 0.82);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.45;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 640px;
}

.stat {
  min-height: 92px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}

.stat strong {
  display: block;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.island-panel {
  position: relative;
  min-height: 570px;
  overflow: hidden;
  border: 1px solid rgba(232, 211, 172, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(106, 184, 201, 0.28), rgba(15, 50, 56, 0.2)),
    #10282c;
  box-shadow: var(--shadow);
}

.island-water {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 24% 20%, rgba(255, 255, 255, 0.12), transparent 11rem),
    linear-gradient(145deg, #75bdc9, #265a62 72%);
}

.island {
  position: absolute;
  inset: 15% 8% 10% 10%;
  border-radius: 54% 46% 42% 58% / 38% 28% 72% 62%;
  background:
    radial-gradient(circle at 28% 34%, rgba(255, 255, 255, 0.18), transparent 10rem),
    linear-gradient(135deg, #97c99b, #4f8a61 70%);
  box-shadow:
    inset 0 0 0 6px rgba(246, 237, 219, 0.18),
    0 26px 70px rgba(0, 0, 0, 0.3);
  transform: rotate(-7deg);
}

.island::before {
  position: absolute;
  left: 44%;
  top: 7%;
  width: 10px;
  height: 78%;
  border-radius: 999px;
  background: #d6c7a5;
  box-shadow:
    -64px 166px 0 -1px #d6c7a5,
    72px 278px 0 1px #d6c7a5;
  transform: rotate(9deg);
  content: "";
}

.dock {
  position: absolute;
  border-radius: 3px;
  background: #6f5a42;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
}

.dock.a {
  right: 7%;
  bottom: 25%;
  width: 92px;
  height: 18px;
  transform: rotate(-8deg);
}

.dock.b {
  left: 11%;
  top: 18%;
  width: 74px;
  height: 16px;
  transform: rotate(32deg);
}

.map-label {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(248, 241, 229, 0.36);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(5, 5, 5, 0.62);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.map-label::before {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold-strong);
  content: "";
}

.map-label.kai {
  right: 10%;
  bottom: 19%;
}

.map-label.slip {
  left: 8%;
  top: 13%;
}

.building {
  position: absolute;
  width: 30px;
  height: 20px;
  border-radius: 3px;
  background: #f1e7d4;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.22);
}

.building:nth-of-type(1) { left: 34%; top: 29%; transform: rotate(12deg); }
.building:nth-of-type(2) { left: 57%; top: 32%; transform: rotate(-10deg); }
.building:nth-of-type(3) { left: 44%; top: 49%; transform: rotate(2deg); }
.building:nth-of-type(4) { left: 66%; top: 61%; transform: rotate(14deg); }
.building:nth-of-type(5) { left: 28%; top: 67%; transform: rotate(-18deg); }

.mini-card-stack {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.section {
  margin-top: 26px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 239, 0.055);
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(30px, 4.5vw, 54px);
  line-height: 0.95;
}

.section-head p {
  max-width: 52ch;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.tap-grid,
.beer-grid,
.brew-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

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

.brew-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.beer-card,
.tap-card,
.brew-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}

.tap-card {
  display: grid;
  grid-template-rows: 170px auto;
}

.beer-card {
  display: grid;
  grid-template-rows: 210px auto;
}

.brew-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 240px;
}

.beer-card:hover,
.tap-card:hover {
  border-color: rgba(245, 216, 137, 0.62);
  background: var(--card-strong);
}

.card-media,
.brew-media {
  display: grid;
  min-width: 0;
  place-items: center;
  background: rgba(0, 0, 0, 0.28);
}

.card-media img,
.brew-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.beer-card .card-media img {
  object-fit: cover;
}

.brew-media img {
  object-fit: cover;
}

.card-body,
.brew-body {
  min-width: 0;
  padding: 16px;
}

.card-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.card-body h3,
.brew-body h3 {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1;
}

.card-body p,
.brew-body p {
  margin: 0;
  color: rgba(248, 241, 229, 0.74);
  line-height: 1.45;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.meta-line span,
.tag {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid rgba(232, 211, 172, 0.24);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
}

.empty-tap {
  display: grid;
  min-height: 170px;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(232, 211, 172, 0.12), rgba(255, 255, 255, 0.02));
  color: rgba(248, 241, 229, 0.42);
  font-size: 56px;
  font-weight: 900;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.filter-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255, 250, 239, 0.05);
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
}

.filter-button.active {
  border-color: transparent;
  background: var(--gold);
  color: #17120a;
}

.page-title {
  display: grid;
  gap: 14px;
  margin: 28px 0;
  padding: clamp(26px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 250, 239, 0.1), rgba(255, 250, 239, 0.035)),
    rgba(0, 0, 0, 0.24);
}

.page-title h1 {
  max-width: 12ch;
}

.page-title p {
  max-width: 62ch;
  margin: 0;
  color: rgba(248, 241, 229, 0.78);
  font-size: 20px;
  line-height: 1.45;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.admin-note {
  border-left: 3px solid var(--green-bright);
  padding: 12px 14px;
  background: rgba(43, 170, 136, 0.11);
  color: rgba(248, 241, 229, 0.82);
}

.rute-shell {
  --rute-red: #ff4d38;
  --rute-sea: #58b8c9;
}

.rute-title h1 {
  max-width: 11ch;
}

.rute-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 18px;
  align-items: start;
}

.rute-main-card,
.rute-radar {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 250, 239, 0.12), rgba(255, 250, 239, 0.035)),
    rgba(0, 0, 0, 0.2);
  box-shadow: var(--shadow);
}

.rute-main-card {
  min-height: 460px;
  padding: clamp(20px, 3vw, 34px);
}

.rute-toolbar,
.rute-status-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.viewpoint-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rute-status-line {
  margin-top: clamp(16px, 3vw, 28px);
}

.rute-badge,
.rute-source {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.rute-badge {
  background: var(--gold);
  color: #17120a;
}

.rute-source {
  border: 1px solid rgba(232, 211, 172, 0.28);
  color: var(--muted);
}

.rute-main-card h2 {
  margin: 18px 0 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.9;
}

.rute-vessel-name {
  margin: 10px 0 0;
  color: var(--gold);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 900;
}

.rute-countdown {
  margin: 14px 0 0;
  color: #fff;
  font-size: clamp(58px, 10vw, 118px);
  font-weight: 950;
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
}

[data-rute-status="visible"] .rute-countdown,
[data-rute-status="visible"] .rute-main-card h2,
[data-rute-status="visible"] .rute-vessel-name {
  color: var(--rute-red);
  text-shadow: 0 0 28px rgba(255, 77, 56, 0.35);
}

[data-rute-status="visible"] .rute-badge {
  background: var(--rute-red);
  color: white;
}

[data-rute-status="scheduled_now"] .rute-countdown,
[data-rute-status="scheduled_now"] .rute-main-card h2 {
  color: var(--gold);
  text-shadow: 0 0 22px rgba(245, 216, 137, 0.24);
}

[data-rute-status="scheduled_now"] .rute-badge,
[data-rute-status="scheduled"] .rute-badge {
  background: var(--gold);
  color: #17120a;
}

.rute-countdown-label,
.rute-status-copy {
  margin: 10px 0 0;
  color: rgba(248, 241, 229, 0.78);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.45;
}

.rute-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.rute-metrics div {
  min-width: 0;
  border: 1px solid rgba(232, 211, 172, 0.22);
  border-radius: 8px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.18);
}

.rute-metrics span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.rute-metrics strong {
  display: block;
  overflow: hidden;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rute-notice {
  margin: 18px 0 0;
  border-left: 3px solid var(--rute-sea);
  padding: 12px 14px;
  background: rgba(88, 184, 201, 0.12);
  color: rgba(248, 241, 229, 0.82);
  line-height: 1.45;
}

.rute-radar {
  position: relative;
  display: grid;
  min-height: 460px;
  overflow: hidden;
  padding-top: 18px;
  place-items: start center;
  background:
    linear-gradient(180deg, rgba(88, 184, 201, 0.32), rgba(9, 10, 10, 0.08)),
    #0f2b31;
}

.rute-radar::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.3;
  content: "";
}

.radar-map {
  position: relative;
  width: min(82vw, 500px);
  aspect-ratio: 1;
  border: 1px solid rgba(248, 241, 229, 0.42);
  border-radius: 10px;
  overflow: hidden;
  background:
    linear-gradient(rgba(11, 19, 18, 0.02), rgba(11, 19, 18, 0.18)),
    url("/assets/images/laaoey-radar-map.jpg") center / cover no-repeat,
    #b7c7ba;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.26);
}

.radar-map::before,
.radar-map::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}

.radar-map::before {
  z-index: 1;
  background:
    radial-gradient(circle at 73% 55%, transparent 0 24%, rgba(6, 18, 20, 0.08) 61%, rgba(6, 18, 20, 0.38) 100%),
    linear-gradient(rgba(255, 255, 255, 0.03), rgba(11, 19, 18, 0.1));
  opacity: 0.76;
}

.radar-map::after {
  z-index: 1;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.48;
}

.map-land,
.map-route,
.map-sector,
.map-label,
.radar-sweep {
  position: absolute;
  z-index: 2;
}

.map-land {
  display: none !important;
  background:
    linear-gradient(135deg, rgba(218, 238, 208, 0.95), rgba(139, 174, 136, 0.95));
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.16);
}

.map-land-main {
  inset: 3% -14% 5% 34%;
  clip-path: polygon(21% 0, 76% 4%, 93% 18%, 86% 31%, 98% 45%, 87% 58%, 96% 72%, 75% 100%, 34% 89%, 26% 69%, 18% 53%, 9% 35%);
}

.map-land-west {
  left: -8%;
  top: 38%;
  width: 34%;
  height: 38%;
  clip-path: polygon(15% 0, 90% 10%, 82% 42%, 100% 62%, 68% 100%, 17% 82%, 0 38%);
}

.map-land-north {
  left: 35%;
  top: -7%;
  width: 34%;
  height: 24%;
  clip-path: polygon(8% 26%, 52% 0, 100% 20%, 82% 72%, 36% 100%, 0 72%);
}

.map-route {
  width: 50%;
  height: 78%;
  border-right: 2px dashed rgba(255, 174, 64, 0.48);
  border-radius: 52% 44% 55% 45%;
  opacity: 0.58;
}

.map-route-outer {
  left: 4%;
  top: 9%;
  transform: rotate(7deg);
}

.map-route-inner {
  right: 8%;
  top: 10%;
  height: 76%;
  border-right-color: rgba(255, 174, 64, 0.24);
  transform: rotate(-6deg);
}

.map-sector {
  left: 6%;
  top: 20%;
  width: 70%;
  height: 48%;
  background: linear-gradient(110deg, rgba(245, 216, 137, 0.24), rgba(245, 216, 137, 0.035));
  clip-path: polygon(98% 72%, 0 22%, 5% 98%);
  mix-blend-mode: screen;
}

.radar-sweep {
  left: 69%;
  top: 51%;
  width: 62%;
  height: 62%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(255, 255, 255, 0.18), transparent 36deg, transparent 360deg);
  opacity: 0.15;
  transform-origin: 21% 21%;
  animation: radarSweep 5.5s linear infinite;
}

.map-label {
  z-index: 4;
  border: 1px solid rgba(248, 241, 229, 0.18);
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(9, 10, 10, 0.44);
  color: rgba(248, 241, 229, 0.82);
  font-size: 12px;
  font-weight: 900;
}

.map-label-view {
  left: 9%;
  top: 35%;
}

.map-label-inner {
  right: 6%;
  top: 68%;
}

.radar-house,
.radar-ship {
  position: absolute;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  font-weight: 950;
}

.radar-house {
  left: 73%;
  top: 55%;
  z-index: 6;
  width: 78px;
  height: 40px;
  border: 1px solid var(--gold);
  background: rgba(9, 10, 10, 0.78);
  color: var(--ink);
  transform: translate(-50%, -50%);
}

.radar-ship {
  left: 50%;
  top: 50%;
  z-index: 7;
  min-width: 74px;
  min-height: 36px;
  padding: 0 10px;
  background: var(--gold);
  color: #17120a;
  box-shadow: 0 0 24px rgba(245, 216, 137, 0.28);
  transform: rotate(-40deg) translateX(36%) rotate(40deg);
}

.radar-ships {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
}

.radar-ships .radar-ship {
  position: absolute;
  transform: translate(-50%, -50%);
}

.radar-ship[hidden] {
  display: none;
}

.radar-ship.is-visible {
  background: var(--rute-red);
  color: #fff;
  box-shadow: 0 0 28px rgba(255, 77, 56, 0.42);
}

.radar-ship.is-muted {
  border: 1px solid rgba(248, 241, 229, 0.32);
  background: rgba(9, 10, 10, 0.72);
  color: rgba(248, 241, 229, 0.88);
  box-shadow: none;
}

.radar-map-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 16px;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid rgba(248, 241, 229, 0.14);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(9, 10, 10, 0.46);
  backdrop-filter: blur(10px);
}

.radar-map-caption span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.radar-map-caption a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(232, 211, 172, 0.34);
  text-underline-offset: 3px;
}

.radar-map-caption strong {
  color: var(--ink);
  font-size: 13px;
}

@keyframes radarSweep {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .radar-sweep {
    animation: none;
  }
}

.rute-compass {
  position: absolute;
  inset: 26px;
  pointer-events: none;
  color: rgba(248, 241, 229, 0.62);
  font-weight: 950;
}

.rute-compass span {
  position: absolute;
}

.rute-compass span:nth-child(1) {
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.rute-compass span:nth-child(2) {
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.rute-compass span:nth-child(3) {
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
}

.rute-compass span:nth-child(4) {
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.rute-vessel-list {
  display: grid;
  gap: 10px;
}

.rute-vessel-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 250, 239, 0.055);
}

.rute-vessel-row strong,
.rute-vessel-row span {
  display: block;
}

.rute-vessel-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.rute-schedule-row {
  border-color: rgba(245, 216, 137, 0.28);
}

.rute-passage-table {
  display: grid;
  gap: 10px;
}

.rute-passage-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, auto);
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 250, 239, 0.052);
}

.rute-passage-row.is-live {
  border-color: rgba(245, 216, 137, 0.44);
  background:
    linear-gradient(90deg, rgba(245, 216, 137, 0.12), rgba(255, 250, 239, 0.052));
}

.rute-passage-row strong,
.rute-passage-row span {
  display: block;
}

.rute-passage-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rute-passage-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.rute-debug pre {
  max-height: 520px;
  overflow: auto;
  border: 1px solid rgba(232, 211, 172, 0.2);
  border-radius: 8px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.34);
  color: #d9f7ef;
  font-size: 13px;
  line-height: 1.45;
}

.ute-shell {
  --ute-blue: #4aa5b8;
  --ute-good: #62c69d;
  --ute-warn: #f5b85b;
}

.ute-title h1 {
  max-width: 10ch;
}

.ute-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 18px;
  align-items: stretch;
}

.ute-main-card,
.ute-sea-card,
.ute-tip-column {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 250, 239, 0.11), rgba(255, 250, 239, 0.035)),
    rgba(0, 0, 0, 0.22);
  box-shadow: var(--shadow);
}

.ute-main-card {
  display: grid;
  gap: 22px;
  min-height: 460px;
  padding: clamp(22px, 4vw, 42px);
}

.ute-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.ute-toolbar > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.ute-source-badge,
.ute-updated {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.ute-source-badge.is-live {
  background: var(--ute-good);
  color: #07140f;
}

.ute-source-badge.is-partial {
  background: var(--gold);
  color: #17120a;
}

.ute-source-badge.is-demo {
  border: 1px solid rgba(232, 211, 172, 0.28);
  color: var(--muted);
}

.ute-updated {
  border: 1px solid rgba(232, 211, 172, 0.24);
  color: var(--muted);
}

.ute-main-card h2 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.88;
}

.ute-message {
  max-width: 62ch;
  margin: 0;
  color: rgba(248, 241, 229, 0.78);
  font-size: 18px;
  line-height: 1.45;
}

.ute-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-self: end;
}

.ute-metric {
  min-width: 0;
  border: 1px solid rgba(232, 211, 172, 0.22);
  border-radius: 8px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.2);
}

.ute-metric-large {
  grid-column: span 2;
}

.ute-metric span,
.ute-tide-events span,
.forecast-hour span,
.forecast-hour small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.ute-metric strong {
  display: block;
  margin-top: 8px;
  overflow-wrap: anywhere;
  font-size: clamp(22px, 3vw, 36px);
  line-height: 0.95;
}

.ute-sea-card {
  display: grid;
  gap: 14px;
  min-height: 460px;
  overflow: hidden;
  padding: 16px;
}

.ute-map {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid rgba(232, 211, 172, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 55%, rgba(245, 216, 137, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(74, 165, 184, 0.42), rgba(7, 24, 29, 0.94)),
    #0c3a42;
}

.ute-map::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.46;
  content: "";
}

.ute-island {
  position: absolute;
  left: 18%;
  top: 16%;
  width: 68%;
  height: 70%;
  border-radius: 56% 44% 50% 50% / 35% 34% 66% 65%;
  background:
    radial-gradient(circle at 35% 36%, rgba(255, 255, 255, 0.16), transparent 10rem),
    linear-gradient(135deg, rgba(171, 207, 152, 0.94), rgba(72, 120, 82, 0.92));
  box-shadow:
    inset 0 0 0 5px rgba(246, 237, 219, 0.13),
    0 22px 54px rgba(0, 0, 0, 0.28);
  transform: rotate(-7deg);
}

.ute-wind-lines {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 28%;
  height: 54%;
  background:
    linear-gradient(95deg, transparent 0 12%, rgba(245, 216, 137, 0.5) 12% 13%, transparent 13% 100%),
    linear-gradient(105deg, transparent 0 36%, rgba(245, 216, 137, 0.42) 36% 37%, transparent 37% 100%),
    linear-gradient(83deg, transparent 0 64%, rgba(245, 216, 137, 0.36) 64% 65%, transparent 65% 100%);
  opacity: 0.72;
}

.ute-marker {
  position: absolute;
  left: 49%;
  top: 44%;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(9, 10, 10, 0.78);
  color: var(--ink);
  font-weight: 950;
  transform: translate(-50%, -50%);
}

.ute-tide-events {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ute-tide-events article,
.forecast-hour {
  border: 1px solid rgba(232, 211, 172, 0.2);
  border-radius: 8px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.22);
}

.ute-tide-events strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
}

.forecast-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.forecast-hour strong {
  display: block;
  margin: 6px 0;
  font-size: 24px;
}

.ute-empty {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
}

.ute-spot-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.ute-spot {
  border: 1px solid rgba(232, 211, 172, 0.2);
  border-radius: 8px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.18);
}

.ute-spot:first-child {
  grid-column: span 2;
}

.ute-spot-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
}

.ute-spot-heading b {
  color: var(--gold-strong);
  font-size: 20px;
}

.ute-spot strong {
  display: block;
  margin-bottom: 0;
  font-size: 18px;
}

.ute-spot p {
  margin: 0;
  color: rgba(248, 241, 229, 0.76);
  line-height: 1.45;
}

.ute-spot .ute-spot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.ute-spot span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border: 1px solid rgba(232, 211, 172, 0.24);
  border-radius: 999px;
  padding: 0 8px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 850;
}

.ute-spot.tone-good {
  border-color: rgba(98, 198, 157, 0.36);
  background: rgba(98, 198, 157, 0.1);
}

.ute-spot.tone-warn {
  border-color: rgba(245, 184, 91, 0.4);
  background: rgba(245, 184, 91, 0.12);
}

.ute-tips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.ute-tip-column {
  padding: clamp(18px, 3vw, 28px);
}

.ute-tip-column h2 {
  margin: 4px 0 16px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 0.95;
}

.ute-tip-list {
  display: grid;
  gap: 10px;
}

.ute-tip {
  border: 1px solid rgba(232, 211, 172, 0.2);
  border-radius: 8px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.18);
}

.ute-tip strong {
  display: block;
  margin-bottom: 7px;
  font-size: 18px;
}

.ute-tip p {
  margin: 0;
  color: rgba(248, 241, 229, 0.76);
  line-height: 1.45;
}

.ute-tip.tone-good {
  border-color: rgba(98, 198, 157, 0.36);
  background: rgba(98, 198, 157, 0.1);
}

.ute-tip.tone-warn {
  border-color: rgba(245, 184, 91, 0.4);
  background: rgba(245, 184, 91, 0.12);
}

.ute-tip.tone-muted {
  opacity: 0.82;
}

@media (max-width: 920px) {
  .site-header,
  .section-head,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero-grid,
  .brew-grid,
  .rute-dashboard,
  .ute-dashboard,
  .ute-tips,
  .ute-spot-list {
    grid-template-columns: 1fr;
  }

  .ute-spot:first-child {
    grid-column: auto;
  }

  .hero-copy,
  .island-panel {
    min-height: auto;
  }

  .island-panel {
    aspect-ratio: 4 / 3;
  }

  .rute-main-card,
  .rute-radar,
  .ute-main-card,
  .ute-sea-card {
    min-height: auto;
  }

  .rute-radar {
    aspect-ratio: 4 / 3;
  }

  .tap-grid,
  .beer-grid,
  .ute-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ute-metric-large {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 12px;
  }

  .site-header {
    padding-bottom: 14px;
  }

  .site-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-pill {
    min-width: 0;
    padding-inline: 8px;
    font-size: 14px;
  }

  .hero-copy {
    padding: 24px 18px;
  }

  .hero-stats,
  .home-statusbar,
  .tap-grid,
  .beer-grid,
  .rute-metrics,
  .ute-metric-grid,
  .ute-tide-events,
  .forecast-strip {
    grid-template-columns: 1fr;
  }

  .ute-metric-large {
    grid-column: auto;
  }

  .tap-card {
    grid-template-columns: 118px 1fr;
    grid-template-rows: auto;
  }

  .tap-card .card-media,
  .empty-tap {
    min-height: 152px;
  }

  .beer-card {
    grid-template-rows: 180px auto;
  }

  .brew-card {
    grid-template-columns: 120px 1fr;
    min-height: 190px;
  }

  .section,
  .page-title {
    padding: 20px 14px;
  }

  .hero-actions,
  .section-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .rute-toolbar,
  .viewpoint-tabs {
    display: grid;
    width: 100%;
  }

  .rute-vessel-row,
  .rute-passage-row {
    grid-template-columns: 1fr;
  }

  .map-label {
    font-size: 11px;
  }
}
