/* Entry → garage → round. The logo is the existing approved brand asset. */
.brand img {
  width: 158px;
  height: auto;
  filter: drop-shadow(0 3px 2px #132f2370);
}
.top-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  pointer-events: auto;
}
.top-actions button {
  min-height: 46px;
  font-size: 12px;
}
.title-screen {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(90deg, #172f2bde, transparent 76%);
}
.welcome-copy {
  position: absolute;
  left: 7vw;
  top: 50%;
  transform: translateY(-48%);
  width: min(400px, 42vw);
  pointer-events: auto;
}
.welcome-copy > img {
  width: 300px;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 10px #102b2855);
}
.welcome-copy .small-label {
  margin-top: 24px;
  color: #dedaa9;
  font-size: 10px;
  letter-spacing: 2px;
}
.welcome-copy h1 {
  font-size: clamp(32px, 4.4vw, 62px);
  line-height: 1.03;
  letter-spacing: -2px;
  margin: 14px 0 18px;
  color: #fff2ce;
}
.welcome-copy > p:not(.small-label) {
  font-size: 14px;
  line-height: 1.7;
  color: #d3d7bd;
}
#enter-game {
  margin: 25px 0 14px;
  width: 290px;
  max-width: 100%;
  font-size: 18px;
  letter-spacing: 1px;
  min-height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.welcome-copy > small {
  display: block;
  color: #c1cbb5;
  font-size: 11px;
}
.welcome-hint {
  position: absolute;
  bottom: 100px;
  right: 8vw;
  font-size: 12px;
  color: #fcf0ca;
  background: #294736bb;
  padding: 12px 20px;
  border-radius: 30px;
}
.welcome-hint span {
  padding: 0 14px;
  color: #e5c575;
}
body.welcome .brand,
body.welcome .location,
body.welcome #help {
  visibility: hidden;
}
body.welcome .bottom-bar {
  z-index: 4;
}
.bot-option {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 11px;
  margin: 10px 0 15px;
  color: #d9dfc3;
}
.bot-option input {
  width: 19px;
  height: 19px;
  accent-color: #e4c572;
}
.lobby h1 {
  font-size: 28px;
  line-height: 1.1;
}
.track-choice strong {
  font-size: 15px !important;
}
.free-gas {
  position: fixed;
  bottom: 66px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  background: #193f32d9;
  border: 1px solid #d5dbaf33;
  border-radius: 13px;
  padding: 11px 20px;
  text-align: center;
  font-size: 11px;
  color: #f7ebc6;
  max-width: 80vw;
}
.free-gas p {
  margin: 6px 0 0;
  color: #aebf9f;
  font-size: 10px;
}
.current-stat strong {
  font-size: 17px !important;
}
#wallet-dialog {
  width: min(440px, calc(100vw - 32px));
  max-height: 85dvh;
  overflow: auto;
  padding: 25px;
  border: 1px solid #b7c7a34d;
  border-radius: 22px;
  background: #193c32;
  color: #f5edcf;
  box-shadow: 0 30px 90px #091c2377;
}
#wallet-dialog::backdrop {
  background: #0b201bb0;
  backdrop-filter: blur(5px);
}
#wallet-dialog h2 {
  font-size: 29px;
  margin: 20px 0 10px;
}
#wallet-dialog p {
  font-size: 13px;
  line-height: 1.6;
  color: #cbd7bd;
}
#wallet-dialog > button {
  width: 100%;
  margin: 6px 0;
  min-height: 48px;
}
#wallet-dialog small {
  display: block;
  margin-top: 16px;
  font-size: 11px;
  line-height: 1.5;
  color: #acbda7;
}
.chain-status {
  border-block: 1px solid #c2d4b42e;
  padding: 12px 0;
  margin: 20px 0;
}
.chain-status div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 0;
  font-size: 12px;
}
.chain-status dd {
  margin: 0;
  max-width: 65%;
  overflow-wrap: anywhere;
  text-align: right;
}
.chain-status dt {
  color: #a7bca2;
}
.chain-roadmap {
  display: grid;
  gap: 12px;
  font-size: 12px;
  margin: 22px 0;
}
.muted {
  opacity: 0.55;
}
@media (max-width: 900px) {
  .brand img {
    width: 135px;
  }
  .topbar {
    padding: 16px 20px;
  }
  .top-actions {
    gap: 6px;
  }
  .location {
    display: none;
  }
  .welcome-copy {
    left: 6vw;
    top: auto;
    bottom: 100px;
    transform: none;
    width: 46vw;
  }
  .welcome-copy > img {
    width: 210px;
  }
  .welcome-copy h1 {
    font-size: 40px;
  }
  .welcome-hint {
    right: 20px;
    bottom: 40px;
  }
  .title-screen {
    background: linear-gradient(90deg, #142d26d9, transparent 90%);
  }
  .lobby-copy {
    max-height: 340px;
  }
  .top-actions button {
    font-size: 11px;
  }
}
@media (max-width: 600px) {
  .brand img {
    width: 110px;
  }
  .topbar {
    padding: 12px 16px;
  }
  .top-actions button {
    padding: 10px;
    font-size: 10px;
  }
  .title-screen {
    background: linear-gradient(
      0deg,
      #102b25ef 4%,
      #16392b99 40%,
      transparent 70%
    );
  }
  .welcome-copy {
    left: 24px;
    right: 24px;
    bottom: 64px;
    width: auto;
  }
  .welcome-copy > img {
    width: 190px;
  }
  .welcome-copy .small-label {
    margin-top: 16px;
    font-size: 8px;
  }
  .welcome-copy h1 {
    font-size: 37px;
    margin: 8px 0;
  }
  .welcome-copy > p:not(.small-label) {
    font-size: 12px;
  }
  .welcome-copy > img {
    position: fixed;
    top: 83px;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
  }
  .welcome-copy > small {
    font-size: 10px;
  }
  .welcome-hint {
    display: none;
  }
  #enter-game {
    width: 100%;
    margin: 18px 0 12px;
    min-height: 54px;
  }
  .free-gas {
    bottom: 157px;
    font-size: 9px;
    width: 80vw;
    padding: 8px;
  }
  .free-gas p {
    font-size: 8px;
  }
  .lobby-copy {
    max-height: 250px;
  }
  .lobby h1 {
    font-size: 22px;
  }
  .lobby .small-label {
    display: none;
  }
  .raft-caption {
    top: 90px;
    width: 170px;
  }
  .raft-caption h2 {
    font-size: 19px;
  }
  .hud {
    top: 82px;
  }
  .boat-telemetry {
    top: 152px;
  }
  .current-stat strong {
    font-size: 11px !important;
  }
  .playing .brand img {
    width: 94px;
  }
  .playing #wallet-open {
    max-width: 116px;
  }
  .welcome-copy .small-label {
    display: none;
  }
}
@media (max-height: 650px) and (min-width: 601px) {
  .welcome-copy {
    bottom: 75px;
    top: auto;
    transform: none;
  }
  .welcome-copy > img {
    width: 160px;
  }
  .welcome-copy h1 {
    font-size: 32px;
  }
  .welcome-copy .small-label {
    margin-top: 10px;
  }
  #enter-game {
    margin-top: 12px;
    min-height: 48px;
  }
}

