@font-face {
  font-family: 'Tenor Sans';
  src: url('/assets/fonts/tenorsans-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}

@font-face {
  font-family: 'DM Sans';
  src: url('/assets/fonts/dmsans-texto.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}

@font-face {
  font-family: 'Tenor Fallback';
  src: local('Arial');
  size-adjust: 107%;
  ascent-override: 86%;
  descent-override: 23.4%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'DM Fallback';
  src: local('Arial');
  size-adjust: 99.4%;
  ascent-override: 99.8%;
  descent-override: 31.2%;
  line-gap-override: 0%;
}

:root {
  --sg-night: #13112b;
  --sg-night-2: #1a1740;
  --sg-night-3: #231f55;
  --sg-ink: #e9e6f7;
  --sg-soft: #bcb7dd;
  --sg-glint: #7fe3f0;
  --sg-glint-deep: #0e0c22;
  --sg-blush: #f2a7c3;
  --sg-display: 'Tenor Sans', 'Tenor Fallback', Georgia, serif;
  --sg-text: 'DM Sans', 'DM Fallback', system-ui, sans-serif;
  --sg-curve: 14px;
  --sg-gutter: clamp(16px, 4vw, 40px);
  --sg-ease: cubic-bezier(0.19, 0.8, 0.26, 1);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--sg-night);
  color: var(--sg-ink);
  font-family: var(--sg-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

a {
  color: var(--sg-glint);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--sg-glint);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  font-family: var(--sg-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 4.1rem);
}

h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
}

h3 {
  font-size: 1.3rem;
}

p {
  margin: 0 0 1em;
}

.sg-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.sg-skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 60;
  padding: 0.7rem 1rem;
  background: var(--sg-glint);
  color: var(--sg-glint-deep);
  border-radius: var(--sg-curve);
}

.sg-skip:focus {
  top: 1rem;
}

.sg-wrap {
  width: 100%;
  max-width: 74rem;
  margin-inline: auto;
  padding-inline: var(--sg-gutter);
}

/* Botões: o raio dos botões não segue o dos cartões de propósito — 14px lê-se como "tocável" sem virar pílula. */
.sg-press {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  border: 2.5px solid var(--sg-glint);
  border-radius: var(--sg-curve);
  font: 600 1rem/1.2 var(--sg-text);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--sg-ease), box-shadow 0.2s var(--sg-ease), background-color 0.2s;
}

.sg-press--fill {
  background: var(--sg-glint);
  color: var(--sg-glint-deep);
}

.sg-press--line {
  background: transparent;
  color: var(--sg-ink);
}

.sg-press:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 0 rgba(127, 227, 240, 0.45);
  text-decoration: none;
}

.sg-press--line:hover {
  background: rgba(127, 227, 240, 0.1);
}

.sg-press:active {
  transform: translateY(1px);
  box-shadow: none;
}

.sg-press--small {
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  font-size: 0.93rem;
}

.sg-press[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.sg-top {
  position: relative;
  z-index: 30;
  background: var(--sg-night);
}

.sg-top__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.sg-top__brand {
  font-family: var(--sg-display);
  font-size: 1.5rem;
  color: var(--sg-ink);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.sg-top__brand em {
  font-style: normal;
  color: var(--sg-glint);
}

.sg-top__toggle {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--sg-ink);
  border: 2.5px solid var(--sg-glint);
  border-radius: var(--sg-curve);
  cursor: pointer;
}

.sg-top__toggle svg {
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  fill: none;
}

.sg-top__cross {
  display: none;
}

.sg-top__links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sg-top__links a {
  display: inline-block;
  padding: 0.7rem 0.1rem;
  color: var(--sg-ink);
  text-decoration: none;
  font-weight: 500;
}

.sg-top__links a:hover,
.sg-top__links a[aria-current='page'] {
  color: var(--sg-glint);
}

@media (max-width: 860px) {
  .sg-top__toggle {
    display: inline-flex;
  }

  .sg-top__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0.5rem var(--sg-gutter) 1.25rem;
    background: var(--sg-night-2);
  }

  .sg-menu-open .sg-top__links {
    display: block;
  }

  .sg-menu-open .sg-top__bars {
    display: none;
  }

  .sg-menu-open .sg-top__cross {
    display: block;
  }

  .sg-top__links ul {
    flex-direction: column;
  }

  .sg-top__links a {
    display: block;
    padding: 0.8rem 0;
  }
}

