@font-face {font-family:'DM Sans';font-style:normal;font-weight:400 800;font-display:swap;src:url(../assets/dm-sans.woff2) format('woff2');}
:root {
  color-scheme: dark;
  --bg: #090e20;
  --panel: #11192e;
  --line: #29334a;
  --muted: #a1acc1;
  --aqua: #77e8db;
  --orange: #ff9c55;
  --white: #f4f6ff;
  font-family: "DM Sans", Arial, sans-serif;
  color: var(--white);
  background: var(--bg)
}

* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none
}

body {
  background: radial-gradient(ellipse at 90% 5%, #191b36 0, transparent 39%), var(--bg);
  -webkit-tap-highlight-color: transparent
}

button,
input,
select {
  font: inherit
}

button {
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  touch-action: manipulation
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--aqua);
  outline-offset: 2px
}

button:disabled {
  cursor: default
}

button {
  transition: background .15s, filter .15s, transform .15s
}

button:active:not(:disabled) {
  transform: translateY(1px)
}

svg {
  display: block
}

.icon {
  width: 22px;
  height: 22px;
  flex: none
}

.mono,
.eyebrow,
.tiny {
  font-family: "Courier New", monospace;
  font-weight: 700;
  letter-spacing: 1.5px
}

.eyebrow {
  font-size: 11px;
  color: var(--aqua)
}

.tiny {
  font-size: 10px;
  letter-spacing: 1px
}

.muted {
  color: var(--muted)
}

#app {
  height: 100vh;
  height: 100dvh;
  padding: env(safe-area-inset-top) env(safe-area-inset-right)
    env(safe-area-inset-bottom) env(safe-area-inset-left);
  display: flex;
  flex-direction: column
}

header {
  height: 80px;
  flex: none;
  border-bottom: 1px solid #252d42;
  background: #0d1225
}

.navwrap {
  height: 100%;
  max-width: 1660px;
  padding: 0 clamp(22px, 3.8vw, 64px);
  margin: auto;
  display: flex;
  align-items: center;
  gap: 30px
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -1.5px;
  padding: 0;
  min-height: 64px;
  white-space: nowrap
}

.brand svg {
  width: 48px;
  height: 48px
}

.nav {
  display: flex;
  gap: 8px;
  margin: auto
}

.nav button,
.utility {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 64px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 700;
  color: #aab4c9;
  position: relative;
  isolation: isolate
}

.nav button.on {
  color: var(--aqua)
}

.nav button.on:before,
.utility:before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 10px 0;
  border: 1px solid #345151;
  border-radius: 11px;
  background: #172d34
}

.utility:before {
  border-color: #30384c;
  background: #141b2d
}

.utilities {
  display: flex;
  gap: 10px;
  align-items: center
}

[data-act="parents"] {
  -webkit-touch-callout: none;
  user-select: none
}

.sound {
  width: 64px;
  padding: 0
}

.sound:before {
  inset: 10px 8px
}

.utility:hover:before,
.nav button:hover:before {
  filter: brightness(1.2)
}

main {
  width: 100%;
  max-width: 1660px;
  margin: 0 auto;
  padding: clamp(20px, 3.2vh, 38px) clamp(22px, 3.8vw, 64px) clamp(20px, 3vh, 34px);
  min-height: 0;
  flex: 1;
  overflow: auto
}

.storage-warning {
  display: block;
  padding: 4px 8px;
  background: #11192e
}

.home {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.5vh, 30px)
}

.lead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px
}

.lead h1,
.screenhead h1 {
  font-size: clamp(33px, 3.3vw, 54px);
  line-height: 1.05;
  letter-spacing: -2px;
  margin: 0 0 9px
}

.lead p,
.screenhead p {
  margin: 0;
  color: #a6b2ca;
  line-height: 1.45;
  font-size: clamp(14px, 1.18vw, 18px)
}

.rank {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 12px 0 0
}

.rank svg {
  width: 48px;
  height: 48px
}

.rank small {
  display: block;
  color: #9caac3;
  font: 700 9px "Courier New", monospace;
  letter-spacing: 1.6px;
  margin-bottom: 4px
}

.rank strong {
  font-size: 15px
}

.missiongrid {
  display: grid;
  grid-template-columns: minmax(0, 2.05fr) minmax(270px, 1fr);
  gap: 20px;
  min-height: 0;
  flex: 1
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 19px;
  overflow: hidden;
  box-shadow: 0 5px 24px #03071318
}

.mapcard {
  display: flex;
  flex-direction: column;
  position: relative;
  background: #10172d
}

.cardhead,
.mapfoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
  padding: 0 23px;
  gap: 10px
}

