.sgo-oracolo {
  --sgo-pink: #ff0059;
  --sgo-red: #f30c00;
  --sgo-yellow: #fff72e;
  --sgo-cream: #ffffbf;
  --sgo-blue: #15a7da;
  --sgo-blue-light: #46c8f2;
  --sgo-green: #00d05a;
  --sgo-black: #050505;
  --sgo-hand-font: "Comic Sans MS", "Comic Sans", "Trebuchet MS", Arial, sans-serif;
  --sgo-title-font: Arial, Helvetica, sans-serif;
  background-image: url("background-computer.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--sgo-black);
  min-height: 100vh;
  overflow: hidden;
  width: 100%;
}

.sgo-oracolo * {
  box-sizing: border-box;
}

.sgo-oracolo button,
.sgo-oracolo input {
  font: inherit;
}

.sgo-oracolo [hidden],
.sgo-is-hidden {
  display: none !important;
}

.sgo-sr-only {
  height: 1px;
  margin: -1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.sgo-oracolo__panel {
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  max-height: 100vh;
  max-width: 1920px;
  min-height: 720px;
  position: relative;
  width: min(100vw, 1920px);
}

.sgo-oracolo__panel::after {
  background: rgba(0, 0, 0, 0.24);
  content: "";
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity 180ms ease;
  z-index: 2;
}

.sgo-oracolo[data-state="answered"] .sgo-oracolo__panel::after {
  opacity: 1;
}

.sgo-oracolo__content {
  left: 15.15%;
  position: absolute;
  top: 14.7%;
  width: 40%;
  z-index: 2;
}

.sgo-oracolo h2 {
  color: var(--sgo-cream);
  font-family: var(--sgo-title-font);
  font-size: clamp(44px, 4.95vw, 96px);
  font-weight: 1000;
  letter-spacing: 0;
  line-height: 0.88;
  margin: 0 0 10px;
  text-shadow: 0.018em 0 0 var(--sgo-cream), -0.018em 0 0 var(--sgo-cream);
}

.sgo-oracolo h2 span {
  display: inline;
}

.sgo-subtitle {
  color: var(--sgo-cream);
  font-family: var(--sgo-title-font);
  font-size: clamp(14px, 1.1vw, 21px);
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1;
  margin: 0 0 42px;
  white-space: nowrap;
}

.sgo-form {
  align-items: center;
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 1fr) 148px;
  margin-bottom: 20px;
}

.sgo-form input {
  background: var(--sgo-cream);
  border: 0;
  border-radius: 999px;
  color: var(--sgo-black);
  font-family: var(--sgo-hand-font);
  font-size: clamp(18px, 1.36vw, 26px);
  font-weight: 900;
  height: 82px;
  letter-spacing: 0;
  min-width: 0;
  outline: 0;
  padding: 0 38px;
  text-transform: uppercase;
}

.sgo-form input::placeholder {
  color: var(--sgo-black);
  opacity: 1;
}

.sgo-form button {
  background: var(--sgo-blue);
  border: 0;
  border-radius: 999px;
  color: var(--sgo-cream);
  cursor: pointer;
  font-family: var(--sgo-title-font);
  font-size: clamp(34px, 2.9vw, 56px);
  font-weight: 950;
  height: 82px;
  letter-spacing: 0;
  line-height: 1;
  padding: 0 18px 8px;
  transition: background-color 150ms ease, filter 150ms ease, transform 150ms ease;
}

.sgo-form button:hover,
.sgo-form button:focus-visible {
  background: var(--sgo-blue-light);
  filter: brightness(1.08);
  outline: 0;
  transform: translateY(-2px);
}

.sgo-form button:active {
  background: var(--sgo-green);
  transform: translateY(1px);
}

.sgo-divider {
  color: var(--sgo-cream);
  font-family: var(--sgo-hand-font);
  font-size: clamp(17px, 1.36vw, 26px);
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 28px;
  text-align: center;
}

.sgo-suggestions {
  display: grid;
  gap: 30px;
}

.sgo-suggestions button {
  background: var(--sgo-yellow);
  border: 0;
  border-radius: 999px;
  color: var(--sgo-black);
  cursor: pointer;
  font-family: var(--sgo-hand-font);
  font-size: clamp(17px, 1.36vw, 26px);
  font-weight: 900;
  height: 80px;
  letter-spacing: 0;
  line-height: 1.05;
  overflow: hidden;
  padding: 0 40px;
  text-align: left;
  text-transform: uppercase;
  transition: background-color 150ms ease, filter 150ms ease;
  white-space: nowrap;
}

.sgo-form input:disabled,
.sgo-form button:disabled,
.sgo-suggestions button:disabled {
  opacity: 1;
  -webkit-text-fill-color: currentColor;
}

.sgo-suggestions button:hover,
.sgo-suggestions button:focus-visible {
  filter: brightness(1.13);
  outline: 0;
}

.sgo-suggestions button.is-active,
.sgo-suggestions button.is-active:focus-visible {
  background: var(--sgo-blue);
}

.sgo-answer,
.sgo-limit {
  bottom: 10.6%;
  position: absolute;
  right: 18%;
  width: 408px;
  z-index: 4;
}

.sgo-answer__bubble {
  background: var(--sgo-cream);
  border: 7px solid var(--sgo-black);
  border-radius: 76px;
  min-height: 350px;
  padding: 58px 54px 48px;
  width: 100%;
}

.sgo-answer__text,
.sgo-limit p {
  color: var(--sgo-black);
  font-family: var(--sgo-hand-font);
  font-size: clamp(20px, 1.42vw, 27px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0;
  text-transform: uppercase;
}

.sgo-actions {
  display: grid;
  gap: 12px;
  grid-template-columns: 58px 58px 1fr;
  margin-top: 18px;
}

.sgo-actions button {
  background: var(--sgo-blue);
  border: 0;
  border-radius: 999px;
  color: var(--sgo-black);
  cursor: pointer;
  font-family: var(--sgo-hand-font);
  font-size: 23px;
  font-weight: 900;
  height: 54px;
  letter-spacing: 0;
}

.sgo-feedback-button {
  align-items: center;
  display: inline-flex;
  justify-content: center;
}

.sgo-feedback-button svg {
  display: block;
  fill: var(--sgo-black);
  height: 30px;
  width: 30px;
}

.sgo-feedback-button.is-selected {
  background: var(--sgo-yellow);
}

.sgo-again {
  background: var(--sgo-yellow) !important;
  font-size: 20px !important;
  padding: 0 18px;
  text-transform: uppercase;
  white-space: nowrap;
}

.sgo-actions small {
  align-self: center;
  color: var(--sgo-cream);
  font-family: var(--sgo-hand-font);
  font-size: 13px;
  grid-column: 1 / -1;
}

.sgo-answer__debug {
  background: var(--sgo-yellow);
  border-radius: 12px;
  color: var(--sgo-black);
  font: 700 13px/1.3 Arial, Helvetica, sans-serif;
  margin: 16px 0 0;
  padding: 10px 12px;
  text-transform: none;
}

.sgo-sound {
  align-items: center;
  background: var(--sgo-yellow);
  border: 0;
  border-radius: 999px;
  color: var(--sgo-black);
  cursor: pointer;
  display: inline-flex;
  font: 900 13px/1 Arial, Helvetica, sans-serif;
  gap: 6px;
  min-height: 34px;
  padding: 8px 12px;
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 5;
}

.sgo-sound[aria-pressed="true"] {
  background: var(--sgo-green);
}

@media (max-width: 900px), (orientation: portrait) {
  .sgo-oracolo {
    background-color: var(--sgo-red);
    background-image:
      url("background-mobile.png"),
      linear-gradient(to bottom, var(--sgo-pink) 0 calc(12svh + 54vw), var(--sgo-red) calc(12svh + 54vw) 100%);
    background-position: center 12svh, center top;
    background-repeat: no-repeat, no-repeat;
    background-size: 102vw auto, 100% 100%;
    min-height: 100svh;
  }

  .sgo-oracolo__panel {
    aspect-ratio: auto;
    min-height: 100svh;
    width: 100vw;
  }

  .sgo-oracolo__content {
    left: 7.5vw;
    top: 3.2svh;
    width: 85vw;
  }

  .sgo-oracolo h2 {
    font-size: clamp(42px, 14vw, 86px);
    line-height: 0.9;
    margin-bottom: 7px;
    max-width: 86vw;
  }

  .sgo-oracolo h2 span {
    display: block;
  }

  .sgo-subtitle {
    font-size: clamp(12px, 3.05vw, 15px);
    margin-bottom: min(31svh, 260px);
  }

  .sgo-form {
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) 82px;
    margin-bottom: 9px;
  }

  .sgo-form input {
    font-size: clamp(12px, 3.7vw, 18px);
    height: 46px;
    padding: 0 18px;
  }

  .sgo-form button {
    font-size: 34px;
    height: 54px;
    padding-bottom: 4px;
  }

  .sgo-divider {
    font-size: clamp(11px, 3.2vw, 16px);
    margin-bottom: 9px;
  }

  .sgo-suggestions {
    gap: 9px;
  }

  .sgo-suggestions button {
    font-size: clamp(12px, 3.6vw, 18px);
    height: 46px;
    line-height: 1.02;
    padding: 0 20px;
  }

  .sgo-answer,
  .sgo-limit {
    bottom: auto;
    left: 7.5vw;
    right: auto;
    top: 28svh;
    width: 85vw;
  }

  .sgo-answer__bubble {
    border-width: 4px;
    border-radius: 34px;
    min-height: 136px;
    padding: 24px 28px 20px;
  }

  .sgo-answer__text,
  .sgo-limit p {
    font-size: clamp(13px, 4vw, 19px);
    line-height: 1.08;
  }

  .sgo-actions {
    gap: 8px;
    grid-template-columns: 38px 38px 1fr;
    margin-top: 10px;
  }

  .sgo-actions button {
    font-size: 15px;
    height: 36px;
  }

  .sgo-feedback-button svg {
    height: 22px;
    width: 22px;
  }

  .sgo-again {
    font-size: 11px !important;
    padding: 0 10px;
  }

  .sgo-actions small {
    display: none;
  }

  .sgo-sound {
    right: 10px;
    top: 10px;
  }
}

@media (max-width: 540px) {
  .sgo-oracolo__content {
    top: 2.6svh;
  }

  .sgo-oracolo h2 {
    font-size: clamp(34px, 13vw, 58px);
    margin-bottom: 6px;
  }

  .sgo-subtitle {
    margin-bottom: min(30svh, 248px);
  }

  .sgo-suggestions button {
    white-space: normal;
  }

  .sgo-answer,
  .sgo-limit {
    bottom: auto;
    left: 7.5vw;
    right: auto;
    top: 28svh;
    width: 85vw;
  }
}