.sg-dawn {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 9vw, 7rem) 0 clamp(3.5rem, 9vw, 6.5rem);
  text-align: center;
  isolation: isolate;
}

.sg-dawn__sky {
  position: absolute;
  inset: -10% 0 0;
  z-index: -1;
  pointer-events: none;
}

.sg-dawn__sky svg {
  width: 100%;
  height: 100%;
}

.sg-dawn__kicker {
  display: inline-block;
  margin-bottom: 1.4rem;
  padding: 0.35rem 0.9rem;
  border: 2px solid rgba(127, 227, 240, 0.55);
  border-radius: 999px;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sg-soft);
}

.sg-dawn__title {
  margin-inline: auto;
}

.sg-dawn__line {
  display: block;
}

.sg-dawn__line--glint {
  color: var(--sg-glint);
}

.sg-dawn__lead {
  max-width: 38em;
  margin: 0 auto 2rem;
  font-size: 1.14rem;
  color: var(--sg-soft);
}

.sg-dawn__acts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

.sg-dawn__facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.6rem;
  margin: 2.2rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
  color: var(--sg-soft);
}

.sg-dawn__facts li::before {
  content: '';
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.5rem;
  vertical-align: 0.15em;
  background: var(--sg-glint);
  transform: rotate(45deg);
}

.sg-band {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.sg-band--deep {
  background: var(--sg-night-2);
}

.sg-band--tight {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.sg-band__head {
  max-width: 44rem;
  margin-bottom: 2.2rem;
}

.sg-band__head--mid {
  margin-inline: auto;
  text-align: center;
}

.sg-band__head p {
  color: var(--sg-soft);
}

.sg-orbit {
  position: relative;
  width: 100%;
  background: var(--sg-night-3);
  border-radius: 22px;
  padding: 0.9rem;
}

.sg-orbit__hud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.2rem;
  margin-bottom: 0.8rem;
}

.sg-orbit__name {
  margin: 0;
  font-family: var(--sg-display);
  font-size: 1.25rem;
  flex: 1 1 12rem;
}

.sg-orbit__stat {
  margin: 0;
  font-variant-numeric: tabular-nums;
  color: var(--sg-soft);
}

.sg-orbit__stat b {
  color: var(--sg-ink);
  font-weight: 600;
}

.sg-orbit__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
}

.sg-orbit__acts svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sg-orbit__acts [aria-pressed='false'] .sg-orbit__wave {
  display: none;
}

/* Height is capped by the viewport so the whole sky fits on a phone held sideways. */
.sg-orbit__stage {
  position: relative;
  aspect-ratio: 16 / 10;
  max-height: calc(100svh - 96px);
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #0d0b22;
}

@media (max-width: 600px) {
  .sg-orbit {
    padding: 0.6rem;
    border-radius: 16px;
  }

  .sg-orbit__acts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
  }

  .sg-orbit__acts .sg-press {
    padding: 0.4rem 0.25rem;
    gap: 0.25rem;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .sg-orbit__acts svg {
    flex: none;
    width: 16px;
    height: 16px;
  }

  .sg-orbit__stage {
    aspect-ratio: 4 / 3;
  }
}

.sg-orbit__stage canvas {
  width: 100%;
  height: 100%;
  touch-action: manipulation;
  cursor: pointer;
}

.sg-orbit__msg {
  position: absolute;
  left: 50%;
  bottom: 0.6rem;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 1.2rem);
  margin: 0;
  padding: 0.35rem 0.8rem;
  border-radius: 10px;
  background: rgba(13, 11, 34, 0.82);
  font-size: 0.92rem;
  text-align: center;
  pointer-events: none;
}

.sg-orbit__msg:empty {
  display: none;
}

