* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #000000;
}

body {
  min-height: 100svh;
  cursor: url("./uploads/hand-cursor.png") 17 0, auto;
}

#sky {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

#sphere {
  position: fixed;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  image-rendering: pixelated;
}

#terrain-sky,
#terrain {
  position: fixed;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

#terrain-sky {
  z-index: 2;
  pointer-events: none;
}

#terrain {
  z-index: 5;
}

#seed-67-clouds {
  position: fixed;
  z-index: 4;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  pointer-events: none;
}

body.seed-67.on-lunar-surface #seed-67-clouds { display: block; }

#terrain-sky[hidden],
#terrain[hidden] {
  display: none;
}

body.hell-seed::before {
  position: fixed;
  z-index: 1;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, #250607 0%, #4b1010 38%, #240809 72%, #080304 100%);
}

body.hell-seed #sphere { visibility: hidden !important; }
body.hell-seed.on-lunar-surface #sky,
body.hell-seed.on-lunar-surface .scene-title,
body.hell-seed.on-lunar-surface .scene-controls,
body.hell-seed.on-lunar-surface #fps-counter,
body.hell-seed.on-lunar-surface #current-music,
body.hell-seed.on-lunar-surface #rover-hud,
body.hell-seed.on-lunar-surface #field-hud,
body.hell-seed.on-lunar-surface #hotbar,
body.hell-seed.on-lunar-surface #mobile-controls,
body.hell-seed.on-lunar-surface #discord-invite,
body.hell-seed.on-lunar-surface #pause-overlay,
body.hell-seed.on-lunar-surface #reset-confirm,
body.hell-seed.on-lunar-surface #impact-whiteout { display: none !important; }

.fps-counter {
  position: fixed;
  z-index: 8;
  isolation: isolate;
  top: 12px;
  left: 12px;
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 0 100%);
  border: 0;
  padding: 7px 12px;
  background: linear-gradient(180deg, #d4d4d4 0%, #737373 43%, #252525 100%);
  color: #f4f4f4;
  font: 12px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.04em;
  text-shadow: 1px 1px 0 #333, 0 0 3px #111;
  filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.75));
  pointer-events: none;
}

.fps-counter::before,
.fps-counter::after,
#battery-readout::before,
#battery-readout::after,
.field-panel::before,
.field-panel::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.fps-counter::before,
#battery-readout::before,
.field-panel::before {
  inset: 2px;
  clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 0 100%);
  background: linear-gradient(180deg, #a9a9a9 0%, #686868 42%, #3c3c3c 43%, #222 100%);
}

.fps-counter::after,
#battery-readout::after,
.field-panel::after {
  top: 3px;
  right: 5px;
  left: 3px;
  height: 12px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 9px, 100% 100%, 0 70%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(238, 238, 238, 0.08));
}

.fps-counter[hidden] {
  display: none;
}

#current-music {
  position: fixed;
  z-index: 14;
  isolation: isolate;
  right: 14px;
  bottom: 14px;
  max-width: min(360px, calc(100vw - 28px));
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  padding: 10px 17px 11px 13px;
  background: linear-gradient(180deg, #d4d4d4 0%, #737373 43%, #252525 100%);
  color: #f4f4f4;
  font: 400 13px/1.4 "Daydream", system-ui, sans-serif;
  text-align: left;
  text-shadow: 1px 2px 0 #333, 0 0 4px #111;
  filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.75));
  pointer-events: none;
}

#current-music::before {
  position: absolute;
  z-index: -1;
  inset: 3px;
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 0 100%);
  background: linear-gradient(180deg, #a9a9a9 0%, #686868 42%, #3c3c3c 43%, #222 100%);
  content: "";
  pointer-events: none;
}

#current-music::after {
  position: absolute;
  z-index: -1;
  top: 5px;
  right: 8px;
  left: 5px;
  height: 16px;
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 12px, 100% 100%, 0 70%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(238, 238, 238, 0.1));
  content: "";
  pointer-events: none;
}

#current-music-title {
  color: #fff;
}

#discord-invite {
  position: fixed;
  z-index: 4;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  overflow: hidden;
  cursor: url("./uploads/hand-cursor.png") 17 0, pointer;
}

#discord-invite img {
  display: block;
  width: 76px;
  height: 76px;
  object-fit: contain;
}

#discord-invite:hover { cursor: url("./uploads/hand-pointer-cursor.png") 9 0, pointer; }
#discord-invite:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
body.intro-running #discord-invite,
body.on-lunar-surface #discord-invite { display: none; }

#rover-hud[hidden] {
  display: none;
}

#rover-hud {
  position: fixed;
  z-index: 6;
  right: 0;
  bottom: 12px;
  left: 0;
  height: 54px;
  color: #f0e6d0;
  font: 13px/1.35 "Daydream", system-ui, sans-serif;
  text-align: center;
  text-shadow: 1px 2px 3px #000, 0 0 8px #000;
  pointer-events: none;
  transition: bottom 380ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

#rover-hud.has-hotbar {
  bottom: 102px;
}

#field-hud {
  position: fixed;
  z-index: 9;
  top: 12px;
  right: 12px;
  display: flex;
  max-width: min(340px, calc(100vw - 24px));
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  color: #eee7dc;
  font: 12px/1.4 system-ui, sans-serif;
  text-shadow: 0 1px 3px #000;
}

#field-hud[hidden],
.field-panel[hidden] {
  display: none;
}

.field-actions {
  display: flex;
  gap: 6px;
}

