/* Paleta, elementos básicos e telas de acesso. */
:root {
  color-scheme: dark;
  --bg: #0c1018;
  --panel: #131a25;
  --line: #263040;
  --muted: #98a5b9;
  --accent: #b5f36b;
  --cyan: #67e8f9;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: #edf2f9;
  font:
    15px/1.6 'Segoe UI',
    sans-serif;
}
button,
input,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  border: 0;
  color: inherit;
  border-radius: 9px;
  padding: 11px 16px;
  background: #212c3d;
}
button:hover {
  filter: brightness(1.18);
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
a {
  color: inherit;
  text-decoration: none;
}
[hidden] {
  display: none !important;
}
.brand {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1px;
}
.brand span {
  font-size: 10px;
  letter-spacing: 2px;
  margin-left: 8px;
  color: var(--accent);
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--accent);
}
.auth-shell {
  min-height: 100vh;
  max-width: 1280px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 100px;
  padding: 60px;
}
.intro .brand {
  display: block;
  margin-bottom: 64px;
}
.intro h1 {
  font-size: clamp(38px, 4.6vw, 65px);
  line-height: 1.08;
  letter-spacing: -2.5px;
  margin: 22px 0;
}
.intro em {
  font-style: normal;
  color: var(--accent);
}
.intro p {
  max-width: 460px;
  color: var(--muted);
  font-size: 17px;
}
.intro-tags {
  display: flex;
  gap: 17px;
  font-size: 12px;
  color: #c3ccd9;
  margin: 28px 0;
}
.scene-card {
  margin-top: 35px;
  background: linear-gradient(135deg, #162e29, #1a263b);
  border: 1px solid #2b423d;
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}
.scene-card > span {
  font-size: 40px;
}
.scene-card > div {
  flex-basis: 100%;
  font-size: 10px;
  letter-spacing: 3px;
  margin-top: 15px;
}
.scene-card b {
  color: var(--accent);
  margin-left: 22px;
}
.auth-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 36px;
  border-radius: 20px;
  box-shadow: 0 30px 80px #0004;
}
.auth-card h2 {
  font-size: 29px;
  letter-spacing: -1px;
  margin: 12px 0 4px;
}
.auth-card p {
  color: var(--muted);
  margin-top: 0;
}
.tabs {
  display: flex;
  background: #0d131e;
  padding: 5px;
  border-radius: 9px;
  margin: 26px 0;
}
.tabs button {
  width: 50%;
  background: transparent;
}
.tabs button.active {
  background: #263243;
}
.auth-card label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin: 17px 0;
}
input {
  width: 100%;
  padding: 13px;
  background: #0c131e;
  border: 1px solid #2b3749;
  border-radius: 8px;
  color: white;
  margin-top: 7px;
}
input:focus,
textarea:focus {
  outline: 2px solid #b5f36b88;
}
.primary {
  background: var(--accent);
  color: #15200c;
  font-weight: 700;
}
.auth-card .primary {
  width: 100%;
  margin-top: 4px;
}
.auth-card small {
  display: block;
  text-align: center;
  color: var(--muted);
  margin-top: 20px;
  font-size: 11px;
}
.error {
  color: #fca5a5 !important;
}
.quiet {
  background: transparent;
  color: var(--muted);
}
header {
  height: 82px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}
