/* The Day World — Sphere R3, Wave 1.
 *
 * Styles for the day room only: the step-in door under the day-zoom
 * panel and the room sheet that opens in front of the Sphere. The
 * instrument's own stylesheets (living-time-sphere.css and
 * living-time-sphere-app.css, R1.7) are untouched. The room's light
 * follows the keeper's Spark a little — a tint on the sheet's edge,
 * set from the Spark's kind by sphere-day-world.js (data-tint).
 */

/* ── The door ──────────────────────────────────────────────────── */

.day-world-door {
  margin: 14px auto 4px;
  max-width: 720px;
  padding: 14px 16px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(16, 22, 38, 0.92), rgba(8, 11, 20, 0.94));
  text-align: center;
}

.day-world-door-button {
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #0a0e18;
  background: linear-gradient(180deg, #e8c96a, #c9a437);
  border: 0;
  border-radius: 999px;
  padding: 10px 22px;
  cursor: pointer;
}

.day-world-door-button:disabled {
  opacity: 0.45;
  cursor: default;
}

.day-world-door-line {
  margin: 9px 0 0;
  font-size: 0.92rem;
  color: rgba(226, 236, 255, 0.78);
}

/* ── The room ──────────────────────────────────────────────────── */

.day-world {
  position: fixed;
  inset: 0;
  z-index: 1200;
  overflow-y: auto;
  background: rgba(2, 4, 9, 0.55);
  backdrop-filter: blur(2px);
  padding: 18px 12px 40px;
}

.day-world[hidden] {
  display: none;
}

html.day-world-open {
  overflow: hidden;
}

.day-world-sheet {
  --dw-tint: rgba(212, 175, 55, 0.55);
  max-width: 720px;
  margin: 0 auto;
  border: 1px solid var(--dw-tint);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(14, 19, 33, 0.98), rgba(6, 9, 16, 0.99));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 44px -12px var(--dw-tint);
  padding: 22px 20px 26px;
  color: #e7edf9;
}

.day-world-sheet[data-tint="fire"] { --dw-tint: rgba(255, 122, 61, 0.55); }
.day-world-sheet[data-tint="water"] { --dw-tint: rgba(84, 168, 255, 0.55); }
.day-world-sheet[data-tint="shadow"] { --dw-tint: rgba(150, 120, 255, 0.5); }
.day-world-sheet[data-tint="air"] { --dw-tint: rgba(160, 225, 255, 0.55); }
.day-world-sheet[data-tint="earth"] { --dw-tint: rgba(140, 200, 120, 0.5); }
.day-world-sheet[data-tint="light"] { --dw-tint: rgba(255, 236, 170, 0.6); }

.day-world-kicker {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(232, 201, 106, 0.9);
}

.day-world-title {
  margin: 6px 0 2px;
  font-size: 1.45rem;
  line-height: 1.25;
}

.day-world-civil {
  margin: 0 0 8px;
  color: rgba(226, 236, 255, 0.75);
}

.day-world-explain {
  margin: 6px 0 10px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(200, 214, 240, 0.72);
}

.day-world-back {
  font: inherit;
  font-weight: 600;
  color: #0a0e18;
  background: linear-gradient(180deg, #e8c96a, #c9a437);
  border: 0;
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  margin-top: 4px;
}

.day-world-section {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(160, 180, 220, 0.16);
}

.day-world-section-title {
  margin: 0 0 4px;
  font-size: 1.08rem;
}

.day-world-headline {
  font-weight: 600;
  margin: 8px 0 4px;
}

.day-world-line {
  margin: 6px 0;
  line-height: 1.55;
}

.day-world-reading-label {
  margin: 12px 0 2px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232, 201, 106, 0.85);
}

.day-world-entries {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.day-world-entry {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 8px 10px;
  border: 1px solid rgba(160, 180, 220, 0.18);
  border-radius: 10px;
  margin-bottom: 8px;
  background: rgba(20, 28, 48, 0.5);
}

.day-world-entry-title {
  font-weight: 600;
}

.day-world-entry-meta {
  color: rgba(200, 214, 240, 0.7);
}

.day-world-questions {
  margin: 8px 0 14px;
  padding-left: 20px;
  line-height: 1.6;
  color: rgba(231, 237, 249, 0.9);
}

.day-world-note-form {
  display: grid;
  gap: 10px;
}

.day-world-note-text {
  font: inherit;
  width: 100%;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid rgba(160, 180, 220, 0.3);
  background: rgba(10, 14, 24, 0.9);
  color: #e7edf9;
  padding: 10px 12px;
}

.day-world-note-save {
  font: inherit;
  font-weight: 600;
  justify-self: start;
  color: #0a0e18;
  background: linear-gradient(180deg, #e8c96a, #c9a437);
  border: 0;
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
}

.day-world-note-status {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(160, 230, 190, 0.9);
}

@media (max-width: 560px) {
  .day-world {
    padding: 0;
  }

  .day-world-sheet {
    border-radius: 0;
    min-height: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .day-world {
    backdrop-filter: none;
  }
}