.welcome-copy h1 {
  font-family: ui-rounded, "Trebuchet MS", Arial, sans-serif;
  font-weight: 900;
}
.welcome-copy h1 br {
  display: block;
}

body.playing #help {
  display: none;
}

.touch-hint {
  display: none;
}
@media (max-width: 600px), (pointer: coarse) {
  .free-gas .keyboard-hint {
    display: none;
  }
  .free-gas .touch-hint {
    display: inline;
  }
}

/* Weight-based rewards and terminal hull states. Text and icons accompany color. */
.hud small { display: block; font-size: 9px; color: #c6d2b7; }
#collected { font-size: 21px; }
#reward-estimate { display: inline-block; margin-top: 7px; color: #ffe29a; }
.hull-warning { position: fixed; z-index: 6; top: 182px; left: 50%; transform: translateX(-50%); max-width: min(440px, 90vw); padding: 12px 18px; border: 1px solid #ffd6a5; border-radius: 12px; background: #743c23ee; color: #fff4d8; font-size: 13px; text-align: center; }
.death-banner { position: fixed; inset: 40% 0 auto; z-index: 6; padding: 24px; background: linear-gradient(90deg,transparent,#381b1de6,transparent); text-align: center; color: #fff2da; }
.death-banner strong { font-size: clamp(28px,5vw,48px); }
.death-banner p { margin: 9px 0 0; }
.results.defeat { border-color: #df9c81; }
.results.defeat h2 { color: #ffc8a8; }
.reward-summary { background: #0c2829; border: 1px solid #c4d09a40; border-radius: 12px; padding: 12px; color: #ffdf8f !important; font-size: 13px; line-height: 1.7; }
#claim-status { font-size: 11px; color: #c6d1b8; line-height: 1.5; overflow-wrap: anywhere; }
.results table { table-layout: fixed; width: 100%; }
.results td { overflow-wrap: anywhere; }
.results td:last-child, .results th:last-child { width: 29%; font-size: 11px; }
@media (max-width:600px) {
  #collected { font-size: 14px; }
  .hull-warning { top: 290px; font-size: 11px; }
  .results td { padding: 8px 3px; font-size: 11px; }
  .results th { padding: 8px 3px; font-size: 10px; }
  .results { max-height: 80dvh; overflow: auto; }
  .free-gas { bottom: 157px; }
}
.reward-line { margin-top: 6px; }
.reward-line #reward-estimate { margin-top: 0; }
