:root[data-theme="papel"] {
  --ink: #271928;
  --ink-deep: #211622;
  --paper: #fff3df;
  --soft: #ebcad8;
  --line: #72415d;
  --lime: #ffc694;
  --lilac: #ffd4a2;
  --pink: #ff9ca9;
}

:root[data-theme="cromo"] {
  --ink: #10112e;
  --ink-deep: #0c0e27;
  --paper: #eeeefe;
  --soft: #cdcffa;
  --line: #484d82;
  --lime: #b9ebff;
  --lilac: #bfb7ff;
  --pink: #dda8ff;
}

.workspace {
  max-width: 1135px;
  min-height: 74vh;
  padding-block: clamp(1.25rem, 4vw, 3rem) 4.5rem;
}
.workspace a,
.workspace button {
  touch-action: manipulation;
}
.app-notice,
.app-error {
  border-radius: 0.65rem;
  padding: 0.78rem 1rem;
  margin: 0 0 1rem;
}
.app-notice {
  background: var(--lime);
  color: var(--ink);
}
.app-error {
  background: var(--pink);
  color: #2c1527;
  font-weight: 700;
}
#app-content[aria-busy="true"] {
  cursor: progress;
}
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.1rem, 5vw, 3.7rem);
  align-items: start;
}
.auth-picture {
  isolation: isolate;
  min-height: 530px;
  position: relative;
  display: flex;
  align-items: end;
  padding: 1.6rem;
  overflow: hidden;
  background: #52398b;
  border: 5px solid var(--paper);
  box-shadow: 0.65rem 0.65rem #604193;
  transform: rotate(-2deg);
}
.auth-picture img,
.dashboard-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.auth-picture::after,
.dashboard-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #130c21 1%, #1d103561 56%, transparent 85%);
  z-index: -1;
}
.auth-picture h1 {
  color: var(--lime);
  font-size: clamp(3.2rem, 9vw, 7.1rem);
}
.space-panel {
  display: grid;
  gap: 0.9rem;
  align-content: start;
  background: color-mix(in srgb, var(--ink), var(--lilac) 9%);
  border: 1px solid var(--line);
  padding: clamp(1rem, 3vw, 1.75rem);
  border-radius: 0.85rem;
  color: var(--paper);
}
.space-panel h2,
.lumbre-dialog h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}
.space-panel h3 {
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}
.space-panel p {
  margin: 0;
}
.muted {
  color: var(--soft);
}
.form {
  display: grid;
  gap: 0.8rem;
  align-items: start;
}
.form .action,
.space-panel > .action {
  justify-self: start;
}
.field {
  display: grid;
  gap: 0.4rem;
  font-weight: 700;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  min-height: 45px;
  border-radius: 0.5rem;
  border: 1px solid #8d789e;
  background: var(--ink-deep);
  padding: 0.62rem 0.8rem;
  color: var(--paper);
  font-weight: 400;
}
.field input[type="file"] {
  overflow: hidden;
}
.toggle {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.toggle input {
  accent-color: var(--lime);
  width: 1.2rem;
  height: 1.2rem;
}
.space-stack,
.paired {
  display: grid;
  gap: 1.25rem;
}
.space-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.48rem;
  background: var(--ink-deep);
  border: 1px solid var(--line);
  border-radius: 0.8rem;
}
.space-nav a {
  padding: 0.55rem 0.8rem;
  min-height: 42px;
  border-radius: 0.5rem;
  font-weight: 700;
  text-decoration: none;
}
.space-nav a:hover {
  background: #39274f;
}
.space-nav a[aria-current="page"] {
  background: var(--lime);
  color: #201631;
}
.space-tools {
  display: flex;
  justify-content: end;
}
.title-print {
  padding: clamp(1.2rem, 4vw, 2.5rem);
  position: relative;
  overflow: hidden;
  border: 2px solid var(--paper);
  box-shadow: 0.5rem 0.45rem color-mix(in srgb, var(--ink), var(--lilac) 40%);
  color: #1f152e;
  isolation: isolate;
}
.title-print::after {
  content: "✷";
  position: absolute;
  right: -0.065em;
  top: -0.28em;
  font-size: clamp(7rem, 20vw, 14rem);
  color: #20123021;
  transform: rotate(-15deg);
  z-index: -1;
}
.title-print h1,
.dashboard-cover h1 {
  font-size: clamp(2.8rem, 8vw, 6.25rem);
  overflow-wrap: anywhere;
}
.title-print > p:last-child {
  margin-bottom: 0;
  max-width: 35rem;
}
.lilac {
  background: var(--lilac);
}
.lime {
  background: var(--lime);
}
.pink {
  background: var(--pink);
}
.invite-code {
  font: 800 clamp(1.4rem, 4vw, 2.3rem)/1.2 var(--display);
  color: var(--lime);
  overflow-wrap: anywhere;
}
.two-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.dashboard-cover {
  min-height: clamp(320px, 45vw, 440px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: end;
  padding: clamp(1.1rem, 5vw, 3rem);
  background: #493477;
  border: 4px solid var(--lilac);
}
.dashboard-cover img {
  object-position: center 47%;
}
.dashboard-cover h1 {
  color: var(--lime);
}
.dashboard-cover p {
  max-width: 28rem;
}
.album-cover img {
  object-position: 50% 48%;
}
.dashboard-sticker {
  display: grid;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--paper);
  color: #201631;
  text-decoration: none;
  box-shadow: 0.3rem 0.3rem #644b85;
  transition: transform 0.2s;
}
.dashboard-sticker:hover {
  transform: translateY(-4px) rotate(-1deg);
}
.dashboard-sticker span {
  font-size: 1.7rem;
}
.dashboard-sticker strong {
  font: 800 clamp(1.25rem, 4vw, 2.05rem)/1 var(--display);
  letter-spacing: -0.04em;
}
.round-list,
.event-list {
  display: grid;
  gap: 0.7rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.round-list li,
.event-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}
.round-list li .micro {
  color: var(--lilac);
  margin-bottom: 0.15rem;
}
.round-list li strong,
.event-list li strong {
  font-size: 1.12rem;
  overflow-wrap: anywhere;
}
.activity-catalog {
  display: grid;
  gap: 1rem;
}
.catalog-art {
  isolation: isolate;
  position: relative;
  display: flex;
  align-items: end;
  padding: 1rem 1.4rem;
  background: #473068;
  color: #fff3df;
  min-height: 185px;
  border: 2px solid var(--lilac);
}
.catalog-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.catalog-art::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, #150e22, #130a1b25);
  z-index: -1;
}
.catalog-art h2 {
  font-size: clamp(2.2rem, 5vw, 4.3rem);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}
