:root {
  --ink: #090b10;
  --velvet: #111520;
  --slate: #1a1e2e;
  --gold: #c8a45a;
  --violet: #8a6fb8;
  --teal: #37b7a6;
  --bone: #e8e0d0;
  --muted: #a89880;
  --rust: #a75f45;
  --shadow: rgba(0, 0, 0, 0.48);
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--ink);
  color: var(--bone);
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  min-height: 100%;
  margin: 0;
}

html,
body {
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 10%, rgba(55, 183, 166, 0.16), transparent 24rem),
    radial-gradient(circle at 80% 22%, rgba(200, 164, 90, 0.14), transparent 22rem),
    linear-gradient(160deg, #090b10 0%, #10131d 48%, #16111a 100%);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
}

.app-shell.is-transitioning {
  opacity: 0.35;
  transition: opacity 220ms ease;
}

.screen {
  min-height: 100vh;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
}

.screen-onboarding,
.screen-login,
.loading-screen,
.error-screen {
  display: grid;
  place-items: center;
}

.screen-rito {
  display: block;
}

.orbital-stage,
.login-panel,
.hatch-stage,
.single-card {
  width: min(100%, 520px);
}

.orbital-stage,
.hatch-stage {
  text-align: center;
}

.kicker {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 14vw, 6.4rem);
  font-weight: 500;
  letter-spacing: 0.28em;
  line-height: 0.95;
  text-indent: 0.28em;
}

.lead,
.status-line,
.oracle-copy,
.empty,
.form-status {
  color: var(--bone);
  line-height: 1.65;
}

.lead {
  max-width: 34rem;
  margin: 24px auto 0;
  font-size: 1rem;
}

.status-line,
.form-status {
  color: var(--muted);
  font-size: 0.86rem;
}

.actions,
.login-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.button {
  min-height: 48px;
  border: 1px solid rgba(200, 164, 90, 0.72);
  border-radius: 8px;
  padding: 0 18px;
  background: transparent;
  color: var(--gold);
  font-weight: 700;
}

.button.primary {
  background: var(--gold);
  color: #14110a;
  box-shadow: 0 16px 40px rgba(200, 164, 90, 0.18);
}

.button.ghost,
.button.dark {
  background: rgba(17, 21, 32, 0.72);
}

.button.google {
  border-color: #f0f4ff;
  background: #f0f4ff;
  color: #15203a;
}

.button.wide {
  width: 100%;
}

.icon-button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(168, 152, 128, 0.42);
  border-radius: 50%;
  background: rgba(17, 21, 32, 0.8);
  color: var(--bone);
  font-weight: 800;
}

.icon-button.send {
  color: var(--gold);
}

.button:focus-visible,
.icon-button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(55, 183, 166, 0.75);
  outline-offset: 3px;
}

.signal-ring {
  position: relative;
  width: min(72vw, 360px);
  aspect-ratio: 1;
  margin: 0 auto -250px;
  pointer-events: none;
}

.signal-ring span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(200, 164, 90, 0.34);
  border-radius: 999px;
  transform: rotate(var(--angle));
}

.signal-ring span:nth-child(1) {
  --angle: 0deg;
}

.signal-ring span:nth-child(2) {
  --angle: 54deg;
  border-color: rgba(138, 111, 184, 0.42);
}

.signal-ring span:nth-child(3) {
  --angle: 108deg;
  border-color: rgba(55, 183, 166, 0.36);
}

.egg,
.creature-orbit {
  position: relative;
  display: grid;
  place-items: center;
  width: 190px;
  height: 248px;
  margin: 72px auto 36px;
}

.egg::before,
.creature-orbit::before {
  content: "";
  position: absolute;
  inset: 20px 0 0;
  border-radius: 50% 50% 46% 46%;
  background:
    linear-gradient(160deg, rgba(200, 164, 90, 0.22), transparent 42%),
    linear-gradient(20deg, rgba(138, 111, 184, 0.28), rgba(17, 21, 32, 0.92));
  border: 1px solid rgba(200, 164, 90, 0.7);
  box-shadow: 0 30px 90px var(--shadow);
}

.egg-core,
.creature-shell {
  position: relative;
  z-index: 1;
  width: 88px;
  height: 122px;
  border-radius: 50% 50% 44% 44%;
  background: linear-gradient(180deg, var(--gold), var(--rust));
  opacity: 0.88;
}