.sg-orbit__plain {
  display: none;
  padding: 1rem;
}

.sg-orbit.is-plain .sg-orbit__plain {
  display: block;
}

.sg-veil {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow-y: auto;
  padding: clamp(0.8rem, 3vw, 1.6rem);
  background: rgba(13, 11, 34, 0.93);
}

.sg-veil[hidden] {
  display: none;
}

.sg-veil h3 {
  margin-bottom: 0.3rem;
}

.sg-veil__note {
  margin-bottom: 0.9rem;
  color: var(--sg-soft);
  font-size: 0.95rem;
}

.sg-marks {
  display: flex;
  gap: 2px;
  min-height: 18px;
}

.sg-mark {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: rgba(233, 230, 247, 0.55);
  stroke-width: 1.6;
}

.sg-mark.is-on {
  fill: var(--sg-glint);
  stroke: var(--sg-glint);
}

.sg-verdict {
  display: grid;
  gap: 0.8rem;
  max-width: 30rem;
  margin: 0 auto;
  text-align: center;
}

.sg-verdict .sg-marks {
  justify-content: center;
}

.sg-verdict .sg-mark {
  width: 34px;
  height: 34px;
}

.sg-verdict dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem 1rem;
  margin: 0;
  text-align: left;
}

.sg-verdict dl div {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.35rem 0.6rem;
  background: var(--sg-night-2);
  border-radius: 10px;
}

.sg-verdict dt {
  color: var(--sg-soft);
}

.sg-verdict dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.sg-verdict__best {
  color: var(--sg-glint);
  font-weight: 600;
}

.sg-verdict__acts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.sg-tally {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 2rem;
  margin: 1.1rem 0 0;
  color: var(--sg-soft);
}

.sg-tally b {
  color: var(--sg-glint);
  font-family: var(--sg-display);
  font-weight: 400;
  font-size: 1.35rem;
}

.sg-keys {
  margin-top: 0.8rem;
  font-size: 0.92rem;
  color: var(--sg-soft);
}

.sg-keys kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0 0.35em;
  border: 1.5px solid rgba(233, 230, 247, 0.4);
  border-radius: 6px;
  font: 600 0.85em/1.6 var(--sg-text);
  text-align: center;
  color: var(--sg-ink);
}

.sg-steps {
  counter-reset: sg-step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr));
  gap: 1.4rem 1.8rem;
  margin: 0 0 2.5rem;
  padding: 0;
  list-style: none;
}

.sg-steps li {
  position: relative;
  padding-top: 3.4rem;
}

.sg-steps li::before {
  counter-increment: sg-step;
  content: counter(sg-step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--sg-display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--sg-glint);
}

.sg-steps h3 {
  margin-bottom: 0.3rem;
}

.sg-steps p {
  color: var(--sg-soft);
  margin: 0;
}

.sg-ledger {
  width: 100%;
  overflow-x: auto;
  border-radius: 16px;
  background: var(--sg-night-2);
}

.sg-band--deep .sg-ledger {
  background: var(--sg-night-3);
}

.sg-ledger table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
}

.sg-ledger caption {
  padding: 1rem 1.1rem 0.4rem;
  text-align: left;
  font-family: var(--sg-display);
  font-size: 1.1rem;
}

.sg-ledger th,
.sg-ledger td {
  padding: 0.75rem 1.1rem;
  text-align: left;
  vertical-align: top;
}

.sg-ledger thead th {
  border-bottom: 2px solid rgba(127, 227, 240, 0.5);
  color: var(--sg-soft);
  font-weight: 600;
  font-size: 0.92rem;
}

.sg-ledger tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.04);
}

.sg-ledger tbody th {
  font-weight: 600;
}

.sg-ledger__note {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  color: var(--sg-soft);
}

/* Masonry em três colunas preenchidas à vez (1, 2, 3, 4…): a primeira linha lê-se por ordem; em ecrã estreito as colunas dissolvem-se e manda o `order`. */
.sg-myths {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
}

.sg-myths__col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