.header-city {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
}
.header-city i {
  display: inline-block;
  background: var(--accent);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin: 0 15px;
}
.game-layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  max-width: 1500px;
  margin: auto;
  padding: 30px;
  gap: 30px;
}
.profile {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 25px;
  border-radius: 15px;
}
.avatar {
  width: 76px;
  height: 76px;
  background: #263b46;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 44px;
  margin: 22px auto 12px;
}
.profile h2 {
  text-align: center;
  font-size: 21px;
  margin: 5px 0;
}
.profile > .badge {
  display: block;
  text-align: center;
  margin: auto;
}
.badge {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--accent);
  background: #b5f36b13;
  padding: 6px 10px;
  border: 1px solid #b5f36b25;
  border-radius: 6px;
}
.stats {
  display: flex;
  justify-content: space-between;
  margin: 24px 0;
}
.stats small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 1px;
}
.stats b {
  font-size: 25px;
}
.world-clock {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid #dec88555;
  border-radius: 12px;
  background: #283330;
  flex-shrink: 0;
}
.world-clock > span {
  font-size: 28px;
  color: #f3d487;
  line-height: 1;
}
.world-clock b {
  display: block;
  font-size: 12px;
  color: #f2e4bc;
}
.world-clock small {
  display: block;
  font-size: 10px;
  color: #b4c6bd;
  margin-top: 3px;
}
.world-clock.night {
  background: #192b43;
  border-color: #91b9e655;
}
.world-clock.night > span,
.world-clock.night b {
  color: #c5dafa;
}
.sleep-banner {
  position: absolute;
  z-index: 5;
  top: 65px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 90%;
  padding: 12px 18px;
  border: 1px solid #b4d7e577;
  border-radius: 14px;
  color: #e1f0f4;
  background: #142735ed;
  font-size: 12px;
  text-align: center;
  box-shadow: 0 8px 28px #0005;
}
.sleep-banner[hidden] {
  display: none;
}
@media (max-width: 600px) {
  .world-clock {
    gap: 5px;
    padding: 6px;
  }
  .world-clock > span {
    font-size: 22px;
  }
  .world-clock small {
    font-size: 9px;
  }
}
.xp-next {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}
.xp-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}
progress {
  width: 100%;
  height: 7px;
  accent-color: var(--accent);
}
.profile h3 {
  font-size: 12px;
  margin: 25px 0 15px;
}
.skill {
  margin-bottom: 12px;
}
.skill > div {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}
.skill progress {
  accent-color: var(--cyan);
  height: 5px;
}
.skill[data-area="CSS"] progress {
  accent-color: var(--accent);
}
.skill[data-area="HTML"] > div { color: var(--cyan); }
.skill[data-area="CSS"] > div { color: var(--accent); }
.skill[data-area="JavaScript"] > div { color: #f59e0b; }
.skill[data-area="JavaScript"] progress {
  accent-color: #f59e0b;
}
.skill[data-area="Node.js"] > div { color: #f87171; }
.skill[data-area="Node.js"] progress { accent-color: #f87171; }
.skill[data-area="React"] > div { color: #c084fc; }
.skill[data-area="React"] progress { accent-color: #c084fc; }
.streak {
  font-size: 12px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 20px;
}
.profile button {
  width: 100%;
  font-size: 11px;
  margin-top: 12px;
}
.tip {
  background: #b5f36b09;
  border: 1px solid #b5f36b22;
  border-radius: 9px;
  padding: 12px;
  margin-top: 24px;
  font-size: 11px;
}
.tip b {
  color: var(--accent);
}
.tip p {
  color: var(--muted);
  margin-bottom: 0;
}
.world-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 4px 0 22px;
  gap: 20px;
}
.world-heading h1 {
  font-size: 29px;
  letter-spacing: -1px;
  margin: 6px 0;
}
.world-heading h1 span {
  color: var(--accent);
  margin-left: 12px;
}
.canvas-wrap {
  position: relative;
  background: #214137;
  border: 1px solid #3e554b;
  border-radius: 16px;
  overflow: hidden;
}
canvas {
  display: block;
  width: 100%;
  image-rendering: pixelated;
  touch-action: none;
}
#interaction {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: #101925e8;
  border: 1px solid #ffffff25;
  padding: 8px 17px;
  border-radius: 8px;
  font-size: 11px;
  white-space: nowrap;
  pointer-events: none;
}
.places {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 18px;
}
.places button {
  background: var(--panel);
  border: 1px solid var(--line);
  font-size: 12px;
  padding: 15px;
}
.world-footer {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  margin-top: 17px;
}
.world-footer span:first-child {
  color: #9ecb92;
}
dialog {
  background: var(--panel);
  color: #edf2f9;
  border: 1px solid #38465d;
  border-radius: 18px;
  width: min(1000px, 94vw);
  max-height: 90vh;
  padding: 28px;
}
dialog::backdrop {
  background: #030710cc;
  backdrop-filter: blur(5px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
dialog h2 {
  font-size: 28px;
  margin: 10px 0;
}
dialog p {
  color: var(--muted);
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0e1521;
}
.card h3 {
  margin: 6px 0;
  font-size: 16px;
}
.card small {
  color: var(--muted);
}
.card button {
  display: block;
  margin-top: 14px;
}
.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}
textarea {
  width: 100%;
  min-height: 270px;
  resize: vertical;
  background: #0b111b;
  border: 1px solid var(--line);
  color: #c3e7ff;
  border-radius: 10px;
  padding: 18px;
  font:
    14px/1.8 Consolas,
    monospace;
  tab-size: 2;
}
iframe {
  width: 100%;
  height: 270px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 15px;
}
.reward {
  color: var(--accent);
}
.solution {
  white-space: pre-wrap;
  background: #090f17;
  padding: 15px;
  border-radius: 9px;
  font:
    13px Consolas,
    monospace;
}
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: calc(100vw - 48px);
  padding: 15px 22px;
  border: 1px solid #b5f36b55;
  background: #192922;
  color: #d7f7bd;
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 100;
}
#toast.visible {
  opacity: 1;
}
.character-form {
  max-width: 420px;
}
.character-form label {
  display: block;
  margin: 16px 0;
}
.swatches {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.swatches button {
  width: 35px;
  height: 35px;
  border: 2px solid transparent;
}
.swatches button.selected {
  border-color: white;
}
@media (max-width: 1000px) {
  .auth-shell {
    gap: 35px;
    padding: 30px;
  }
  .game-layout {
    grid-template-columns: 190px 1fr;
    padding: 18px;
    gap: 18px;
  }
  .profile {
    padding: 16px;
  }
  .world-heading .badge {
    display: none;
  }
}
@media (max-width: 700px) {
  .auth-shell {
    display: block;
    padding: 24px;
  }
  .intro .brand {
    margin-bottom: 25px;
  }
  .intro h1 {
    font-size: 39px;
  }
  .scene-card,
  .intro-tags {
    display: none;
  }
  .auth-card {
    margin-top: 30px;
    padding: 24px;
  }
  header {
    padding: 0 20px;
    height: 65px;
  }
  .header-city {
    display: none;
  }
  .game-layout {
    display: flex;
    flex-direction: column;
  }
  .profile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .profile .eyebrow,
  .avatar,
  .profile h3,
  #skills,
  .streak,
  .tip,
  .xp-label,
  progress {
    display: none;
  }
  .profile h2 {
    margin: auto;
  }
  .stats {
    margin: 0;
  }
  .world-heading h1 {
    font-size: 24px;
  }
  .places {
    grid-template-columns: 1fr 1fr;
  }
  .world-footer {
    font-size: 9px;
    gap: 12px;
  }
  .mission-grid {
    grid-template-columns: 1fr;
  }
  #interaction {
    font-size: 9px;
    bottom: 6px;
    padding: 5px 8px;
  }
  dialog {
    padding: 20px;
  }
}
.map-interact {
  position: absolute;
  right: 16px;
  top: 16px;
  background: #1b3039e6;
  border: 1px solid #c5d9b64d;
  color: #e4efd6;
  font-size: 12px;
  box-shadow: 0 4px 12px #0003;
}
.canvas-wrap {
  box-shadow: 0 18px 45px #0003;
}
.scene-enter canvas {
  animation: enter-room 0.6s ease-out;
}
@keyframes enter-room {
  0% {
    opacity: 0.15;
    transform: scale(0.94);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .scene-enter canvas {
    animation: none;
  }
}
.world-footer {
  margin-top: 20px;
}
/* Exercícios, mensagens de resultado e prévias de personalização. */
canvas {
  image-rendering: auto;
}
.avatar {
  background: none !important;
  overflow: hidden;
}
.avatar canvas {
  width: 100%;
  height: 100%;
}
.world-heading h1 {
  font-weight: 650;
}
.canvas-wrap {
  border-color: #8aa9a455;
  border-radius: 18px;
  box-shadow:
    0 24px 65px #0005,
    inset 0 0 0 1px #e7e4ca11;
}
.map-interact {
  backdrop-filter: blur(9px);
  background: #203944dd;
  color: #ece5c9;
  border-color: #d6d5b944;
}
.exercise-heading {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin: 16px 0;
}
.exercise-heading h2 {
  margin: 0 0 6px;
  font-size: 27px;
}
.exercise-heading p {
  margin: 0;
  max-width: 720px;
}
.exercise-icon {
  background: #8db8b820;
  border: 1px solid #8db8b844;
  border-radius: 13px;
  padding: 12px;
  font-size: 25px;
  color: #a2ccca;
  flex-shrink: 0;
}
.reward-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 15px 0;
}
.reward-pills span {
  background: #b5f36b12;
  border: 1px solid #b5f36b26;
  border-radius: 25px;
  color: #c7e5aa;
  font-size: 12px;
  padding: 5px 13px;
}
.editor-pane {
  border: 1px solid #344655;
  border-radius: 11px;
  overflow: hidden;
  background: #0b111b;
}
.editor-toolbar {
  background: #1c2937;
  padding: 11px 15px;
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 11px;
  color: #97acb8;
}
.editor-toolbar span {
  letter-spacing: 3px;
  color: #bba48c;
}
.editor-toolbar b {
  font-weight: 500;
}
.editor-pane textarea {
  display: block;
  min-height: 300px;
  border: 0;
  border-radius: 0;
  font-size: 15px;
  line-height: 1.8;
}
.editor-pane textarea.invalid {
  box-shadow: inset 3px 0 #db8b75;
}
.preview-toolbar {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #a7b9c4;
  margin: 12px 0;
}
.preview-pane iframe {
  height: 300px;
  border-radius: 11px;
}
.preview-viewport {
  max-width: 100%;
  overflow: auto;
  border-radius: 11px;
  background: #fff;
}
.preview-viewport iframe {
  display: block;
  max-width: none;
  margin: 0;
}
.preview-controls {
  margin: 0 0 10px;
}
.preview-controls label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}
.preview-controls select {
  width: auto;
  max-width: 70%;
  padding: 7px;
  font-size: 12px;
}
.preview-pane small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin: 8px 0;
}
.mission-feedback {
  position: relative;
  overflow: hidden;
  display: flex;
  gap: 18px;
  padding: 24px;
  border-radius: 14px;
  margin: 20px 0;
  animation: feedback-in 0.35s ease-out;
  outline: 0;
}
.mission-feedback.success {
  background: linear-gradient(120deg, #234339, #182e30);
  border: 1px solid #91c18c66;
}
.mission-feedback.failure {
  background: linear-gradient(120deg, #44302e, #2d242b);
  border: 1px solid #e99e8266;
}
.mission-feedback h3 {
  font-size: 23px;
  margin: 4px 0 8px;
}
.mission-feedback p {
  margin: 0;
  color: #c2d3c7;
}
.mission-feedback .eyebrow {
  color: #bce1aa;
}
.mission-feedback.failure .eyebrow {
  color: #efb79c;
}
.mission-feedback ul {
  padding-left: 20px;
  color: #e1c7bb;
  margin-bottom: 0;
}
.feedback-symbol {
  height: 52px;
  width: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #a7d3a129;
  color: #c4e5b1;
  font-size: 30px;
  flex-shrink: 0;
}
.failure .feedback-symbol {
  color: #f1b59b;
  background: #e8ae8820;
}
.mission-feedback button {
  position: relative;
  z-index: 1;
}
.confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.confetti i {
  position: absolute;
  top: -8px;
  left: calc(var(--i) * 7% + 3%);
  width: 5px;
  height: 9px;
  background: #d5bd80;
  animation: confetti-fall 1.3s ease-out both;
  animation-delay: calc(var(--i) * 0.035s);
}
.confetti i:nth-child(3n) {
  background: #91c8b5;
}
.confetti i:nth-child(3n + 1) {
  background: #b1a2ca;
}
.hint-box {
  margin-top: 18px;
  border: 1px solid #e0c79144;
  background: #d7b66d0c;
  padding: 16px 20px;
  border-radius: 10px;
  color: #e4ce99;
}
.hint-box p {
  margin: 7px 0 0;
  color: #c9c8bc;
}
.practice-note {
  font-size: 11px;
  color: #a0b7c6;
  padding: 12px 16px;
  background: #87adbf0c;
  border: 1px solid #87adbf22;
  border-radius: 8px;
}
.notebook-title {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 14px 0 22px;
}
.book-icon {
  font-size: 35px;
  background: #87adbf17;
  color: #aad3d8;
  padding: 7px 18px;
  border: 1px solid #aad3d833;
  border-radius: 14px;
}
.notebook-title h2 {
  margin: 0;
}
.notebook-title p {
  margin: 4px 0 0;
}
.notebook-tabs,
.inventory-filters {
  display: flex;
  gap: 7px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  overflow-x: auto;
}
.notebook-tabs button,
.inventory-filters button {
  white-space: nowrap;
  font-size: 12px;
  background: transparent;
  color: #a2b1be;
  border: 1px solid transparent;
}
.notebook-tabs button.active,
.inventory-filters button.active {
  background: #8fbcb51c;
  border-color: #8fbcb544;
  color: #d1e5d6;
}
.empty-state {
  padding: 35px 20px;
  border: 1px dashed #415261;
  border-radius: 12px;
  color: #a0b1bc;
  text-align: center;
  line-height: 1.9;
}
.saved-code {
  border: 1px solid #344656;
  border-radius: 11px;
  padding: 22px;
  background: #0b1420;
  color: #bcd6d9;
  font:
    14px/1.8 Consolas,
    monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.review-meta {
  padding: 12px 16px;
  border-radius: 8px;
  background: #abd19f10;
  color: #b9d7ac;
  font-size: 12px;
}
.history-entry {
  display: flex;
  gap: 15px;
  padding: 20px 0;
  border-bottom: 1px solid #293845;
}
.history-entry > div {
  min-width: 0;
  flex: 1;
}
.history-entry small {
  display: block;
  color: #9aafba;
  margin-top: 4px;
}
.history-icon {
  display: grid;
  place-items: center;
  border-radius: 50%;
  height: 35px;
  width: 35px;
  flex-shrink: 0;
}
.history-icon.passed {
  color: #b6d5ab;
  background: #b6d5ab17;
}
.history-icon.failed {
  color: #dbb493;
  background: #dbb49317;
}
details summary {
  cursor: pointer;
  color: #8fb9c5;
  font-size: 12px;
  margin-top: 10px;
}
.inventory-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin: 12px 0 22px;
}
.inventory-heading h2 {
  margin: 0;
  font-size: 26px;
}
.inventory-heading p {
  margin: 6px 0;
}
.wallet {
  padding: 9px 14px;
  background: #deb96e17;
  border: 1px solid #deb96e33;
  border-radius: 25px;
  color: #e5c991;
  font-size: 12px;
  white-space: nowrap;
}
.inventory-layout {
  display: grid;
  grid-template-columns: minmax(290px, 0.95fr) minmax(0, 1.05fr);
  gap: 24px;
  align-items: start;
}
.live-preview {
  position: sticky;
  top: 0;
  background: #101a25;
  border: 1px solid #30434b;
  border-radius: 14px;
  padding: 16px;
}
.live-preview .eyebrow {
  color: #b7cebf;
  font-size: 9px;
}
.live-preview > canvas {
  width: 100%;
  display: block;
  margin-top: 14px;
  border-radius: 9px;
  background: #12212b;
}
.preview-player {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 16px 0;
}
.preview-player canvas {
  width: 65px;
  height: 65px;
  flex-shrink: 0;
  border-radius: 12px;
}
.preview-player b {
  font-size: 13px;
}
.preview-player p {
  font-size: 11px;
  margin: 3px 0;
  line-height: 1.6;
}
.preview-note {
  font-size: 10px;
  color: #94aea8;
  border-top: 1px solid #293c43;
  padding-top: 12px;
}
.live-preview button {
  width: 100%;
  margin-top: 16px;
}
.inventory-filters {
  padding-bottom: 10px;
  gap: 2px;
}
.inventory-filters button {
  font-size: 10px;
  padding: 7px 9px;
}
.inventory-type {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 16px;
  color: var(--muted);
  font-size: 12px;
}
.inventory-type select {
  width: auto;
  min-width: 150px;
  padding: 8px 12px;
  border: 1px solid #3d5260;
  border-radius: 8px;
  background: #182630;
  color: #dbe9e2;
}
.inventory-type small {
  margin-left: auto;
}
.item-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 15px;
}
.item-card {
  border: 1px solid #2d3f4b;
  border-radius: 12px;
  padding: 12px;
  background: #101923;
}
.item-card.equipped {
  border-color: #8fbaa255;
}
.item-art {
  position: relative;
  margin-bottom: 12px;
}
.item-art canvas {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 9px;
}
.item-art span {
  position: absolute;
  left: 7px;
  bottom: 7px;
  font-size: 8px;
  background: #213b32e8;
  border: 1px solid #a6c4a655;
  color: #c5ddba;
  border-radius: 5px;
  padding: 2px 6px;
}
.item-card small {
  font-size: 9px;
  color: #9cb4bd;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.item-card h3 {
  font-size: 14px;
  margin: 4px 0 6px;
  line-height: 1.35;
}
.item-card p {
  font-size: 11px;
  line-height: 1.6;
  min-height: 36px;
  margin: 0 0 12px;
}
.item-price {
  font-size: 10px;
  color: #d2c6a0;
  margin-bottom: 9px;
}
.item-card button {
  width: 100%;
  font-size: 11px;
  padding: 8px 6px;
}
.item-card .secondary {
  background: #86b1a520;
  color: #bdd8c6;
}
.inventory-layout .item-grid .empty-state {
  grid-column: 1/-1;
}
@keyframes feedback-in {
  from {
    opacity: 0;
    transform: translateY(-7px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes confetti-fall {
  from {
    transform: translateY(0) rotate(0);
    opacity: 1;
  }
  to {
    transform: translateY(190px) rotate(220deg);
    opacity: 0;
  }
}
@media (max-width: 750px) {
  .inventory-layout {
    grid-template-columns: 1fr;
  }
  .live-preview {
    position: relative;
  }
  .live-preview > canvas {
    max-height: 270px;
    object-fit: contain;
  }
  .inventory-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .inventory-heading h2 {
    font-size: 23px;
  }
  .exercise-heading {
    gap: 12px;
  }
  .exercise-heading h2 {
    font-size: 23px;
  }
  .exercise-icon {
    font-size: 20px;
    padding: 8px;
  }
  .mission-feedback {
    padding: 18px;
    gap: 12px;
  }
  .feedback-symbol {
    width: 38px;
    height: 38px;
    font-size: 24px;
  }
  .mission-feedback h3 {
    font-size: 19px;
  }
  .notebook-title {
    gap: 12px;
  }
  .notebook-title h2 {
    font-size: 23px;
  }
  .book-icon {
    font-size: 25px;
    padding: 7px 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mission-feedback,
  .confetti i {
    animation: none;
  }
  .confetti {
    display: none;
  }
}
.dialog-toast {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 85vw;
  background: #254038;
  color: #d2e5c8;
  border: 1px solid #a6c29755;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 12px;
  pointer-events: none;
  opacity: 0;
  z-index: 5;
}
.dialog-toast.visible {
  opacity: 1;
}
/* Enquadramento do jogo e adaptações para telas menores. A ordem mantém a cascata existente. */
.in-game {
  height: 100dvh;
  overflow: hidden;
}
.in-game #game {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.in-game header {
  height: 54px;
  min-height: 54px;
  padding: 0 24px;
}
.in-game .game-layout {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 16px;
  gap: 18px;
  grid-template-columns: 220px minmax(0, 1fr);
}
.in-game .profile {
  padding: 15px;
  min-height: 0;
  overflow: auto;
}
.in-game .avatar {
  width: 64px;
  height: 64px;
  margin: 12px auto 8px;
}
.in-game .stats {
  margin: 14px 0;
}
.in-game .profile h3 {
  margin: 14px 0 8px;
}
.in-game .profile button {
  font-size: 12px;
  padding: 7px 10px;
}
.in-game .world {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.in-game .world-heading {
  margin: 0;
}
.in-game .world-heading h1 {
  margin: 0;
  font-size: 24px;
}
.in-game .canvas-wrap {
  width: min(100%, calc((100dvh - 166px) * 1.5));
  aspect-ratio: 3/2;
  justify-self: center;
  align-self: center;
  margin: 0;
  min-width: 0;
  overflow: hidden;
}
.in-game #map {
  display: block;
  width: 100%;
  height: 100%;
}
.in-game .world-footer {
  margin: 0;
  font-size: 10px;
}
.trophy-strip {
  display: flex !important;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: #d2b5760b;
  border: 1px solid #d2b57633;
  border-radius: 9px;
  margin-top: 8px;
  min-height: 35px;
}
.trophy-strip span {
  font-size: 21px;
}
.trophy-strip small {
  font-size: 10px;
  color: #b7aa8f;
}
.gender-choices {
  display: flex;
  gap: 10px;
  margin: 10px 0;
}
.gender-choices .selected {
  border: 1px solid #b5f36b;
  background: #b5f36b20;
}
.character-form > canvas {
  display: block;
  margin: 10px auto;
  border-radius: 18px;
}
.career-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.career-hero h2 {
  margin: 8px 0;
  font-size: 30px;
}
.career-hero strong {
  font-size: 50px;
  color: #b5f36b;
}
.career-hero strong small {
  font-size: 17px;
  color: #8caaa7;
}
.career-progress {
  width: 100%;
  height: 8px;
  margin: 8px 0 24px;
}
.next-work {
  border: 1px solid #8db8b855;
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 22px;
  background: linear-gradient(120deg, #193831, #162530);
}
.next-work h3 {
  font-size: 23px;
  margin: 6px 0;
}
.next-work small {
  color: #a6cebb;
  letter-spacing: 1px;
}
.work-countdown {
  font-size: 23px;
  color: #edcf96;
  font-variant-numeric: tabular-nums;
  margin: 10px 0;
}
.cooldown-note {
  font-size: 12px !important;
}
.work-status {
  font-size: 12px;
  color: #a6cebb;
}
.in-game .tip {
  font-size: 11px;
  margin-top: 10px;
  padding: 10px;
}
.in-game .streak {
  margin: 12px 0;
}
.in-game .profile .skill {
  margin-bottom: 8px;
}
@media (max-height: 760px) and (min-width: 701px) {
  .in-game .profile {
    padding: 12px;
  }
  .in-game .avatar {
    width: 48px;
    height: 48px;
    margin: 6px auto;
  }
  .in-game .stats {
    margin: 8px 0;
  }
  .in-game .profile h2 {
    font-size: 18px;
  }
  .in-game .profile h3 {
    margin: 8px 0 4px;
  }
  .in-game .streak {
    margin: 6px 0;
  }
  .in-game .tip {
    display: none;
  }
  .in-game .profile .skill {
    margin-bottom: 5px;
  }
  .in-game .trophy-strip {
    min-height: 28px;
  }
  .in-game .profile button {
    padding: 5px 8px;
  }
}
@media (max-width: 700px) {
  .in-game header {
    height: 44px;
    min-height: 44px;
    padding: 0 14px;
  }
  .in-game header .brand {
    font-size: 22px;
  }
  .in-game .game-layout {
    padding: 8px;
    gap: 8px;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }
  .in-game .profile {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 3px 8px;
    padding: 8px 10px;
    overflow: hidden;
  }
  .in-game .profile > .eyebrow,
  .in-game .avatar,
  .in-game .profile > h3,
  .in-game #skills,
  .in-game .streak,
  .in-game .xp-label,
  .in-game .profile > .tip {
    display: none;
  }
  .in-game .profile h2 {
    text-align: left;
    font-size: 16px;
    margin: 0;
    grid-column: 1;
    grid-row: 1;
  }
  .in-game .profile > .badge {
    font-size: 9px;
    padding: 2px 6px;
    margin: 0;
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
  }
  .in-game .stats {
    gap: 12px;
    margin: 0;
    grid-column: 2;
    grid-row: 1/3;
  }
  .in-game .stats small {
    font-size: 8px;
  }
  .in-game .stats b {
    font-size: 18px;
  }
  .in-game #xpBar {
    grid-column: 1/3;
    height: 4px;
    margin: 2px 0;
  }
  .in-game #editCharacter {
    grid-column: 3;
    grid-row: 1;
    font-size: 0;
    padding: 2px;
  }
  .in-game #editCharacter:after {
    content: '✎';
    font-size: 18px;
  }
  .in-game #achievementsBtn {
    grid-column: 3;
    grid-row: 2;
    padding: 2px;
    font-size: 0;
  }
  .in-game #achievementsBtn:after {
    content: '🏆';
    font-size: 17px;
  }
  .in-game .trophy-strip {
    grid-column: 3;
    grid-row: 3;
    min-height: 12px;
    margin: 0;
    padding: 0;
    border: 0;
  }
  .in-game .trophy-strip small {
    display: none;
  }
  .in-game .trophy-strip span {
    font-size: 10px;
  }
  .in-game .world-heading h1 {
    font-size: 18px;
  }
  .in-game .world-heading .eyebrow {
    font-size: 8px;
  }
  .in-game .world-heading > .badge {
    display: none;
  }
  .in-game .canvas-wrap {
    width: min(100%, calc((100dvh - 214px) * 1.5));
    border-radius: 10px;
  }
  .in-game .world-footer {
    font-size: 8px;
    gap: 8px;
  }
  .in-game .world-footer > span:last-child {
    display: none;
  }
  .in-game #interaction {
    font-size: 9px;
    bottom: 6px;
    max-width: 75%;
    white-space: normal;
  }
  .in-game .map-interact {
    font-size: 11px;
    padding: 6px 9px;
    bottom: 7px;
    right: 7px;
  }
  .career-hero h2 {
    font-size: 23px;
  }
  .work-countdown {
    font-size: 19px;
  }
}
@media (max-height: 440px) {
  .in-game .world-heading {
    display: none;
  }
  .in-game .world {
    grid-template-rows: minmax(0, 1fr) auto;
  }
  .in-game .canvas-wrap {
    width: min(100%, calc((100dvh - 155px) * 1.5));
  }
  .in-game .profile .avatar,
  .in-game .profile .tip,
  .in-game .profile > h3,
  .in-game #skills,
  .in-game .streak {
    display: none;
  }
}

