.palla8-page {
  color-scheme: dark;
  --palla-bg: #100d13;
  --palla-line: #4a3240;
  --palla-red: #ff626b;
  --cream: #fff1df;
  --dim: #c9b9be;
  font-family: system-ui, sans-serif;
  background: var(--palla-bg);
  color: var(--cream);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
.palla8-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.palla8-page a:focus-visible,
.palla8-page button:focus-visible {
  outline: 3px solid #fff1c8;
  outline-offset: 5px;
}
.layout,
.glitter-controls {
  width: min(1120px, calc(100% - 3rem));
  margin-inline: auto;
}
.strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding-block: clamp(2rem, 7vw, 6rem);
  flex: 1;
}
.eyebrow,
.strip,
.label,
.aside-note {
  font-family: ui-monospace, monospace;
}
.eyebrow,
.strip,
.label {
  font-size: 0.73rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}
.eyebrow {
  color: var(--palla-red);
  margin: 0 0 1.05rem;
}
.eyebrow span {
  padding-right: 0.4rem;
}
.story h1 {
  margin: 0;
  line-height: 0.96;
  letter-spacing: -0.08em;
  font-weight: 850;
  font-size: clamp(4.4rem, 9vw, 8rem);
}
.story h1 em {
  color: var(--palla-red);
  font-style: normal;
}
.lede {
  font-size: clamp(1.25rem, 2.1vw, 1.8rem);
  line-height: 1.25;
  margin: 1.25rem 0 0.65rem;
  font-weight: 720;
  letter-spacing: -0.035em;
}
.how {
  color: var(--dim);
  max-width: 39ch;
  font-size: 1.06rem;
  line-height: 1.55;
  margin: 0;
}
#scuoti {
  margin-top: 1.45rem;
  min-height: 3.15rem;
  border: 2px solid #ff8e83;
  background: var(--palla-red);
  color: #201016;
  font:
    800 1rem/1.2 system-ui,
    sans-serif;
  padding: 0.8rem 1.2rem;
  box-shadow: 4px 4px 0 #77313f;
  cursor: pointer;
}
#scuoti span {
  margin-right: 0.45rem;
}
#scuoti:hover:not([aria-disabled='true']) {
  background: #ff827e;
}
#scuoti:active:not([aria-disabled='true']) {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #77313f;
}
#scuoti:disabled,
#scuoti[aria-disabled='true'] {
  cursor: wait;
}
.cabinet {
  min-width: 0;
  border: 1px solid #78414d;
  background: #19121a;
  box-shadow: 5px 5px 0 #33212c;
}
.strip {
  border-bottom: 1px solid var(--palla-line);
  padding: 0.8rem 1rem;
  color: var(--dim);
  font-size: 0.66rem;
}
.strip i {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--palla-red);
  margin-right: 0.4rem;
}
.sky {
  display: grid;
  align-items: center;
  position: relative;
  isolation: isolate;
  background-color: #140f17;
  background-image: radial-gradient(#4c2b38 1px, transparent 1px);
  background-size: 16px 16px;
}
.orb {
  width: min(80%, 424px);
  margin-inline-start: 2%;
  position: relative;
  z-index: 1;
}
.orb img {
  display: block;
  width: 100%;
  height: auto;
}
.palla8-avatar {
  position: absolute;
  width: min(37%, 190px);
  height: auto;
  inset-inline-end: 1.5%;
  bottom: 3%;
  filter: drop-shadow(0 0 11px #592837);
}
.window-text {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff1df;
  font:
    bold clamp(1.1rem, 3vw, 2rem) / 1 ui-monospace,
    monospace;
  text-shadow: 2px 2px #89354e;
}
.readout {
  border-top: 1px solid var(--palla-line);
  padding: 1rem clamp(1rem, 3vw, 1.75rem) 1.2rem;
}
.label {
  color: var(--palla-red);
  margin: 0 0 0.3rem;
  font-size: 0.65rem;
}
#risposta {
  margin: 0;
  min-height: 2.7em;
  line-height: 1.35;
  font-weight: 650;
  font-size: clamp(1.08rem, 2vw, 1.4rem);
  overflow-wrap: anywhere;
}
.aside-note {
  font-size: 0.75rem;
  color: var(--dim);
  line-height: 1.35;
  margin: 1rem 0 0;
}
.glitter-controls {
  position: relative;
  z-index: 1;
  text-align: right;
  padding-bottom: 0.8rem;
}
.glitter-toggle {
  background: #210f19;
  color: var(--cream);
  border: 1px solid #884657;
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  min-height: 44px;
}
.glitter-toggle[aria-pressed='true'] .icon {
  color: var(--palla-red);
}
.palla8-page .footer-rose {
  text-decoration: none;
}
.palla8-page .footer-rose span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
@media (prefers-reduced-motion: reduce) {
  :root:has(.palla8-page) {
    scroll-behavior: auto;
  }
  .palla8-page .footer-rose img {
    transition: none;
  }
  .palla8-page .footer-rose:hover img {
    transform: none;
  }
}
@keyframes shake {
  20%,
  60% {
    transform: translateX(-4px) rotate(-4deg);
  }
  40%,
  80% {
    transform: translateX(4px) rotate(4deg);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .orb.is-rolling {
    animation: shake 0.52s ease-in-out;
  }
}
@media (max-width: 700px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding-block: 1.25rem;
  }
  .layout,
  .glitter-controls {
    width: min(100% - 2rem, 34rem);
  }
  .story h1 {
    font-size: clamp(3.9rem, 15vw, 5.8rem);
  }
  .eyebrow {
    margin-bottom: 0.6rem;
  }
  .lede {
    margin-top: 0.65rem;
  }
  .orb {
    width: min(73%, 300px);
  }
  .readout {
    padding-block: 0.75rem;
    scroll-margin-block: 12px;
  }
  .how {
    font-size: 1rem;
  }
  .aside-note {
    margin-top: 0.6rem;
  }
  #scuoti {
    margin-top: 0.9rem;
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