.creature-flare {
  position: absolute;
  z-index: 2;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(55, 183, 166, 0.8);
  transform: rotate(45deg);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  margin-bottom: 20px;
  backdrop-filter: blur(20px);
}

.topbar span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ritual-form {
  display: grid;
  gap: 14px;
  width: min(100%, 560px);
  margin: 0 auto;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field input,
.composer input {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(168, 152, 128, 0.32);
  border-radius: 8px;
  padding: 0 14px;
  background: rgba(17, 21, 32, 0.78);
  color: var(--bone);
}

.field input::placeholder,
.composer input::placeholder {
  color: rgba(168, 152, 128, 0.62);
}

.ritual-form.is-loading {
  opacity: 0.55;
  pointer-events: none;
}

.creature-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 28px 0;
}

.creature-facts div {
  min-width: 0;
  border: 1px solid rgba(168, 152, 128, 0.2);
  border-radius: 8px;
  padding: 12px;
  background: rgba(17, 21, 32, 0.58);
}

.creature-facts dt {
  color: var(--teal);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.creature-facts dd {
  margin: 6px 0 0;
  color: var(--bone);
}

.messages {
  display: grid;
  align-content: end;
  gap: 12px;
  min-height: calc(100vh - 150px);
  padding-bottom: 88px;
}

.message {
  max-width: 82%;
  border-radius: 8px;
  padding: 12px 14px;
  line-height: 1.55;
}

.message.is-user {
  justify-self: end;
  background: rgba(55, 183, 166, 0.16);
  border: 1px solid rgba(55, 183, 166, 0.32);
}

.message.is-oracle {
  justify-self: start;
  background: rgba(17, 21, 32, 0.82);
  border: 1px solid rgba(200, 164, 90, 0.22);
}

.composer {
  position: fixed;
  right: max(20px, calc((100vw - 760px) / 2 + 20px));
  bottom: max(18px, env(safe-area-inset-bottom));
  left: max(20px, calc((100vw - 760px) / 2 + 20px));
  display: grid;
  grid-template-columns: 1fr 48px;
  gap: 10px;
}

.single-card,
.spread-cards {
  padding-top: 20px;
}

.tarot-card {
  display: grid;
  place-items: center;
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(200, 164, 90, 0.74);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(200, 164, 90, 0.18), transparent 35%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 10px),
    var(--slate);
  color: var(--gold);
  box-shadow: 0 24px 80px var(--shadow);
}

.tarot-card span {
  max-width: 70%;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 7vw, 2.4rem);
}

.single-card .tarot-card {
  width: min(72vw, 330px);
  margin: 0 auto 28px;
}

.tilted {
  transform: rotate(2deg);
}

.spread-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 10px;
}

.spread-card {
  display: grid;
  gap: 8px;
}