@media (max-width: 900px) {
  .sg-myths {
    flex-direction: column;
    align-items: stretch;
  }

  .sg-myths__col {
    display: contents;
  }
}

.sg-myth {
  margin: 0;
  padding: 1.3rem 1.3rem 1.2rem;
  background: var(--sg-night-2);
  border-radius: 20px;
}

.sg-band--deep .sg-myth {
  background: var(--sg-night-3);
}

.sg-myth--tall {
  padding-bottom: 1.8rem;
}

.sg-myth__fig {
  overflow: hidden;
  margin: 0 0 0.9rem;
  border-radius: 14px;
  background: #0d0b22;
}

.sg-myth__fig svg {
  width: 100%;
  height: auto;
}

.sg-myth__lines {
  stroke: var(--sg-glint);
  stroke-width: 0.07;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.sg-myth__dots {
  fill: #f4f2ff;
}

.sg-myth__n {
  display: block;
  font-family: var(--sg-display);
  color: var(--sg-glint);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}

.sg-myth h3 {
  margin: 0.15rem 0 0.4rem;
}

.sg-myth p {
  margin: 0;
  color: var(--sg-soft);
}

.sg-myth__meta {
  margin-top: 0.7rem !important;
  font-size: 0.9rem;
}

.sg-maker {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2rem 3rem;
  align-items: start;
}

.sg-maker__quote {
  margin: 0;
  font-family: var(--sg-display);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.35;
  color: var(--sg-ink);
}

.sg-maker__quote span {
  color: var(--sg-glint);
}

.sg-maker__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.8rem;
}

.sg-maker__list li {
  padding: 0.9rem 1.1rem;
  background: var(--sg-night-2);
  border-radius: 16px;
}

.sg-maker__list b {
  display: block;
  color: var(--sg-ink);
}

.sg-maker__list span {
  color: var(--sg-soft);
}

@media (max-width: 760px) {
  .sg-maker {
    grid-template-columns: 1fr;
  }
}

.sg-ask {
  width: 100%;
  display: grid;
  gap: 0.6rem;
}

.sg-ask__item {
  background: var(--sg-night-2);
  border-radius: 16px;
}

.sg-band--deep .sg-ask__item {
  background: var(--sg-night-3);
}

.sg-ask__q {
  margin: 0;
  font-family: var(--sg-text);
  font-size: 1.05rem;
  font-weight: 600;
}

.sg-ask__q button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 56px;
  padding: 0.9rem 1.1rem;
  background: none;
  border: 0;
  color: var(--sg-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.sg-ask__sign {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 2.5px solid var(--sg-glint);
  border-radius: 12px;
  transition: transform 0.25s var(--sg-ease);
}

.sg-ask__sign svg {
  stroke: var(--sg-glint);
  stroke-width: 2.4;
  fill: none;
  stroke-linecap: round;
}

.sg-ask__q button[aria-expanded='true'] .sg-ask__sign {
  transform: rotate(45deg);
}

.sg-ask__a {
  padding: 0 1.1rem 1rem;
  color: var(--sg-soft);
}

.sg-ask__a p {
  margin: 0;
}

.sg-mail {
  position: relative;
  overflow: hidden;
  padding: clamp(1.8rem, 5vw, 3rem);
  background: var(--sg-night-3);
  border-radius: 26px;
  text-align: center;
}

.sg-mail h2 {
  margin-bottom: 0.5rem;
}

.sg-mail p {
  max-width: 40rem;
  margin-inline: auto;
  color: var(--sg-soft);
}

.sg-mail__addr {
  font-family: var(--sg-display);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
}

.sg-mail__addr a {
  color: var(--sg-glint);
}

.sg-mail__deco {
  position: absolute;
  inset: -20% -10% auto auto;
  width: 50%;
  opacity: 0.35;
  pointer-events: none;
}

.sg-mail__deco svg {
  width: 100%;
  height: auto;
}

.sg-foot {
  padding: 3.5rem 0 2rem;
  background: #0e0c22;
  color: var(--sg-soft);
  font-size: 0.97rem;
}

.sg-foot__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem;
}