.cardhead {
  height: clamp(46px, 6.5vh, 68px);
  border-bottom: 1px solid var(--line);
  background: #131b2f
}

.cardhead h2,
.loghead h2 {
  margin: 0;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 19px;
  letter-spacing: -.55px
}

.cardhead .icon,
.loghead .icon {
  color: var(--aqua);
  width: 21px
}

.sector {
  display: flex;
  gap: 7px;
  align-items: center;
  color: #8d9bb5;
  font-size: 10px
}

.sector i,
.available i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #74dfbf;
  display: inline-block;
  box-shadow: 0 0 8px #75efb333
}

.chart {
  position: relative;
  flex: 1;
  min-height: 0;
  background: #10172d;
  isolation: isolate
}

.mapart {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1
}

.planetbtn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  width: 21%;
  height: 40%;
  min-width: 64px;
  min-height: 64px;
  padding: 0;
  overflow: visible
}

.planetbtn:active:not(:disabled) {
  transform: translate(-50%, -50%)
}

.planetbtn>svg {
  height: 100%;
  width: 100%;
  overflow: visible;
  transition: filter .2s, scale .2s
}

.planetbtn:hover>svg {
  filter: brightness(1.13);
  scale: 1.035
}

.planetbtn .pname {
  position: absolute;
  top: 92%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  white-space: nowrap;
  line-height: 1.2;
  font-size: clamp(12px, 1.13vw, 17px);
  font-weight: 700;
  text-shadow: 0 2px 4px #090d1f
}

.pname small {
  display: block;
  margin: 0 auto 4px;
  font: 700 9px "Courier New", monospace;
  letter-spacing: 1.8px;
  color: var(--c)
}

.selected .pname>span {
  color: var(--aqua)
}

.mapfoot {
  height: 41px;
  border-top: 1px solid #273047;
  font-size: 11px;
  color: #a7b3c9;
  background: #101729
}

.mapfoot span {
  display: flex;
  align-items: center;
  gap: 7px
}

.mapfoot .icon {
  width: 15px;
  height: 15px;
  color: #a7b3c9
}

.mapfoot .tiny {
  font-weight: 400;
  color: #8390a8
}

.brief {
  display: flex;
  flex-direction: column;
  background: linear-gradient(125deg, #182139, #121a2e)
}

.artbanner {
  position: relative;
  min-height: 72px;
  flex: 1;
  overflow: hidden;
  background: #192a40;
  border-bottom: 1px solid #304655
}

.artbanner>svg {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0
}

.worldtag {
  position: absolute;
  top: 16px;
  left: 18px;
  color: #adf9de;
  background: #112e32e8;
  border: 1px solid #47746c;
  border-radius: 6px;
  padding: 6px 9px;
  display: flex;
  align-items: center;
  gap: 6px
}

.worldtag b {
  border-radius: 50%;
  width: 5px;
  height: 5px;
  background: #86efd0
}

.briefbody {
  padding: clamp(15px, 2vh, 25px) clamp(17px, 1.6vw, 26px);
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.25vh, 15px)
}

.briefbody h2 {
  margin: 0;
  font-size: clamp(22px, 1.95vw, 33px);
  line-height: 1.12;
  letter-spacing: -1px
}

.briefbody p {
  font-size: clamp(13px, 1vw, 16px);
  line-height: 1.5;
  color: #adb9cf;
  margin: 0
}

.levelrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px
}

.levelrow span:first-child {
  display: flex;
  gap: 7px;
  align-items: center;
  color: #d5dbeb
}

.levelrow svg {
  color: var(--aqua);
  width: 15px;
  height: 15px
}

.bars {
  display: flex;
  gap: 6px
}

.bars i {
  height: 4px;
  border-radius: 4px;
  flex: 1;
  background: #303b52
}

.bars i.on {
  background: var(--aqua)
}

.launch,
.primary,
.secondary,
.answer {
  border-radius: 12px;
  min-height: 64px;
  min-width: 64px;
  font-weight: 700
}

.launch,
.primary {
  background: var(--orange);
  color: #28180e
}

.launch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 17px;
  width: 100%;
  box-shadow: inset 0 1px 0 #ffd6ac
}

.launch .arrow {
  margin-left: auto
}

.launch {
  padding: 0 18px
}

.launch span {
  margin: auto 0
}

.launch:hover,
.primary:hover {
  background: #ffaf72
}

.secondary,
.answer {
  background: #202c43;
  border: 1px solid #3c4962;
  padding: 0 18px
}

.secondary:hover,
.answer:hover {
  border-color: #77c9c0
}

.log {
  flex: none
}

.loghead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px
}

.loghead h2 {
  font-size: 20px
}

