@import url("./assets/fonts/fonts.css");
:root {
  color-scheme: dark;
  --cream: #f6f2df;
  --mint: #c5eca0;
  --muted: #a7bcb0;
  --line: #d9eac122;
  --bg: #102c26;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: "DM Sans", system-ui, sans-serif;
  overflow: hidden;
}
button,
select,
a {
  -webkit-tap-highlight-color: transparent;
}
button,
select {
  font: inherit;
}
button,
a,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 5px;
}
button {
  color: inherit;
}
#game {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
}
#game canvas {
  display: block;
}
veno-shell {
  display: none !important;
}
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 4%;
  z-index: 10;
  pointer-events: none;
}
.wordmark,
.nav {
  pointer-events: auto;
}
.wordmark {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--cream);
  text-decoration: none;
  font-family: Manrope, system-ui;
  font-weight: 800;
  font-size: 25px;
  letter-spacing: 2px;
  line-height: 1.1;
}
.wordmark img {
  width: 45px;
  height: 45px;
}
.wordmark small {
  display: block;
  font-size: 9px;
  letter-spacing: 3px;
  margin-top: 6px;
  color: #a5c4ae;
}
.brand-dot {
  vertical-align: top;
  font-size: 9px;
  letter-spacing: 0;
  margin-left: 3px;
}
.nav {
  display: flex;
  gap: 10px;
  align-items: center;
}
.icon-btn,
.language {
  border: 1px solid var(--line);
  background: #0e292780;
  backdrop-filter: blur(15px);
  border-radius: 50px;
  height: 42px;
}
.icon-btn {
  width: 42px;
  font-size: 19px;
}
.icon-btn:hover,
.language:hover {
  background: #c5eca015;
}
.language {
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
}
.language select {
  border: 0;
  background: transparent;
  color: var(--cream);
  font-size: 12px;
  max-width: 120px;
  cursor: pointer;
}
.language option {
  background: #17392f;
}
#overlay {
  position: fixed;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}
#overlay > * {
  pointer-events: auto;
}
.home {
  position: absolute;
  left: 8%;
  top: 50%;
  transform: translateY(-45%);
  width: 34%;
  max-width: 500px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 3px;
  font-weight: 700;
  color: var(--mint);
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow:before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--mint);
}
h1 {
  font-family: Manrope, system-ui, sans-serif;
  font-size: clamp(48px, 6.5vw, 98px);
  font-weight: 500;
  letter-spacing: -5px;
  line-height: 1.02;
  margin: 24px 0;
}
h1 em {
  display: block;
  font-family: Georgia, serif;
  font-weight: 400;
  color: var(--mint);
  letter-spacing: -4px;
}
p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 14px;
}
.intro {
  max-width: 340px;
  margin: 22px 0 30px;
}
.primary,
.secondary {
  border: 0;
  border-radius: 50px;
  padding: 17px 29px;
  min-height: 52px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-decoration: none;
  font-size: 14px;
  transition:
    transform 0.2s,
    background 0.2s;
}
.primary {
  background: var(--mint);
  color: #16392c;
  box-shadow: 0 8px 35px #b4f98e10;
}
.primary:hover {
  background: #dcf9be;
  transform: translateY(-2px);
}
.secondary {
  border: 1px solid #d9eac133;
  background: #15382b70;
  color: var(--cream);
}
.secondary:hover {
  background: #204936;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.home-meta {
  display: flex;
  gap: 27px;
  margin-top: 38px;
  padding-top: 23px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 1px;
  color: #a5bdad;
}
.home-meta b {
  display: block;
  font-size: 18px;
  color: var(--cream);
  font-weight: 500;
  margin-bottom: 6px;
  letter-spacing: 0;
}
.footer {
  position: absolute;
  bottom: 25px;
  left: 4%;
  right: 4%;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 2px;
  color: #91aa97;
}
.footer a {
  color: inherit;
  text-decoration: none;
}
.backdrop {
  position: absolute;
  inset: 0;
  background: #061d19aa;
  backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  padding: 80px 20px 25px;
  overflow: auto;
}
.card {
  width: min(450px, 100%);
  padding: 36px;
  border-radius: 28px;
  background: linear-gradient(145deg, #20483a, #102e27);
  border: 1px solid #c5eca02a;
  box-shadow: 0 25px 90px #0005;
  text-align: center;
}
.card h2 {
  font-family: Manrope, system-ui;
  font-size: 30px;
  letter-spacing: -1px;
  margin: 12px 0;
}
.card .actions {
  justify-content: center;
  flex-direction: column;
}
.card .eyebrow {
  justify-content: center;
}
.card .eyebrow:before {
  display: none;
}
.card .score {
  font-size: 52px;
  margin: 16px 0;
  color: var(--mint);
  font-weight: 700;
}
.steps {
  text-align: left;
  margin: 22px 0;
}
.steps p {
  font-size: 13px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}
.stars {
  color: #e9c575;
  font-size: 36px;
  letter-spacing: 10px;
}
.fine {
  font-size: 11px;
  line-height: 1.6;
}
.level-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin: 22px 0;
}
.level-grid button {
  aspect-ratio: 1;
  background: #ffffff08;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.level-grid button.unlocked {
  background: #c5eca020;
  color: var(--mint);
}
#game-actions {
  position: fixed;
  z-index: 4;
  bottom: 7%;
  left: 14%;
  display: flex;
  gap: 12px;
}
#game-actions[hidden] {
  display: none;
}
#game-actions button {
  background: #1b4135cc;
  border: 1px solid #b9d0ac33;
  border-radius: 40px;
  padding: 12px 18px;
  color: var(--cream);
  font-size: 12px;
}
#toast {
  position: fixed;
  bottom: 5%;
  left: 50%;
  transform: translate(-50%, 15px);
  background: #e2efc9;
  color: #193d2c;
  padding: 12px 24px;
  border-radius: 30px;
  z-index: 30;
  opacity: 0;
  transition:
    opacity 0.2s,
    transform 0.2s;
  pointer-events: none;
  text-align: center;
  max-width: 90%;
  font-size: 13px;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