.field-actions button,
#photo-capture {
  position: relative;
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow: hidden;
  isolation: isolate;
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 0 100%);
  border: 0;
  padding: 7px 11px;
  background: linear-gradient(180deg, #d4d4d4 0%, #737373 43%, #252525 100%);
  color: #f4f4f4;
  font: 400 13px/1 "Daydream", system-ui, sans-serif;
  text-shadow: 1px 1px 0 #333, 0 0 3px #111;
  filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.75));
  cursor: pointer;
  transition: filter 140ms ease, transform 140ms ease;
}

.field-actions button::before,
#photo-capture::before {
  position: absolute;
  z-index: -1;
  inset: 2px;
  clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 0 100%);
  background: linear-gradient(180deg, #a9a9a9 0%, #686868 42%, #3c3c3c 43%, #222 100%);
  content: "";
  pointer-events: none;
}

.field-actions button::after,
#photo-capture::after {
  position: absolute;
  z-index: -1;
  top: 3px;
  right: 5px;
  left: 3px;
  height: 12px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 9px, 100% 100%, 0 70%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(238, 238, 238, 0.08));
  content: "";
  pointer-events: none;
}

.field-actions button:hover,
#photo-capture:hover {
  filter: brightness(1.17) drop-shadow(0 3px 2px rgba(0, 0, 0, 0.75));
  cursor: url("./uploads/hand-pointer-cursor.png") 9 0, pointer;
}

.field-actions button:active,
#photo-capture:active {
  transform: translateY(2px);
  filter: brightness(0.88) drop-shadow(0 1px 1px rgba(0, 0, 0, 0.75));
}

.field-actions kbd {
  margin-left: 4px;
  color: #e0ded9;
  font: 10px/1 system-ui, sans-serif;
  text-shadow: 0 1px 2px #111;
}

#battery-readout {
  position: relative;
  isolation: isolate;
  padding: 7px 12px;
  background: linear-gradient(180deg, #d4d4d4 0%, #737373 43%, #252525 100%);
  color: #f4f4f4;
  text-shadow: 1px 1px 0 #333, 0 0 3px #111;
  filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.75));
  white-space: nowrap;
}

#battery-readout.is-low {
  color: #ffc28c;
}

.field-panel {
  position: relative;
  isolation: isolate;
  width: min(320px, calc(100vw - 24px));
  clip-path: polygon(0 0, calc(100% - 27px) 0, 100% 27px, 100% 100%, 0 100%);
  padding: 13px 15px;
  background: linear-gradient(180deg, #d4d4d4 0%, #737373 43%, #252525 100%);
  color: #f4f4f4;
  text-shadow: 1px 1px 0 #333, 0 0 3px #111;
  filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.75));
}

.field-panel::before {
  clip-path: polygon(0 0, calc(100% - 23px) 0, 100% 23px, 100% 100%, 0 100%);
}

.field-panel::after {
  height: 22px;
  clip-path: polygon(0 0, calc(100% - 19px) 0, 100% 18px, 100% 100%, 0 70%);
}

.field-panel > strong,
.photo-panel > span,
.equipment-note > span {
  display: block;
}

.field-panel > strong {
  margin-bottom: 7px;
  color: #fff;
}

#mission-log dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 14px;
  margin: 0;
}

#mission-log dd {
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.photo-panel > span {
  margin-bottom: 9px;
  color: #e0ded9;
}

#equipment-note-close {
  position: absolute;
  top: 5px;
  right: 7px;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 2px solid #dedede;
  border-radius: 50%;
  padding: 0;
  background: linear-gradient(180deg, #858585, #292929);
  color: #fff;
  font: 17px/1 Arial, system-ui, sans-serif;
  text-shadow: 0 1px 2px #111;
  box-shadow: inset 0 1px 2px #111, 0 1px 0 #eee;
  cursor: pointer;
}

.battery-setting {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: #e5e5e5;
  font: 13px/1.3 system-ui, sans-serif;
}

.battery-setting input {
  accent-color: #d7d7d7;
}

.hotbar {
  position: fixed;
  z-index: 7;
  bottom: 12px;
  left: 50%;
  display: flex;
  max-width: calc(100vw - 24px);
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  transform: translate(-50%, 28px);
  opacity: 0;
  visibility: hidden;
  pointer-events: auto;
  transition: transform 380ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 260ms ease, visibility 0s linear;
}

.hotbar.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.hotbar-slot {
  position: relative;
  display: grid;
  width: 76px;
  height: 74px;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  border: 0;
  background: linear-gradient(180deg, #d4d4d4 0%, #737373 43%, #252525 100%);
  color: #f4f4f4;
  filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.8));
  cursor: pointer;
}

.hotbar-slot[hidden] {
  display: none;
}

.hotbar-slot::before {
  position: absolute;
  z-index: -1;
  inset: 3px;
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 0 100%);
  background: linear-gradient(180deg, #858585 0%, #4a4a4a 42%, #222 100%);
  content: "";
}

.hotbar-slot.is-selected {
  filter: brightness(1.25) drop-shadow(0 0 6px rgba(230, 230, 230, 0.8));
  transform: translateY(-4px);
}

.hotbar-number,
.hotbar-count {
  position: absolute;
  z-index: 1;
  font: 12px/1 Arial, system-ui, sans-serif;
  text-shadow: 1px 1px 2px #000;
}

.hotbar-number {
  top: 7px;
  left: 8px;
}

.hotbar-count {
  right: 7px;
  bottom: 6px;
  min-width: 16px;
  text-align: right;
  transform-origin: center;
}

.hotbar-count.count-pop {
  animation: count-pop 320ms ease-out;
}

