/* RoadLife V27 · Logo Edition
   Presentation only. Original UI and all game scripts load unchanged.
   The uploaded logo is used as supplied; no remote fonts or assets required. */
:root {
  color-scheme: dark;
  --bg: #101410;
  --panel: rgba(17, 23, 18, .95);
  --panel2: rgba(23, 30, 24, .98);
  --line: rgba(204, 222, 196, .17);
  --text: #f3f5ed;
  --muted: #afbbaa;
  --accent: #99e66d;
  --blue: #a9d4c6;
  --warn: #f0c975;
  --danger: #ff9386;
  --rl-input: #101710;
  --rl-button: #253025;
  --rl-raised: #1c261d;
  --rl-shadow: 0 20px 60px rgba(0, 0, 0, .4);
  --rl-accent-soft: rgba(153, 230, 109, .10);
  --rl-accent-ink: #17220f;
}
#game[data-ui-style="amber"] {
  --bg: #17130e; --panel: rgba(29, 24, 16, .96); --panel2: rgba(37, 30, 19, .98);
  --line: rgba(244, 207, 137, .23); --text: #fff3da; --muted: #cbbb9b;
  --accent: #f2c469; --blue: #e4ae6c; --warn: #ffcf80;
  --rl-input: #18150f; --rl-button: #3a3020; --rl-raised: #2d261b;
  --rl-accent-soft: rgba(242, 196, 105, .11); --rl-accent-ink: #231a08;
}
#game[data-ui-style="ice"] {
  --bg: #10191e; --panel: rgba(16, 28, 34, .96); --panel2: rgba(22, 36, 43, .98);
  --line: rgba(167, 208, 226, .21); --text: #edf6f9; --muted: #a8bec7;
  --accent: #8ad5ee; --blue: #b2d9f0; --warn: #f0c975;
  --rl-input: #0e1b22; --rl-button: #253e49; --rl-raised: #1b3039;
  --rl-accent-soft: rgba(138, 213, 238, .11); --rl-accent-ink: #112630;
}
#game[data-ui-style="light"] {
  color-scheme: light;
  --bg: #e8ede2; --panel: rgba(243, 246, 238, .97); --panel2: rgba(248, 250, 244, .99);
  --line: rgba(40, 68, 35, .22); --text: #202d1e; --muted: #53664d;
  --accent: #386d28; --blue: #386e69; --warn: #916008; --danger: #a83527;
  --rl-input: #ffffff; --rl-button: #e6ecdf; --rl-raised: #eff3e9;
  --rl-shadow: 0 20px 60px rgba(23, 40, 16, .19);
  --rl-accent-soft: rgba(56, 109, 40, .09); --rl-accent-ink: #ffffff;
}
#game[data-ui-style="minimal"] {
  --bg: #151715; --panel: rgba(18, 21, 18, .91); --panel2: rgba(24, 27, 24, .97);
  --line: rgba(234, 239, 230, .17); --text: #f3f5f0; --muted: #b3bbb0;
  --accent: #e2e9db; --blue: #bbc8b7; --warn: #e2cc99;
  --rl-input: #131713; --rl-button: #2b3029; --rl-raised: #232822;
  --rl-accent-soft: rgba(226, 233, 219, .08); --rl-accent-ink: #1b2118;
}
html, body, button, input, select, textarea {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
body { font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { color: var(--text); }
button { transition: background-color .14s, border-color .14s, color .14s; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
summary:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
#game :is(input:not([type="range"]):not([type="checkbox"]):not([type="radio"]):not([type="color"]), select, textarea) {
  background-color: var(--rl-input); color: var(--text); border-color: var(--line);
  border-radius: 8px; font-family: inherit;
}
#game :is(input, select, textarea):focus-visible { border-color: var(--accent); }
#game :is(input[type="range"], input[type="checkbox"], input[type="radio"]) { accent-color: var(--accent); }
#game input[type="range"] { cursor: pointer; }
#game input[type="checkbox"], #game input[type="radio"] { width: 15px; height: 15px; }
#game select option { background: var(--rl-input); color: var(--text); }
* { scrollbar-width: thin; scrollbar-color: #64765a transparent; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #64765a; border: 2px solid transparent; border-radius: 10px; background-clip: padding-box; }
::selection { background: var(--accent); color: var(--rl-accent-ink); }

/* The existing menu controls live in one visual column. All IDs, button
   states and handlers are retained, including the generated pause actions. */
#startScreen {
  background: radial-gradient(ellipse at 18% 20%, rgba(73, 100, 44, .25), transparent 52%),
    linear-gradient(128deg, rgba(11, 16, 12, .99), rgba(25, 34, 24, .98));
  padding: 26px;
}
#startScreen.paused19 { background: rgba(10, 17, 10, .89); }
.startCard {
  display: grid; grid-template-columns: minmax(230px, 280px) minmax(0, 1fr);
  grid-template-rows: auto 1fr; column-gap: 30px;
  width: min(1380px, 96vw); max-width: 1380px; max-height: calc(100vh - 52px);
  padding: 30px; border: 1px solid var(--line); border-radius: 18px;
  background: var(--panel); box-shadow: 0 32px 100px rgba(0, 0, 0, .5);
  overflow-y: auto;
}
.brand { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 28px; margin: 0; min-width: 0; }
.roadlifeIdentity { width: 100%; }
.roadlifeEyebrow {
  display: block; color: var(--muted); font-size: 10px; font-weight: 650;
  letter-spacing: .2em; line-height: 1.6; margin: 0 0 10px;
}
.brand .roadlifeLogoFrame {
  position: relative; width: 100%; aspect-ratio: 1.62; margin: 6px 0 24px;
  overflow: hidden; line-height: 1; padding: 0;
}
.roadlifeLogoFrame .roadlifeLogo {
  position: absolute; width: 100%; height: auto; left: 0; top: 50%;
  transform: translateY(-49%); filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .22));
}
.roadlifeTagline { font-size: clamp(32px, 3.4vw, 49px); line-height: 1.08; font-weight: 750; letter-spacing: -.045em; margin: 0 0 23px; }
.roadlifeTagline span { color: var(--accent); }
.brand p { font-size: 14px; line-height: 1.75; color: var(--muted); max-width: 280px; margin: 0; }
.brand .badge {
  display: block; width: fit-content; max-width: 100%; padding: 9px 11px;
  background: var(--rl-accent-soft); border: 1px solid var(--line); border-radius: 7px;
  font-size: 10px; line-height: 1.6; font-weight: 600; letter-spacing: .09em;
  color: var(--accent); white-space: normal;
}
#menuState19 {
  grid-column: 1; grid-row: 2; align-self: end; margin: 34px 0 0; padding: 16px 0 0;
  border-top: 1px solid var(--line); font-size: 12px; line-height: 1.7;
  color: var(--muted); letter-spacing: 0;
}
.roadlifeSetup { grid-column: 2; grid-row: 1 / span 2; border-left: 1px solid var(--line); padding-left: 30px; min-width: 0; }
.roadlifeSetup .sectionTitle {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 11px; font-weight: 650; line-height: 1.5; letter-spacing: .13em;
  color: var(--muted); margin: 19px 0 9px;
}
.roadlifeSetup > .sectionTitle:first-child { margin-top: 0; }
.sectionTitle a { font-size: 10px; font-weight: 600; letter-spacing: .02em; text-decoration: none; }
.sectionTitle a:hover { text-decoration: underline; }
.locationRow #locationInput { padding: 12px 14px; font-size: 16px; line-height: 1.4; min-width: 0; }
.locationRow #locationInput:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--rl-accent-soft); }
.vehicleGrid {
  grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
  max-height: clamp(230px, 36vh, 370px); overflow-y: auto; padding: 3px 5px 3px 2px;
  scroll-padding: 3px; overscroll-behavior: contain;
}
.vehicleCard {
  display: flex; flex-direction: column; align-items: flex-start;
  min-height: 162px; border-radius: 10px; padding: 14px 13px;
  background: var(--rl-raised); border: 1px solid var(--line); color: var(--text);
}
.vehicleCard:hover { background: var(--rl-button); border-color: var(--muted); }
.vehicleCard.selected { background: var(--rl-accent-soft); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.vehicleCard h3 { position: relative; z-index: 1; font-size: 15px; line-height: 1.25; font-weight: 700; max-width: 62%; margin: 0 0 9px; }
.vehicleCard .meta { position: relative; z-index: 1; flex: 1; font-size: 11px; line-height: 1.55; max-width: 53%; margin-top: 0; color: var(--muted); }
.vehicleCard img { top: 32px; right: 3px; width: 49%; max-width: 49%; height: 98px; object-fit: contain; filter: drop-shadow(0 7px 7px rgba(0, 0, 0, .3)); }
.vehicleCard .choice { position: static; margin-top: 11px; font-size: 10px; line-height: 1.2; font-weight: 650; letter-spacing: .055em; color: var(--muted); }
.vehicleCard.selected .choice { color: var(--accent); }
.roadlifeScrollHint { margin: 5px 0 0; color: var(--muted); font-size: 10px; text-align: right; }
.transmission { gap: 10px; }
.transmission button { background: var(--rl-raised); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 11px; font-size: 13px; font-weight: 600; }
.transmission button:hover { border-color: var(--muted); }
.transmission button.selected { background: var(--rl-accent-soft); border-color: var(--accent); color: var(--accent); }
.startActions { gap: 10px; margin-top: 21px; padding-top: 18px; border-top: 1px solid var(--line); }
.startActions .fineprint { flex: 0 0 100%; max-width: none; margin-bottom: 6px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.startActions .primary, .startActions .secondary, #newSession19 {
  flex: 1 1 auto; min-height: 44px; padding: 12px 15px; font-size: 11px;
  font-weight: 700; letter-spacing: .04em; border-radius: 8px;
}
.startActions .primary { background: var(--accent); border: 1px solid var(--accent); color: var(--rl-accent-ink); min-width: 150px; }
.startActions .primary:hover:not(:disabled) { filter: brightness(1.08); }
.startActions .secondary, #newSession19, #pauseTools19 button {
  background: var(--rl-button); color: var(--text); border: 1px solid var(--line);
}
.startActions .secondary:hover, #newSession19:hover, #pauseTools19 button:hover { background: var(--rl-raised); border-color: var(--accent); }
#pauseTools19 { gap: 8px; margin-top: 18px; }
#pauseTools19 button { border-radius: 8px; padding: 10px 12px; font-size: 12px; }