.loghead h2 svg {
  color: #9cabc5
}

.loghead span {
  font: 11px "Courier New", monospace;
  letter-spacing: .7px;
  color: #8998b2
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px
}

.stat {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.5vw, 23px);
  padding: clamp(13px, 2vh, 24px) 20px;
  border-radius: 15px;
  background: linear-gradient(112deg, #1c2033, #141a2c);
  text-align: left
}

.stat:nth-child(2) {
  background: linear-gradient(112deg, #211e31, #151a2d)
}

.stat:nth-child(3) {
  background: linear-gradient(112deg, #211f39, #161b30)
}

.statart {
  width: 55px;
  height: 55px;
  flex: none;
  border-radius: 16px;
  display: grid;
  place-items: center;
  border: 1px solid #675031;
  background: #3b3029
}

.statart svg {
  width: 42px;
  height: 42px
}

.stat:nth-child(2) .statart {
  background: #3b2931;
  border-color: #62404b
}

.stat:nth-child(3) .statart {
  background: #302942;
  border-color: #514165
}

.statlabel {
  display: block;
  color: #b6c1d5;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px
}

.stat strong {
  font-size: 28px;
  line-height: 1;
  letter-spacing: -1px
}

.stat strong small {
  font-size: 14px;
  font-weight: 400;
  color: #8795b0;
  letter-spacing: 0
}

.stat>.icon {
  margin-left: auto;
  color: #74809b;
  width: 17px
}

.overlay {
  position: fixed;
  inset: 0;
  background: #050918ba;
  backdrop-filter: blur(7px);
  display: grid;
  place-items: center;
  z-index: 10;
  padding: 20px
}

.dialog {
  width: min(510px, 100%);
  max-height: 92dvh;
  overflow: auto;
  padding: 26px;
  background: #151e32;
  border: 1px solid #435069;
  border-radius: 22px;
  box-shadow: 0 18px 100px #0009
}

.modalhead,
.screenhead,
.row,
.qmeta,
.gfoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px
}

.dialog h2 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -1px
}

.dialog p {
  line-height: 1.5;
  color: #c0ccdf
}

.xbtn,
.iconbtn {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: #202b40;
  flex: none
}

.dialog .modalhead {
  margin-top: -8px
}

.dialog input {
  width: 100%;
  min-height: 64px;
  background: #0d1528;
  border: 1px solid #485571;
  border-radius: 10px;
  color: white;
  padding: 0 18px;
  font-size: 23px
}

.dialog .primary {
  width: 100%;
  margin-top: 14px
}

.levelpick {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  min-height: 64px;
  background: #202c42;
  border: 1px solid #34445a;
  border-radius: 12px;
  padding: 10px 16px;
  margin: 8px 0;
  text-align: left
}

.levelpick .icon:last-child {
  margin-left: auto
}

.levelpick:disabled {
  opacity: .55
}

.levelpick strong,
.levelpick small {
  display: block
}

.levelpick small {
  color: #aab8ce;
  margin-top: 3px
}

.screen {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: 17px
}

.screenhead {
  flex: none
}

.screenhead h1 {
  font-size: clamp(26px, 3vw, 42px)
}

.screenhead .secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px
}

.contentpane {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 22px
}

.bookgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px
}

.sticker {
  text-align: center;
  border: 1px solid #303952;
  background: radial-gradient(ellipse at 50% 35%, #282c46, #141b2f 70%);
  border-radius: 15px;
  padding: 13px
}

.sticker svg {
  height: 76px;
  width: 100%;
  margin: auto
}

.sticker.locked svg {
  filter: grayscale(.85);
  opacity: .45
}

.sticker small {
  color: #96a3bf;
  display: block;
  margin-top: 5px
}

.parenttabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.parenttabs button,
.rangebtn {
  min-height: 64px;
  min-width: 64px;
  border: 1px solid #38455e;
  border-radius: 12px;
  padding: 0 15px;
  background: #1b263b
}

.parenttabs .on,
.rangebtn.on {
  color: #92eddb;
  background: #1a373c;
  border-color: #4f8f88
}

.parentrow {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 9px 0;
  border-bottom: 1px solid #2c3850
}

.parentrow small {
  display: block;
  color: #a7b4c9;
  margin: 5px 0
}

.parentrow .bars {
  margin-bottom: 7px
}

.parentrow .bars i {
  height: 7px
}

.toggle {
  min-height: 64px;
  min-width: 114px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #1b273c;
  border: 1px solid #37455c;
  border-radius: 10px
}

.toggle.open {
  color: var(--aqua)
}

.toggle svg {
  width: 17px
}

.errtxt {
  color: #ffc08b;
  min-height: 20px
}