@keyframes count-pop {
  0% { transform: scale(0.75); opacity: 0.55; }
  55% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.hotbar-rock {
  width: 34px;
  height: 30px;
  clip-path: polygon(17% 15%, 53% 0, 88% 22%, 100% 68%, 70% 100%, 16% 88%, 0 45%);
  border: 1px solid #ddd;
  background: url("./gray-rock-background--rough-rock-background.jpg") center / cover;
  box-shadow: inset 0 0 5px #111;
}

.hotbar-flag {
  display: grid;
  width: 36px;
  height: 32px;
  place-items: center;
  color: #f4f4f4;
  font: 28px/1 Arial, system-ui, sans-serif;
  text-shadow: 1px 2px 2px #111;
}

.interaction-prompt {
  position: absolute;
  bottom: 0;
  left: 50%;
  display: flex;
  min-width: 210px;
  height: 48px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  overflow: hidden;
  isolation: isolate;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
  border: 0;
  padding: 4px 15px;
  background: linear-gradient(180deg, #d4d4d4 0%, #737373 43%, #252525 100%);
  color: #f4f4f4;
  font: 400 17px/1 "Daydream", system-ui, sans-serif;
  text-shadow: 1px 2px 0 #333, 0 0 4px #111;
  filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.75));
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 32px);
  transition: transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 240ms ease, visibility 0s linear 360ms;
}

.interaction-prompt.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}

.interaction-prompt::before {
  position: absolute;
  z-index: -1;
  inset: 3px;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  background: linear-gradient(180deg, #a9a9a9 0%, #686868 42%, #3c3c3c 43%, #222 100%);
  content: "";
}

.interaction-prompt::after {
  position: absolute;
  z-index: -1;
  top: 5px;
  right: 8px;
  left: 5px;
  height: 17px;
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 14px, 100% 100%, 0 70%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(238, 238, 238, 0.1));
  content: "";
}

.interaction-prompt kbd {
  position: relative;
  z-index: 1;
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border: 2px solid #dedede;
  border-radius: 50%;
  background: linear-gradient(180deg, #858585, #292929);
  color: #fff;
  font: 16px/1 Arial, system-ui, sans-serif;
  text-shadow: 0 1px 2px #111;
  box-shadow: inset 0 1px 2px #111, 0 1px 0 #eee;
}

.interaction-prompt > span {
  position: relative;
  z-index: 1;
}

.driving-prompt {
  position: absolute;
  bottom: 0;
  left: 50%;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 24px);
  transition: transform 320ms ease, opacity 220ms ease, visibility 0s linear 320ms;
}

.driving-prompt.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}

body.on-lunar-surface #sky,
body.on-lunar-surface .scene-title,
body.on-lunar-surface .scene-controls {
  visibility: hidden;
}

body.on-lunar-surface #sphere {
  visibility: hidden;
}

body.on-lunar-surface.is-space-view #sky {
  visibility: visible;
}

body.game-ui-hidden.on-lunar-surface #fps-counter,
body.game-ui-hidden.on-lunar-surface #current-music,
body.game-ui-hidden.on-lunar-surface #rover-hud,
body.game-ui-hidden.on-lunar-surface #field-hud,
body.game-ui-hidden.on-lunar-surface #hotbar,
body.game-ui-hidden.on-lunar-surface #mobile-controls {
  display: none !important;
}

#scene-fade {
  position: fixed;
  z-index: 10;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.1s ease-in-out;
}

#scene-fade.is-fading {
  opacity: 1;
}

body.intro-running .scene-controls {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

#menu-intro {
  position: fixed;
  z-index: 30;
  inset: 0;
  overflow: hidden;
  background: #000;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 1.8s ease-in-out, background-color 650ms ease-in;
}

#menu-intro.is-white {
  background: #fff;
}

#menu-intro.is-clearing {
  opacity: 0;
}

#intro-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

#first-visit-video {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: grid;
  place-items: center;
  background: #000;
  opacity: 1;
  transition: opacity 1.5s ease;
}

#first-visit-video.is-fading {
  opacity: 0;
  pointer-events: none;
}

#first-visit-video[hidden] {
  display: none;
}

#first-visit-clip {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#first-visit-sound {
  position: absolute;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  padding: 11px 18px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font: 14px/1 system-ui, sans-serif;
  cursor: pointer;
}

#first-visit-sound[hidden] {
  display: none;
}

#impact-whiteout {
  position: fixed;
  z-index: 20;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease-out;
}

#impact-whiteout.is-visible {
  opacity: 1;
}

#impact-whiteout.is-receding {
  opacity: 0;
}

.scene-title {
  position: fixed;
  z-index: 2;
  top: clamp(20px, 4vw, 42px);
  left: clamp(20px, 4vw, 48px);
  margin: 0;
  color: #dedede;
  font: 400 clamp(28px, 3.3vw, 40px)/1.2 "Daydream", system-ui, sans-serif;
  letter-spacing: 0.025em;
  text-shadow: 2px 2px 0 #555, 4px 4px 0 #111;
}

.scene-controls {
  position: fixed;
  z-index: 3;
  top: 42%;
  left: clamp(20px, 4vw, 48px);
  width: 280px;
  max-height: none;
  overflow: visible;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #858585 rgba(12, 12, 12, 0.85);
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 10px;
  filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.8));
}

.scene-controls::before,
.scene-controls::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}

