:root {
  --radius: 18px;
  --btn-w: 320px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }

.screen { display: none; text-align: center; }
.screen.active { display: block; }
.hidden { display: none !important; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#screen-start {
  position: fixed;
  inset: 0;
  isolation: isolate;
  transform: translateY(10px);
}
#screen-start.active {
  display: flex;
  align-items: center;
  justify-content: center;
}
#screen-start::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("../media/ui/Background_inicio.png") center / 100% auto no-repeat;
  pointer-events: none;
  transform: scale(1.3);
}

.start-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transform: translateY(-8px);
}
.welcome-image {
  display: block;
  width: min(82vw, 880px);
  height: auto;
  transform: translateY(8px);
}
.start-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transform: translateY(-8px);
}

.btn {
  display: block;
  font: inherit;
  font-weight: 700;
  font-size: 1.15rem;
  width: min(var(--btn-w), 88vw);
  aspect-ratio: 2.32 / 1;
  height: auto;
  padding: 0 0 6px;
  border: none;
  background: transparent center / contain no-repeat;
  box-shadow: none;
  cursor: pointer;
  color: var(--ink);
  transition: transform 160ms ease, filter 160ms ease;
}
.btn:hover {
  transform: scale(1.06);
}
.btn:active {
  transform: scale(.96);
  filter: brightness(.9);
}
.btn:focus-visible {
  outline: 4px solid var(--ai);
  outline-offset: 3px;
  border-radius: var(--radius);
}

#btn-start {
  background-image: url("../media/ui/JOGAR_button.png");
}

#btn-options {
  background-image: url("../media/ui/OPÇÕES_button.png");
}

#options-rect {
  position: fixed;
  inset: 0;
  isolation: isolate;
  transform: translateY(10px);
}
#options-rect.active {
  display: flex;
  align-items: center;
  justify-content: center;
}
#options-rect::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("../media/ui/Background_inicio.png") center / cover no-repeat;
  pointer-events: none;
  transform: scale(1.3);
}

.options-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transform: translateY(24px);
}

.options-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transform: translateY(-8px);
}

#btn-soundEffects {
  background-image: url("../media/ui/PLACEHOLDER_SOM_button.png");
}

#btn-backgroundMusic {
  background-image: url("../media/ui/PLACEHOLDER_MUSICA_button.png");
}

#btn-soundEffects.switch-off,
#btn-backgroundMusic.switch-off {
  filter: sepia(1) hue-rotate(250deg) saturate(2) brightness(0.5);
}

#btn-backSeta {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 100px;
  height: 76px;
  background-image: url("../media/ui/SetaEsquerda_button.png");
}

#btn-nextSeta {
  position: absolute;
  z-index: 1;
  top: 16px;
  right: 16px;
  width: 100px;
  height: 76px;
  background-image: url("../media/ui/SetaDireita_button.png");
}

.worlds-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: url("../media/ui/Ilhas_background.png") center 90% / 130% auto no-repeat;
}

.cutscene-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("../media/ui/Background_1slide.png") center 15% / 113% auto no-repeat;
}

.cutscene2-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("../media/ui/Background_2slide.png") center 38% / 130% auto no-repeat;
}

.texto-cutscene1,
.texto-cutscene2,
.texto-cutscene3 {
  position: absolute;
  top: 24px;
  left: 50%;
  width: min(55vw, 620px);
  height: auto;
  transform: translateX(-50%);
  z-index: 5;
  pointer-events: none;
}

.texto-cutscene1 {
  top: auto;
  bottom: 24px;
  left: 24px;
  transform: none;
}

.worlds {
  width: min(100%, 980px);
  text-align: center;
}

.worlds h1 {
  margin: 0 0 32px;
  color: #243746;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.world-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  transform: translateY(clamp(20px, 4.5vh, 36px));
}

.world-card {
  display: block;
  padding: 12px 18px;
  color: #fff;
  text-shadow: 0 2px 6px #0009;
}

.world-card-one {
  display: flex;
  flex-direction: column;
  align-items: center;
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  width: clamp(240px, 30vw, 360px);
  text-decoration: none;
  transition: transform 160ms ease, filter 160ms ease;
}

.world-card-two {
  grid-column: 1;
  grid-row: 1;
}

.world-card-three {
  grid-column: 3;
  grid-row: 1;
}

.world-image {
  display: block;
  width: 100%;
  height: auto;
}

.world-title {
  display: block;
  width: 72%;
  height: auto;
  margin-top: 8px;
  transform: translateX(53px);
}

