/* ============================================================
   ASTRODICE — Celestial Oracle Stylesheet
   Deep space aesthetics, 3D dice animations, glassmorphism
   ============================================================ */

:root {
  --color-bg:           #FAF5EB;
  --color-bg-2:         #FFFFFF;
  --color-surface:      rgba(255, 255, 255, 0.85);
  --color-surface-2:    #F5EFEB;
  --color-border:       rgba(12, 35, 64, 0.08);
  --color-border-hover: rgba(12, 35, 64, 0.22);

  --color-planet:       #0C2340;
  --color-planet-glow:  rgba(12, 35, 64, 0.15);
  --color-sign:         #0D5C3A;
  --color-sign-glow:    rgba(13, 92, 58, 0.12);
  --color-house:        #B45309;
  --color-house-glow:   rgba(180, 83, 9, 0.12);

  --color-gold:         #D97706;
  --color-gold-glow:    rgba(217, 119, 6, 0.15);

  --color-text:         #0F172A;
  --color-text-muted:   #475569;
  --color-text-subtle:  #94A3B8;

  --font-display: 'Outfit', sans-serif;
  --font-body:    'Inter', sans-serif;

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   32px;
  --radius-full: 9999px;

  --transition-fast:   150ms ease;
  --transition-base:   280ms ease;
  --transition-slow:   500ms ease;
  --transition-spring: 420ms cubic-bezier(0.34, 1.56, 0.64, 1);

  --shadow-card: 0 12px 40px rgba(12, 35, 64, 0.05);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: transparent;
  color: inherit;
  outline: none;
}

a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-planet);
  color: #fff;
  padding: .5rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: .9rem;
  z-index: 9999;
  transition: top var(--transition-fast);
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 2px solid var(--color-planet);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ============================================================
   STARFIELD CANVAS
   ============================================================ */
#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ============================================================
   NEBULA GLOWS
   ============================================================ */
.nebula {
  position: fixed;
  border-radius: 50%;
  filter: blur(130px);
  pointer-events: none;
  z-index: 0;
}
.nebula-1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(12, 35, 64, 0.06) 0%, transparent 70%);
  top: -200px;
  left: -200px;
}
.nebula-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(13, 92, 58, 0.05) 0%, transparent 70%);
  bottom: -100px;
  right: -100px;
}
.nebula-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(180, 83, 9, 0.04) 0%, transparent 70%);
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
}

/* ============================================================
   APP LAYOUT
   ============================================================ */
.app-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 1.5rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============================================================
   HEADER
   ============================================================ */
.app-header {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 2.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.logo-icon {
  font-size: 1.8rem;
  background: linear-gradient(135deg, var(--color-planet), var(--color-sign));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: logo-pulse 3s ease-in-out infinite;
}
@keyframes logo-pulse {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(192, 132, 252, 0.5)); }
  50% { filter: drop-shadow(0 0 14px rgba(52, 211, 153, 0.6)); }
}

.logo-text-group h1 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  background: linear-gradient(135deg, var(--color-planet) 0%, var(--color-sign) 60%, var(--color-house) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.logo-sub {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

.nav-back-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}
.nav-back-link:hover { color: var(--color-planet); }

/* ============================================================
   MAIN LAYOUT
   ============================================================ */
.main-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  flex: 1;
  align-items: start;
  margin-bottom: 3rem;
}

/* ============================================================
   DICE STAGE (LEFT COLUMN)
   ============================================================ */
.dice-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  position: sticky;
  top: 2rem;
  align-self: start;
}

.stage-prompt {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
  text-align: center;
  font-style: italic;
}

.dice-trio {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
}