.sg-foot__brand {
  font-family: var(--sg-display);
  font-size: 1.4rem;
  color: var(--sg-ink);
}

.sg-foot__brand em {
  font-style: normal;
  color: var(--sg-glint);
}

.sg-foot__label {
  margin-bottom: 0.5rem;
  color: var(--sg-ink);
  font-weight: 600;
}

.sg-foot ul {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.sg-foot li a {
  display: inline-block;
  padding: 0.3rem 0;
  color: var(--sg-soft);
}

.sg-foot li a:hover {
  color: var(--sg-glint);
}

.sg-foot__contact a {
  color: var(--sg-glint);
}

.sg-foot__base {
  margin-top: 2.5rem;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .sg-foot__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .sg-foot__grid {
    grid-template-columns: 1fr;
  }
}

.sg-note {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.4rem;
  max-width: 46rem;
  margin-inline: auto;
  padding: 1rem 1.2rem;
  background: var(--sg-night-3);
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

.sg-note[hidden] {
  display: none;
}

.sg-note p {
  flex: 1 1 20rem;
  margin: 0;
  font-size: 0.95rem;
}

.sg-note a {
  color: var(--sg-glint);
  text-decoration: underline;
}

.sg-note__acts {
  display: flex;
  gap: 0.5rem;
}

.sg-lift {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--sg-night-3);
  color: var(--sg-glint);
  border: 2.5px solid var(--sg-glint);
  border-radius: var(--sg-curve);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s var(--sg-ease), visibility 0.25s;
}

.sg-lift.is-shown {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.sg-lift svg {
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sg-page-top {
  position: relative;
  overflow: hidden;
  padding: 3rem 0 2.2rem;
  isolation: isolate;
}

.sg-page-top__sky {
  position: absolute;
  inset: -40% 0 -20%;
  z-index: -1;
  pointer-events: none;
}

.sg-page-top__sky svg {
  width: 100%;
  height: 100%;
}

.sg-trail ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0 0 1.2rem;
  padding: 0;
  list-style: none;
  font-size: 0.93rem;
  color: var(--sg-soft);
}

.sg-trail a {
  color: var(--sg-soft);
}

.sg-trail__sep {
  margin-left: 0.3rem;
  color: var(--sg-glint);
}

.sg-page-top h1 {
  max-width: 20em;
  margin-bottom: 0.4rem;
}

.sg-page-top__date {
  color: var(--sg-soft);
  margin: 0;
}

.sg-prose {
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

.sg-prose p,
.sg-prose ul,
.sg-prose h2,
.sg-prose h3,
.sg-prose .sg-idcard {
  max-width: 46rem;
}

.sg-prose h2 {
  margin-top: 2.2rem;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
}

.sg-prose h3 {
  margin-top: 1.4rem;
}

.sg-prose ul {
  padding-left: 1.2rem;
}

.sg-prose li {
  margin-bottom: 0.4rem;
}

.sg-prose .sg-ledger {
  margin: 1rem 0 1.4rem;
}

.sg-prose .sg-ledger table {
  min-width: 40rem;
}

.sg-idcard {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0 1.4rem;
  padding: 1.1rem 1.2rem;
  background: var(--sg-night-2);
  border-radius: 16px;
}

.sg-idcard div {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 0.8rem;
}

.sg-idcard dt {
  color: var(--sg-soft);
}

.sg-idcard dd {
  margin: 0;
}

@media (max-width: 560px) {
  .sg-idcard div {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
}

.sg-duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin: 1.4rem 0;
}

.sg-duo > div {
  padding: 1.2rem 1.3rem;
  background: var(--sg-night-2);
  border-radius: 18px;
}

.sg-duo h2,
.sg-duo h3 {
  margin-top: 0;
  font-size: 1.25rem;
}

.sg-duo p {
  margin: 0;
  color: var(--sg-soft);
}

.sg-atlas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  padding-bottom: 4rem;
}

.sg-atlas section {
  padding: 1.2rem 1.3rem;
  background: var(--sg-night-2);
  border-radius: 18px;
}

.sg-atlas h2 {
  font-size: 1.25rem;
}

.sg-atlas ul {
  margin: 0;
  padding-left: 1.1rem;
}

.sg-atlas li {
  padding: 0.25rem 0;
}

.sg-lost {
  padding: 3rem 0 5rem;
  text-align: center;
}

.sg-lost p {
  max-width: 34rem;
  margin-inline: auto;
  color: var(--sg-soft);
}

@keyframes sg-rise {
  from {
    transform: translateY(26px);
  }
  to {
    transform: none;
  }
}

@keyframes sg-fade-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes sg-draw {
  to {
    stroke-dashoffset: 0;
  }
}

.js [data-sg-rise] {
  animation: sg-fade-up 0.9s var(--sg-ease) both;
  animation-delay: calc(var(--sg-d, 0) * 1ms);
}

.js .sg-dawn__line {
  animation: sg-rise 1s var(--sg-ease) both;
  animation-delay: calc(var(--sg-d, 0) * 1ms);
}

.sg-dawn__sky .sg-trace {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: sg-draw 2.4s 0.4s var(--sg-ease) forwards;
}

.js [data-sg-in] {
  opacity: 0;
  transition: opacity 0.9s var(--sg-ease), transform 1s var(--sg-ease);
  transition-delay: calc(var(--sg-i, 0) * 110ms);
}

.js [data-sg-in='left'] {
  transform: translate3d(-56px, 0, 0);
}

.js [data-sg-in='right'] {
  transform: translate3d(56px, 0, 0);
}

.js [data-sg-in='up'] {
  transform: translate3d(0, 44px, 0);
}

.js [data-sg-in='far'] {
  transform: scale(0.88);
}

.js [data-sg-in='near'] {
  transform: scale(1.08);
}

.js [data-sg-in].is-in {
  opacity: 1;
  transform: none;
}

main {
  overflow-x: clip;
}

@media (max-width: 600px) {
  .js [data-sg-in='left'] {
    transform: translate3d(-24px, 0, 0);
  }

  .js [data-sg-in='right'] {
    transform: translate3d(24px, 0, 0);
  }
}

[data-sg-drift] {
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js [data-sg-in] {
    opacity: 1;
    transform: none;
  }

  .sg-dawn__sky .sg-trace {
    stroke-dashoffset: 0;
  }

  [data-sg-drift] {
    transform: none !important;
  }
}

.sg-orbit {
  background: linear-gradient(135deg, #2a1d63 0%, #1d1650 45%, #3a1860 100%);
  box-shadow: 0 0 0 2px rgba(255, 95, 210, 0.25), 0 20px 60px -20px rgba(181, 123, 255, 0.55);
}

.sg-orbit__stat {
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(13, 11, 34, 0.55);
}

.sg-orbit__stat--streak b {
  color: #ff8ae0;
}

.sg-orbit__stat--clock b {
  color: #fff27a;
}

.sg-orbit__stat.is-pop {
  animation: sg-pop 0.45s var(--sg-ease);
}

.sg-orbit__acts [aria-pressed='true'] {
  background: linear-gradient(90deg, rgba(255, 95, 210, 0.28), rgba(127, 227, 240, 0.22));
  border-color: #ff8ae0;
}

.sg-orbit__acts [data-sg-g-act='music'][aria-pressed='false'] .sg-orbit__wave,
.sg-orbit__acts [data-sg-g-act='sound'][aria-pressed='false'] .sg-orbit__wave {
  display: none;
}

.sg-orbit__msg {
  background: rgba(13, 11, 34, 0.86);
  border: 1.5px solid rgba(255, 95, 210, 0.45);
}

.sg-veil {
  background: radial-gradient(120% 90% at 20% 0%, rgba(255, 79, 216, 0.22), transparent 60%), radial-gradient(90% 90% at 100% 100%, rgba(127, 227, 240, 0.16), transparent 60%), rgba(12, 9, 32, 0.95);
}

.sg-veil--win h3 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  background: linear-gradient(90deg, #7fe3f0, #ff8ae0, #ffb38a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sg-verdict .sg-mark.is-on {
  fill: #fff27a;
  stroke: #fff27a;
  filter: drop-shadow(0 0 8px rgba(255, 242, 122, 0.8));
}

.sg-verdict .sg-mark.is-fly {
  animation: sg-fly 0.7s var(--sg-ease) both;
  animation-delay: calc(0.35s + (var(--sg-k) - 1) * 0.38s);
}

.sg-verdict__best {
  color: #ff8ae0;
}

.sg-dawn__lead,
.sg-dawn__acts,
.sg-dawn__facts,
.sg-dawn__kicker,
.sg-dawn__title {
  position: relative;
}

.sg-dawn__line--glint {
  background: linear-gradient(90deg, #ffd45c, #ff8ae0 60%, #ffb38a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@keyframes sg-pop {
  40% {
    transform: scale(1.18);
  }
}

@keyframes sg-pop-in {
  from {
    opacity: 0;
    scale: 0.8;
  }
}

@keyframes sg-beacon {
  50% {
    box-shadow: 0 0 0 5px rgba(255, 95, 210, 0.15), 0 0 30px rgba(255, 95, 210, 0.5);
  }
}

@keyframes sg-dash {
  to {
    border-top-color: rgba(127, 227, 240, 0.8);
  }
}

@keyframes sg-fly {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.2) rotate(-120deg);
  }
  70% {
    opacity: 1;
    transform: translateY(-6px) scale(1.3) rotate(10deg);
  }
  100% {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sg-verdict .sg-mark.is-fly,
  .sg-orbit__stat.is-pop {
    animation: none;
  }
}

@media (max-width: 600px) {
  .sg-orbit.has-veil .sg-orbit__stage {
    aspect-ratio: 3 / 4;
  }
}

.rz-frame .sg-orbit__stat {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
}

.rz-frame .sg-orbit__stat > svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: #ffd45c;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rz-frame .sg-orbit__stat[hidden] {
  display: none;
}

.rz-goal b {
  color: #ffd45c;
}

.rz-arrow {
  fill: none;
  stroke: #7fe3f0;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--sg-ease), opacity 0.3s;
}

.rz-frame .sg-orbit__stage canvas {
  cursor: none;
}

.rz-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.6rem 0 0.8rem;
}

.rz-mode {
  min-height: 44px;
  padding: 0.45rem 1rem;
  background: #1a1440;
  color: var(--sg-ink);
  border: 2.5px solid rgba(181, 123, 255, 0.55);
  border-radius: 999px;
  font: 600 0.95rem/1.2 var(--sg-text);
  cursor: pointer;
  transition: transform 0.2s var(--sg-ease), border-color 0.2s;
}

.rz-mode:hover {
  transform: translateY(-2px);
  border-color: #ffd45c;
}

.rz-mode[aria-pressed='true'] {
  background: linear-gradient(90deg, rgba(255, 212, 92, 0.3), rgba(255, 95, 210, 0.25));
  border-color: #ffd45c;
}

.rz-missions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(13rem, 100%), 1fr));
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rz-missions[hidden] {
  display: none;
}