.world-card-one:hover {
  transform: scale(1.08);
  filter: brightness(1.12);
}

.world-card-one:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
  border-radius: 6px;
}

.world-card h2 {
  margin: 0;
  font-size: 2rem;
}

@media (max-width: 640px) {
  .world-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .world-card-one {
    width: min(72vw, 320px);
  }
}

.map-main {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: url("../media/ui/Nivel_background.png") 56% 70% / 125% auto no-repeat;
}

.map-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.world-map {
  position: absolute;
  inset: 0;
}

.map-location {
  position: absolute;
  display: block;
  width: clamp(150px, 18.5vw, 260px);
  transition: transform 160ms ease, filter 160ms ease;
  cursor: pointer;
}

.map-location img {
  display: block;
  width: 100%;
  height: auto;
}

.map-location:hover {
  transform: scale(1.08);
  filter: brightness(1.08);
}

.map-location:focus-visible {
  outline: 4px solid #fff;
  outline-offset: 2px;
  border-radius: 50%;
}

.map-location-one {
  left: 25.6%;
  top: 78.2%;
  transform: translate(-50%, -50%);
}

.map-location-two {
  left: 52.7%;
  top: 75.6%;
  transform: translate(-50%, -50%);
}

.map-location-three {
  left: 78.9%;
  top: 78.6%;
  transform: translate(-50%, -50%);
}

.map-location-one:hover,
.map-location-two:hover,
.map-location-three:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

.map-location.is-locked {
  cursor: not-allowed;
  filter: grayscale(0.85) brightness(0.8);
  opacity: 0.7;
}

.map-location.is-locked:hover {
  transform: translate(-50%, -50%);
  filter: grayscale(0.85) brightness(0.8);
}

@media (max-width: 640px) {
  .map-main {
    background-position: center;
  }

  .map-location {
    width: clamp(110px, 26vw, 170px);
  }
}

.game-main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 48px 24px;
  background: url("../media/ui/Background_Niveis_optimized.png") 55% 73% / 127% auto no-repeat;
}

.game-main-layout {
  justify-content: flex-start;
  gap: 16px;
  padding: clamp(104px, 10vh, 112px) 24px 48px;
}

.game-score {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 2;
  margin: 0;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 14px #0002;
  color: #243746;
  font-weight: 700;
}

.game-main h1 {
  margin: 0;
  color: #243746;
}