.scene-controls::before {
  inset: 0;
  background: linear-gradient(180deg, #aaa 0%, #4a4a4a 16%, #151515 17%, #686868 100%);
}

.scene-controls::after {
  inset: 2px;
  background: linear-gradient(145deg, rgba(36, 36, 36, 0.97), rgba(7, 7, 7, 0.95));
}

.seed-control {
  display: flex;
  align-items: center;
  gap: 7px;
}

.seed-input-wrap {
  position: relative;
  flex: 0 0 112px;
  width: 112px;
  height: 32px;
}

.settings-panel[hidden] {
  display: none;
}

.settings-panel {
  position: absolute;
  top: 10px;
  left: calc(100% + 14px);
  display: grid;
  box-sizing: border-box;
  width: 286px;
  max-height: min(calc(58vh - 20px), 520px);
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  scrollbar-width: thin;
  scrollbar-color: #aaa rgba(12, 12, 12, 0.8);
  gap: 9px;
  padding: 11px 12px 12px;
  border: 2px solid #858585;
  background: linear-gradient(180deg, rgba(63, 63, 63, 0.97), rgba(12, 12, 12, 0.98));
  color: #ededed;
  font: 400 13px/1.25 "Daydream", system-ui, sans-serif;
  text-shadow: 1px 1px 0 #111;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.25), inset 0 -3px 0 rgba(0, 0, 0, 0.65);
}

.settings-panel::-webkit-scrollbar { width: 9px; }
.settings-panel::-webkit-scrollbar-track { background: rgba(12, 12, 12, 0.8); }
.settings-panel::-webkit-scrollbar-thumb { border: 2px solid rgba(12, 12, 12, 0.8); background: #aaa; }

.changelog-panel ul {
  display: grid;
  gap: 4px;
  margin: 8px 0 0;
  padding-left: 18px;
  color: #d3d3d3;
}

.changelog-panel { display: block; }
.credits-panel { display: block; }
.credits-panel p { margin: 8px 0 0; color: #d3d3d3; line-height: 1.5; }

#menu-notice {
  position: fixed;
  z-index: 15;
  top: max(18px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  left: auto;
  width: min(310px, calc(100vw - 36px));
  max-height: min(48vh, 280px);
  padding: 11px 42px 13px 12px;
}

#menu-notice p { margin: 0; color: #d3d3d3; line-height: 1.45; }
#menu-notice-close {
  position: absolute;
  z-index: 2;
  top: 7px;
  right: 8px;
  display: grid;
  width: 26px;
  min-height: 26px;
  place-items: center;
  border: 1px solid #aaa;
  padding: 0;
  background: linear-gradient(180deg, #858585, #292929);
  color: #fff;
  font: 20px/1 Arial, sans-serif;
  cursor: url("./uploads/hand-cursor.png") 17 0, pointer;
}
#menu-notice-close:hover { cursor: url("./uploads/hand-pointer-cursor.png") 9 0, pointer; }
body.intro-running #menu-notice,
body.on-lunar-surface #menu-notice { display: none; }

.setting-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

#mouse-sensitivity-value {
  min-width: 38px;
  color: #fff;
  text-align: right;
}

#mouse-sensitivity,
#camera-fov,
#mobile-sensitivity,
#music-volume,
#sfx-volume {
  width: 100%;
  height: 18px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: url("./uploads/hand-cursor.png") 17 0, pointer;
}

#mouse-sensitivity::-webkit-slider-runnable-track,
#camera-fov::-webkit-slider-runnable-track,
#mobile-sensitivity::-webkit-slider-runnable-track,
#music-volume::-webkit-slider-runnable-track,
#sfx-volume::-webkit-slider-runnable-track {
  height: 9px;
  border: 2px solid #777;
  background: linear-gradient(180deg, #1c1c1c, #656565);
  box-shadow: inset 0 1px 2px #000;
}

#mouse-sensitivity::-moz-range-track,
#camera-fov::-moz-range-track,
#mobile-sensitivity::-moz-range-track,
#music-volume::-moz-range-track,
#sfx-volume::-moz-range-track {
  height: 5px;
  border: 2px solid #777;
  background: linear-gradient(180deg, #1c1c1c, #656565);
  box-shadow: inset 0 1px 2px #000;
}

#mouse-sensitivity::-webkit-slider-thumb,
#camera-fov::-webkit-slider-thumb,
#mobile-sensitivity::-webkit-slider-thumb,
#music-volume::-webkit-slider-thumb,
#sfx-volume::-webkit-slider-thumb {
  width: 15px;
  height: 18px;
  margin-top: -6px;
  appearance: none;
  border: 2px solid #ddd;
  border-radius: 0;
  background: linear-gradient(180deg, #bdbdbd, #4c4c4c);
  box-shadow: 0 1px 2px #000;
}

#mouse-sensitivity::-moz-range-thumb,
#camera-fov::-moz-range-thumb,
#mobile-sensitivity::-moz-range-thumb,
#music-volume::-moz-range-thumb,
#sfx-volume::-moz-range-thumb {
  width: 11px;
  height: 14px;
  border: 2px solid #ddd;
  border-radius: 0;
  background: linear-gradient(180deg, #bdbdbd, #4c4c4c);
  box-shadow: 0 1px 2px #000;
}

#play-button,
#settings-button,
#changelog-button,
#credits-button {
  position: relative;
  display: flex;
  width: 260px;
  height: 58px;
  align-items: center;
  justify-content: center;
  gap: 13px;
  overflow: hidden;
  border: 0;
  padding: 4px 17px;
  isolation: isolate;
  clip-path: polygon(0 0, calc(100% - 27px) 0, 100% 27px, 100% 100%, 0 100%);
  background: linear-gradient(180deg, #d4d4d4 0%, #737373 43%, #252525 100%);
  color: #f4f4f4;
  font: 400 23px/1 "Daydream", system-ui, sans-serif;
  text-shadow: 1px 2px 0 #333, 0 0 4px #111;
  filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.75));
  cursor: url("./uploads/hand-cursor.png") 17 0, pointer;
  transition: filter 140ms ease, transform 140ms ease;
}

