/* The Agent Sea · full-viewport Three.js scene with a glass HUD */
.sea-page { height: 100vh; height: 100dvh; overflow: hidden; background: #03040a; overscroll-behavior: none; }
.sea-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; display: block; touch-action: none; cursor: grab; z-index: 0; }
.sea-canvas.is-drag { cursor: grabbing; }
.sea-fallback { position: fixed; inset: 0; z-index: 0; background:
  radial-gradient(60% 30% at 50% 58%, rgba(231, 185, 79, 0.22), transparent 70%),
  linear-gradient(180deg, #02030a 0%, #070a1a 48%, #1a1408 58%, #04050b 100%); }
.sea-vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none; background:
  radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.7) 100%),
  linear-gradient(180deg, rgba(3, 4, 10, 0.7), transparent 11%, transparent 80%, rgba(3, 4, 10, 0.75)); }

.sg { background: linear-gradient(180deg, rgba(16, 16, 24, 0.62), rgba(8, 8, 13, 0.55)); border: 1px solid rgba(255, 255, 255, 0.08); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 240, 200, 0.05); border-radius: 14px; }

/* top bar */
.sea-top { position: fixed; z-index: 5; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 18px; padding: 18px clamp(16px, 3vw, 36px); }
.sea-logo { color: #fff; }
.sea-live { display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: #e9dcb8; border: 1px solid rgba(231, 185, 79, 0.3); border-radius: 100px; background: rgba(10, 10, 16, 0.5); }
.sea-live i { width: 7px; height: 7px; border-radius: 50%; background: #ff5a5a; box-shadow: 0 0 10px #ff5a5a; animation: seaBlink 1.6s ease-in-out infinite; }
@keyframes seaBlink { 50% { opacity: 0.25; } }
.sea-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 14px; }
.sea-nav a { color: #d6d6de; transition: color 0.2s; }
.sea-nav a:hover { color: var(--gold-1); }
.sea-nav__cta { padding: 9px 16px; border-radius: 3px; color: #1a1205 !important; font-weight: 600; font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; background: var(--gold); box-shadow: 0 10px 30px -10px rgba(231, 185, 79, 0.7); }

/* HUD */
.sea-hud { position: fixed; inset: 0; z-index: 4; pointer-events: none; }
.sea-hud > * { pointer-events: auto; }
.sea-intro { position: absolute; left: clamp(16px, 3vw, 36px); top: 92px; width: min(420px, calc(100vw - 32px)); padding: 26px 26px 24px; animation: seaIn 1.1s var(--ease) 0.2s both; }
.sea-eyebrow { margin: 0 0 10px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-2); }
.sea-intro h1 { margin: 0; font-family: var(--f-head); font-weight: 500; font-size: clamp(38px, 4.4vw, 58px); line-height: 1; letter-spacing: -0.035em; }
.sea-intro h1 span { background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sea-sub { margin: 14px 0 20px; color: #c7c7d2; font-size: 15px; line-height: 1.55; }
.sea-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 10px; overflow: hidden; }
.sea-stats > div { padding: 12px 12px 10px; background: rgba(8, 8, 13, 0.85); }
.sea-stats b { display: block; font-family: var(--f-head); font-weight: 500; font-size: 26px; letter-spacing: -0.02em; color: var(--gold-1); font-variant-numeric: tabular-nums; }
.sea-stats span { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.is-red { color: #ff7070 !important; }
.sea-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.sea-btn { padding: 11px 16px; border-radius: 3px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #e6e6ee; border: 1px solid rgba(231, 185, 79, 0.45); transition: background 0.25s, color 0.25s; }
.sea-btn:hover { background: rgba(231, 185, 79, 0.1); }
.sea-btn--gold { color: #1a1205; border: 0; background: var(--gold); box-shadow: 0 10px 30px -12px rgba(231, 185, 79, 0.8); }
.sea-btn--gold:hover { background: var(--gold); filter: brightness(1.06); }

.sea-log { position: absolute; right: clamp(16px, 3vw, 36px); top: 92px; width: 330px; max-height: calc(100vh - 220px); display: flex; flex-direction: column; overflow: hidden; animation: seaIn 1.1s var(--ease) 0.45s both; }
.sea-log header { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.sea-log header b { font-family: var(--f-head); font-weight: 500; font-size: 15px; }
.sea-log header span { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.sea-log ol { list-style: none; margin: 0; padding: 6px 8px 10px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.sea-log li { display: grid; grid-template-columns: 8px 1fr auto; gap: 10px; align-items: center; padding: 8px 8px; border-radius: 8px; font-family: var(--f-mono); font-size: 11.5px; color: #cfcfd8; animation: logIn 0.6s var(--ease) both; }
.sea-log li i { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 8px var(--up); }
.sea-log li.bad i { background: #ff4d4d; box-shadow: 0 0 8px #ff4d4d; }
.sea-log li em { font-style: normal; font-size: 10px; letter-spacing: 0.08em; color: var(--up); }
.sea-log li.bad em { color: #ff7070; }
.sea-log li.bad { background: rgba(255, 60, 60, 0.05); }
.sea-log li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sea-log li b { color: var(--gold-1); font-weight: 500; }
@keyframes logIn { from { opacity: 0; transform: translateY(-8px); } }

.sea-legend { position: absolute; left: clamp(16px, 3vw, 36px); bottom: 26px; display: grid; gap: 9px; padding: 14px 16px; font-size: 12.5px; color: #c4c4cf; animation: seaIn 1.1s var(--ease) 0.6s both; }
.sea-legend div { display: flex; align-items: center; gap: 10px; }
.sea-legend b { color: #fff; font-weight: 500; margin-right: 4px; }
.sea-legend svg { width: 18px; height: 18px; flex: none; }
.lg-light { width: 18px; height: 18px; flex: none; border-radius: 50%; background: radial-gradient(circle, #fff3c8 0 22%, rgba(255, 214, 130, 0.45) 40%, transparent 70%); }
.lg-dot { width: 9px; height: 9px; margin: 0 4.5px; flex: none; border-radius: 50%; }
.lg-dot--ok { background: var(--up); box-shadow: 0 0 10px var(--up); }
.lg-dot--bad { background: #ff4d4d; box-shadow: 0 0 10px #ff4d4d; }

.sea-hint { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); margin: 0; white-space: nowrap; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(220, 220, 230, 0.55); pointer-events: none !important; }
.sea-hint span { color: var(--gold-2); margin-right: 6px; }

/* tooltip + lighthouse focus */
.sea-tip { position: fixed; z-index: 6; left: 0; top: 0; min-width: 190px; padding: 11px 13px; display: grid; gap: 3px; pointer-events: none; opacity: 0; transform: translate3d(-999px, -999px, 0); transition: opacity 0.2s; border-radius: 10px; }
.sea-tip.is-on { opacity: 1; }
.sea-tip b { font-family: var(--f-mono); font-size: 12px; font-weight: 500; color: var(--gold-1); }
.sea-tip span { font-size: 12.5px; color: #e6e6ee; }
.sea-tip em { justify-self: start; font-style: normal; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 7px; border-radius: 4px; color: #0a1a10; background: var(--up); }
.sea-tip em.bad { color: #1a0505; background: #ff5a5a; }
.sea-tip em.sail { color: #1a1205; background: var(--gold-2); }
.sea-focus { position: fixed; z-index: 6; left: 50%; bottom: 74px; transform: translate(-50%, 20px); padding: 14px 18px; min-width: 260px; text-align: center; display: grid; gap: 4px; opacity: 0; pointer-events: none; transition: opacity 0.4s, transform 0.6s var(--ease); }
.sea-focus.is-on { opacity: 1; transform: translate(-50%, 0); }
.sea-focus b { font-family: var(--f-head); font-weight: 500; font-size: 17px; }
.sea-focus > span { font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.sea-focus__row { display: flex; justify-content: center; gap: 18px; margin-top: 4px; font-family: var(--f-mono); font-size: 11px; color: var(--dim); }
.sea-focus__row b { font-size: 13px; color: var(--gold-1); font-family: var(--f-mono); }

@keyframes seaIn { from { opacity: 0; transform: translateY(14px); } }

@media (max-width: 1100px) { .sea-log { width: 290px; } .sea-legend { display: none; } }
@media (max-width: 760px) {
  .sea-top { padding: 14px 16px; gap: 10px; }
  .sea-nav a:not(.sea-nav__cta) { display: none; }
  .sea-nav__cta { padding: 8px 12px; font-size: 11px; }
  .sea-live { display: none; }
  .sea-intro { top: 70px; left: 16px; right: 16px; width: auto; padding: 18px 18px 16px; }
  .sea-intro h1 { font-size: 34px; }
  .sea-sub { margin: 10px 0 14px; font-size: 13.5px; }
  .sea-stats b { font-size: 20px; }
  .sea-ctas { display: none; }
  .sea-log { top: auto; bottom: 16px; left: 16px; right: 16px; width: auto; max-height: 150px; }
  .sea-log li:nth-child(n+4) { display: none; }
  .sea-hint { display: none; }
  .sea-focus { bottom: 180px; }
}
@media (prefers-reduced-motion: reduce) { .sea-intro, .sea-log, .sea-legend, .sea-log li { animation: none; } .sea-live i { animation: none; } }
.no-webgl .sea-hint { display: none; }