#loading {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 22px;
  letter-spacing: 4px;
  font-size: 12px;
}
#loading img {
  width: 70px;
}
#loading i {
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--mint), transparent);
  animation: load 1s infinite alternate;
}
@keyframes load {
  to {
    opacity: 0.2;
    transform: scaleX(0.5);
  }
}
body.clean #header,
body.clean #overlay,
body.clean #game-actions,
body.clean #toast {
  display: none !important;
}
body.clean #loading {
  background: var(--bg);
}
.studio {
  position: fixed;
  inset: 0;
  overflow: auto;
  display: grid;
  place-items: center;
  padding: 32px;
}
.studio .card {
  width: min(600px, 100%);
  text-align: left;
}
.studio label {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  color: var(--muted);
  font-size: 13px;
}
.studio select,
.studio input {
  background: #0e2a22;
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 10px;
  color: var(--cream);
  width: 100%;
}
.studio .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.studio a {
  color: var(--mint);
}
.studio .primary,
.studio .secondary {
  width: 100%;
  margin-top: 10px;
}
.studio progress {
  width: 100%;
  accent-color: var(--mint);
}
[hidden] {
  display: none !important;
}
@media (max-aspect-ratio: 1/1) {
  #header {
    padding: 22px 6%;
  }
  .wordmark {
    font-size: 20px;
  }
  .wordmark img {
    width: 36px;
    height: 36px;
  }
  .wordmark small {
    font-size: 8px;
  }
  .nav {
    gap: 7px;
  }
  .icon-btn,
  .language {
    height: 36px;
  }
  .icon-btn {
    width: 36px;
  }
  .language {
    padding: 0 8px;
  }
  .language select {
    max-width: 88px;
    font-size: 11px;
  }
  .home {
    left: 9%;
    width: 82%;
    top: 46%;
    max-width: none;
    text-align: center;
    transform: translateY(-40%);
  }
  .home .eyebrow,
  .home .actions {
    justify-content: center;
  }
  h1 {
    font-size: 76px;
    letter-spacing: -4px;
    margin: 24px 0;
  }
  .intro {
    margin: 18px auto 24px;
    max-width: 330px;
  }
  .home-meta {
    justify-content: center;
    margin-top: 26px;
  }
  .footer {
    bottom: 19px;
    font-size: 8px;
    letter-spacing: 1px;
  }
  .home-meta b {
    font-size: 16px;
  }
  #game-actions {
    left: 0;
    right: 0;
    bottom: 8%;
    justify-content: center;
  }
  .card {
    padding: 25px;
  }
  .card h2 {
    font-size: 26px;
  }
}
@media (max-height: 650px) and (min-aspect-ratio: 1/1) {
  #header {
    padding-top: 16px;
  }
  .home {
    top: 51%;
  }
  h1 {
    font-size: 64px;
    margin: 14px 0;
  }
  .intro {
    margin: 14px 0 20px;
    line-height: 1.6;
  }
  .home-meta {
    margin-top: 20px;
    padding-top: 15px;
  }
  .primary,
  .secondary {
    padding: 13px 23px;
    min-height: 44px;
  }
  .footer {
    bottom: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
.wordmark {
  white-space: nowrap;
  flex-shrink: 0;
}
@media (max-width: 440px) {
  .wordmark {
    font-size: 17px;
    gap: 6px;
  }
  .wordmark img {
    width: 32px;
    height: 32px;
  }
  .wordmark small {
    font-size: 6px;
    letter-spacing: 2px;
  }
  .nav {
    gap: 5px;
  }
  .language select {
    max-width: 65px;
  }
  .language {
    gap: 4px;
    padding: 0 7px;
  }
}