.game-feedback-dialog,
.game-completion-dialog {
  position: fixed;
  width: min(92vw, 680px);
  max-width: none;
  max-height: min(88vh, 760px);
  padding: clamp(24px, 5vw, 42px);
  overflow: auto;
  border: 5px solid #21bfc4;
  border-radius: 30px;
  background:
    radial-gradient(ellipse at 100% 0, #ffdb70 0, transparent 34%),
    linear-gradient(145deg, #fffdf2, #f1fbf8);
  box-shadow: 0 18px 56px #082c3a80;
  color: #243746;
  text-align: center;
}

.game-feedback-dialog {
  width: min(92vw, 760px);
}

.game-completion-dialog {
  width: min(92vw, 840px);
  max-height: min(92vh, 900px);
  padding: clamp(12px, 2vw, 22px) clamp(20px, 4vw, 40px) clamp(20px, 4vw, 40px);
  border: 5px solid #21bfc4;
  border-radius: 34px;
  background:
    radial-gradient(ellipse at 50% 0, #ffdb70 0, transparent 38%),
    linear-gradient(145deg, #fffdf2, #f1fbf8);
  box-shadow: 0 18px 56px #082c3a80;
  color: #243746;
}

.game-completion-dialog::backdrop,
.game-feedback-dialog::backdrop {
  background: #102b3bd9;
  backdrop-filter: blur(5px);
}

.game-completion-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 1.8vh, 16px);
  text-align: center;
}

.game-completion-banner {
  display: block;
  width: min(80%, 500px);
  height: clamp(100px, 14vw, 125px);
  object-fit: cover;
  object-position: center top;
}

.game-completion-robot {
  display: block;
  width: clamp(180px, 32vw, 320px);
  max-height: min(36vh, 320px);
  object-fit: contain;
  mix-blend-mode: multiply;
}

.game-completion-content h2 {
  margin: 0;
  color: #243746;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.15;
}

.game-completion-message {
  max-width: 620px;
  margin: 0;
  color: #245451;
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  font-weight: 700;
  line-height: 1.45;
}

.game-completion-action {
  display: block;
  width: min(280px, 70vw);
  margin-top: 4px;
  border-radius: var(--radius);
  transition: transform 160ms ease, filter 160ms ease;
}

.game-completion-action img {
  display: block;
  width: 100%;
  height: auto;
}

.game-completion-action:hover {
  transform: scale(1.05);
  filter: brightness(1.06);
}

.game-completion-action:active {
  transform: scale(.97);
}

.game-completion-action:focus-visible {
  outline: 4px solid var(--ai);
  outline-offset: 4px;
}

.game-tutorial {
  position: fixed;
  top: 84px;
  right: 20px;
  z-index: 3;
  width: min(320px, calc(100vw - 32px));
  max-height: calc(100vh - 104px);
  margin: 0;
  padding: 34px 26px 28px;
  overflow: auto;
  border-radius: 28px;
  background: url("../media/ui/FundoTutorial.png") center / 100% 100% no-repeat;
  box-shadow: 0 8px 26px #082c3a45;
  color: #243746;
  text-align: center;
}

.game-tutorial-close {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #243746;
  box-shadow: 0 3px 0 #142732;
  color: #fff;
  font: inherit;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease;
}

.game-tutorial-close-form {
  position: absolute;
  top: 12px;
  right: 12px;
  margin: 0;
}

.game-tutorial-close:hover {
  transform: rotate(8deg) scale(1.06);
  background: #324d61;
}

.game-tutorial-close:focus-visible {
  outline: 4px solid #ffcc3e;
  outline-offset: 3px;
}

.game-tutorial-header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.game-tutorial-eyebrow {
  margin: 4px 0 6px;
  color: #168b94;
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.game-tutorial h2 {
  margin: 0;
  color: #243746;
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  line-height: 1.15;
}

.game-tutorial-intro {
  max-width: 260px;
  margin: 8px 0 12px;
  font-size: .88rem;
  line-height: 1.35;
}

.game-tutorial-choices {
  display: grid;
  gap: 8px;
  text-align: left;
}

.game-tutorial-choice {
  display: grid;
  grid-template-columns: 74px 1fr;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 2px solid #ffffffa6;
  border-radius: 16px;
  background: #ffffff75;
  box-shadow: 0 4px 0 #d9e8e480;
  backdrop-filter: blur(2px);
}

.game-tutorial-button {
  display: block;
  width: 100%;
  height: 48px;
  object-fit: contain;
}

.game-tutorial-choice h3 {
  margin: 0 0 3px;
  color: #243746;
  font-size: .88rem;
}

.game-tutorial-choice p {
  margin: 0;
  font-size: .76rem;
  line-height: 1.25;
}

.game-tutorial-tip {
  margin: 12px 0 0;
  padding: 8px 10px;
  border-radius: 14px;
  background: #e2f7f3;
  color: #245451;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.3;
}

.game-feedback-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(180px, 30vw, 280px);
  align-items: center;
  gap: clamp(16px, 4vw, 32px);
  padding-top: 12px;
  text-align: left;
}

.game-feedback-copy h2 {
  margin: 4px 0 12px;
  color: #243746;
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  line-height: 1.15;
}

.game-feedback-dialog .game-feedback {
  min-height: 0;
  margin: 0;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  line-height: 1.55;
  text-align: left;
}

.game-feedback-robot {
  display: block;
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.game-feedback-robot.is-error {
  transform: scale(1.2);
}

.game-round {
  width: min(100%, 1200px);
  display: grid;
  grid-template-columns: minmax(100px, 1fr) minmax(0, 3fr) minmax(100px, 1fr);
  align-items: center;
  gap: clamp(16px, 4vw, 48px);
}

.game-round-layout {
  width: min(100%, 1280px);
  grid-template-columns: minmax(0, 2fr) minmax(220px, .75fr);
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
}

.game-layout-content {
  width: min(100%, 760px);
  justify-self: start;
}

.game-result-area {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.game-main-layout .game-result-area {
  transform: translateY(-16px);
}

.game-layout-content .image-card {
  aspect-ratio: 1.56;
  padding: 12px;
  border: 3px solid #d5dce2;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 22px #0002;
}

.game-layout-content .image-card img,
.game-layout-content .image-card video {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  border-radius: calc(var(--radius) - 6px);
}

.game-layout-choices {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 5vw, 56px);
  margin-top: 12px;
}

.game-layout-choices .game-choice {
  width: clamp(150px, 16vw, 180px);
  aspect-ratio: 2 / 1;
  margin: 0;
}

.game-layout-choices .game-next-phase,
.game-layout-choices .game-previous-phase {
  flex: 0 0 clamp(48px, 7vw, 72px);
  align-self: center;
  width: clamp(48px, 7vw, 72px) !important;
}

.game-layout-choices.has-next-phase,
.game-layout-choices.has-previous-phase {
  gap: clamp(8px, 2vw, 20px);
}

.game-layout-choices.has-next-phase .game-choice,
.game-layout-choices.has-previous-phase .game-choice {
  width: clamp(110px, 14vw, 170px);
}

.game-robot-placeholder {
  justify-self: center;
  transform: translateY(72px);
  color: #fff;
  font-size: clamp(1.5rem, 3.2vw, 2.5rem);
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 2px 6px #0008;
}

.game-robot-placeholder img {
  display: block;
  width: clamp(180px, 24vw, 280px);
  max-width: 100%;
  height: auto;
}

.game-robot-placeholder img.is-celebrating {
  transform: translateY(16px) scale(1.5);
  transform-origin: center bottom;
}

.game-robot-placeholder img.is-error {
  transform: translateY(16px) scale(2.4);
  transform-origin: center bottom;
}

.game-choice {
  width: min(100%, 220px);
  aspect-ratio: 2400 / 1792;
  min-height: 0;
  justify-self: center;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease;
}

.game-choice img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.game-choice:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
}

.game-choice:active {
  transform: scale(.96);
}

.game-choice:focus-visible {
  outline: 4px solid #243746;
  outline-offset: 4px;
}

.game-layout-choices.is-answered .game-choice {
  opacity: .62;
  filter: grayscale(.45);
  cursor: not-allowed;
  transform: none;
}

.game-layout-choices.is-answered .game-choice:hover {
  filter: grayscale(.45);
}

.game-phase-hint {
  width: fit-content;
  max-width: 100%;
  margin: 10px auto 0;
  padding: 6px 12px;
  border: 1px solid #d5e8e4;
  border-radius: 999px;
  background: #ffffffb8;
  color: #245451;
  font-size: clamp(.8rem, 1.8vw, .95rem);
  font-weight: 700;
  text-align: center;
}

.image-card {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 12px;
  border: 3px solid #d5dce2;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 22px #0002;
  overflow: hidden;
}

.image-card img,
.image-card video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 65vh;
  object-fit: contain;
  border-radius: calc(var(--radius) - 6px);
}

.image-card img[hidden],
.image-card video[hidden] {
  display: none;
}

.game-zoom-toggle {
  position: absolute;
  z-index: 3;
  top: 20px;
  right: 20px;
  min-height: 44px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: #243746e8;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}

.game-zoom-toggle:hover {
  transform: scale(1.05);
  background: #324d61;
}

.game-zoom-toggle[aria-pressed="true"] {
  background: #236b43;
}

.game-zoom-toggle:focus-visible {
  outline: 4px solid var(--ai);
  outline-offset: 3px;
}

.game-magnifier {
  position: absolute;
  z-index: 2;
  display: none;
  width: 160px;
  height: 160px;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 4px 16px #0008;
  pointer-events: none;
}

.game-magnifier.is-visible {
  display: block;
}

.game-magnifier canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.game-feedback {
  max-width: 720px;
  min-height: 1.5em;
  margin: 0;
  color: #243746;
  font-size: 1.1rem;
  line-height: 1.5;
  text-align: center;
}

.game-feedback[data-result="correct"] {
  color: #236b43;
}

.game-feedback[data-result="incorrect"],
.game-feedback[data-result="error"] {
  color: #a12e2e;
}

.game-return {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  min-height: 48px;
  padding: 12px 24px;
  border: 0;
  border-radius: var(--radius);
  background: #243746;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease;
}

.game-main-layout .game-result-area > .game-return {
  display: flex;
  width: fit-content;
  margin: 0 auto;
}

.game-next-phase,
.game-previous-phase,
.game-diploma-link,
.game-return-map {
  width: clamp(180px, 22vw, 240px) !important;
  min-width: 0;
  min-height: 0;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

#btn-backSeta.game-map-return-fixed {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 2;
}

.game-next-phase:hover,
.game-previous-phase:hover,
.game-diploma-link:hover,
.game-return-map:hover {
  background: transparent;
}

.game-next-phase img,
.game-previous-phase img,
.game-diploma-link img,
.game-return-map img {
  display: block;
  width: 100%;
  height: auto;
}

.game-return:hover {
  transform: translateY(-2px);
  background: #324d61;
}

.game-return:active {
  transform: scale(.97);
}

.game-return:focus-visible {
  outline: 4px solid var(--ai);
  outline-offset: 3px;
}

.game-next-phase.game-return,
.game-previous-phase.game-return,
.game-diploma-link.game-return,
.game-return-map.game-return,
.game-next-phase.game-return:hover,
.game-previous-phase.game-return:hover,
.game-diploma-link.game-return:hover,
.game-return-map.game-return:hover,
.game-next-phase.game-return:active,
.game-previous-phase.game-return:active,
.game-diploma-link.game-return:active,
.game-return-map.game-return:active {
  background: transparent;
  background-color: transparent;
  box-shadow: none;
  border: 0;
  filter: none;
}

@media (max-width: 640px) {
  .game-feedback-dialog {
    padding: 24px 18px 18px;
    border-width: 4px;
    border-radius: 24px;
  }

  .game-completion-dialog {
    width: calc(100vw - 24px);
    max-height: 92vh;
    padding: 10px 14px 18px;
    border-width: 4px;
    border-radius: 24px;
  }

  .game-completion-content {
    gap: 8px;
  }

  .game-completion-banner {
    width: 78%;
    height: clamp(88px, 19vw, 100px);
  }

  .game-completion-robot {
    width: clamp(170px, 46vw, 230px);
    max-height: 36vh;
  }

  .game-completion-action {
    width: min(240px, 72vw);
  }

  .game-tutorial {
    top: 76px;
    right: 10px;
    width: min(260px, calc(100vw - 20px));
    max-height: 54vh;
    padding: 26px 16px 18px;
    border-radius: 20px;
  }

  .game-feedback-layout {
    grid-template-columns: minmax(0, 1fr) 128px;
    gap: 8px;
  }

  .game-feedback-robot {
    max-height: 200px;
  }

  .game-feedback-robot.is-error {
    transform: scale(1.5);
  }

  .game-tutorial-choice {
    grid-template-columns: 64px 1fr;
    gap: 6px;
    padding: 5px 6px;
  }

  .game-tutorial-button {
    height: 42px;
  }

  .game-round {
    grid-template-columns: 1fr 1fr;
  }

  .game-round-layout {
    grid-template-columns: 1fr;
  }

  .game-robot-placeholder {
    transform: none;
  }

  .game-main-layout {
    padding: 104px 18px 40px;
  }

  .game-layout-content .image-card {
    padding: 10px;
  }

  .game-layout-choices .game-choice {
    width: min(42vw, calc((100% - 20px) / 2), 160px);
  }

  .game-layout-choices.has-next-phase,
  .game-layout-choices.has-previous-phase {
    gap: 8px;
  }

  .game-layout-choices.has-next-phase .game-choice,
  .game-layout-choices.has-previous-phase .game-choice {
    width: min(28vw, calc((100% - 60px) / 2), 120px);
  }

  .game-layout-choices.has-next-phase.has-previous-phase .game-choice {
    width: min(28vw, calc((100% - 136px) / 2), 130px);
  }

  .game-layout-choices .game-next-phase,
  .game-layout-choices .game-previous-phase {
    flex-basis: clamp(44px, 12vw, 56px);
    width: clamp(44px, 12vw, 56px) !important;
  }

  .image-card {
    grid-column: 1 / -1;
    grid-row: 1;
  }
}

@media (min-width: 641px) {
  .game-choice {
    align-self: end;
    margin-bottom: clamp(24px, 5vh, 56px);
  }
}

.robo-topo-esquerdo {
  position: absolute;
  top: 15px;
  left: 225px;
  width: 260px;
  height: auto;
  transform: rotate(-8deg);
  z-index: 10;
  animation: aura-fogo 1.4s infinite alternate ease-in-out;
}

@keyframes aura-fogo {
  from {
    filter:
      drop-shadow(0 0 8px rgba(255, 220, 80, 0.8))
      drop-shadow(0 0 18px rgba(255, 80, 0, 0.75));
  }
  to {
    filter:
      drop-shadow(0 0 14px rgba(255, 235, 110, 1))
      drop-shadow(0 0 28px rgba(255, 70, 0, 0.95));
  }
}


#cutsece3 {
  margin: 0;
  min-height: 100vh;
  background: url("../media/ui/Background_inicio.png") 55% center / 133% auto no-repeat;
}

#robo-costas {
  position: fixed;
  bottom: 0;
  left: 8vw;              
  width: 42vw;            
  max-width: 550px;       
  max-height: 82vh;       
  object-fit: contain;
  z-index: 10;            
  pointer-events: none;   
}