/* One frame and one navigation position throughout the harbour. */
:is(.front-home, .front-shell) .front-header {
  width: min(100%, 1340px);
  min-height: 100px;
  margin-inline: auto;
  padding: 10px 44px 5px;
}
:is(.front-home, .front-shell) .front-brand-logo { width: 130px; }
:is(.front-home, .front-shell) .front-player {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
  padding: 4px;
  border: 1px solid #f8edcf80;
  border-radius: 10px;
  background: #194f51;
  color: #fff5df;
  backdrop-filter: none;
  box-shadow: 0 4px 14px #174b4b1f;
}
:is(.front-home, .front-shell) .front-player .front-mode { min-height: 42px; gap: 7px; margin-right: 4px; padding: 10px 12px; border-radius: 6px; background: #e0ebd8; color: #24574e; font: 700 12px/1.2 var(--body); letter-spacing: 0; white-space: nowrap; }
:is(.front-home, .front-shell) .front-player .front-mode.is-trial { background: #f7d4b8; color: #75472e; }
:is(.front-home, .front-shell) .front-player .front-mode i { flex-shrink: 0; width: 5px; height: 5px; background: #2d8071; box-shadow: none; }
:is(.front-home, .front-shell) .front-player .front-mode.is-trial i { background: #b75436; }
:is(.front-home, .front-shell) .front-player .front-credits { display: flex; min-height: 44px; margin: 0 12px 0 8px; gap: 5px; color: #fff3d6; font: 600 21px/1 var(--condensed); white-space: nowrap; }
:is(.front-home, .front-shell) .front-player .front-credits .icon { color: #efb890; }
:is(.front-home, .front-shell) .front-player .front-credits small { color: #c9ded2; font-size: 9px; }
:is(.front-home, .front-shell) .front-player .online-account-link { display: flex; align-items: center; gap: 9px; min-width: 0; max-width: 190px; min-height: 44px; padding: 4px 12px; border: 0; border-right: 1px solid #e6eed42b; border-radius: 0; background: transparent; color: #fff5df; text-align: left; }
:is(.front-home, .front-shell) .front-player .online-account-link .front-account-avatar { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; margin: 0; border: 1px solid #fff9e45e; border-radius: 7px; background: #d4e2cd; color: #24584e; font: 700 17px/1 var(--condensed); }
:is(.front-home, .front-shell) .front-player .online-account-link .front-account-copy { display: grid; min-width: 0; gap: 3px; margin: 0; }
:is(.front-home, .front-shell) .front-player .online-account-link .front-account-name { margin: 0; overflow: hidden; color: #fff5df; font: 600 19px/1 var(--condensed); text-overflow: ellipsis; white-space: nowrap; }
:is(.front-home, .front-shell) .front-player .online-account-link .front-account-rating { margin: 0; color: #bfd8c8; font: 500 9px/1.2 var(--body); letter-spacing: .3px; }
:is(.front-home, .front-shell) .front-player .front-settings { display: flex; align-items: center; justify-content: center; gap: 8px; width: auto; min-height: 44px; margin-left: 4px; padding: 9px 12px; border: 0; border-radius: 6px; background: transparent; color: #fff5df; font: 600 12px/1.2 var(--body); letter-spacing: 0; }
:is(.front-home, .front-shell) .front-player .front-settings .icon { width: 18px; height: 18px; }
:is(.front-home, .front-shell) .front-player .front-settings span { display: block; }
:is(.front-home, .front-shell) .front-player :is(.online-account-link, .front-settings):hover { background: #347268; }
:is(.front-home, .front-shell) .front-player button:focus-visible { outline: 2px solid #f7c29b; outline-offset: -2px; }
:is(.front-home, .front-shell) .front-lobby {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 0;
  width: 100%;
  margin: 0;
  padding: 12px 44px 18px;
  gap: 0;
}
:is(.front-home, .front-shell) .front-clubhouse {
  display: grid;
  grid-template-columns: 288px minmax(0, 1fr);
  width: min(100%, 1210px);
  height: clamp(520px, calc(100svh - 180px), 760px);
  min-height: 0;
  overflow: hidden;
  border: 1px solid #fffaf0cc;
  border-radius: 22px;
  background: #fff9ed;
  box-shadow: 0 22px 70px #113f4138, 0 4px 14px #173d4312;
}
.front-shell main {
  container: harbour-content / inline-size;
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 24px;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: #a4bcac transparent;
  border: 0;
  border-radius: 0;
  background: #fff9ed;
  box-shadow: none;
}
:is(.front-home, .front-shell) .front-rail {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 18px;
  overflow-y: auto;
  scrollbar-width: thin;
  border-right: 1px solid #305f5426;
  background: linear-gradient(140deg, #fffaf0, #f7f4e8);
}
.front-rail-heading { margin: 0 6px 14px; }
.front-rail-heading > strong { display: block; margin-top: 8px; font: 800 36px/1 var(--condensed); letter-spacing: -.7px; white-space: nowrap; }
.front-rail-heading em { color: var(--front-accent); }
:is(.front-home, .front-shell) .front-rail .front-menu {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  align-items: stretch;
  gap: 4px;
  min-height: 0;
  padding: 0;
  overflow: visible;
}
:is(.front-home, .front-shell) .front-rail .front-menu > button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--front-ink);
  text-align: left;
  text-transform: none;
  box-shadow: none;
}
:is(.front-home, .front-shell) .front-rail .front-menu > button:hover { padding-left: 10px; border-color: transparent; background: #e4eddf; box-shadow: none; }
:is(.front-home, .front-shell) .front-rail .front-menu > button:focus { padding-left: 10px; }
:is(.front-home, .front-shell) .front-rail .front-menu > button[aria-current] { border-color: #dd997c; background: #f9dcc7; }
:is(.front-home, .front-shell) .front-rail .front-choice-icon { display: grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 7px; background: #dae9df9e; }
:is(.front-home, .front-shell) .front-rail .front-choice-icon .icon { width: 19px; height: 19px; }
:is(.front-home, .front-shell) .front-rail .front-choice-copy { min-width: 0; gap: 3px; }
:is(.front-home, .front-shell) .front-rail .front-choice-copy strong { font: 700 21px/1 var(--condensed); letter-spacing: .2px; }
:is(.front-home, .front-shell) .front-rail .front-choice-copy small { font-size: 9px; line-height: 1.4; }
:is(.front-home, .front-shell) .front-rail-current { width: 15px; height: 15px; margin-left: auto; color: var(--front-accent); }
:is(.front-home, .front-shell) .front-rail .front-eyebrow { font-size: 8px; letter-spacing: 1.5px; }
:is(.front-home, .front-shell) .front-rail .front-rail-current { flex-shrink: 0; }
:is(.front-home, .front-shell) .front-rail button:focus-visible { outline: 3px solid #2d7b76; outline-offset: 3px; }
:is(.front-home, .front-shell) .front-rail .front-back { justify-content: center; flex-shrink: 0; margin-top: auto; padding: 9px; min-height: 44px; border-top: 1px solid #305f5426; font-size: 9px; }
.front-home .front-main-menu { min-height: 0; padding: 20px; overflow-y: auto; scrollbar-width: thin; }
.front-home .front-main-menu h1 { margin: 10px 0 8px; font-size: 42px; }
.front-home .front-welcome { margin-bottom: 14px; font-size: 10px; }
.front-home .front-menu > .front-mode-choice { min-height: 58px; padding: 9px 10px; gap: 9px; }
.front-home .front-choice-copy strong { font-size: 23px; }
.front-home .front-choice-copy small { font-size: 9px; }
.front-home .front-choice-arrow .icon { width: 15px; height: 15px; }
.front-home .front-menu > .front-utility-choice { min-height: 78px; padding: 10px 7px; }
.front-home .front-utility-choice .front-choice-copy strong { font-size: 11px; letter-spacing: 0; white-space: nowrap; }
.front-home .front-utility-choice .front-choice-copy small { font-size: 8px; }
:is(.front-home, .front-shell) .front-footer { min-height: 47px; margin: 0 auto; }

@media (min-width: 741px) and (max-width: 1000px) {
  :is(.front-home, .front-shell) .front-header { padding-inline: 24px; }
  :is(.front-home, .front-shell) .front-lobby { padding-inline: 24px; }
  :is(.front-home, .front-shell) .front-clubhouse { grid-template-columns: 220px minmax(0, 1fr); }
  .front-shell main { padding: 18px; }
  :is(.front-home, .front-shell) .front-rail { padding: 14px; }
  .front-rail-heading > strong { font-size: 30px; }
  :is(.front-home, .front-shell) .front-rail .front-choice-copy small { display: none; }
  :is(.front-home, .front-shell) .front-rail .front-menu > button { min-height: 48px; }
  .front-home .front-main-menu { padding: 16px; }
  .front-home .front-main-menu h1 { font-size: 35px; }
  .front-home .front-welcome { line-height: 1.5; }
  .front-home .front-menu { grid-template-columns: minmax(0, 1fr); }
  .front-home .front-menu > .front-utility-choice { flex-direction: row; align-items: center; justify-content: flex-start; min-height: 44px; margin: 0; gap: 9px; padding: 9px; }
  .front-home .front-utility-choice .front-choice-copy strong { font-size: 16px; }
  .front-home .front-utility-choice .front-choice-copy small { display: none; }
}
@media (max-width: 740px) {
  :is(.front-home, .front-shell) .front-header { min-height: 90px; padding: max(16px, env(safe-area-inset-top)) 18px 10px; }
  :is(.front-home, .front-shell) .front-brand-logo { width: 116px; }
  :is(.front-home, .front-shell) .front-lobby { align-items: stretch; padding: 10px 16px 20px; }
  :is(.front-home, .front-shell) .front-clubhouse { display: flex; flex-direction: column; height: auto; min-height: 0; border-radius: 17px; }
  :is(.front-home, .front-shell) .front-rail { flex-direction: row; align-items: center; gap: 8px; padding: 10px; overflow: hidden; border-right: 0; border-bottom: 1px solid #305f5426; }
  .front-home .front-race-brief { order: 0; }
  :is(.front-home, .front-shell) .front-rail-heading { display: none; }
  :is(.front-home, .front-shell) .front-rail .front-menu { display: flex; flex: 1; min-width: 0; gap: 5px; overflow-x: auto; padding: 3px; }
  :is(.front-home, .front-shell) .front-rail .front-menu > button { flex: 0 0 auto; width: auto; min-height: 44px; padding: 9px 11px; gap: 6px; }
  :is(.front-home, .front-shell) .front-rail .front-choice-copy strong { font-size: 18px; white-space: nowrap; }
  :is(.front-home, .front-shell) .front-rail :is(.front-choice-copy small, .front-choice-icon, .front-rail-current) { display: none; }
  :is(.front-home, .front-shell) .front-rail .front-back { order: -1; width: 44px; margin: 0; padding: 8px; border: 1px solid #305f5426; border-radius: 8px; font-size: 0; }
  :is(.front-home, .front-shell) .front-rail .front-back .icon { width: 18px; height: 18px; }
  .front-shell main { padding: 20px 18px; overflow: visible; }
  .front-home .front-main-menu { padding: 23px 20px; overflow: visible; }
  .front-home .front-main-menu h1 { font-size: clamp(42px, 12vw, 62px); }
  .front-home .front-menu > .front-mode-choice { min-height: 79px; padding: 12px 10px; }
  .front-home .front-menu > .front-utility-choice { min-height: 81px; padding: 11px 9px; }
  .front-home .front-utility-choice .front-choice-copy strong { font-size: 13px; }
}
@media (max-width: 359px) {
  .front-home .front-main-menu { padding-inline: 15px; }
  .front-home .front-utility-choice .front-choice-copy strong { font-size: 11px; }
}

@media (max-width: 740px) {
  :is(.front-home, .front-shell) .front-header { gap: 10px; }
  :is(.front-home, .front-shell) .front-player .front-mode { min-height: 42px; padding-inline: 9px; font-size: 11px; }
  :is(.front-home, .front-shell) .front-player .front-settings { width: 44px; padding: 9px; }
  :is(.front-home, .front-shell) .front-player .front-settings span { display: none; }
  :is(.front-home, .front-shell) .front-player .online-account-link { max-width: 137px; padding-inline: 8px; }
  :is(.front-home, .front-shell) .front-player .front-credits { margin-inline: 6px; font-size: 18px; }
}
@media (max-width: 420px) {
  :is(.front-home, .front-shell) .front-brand-logo { width: 88px; }
  :is(.front-home, .front-shell) .front-player .front-mode { gap: 5px; margin-right: 0; padding-inline: 7px; font-size: 10px; }
  :is(.front-home, .front-shell) .front-player .online-account-link { flex: 0 0 44px; width: 44px; padding: 6px; }
  :is(.front-home, .front-shell) .front-player .online-account-link .front-account-copy { display: none; }
  :is(.front-home, .front-shell) .front-player .front-credits { gap: 4px; margin-inline: 5px; font-size: 16px; }
  :is(.front-home, .front-shell) .front-player .front-credits small { display: none; }
  :is(.front-home, .front-shell) .front-player .front-settings { margin-left: 0; }
}
@media (max-width: 359px) {
  :is(.front-home, .front-shell) .front-header { padding-inline: 12px; gap: 8px; }
  :is(.front-home, .front-shell) .front-brand-logo { width: 78px; }
  :is(.front-home, .front-shell) .front-player { flex-wrap: wrap; justify-content: flex-end; max-width: calc(100% - 86px); }
}

/* Give the clubhouse the space previously occupied by the menu footer. */
:is(.front-home,.front-shell) .front-footer{display:none}
@media(min-width:741px){:is(.front-home,.front-shell) .front-clubhouse{height:clamp(560px,calc(100svh - 130px),810px)}:is(.front-home,.front-shell) .front-lobby{padding-bottom:14px}}

:is(.front-home,.front-shell) .front-lobby{max-width:1340px;margin-inline:auto}
:is(.front-home,.front-shell) .front-clubhouse{width:100%}

@media(min-width:1001px){:is(.front-home,.front-shell) .front-clubhouse{grid-template-columns:250px minmax(0,1fr)}}

:is(.front-home,.front-shell) .front-rail .front-choice-icon>.harbour-icon{width:29px;height:29px}

:is(.front-home,.front-shell) .front-rail .front-choice-icon{background:transparent;border-radius:0}

@media(min-width:741px){:is(.front-home,.front-shell) .front-lobby{align-items:flex-start;padding-top:4px}:is(.front-home,.front-shell) .front-header{min-height:92px}}