/* Individual Die Wrapper */
.die-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.die-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* The Die itself — 12-sided styled as a deep jewel */
.die {
  position: relative;
  width: 130px;
  height: 130px;

  /* Pentagon / dodecahedron approximation via clip-path */
  clip-path: polygon(50% 0%, 95% 25%, 100% 75%, 65% 100%, 35% 100%, 0% 75%, 5% 25%);

  background: linear-gradient(145deg, #FAF5EB 0%, #FFFFFF 60%, #F5EFEB 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  transition: transform var(--transition-spring), box-shadow var(--transition-base);
}

/* Planet die color */
#die-planet-face {
  background: linear-gradient(145deg, #F5EFEB 0%, #FFFFFF 50%, #E8E2D5 100%);
  box-shadow: 0 0 0 2px rgba(12, 35, 64, 0.15),
              0 12px 40px rgba(12, 35, 64, 0.12),
              inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Sign die color */
#die-sign-face {
  background: linear-gradient(145deg, #EBF5EF 0%, #FFFFFF 50%, #D8E8DF 100%);
  box-shadow: 0 0 0 2px rgba(13, 92, 58, 0.12),
              0 12px 40px rgba(13, 92, 58, 0.10),
              inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* House die color */
.die-house {
  width: 150px;
  height: 150px;
  background: linear-gradient(145deg, #F5EFEB 0%, #FFFFFF 50%, #E8E2D5 100%) !important;
  box-shadow: 0 0 0 2px rgba(180, 83, 9, 0.12),
              0 14px 50px rgba(180, 83, 9, 0.10),
              inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

.die-face-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  text-align: center;
}

.die-symbol {
  font-size: 2.4rem;
  line-height: 1;
  filter: drop-shadow(0 0 8px currentColor);
  transition: transform var(--transition-slow);
}

/* House die larger symbol */
.die-house .die-symbol {
  font-size: 2rem;
}

.die-name {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.8);
}

/* Shimmer overlay */
.die-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 50%);
  pointer-events: none;
  clip-path: inherit;
  z-index: 3;
}

/* Color-coded symbols */
#die-planet-face .die-symbol { color: var(--color-planet); }
#die-sign-face .die-symbol   { color: var(--color-sign); }
.die-house .die-symbol       { color: var(--color-house); }
#die-planet-face .die-name   { color: rgba(12, 35, 64, 0.8); }
#die-sign-face .die-name     { color: rgba(13, 92, 58, 0.8); }
.die-house .die-name         { color: rgba(180, 83, 9, 0.8); }

/* Spinning animation */
@keyframes die-spin {
  0%   { transform: rotate(0deg) scale(0.95); opacity: 0.7; }
  20%  { transform: rotate(72deg) scale(1.05); }
  40%  { transform: rotate(144deg) scale(0.9); }
  60%  { transform: rotate(216deg) scale(1.08); }
  80%  { transform: rotate(288deg) scale(0.95); }
  100% { transform: rotate(360deg) scale(1); opacity: 1; }
}

.die.rolling {
  animation: die-spin 0.9s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* Settled glow pulse when result appears */
@keyframes die-settle {
  0%   { filter: brightness(1.6); }
  100% { filter: brightness(1); }
}

.die.settled {
  animation: die-settle 1.2s ease-out forwards;
}

/* Roll Center */
.roll-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.roll-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;

  width: 90px;
  height: 90px;
  border-radius: 50%;

  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 50%, #312e81 100%);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;

  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.25),
              0 8px 32px rgba(100, 50, 220, 0.45);

  transition: all var(--transition-spring);
  position: relative;
  overflow: hidden;
}
.roll-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.roll-btn:hover:not(:disabled) {
  transform: scale(1.1);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.4),
              0 12px 48px rgba(100, 50, 220, 0.65);
}
.roll-btn:active:not(:disabled) {
  transform: scale(0.95);
}
.roll-btn:disabled {
  opacity: 0.6;
  pointer-events: none;
}

.roll-icon {
  font-size: 1.6rem;
  line-height: 1;
  display: block;
  transition: transform 0.5s ease;
}
.roll-btn.casting .roll-icon {
  animation: spin-icon 0.8s linear infinite;
}
@keyframes spin-icon {
  to { transform: rotate(360deg); }
}