#play-button::before,
#settings-button::before,
#changelog-button::before,
#credits-button::before {
  position: absolute;
  z-index: -1;
  inset: 3px 3px 3px;
  clip-path: polygon(0 0, calc(100% - 23px) 0, 100% 23px, 100% 100%, 0 100%);
  background: linear-gradient(180deg, #a9a9a9 0%, #686868 42%, #3c3c3c 43%, #222 100%);
  content: "";
  pointer-events: none;
}

#play-button::after,
#settings-button::after,
#changelog-button::after,
#credits-button::after {
  position: absolute;
  z-index: -1;
  top: 5px;
  right: 9px;
  left: 5px;
  height: 22px;
  clip-path: polygon(0 0, calc(100% - 19px) 0, 100% 18px, 100% 100%, 0 70%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(238, 238, 238, 0.1));
  content: "";
  pointer-events: none;
}

.control-icon,
.control-label {
  position: relative;
  z-index: 1;
}

.play-icon,
.settings-icon,
.changelog-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border: 2px solid #dedede;
  border-radius: 50%;
  padding-left: 3px;
  background: linear-gradient(180deg, #858585, #292929);
  color: #fff;
  font: 18px/1 Arial, system-ui, sans-serif;
  text-shadow: 0 1px 2px #111;
  box-shadow: inset 0 1px 2px #111, 0 1px 0 #eee;
}

.play-icon {
  padding-left: 3px;
  font: 18px/1 Arial, system-ui, sans-serif;
}

.settings-icon {
  font: 22px/1 Arial, system-ui, sans-serif;
}

.changelog-icon {
  padding-left: 0;
}

.changelog-emoji {
  display: inline-block;
  font: 22px/1 system-ui, sans-serif;
  filter: grayscale(1) brightness(0) invert(1);
}

#play-button.is-playing .play-icon {
  padding-left: 0;
}

#play-button:hover,
#settings-button:hover,
#changelog-button:hover,
#credits-button:hover {
  filter: brightness(1.17) drop-shadow(0 4px 3px rgba(0, 0, 0, 0.75));
  cursor: url("./uploads/hand-pointer-cursor.png") 9 0, pointer;
}

#play-button:active,
#settings-button:active,
#changelog-button:active,
#credits-button:active {
  transform: translateY(3px);
  filter: brightness(0.88) drop-shadow(0 1px 1px rgba(0, 0, 0, 0.75));
}

#seed-input {
  position: absolute;
  inset: 0;
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  border: 2px solid #8a8a8a;
  border-radius: 0;
  padding: 3px 8px;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  background: linear-gradient(180deg, #bcbcbc 0%, #777 42%, #3c3c3c 43%, #242424 100%);
  color: transparent;
  caret-color: #f4f4f4;
  -webkit-text-fill-color: transparent;
  font: 400 15px/1.2 "Daydream", system-ui, sans-serif;
  text-shadow: none;
  cursor: text;
}

#seed-input::selection {
  color: transparent;
  background: rgba(170, 191, 255, 0.5);
}

#seed-input-visual {
  position: absolute;
  z-index: 2;
  inset: 2px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0 8px;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  color: #f4f4f4;
  font: 400 15px/1.2 "Daydream", system-ui, sans-serif;
  text-shadow: 1px 1px 0 #333;
  white-space: pre;
  pointer-events: none;
}

#seed-input-visual > span {
  flex: 0 0 auto;
}

#seed-input-visual > .is-rising {
  animation: seed-letter-rise 260ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

@keyframes seed-letter-rise {
  from { transform: translateY(115%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

#seed-button {
  position: relative;
  isolation: isolate;
  width: 42px;
  height: 32px;
  overflow: hidden;
  border: 0;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  padding: 0;
  background: linear-gradient(180deg, #d4d4d4 0%, #737373 43%, #252525 100%);
  cursor: url("./uploads/hand-cursor.png") 17 0, pointer;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.7));
  transition: filter 140ms ease;
}

#seed-button::before {
  position: absolute;
  z-index: -1;
  inset: 3px;
  clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 0 100%);
  background: linear-gradient(180deg, #a9a9a9 0%, #686868 42%, #3c3c3c 43%, #222 100%);
  content: "";
  pointer-events: none;
}

#seed-button::after {
  position: absolute;
  z-index: 2;
  top: 4px;
  right: 6px;
  left: 4px;
  height: 9px;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 70%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(238, 238, 238, 0.08));
  content: "";
  pointer-events: none;
}

#seed-button img {
  position: absolute;
  z-index: 1;
  inset: 4px;
  display: block;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  object-fit: cover;
}

#seed-button:hover {
  filter: brightness(1.17) drop-shadow(0 3px 2px rgba(0, 0, 0, 0.7));
  cursor: url("./uploads/hand-pointer-cursor.png") 9 0, pointer;
}

#play-button:focus-visible,
#settings-button:focus-visible,
#changelog-button:focus-visible,
#credits-button:focus-visible,
#seed-button:focus-visible,
#seed-input:focus-visible {
  outline: 2px solid #aabfff;
  outline-offset: 3px;
}

@media (max-width: 460px) {
  #play-button,
  #settings-button,
  #changelog-button,
  #credits-button {
    width: 260px;
    height: 54px;
  }
}

@media (max-width: 760px) {
  .scene-controls { width: 280px; }
  .settings-panel {
    position: fixed;
    top: auto;
    right: auto;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: clamp(12px, 4vw, 24px);
    width: min(286px, calc(100vw - 24px));
    max-height: min(62vh, 420px);
  }
  .changelog-panel { display: block; }
}

