:root {
  color-scheme: dark;
  --navy: #061b32;
  --navy-2: #0a2948;
  --panel: rgba(10, 39, 66, .78);
  --line: rgba(142, 190, 224, .18);
  --white: #f5f9fc;
  --muted: #9bb3c7;
  --cyan: #53c8ed;
  --blue: #1689c5;
  --green: #4ce0a0;
}
* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; margin: 0; }
body {
  min-height: 100vh; overflow: hidden; position: relative;
  background: radial-gradient(ellipse at 76% 8%, #123d60 0, transparent 36%), linear-gradient(135deg, #06182c, #092b49 58%, #061b32);
  color: var(--white); font-family: "DM Sans", Arial, sans-serif;
}
.ambient { position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.ambient-one { width: 38vw; height: 38vw; right: -13vw; bottom: -22vw; background: radial-gradient(circle, rgba(22,137,197,.18), transparent 68%); }
.ambient-two { width: 28vw; height: 28vw; left: -16vw; top: 18vh; background: radial-gradient(circle, rgba(83,200,237,.09), transparent 70%); }
.grid-overlay { position: absolute; inset: 0; pointer-events: none; opacity: .18; background-image: linear-gradient(rgba(174,211,236,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(174,211,236,.08) 1px, transparent 1px); background-size: 54px 54px; mask-image: linear-gradient(to bottom, black, transparent 88%); }
.app-shell { position: relative; z-index: 1; width: min(1600px, 100%); min-height: 100vh; margin: auto; padding: 0 clamp(26px, 6vw, 100px); display: flex; flex-direction: column; }
.topbar { min-height: 94px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand, .topbar-right, .feed-state { display: flex; align-items: center; }
.brand { gap: 17px; color: inherit; text-decoration: none; }
.brand-mark, .footer-brand { font-family: Manrope, sans-serif; font-weight: 800; letter-spacing: -.08em; }
.brand-mark { font-size: 31px; }
.brand-divider { width: 1px; height: 27px; background: rgba(255,255,255,.25); }
.brand-caption { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .2em; }
.topbar-right { gap: clamp(20px, 4vw, 58px); }
.feed-state { gap: 10px; color: #b5c9d9; font-size: 10px; font-weight: 700; letter-spacing: .15em; }
.feed-dot { width: 7px; height: 7px; border-radius: 50%; background: #f0b75b; box-shadow: 0 0 12px currentColor; }
.feed-dot.online { background: var(--green); }
.feed-dot.offline { background: #ff7777; }
.clock { color: var(--white); font: 600 15px Manrope, sans-serif; font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.board { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: clamp(34px, 7vh, 88px) 0; }
.intro { margin-bottom: 25px; display: flex; align-items: end; justify-content: space-between; }
.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--cyan); font-size: 11px; font-weight: 800; letter-spacing: .24em; }
.eyebrow-line { width: 29px; height: 2px; background: var(--cyan); }
.intro-note { margin: 0; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .18em; }
.route-arrow { padding: 0 8px; color: var(--cyan); }
.departure-panel { position: relative; overflow: hidden; padding: clamp(30px, 5vw, 72px); border: 1px solid rgba(135,190,225,.24); border-radius: 5px; background: linear-gradient(112deg, rgba(12,48,78,.94), rgba(7,31,54,.88)); box-shadow: 0 28px 90px rgba(0,0,0,.22), inset 0 1px rgba(255,255,255,.06); }
.departure-panel::before { content: ""; position: absolute; width: 5px; left: 0; top: 0; bottom: 0; background: linear-gradient(var(--cyan), var(--blue)); }
.departure-panel::after { content: ""; position: absolute; width: 360px; height: 360px; right: -120px; top: -210px; border: 1px solid rgba(83,200,237,.12); border-radius: 50%; box-shadow: 0 0 0 34px rgba(83,200,237,.025), 0 0 0 70px rgba(83,200,237,.02); pointer-events: none; }
.departure-main { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.field-label { color: #8daec5; font-size: 10px; font-weight: 800; letter-spacing: .2em; }
#destination { max-width: 100%; margin: 18px 0 15px; font: 800 clamp(42px, 6.2vw, 92px)/.98 Manrope, sans-serif; letter-spacing: -.055em; overflow-wrap: anywhere; text-transform: uppercase; }
.vessel-row { display: flex; align-items: center; gap: 11px; color: #b5cadd; font-size: clamp(13px, 1.35vw, 18px); }
.vessel-icon { color: var(--cyan); }
.time-block { text-align: right; }
.departure-time { margin-top: 12px; color: var(--white); font: 800 clamp(76px, 13vw, 184px)/.95 Manrope, sans-serif; letter-spacing: -.075em; font-variant-numeric: tabular-nums; white-space: nowrap; text-shadow: 0 5px 45px rgba(83,200,237,.12); }
.departure-date { margin-top: 13px; color: var(--cyan); font-size: clamp(13px, 1.5vw, 19px); font-weight: 800; letter-spacing: .22em; }
.panel-bottom { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; margin-top: clamp(34px, 5vh, 60px); padding-top: 22px; border-top: 1px solid var(--line); }
.route-track { display: flex; align-items: center; width: 76px; }
.track-point { width: 7px; height: 7px; border: 2px solid var(--cyan); border-radius: 50%; }
.track-line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--cyan), rgba(83,200,237,.2)); }
.panel-caption { color: #8daec5; font-size: 9px; font-weight: 700; letter-spacing: .19em; }
.info-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 22px; padding: 23px 28px; border: 1px solid var(--line); background: rgba(4,22,40,.34); }
.info-item { display: flex; align-items: center; gap: 14px; min-width: 0; }
.info-icon { color: var(--cyan); font-size: 21px; }
.info-item div { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.info-label { color: #7898b0; font-size: 9px; font-weight: 800; letter-spacing: .17em; }
.info-item strong { color: #dce8f0; font-size: 11px; font-weight: 700; letter-spacing: .08em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.footer { min-height: 74px; display: flex; align-items: center; gap: 15px; border-top: 1px solid var(--line); color: #829eb3; }
.footer-brand { color: #d9e7f0; font-size: 18px; }
.footer-message, .footer-right { font-size: 9px; font-weight: 700; letter-spacing: .16em; }
.footer-right { margin-left: auto; }
.footer-right span { padding: 0 7px; color: var(--cyan); }
.update-flash { position: fixed; inset: 0; z-index: 5; pointer-events: none; opacity: 0; background: radial-gradient(ellipse at 50% 50%, rgba(83,200,237,.12), transparent 60%); }
.update-flash.active { animation: flash .85s ease-out; }
.changed { animation: reveal .65s cubic-bezier(.2,.75,.25,1); }
@keyframes reveal { from { opacity: .15; transform: translateY(12px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes flash { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; } }
@media (max-width: 760px) {
  body { overflow: auto; }
  .app-shell { min-height: 100svh; padding: 0 22px; }
  .topbar { min-height: 76px; }
  .brand-mark { font-size: 25px; }
  .brand-caption { font-size: 8px; }
  .topbar-right { gap: 12px; flex-direction: column-reverse; align-items: flex-end; }
  .feed-state { font-size: 8px; }
  .clock { font-size: 13px; }
  .board { padding: 50px 0; }
  .intro { align-items: flex-start; flex-direction: column; gap: 14px; }
  .departure-main { grid-template-columns: 1fr; gap: 35px; }
  .time-block { text-align: left; }
  .departure-time { font-size: clamp(86px, 23vw, 150px); }
  .info-strip { grid-template-columns: 1fr; gap: 19px; padding: 22px; }
  .footer { flex-wrap: wrap; padding: 18px 0; }
  .footer-right { width: 100%; margin-left: 0; }
}
@media (max-width: 390px) { .brand-divider, .brand-caption { display: none; } .feed-state { letter-spacing: .08em; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; } }


/* Port kiosk presentation: optimized for long-distance viewing */
.app-shell {
  width: min(1840px, 100%);
  padding-inline: clamp(34px, 5vw, 110px);
  animation: board-enter 900ms cubic-bezier(.18,.72,.22,1) both;
}
.topbar { min-height: clamp(96px, 11vh, 138px); }
.brand-mark { font-size: clamp(34px, 2.6vw, 48px); }
.brand-caption { font-size: clamp(12px, .85vw, 16px); }
.feed-state { font-size: clamp(12px, .9vw, 16px); }
.clock { font-size: clamp(20px, 1.55vw, 28px); }
.board { padding-block: clamp(42px, 6vh, 82px); }
.intro { margin-bottom: clamp(24px, 3vh, 38px); }
.eyebrow { font-size: clamp(15px, 1.05vw, 19px); }
.intro-note { font-size: clamp(13px, .95vw, 17px); }
.departure-panel {
  padding: clamp(42px, 5vw, 88px);
  border-radius: 8px;
  box-shadow: 0 32px 100px rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.08);
}
.departure-main { gap: clamp(44px, 5vw, 92px); }
.field-label {
  font-size: clamp(15px, 1.05vw, 19px);
  letter-spacing: .18em;
}
#destination {
  margin-block: 22px 20px;
  font-size: clamp(64px, 7vw, 124px);
  line-height: .98;
  letter-spacing: -.045em;
}
.vessel-row { font-size: clamp(20px, 1.65vw, 30px); gap: 16px; }
.departure-time {
  font-size: clamp(100px, 14vw, 224px);
  letter-spacing: -.065em;
}
.departure-date {
  margin-top: 18px;
  font-size: clamp(19px, 1.65vw, 30px);
}
.panel-bottom { margin-top: clamp(42px, 5vh, 68px); padding-top: 28px; }
.route-track { width: 108px; }
.track-point { width: 10px; height: 10px; }
.panel-caption { font-size: clamp(13px, .95vw, 17px); }
.info-strip {
  gap: 28px;
  margin-top: 28px;
  padding: 28px 34px;
}
.info-item { gap: 18px; }
.info-icon { font-size: 29px; }
.info-item div { gap: 8px; }
.info-label { font-size: clamp(12px, .85vw, 16px); }
.info-item strong { font-size: clamp(15px, 1vw, 18px); }
.footer { min-height: 88px; }
.footer-brand { font-size: 24px; }
.footer-message, .footer-right { font-size: clamp(12px, .85vw, 16px); }

/* Smooth entrance after a full page reload */
@keyframes board-enter {
  from { opacity: 0; transform: translateY(22px) scale(.992); filter: blur(5px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* A restrained sweep when fresh departure information arrives */
.departure-panel.data-updated {
  animation: panel-update 1.05s cubic-bezier(.2,.75,.25,1);
}
@keyframes panel-update {
  0% { box-shadow: 0 28px 90px rgba(0,0,0,.22), inset 0 1px rgba(255,255,255,.06); }
  32% { box-shadow: 0 0 0 2px rgba(83,200,237,.42), 0 0 70px rgba(83,200,237,.2), 0 28px 90px rgba(0,0,0,.22); }
  100% { box-shadow: 0 28px 90px rgba(0,0,0,.22), inset 0 1px rgba(255,255,255,.06); }
}
.changed { animation: reveal 850ms cubic-bezier(.16,.8,.25,1); }

@media (max-width: 760px) {
  .app-shell { padding-inline: 22px; }
  .topbar { min-height: 76px; }
  .brand-mark { font-size: 25px; }
  .brand-caption { font-size: 8px; }
  .feed-state { font-size: 8px; }
  .board { padding: 50px 0; }
  .eyebrow { font-size: 11px; }
  .field-label { font-size: 10px; }
  #destination { font-size: clamp(42px, 6.2vw, 92px); }
  .vessel-row { font-size: clamp(13px, 1.35vw, 18px); }
  .departure-time { font-size: clamp(86px, 23vw, 150px); }
  .departure-date { font-size: clamp(13px, 1.5vw, 19px); }
  .panel-caption { font-size: 9px; }
  .info-label { font-size: 9px; }
  .info-item strong { font-size: 11px; }
  .footer-brand { font-size: 18px; }
  .footer-message, .footer-right { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .app-shell, .departure-panel.data-updated, .changed, .update-flash.active {
    animation: none !important;
  }
}