.spread-card p {
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.spread-card .tarot-card {
  min-height: 180px;
}

.card-0 {
  transform: rotate(-4deg) translateY(14px);
}

.card-2 {
  transform: rotate(4deg) translateY(14px);
}

.spread-copy {
  margin-top: 44px;
}

.spinner {
  width: 52px;
  height: 52px;
  border: 2px solid rgba(200, 164, 90, 0.18);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}

.loading-screen p {
  color: var(--muted);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

@media (max-width: 560px) {
  .screen {
    padding-inline: 16px;
  }

  .creature-facts,
  .spread-cards {
    grid-template-columns: 1fr;
  }

  .card-0,
  .card-2 {
    transform: none;
  }

  .spread-card .tarot-card {
    min-height: 220px;
  }

  h1 {
    font-size: clamp(2.6rem, 18vw, 4.8rem);
  }
}

/* High-fantasy art direction: original oracle house, iron, vellum, ember. */
:root {
  --ink: #050608;
  --velvet: #10131a;
  --slate: #171a22;
  --gold: #c79a45;
  --bright-gold: #f1d184;
  --violet: #68231d;
  --teal: #2aa191;
  --bone: #e8ddc1;
  --muted: #9f9177;
  --rust: #b84c2f;
  --line: rgba(241, 209, 132, 0.28);
}

body {
  background:
    radial-gradient(circle at 50% -18%, rgba(241, 209, 132, 0.18), transparent 24rem),
    radial-gradient(circle at 14% 18%, rgba(42, 161, 145, 0.2), transparent 22rem),
    radial-gradient(circle at 84% 22%, rgba(184, 76, 47, 0.16), transparent 24rem),
    linear-gradient(180deg, #08090d 0%, #0d1017 38%, #06070a 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: -1;
}

body::before {
  inset: 0;
  opacity: 0.24;
  background:
    linear-gradient(90deg, transparent 0 7%, rgba(241, 209, 132, 0.08) 7.2% 7.5%, transparent 7.8% 92.2%, rgba(241, 209, 132, 0.08) 92.5% 92.8%, transparent 93%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 36px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 42px);
  mask-image: radial-gradient(circle at 50% 42%, black, transparent 76%);
}

body::after {
  inset: auto -10vw -25vh -10vw;
  height: 48vh;
  background: radial-gradient(ellipse at center, rgba(184, 76, 47, 0.18), transparent 64%);
  filter: blur(18px);
}

.screen {
  width: min(100%, 840px);
}

.orbital-stage,
.login-panel,
.hatch-stage,
.single-card {
  width: min(100%, 590px);
}

.orbital-stage,
.hatch-stage {
  position: relative;
}

.hall-arches {
  position: absolute;
  inset: -10vh -28vw auto;
  height: min(60vh, 620px);
  pointer-events: none;
  opacity: 0.62;
}

.hall-arches span {
  position: absolute;
  bottom: 0;
  width: 32vw;
  max-width: 360px;
  aspect-ratio: 0.64;
  border: 1px solid rgba(241, 209, 132, 0.22);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  box-shadow: inset 0 0 48px rgba(0, 0, 0, 0.42);
}

.hall-arches span:nth-child(1) {
  left: 7vw;
}

.hall-arches span:nth-child(2) {
  left: 50%;
  width: 40vw;
  max-width: 440px;
  border-color: rgba(241, 209, 132, 0.34);
  transform: translateX(-50%);
}

.hall-arches span:nth-child(3) {
  right: 7vw;
}

.houseline,
.insignia-row {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.houseline {
  margin: 0 0 10px;
  color: var(--bright-gold);
}

h1 {
  color: var(--bright-gold);
  letter-spacing: 0.24em;
  text-shadow: 0 0 18px rgba(241, 209, 132, 0.18), 0 18px 52px rgba(0, 0, 0, 0.7);
}

#login-title {
  font-size: clamp(2.2rem, 9vw, 4.8rem);
  letter-spacing: 0.06em;
  text-indent: 0;
}

.insignia-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: min(100%, 440px);
  margin: 26px auto 0;
  color: rgba(232, 221, 193, 0.76);
}

.insignia-row span {
  min-width: 0;
  border-block: 1px solid rgba(241, 209, 132, 0.2);
  padding: 10px 6px;
}

.button,
.field input,
.composer input,
.creature-facts div,
.message,
.tarot-card,
.login-panel,
.parchment-panel {
  border-radius: 4px;
}

.button {
  min-height: 50px;
  border-color: rgba(241, 209, 132, 0.72);
  color: var(--bright-gold);
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 18px 44px rgba(0, 0, 0, 0.22);
}

.button.primary {
  background: linear-gradient(180deg, #efca75, #b77b2f 72%, #7a431d);
  color: #14100a;
  box-shadow: 0 18px 48px rgba(199, 154, 69, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.button.ghost,
.button.dark {
  background: linear-gradient(180deg, rgba(28, 31, 39, 0.94), rgba(9, 10, 14, 0.94));
}

.icon-button {
  border-color: rgba(241, 209, 132, 0.38);
  background: radial-gradient(circle at 50% 20%, rgba(241, 209, 132, 0.12), rgba(8, 9, 13, 0.88));
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32);
}

.signal-ring {
  width: min(78vw, 430px);
  margin-bottom: -320px;
}

.oracle-hero-art {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.72fr);
  align-items: end;
  gap: clamp(10px, 4vw, 26px);
  width: min(100%, 560px);
  min-height: 310px;
  margin: 42px auto 22px;
  isolation: isolate;
}

.oracle-hero-art::before {
  content: "";
  position: absolute;
  inset: 12% 4% 0;
  z-index: -1;
  border: 1px solid rgba(241, 209, 132, 0.14);
  background:
    radial-gradient(circle at 64% 38%, rgba(241, 209, 132, 0.22), transparent 28%),
    radial-gradient(circle at 24% 44%, rgba(184, 76, 47, 0.2), transparent 36%),
    linear-gradient(180deg, rgba(7, 8, 11, 0.06), rgba(7, 8, 11, 0.78));
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.58);
}

.oracle-hero-art img,
.rite-art-band img,
.panel-art,
.creature-egg-art,
.image-card img {
  display: block;
  max-width: 100%;
  height: auto;
}

.oracle-hero-art .hero-dragon {
  align-self: stretch;
  width: 100%;
  height: clamp(300px, 42vw, 430px);
  object-fit: cover;
  object-position: 50% 50%;
  border: 1px solid rgba(241, 209, 132, 0.24);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.62);
}

.hero-egg {
  width: min(100%, 230px);
  margin-left: -36px;
  border: 1px solid rgba(241, 209, 132, 0.24);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.58);
  transform: translateY(-18px);
}

