/* A coastal voyage desk inside the shared harbour, with the real live chart. */
.front-shell .adventure-setup {
  --adventure-chart-height: 330px;
  container: adventure-setup / inline-size;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
}
.front-shell .adventure-setup .adventure-browse-header { display: grid; grid-template-columns: minmax(0, 1fr); gap: 15px; margin-bottom: 17px; }
.front-shell .adventure-setup .adventure-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 0; }
.front-shell .adventure-setup .adventure-heading h1 { margin: 5px 0 4px; font: 700 34px/1.05 var(--condensed); letter-spacing: -.3px; }
.front-shell .adventure-setup .adventure-heading p { margin: 0; color: var(--front-muted); font-size: 11px; line-height: 1.6; }
.front-shell .adventure-setup .adventure-heading .eyebrow { font-size: 8px; letter-spacing: 1.1px; }
.front-shell .adventure-setup .adventure-coast-byline { max-width: 170px; color: #6d8879; font-size: 10px; font-style: italic; line-height: 1.6; text-align: right; }
.front-shell .adventure-setup .adventure-region-picker { max-width: none; margin: 0; gap: 12px; }
.front-shell .adventure-setup .adventure-region-card {
  --region-coast: url('/public/assets/adventure/phuket-art-mask.svg');
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  gap: 3px;
  min-height: 74px;
  padding: 11px 14px;
  border: 1px solid #376e6038;
  border-radius: 11px;
  background: radial-gradient(ellipse at 90% 80%, #b3d4bf4d, transparent 65%), #fffaf0;
  color: var(--front-ink);
  box-shadow: 0 3px 12px #113f4308;
}
.front-shell .adventure-setup .adventure-region-card[data-adventure-region="marmaris"] { --region-coast: url('/public/assets/adventure/marmaris-art-mask.svg'); }
/* Existing geographic masks give each card its own truthful coast silhouette. */
.front-shell .adventure-setup .adventure-region-card::before { content: ''; position: absolute; z-index: -1; right: -7px; bottom: -26px; width: 148px; height: 148px; background: linear-gradient(145deg, #809d65, #3c867a); mask: var(--region-coast) center / contain no-repeat; opacity: .28; pointer-events: none; }
.front-shell .adventure-setup .adventure-region-card > span { max-width: calc(100% - 45px); font-size: 8px; font-weight: 600; letter-spacing: 1.25px; }
.front-shell .adventure-setup .adventure-region-card > strong { max-width: calc(100% - 45px); margin: 0; font: 700 26px/1.04 var(--condensed); letter-spacing: -.2px; }
.front-shell .adventure-setup .adventure-region-card > small { grid-column: 1; grid-row: auto; max-width: calc(100% - 30px); padding: 0; font-size: 9px; line-height: 1.4; text-align: left; }
.front-shell .adventure-setup .adventure-region-card > i { display: grid; place-items: center; position: absolute; right: 14px; top: 14px; width: 27px; height: 27px; border: 1px solid #3b74632b; border-radius: 50%; font-size: 17px; color: #578272; opacity: 1; }
.front-shell .adventure-setup .adventure-region-card[aria-pressed="true"] { border-color: #245f58; background: radial-gradient(ellipse at 85% 100%, #3e867867, transparent 65%), linear-gradient(125deg, #174b4b, #236a60); color: #fff5de; box-shadow: inset 0 0 0 1px #fff5de1a, 0 4px 14px #174b4b1c; }
.front-shell .adventure-setup .adventure-region-card[aria-pressed="true"]::before { background: linear-gradient(145deg, #c8d89c, #8eb69a); opacity: .58; }
.front-shell .adventure-setup .adventure-region-card[aria-pressed="true"] > span { color: #f5bb95; opacity: 1; }
.front-shell .adventure-setup .adventure-region-card[aria-pressed="true"] > small { color: #d0e3d0; }
.front-shell .adventure-setup .adventure-region-card[aria-pressed="true"] > i { color: #fff2d3; border-color: #cce6d24a; background: #f8ecd50c; }
.front-shell .adventure-setup .adventure-region-card:hover { border-color: #3d8874; }
.front-shell .adventure-setup .adventure-planner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.front-shell .adventure-setup .adventure-chart-column { display: flex; flex-direction: column; align-self: start; overflow: hidden; padding: 5px; border: 1px solid #376e6038; border-radius: 14px; background: linear-gradient(150deg, #fff6e5, #e3eadd); box-shadow: 0 5px 19px #164e4b12; }
.front-shell .adventure-setup .adventure-chart { width: 100%; height: var(--adventure-chart-height); min-height: 330px; aspect-ratio: auto; border-radius: 9px; background: #165d68; }
.front-shell .adventure-setup .adventure-chart::after { content: ''; position: absolute; z-index: 1; inset: 0; border: 1px solid #fff6df33; border-radius: inherit; background: linear-gradient(180deg, #123f4317, transparent 27%, transparent 76%, #123f4324); box-shadow: inset 0 0 20px #123f4310; pointer-events: none; }
.front-shell .adventure-setup .adventure-chart canvas { border-radius: 9px; }
.front-shell .adventure-setup .adventure-chart-tag { display: flex; align-items: center; gap: 6px; position: absolute; z-index: 2; top: 12px; left: 12px; right: auto; bottom: auto; max-width: calc(100% - 78px); padding: 8px 9px; border: 1px solid #fff8e65e; border-radius: 5px; background: #fff5dfed; color: #315f55; box-shadow: 0 2px 9px #123f431c; font-size: 7px; font-weight: 600; line-height: 1.4; letter-spacing: .7px; }
.front-shell .adventure-setup .adventure-chart-tag::before { content: ''; flex: 0 0 5px; width: 5px; height: 5px; border-radius: 50%; background: #ae5136; }
.front-shell .adventure-setup #adventure-chart-view { z-index: 2; left: 12px; bottom: 12px; min-height: 44px; padding: 10px 11px; border: 1px solid #e8f0df66; border-radius: 7px; background: #133f43e6; color: #fff3d6; box-shadow: 0 3px 12px #103b4330; font-size: 8px; letter-spacing: .4px; }
.front-shell .adventure-setup .adventure-chart-zoom { z-index: 2; top: 12px; right: 12px; gap: 5px; }
.front-shell .adventure-setup .adventure-chart-zoom button { width: 44px; height: 44px; border: 1px solid #e8f0df66; border-radius: 7px; background: #133f43e6; color: #fff3d6; box-shadow: 0 3px 12px #103b4330; font-size: 21px; }
.front-shell .adventure-setup :is(#adventure-chart-view, .adventure-chart-zoom button):hover { border-color: #f4c6a5; background: #245f5be8; }
.front-shell .adventure-setup #adventure-chart-loading { z-index: 3; max-width: calc(100% - 28px); padding: 11px 13px; border: 1px solid #d8e6ca4d; background: #174b4bea; font-size: 10px; line-height: 1.5; white-space: normal; text-align: center; }
.front-shell .adventure-setup .adventure-departure-panel { margin-top: 13px; padding: 0; border: 0; background: transparent; }
.front-shell .adventure-setup .adventure-departure-label { color: #21574f; font: 700 9px/1.4 var(--body); letter-spacing: .7px; }
.front-shell .adventure-setup .adventure-departure-mode { gap: 6px; padding: 0; margin-top: 6px; border: 0; border-radius: 0; background: transparent; }
.front-shell .adventure-setup .adventure-departure-mode button { min-height: 44px; padding: 7px 6px; border: 1px solid #a1bdac70; border-radius: 7px; background: #eef2e7; font-size: 10px; line-height: 1.4; }
.front-shell .adventure-setup .adventure-departure-mode button[aria-pressed="true"] { background: #245f58; color: #fff6de; box-shadow: 0 2px 6px #164e4b16; }
.front-shell .adventure-setup .adventure-departure-panel label { margin-top: 8px; font-size: 0; line-height: 0; letter-spacing: 0; }
.front-shell .adventure-setup .adventure-departure-panel .nautical-select-trigger { margin-top: 0; }
.front-shell .adventure-setup .adventure-pin-status { margin-top: 12px; font-size: 10px; line-height: 1.6; }
.front-shell .adventure-setup .adventure-plan { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 0; border: 1px solid #376e6038; border-top: 3px solid #e6a07c; border-radius: 13px; background: linear-gradient(150deg, #fffdf4, #f8f5e8); box-shadow: 0 5px 19px #164e4b0a; }
.front-shell .adventure-setup .adventure-plan-body { flex: 1; min-height: 0; padding: 16px; overflow: visible; scrollbar-width: thin; scrollbar-color: #7b9f89 #fbf8ec; }
.front-shell .adventure-setup .adventure-launch-dock { position: static; z-index: 3; flex: 0 0 auto; padding: 12px 16px; border-top: 1px solid #376e6026; border-radius: 0 0 11px 11px; background: #faf7e9; box-shadow: 0 -3px 12px #164e4b08; }
.front-shell .adventure-setup .adventure-plan-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.front-shell .adventure-setup .adventure-plan-heading .eyebrow { flex: 0 0 auto; color: #ad563c; font-size: 8px; letter-spacing: 1.25px; }
.front-shell .adventure-setup .adventure-plan h2 { margin: 0; color: #21574f; font: 600 28px/1.15 var(--condensed); text-align: right; }
.front-shell .adventure-setup .adventure-boat-field { margin-top: 13px; }
.front-shell .adventure-setup .adventure-boat-field > span { margin-bottom: 6px; font-size: 8px; letter-spacing: .7px; }
.front-shell .adventure-setup #adventure-boat-picker { position: relative; min-height: 86px; gap: 11px; padding: 6px 10px; border: 1px solid #a1bdac70; border-radius: 10px; background: radial-gradient(ellipse at 15% 55%, #80b7a545, transparent 63%), linear-gradient(120deg, #e4eddf, #faf8ec); box-shadow: inset 0 1px #fffdf580; }
.front-shell .adventure-setup #adventure-boat-picker:hover { border-color: #568f7b; background: radial-gradient(ellipse at 15% 55%, #80b7a556, transparent 63%), #eaf0e1; }
.front-shell .adventure-setup #adventure-boat-picker .adventure-selected-boat { width: 74px !important; height: 74px !important; flex-basis: 74px !important; }
.front-shell .adventure-setup .adventure-selected-boat-copy small { font-size: 8px; }
.front-shell .adventure-setup .adventure-selected-boat-copy strong { margin: 4px 0; font: 600 23px/1.1 var(--condensed); }
.front-shell .adventure-setup .adventure-selected-boat-copy > span { font-size: 9px; line-height: 1.4; }
.front-shell .adventure-setup .adventure-controls-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 15px; margin-top: 13px; }
.front-shell .adventure-setup .adventure-control-field { min-width: 0; }
.front-shell .adventure-setup .adventure-control-field label { margin: 0; font-size: 9px; line-height: 1.5; letter-spacing: .4px; }
.front-shell .adventure-setup .adventure-control-field label small { float: none; display: block; margin: 2px 0 0; color: #6d8879; font-size: 8px; line-height: 1.4; }
.front-shell .adventure-setup .nautical-select-trigger { position: relative; display: block; min-height: 44px; margin-top: 6px; padding: 10px 29px 10px 10px; overflow: hidden; border: 1px solid #b1c8b8; border-radius: 7px; background: #fffdf5; color: #255f54; font-size: 12px; line-height: 1.5; white-space: nowrap; text-overflow: ellipsis; box-shadow: 0 2px 5px #164e4b06; }
.front-shell .adventure-setup .nautical-select-trigger:hover:not(:disabled) { border-color: #639581; background: #f5f8ed; }
.front-shell .adventure-setup .nautical-select-trigger::after { position: absolute; top: 50%; right: 10px; margin: 0; transform: translateY(-50%); }
.front-shell .adventure-setup .adventure-scale-summary { margin: 7px 0 0; color: #6b8374; font-size: 10px; line-height: 1.5; }
.front-shell .adventure-setup .adventure-scale-summary strong { font-weight: 500; }
.front-shell .adventure-setup .adventure-scale-summary span { margin-top: 2px; }
.front-shell .adventure-setup .adventure-forecast { margin-top: 13px; padding: 11px 12px; border: 1px solid #174b4b; border-radius: 9px; background: radial-gradient(ellipse at 100% 0%, #4085735e, transparent 70%), #215d57; color: #e3edd8; box-shadow: inset 0 1px #d5eedb15; font-size: 9px; line-height: 1.55; letter-spacing: .3px; }
.front-shell .adventure-setup #adventure-weather-summary { flex-wrap: nowrap; gap: 9px; margin-top: 8px; color: #fff5d8; font: 600 22px/1.1 var(--condensed); letter-spacing: -.15px; }
.front-shell .adventure-setup #adventure-weather-summary small { margin-top: 5px; color: #c9dfcc; font: 500 8px/1.4 var(--body); letter-spacing: .35px; }
.front-shell .adventure-setup .adventure-demo-label { color: #f5ba94; }
.front-shell .adventure-setup .adventure-hour-strip { gap: 5px; margin: 9px 0 12px; padding-bottom: 4px; }
.front-shell .adventure-setup .adventure-hour-strip button { flex-basis: 49px; min-height: 56px; padding: 6px 5px; border: 1px solid #c7d5c447; border-radius: 7px; background: #f2f0e2; color: #3e6d5e; }
.front-shell .adventure-setup .adventure-hour-strip button:hover { border-color: #729e84; background: #e6eedd; }
.front-shell .adventure-setup .adventure-hour-strip button:is([aria-pressed="true"], :first-child) { border-color: #d79671; background: #f5d1b8; color: #8d4936; box-shadow: inset 0 0 0 1px #d796711f; }
.front-shell .adventure-setup .adventure-hour-strip small, .front-shell .adventure-setup .adventure-hour-strip b { font-size: 8px; line-height: 1.4; }
.front-shell .adventure-setup .adventure-hour-strip span { margin: 3px; font-size: 15px; line-height: 1.1; }
.front-shell .adventure-setup #adventure-start { position: static; display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 50px; margin: 0; padding: 12px 16px; border: 1px solid #dc9874; border-radius: 8px; background: #f5ad86; color: #214f46; font: 700 17px/1.2 var(--condensed); letter-spacing: .9px; box-shadow: 0 3px 9px #ad563c16; }
.front-shell .adventure-setup .adventure-launch-dock #adventure-resume:not([hidden]) { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; margin-top: 6px; padding: 10px 8px; border: 0; background: none; color: #356c5c; font-size: 9px; line-height: 1.5; letter-spacing: .5px; }
.front-shell .adventure-setup .adventure-data-actions { justify-content: space-between; gap: 6px 12px; margin: 4px 0 0; }
.front-shell .adventure-setup .adventure-data-actions button { min-height: 44px; padding: 8px 0; font-size: 8px; line-height: 1.5; }
.front-shell .adventure-setup .adventure-fine-print { margin: 12px 0 0; color: #728677; font-size: 10px; line-height: 1.65; }
.front-shell .adventure-setup #adventure-start > span:last-child { font: 500 23px/1 var(--body); }
.front-shell .adventure-setup :is(button, canvas):focus-visible { outline: 3px solid #2d7b76; outline-offset: 3px; }
.front-shell .adventure-setup .adventure-chart :is(button, canvas):focus-visible { outline-color: #fac6a0; }
.front-shell .adventure-setup .adventure-chart canvas:focus-visible { outline-offset: -5px; }

@container adventure-setup (min-width: 620px) {
  .front-shell .adventure-setup .adventure-browse-header { grid-template-columns: 210px minmax(0, 1fr); align-items: center; gap: 18px; }
  .front-shell .adventure-setup .adventure-heading { display: block; }
  .front-shell .adventure-setup .adventure-coast-byline { display: none; }
  .front-shell .adventure-setup .adventure-region-card::before { right: -14px; bottom: -35px; width: 130px; height: 130px; }
  .front-shell .adventure-setup .adventure-region-card > i { width: 23px; height: 23px; right: 11px; top: 11px; font-size: 15px; }
  .front-shell .adventure-setup .adventure-planner { --adventure-chart-height: clamp(340px, calc(100dvh - 350px), 430px); grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr); align-items: start; }
  .front-shell .adventure-setup .adventure-chart { height: var(--adventure-chart-height); min-height: 340px; }
  .front-shell .adventure-setup .adventure-controls-grid { gap: 10px; }
  .front-shell .adventure-setup .adventure-plan-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .front-shell .adventure-setup .adventure-plan h2 { text-align: left; }
}
@container adventure-setup (max-width: 500px) {
  .front-shell .adventure-setup .adventure-heading { gap: 10px; }
  .front-shell .adventure-setup .adventure-heading h1 { font-size: 34px; }
  .front-shell .adventure-setup .adventure-heading p { font-size: 10px; }
  .front-shell .adventure-setup .adventure-coast-byline { display: none; }
  .front-shell .adventure-setup .adventure-region-picker { gap: 9px; }
  .front-shell .adventure-setup .adventure-region-card { min-height: 82px; padding: 12px; gap: 4px; }
  .front-shell .adventure-setup .adventure-region-card::before { width: 95px; height: 95px; right: -14px; bottom: -21px; opacity: .18; }
  .front-shell .adventure-setup .adventure-region-card[aria-pressed="true"]::before { opacity: .4; }
  .front-shell .adventure-setup .adventure-region-card > strong { max-width: 100%; font-size: 27px; }
  .front-shell .adventure-setup .adventure-region-card > small { max-width: 100%; grid-column: 1; grid-row: auto; font-size: 8px; text-align: left; }
  .front-shell .adventure-setup .adventure-region-card > i { right: 9px; top: 9px; width: 23px; height: 23px; font-size: 15px; }
  .front-shell .adventure-setup .adventure-chart { height: 300px; min-height: 300px; }
  .front-shell .adventure-setup .adventure-plan-body { padding: 15px; }
  .front-shell .adventure-setup .adventure-plan h2 { font-size: 23px; }
  .front-shell .adventure-setup .adventure-controls-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .front-shell .adventure-setup .adventure-control-field label small { float: right; margin: 0; }
}
.adventure-world-note {margin:12px 0;color:#456f6b;font-size:11px;line-height:1.6}
@media(min-width:900px){
  .front-shell .adventure-setup .adventure-plan{max-height:min(550px,calc(100dvh - 360px))}
  .front-shell .adventure-setup .adventure-plan-body{overflow-y:auto}
}
/* Harbor races retain the normal race metrics and add data provenance. */
.harbor-conditions{position:absolute;top:calc(100% + 8px);right:0;max-width:100%;display:grid;gap:3px;padding:8px 12px;border-radius:9px;background:#fff8e8ed;box-shadow:0 3px 12px #062b3426;color:#174954;pointer-events:none}
.harbor-conditions strong{font-size:12px;letter-spacing:.3px}
.harbor-conditions small{font-size:10px;line-height:1.3}
.has-harbor-conditions .adventure-map-credit{position:absolute;right:22px;bottom:8px;z-index:7;font-size:9px;line-height:1.3;color:#f5f4dc;text-shadow:0 1px 3px #164957;text-decoration:underline;text-underline-offset:2px;max-width:calc(100vw - 40px)}
#adventure-activity-field{margin-bottom:18px}
#adventure-course-note{font-size:12px;line-height:1.5;color:#53777a;margin:8px 0 0}
@media(max-width:740px){.adventure-region-picker{grid-template-columns:repeat(3,minmax(0,1fr))}.adventure-region-card>strong{font-size:18px}.adventure-region-card>small{font-size:9px}.harbor-conditions{padding:6px 9px;max-width:calc(100% - 98px)}.harbor-conditions strong{font-size:11px}.harbor-conditions small{font-size:8px}}
@media(pointer:coarse),(any-pointer:coarse),(max-width:1200px){
  .has-harbor-conditions .race-leaderboard{top:calc(var(--adventure-hud-bottom) + 64px)}
  .has-harbor-conditions #hud-lap>small{font-size:8px}
}
@media(max-width:650px) and (orientation:portrait){
  .has-harbor-conditions .rig-trim-panel{max-width:calc(100% - var(--adventure-hud-inset) - var(--adventure-hud-right) - 148px)}
}