.in-game .game-layout {
  display: grid;
}
.in-game .profile .streak {
  padding-top: 8px;
}
.in-game .profile button {
  margin-top: 8px;
}
.in-game .profile .badge {
  line-height: 1.4;
}
.in-game .canvas-wrap {
  max-width: 100%;
  max-height: 100%;
}
.character-form > canvas {
  width: 128px;
  height: 128px;
}
@media (max-height: 850px) and (min-width: 701px) {
  .in-game .tip {
    display: none;
  }
  .in-game .profile {
    padding: 12px;
  }
  .in-game .avatar {
    width: 48px;
    height: 48px;
    margin: 6px auto;
  }
  .in-game .stats {
    margin: 8px 0;
  }
  .in-game .profile h2 {
    font-size: 18px;
  }
  .in-game .profile h3 {
    margin: 8px 0 4px;
  }
  .in-game .profile .skill {
    margin-bottom: 5px;
  }
  .in-game .profile button {
    padding: 5px 8px;
  }
  .in-game .streak {
    margin: 6px 0;
  }
  .in-game .trophy-strip {
    min-height: 28px;
  }
}
@media (max-width: 700px) {
  .in-game .profile {
    align-items: center;
    grid-template-rows: 22px 22px auto;
  }
  .in-game .profile button {
    margin: 0;
    line-height: 1.2;
  }
  .in-game .profile > .badge {
    align-self: center;
  }
  .in-game .profile #xpBar {
    display: block;
  }
  .in-game .trophy-strip {
    min-height: 7px;
    max-height: none;
  }
  .in-game .trophy-strip span {
    font-size: 9px;
  }
  .in-game .trophy-strip:empty {
    display: none;
  }
}