#loading { background: rgba(9, 15, 9, .94); }
.loadingBox { padding: 26px; background: var(--panel2); border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--rl-shadow); }
.roadlifeLoadingLogo { width: 195px; aspect-ratio: 1.65; position: relative; overflow: hidden; margin: 0 auto 22px; }
.roadlifeLoadingLogo img { position: absolute; top: 50%; left: 0; width: 100%; height: auto; transform: translateY(-49%); }
.loadingBox > strong { display: block; text-align: center; color: var(--text); font-size: 17px; font-weight: 650; }
.loadingBox .progress { height: 5px; background: var(--rl-button); margin: 23px 0 14px; }
.loadingBox #loadingStatus { color: var(--muted); font-size: 13px; line-height: 1.6; }
.roadlifeHudLogo { position: absolute; right: 14px; top: 13px; width: 62px; aspect-ratio: 1.62; overflow: hidden; pointer-events: none; }
.roadlifeHudLogo img { position: absolute; top: 50%; left: 0; width: 100%; height: auto; transform: translateY(-49%); }

/* Recovery feedback is present only after a runtime error. */
#runtimeIssue28 { grid-column: 1 / -1; margin-top: 20px; padding: 16px; border: 1px solid var(--warn); border-radius: 10px; background: var(--rl-raised); }
#runtimeIssue28[hidden] { display: none !important; }
#runtimeIssue28 > strong { color: var(--warn); font-size: 15px; }
#runtimeIssue28 p { color: var(--text); line-height: 1.6; }
#runtimeIssue28 summary { cursor: pointer; color: var(--muted); }
#runtimeIssue28 pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 180px; overflow: auto; font-size: 11px; line-height: 1.5; user-select: text; }

