/* Every harbour page shares the home screen's clubhouse frame. */
.front-shell {
  --harbour-line: #305f5426;
  --harbour-paper: #fff9ed;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}
.front-shell::after {
  background: linear-gradient(180deg, #fff5e797, #fff5e736 40%, #123f4336 80%, #fff5e775);
}
.front-shell .front-header {
  width: min(100%, 1340px);
  min-height: 108px;
  margin-inline: auto;
  padding: 20px 44px 10px;
}
.front-shell .front-brand-logo { width: 158px; }
.front-shell .front-player {
  gap: 22px;
  padding: 10px 16px;
  border: 1px solid #fff8e85e;
  border-radius: 12px;
  background: #fff9edb8;
  backdrop-filter: blur(12px);
}
.front-shell .front-settings { min-height: 44px; padding-left: 19px; }
.front-shell .front-subnav {
  width: min(calc(100% - 88px), 1210px);
  min-height: 64px;
  margin: 10px auto 0;
  padding: 7px 16px;
  gap: 22px;
  border: 1px solid #fffaf0cc;
  border-radius: 13px;
  background: #fff9edf2;
  box-shadow: 0 5px 20px #113f4312;
}
.front-shell .front-back { flex-shrink: 0; min-height: 44px; font-size: 9px; }
.front-shell .front-nav { min-width: 0; min-height: 44px; align-items: center; gap: 5px; overflow-x: auto; }
.front-shell .front-nav button {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 19px;
  line-height: 1.2;
  flex-shrink: 0;
}
.front-shell .front-nav button:hover { background: #e3eddf; color: var(--front-ink); }
.front-shell .front-nav button[aria-current] { background: #f9dcc7; border-color: #dcac8e73; color: #a44432; }
.front-shell .front-location { font-size: 8px; }
.front-shell main {
  width: min(calc(100% - 88px), 1210px);
  min-width: 0;
  min-height: calc(100svh - 270px);
  margin: 18px auto 24px;
  padding: 30px;
  border: 1px solid #fffaf0cc;
  border-radius: 20px;
  background: #fff9edf5;
  box-shadow: 0 16px 60px #113f4329;
}
.front-shell main > *, .front-shell :is(.shop-catalog, .shop-layout, .online-main, .online-side) { min-width: 0; }
.front-shell .front-trial-note {
  margin-bottom: 21px;
  padding: 11px 13px;
  border: 1px solid #d7e2d1;
  border-radius: 8px;
  background: #e7eee16b;
  font-size: 8px;
  letter-spacing: .7px;
}
.front-shell .front-trial-note span { font-size: 10px; }
.front-shell .front-section-nav { gap: 8px; margin-bottom: 25px; padding-bottom: 14px; border-color: var(--harbour-line); }
.front-shell .front-section-nav button { min-height: 44px; padding: 10px 16px; border: 1px solid var(--harbour-line); border-radius: 8px; background: #edf1e5; font-size: 11px; }
.front-shell .front-section-nav button[aria-current] { border-color: #91b5a0; background: #dceadd; color: #1c655e; }
.front-shell .page-heading { align-items: center; gap: 20px; margin-bottom: 26px; }
.front-shell .page-heading h1 { margin-top: 8px; font-size: clamp(36px, 4.3vw, 55px); line-height: 1.05; letter-spacing: -.4px; }
.front-shell .page-heading p { max-width: 660px; font-size: 12px; line-height: 1.7; }
.front-shell .eyebrow { font-size: 9px; line-height: 1.5; letter-spacing: 1.3px; }
.front-shell :is(.season-badge, .shop-pod-tag) { flex-shrink: 0; padding: 10px 13px; border: 1px solid var(--harbour-line); border-radius: 8px; background: #e7eee167; font-size: 8px; }
body.front-end .front-shell :is(.fleet-class-group, .garage-card, .shop-card, .shop-side-card, .track-card, .record-stats article, .records-table, .empty-records, .online-panel) {
  border: 1px solid var(--harbour-line);
  border-image: none;
  border-radius: 12px;
  background: #fffdf5;
  box-shadow: 0 4px 15px #174b4b08;
}
.front-shell .fleet-class-group { overflow: hidden; }
.front-shell .fleet-class-group > summary { min-height: 78px; background: #e7eee15c; }
.front-shell .fleet-class-emblem { border-radius: 12px; }
.front-shell .fleet-class-heading h2 { font-size: 32px; }
.front-shell .fleet-class-description { line-height: 1.6; }
.front-shell .fleet-class-intro { line-height: 1.6; }
.front-shell .garage-card { overflow: hidden; }
.front-shell .garage-card h2 { font-size: 29px; }
.front-shell .garage-card > p { font-size: 10px; line-height: 1.6; }
.front-shell .garage-actions { gap: 7px; }
.front-shell .track-card { overflow: hidden; }
.front-shell .track-art { border-radius: 0; }
.front-shell .track-body h3 { font-size: 29px; }
.front-shell .track-body p { font-size: 10px; line-height: 1.5; }
.front-shell .track-meta { font-size: 8px; }
.front-shell .track-card.selected { border-color: #3d8874; box-shadow: 0 0 0 2px #3d887417; }
.front-shell .track-open { min-width: 36px; min-height: 36px; border-radius: 8px; background: #e4eee0; }
.front-shell .circuit-toolbar { gap: 16px; padding: 15px 17px; border-color: var(--harbour-line); border-radius: 10px; background: #e4eee0; }
.front-shell .circuit-toolbar > span { font-size: 9px; line-height: 1.7; }
.front-shell .shop-card { padding: 20px; gap: 17px; }
.front-shell .shop-icon { border-radius: 10px; }
.front-shell .shop-item-title h3 { font-size: 27px; }
.front-shell .shop-card-details p { font-size: 11px; line-height: 1.6; }
.front-shell .shop-side-card { padding: 25px; }
.front-shell .shop-side-card h2 { font-size: 35px; }
.front-shell .record-stats article { padding: 23px; }
.front-shell .record-stats strong { font-size: 46px; }
.front-shell .records-table { overflow: hidden; }
.front-shell .records-table-head { background: #e7eee1; }
.front-shell .records-table > button { min-height: 70px; }
.front-shell .records-table > button:hover { background: #eaf1e4; }
body.front-end .front-shell :is(.primary-button, .dark-button, .outline-button, .shop-buy, .equipped-button, .trial-refits, .fleet-filters > button, .tutorial-launch-button) {
  min-height: 44px;
  border: 1px solid #a1bdac75;
  border-image: none;
  border-radius: 8px;
  background: #e4eedf;
  box-shadow: none;
  color: var(--front-ink);
}
body.front-end .front-shell main :is(.primary-button, .shop-buy, .tutorial-launch-button) { border-color: #df987a; background: #f6af8c; }
body.front-end .front-shell :is(.primary-button, .shop-buy, .tutorial-launch-button):hover:not(:disabled) { background: #ffc4a6; border-color: #c58162; transform: none; }
body.front-end .front-shell :is(.outline-button, .dark-button, .trial-refits):hover:not(:disabled) { background: #d6e8d7; border-color: #639581; }
.front-shell .fleet-filters > button.active { border-color: #639581; background: #d6e8d7; color: #175f54; }
.front-shell .text-link { min-height: 44px; }
.front-shell :is(button, input, select, textarea, summary, a):focus-visible { outline: 3px solid #2d7b76; outline-offset: 3px; }
.front-shell :is(input, select, textarea) { border-radius: 8px; }
.front-shell .online-hub { --online-paper: #fffdf5; --online-tint: #e4eedf; --online-line: #305f5426; }
.front-shell .online-hub .online-panel { border-radius: 12px; }
.front-shell .online-hub :is(.online-mode-cards > button, .online-choice-card) { border-radius: 9px; }
.front-shell .online-hub :is(.online-mode-cards > button, .online-choice-card)[aria-pressed="true"] { border-color: #639581; background: #dcebdc; }
.front-shell :is(.online-boat-browse button, .island-stepper button) { min-height: 44px; min-width: 44px; }
.front-shell .adventure-setup { max-width: none; padding: 0; }
.front-shell .adventure-heading h1 { font-family: var(--condensed); font-size: clamp(40px, 4.3vw, 55px); line-height: 1.05; }
.front-shell .adventure-heading h1 em { font-family: inherit; font-weight: inherit; color: var(--front-accent); }
.front-shell .adventure-heading > p { font-size: 12px; line-height: 1.7; }
.front-shell :is(.adventure-region-card, .adventure-planner) { border-color: var(--harbour-line); border-radius: 12px; box-shadow: none; }
.front-shell .adventure-region-card { background: #fffdf5; }
.front-shell .adventure-region-card[aria-pressed="true"] { border-color: #639581; background: #dcebdc; color: var(--front-ink); }
.front-shell :is(.adventure-plan, .adventure-departure-panel) { background: #fffdf5; }
.front-shell .adventure-plan { padding: 27px; }
.front-shell .adventure-plan h2 { font-family: var(--condensed); font-size: 33px; }
.front-shell .adventure-chart-zoom button { width: 44px; height: 44px; }
.front-shell .tutorial-launch { max-width: none; gap: 30px; }
.front-shell .tutorial-launch-copy h1 { margin: 17px 0 19px; font-size: clamp(46px, 4.6vw, 65px); }
.front-shell .tutorial-launch-copy > p { font-size: 13px; line-height: 1.7; }
.front-shell .tutorial-harbor { border-radius: 17px; transform: none; box-shadow: 0 8px 24px #175d6b1c; }
.front-shell .tutorial-harbor-chart { border-radius: 12px; }
.front-shell .tutorial-chart-badge { right: 12px; bottom: 12px; border-radius: 8px; transform: none; }
.front-shell .front-footer { width: min(100%, 1300px); min-height: 48px; margin: auto auto 0; padding: 0 44px max(12px, env(safe-area-inset-bottom)); border: 0; background: none; color: #264f47; text-shadow: 0 1px 10px #fff6e8; }

@media (max-width: 1100px) and (min-width: 741px) {
  .front-shell .front-header { padding-inline: 30px; }
  .front-shell .front-player { gap: 15px; }
  .front-shell :is(.front-subnav, main) { width: calc(100% - 60px); }
  .front-shell .front-nav button { padding-inline: 12px; }
  .front-shell .front-location { display: none; }
  .front-shell .front-footer { padding-inline: 30px; }
}
@media (max-width: 740px) {
  .front-shell .front-header { min-height: 90px; padding: max(16px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) 10px max(18px, env(safe-area-inset-left)); gap: 10px; }
  .front-shell .front-brand-logo { width: 116px; }
  .front-shell .front-player { gap: 12px; padding: 5px 9px; border-radius: 10px; }
  .front-shell .front-mode { font-size: 7px; letter-spacing: .6px; white-space: nowrap; }
  .front-shell .front-player :is(.front-credits, .online-account-link) { display: none; }
  .front-shell .front-settings { width: 44px; min-height: 44px; padding: 0; border: 0; justify-content: center; }
  .front-shell .front-settings span { display: none; }
  .front-shell .front-subnav { align-items: center; width: calc(100% - 32px); min-height: 58px; margin-top: 9px; padding: 6px 10px; gap: 10px; border-radius: 11px; }
  .front-shell .front-back { min-height: 44px; font-size: 8px; gap: 6px; }
  .front-shell .front-back .icon { width: 14px; }
  .front-shell .front-nav { min-width: 0; min-height: 44px; gap: 4px; overflow-x: auto; padding: 3px; white-space: nowrap; scrollbar-width: thin; }
  .front-shell .front-nav button { flex: 0 0 auto; min-height: 44px; padding: 10px 12px; font-size: 18px; }
  .front-shell .front-location { display: none; }
  .front-shell main { width: calc(100% - 32px); margin: 14px auto 20px; padding: 22px 18px; border-radius: 15px; }
  .front-shell .front-trial-note { flex-wrap: wrap; gap: 5px; padding: 9px 11px; margin-bottom: 19px; }
  .front-shell .front-trial-note span { width: 100%; font-size: 9px; }
  .front-shell .front-section-nav { gap: 7px; margin-bottom: 22px; }
  .front-shell .front-section-nav button { padding: 9px 11px; font-size: 10px; }
  .front-shell .page-heading { align-items: flex-start; margin-bottom: 22px; gap: 12px; }
  .front-shell .page-heading h1 { font-size: 36px; }
  .front-shell .page-heading p { font-size: 11px; }
  .front-shell .page-heading :is(.season-badge, .shop-pod-tag) { display: none; }
  .front-shell .collection-count { font-size: 29px; margin-top: 20px; }
  .front-shell .collection-count small { font-size: 6px; }
  .front-shell .fleet-class-group > summary { padding: 17px 13px; gap: 12px; }
  .front-shell .fleet-class-heading h2 { font-size: 27px; }
  .front-shell .fleet-class-emblem { flex-basis: 43px; height: 43px; }
  .front-shell .fleet-class-body { padding: 0 10px 14px; }
  .front-shell .garage-card { padding: 13px 10px; }
  .front-shell .garage-card h2 { font-size: 24px; }
  .front-shell .garage-card > p { font-size: 9px; }
  .front-shell .garage-actions { grid-template-columns: minmax(0, 1fr); }
  .front-shell .garage-actions > button { width: 100%; margin: 0; font-size: 8px; }
  .front-shell .circuit-toolbar { align-items: stretch; flex-direction: column; gap: 12px; padding: 14px; }
  .front-shell .circuit-toolbar .primary-button { width: 100%; justify-content: space-between; }
  .front-shell .shop-card { padding: 17px 13px; gap: 11px; }
  .front-shell .shop-card-details { min-width: 0; flex-basis: calc(100% - 55px); }
  .front-shell .shop-item-title h3 { font-size: 25px; }
  .front-shell .shop-card-details p { font-size: 10px; }
  .front-shell .record-stats { gap: 8px; }
  .front-shell .record-stats article { padding: 14px 10px; }
  .front-shell .record-stats strong { font-size: 35px; }
  .front-shell .record-stats span { font-size: 6px; }
  .front-shell .records-table-head, .front-shell .records-table > button { grid-template-columns: minmax(0, 1fr) 88px; padding: 14px 11px; gap: 10px; }
  .front-shell .records-table > button { font-size: 20px; }
  .front-shell .records-table small { line-height: 1.5; }
  .front-shell .empty-records { padding: 35px 18px; }
  .front-shell .adventure-region-card { padding: 14px 12px; }
  .front-shell .adventure-region-card > strong { font-size: 23px; }
  .front-shell :is(.adventure-plan, .adventure-departure-panel) { padding: 20px 16px; }
  .front-shell .adventure-heading h1 { font-size: 43px; }
  .front-shell .tutorial-launch { grid-template-columns: minmax(0, 1fr); gap: 25px; }
  .front-shell .tutorial-launch-copy h1 { font-size: 50px; }
  .front-shell .tutorial-launch-copy > p { font-size: 12px; }
  .front-shell .tutorial-harbor { width: 100%; }
  .front-shell .tutorial-chart-badge { right: 8px; bottom: 8px; padding: 9px 11px; }
  .front-shell .tutorial-chart-badge span { font-size: 7px; }
  .front-shell .tutorial-mission-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .front-shell .front-footer { min-height: 43px; padding: 0 20px max(15px, env(safe-area-inset-bottom)); font-size: 7px; gap: 10px; }
  .front-shell .front-footer > .front-key-hints { display: none; }
  .front-shell .front-footer button { min-height: 44px; font-size: 8px; }
}