.sigil-crest {
  position: relative;
  width: min(58vw, 280px);
  margin: 70px auto 28px;
}

.sigil-crest::before {
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: rgba(184, 76, 47, 0.34);
  filter: blur(32px);
}

.sigil-crest img,
.panel-sigil,
.creature-orbit img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 28px 70px rgba(0, 0, 0, 0.7));
}

.panel-art {
  width: min(100%, 300px);
  margin: 0 auto 24px;
  border: 1px solid rgba(241, 209, 132, 0.18);
  box-shadow: 0 22px 68px rgba(0, 0, 0, 0.48);
}

.panel-sigil {
  display: block;
  width: 132px;
  margin: 0 auto 18px;
}

.parchment-panel,
.login-panel {
  border: 1px solid rgba(241, 209, 132, 0.24);
  background:
    linear-gradient(180deg, rgba(232, 221, 193, 0.055), transparent 28%),
    linear-gradient(160deg, rgba(16, 19, 26, 0.92), rgba(7, 8, 11, 0.82));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.login-panel {
  padding: 34px;
  text-align: center;
}

.ritual-form {
  width: min(100%, 590px);
  padding: 22px;
}

.rite-art-band {
  display: grid;
  grid-template-columns: minmax(170px, 0.9fr) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  width: min(100%, 590px);
  margin: 0 auto 18px;
  border: 1px solid rgba(241, 209, 132, 0.22);
  padding: 14px;
  background:
    linear-gradient(90deg, rgba(5, 6, 8, 0.88), rgba(16, 19, 26, 0.74)),
    linear-gradient(180deg, rgba(241, 209, 132, 0.06), transparent);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
}

.rite-art-band img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: 50% 50%;
  border: 1px solid rgba(241, 209, 132, 0.18);
}

.rite-art-band p {
  margin: 0;
  color: var(--bone);
  line-height: 1.55;
}

.form-intro {
  margin: 0 0 8px;
  border-left: 2px solid var(--gold);
  padding-left: 14px;
}

.field input,
.composer input {
  border-color: rgba(241, 209, 132, 0.22);
  background: rgba(5, 6, 8, 0.66);
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.2);
}

.creature-orbit {
  width: min(72vw, 360px);
  height: auto;
  margin: 36px auto 30px;
}

.creature-orbit::before {
  display: none;
}

.creature-shell,
.creature-flare {
  position: absolute;
  z-index: 2;
}

.creature-egg-art {
  width: 100%;
  border: 1px solid rgba(241, 209, 132, 0.2);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58);
}

.creature-shell {
  width: 84px;
  height: 118px;
  border-radius: 50% 50% 44% 44%;
  background: linear-gradient(180deg, rgba(255, 222, 148, 0.9), rgba(184, 76, 47, 0.78));
  opacity: 0.38;
}

.creature-flare {
  width: 58px;
  height: 58px;
}

.tarot-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(241, 209, 132, 0.82);
  background:
    radial-gradient(circle at 50% 14%, rgba(241, 209, 132, 0.16), transparent 30%),
    linear-gradient(145deg, rgba(184, 76, 47, 0.18), transparent 35%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 9px),
    linear-gradient(180deg, #1b1e27, #0a0c11);
  color: var(--bright-gold);
  box-shadow: 0 26px 88px var(--shadow), inset 0 0 0 10px rgba(0, 0, 0, 0.18);
}

.tarot-card::before,
.tarot-card::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(241, 209, 132, 0.2);
  border-radius: 2px;
}