.roll-text {
  font-size: 0.55rem;
  letter-spacing: 0.08em;
}

.roll-hint {
  font-size: 0.65rem;
  color: var(--color-text-subtle);
}

/* House die centered below */
.die-house-wrapper {
  margin-top: 0.5rem;
}

/* ============================================================
   READING PANEL (RIGHT COLUMN)
   ============================================================ */
.reading-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Glass card base */
.glass-card {
  background: var(--color-surface);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}
.glass-card:hover {
  border-color: var(--color-border-hover);
}

/* ---- Question Input Card ---- */
.question-card {
  border-color: rgba(140, 100, 255, 0.25);
}
.question-card:hover {
  border-color: rgba(180, 140, 255, 0.5);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.journal-question {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.journal-item-question {
  font-size: 0.78rem;
  font-style: italic;
  color: rgba(192, 132, 252, 0.8);
  line-height: 1.4;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(192, 132, 252, 0.1);
  margin-bottom: 0.35rem;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

.question-textarea {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.85rem 1rem;
  width: 100%;
  outline: none;
  resize: vertical;
  min-height: 86px;
  line-height: 1.6;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.question-textarea::placeholder {
  color: var(--color-text-subtle);
  font-style: italic;
  font-size: 0.82rem;
}
.question-textarea:focus {
  border-color: var(--color-planet);
  box-shadow: 0 0 0 3px rgba(192, 132, 252, 0.18);
}

.question-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.question-hint {
  font-size: 0.72rem;
  color: var(--color-text-subtle);
  font-style: italic;
}
.question-count {
  font-size: 0.7rem;
  font-family: var(--font-display);
  color: var(--color-text-subtle);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.question-count.near-limit { color: var(--color-house); }

/* "You asked:" row inside the reading summary */
.question-asked {
  width: 100%;
  background: rgba(192, 132, 252, 0.06);
  border: 1px solid rgba(192, 132, 252, 0.18);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.question-asked-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-planet);
}
.question-asked-text {
  font-size: 0.88rem;
  color: var(--color-text);
  font-style: italic;
  line-height: 1.5;
}

/* ---- Reading Summary ---- */
.reading-summary {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.summary-idle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
  text-align: center;
}
.summary-idle .summary-icon {
  font-size: 2rem;
  opacity: 0.5;
}
.summary-idle p {
  font-size: 0.88rem;
}

.summary-active {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: center;
}

.summary-line {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.3;
  background: linear-gradient(135deg, var(--color-planet), var(--color-sign), var(--color-house));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.summary-categories {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.cat-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.9rem;
  border-radius: var(--radius-full);
}
.cat-planet {
  background: rgba(192, 132, 252, 0.12);
  color: var(--color-planet);
  border: 1px solid rgba(192, 132, 252, 0.3);
}
.cat-sign {
  background: rgba(52, 211, 153, 0.1);
  color: var(--color-sign);
  border: 1px solid rgba(52, 211, 153, 0.25);
}
.cat-house {
  background: rgba(251, 146, 60, 0.1);
  color: var(--color-house);
  border: 1px solid rgba(251, 146, 60, 0.25);
}
.cat-sep {
  font-size: 0.72rem;
  color: var(--color-text-subtle);
}

/* ---- Plain Answer Box ---- */
.plain-answer {
  background: linear-gradient(135deg, rgba(192, 132, 252, 0.08) 0%, rgba(52, 211, 153, 0.06) 100%);
  border: 1px solid rgba(192, 132, 252, 0.22);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  margin-bottom: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.plain-answer-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-planet);
}

.plain-answer-text {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.65;
  font-family: var(--font-display);
}

/* ---- Collapsible Astro Details ---- */
.astro-details {
  border-top: 1px solid var(--color-border);
  padding-top: 0.9rem;
  margin-top: 0.2rem;
}

.astro-details-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-muted);
  padding: 0.25rem 0;
  user-select: none;
  transition: color var(--transition-fast);
}
.astro-details-toggle::-webkit-details-marker { display: none; }
.astro-details-toggle:hover { color: var(--color-planet); }

.toggle-arrow {
  font-size: 0.75rem;
  transition: transform var(--transition-base);
}
.astro-details[open] .toggle-arrow {
  transform: rotate(180deg);
}

.astro-details .interp-text {
  margin-top: 0.85rem;
}

/* ---- Interpretation ---- */
.card-header {
  margin-bottom: 1.1rem;
}

.card-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-planet);
  background: rgba(192, 132, 252, 0.08);
  border: 1px solid rgba(192, 132, 252, 0.2);
  padding: 0.18rem 0.7rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.35rem;
}