@media (min-width: 1550px) {
  .vehicleGrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .vehicleCard { min-height: 153px; }
}
@media (max-width: 1150px) {
  .startCard { grid-template-columns: 220px minmax(0, 1fr); column-gap: 22px; padding: 24px; }
  .roadlifeSetup { padding-left: 22px; }
  .vehicleCard h3 { font-size: 14px; max-width: 67%; }
  .vehicleCard .meta { font-size: 10px; }
  .vehicleCard { padding: 12px 10px; }
  .vehicleCard .choice { left: 10px; }
}
@media (max-width: 1000px) {
  #startScreen { padding: 16px; }
  .startCard { display: block; max-height: calc(100vh - 32px); width: 100%; padding: 23px; }
  .brand { display: flex; flex-direction: row; align-items: center; gap: 18px; }
  .roadlifeIdentity { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 0 25px; align-items: center; }
  .roadlifeEyebrow { grid-column: 2; grid-row: 1; margin-bottom: 7px; font-size: 9px; }
  .brand .roadlifeLogoFrame { grid-column: 1; grid-row: 1 / span 3; margin: 0; }
  .roadlifeTagline { grid-column: 2; grid-row: 2; font-size: 29px; margin: 0 0 12px; }
  .roadlifeTagline br { display: none; }
  .roadlifeTagline span { margin-left: 6px; }
  .brand p { grid-column: 2; grid-row: 3; max-width: none; font-size: 12px; line-height: 1.55; }
  .brand .badge { max-width: 115px; flex: 0 0 110px; font-size: 9px; }
  #menuState19 { margin: 18px 0; padding-top: 12px; font-size: 11px; }
  .roadlifeSetup { border-left: 0; padding-left: 0; }
  .vehicleGrid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-height: 290px; }
  .vehicleCard { min-height: 144px; }
  .vehicleCard h3 { font-size: 15px; }
}
@media (max-width: 650px) {
  #startScreen { padding: 10px; }
  .startCard { padding: 18px; max-height: calc(100vh - 20px); border-radius: 13px; }
  .brand { flex-wrap: wrap; gap: 12px; }
  .roadlifeIdentity { grid-template-columns: 132px minmax(0, 1fr); gap: 0 15px; }
  .roadlifeTagline { font-size: 25px; }
  .roadlifeTagline br { display: inline; }
  .roadlifeTagline span { margin: 0; }
  .brand p { grid-column: 1 / -1; grid-row: 4; margin-top: 14px; }
  .brand .badge { max-width: none; flex-basis: auto; font-size: 9px; }
  .vehicleGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 305px; }
  .vehicleCard h3 { font-size: 14px; }
  .roadlifeSetup .sectionTitle { gap: 8px; letter-spacing: .08em; }
  .sectionTitle a { text-align: right; font-size: 9px; }
  .startActions .primary { flex-basis: 100%; }
}
@media (max-width: 360px) {
  .vehicleGrid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  button { transition: none; }
  .progress > div { animation: none; }
}