#mobile-controls[hidden] { display: none; }
#mobile-controls {
  position: fixed; z-index: 12; inset: 0; pointer-events: none;
  touch-action: none; user-select: none; -webkit-user-select: none;
}
body.mobile-controls-enabled #current-music {
  top: max(8px, env(safe-area-inset-top));
  right: auto;
  bottom: auto;
  left: 50%;
  max-width: min(360px, calc(100vw - 28px));
  transform: translateX(-50%);
  text-align: center;
}
.mobile-stick {
  position: absolute; left: max(22px, env(safe-area-inset-left)); bottom: max(22px, env(safe-area-inset-bottom));
  width: clamp(112px, 24vw, 154px); aspect-ratio: 1; pointer-events: auto; touch-action: none;
}
.stick-base, .stick-thumb {
  position: absolute; left: 50%; top: 50%; border: 2px solid rgba(234,238,245,.72); border-radius: 50%; transform: translate(-50%,-50%);
}
.stick-base { width: 100%; height: 100%; background: rgba(8,13,20,.44); box-shadow: inset 0 0 20px #0008; }
.stick-thumb { width: 43%; height: 43%; background: rgba(213,225,239,.66); box-shadow: 0 2px 9px #0009; }
.mobile-actions {
  position: absolute; right: max(20px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom));
  display: grid; grid-template-columns: repeat(2, minmax(74px, 104px)); gap: 8px; pointer-events: auto;
}
.mobile-actions button {
  position: relative; isolation: isolate; display: flex; min-width: 74px; min-height: 58px; align-items: center; justify-content: flex-start; gap: 7px;
  overflow: hidden; border: 0; padding: 5px 8px; clip-path: polygon(0 0,calc(100% - 20px) 0,100% 20px,100% 100%,0 100%);
  background: linear-gradient(180deg,#d4d4d4 0%,#737373 43%,#252525 100%); color: #f4f4f4;
  font: 400 11px/1 "Daydream",system-ui,sans-serif; text-shadow: 1px 2px 0 #333,0 0 4px #111;
  filter: drop-shadow(0 4px 3px rgba(0,0,0,.75)); touch-action: none; user-select: none; -webkit-user-select: none;
}
.mobile-actions button::before,.mobile-actions button::after { position:absolute; z-index:-1; content:""; pointer-events:none; }
.mobile-actions button::before { inset:3px; clip-path:polygon(0 0,calc(100% - 16px) 0,100% 16px,100% 100%,0 100%); background:linear-gradient(180deg,#a9a9a9 0%,#686868 42%,#3c3c3c 43%,#222 100%); }
.mobile-actions button::after { top:5px; right:7px; left:5px; height:19px; clip-path:polygon(0 0,calc(100% - 14px) 0,100% 14px,100% 100%,0 70%); background:linear-gradient(180deg,rgba(255,255,255,.48),rgba(238,238,238,.1)); }
.mobile-actions button.is-pressed { transform: translateY(3px); filter:brightness(.88) drop-shadow(0 1px 1px rgba(0,0,0,.75)); }
.mobile-action-icon { position:relative; z-index:1; display:grid; width:28px; height:28px; flex:0 0 28px; place-items:center; border:2px solid #dedede; border-radius:50%; background:linear-gradient(180deg,#858585,#292929); color:#fff; font:700 14px/1 Arial,sans-serif; box-shadow:inset 0 1px 2px #111,0 1px 0 #eee; }
.mobile-actions button > span:last-child { position:relative; z-index:1; }
body.mobile-controls-enabled #terrain { touch-action: none; }
body.mobile-controls-enabled .settings-panel { max-height: min(62vh,420px); overflow-y: auto; overscroll-behavior: contain; }

body.seed-67 .settings-panel,
body.seed-67 .pause-card,
body.seed-67 .confirm-card {
  border-color: #4e9be0;
  background: linear-gradient(145deg, #1d67a6, #0c3d70 62%, #082b51);
  color: #e6f4ff;
}
body.seed-67 .scene-controls::before { background: linear-gradient(180deg, #72c3ff, #2677b8 45%, #14538d); }
body.seed-67 .scene-controls::after { background: linear-gradient(145deg, #1c65a2, #0c3c6d 62%, #08294d); }
body.seed-67 .settings-panel { background: linear-gradient(145deg, #236fac, #104979 62%, #0a3159); }
body.seed-67 .settings-panel::before,
body.seed-67 .pause-card::before,
body.seed-67 .confirm-card::before { background: linear-gradient(180deg, #4388c7, #164477 45%, #0b2b50); }
body.seed-67 button {
  border-color: #9bd3ff;
  background: linear-gradient(180deg, #62b6f4, #2476ba 48%, #124c80);
  color: #f3faff;
}
body.seed-67 #play-button,
body.seed-67 #settings-button,
body.seed-67 #changelog-button,
body.seed-67 #credits-button,
body.seed-67 #seed-button,
body.seed-67 .mobile-actions button {
  background: linear-gradient(180deg, #69b5f3 0%, #327ab9 43%, #123e70 100%);
}
body.seed-67 #play-button::before,
body.seed-67 #settings-button::before,
body.seed-67 #changelog-button::before,
body.seed-67 #credits-button::before,
body.seed-67 #seed-button::before,
body.seed-67 .mobile-actions button::before {
  background: linear-gradient(180deg, #398bd0, #185a94 43%, #0d3966);
}
body.seed-67 .fps-counter,
body.seed-67 #current-music,
body.seed-67 #battery-readout,
body.seed-67 .field-panel,
body.seed-67 .interaction-prompt,
body.seed-67 .driving-prompt,
body.seed-67 .hotbar-slot {
  border-color: #579cdb;
  background: linear-gradient(180deg, #438fd1, #15558c 48%, #0b3159);
  color: #eff8ff;
}
body.seed-67 .field-panel::before,
body.seed-67 .hotbar-slot::before,
body.seed-67 #battery-readout::before { background: linear-gradient(180deg, #2876b4, #124a7c 50%, #0a2c50); }
body.seed-67 .pause-card button,
body.seed-67 .confirm-card button { background: linear-gradient(180deg, #58a9e4, #1b639f 55%, #0e3c69); }
body.seed-67 .seed-input-wrap,
body.seed-67 .pause-seed-input-wrap {
  background: linear-gradient(180deg, #66b5ef, #27699f 43%, #123c68);
}
body.seed-67 .seed-input-wrap::before,
body.seed-67 .pause-seed-input-wrap::before { background: linear-gradient(180deg, #143e68, #071d37); }
body.seed-67 .setting-heading,
body.seed-67 .settings-panel label,
body.seed-67 .pause-world-info span,
body.seed-67 .pause-seed-entry > span { color: #c6e6ff; }
body.seed-67 input[type="range"]::-webkit-slider-thumb { background: linear-gradient(180deg, #bce4ff, #438fd1); border-color: #e3f5ff; }
body.seed-67 input[type="range"]::-moz-range-thumb { background: linear-gradient(180deg, #bce4ff, #438fd1); border-color: #e3f5ff; }

.pause-overlay, .confirm-overlay {
  position: fixed; z-index: 30; inset: 0; display: grid; place-items: center;
  padding: 18px; background: rgba(0, 0, 0, .58); backdrop-filter: blur(2px);
  color: #f4f4f4; font: 15px/1.4 "Daydream", system-ui, sans-serif; text-shadow: 1px 1px 0 #111;
}
.pause-overlay[hidden], .confirm-overlay[hidden] { display: none; }
.pause-card, .confirm-card {
  width: min(430px, 100%); max-height: min(88vh, 760px); overflow: auto; padding: 20px;
  border: 2px solid #8a8a8a; background: linear-gradient(145deg, rgba(43,43,43,.98), rgba(8,8,8,.98));
  box-shadow: inset 0 2px 0 rgba(255,255,255,.2), 0 12px 45px #000;
}
.pause-card h2, .confirm-card h2 { margin: 0 0 16px; font-size: 25px; letter-spacing: .04em; }
.pause-actions { display: grid; gap: 9px; }
.pause-card button, .confirm-card button {
  min-height: 44px; border: 2px solid #858585; padding: 8px 14px; color: #fff;
  background: linear-gradient(180deg, #858585, #292929); font: inherit; text-shadow: 1px 1px 0 #111; cursor: pointer;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.25), 0 3px 3px rgba(0,0,0,.55);
}
.pause-card button:hover, .confirm-card button:hover { filter: brightness(1.2); cursor: url("./uploads/hand-pointer-cursor.png") 9 0, pointer; }
.pause-card button:focus-visible, .confirm-card button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.pause-subhead, .pause-world-info { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pause-subhead h3, .pause-world-info h3 { margin: 0; font-size: 17px; }
.pause-subhead button, .pause-world-info button { min-height: 34px; padding: 5px 10px; font-size: 13px; }
.pause-world-info { margin-top: 16px; padding-top: 13px; border-top: 1px solid #777; flex-wrap: wrap; }
.pause-world-info div { display: grid; gap: 4px; }
.pause-world-info span { color: #c9c9c9; font: 12px system-ui, sans-serif; }
.pause-world-info code { color: #fff; font: 15px ui-monospace, monospace; }
.pause-seed-entry { display: grid; grid-template-columns: 1fr auto; width: 100%; align-items: center; gap: 7px; margin-top: 4px; }
.pause-seed-entry > span { grid-column: 1 / -1; color: #c9c9c9; font: 12px system-ui, sans-serif; }
.pause-seed-input-wrap { position: relative; min-width: 0; height: 38px; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); background: linear-gradient(180deg, #bcbcbc 0%, #777 42%, #3c3c3c 43%, #242424 100%); }
.pause-seed-input-wrap::before { position: absolute; inset: 2px; content: ""; pointer-events: none; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); background: linear-gradient(180deg, #262626, #090909); }
.pause-seed-entry input { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; min-width: 0; border: 0; padding: 5px 10px; clip-path: inherit; background: transparent; color: transparent; caret-color: #f4f4f4; -webkit-text-fill-color: transparent; font: 400 15px/1.2 "Daydream", system-ui, sans-serif; cursor: url("./uploads/hand-cursor.png") 17 0, text; }
.pause-seed-entry input::selection { color: transparent; background: rgba(170, 191, 255, .5); }
#pause-seed-visual { position: absolute; z-index: 2; inset: 2px; display: flex; align-items: center; overflow: hidden; padding: 0 8px; color: #f4f4f4; font: 400 15px/1.2 "Daydream", system-ui, sans-serif; text-shadow: 1px 1px 0 #333; white-space: pre; pointer-events: none; }
#pause-seed-visual > span { flex: 0 0 auto; }
#pause-seed-visual > .is-rising { animation: seed-letter-rise 260ms cubic-bezier(.2,.75,.25,1) both; }
.pause-seed-entry input:hover { cursor: url("./uploads/hand-pointer-cursor.png") 9 0, text; }
.pause-seed-entry input:focus { cursor: text; }
.pause-seed-entry button { font-size: 13px; }
#pause-settings-host .settings-panel { position: static; width: 100%; max-height: min(48vh, 420px); margin-top: 10px; border-color: #555; }
.confirm-card p { margin: -5px 0 18px; color: #d2d2d2; font: 14px/1.5 system-ui, sans-serif; }

/* Complete blue palette for every 67-seed interface layer. */
body.seed-67 .scene-title { color: #c8eaff; text-shadow: 0 0 18px #218de0, 2px 3px 0 #12416d; }
body.seed-67 .pause-overlay,
body.seed-67 .confirm-overlay { background: rgba(4, 27, 54, .76); }
body.seed-67 .pause-card,
body.seed-67 .confirm-card { border-color: #62b6f4; background: linear-gradient(145deg, #236fae, #104777 65%, #0a3158); }
body.seed-67 .pause-card button,
body.seed-67 .confirm-card button,
body.seed-67 #menu-notice-close,
body.seed-67 #photo-mode-toggle,
body.seed-67 #photo-capture,
body.seed-67 #equipment-note-close {
  border-color: #9bd5ff;
  background: linear-gradient(180deg, #65baf5, #2779b9 55%, #124b7e);
  color: #f3faff;
}
body.seed-67 .pause-world-info { border-color: #65a9df; }
body.seed-67 .pause-world-info span,
body.seed-67 .pause-seed-entry > span,
body.seed-67 .confirm-card p,
body.seed-67 #menu-notice p,
body.seed-67 .settings-panel li { color: #d4edff; }
body.seed-67 #menu-notice { border-color: #69b6ee; background: linear-gradient(145deg, #256fa9, #10436f); color: #eff8ff; }
body.seed-67 .field-panel,
body.seed-67 #battery-readout,
body.seed-67 .interaction-prompt,
body.seed-67 .driving-prompt,
body.seed-67 .fps-counter,
body.seed-67 #current-music {
  border-color: #70bdf5;
  background: linear-gradient(180deg, #398bca, #155587 56%, #0a3158);
  color: #f0f9ff;
}
body.seed-67 .interaction-prompt::before,
body.seed-67 .field-panel::before,
body.seed-67 #battery-readout::before,
body.seed-67 #current-music::before { background: linear-gradient(180deg, #287ab7, #124a7a 55%, #0b2e51); }
body.seed-67 .hotbar-slot::before { background: linear-gradient(180deg, #287ab7, #124a7a 55%, #0b2e51); }
body.seed-67 .mobile-stick { border-color: #83caff; background: rgba(10, 63, 107, .76); }
body.seed-67 .stick-base { background: rgba(26, 105, 165, .78); box-shadow: inset 0 0 20px #061c32; }
body.seed-67 .stick-thumb,
body.seed-67 .mobile-action-icon { border-color: #a4d9ff; background: linear-gradient(180deg, #7bc7fb, #24699f); color: #fff; }
body.seed-67 .field-actions kbd,
body.seed-67 .interaction-prompt kbd { border-color: #a4d9ff; background: #14558b; color: #fff; }
body.seed-67 .settings-panel { border-color: #65b6f1; background: linear-gradient(145deg, #236fae, #104777 65%, #0a3158); color: #edf8ff; }
body.seed-67 .settings-panel::-webkit-scrollbar-track { background: #0b3154; }
body.seed-67 .settings-panel::-webkit-scrollbar-thumb { border-color: #0b3154; background: #4b9bd5; }
body.seed-67 input[type="range"] { accent-color: #51a9ee; }
body.seed-67 input[type="checkbox"] { accent-color: #2684c9; }
body.seed-67 .seed-input-wrap,
body.seed-67 .pause-seed-input-wrap { background: linear-gradient(180deg, #83d0ff, #287cba 48%, #124b7b); }
body.seed-67 .seed-input-wrap::before,
body.seed-67 .pause-seed-input-wrap::before { background: linear-gradient(180deg, #165589, #082b4d); }
body.seed-67 #seed-input,
body.seed-67 .pause-seed-entry input { caret-color: #e5f6ff; }
body.seed-67 #seed-input-visual,
body.seed-67 #pause-seed-visual,
body.seed-67 .setting-heading output { color: #e9f7ff; }
body.seed-67 .hotbar-slot.is-selected { filter: brightness(1.35) drop-shadow(0 0 8px rgba(81, 174, 241, .95)); }
body.seed-67 #photo-mode-toggle,
body.seed-67 #photo-capture { background: linear-gradient(180deg, #58ade8, #1c649c 56%, #0c3b68); }
body.seed-67 .field-actions button::before,
body.seed-67 #photo-capture::before,
body.seed-67 .fps-counter::before { background: linear-gradient(180deg, #3989c5, #155487 56%, #0a3158); }
body.seed-67 .fps-counter::after,
body.seed-67 .field-actions button::after,
body.seed-67 #photo-capture::after { background: linear-gradient(180deg, rgba(190, 231, 255, .45), rgba(97, 172, 224, .12)); }
.battery-setting { min-height: 32px; display: flex; align-items: center; gap: 8px; }
.battery-setting input { width: 20px; height: 20px; }
@media (max-width: 700px) {
  body.mobile-controls-enabled #field-hud { top: max(8px,env(safe-area-inset-top)); right: max(8px,env(safe-area-inset-right)); max-width: min(48vw,250px); font-size: 10px; }
  body.mobile-controls-enabled .field-panel { max-width: calc(100vw - 24px); max-height: 48vh; overflow-y: auto; }
  body.mobile-controls-enabled #rover-hud { bottom: calc(96px + env(safe-area-inset-bottom)); font-size: 10px; }
  body.mobile-controls-enabled #hotbar { bottom: calc(10px + env(safe-area-inset-bottom)); }
  body.mobile-controls-enabled .mobile-stick { width: clamp(104px,27vw,138px); }
  body.mobile-controls-enabled .mobile-actions { grid-template-columns: repeat(2, minmax(72px, 92px)); gap: 6px; }
  body.mobile-controls-enabled .mobile-actions button { min-width: 72px; min-height: 50px; gap:5px; padding:4px 6px; font-size:9px; }
  body.mobile-controls-enabled .mobile-action-icon { width:24px; height:24px; flex-basis:24px; }
  body.mobile-controls-enabled .settings-panel { width: min(260px,calc(100vw - 46px)); }
}