.question-choice {
  text-align: left;
  color: #261935;
  border: 2px solid #f9dabc;
  padding: 1rem;
  border-radius: 0.3rem;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: space-between;
  gap: 0.7rem;
  background: #ffedda;
  transition: transform 0.18s;
}
.question-choice:nth-child(3n + 2) {
  background: var(--lilac);
}
.question-choice:nth-child(3n + 3) {
  background: var(--pink);
}
.question-choice:hover {
  transform: rotate(-1.5deg) translateY(-2px);
}
.question-choice strong {
  font: 800 clamp(1.15rem, 2.3vw, 1.65rem)/1.03 var(--display);
  letter-spacing: -0.04em;
}
.question-choice span {
  font-weight: 700;
}
.round-sheet {
  border: 2px solid var(--lilac);
}
.round-sheet h2 {
  max-width: 28ch;
}
.answer-seal {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--ink-deep);
  border: 1px dashed var(--lilac);
}
.answer-seal span {
  color: var(--lime);
  font-size: 2rem;
}
.round-reveal {
  animation: appear 0.4s both;
}
.round-result {
  color: var(--lime);
  font-weight: 700;
}
.round-reveal .two-panels {
  margin-top: 0.6rem;
}
.reveal-answer {
  background: var(--ink-deep);
  border: 1px solid var(--line);
  padding: 1rem;
  overflow-wrap: anywhere;
}
.reveal-answer .micro {
  color: var(--lilac);
  margin-bottom: 0.4rem;
}
.space-memory {
  margin-top: 0;
}
.space-memory h2 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
}
.theme-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.theme-chip {
  padding: 0.55rem 0.75rem;
  min-height: 44px;
  border: 2px solid transparent;
  border-radius: 0.45rem;
  color: #211635;
  font-weight: 700;
}
.theme-chip[aria-pressed="true"] {
  border-color: white;
  box-shadow: 0 0 0 2px #7550ab;
}
.theme-chip.noche {
  background: #d9f85a;
}
.theme-chip.papel {
  background: #ffb693;
}
.theme-chip.cromo {
  background: #b3daff;
}
.location-entry {
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
  display: grid;
  gap: 0.45rem;
  justify-items: start;
}
.lumbre-dialog {
  max-width: min(42rem, 100% - 2rem);
  padding: 1.4rem;
  border: 2px solid var(--lilac);
  color: var(--paper);
  background: var(--ink);
  border-radius: 0.75rem;
}
.lumbre-dialog::backdrop {
  background: #100a1cd9;
}
.photo-dialog h2 {
  margin-bottom: 0.85rem;
}
.photo-dialog img {
  max-height: 65vh;
  object-fit: contain;
  margin-bottom: 0.8rem;
}
.plan-steps {
  display: grid;
  gap: 0.4rem;
  margin-top: 0;
  padding-left: 1.3rem;
}
.plan-steps li::marker {
  color: var(--lime);
}
@media (max-width: 760px) {
  .auth-layout,
  .two-panels {
    grid-template-columns: 1fr;
  }
  .auth-picture {
    min-height: 270px;
  }
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .space-nav a {
    padding-inline: 0.65rem;
  }
  .dash-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 420px) {
  .card-grid,
  .dash-links {
    grid-template-columns: 1fr;
  }
  .space-nav {
    gap: 0.28rem;
  }
  .space-nav a {
    padding-inline: 0.55rem;
    font-size: 0.94rem;
  }
}