.in-game .world,
.in-game .profile {
  min-width: 0;
}
@media (max-width: 700px) {
  .in-game .game-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  .in-game .map-interact {
    top: auto;
  }
}

@media (max-height: 440px) and (min-width: 701px) {
  .in-game .profile {
    padding: 8px;
  }
  .in-game .profile > .eyebrow {
    display: none;
  }
  .in-game .profile h2 {
    font-size: 16px;
  }
  .in-game .stats {
    margin: 4px 0;
  }
  .in-game .stats b {
    font-size: 20px;
  }
  .in-game .profile button {
    margin-top: 4px;
    padding: 4px 6px;
  }
  .in-game .profile .badge {
    font-size: 9px;
    padding: 3px;
  }
  .in-game .trophy-strip {
    min-height: 24px;
  }
}

.hair-swatches {
  flex-wrap: wrap;
}
.hair-swatches button {
  box-shadow: inset 0 0 0 1px #ffffff30;
}
.trophy-card {
  text-align: center;
  position: relative;
  background: radial-gradient(ellipse at top, #e7be7420, transparent 65%), #101923;
}
.trophy-card > img {
  display: block;
  width: 132px;
  height: 132px;
  object-fit: contain;
  margin: 0 auto 12px;
}
.trophy-card.locked > img {
  filter: grayscale(1);
  opacity: 0.28;
}
.trophy-card.unlocked {
  border-color: #d9ba7255;
}
.trophy-card.unlocked small {
  color: #e8cb83;
}
.trophy-strip img {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  object-fit: contain;
  transition: transform 0.2s;
}
.trophy-strip img:hover {
  transform: translateY(-3px) scale(1.12);
}
#sidebarTrophies { max-height:170px; overflow-y:auto; padding:8px; align-content:flex-start; }
.world-footer { flex-wrap:wrap; }
#onlineUI { margin-left:auto; }
.online-hud { display:flex; gap:12px; align-items:center; padding:6px 12px; background:#112733ee; border:1px solid #3b6571; border-radius:12px; }
.online-hud>span { color:#a5e6bf; font-size:11px; }
.online-hud button { font-size:12px; }
#chatUnread:not(:empty) { background:#b5f36b; color:#15251d; padding:2px 6px; border-radius:10px; }
.chat-panel { position:fixed; bottom:74px; right:20px; z-index:40; width:min(380px,calc(100vw - 24px)); padding:16px; border:1px solid #638e98; border-radius:18px; background:#10222af5; box-shadow:0 12px 45px #0008; color:#e4efeb; }
.chat-panel[hidden] { display:none; }
.chat-panel header { display:flex; align-items:center; justify-content:space-between; }
.chat-channels { display:flex; gap:7px; margin:10px 0; }
.chat-channels button { flex:1; padding:8px; font-size:12px; background:#213e49; border:1px solid transparent; }
.chat-channels button.active { border-color:#a7d6ba; color:#baf4cf; }
.chat-panel label { font-size:12px; }
.chat-panel select { width:100%; margin:8px 0; background:#18323c; color:#e4efeb; padding:8px; border-radius:8px; }
#chatMessages { height:min(240px,32dvh); overflow-y:auto; list-style:none; padding:0; margin:10px 0; font-size:13px; }
#chatMessages li { padding:7px 2px; overflow-wrap:anywhere; border-bottom:1px solid #ffffff0c; }
#chatMessages b { color:#8bd3ea; margin-right:7px; }
#chatMessages span { white-space:pre-wrap; }
#chatForm { display:flex; gap:8px; }
#chatInput { min-width:0; width:100%; background:#0a1922; color:#f1f6ef; border:1px solid #45616d; border-radius:8px; padding:10px; font-size:14px; }
#chatForm button { padding:9px; font-size:12px; }
#chatError { display:block; min-height:15px; margin-top:6px; color:#ffb9a3; font-size:11px; }
@media(max-width:700px){#onlineUI{width:100%;margin:0}.online-hud{justify-content:space-between;gap:7px;padding:4px 8px}.chat-panel{right:12px;bottom:65px;max-height:75dvh;overflow-y:auto}#sidebarTrophies{max-height:100px}}
.achievement-celebration {
  isolation: isolate;
  text-align: center;
  width: min(440px, 92vw);
  padding: 38px 30px 30px;
  border: 1px solid #e6c57d88;
  border-radius: 25px;
  background: radial-gradient(ellipse at 50% 35%, #43504c 0, #192c36 40%, #101925 80%);
  box-shadow:
    0 0 100px #e4bc6130,
    0 35px 100px #0008;
  overflow: hidden;
  animation: trophy-reveal 0.45s ease-out;
}
.achievement-celebration::backdrop {
  background: #050a14c9;
  backdrop-filter: blur(8px);
}
.achievement-celebration .eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: #efd394;
  margin-top: 14px;
}
.achievement-celebration > img {
  width: 205px;
  height: 205px;
  display: block;
  object-fit: contain;
  margin: 10px auto 0;
  filter: drop-shadow(0 8px 25px #f9ce6044);
  animation: trophy-float 3s ease-in-out infinite;
}
.achievement-celebration h2 {
  font-size: 29px;
  line-height: 1.2;
  color: #f6e6c3;
  margin: 10px 0;
}
.achievement-celebration p {
  font-size: 14px;
  color: #b9c9cd;
  margin: 10px auto 18px;
  max-width: 310px;
}
.achievement-celebration small {
  display: block;
  color: #9eafba;
  font-size: 11px;
  margin-bottom: 20px;
}
.achievement-celebration .primary {
  background: linear-gradient(110deg, #f1d79c, #d9b667);
  color: #25312c;
  width: 100%;
  position: relative;
}
.celebration-close {
  position: absolute;
  right: 12px;
  top: 12px;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  padding: 0;
  background: #ffffff0c;
  color: #bac9ce;
}
.celebration-rays {
  position: absolute;
  inset: -35%;
  z-index: -1;
  background: repeating-conic-gradient(
    from 0deg at 50% 45%,
    transparent 0deg 15deg,
    #f2ce7211 15deg 25deg,
    transparent 25deg 40deg
  );
  mask-image: radial-gradient(ellipse, #000, transparent 62%);
  animation: trophy-rays 25s linear infinite;
  pointer-events: none;
}
.celebration-sparkles {
  color: #efd394;
  font-size: 23px;
  letter-spacing: 25px;
  pointer-events: none;
  animation: trophy-glitter 1.8s ease-in-out infinite;
}
.achievement-celebration .celebration-close {
  z-index: 2;
}
@keyframes trophy-reveal {
  from {
    opacity: 0;
    transform: translateY(25px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes trophy-float {
  50% {
    transform: translateY(-7px);
  }
}
@keyframes trophy-rays {
  to {
    transform: rotate(360deg);
  }
}
@keyframes trophy-glitter {
  50% {
    opacity: 0.4;
  }
}
@media (max-width: 700px) {
  .in-game .trophy-strip img {
    width: 13px;
    height: 13px;
  }
  .trophy-card > img {
    width: 110px;
    height: 110px;
  }
  .achievement-celebration {
    padding: 24px;
  }
  .achievement-celebration > img {
    width: 165px;
    height: 165px;
  }
  .achievement-celebration h2 {
    font-size: 25px;
  }
}
@media (max-height: 500px) {
  .achievement-celebration {
    padding: 14px 24px;
  }
  .achievement-celebration > img {
    width: 95px;
    height: 95px;
  }
  .achievement-celebration .celebration-sparkles {
    display: none;
  }
  .achievement-celebration h2 {
    font-size: 22px;
  }
  .achievement-celebration small {
    margin-bottom: 10px;
  }
  .achievement-celebration .eyebrow {
    margin-top: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .achievement-celebration,
  .achievement-celebration > img,
  .celebration-rays,
  .celebration-sparkles {
    animation: none;
  }
}

.in-game header {
  height: 44px;
  min-height: 44px;
}
.in-game .game-layout {
  padding: 8px;
  gap: 10px;
  grid-template-columns: 200px minmax(0, 1fr);
}
.in-game .world {
  gap: 6px;
}
.in-game .world-heading h1 {
  font-size: 20px;
}
.in-game .canvas-wrap {
  aspect-ratio: auto;
  justify-self: stretch;
  align-self: stretch;
  border-radius: 12px;
}
.in-game .world-heading .eyebrow {
  font-size: 8px;
}
.map-view {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #203944df;
  border: 1px solid #d6d5b944;
  color: #ece5c9;
  font-size: 11px;
  padding: 7px 11px;
  backdrop-filter: blur(9px);
}
@media (max-width: 700px) {
  .in-game .game-layout {
    grid-template-columns: minmax(0, 1fr);
    padding: 6px;
    gap: 6px;
  }
  .in-game .world-heading {
    display: none;
  }
  .in-game .world {
    grid-template-rows: minmax(0, 1fr) auto;
  }
  .in-game .map-view {
    top: 8px;
    left: 8px;
    font-size: 10px;
    padding: 6px 9px;
  }
}
@media (max-height: 440px) and (min-width: 701px) {
  .in-game .game-layout {
    grid-template-columns: 170px minmax(0, 1fr);
  }
}
.header-actions,
.audio-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.audio-controls {
  gap: 8px;
  border: 1px solid #8db5a32b;
  border-radius: 20px;
  padding: 3px 10px;
  background: #1d302529;
}
.audio-controls button {
  font-size: 11px;
  padding: 4px 0;
  white-space: nowrap;
}
.audio-controls input {
  width: 65px;
  height: 14px;
  padding: 0;
  margin: 0;
  accent-color: #b7f46b;
  cursor: pointer;
}
.audio-controls[data-track='bed'] {
  border-color: #8cb3dc66;
}
@media (max-width: 600px) {
  .header-actions {
    gap: 8px;
  }
  .audio-controls {
    gap: 5px;
    padding: 3px 7px;
  }
  .audio-controls input {
    width: 40px;
  }
  .audio-controls button {
    font-size: 10px;
  }
}
.library-heading {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 28px;
}
.library-heading h2 {
  margin: 6px 0 10px;
}
.library-heading small {
  letter-spacing: 0.16em;
  color: #a9d6c6;
}
.library-emblem {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  flex-shrink: 0;
  border-radius: 22px;
  color: #e5c68e;
  font-size: 44px;
  background: linear-gradient(140deg, #38575b, #20323e);
  border: 1px solid #aec1a544;
}
.library-books {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.library-book {
  background: #182b38;
  border: 1px solid #a4c4c322;
  border-radius: 18px;
  overflow: hidden;
}
.book-cover {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 238px;
  margin: 22px 32px 12px;
  padding: 24px 20px 16px 30px;
  border-radius: 3px 12px 12px 3px;
  color: #243b43;
  box-shadow:
    -9px 0 0 #ffffff13,
    7px 12px 16px #0004;
}
.book-cover::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 9px;
  width: 3px;
  background: #0002;
}
.book-html {
  background: linear-gradient(140deg, #f0c6a6, #d88e74);
}
.book-css {
  background: linear-gradient(140deg, #c2e1e5, #83adc9);
}
.book-javascript {
  background: linear-gradient(140deg, #f2e5aa, #d6b66c);
}
.book-cover strong {
  font-size: 42px;
  letter-spacing: -0.06em;
}
.book-cover span {
  font-size: 30px;
  opacity: 0.65;
}
.book-cover small {
  font-size: 9px;
  letter-spacing: 0.12em;
  line-height: 1.5;
}
.book-cover b {
  font-size: 10px;
}
.book-info {
  padding: 18px 22px 24px;
}
.book-info h3 {
  font-size: 24px;
  margin: 8px 0;
}
.book-info p {
  min-height: 48px;
}
.book-info > button {
  width: 100%;
  margin-top: 16px;
}
.book-progress {
  height: 6px;
  background: #ffffff10;
  border-radius: 8px;
  overflow: hidden;
  margin: 18px 0 8px;
}
.book-progress span {
  display: block;
  height: 100%;
  background: #91c9b4;
  border-radius: inherit;
}
.library-credit {
  font-size: 12px;
  color: #9bafb6;
  line-height: 1.6;
  margin: 24px 0 0;
}
.reader-heading {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
.reader-heading h2 {
  font-size: 21px;
  margin: 0 0 6px;
}
.reader-heading a {
  margin-left: auto;
  color: #b3d9cc;
  font-size: 12px;
}
.reader-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 20px 0 12px;
}
.reader-toolbar b {
  font-size: 13px;
  text-align: center;
}
.pdf-reading-area {
  background: #0e1e2a;
  padding: 18px;
  max-height: clamp(150px, calc(86dvh - 330px), 560px);
  overflow: auto;
  border-radius: 12px;
  text-align: center;
  scrollbar-gutter: stable;
}
dialog.reading-mode[open] {
  width: calc(100vw - 28px);
  max-width: 1600px;
  height: calc(100dvh - 28px);
  max-height: none;
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.reading-mode #panelBody {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
}
.reading-mode .reader-heading {
  gap: 12px;
}
.reading-mode .reader-heading h2 {
  font-size: 18px;
}
.reading-mode .reader-toolbar {
  margin: 8px 0;
  flex-wrap: wrap;
  gap: 6px;
}
.reader-zoom {
  display: flex;
  gap: 5px;
}
.reader-zoom button {
  padding: 7px 10px;
  font-size: 12px;
}
.reading-mode .pdf-reading-area {
  max-height: none;
  min-height: 0;
  padding: 12px;
}
.reading-mode #pdfPage {
  max-width: none;
  max-height: none;
  display: block;
  margin: 0 auto;
}
.reading-mode #pdfPage[hidden] {
  display: none;
}
.reading-mode .dialog-head {
  min-height: 24px;
}
.reading-mode .dialog-head button {
  padding: 4px 10px;
}
.reading-mode .reader-heading h2 {
  margin: 0 0 3px;
}
.reading-mode .reader-toolbar button {
  padding: 7px 12px;
}
.reading-mode .pdf-text {
  margin: 5px 0;
}
.reading-mode .pdf-text[open] {
  max-height: 150px;
  overflow: auto;
}
.reading-mode .reader-bottom {
  position: static;
  padding: 5px 0;
}
@media (max-width: 600px) {
  dialog.reading-mode[open] {
    width: calc(100vw - 8px);
    height: calc(100dvh - 8px);
    padding: 10px;
  }
  .reading-mode .reader-heading h2 {
    font-size: 14px;
  }
  .reading-mode .reader-heading a,
  .reading-mode .reader-bottom span {
    display: none;
  }
  .reader-zoom {
    order: 4;
    width: 100%;
    justify-content: center;
  }
  .reading-mode .reader-bottom {
    justify-content: center;
  }
}
#pdfPage {
  width: min(100%, 820px);
  height: auto;
  background: white;
  box-shadow: 0 5px 20px #0006;
}
.pdf-text {
  margin: 12px 0;
  font-size: 12px;
  color: #b6c9cd;
}
.pdf-text p {
  white-space: pre-wrap;
  line-height: 1.7;
}
.reader-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  position: sticky;
  bottom: 0;
  padding: 10px 0 4px;
  background: #131b28;
}
.reader-bottom span {
  font-size: 12px;
  color: #adbec5;
}
.book-completed {
  padding: 36px 14px;
  text-align: center;
  background: radial-gradient(ellipse at top, #49766d44, transparent 65%);
  border-radius: 20px;
}
.book-completed h2 {
  font-size: clamp(30px, 5vw, 46px);
  margin: 14px 0;
}
.completion-spark {
  display: grid;
  place-items: center;
  width: 100px;
  height: 100px;
  margin: 0 auto 24px;
  border-radius: 50%;
  border: 1px solid #eed1a866;
  background: #d6b47320;
  color: #f4d697;
  font-size: 66px;
  box-shadow: 0 0 60px #c6af6944;
  animation: trophyPop 0.6s ease both;
}
.book-completed .reward-pills {
  justify-content: center;
  margin: 24px 0;
}
@media (max-width: 800px) {
  .library-books {
    grid-template-columns: 1fr;
  }
  .library-book {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
  }
  .book-cover {
    height: 200px;
    margin: 22px 8px 22px 20px;
    padding: 20px 12px 14px 22px;
  }
  .book-cover strong {
    font-size: 30px;
  }
}
@media (max-width: 480px) {
  .library-heading {
    gap: 12px;
  }
  .library-emblem {
    width: 52px;
    height: 52px;
    font-size: 30px;
  }
  .library-book {
    grid-template-columns: 110px minmax(0, 1fr);
  }
  .book-cover {
    height: 180px;
    margin: 18px 4px 18px 13px;
    padding: 14px 8px 12px 15px;
  }
  .book-cover strong {
    font-size: 24px;
  }
  .book-cover small {
    font-size: 7px;
  }
  .book-info {
    padding: 16px 12px;
  }
  .reader-bottom {
    flex-direction: column;
    align-items: stretch;
  }
  .pdf-reading-area {
    padding: 6px;
  }
  .reader-toolbar button {
    padding: 9px;
    font-size: 12px;
  }
}
/* Projetos da escola usam um editor amplo e uma prévia que acompanha o arquivo. */
.school-hero h2 {
  margin-bottom: 8px;
}
.exam-card {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 22px;
  margin: 20px 0;
  border: 1px solid #78cfab55;
  border-radius: 18px;
  background: linear-gradient(130deg, #243f42, #1b2b38);
}
.exam-card img {
  width: 96px;
  height: 96px;
  flex: 0 0 auto;
}
.exam-card button,
.exam-card small {
  display: block;
  margin-top: 12px;
}
.project-requirements {
  padding: 16px 20px;
  border: 1px solid #72939c44;
  border-radius: 12px;
  margin: 16px 0;
}
.project-requirements li {
  margin: 7px 0;
  line-height: 1.5;
}
.project-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.project-tabs .active {
  background: #385a54;
  color: #a8efc7;
}
.project-grid textarea,
.project-grid iframe {
  min-height: 420px;
  height: min(55dvh, 620px);
}
.project-grid iframe {
  width: 100%;
  border: 0;
  background: white;
}
.project-grid .editor-pane,
.project-grid .preview-pane {
  min-width: 0;
}
.preview-toolbar a {
  color: #afd3c5;
  text-decoration: none;
}
.social-logins {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}
.social-logins > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.social-logins button {
  flex: 1;
  min-width: 95px;
  padding: 10px;
}
.gate-celebration {
  position: relative;
  overflow: hidden;
  width: min(780px, 94vw);
  padding: 28px;
  border: 1px solid #80f49c;
  border-radius: 24px;
  text-align: center;
  background: radial-gradient(ellipse at top, #284f41, #102330);
  color: #e7ffe9;
  box-shadow: 0 0 70px #64ff3644;
}
.gate-celebration::backdrop {
  background: #071820cc;
  backdrop-filter: blur(6px);
}
.gate-celebration h2 {
  font-size: clamp(28px, 5vw, 48px);
  color: #acff94;
  position: relative;
}
.gate-celebration canvas {
  width: 100%;
  height: auto;
  max-height: 44dvh;
  object-fit: contain;
  border-radius: 16px;
  position: relative;
}
.gate-sparkles {
  color: #64ff36;
  font-size: 32px;
  letter-spacing: 18px;
  animation: pulse 1s infinite alternate;
}
@media (max-width: 700px) {
  .exam-card {
    padding: 16px;
    gap: 12px;
  }
  .exam-card img {
    width: 66px;
    height: 66px;
  }
  .project-grid textarea,
  .project-grid iframe {
    height: 360px;
    min-height: 360px;
  }
  .project-grid {
    grid-template-columns: 1fr;
  }
  .project-tabs button {
    padding: 8px;
    font-size: 12px;
  }
}
.lesson-reading {
  margin: 22px 0;
  border: 1px solid #78a89a55;
  border-radius: 16px;
  background: #15222d;
  overflow: hidden;
}
.lesson-reading summary {
  cursor: pointer;
  padding: 20px;
  color: #ecf2e9;
}
.lesson-reading summary span {
  display: block;
  margin-bottom: 8px;
  color: #b2e58a;
  font-size: 10px;
  letter-spacing: 2px;
}
.lesson-reading summary b { font-size: 19px; }
.lesson-body { padding: 0 22px 22px; line-height: 1.75; }
.lesson-body p { max-width: 76ch; color: #d0ddd8; }
.lesson-body h3, .lesson-task h3 { color: #ecf2e9; margin: 22px 0 8px; }
.lesson-body .lesson-introduction, .lesson-body .lesson-example-note { color: #a0b8b4; }
.lesson-example {
  padding: 18px;
  border: 1px solid #42615c;
  border-radius: 10px;
  background: #0b141e;
  color: #b9ebaa;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 14px/1.8 monospace;
}
.lesson-observation { border-left: 3px solid #92c977; padding: 12px 16px; background: #7ca58b12; }
.lesson-observation strong { color: #c1dda9; }
.lesson-observation p { margin-bottom: 0; }
.lesson-body li { padding: 4px 0; color: #d0ddd8; }
.lesson-task { padding: 0 4px 12px; }
@media (max-width: 600px) {
  .lesson-reading summary { padding: 16px; }
  .lesson-reading summary b { font-size: 17px; }
  .lesson-body { padding: 0 16px 16px; }
  .lesson-example { padding: 12px; font-size: 13px; }
}

.in-game .world { grid-template-rows: auto minmax(0, 1fr) auto; }
.in-game .canvas-wrap { width: min(100%, calc((100dvh - 210px) * 1.5)); }
@media (max-width: 760px) {
  .in-game .canvas-wrap { width: min(100%, calc((100dvh - 268px) * 1.5)); }
}

.player-inventory-head { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:24px; }
.player-inventory-head h2 { margin:8px 0; }
.player-inventory-head p { color:var(--muted); margin:0; }
.player-inventory-layout { display:grid; grid-template-columns:210px minmax(0,1fr); gap:28px; }
.player-equipment { align-self:start; padding:20px; border:1px solid #344b55; background:linear-gradient(160deg,#1d303c,#111e2a); border-radius:18px; text-align:center; }
.player-equipment canvas { width:128px; margin:0 auto 12px; image-rendering:auto; }
.player-equipment h3 { margin:8px 0; }
.inventory-equipped-list { font-size:11px; line-height:1.8; color:#acbfc7; }
.vehicle-state { margin:18px 0; border-top:1px solid #36505c; padding-top:18px; }
.vehicle-state small { display:block; color:#9df3c5; font-size:9px; letter-spacing:.15em; margin-bottom:8px; }
.vehicle-state b { display:block; font-size:13px; }
.vehicle-state p,.inventory-shortcuts { font-size:11px; line-height:1.7; color:#a9becb; }
.vehicle-state button { width:100%; margin-top:6px; }
.player-inventory-tabs { margin-top:0; }
.player-inventory-layout .item-art canvas { image-rendering:auto; }
.inventory-shortcuts { text-align:left; margin:20px 0 0; }
.inventory-shortcuts kbd { display:inline-block; min-width:22px; padding:1px 5px; margin:3px 5px 3px 0; border:1px solid #4a6775; border-radius:5px; color:#e1f2ed; }
@media(max-width:650px){.player-inventory-layout{grid-template-columns:1fr}.player-equipment{display:grid;grid-template-columns:90px 1fr;gap:8px 15px;text-align:left}.player-equipment canvas{width:90px;grid-row:span 2}.player-equipment h3{margin:0}.inventory-equipped-list{margin:0}.vehicle-state,.inventory-shortcuts,#inventoryHome{grid-column:1/-1}.player-inventory-head{gap:8px}.player-inventory-head h2{font-size:21px}}

.in-game .stats.player-level { display:block; margin-bottom:8px; }
.player-wallets { display:grid; gap:8px; margin:10px 0 16px; padding:12px 0; border-top:1px solid #ffffff12; border-bottom:1px solid #ffffff12; }
.player-wallets > div { display:flex; align-items:center; gap:9px; min-width:0; }
.player-wallets > div > span { width:23px; flex:0 0 23px; font-size:18px; text-align:center; }
.player-wallets > div > b { font-size:14px; font-weight:600; line-height:1.5; font-variant-numeric:tabular-nums; white-space:nowrap; }
.wallet-coins { color:#f4ce72; }
.wallet-reais { color:#8de4b0; }
.wallet-dollars { color:#8dc5f4; }
.wallet-note { display:block; width:23px; height:18px; }
.competition-spotlight { position:relative; display:flex; align-items:center; gap:9px; flex:1; min-width:0; overflow:hidden; text-align:left; border:1px solid #d5b86955; border-radius:9px; padding:5px 10px; background:#1b3039; }
.competition-spotlight[hidden]{display:none;}
.competition-spotlight canvas{width:30px;height:30px;border-radius:50%;background:#314b53;flex-shrink:0;}
.competition-spotlight small,.competition-spotlight b,.competition-spotlight em{display:block;position:relative;}
.competition-spotlight small{font-size:9px;color:#e4ce93;letter-spacing:1px;}
.competition-brief{min-width:0;}
.competition-spotlight b{font-size:12px;color:#f5edcb;margin:0 0 2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.competition-spotlight em{font-style:normal;font-size:10px;color:#c0d0d5;}
.competition-cup{font-size:23px;}
.competition-stage-link{margin-left:auto;font-size:11px;color:#dfcc94;}
.spotlight-beam{position:absolute;top:-50px;width:100px;height:210px;background:linear-gradient(#f9e8a528,transparent);clip-path:polygon(45% 0,55% 0,100% 100%,0 100%);pointer-events:none;z-index:-1;}
.beam-left{left:10%;transform:rotate(-30deg);}.beam-right{right:10%;transform:rotate(30deg);}
.competition-countdown{display:flex;align-items:center;justify-content:space-between;gap:18px;border:1px solid #c7b57066;background:#273c3e;padding:18px;border-radius:15px;}
.competition-countdown small,.competition-countdown b{display:block;}.competition-countdown b{font-size:25px;font-variant-numeric:tabular-nums;color:#eddfb0;margin-top:8px;}
.competition-countdown strong{font-size:24px;color:#9bd4f7;white-space:nowrap;}
.competition-countdown strong small{font-size:11px;color:#eddfb0;margin-top:6px;}
.competition-code{width:100%;height:280px;background:#0c1d28;color:#e2efe7;border:1px solid #4b6777;border-radius:12px;padding:16px;font:13px/1.7 monospace;}
#competitionTitle,#competitionDescription,#adminCompetitionCycle{display:block;width:100%;padding:12px;border:1px solid #56717b;border-radius:10px;background:#142b37;color:#e5efea;margin:8px 0 16px;}
#competitionDescription{min-height:85px;}
#competitionPreview,#reviewCompetitionPreview{width:100%;height:380px;background:white;border:0;border-radius:12px;}
.competition-winners{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;}.competition-winners canvas{display:block;width:80px;height:80px;border-radius:50%;background:#314b53;margin-bottom:14px;}
@media(max-width:550px){.competition-spotlight{padding:5px 7px;gap:6px}.competition-spotlight b{font-size:10px}.competition-stage-link{display:none}.competition-spotlight canvas{width:26px;height:26px}.competition-countdown{padding:12px}.competition-countdown b{font-size:18px}.competition-countdown strong{font-size:18px}}
.package-note { display:inline-block; width:23px; height:18px; vertical-align:-3px; margin-right:3px; }
.package-note-brl { color:#8de4b0; }
.package-note-usd { color:#8dc5f4; }
.package-tabs{flex-wrap:wrap;}
.package-summary{display:flex;gap:24px;align-items:center;padding:18px;margin:18px 0;border:1px solid #536c7755;border-radius:14px;background:#19303a;}
.package-summary>div{flex:1;min-width:0;}
.package-summary>p{flex:1;font-size:12px;line-height:1.7;color:#b7c7ce;}
.package-summary h3{margin:8px 0;font-size:21px;}
.package-summary[data-currency="coins"] h3{color:#f4ce72;}
.package-summary[data-currency="brl"] h3{color:#8de4b0;}
.package-summary[data-currency="usd"] h3{color:#8dc5f4;}
.package-cards .card h3{font-size:21px;}
.package-price{display:grid;gap:6px;margin:18px 0;}
.package-price b{font-size:23px;color:#eff7ef;}
.package-cards .card>p{font-size:12px;color:#b7c7ce;min-height:38px;}
.package-payment-note{font-size:12px;color:#bacbd2;line-height:1.7;}
@media(max-width:550px){.package-summary{display:block;padding:14px}.package-tabs button{flex:1;font-size:11px;padding:9px}}

.character-cost-dialog { width:min(430px,92vw); padding:28px; }
.character-cost-dialog h2 { font-size:23px; line-height:1.35; margin:12px 0; }
.character-cost-dialog p { color:var(--muted); font-size:13px; line-height:1.6; }
.character-cost-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:10px; margin-top:24px; }

#panel.npc-chat-dialog { width:min(650px,92vw); margin:auto auto 7vh; padding:26px; border:2px solid #92bcae; border-radius:30px; background:#162d35; overflow:visible; box-shadow:0 16px 60px #0008; }
#panel.npc-chat-dialog::backdrop { background:#03071055; backdrop-filter:none; }
#panel.npc-chat-dialog::after { content:''; position:absolute; bottom:-14px; left:65px; width:24px; height:24px; background:#162d35; border-right:2px solid #92bcae; border-bottom:2px solid #92bcae; transform:skewY(-15deg) rotate(45deg); }
.npc-chat-dialog .dialog-head { position:absolute; right:14px; top:10px; }
.npc-chat-dialog #panelTag { display:none; }
.npc-chat { display:flex; gap:20px; align-items:flex-start; }
.npc-chat canvas { width:76px; flex:0 0 76px; background:#24434a; border-radius:50%; }
.npc-chat-message { min-width:0; }
.npc-chat-message h2 { font-size:20px; color:#bce8ca; margin:0 20px 10px 0; }
.npc-chat-message p { font-size:14px; line-height:1.75; margin:0; color:#e1ece7; }
.npc-chat-actions { display:flex; flex-wrap:wrap; gap:10px; justify-content:flex-end; margin-top:18px; }
.npc-chat-actions button { font-size:12px; }
@media(max-width:550px){#panel.npc-chat-dialog{padding:24px 18px;margin-bottom:9vh}.npc-chat{gap:12px}.npc-chat canvas{width:46px;flex-basis:46px}.npc-chat-message p{font-size:13px}.npc-chat-actions{margin-left:-58px}}
@media(max-width:700px){
 .in-game .profile{grid-template-columns:minmax(0,1fr) 65px 48px;grid-template-rows:auto auto 4px auto auto auto auto;gap:5px 9px;}
 .in-game .profile h2{grid-column:1;grid-row:1;}
 .in-game .profile>.badge{grid-column:1;grid-row:2;}
 .in-game .profile .player-level{grid-column:2;grid-row:1/3;margin:0;}
 .in-game .profile #xpBar{grid-column:1/-1;grid-row:3;}
 .in-game .profile #xpNext{grid-column:1/-1;grid-row:4;margin:0;font-size:9px;}
 .in-game #regionalWallets{grid-column:1/-1;grid-row:5;gap:2px;margin:3px 0;padding:5px 0;}
 .in-game #regionalWallets>div>b{font-size:11px;}
 .in-game #regionalWallets>div>span{font-size:13px;}
 .in-game #sidebarTrophies{grid-column:1/-1;grid-row:6;width:100%;padding:4px;max-height:58px;justify-content:flex-start;}
 .in-game #playerInventoryButton{grid-column:1/-1;grid-row:7;}
 .in-game #travelRoutes{grid-column:1;grid-row:8;}
 .in-game #dollarShop{grid-column:2/4;grid-row:8;}
}
/* Guia de jornada */
#panel.tutorial-dialog{width:min(920px,94vw);background:#111820;}
.tutorial-guide{color:#e8eef6;}
.tutorial-hero{position:relative;overflow:hidden;padding:30px;border:1px solid #b5f36b38;border-radius:20px;background:radial-gradient(ellipse at 95% 0%,#b5f36b26,transparent 65%),linear-gradient(135deg,#1c2a23,#131e29);}
.tutorial-hero:after{content:'</>';position:absolute;right:24px;top:12px;font:900 100px monospace;color:#b5f36b0c;pointer-events:none;}
.tutorial-kicker,.tutorial-guide small,.tutorial-section-title>span{font-size:10px;letter-spacing:1.5px;font-weight:700;}
.tutorial-kicker{color:#b5f36b;}
.tutorial-hero h2{position:relative;margin:14px 0;font-size:clamp(28px,4vw,44px);line-height:1.12;letter-spacing:-1.6px;}
.tutorial-hero h2 em{color:#b5f36b;font-style:normal;}
.tutorial-guide p{color:#aab8c7;font-size:13px;line-height:1.7;margin:10px 0;}
.tutorial-worlds{display:flex;align-items:center;gap:10px;margin-top:26px;flex-wrap:wrap;}
.tutorial-worlds>span{display:flex;align-items:center;gap:7px;padding:9px 11px;border-radius:10px;border:1px solid #ffffff12;background:#0e141d80;font-size:14px;color:#7e8c9d;}
.tutorial-worlds>span.is-open{color:#ddf4d0;border-color:#b5f36b40;}
.tutorial-worlds b{font-size:12px;}.tutorial-worlds i{color:#728476;font-style:normal;}
.tutorial-progress{display:flex;align-items:center;gap:14px;margin-top:20px;font-size:11px;color:#a4b69d;}
.tutorial-progress>div{height:5px;flex:1;background:#ffffff0d;border-radius:20px;overflow:hidden;}.tutorial-progress i{display:block;height:100%;background:#b5f36b;border-radius:20px;}
.tutorial-next{display:flex;gap:16px;margin:18px 0 24px;padding:18px 20px;border-radius:14px;background:#b5f36b0b;border:1px solid #b5f36b24;}
.tutorial-next>span{font-size:30px;color:#b5f36b;}.tutorial-next small{display:block;color:#b5f36b;margin-bottom:5px;}.tutorial-next strong{font-size:17px;}.tutorial-next p{margin:5px 0 0;}
.tutorial-pillars{display:grid;grid-template-columns:1fr 1fr;gap:14px;}.tutorial-pillars article{border:1px solid #ffffff12;border-radius:16px;padding:22px;background:linear-gradient(155deg,#1b2633,#151d27);}.tutorial-icon{display:flex;width:40px;height:40px;align-items:center;justify-content:center;background:#81c9ff13;color:#8acbff;border-radius:12px;font:700 18px monospace;margin-bottom:16px;}.tutorial-pillars article:nth-child(2) .tutorial-icon{color:#ffd38b;background:#ffd38b13;}.tutorial-pillars small{color:#8298b0;}.tutorial-guide h3{font-size:18px;margin:8px 0;}.tutorial-chip{display:inline-block;font-size:10px;color:#9db9d5;border:1px solid #81c9ff24;padding:7px 9px;border-radius:8px;}.tutorial-currencies{display:flex;gap:6px;flex-wrap:wrap;}.tutorial-currencies span{font-size:10px;padding:7px 8px;border-radius:8px;background:#ffffff06;color:#d1c29b;}
.tutorial-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:28px 0 16px;}.tutorial-section-title>span{color:#77899d;white-space:nowrap;}
.tutorial-routes{display:grid;gap:12px;}.tutorial-route{--route:#b5f36b;display:flex;gap:18px;position:relative;border:1px solid #ffffff10;border-left:3px solid var(--route);padding:20px;border-radius:14px;background:#18212c;}.tutorial-blue{--route:#80c7ff;}.tutorial-purple{--route:#c6a1ff;}.tutorial-route-marker{flex-shrink:0;width:46px;height:46px;display:grid;place-items:center;font-size:26px;border-radius:13px;background:#ffffff06;}.tutorial-route-copy{flex:1;min-width:0;}.tutorial-route-copy>small{color:var(--route);}.tutorial-route h4{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;font-size:21px;margin:7px 0 9px;}.tutorial-status{font-size:10px;font-weight:600;color:#9caabd;background:#ffffff06;padding:5px 9px;border-radius:20px;}.is-open .tutorial-status{color:#b5f36b;background:#b5f36b10;}.tutorial-directions{font-size:11px;color:#d5dfe9;padding-top:10px;border-top:1px solid #ffffff0b;line-height:1.6;}.tutorial-crossing{text-align:center;font-size:11px!important;}
.tutorial-competition{display:flex;align-items:center;gap:18px;margin-top:24px;padding:24px;border:1px solid #f8ce7040;border-radius:16px;background:radial-gradient(ellipse at 0% 0%,#b6852524,transparent 80%),#211f24;}.tutorial-competition>span{font-size:38px;}.tutorial-competition>div:nth-child(2){flex:1;}.tutorial-competition small{color:#e2c184;}.tutorial-prize{display:flex;flex-direction:column;gap:7px;text-align:center;flex-shrink:0;padding-left:20px;border-left:1px solid #f8ce7026;}.tutorial-prize strong{font-size:28px;color:#ffe0a3;letter-spacing:-1px;}.tutorial-prize span{font-size:10px;color:#baa783;}.tutorial-prize b{font-size:10px;color:#e5cb9b;}
.tutorial-shortcuts{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;}.tutorial-shortcuts>div{display:flex;align-items:center;gap:10px;padding:12px;background:#ffffff03;border:1px solid #ffffff0c;border-radius:10px;}.tutorial-shortcuts kbd{font:600 11px monospace;padding:7px 9px;border:1px solid #536173;border-bottom-width:3px;border-radius:6px;background:#24303e;color:#e0ebf8;white-space:nowrap;}.tutorial-shortcuts span{font-size:11px;color:#aab8c7;line-height:1.4;}.tutorial-footnote{font-size:11px!important;text-align:center;margin-top:16px!important;}
@media(max-width:600px){.tutorial-hero{padding:22px 18px;}.tutorial-worlds{gap:5px;}.tutorial-worlds>span{padding:7px;font-size:12px;gap:4px;}.tutorial-worlds b{font-size:10px;}.tutorial-worlds i{font-size:10px;}.tutorial-pillars{grid-template-columns:1fr;}.tutorial-route{padding:16px 12px;gap:10px;}.tutorial-route-marker{width:34px;height:34px;font-size:21px;}.tutorial-competition{flex-wrap:wrap;padding:18px;}.tutorial-competition>span{font-size:28px;}.tutorial-prize{width:100%;border-left:0;border-top:1px solid #f8ce7026;padding:14px 0 0;}.tutorial-shortcuts{grid-template-columns:1fr 1fr;}.tutorial-section-title h3{font-size:16px;}.tutorial-section-title>span{font-size:8px;}.tutorial-progress{font-size:10px;}}
/* Toque: mapa livre, controles de polegar e perfil em gaveta. */
.touch-controls,#mobileMenu,.touch-menu-shade,.touch-profile-close,.touch-rotate,.touch-fullscreen{display:none;}
body.touch-game.in-game{height:var(--touch-height,100dvh);min-height:0;overscroll-behavior:none;}
body.touch-game.in-game #game{height:100%;padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px);box-sizing:border-box;}
body.touch-game.in-game #game>header{height:46px;min-height:46px;padding:0 10px;gap:6px;}
body.touch-game #game>header .brand{font-size:19px;margin-right:auto;white-space:nowrap;}
body.touch-game #game>header .header-city,body.touch-game #audioVolume{display:none;}
body.touch-game .header-actions{gap:5px;}
body.touch-game .audio-controls{padding:0;border:0;background:none;}
body.touch-game #game>header button{min-height:40px;font-size:11px;padding:6px 8px;}
body.touch-game #mobileMenu,body.touch-game .touch-fullscreen{display:block;}
body.touch-game.in-game .game-layout{display:block;position:relative;flex:1;min-height:0;padding:0 6px 4px;}
body.touch-game.in-game .world{height:100%;width:100%;display:flex;flex-direction:column;gap:3px;min-height:0;}
body.touch-game.in-game .world-heading{display:none;}
body.touch-game.in-game .canvas-wrap{width:100%;flex:1;min-height:0;max-width:none;align-self:stretch;border-radius:12px;}
body.touch-game.in-game .world-footer{flex-shrink:0;width:100%;gap:4px;min-height:28px;flex-wrap:nowrap;}
body.touch-game #onlineUI{width:auto;margin-left:auto;}
body.touch-game .online-hud{padding:0 7px;min-height:28px;gap:7px;}
body.touch-game .online-hud button{font-size:11px;min-height:30px;}
body.touch-game .competition-spotlight{max-width:55%;padding:2px 6px;gap:5px;}
body.touch-game .competition-spotlight canvas{width:24px;height:24px;}
body.touch-game .competition-spotlight small{font-size:8px;}
body.touch-game.in-game .profile{display:none;}
body.touch-game.in-game.touch-menu-open .profile{display:flex;flex-direction:column;position:fixed;z-index:51;top:calc(env(safe-area-inset-top,0px) + 48px);bottom:calc(env(safe-area-inset-bottom,0px) + 8px);left:calc(env(safe-area-inset-left,0px) + 8px);width:min(310px,calc(100vw - 32px));padding:16px;overflow-y:auto;overscroll-behavior:contain;border:1px solid #506a77;background:#14212afc;border-radius:16px;box-shadow:12px 0 50px #0008;gap:8px;}
body.touch-game.in-game.touch-menu-open .profile>*{flex-shrink:0;}
body.touch-game.in-game .profile>.eyebrow,body.touch-game.in-game .profile>.avatar,body.touch-game.in-game .profile>h3,body.touch-game.in-game .profile>#skills,body.touch-game.in-game .profile>.xp-label,body.touch-game.in-game .profile>.streak,body.touch-game.in-game .profile>.tip{display:block;}
body.touch-game.in-game .profile h2{font-size:20px;margin:0;}
body.touch-game.in-game .profile>.badge{align-self:flex-start;}
body.touch-game.in-game .profile .avatar{margin:0 auto;width:64px;height:64px;}
body.touch-game.in-game .profile h3{margin:10px 0 0;font-size:13px;}
body.touch-game.in-game .profile .player-level{display:block;margin:0;}
body.touch-game.in-game .profile .player-level>div{display:flex;align-items:center;gap:12px;}
body.touch-game.in-game .profile .stats b{font-size:22px;}
body.touch-game.in-game .profile #regionalWallets{display:grid;grid-template-columns:1fr;gap:8px;}
body.touch-game.in-game .profile #regionalWallets b{font-size:14px;}
body.touch-game.in-game .profile button{min-height:42px;font-size:13px;padding:9px 12px;}
body.touch-game.in-game .profile #editCharacter,body.touch-game.in-game .profile #achievementsBtn{font-size:13px;}
body.touch-game.in-game .profile #editCharacter:after,body.touch-game.in-game .profile #achievementsBtn:after{content:none;}
body.touch-game.in-game .profile #sidebarTrophies{display:flex;min-height:40px;max-height:100px;}
body.touch-game .touch-profile-close{display:block;align-self:stretch;}
body.touch-game.in-game.touch-menu-open .touch-menu-shade{display:block;position:fixed;inset:0;z-index:50;background:#020a12aa;border:0;border-radius:0;}
body.touch-game .touch-controls{display:block;position:absolute;inset:0;pointer-events:none;z-index:6;}
body.touch-game .touch-joystick{position:absolute;left:16px;bottom:18px;width:116px;height:116px;border-radius:50%;pointer-events:auto;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;background:#0d1e2b80;border:1px solid #d4f0ff4d;box-shadow:0 4px 22px #0004,inset 0 0 25px #b5f36b08;}
.touch-joystick-ring{position:absolute;inset:18px;border:1px solid #e0f2ff22;border-radius:50%;}
.touch-stick{position:absolute;left:calc(50% - 23px);top:calc(50% - 23px);width:46px;height:46px;border-radius:50%;border:1px solid #def3ff88;background:radial-gradient(circle at 35% 25%,#6c8a97,#294857);box-shadow:0 5px 10px #0005;pointer-events:none;}
.touch-joystick.is-active{border-color:#b5f36b99;background:#102b2ca0;}
.touch-joystick.is-active .touch-stick{background:radial-gradient(circle at 35% 25%,#b5f36b,#497d57);}
body.touch-game .touch-actions{position:absolute;right:12px;bottom:16px;display:grid;grid-template-columns:repeat(2,48px);gap:7px;pointer-events:auto;}
body.touch-game .touch-actions button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;width:48px;height:45px;padding:3px;border:1px solid #b8dce74a;border-radius:13px;background:#122b3bde;color:#ecf6ff;font-size:17px;touch-action:manipulation;}
.touch-actions small{font-size:8px;line-height:1;}
body.touch-game.in-game #interactBtn{position:absolute;top:auto;bottom:121px;right:14px;left:auto;transform:none;min-width:98px;min-height:44px;padding:9px 12px;border-radius:22px;font-size:12px;background:#b5f36b;color:#142719;z-index:7;touch-action:manipulation;}
body.touch-game.in-game #interaction{top:12px;bottom:auto;left:50%;max-width:58%;overflow:hidden;text-overflow:ellipsis;padding:6px 9px;font-size:10px;}
body.touch-game.in-game .map-view{top:45px;left:10px;min-height:36px;font-size:10px;max-width:180px;z-index:7;}
body.touch-game.touch-menu-open .touch-controls,body.touch-game.touch-menu-open #interactBtn{visibility:hidden;}
body.touch-game.in-game .touch-rotate:not([hidden]){display:flex;align-items:center;gap:9px;flex-shrink:0;padding:8px 12px;border:1px solid #b5f36b30;background:#243728;border-radius:10px;}
.touch-rotate>span{font-size:25px;color:#b5f36b;}.touch-rotate p{margin:0;flex:1;}.touch-rotate b{display:block;font-size:11px;}.touch-rotate small{display:block;font-size:10px;color:#a9c5b1;line-height:1.4;margin-top:3px;}.touch-rotate button{padding:6px;background:transparent;min-width:36px;min-height:36px;}
body.touch-game dialog{max-height:calc(var(--touch-height,100dvh) - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 16px);width:calc(100vw - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px) - 16px);max-width:1000px;padding:18px;overflow-y:auto;overscroll-behavior:contain;}
body.touch-game .dialog-head{position:sticky;top:-18px;z-index:10;background:var(--panel);padding:8px 0;}
body.touch-game #closePanel{min-width:44px;min-height:44px;}
body.touch-game input,body.touch-game textarea,body.touch-game select{font-size:16px;}
body.touch-game .project-grid{grid-template-columns:1fr;}
body.touch-game .project-grid textarea,body.touch-game .project-grid iframe{min-height:240px;height:50dvh;}
body.touch-game .chat-panel{bottom:calc(env(safe-area-inset-bottom,0px) + 36px);max-height:calc(var(--touch-height,100dvh) - 60px);overflow-y:auto;right:calc(env(safe-area-inset-right,0px) + 8px);}
@media (orientation:landscape){body.touch-game.in-game .touch-rotate:not([hidden]){display:none;}body.touch-game.in-game #game>header{height:40px;min-height:40px;}body.touch-game .touch-joystick{width:104px;height:104px;bottom:12px;left:18px;}body.touch-game .touch-actions{bottom:10px;}body.touch-game.in-game #interactBtn{bottom:115px;}body.touch-game .touch-fullscreen{font-size:10px;}}
@media(max-width:430px){body.touch-game #game>header .brand{font-size:16px;}body.touch-game #game>header .brand span{display:none;}body.touch-game #game>header button{padding:5px;font-size:10px;}body.touch-game .header-actions{gap:2px;}}
@media(pointer:coarse) and (max-width:700px){.auth-shell{padding:24px 18px;padding-top:max(24px,env(safe-area-inset-top));padding-bottom:max(24px,env(safe-area-inset-bottom));gap:22px;}.auth-card{padding:22px;}.intro h1{font-size:38px;}.scene-card{display:none;}}
.auth-card .password-field{display:block;position:relative;margin-top:7px;}
.auth-card .password-field input{margin-top:0;padding-right:52px;}
.auth-card .password-toggle{position:absolute;right:3px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:0;background:transparent;border:0;border-radius:7px;color:#9badc1;cursor:pointer;touch-action:manipulation;}
.auth-card .password-toggle:hover,.auth-card .password-toggle[aria-pressed="true"]{color:var(--accent);}
.auth-card .password-toggle:focus-visible{outline:2px solid var(--accent);outline-offset:-3px;}
.password-toggle .eye-slash{display:none;}.password-toggle[aria-pressed="true"] .eye-slash{display:block;}
/* Menos sobreposição e efeitos de composição durante o jogo no celular. */
body.touch-game.in-game #interaction{display:none;}
body.touch-game.in-game .map-view,body.touch-game.in-game .canvas-wrap,body.touch-game .touch-actions button,body.touch-game .touch-joystick{backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:none;}
.skill[data-area="TypeScript Front-end"] > div { color: #60a5fa; }
.skill[data-area="TypeScript Front-end"] progress { accent-color: #60a5fa; }
.skill[data-area="TypeScript Back-end"] > div { color: #2dd4bf; }
.skill[data-area="TypeScript Back-end"] progress { accent-color: #2dd4bf; }