.tarot-card::after {
  inset: 28px;
  border-color: rgba(42, 161, 145, 0.18);
}

.tarot-card i {
  position: absolute;
  top: 18%;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(241, 209, 132, 0.44);
  transform: rotate(45deg);
  opacity: 0.45;
}

.tarot-card span {
  position: relative;
  z-index: 1;
  color: var(--bright-gold);
  text-shadow: 0 10px 32px rgba(0, 0, 0, 0.62);
}

.image-card {
  background: #08090d;
}

.image-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.48;
  filter: saturate(0.86) contrast(1.05);
}

.image-card::before {
  background: linear-gradient(180deg, rgba(5, 6, 8, 0.08), rgba(5, 6, 8, 0.68));
  border-color: rgba(241, 209, 132, 0.32);
}

.composer {
  right: max(20px, calc((100vw - 840px) / 2 + 20px));
  left: max(20px, calc((100vw - 840px) / 2 + 20px));
}

@media (max-width: 620px) {
  .hall-arches {
    inset-inline: -55vw;
    opacity: 0.38;
  }

  .sigil-crest {
    width: min(62vw, 230px);
    margin-top: 54px;
  }

  .oracle-hero-art {
    grid-template-columns: 1fr;
    min-height: 0;
    margin-top: 34px;
  }

  .oracle-hero-art .hero-dragon {
    height: 260px;
  }

  .hero-egg {
    width: min(54vw, 190px);
    margin: -68px auto 0;
    transform: none;
  }

  .rite-art-band {
    grid-template-columns: 1fr;
  }

  .insignia-row {
    grid-template-columns: 1fr;
  }

  .insignia-row span {
    padding-block: 8px;
  }

  .ritual-form,
  .login-panel {
    padding: 18px;
  }
}

/* ---------------------------------------------------------------------- */
/* RPG: regno, capitolo, cronaca, oracolo                                  */
/* ---------------------------------------------------------------------- */

.screen-mondo,
.screen-capitolo,
.screen-cronaca,
.screen-oracolo {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  min-height: 100vh;
}

.regno-hero {
  text-align: center;
  padding: 24px 16px;
  border-radius: 20px;
  background-color: var(--velvet);
  background-size: cover;
  background-position: center;
  box-shadow: 0 18px 40px var(--shadow);
}

.regno-creatura {
  width: min(40vw, 160px);
  margin: 0 auto 12px;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.6));
}

.regno-meta {
  color: var(--muted);
  margin: 6px 0 16px;
}

.xp-bar {
  height: 10px;
  border-radius: 999px;
  background: var(--slate);
  overflow: hidden;
}

.xp-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--teal));
}

.regno-quest {
  background: var(--velvet);
  border-radius: 16px;
  padding: 16px 20px;
}

.regno-quest h2 {
  margin-top: 0;
  color: var(--gold);
  font-size: 1rem;
}

.regno-quest ul {
  margin: 0;
  padding-left: 18px;
  color: var(--bone);
}

.screen-capitolo textarea {
  width: 100%;
  min-height: 120px;
  border-radius: 12px;
  border: 1px solid var(--slate);
  background: var(--ink);
  color: var(--bone);
  padding: 12px;
  font: inherit;
  resize: vertical;
}

.effetti-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--slate);
  color: var(--bone);
  font-size: 0.85rem;
}

.capitolo-quest {
  color: var(--gold);
  font-weight: 600;
}

.screen-cronaca {
  background-size: cover;
  background-position: center;
}

.cronaca-lista {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cronaca-voce {
  background: var(--velvet);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 12px 28px var(--shadow);
}

.cronaca-data {
  color: var(--muted);
  font-size: 0.8rem;
  margin: 0 0 4px;
}

.consulti-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.consulto-card {
  background: var(--velvet);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 12px 28px var(--shadow);
}

.consulto-card h2 {
  margin: 0;
  color: var(--gold);
  font-size: 1.05rem;
}

.consulto-card input[type="text"] {
  border-radius: 10px;
  border: 1px solid var(--slate);
  background: var(--ink);
  color: var(--bone);
  padding: 10px 12px;
  font: inherit;
}

.consulto-esito {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
}

.oracolo-crediti {
  color: var(--muted);
}

.oracolo-crediti strong {
  color: var(--gold);
}

.disclosure {
  color: var(--muted);
  font-size: 0.75rem;
  font-style: italic;
}