.rz-missions li {
  animation: sg-pop-in 0.45s var(--sg-ease) both;
}

.rz-missions li:nth-child(2) { animation-delay: 40ms; }
.rz-missions li:nth-child(3) { animation-delay: 80ms; }
.rz-missions li:nth-child(4) { animation-delay: 120ms; }
.rz-missions li:nth-child(5) { animation-delay: 160ms; }
.rz-missions li:nth-child(6) { animation-delay: 200ms; }
.rz-missions li:nth-child(7) { animation-delay: 240ms; }
.rz-missions li:nth-child(8) { animation-delay: 280ms; }

.rz-mission {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.1rem 0.5rem;
  width: 100%;
  min-height: 48px;
  padding: 0.6rem 0.75rem;
  text-align: left;
  background: linear-gradient(160deg, #2a1d63, #1a1440);
  color: var(--sg-ink);
  border: 2.5px solid rgba(181, 123, 255, 0.55);
  border-radius: var(--sg-curve);
  font: 500 0.93rem/1.3 var(--sg-text);
  cursor: pointer;
  transition: transform 0.2s var(--sg-ease), border-color 0.2s, box-shadow 0.2s;
}

.rz-mission__n {
  grid-row: span 3;
  font-family: var(--sg-display);
  font-size: 1.5rem;
  color: #ffd45c;
}

.rz-mission__name {
  font-weight: 600;
}

.rz-mission__goal,
.rz-mission__state {
  font-size: 0.82rem;
  color: var(--sg-soft);
}

.rz-mission.is-done {
  border-color: rgba(109, 255, 196, 0.7);
}

.rz-mission.is-done .rz-mission__state {
  color: #6dffc4;
}

.rz-mission:hover:not([disabled]) {
  transform: translateY(-3px);
  border-color: #ffd45c;
  box-shadow: 0 6px 0 rgba(255, 212, 92, 0.3);
}

.rz-mission[disabled] {
  cursor: not-allowed;
  border-style: dashed;
  border-color: rgba(188, 183, 221, 0.4);
  background: #16123a;
  color: var(--sg-soft);
}

.rz-free {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.rz-free[hidden] {
  display: none;
}

.rz-free p {
  margin: 0;
  color: #ffd45c;
  font-weight: 600;
}

.rz-total {
  margin: 0;
  font-family: var(--sg-display);
  font-size: 1.3rem;
}

.rz-total b {
  font-size: 2.6rem;
  font-weight: 400;
  color: #ffd45c;
}

.rz-card__fig {
  display: grid;
  place-items: center;
  padding: 1rem;
  background: radial-gradient(80% 80% at 50% 30%, rgba(255, 95, 210, 0.22), transparent 70%), #120c33;
}

.rz-card__fig svg {
  width: min(9rem, 70%);
  height: auto;
}

.rz-card--mode .rz-card__fig {
  background: radial-gradient(80% 80% at 50% 30%, rgba(255, 212, 92, 0.25), transparent 70%), #120c33;
}

.rz-card--mode .sg-myth__n {
  color: #ffd45c;
}

.sg-mail__deco svg {
  width: 100%;
  height: auto;
}

@media (prefers-reduced-motion: reduce) {
  .rz-missions li {
    animation: none;
  }
}

.sg-dawn__line--glint {
  width: fit-content;
  margin-inline: auto;
}

@media (max-width: 600px) {
  .rz-frame .sg-orbit__hud {
    gap: 0.35rem;
  }

  .rz-frame .sg-orbit__stat {
    padding: 0.15rem 0.5rem;
    font-size: 0.8rem;
  }

  .rz-frame .sg-orbit__stat > svg {
    width: 15px;
    height: 15px;
  }

  .rz-frame .sg-orbit__acts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rz-frame .sg-orbit__stage {
    margin-inline: -0.35rem;
    width: calc(100% + 0.7rem);
  }
}

.rz-burst {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  margin: 0;
  font-family: var(--sg-display);
  font-size: clamp(2.2rem, 9vw, 5.5rem);
  color: #ffd45c;
  text-shadow: 0 0 18px rgba(255, 212, 92, 0.9), 0 0 48px rgba(255, 95, 210, 0.7);
  pointer-events: none;
  opacity: 0;
}

.rz-burst.is-on {
  animation: rz-burst 1.4s var(--sg-ease) both;
}

.rz-extra-row dd {
  color: #ffd45c;
  font-weight: 700;
}

@keyframes rz-burst {
  0% {
    opacity: 0;
    transform: scale(0.3) rotate(-8deg);
  }
  25% {
    opacity: 1;
    transform: scale(1.15) rotate(2deg);
  }
  45% {
    transform: scale(1);
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-30px) scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rz-burst.is-on {
    animation: rz-burst-calm 1.4s linear both;
  }

  @keyframes rz-burst-calm {
    0%,
    85% {
      opacity: 1;
    }
    100% {
      opacity: 0;
    }
  }
}

.sg-verdict dl div[hidden] {
  display: none;
}