.card-header h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
}

.interp-text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 1.1rem;
  font-style: italic;
}

.interp-details {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.interp-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.65rem 0.9rem;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-md);
  border-left: 3px solid transparent;
}

#interp-planet-detail { border-left-color: var(--color-planet); }
#interp-sign-detail   { border-left-color: var(--color-sign); }
#interp-house-detail  { border-left-color: var(--color-house); }

.interp-item-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.interp-item-desc {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ---- Journal ---- */
.journal {
  flex: 1;
}

.flex-between {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.journal-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 0.4rem;
}
.journal-list::-webkit-scrollbar { width: 4px; }
.journal-list::-webkit-scrollbar-track { background: transparent; }
.journal-list::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: var(--radius-full);
}

.journal-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-text-subtle);
  font-size: 0.82rem;
  padding: 1.5rem;
  text-align: center;
  min-height: 100px;
  justify-content: center;
}
.journal-placeholder span { font-size: 1.8rem; opacity: 0.4; }

.journal-item {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  animation: journal-slide-in 0.3s ease;
}
@keyframes journal-slide-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.journal-item-combo {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.journal-pip {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: inline-block;
}
.pip-planet { background: var(--color-planet); box-shadow: 0 0 6px var(--color-planet); }
.pip-sign   { background: var(--color-sign);   box-shadow: 0 0 6px var(--color-sign); }
.pip-house  { background: var(--color-house);  box-shadow: 0 0 6px var(--color-house); }

.journal-item-time {
  font-size: 0.68rem;
  color: var(--color-text-subtle);
}

/* ---- Buttons ---- */
.btn-ghost {
  font-size: 0.75rem;
  color: var(--color-text-subtle);
  min-height: 28px;
  padding: 0 0.7rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}
.btn-ghost:hover {
  color: #f87171;
  background: rgba(248, 113, 113, 0.06);
}

/* ============================================================
   FOOTER
   ============================================================ */
.app-footer {
  border-top: 1px solid var(--color-border);
  margin-top: auto;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-footer p {
  font-size: 0.78rem;
  color: var(--color-text-subtle);
}
.app-footer a {
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}
.app-footer a:hover { color: var(--color-planet); }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
@keyframes fade-up-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  animation: fade-up-in 0.55s ease forwards;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .main-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .dice-stage {
    order: 1;
    position: static;
    align-self: auto;
  }
  .reading-panel { order: 2; }
}

@media (max-width: 600px) {
  .app-wrapper { padding: 0 1rem; }
  .app-header { height: 70px; margin-bottom: 1.5rem; }
  .logo-text-group h1 { font-size: 1.35rem; }

  .dice-trio { gap: 0.85rem; }

  .die {
    width: 100px;
    height: 100px;
  }
  .die-symbol { font-size: 1.8rem; }
  .die-house { width: 115px; height: 115px; }
  .die-house .die-symbol { font-size: 1.7rem; }

  .roll-btn { width: 72px; height: 72px; }
  .roll-icon { font-size: 1.3rem; }

  .summary-line { font-size: 1.05rem; }
}
