* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: none;
  font-family: 'Segoe UI', 'Trebuchet MS', system-ui, -apple-system, sans-serif;
  background: #0d1b1e;
  color: #fff;
}

input[type="text"] {
  -webkit-user-select: text;
  user-select: text;
  touch-action: manipulation;
}

.hidden {
  display: none !important;
}

/* SCREENS */
.screen {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
}

.screen.active {
  display: flex;
}

/* ==========================================
   START SCREEN
   ========================================== */
#start-screen {
  background: radial-gradient(circle at 50% 25%, #1e4d3b 0%, #0f2926 55%, #071314 100%);
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}

.start-card {
  background: rgba(16, 38, 36, 0.92);
  border: 3px solid #68d391;
  border-radius: 26px;
  padding: 22px 26px;
  max-width: 860px;
  width: 100%;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.65), 0 0 30px rgba(104, 211, 145, 0.25);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.title-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.title-banner h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.3rem);
  color: #fefcbf;
  text-shadow: 0 3px 12px rgba(246, 224, 94, 0.45);
}

.sparkle {
  font-size: 1.8rem;
  animation: pulseSparkle 1.8s infinite ease-in-out;
}

@keyframes pulseSparkle {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.25) rotate(12deg); }
}

.subtitle {
  text-align: center;
  color: #b2f5ea;
  font-size: 1.05rem;
  margin-top: -6px;
}

.setup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 720px) {
  .setup-grid {
    grid-template-columns: 1fr;
  }
}

.setup-section {
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(104, 211, 145, 0.35);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.setup-section h2 {
  font-size: 1.15rem;
  color: #9ae6b4;
}

.char-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.char-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 2.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 10px 6px;
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
}

.char-btn.selected {
  border-color: #f6e05e;
  background: rgba(246, 224, 94, 0.18);
  box-shadow: 0 0 18px rgba(246, 224, 94, 0.35);
  transform: translateY(-2px);
}

.char-preview {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: radial-gradient(circle, #2a4365, #1a202c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.char-preview img, .char-preview canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.custom-panel {
  background: rgba(0, 0, 0, 0.28);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.custom-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.action-pill {
  flex: 1;
  text-align: center;
  background: #3182ce;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.action-pill:active {
  transform: scale(0.97);
}

.custom-hint {
  font-size: 0.82rem;
  color: #cbd5e0;
  text-align: center;
}

.name-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.name-input-wrap label {
  font-weight: 700;
  color: #e2e8f0;
  white-space: nowrap;
}

.name-input-wrap input {
  flex: 1;
  background: rgba(0, 0, 0, 0.35);
  border: 2px solid #4fd1c5;
  border-radius: 10px;
  padding: 8px 12px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}

/* Mode Options */
.mode-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mode-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: rgba(255, 255, 255, 0.07);
  border: 2.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 11px 14px;
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
}

.mode-btn.selected {
  border-color: #f6e05e;
  background: rgba(246, 224, 94, 0.18);
  box-shadow: 0 0 16px rgba(246, 224, 94, 0.3);
}

.mode-icon {
  font-size: 1.9rem;
}

.mode-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mode-text strong {
  font-size: 1rem;
  color: #fefcbf;
}

.mode-text small {
  font-size: 0.83rem;
  color: #cbd5e0;
}

/* Magic School Grid */
.magic-school-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@media (max-width: 720px) {
  .magic-school-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.school-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 2.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 10px 10px;
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
}

.school-btn.selected {
  border-color: #f6e05e;
  background: rgba(246, 224, 94, 0.2);
  box-shadow: 0 0 18px rgba(246, 224, 94, 0.35);
  transform: translateY(-2px);
}

.school-icon {
  font-size: 1.45rem;
}

.school-btn strong {
  font-size: 0.95rem;
  color: #fefcbf;
}

.school-btn small {
  font-size: 0.76rem;
  color: #cbd5e0;
  line-height: 1.2;
}

.big-cta-btn {
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
  border: 3px solid #fefcbf;
  border-radius: 18px;
  padding: 14px 24px;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(72, 187, 120, 0.45);
  transition: transform 0.15s;
}

.big-cta-btn:active {
  transform: scale(0.97);
}

/* ==========================================
   MODALS (PAINTER & SPELLBOOK)
   ========================================== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-card {
  background: #1a2e2b;
  border: 3px solid #68d391;
  border-radius: 22px;
  padding: 20px;
  max-width: 560px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.paint-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
  flex-wrap: wrap;
}

.color-palette {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.color-swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

.color-swatch.active {
  border: 3px solid #fff;
  transform: scale(1.2);
}

#paint-canvas {
  background: radial-gradient(circle, #2d3748, #1a202c);
  border: 3px dashed #68d391;
  border-radius: 50%;
  cursor: crosshair;
  touch-action: none;
}

.modal-actions {
  display: flex;
  gap: 12px;
  width: 100%;
  justify-content: flex-end;
}

.primary-btn, .secondary-btn, .small-btn {
  border: none;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}

.primary-btn {
  background: #48bb78;
  color: #fff;
}

.secondary-btn {
  background: #4a5568;
  color: #fff;
}

.small-btn {
  background: #2d3748;
  color: #e2e8f0;
  border: 1px solid #718096;
  padding: 7px 12px;
  font-size: 0.85rem;
}

/* ==========================================
   WORLD / EXPLORATION SCREEN
   ========================================== */
#game-screen {
  position: relative;
  background: #0f291e;
}

#world-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hud-top {
  position: absolute;
  top: 12px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
  z-index: 20;
}

.player-badge {
  pointer-events: auto;
  background: rgba(14, 30, 26, 0.88);
  border: 2px solid #68d391;
  border-radius: 18px;
  padding: 8px 14px 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.avatar-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #234e52;
  border: 2px solid #f6e05e;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-circle canvas, .avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-stats {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 145px;
}

.player-name-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.95rem;
}

.lvl-pill {
  background: #d69e2e;
  color: #1a202c;
  font-size: 0.75rem;
  padding: 2px 7px;
  border-radius: 8px;
  font-weight: 800;
}

.hp-bar-outer {
  position: relative;
  width: 100%;
  height: 18px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.hp-bar-outer.large {
  height: 24px;
}

.hp-bar-inner {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #48bb78, #38a169);
  transition: width 0.25s ease;
}

.monster-hp .hp-bar-inner {
  background: linear-gradient(90deg, #f56565, #e53e3e);
}

.hp-bar-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  text-shadow: 0 1px 3px #000;
}

.hud-buttons {
  pointer-events: auto;
  display: flex;
  gap: 8px;
}

.hud-btn {
  background: rgba(14, 30, 26, 0.9);
  border: 2px solid #f6e05e;
  color: #fefcbf;
  border-radius: 14px;
  padding: 10px 14px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.hud-btn:active {
  transform: scale(0.95);
}

/* Tutorial Banner */
.tutorial-banner {
  position: absolute;
  top: 82px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 42, 58, 0.94);
  border: 2.5px solid #f6e05e;
  border-radius: 20px;
  padding: 12px 18px;
  max-width: 620px;
  width: calc(100% - 32px);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 20;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.owl-avatar {
  font-size: 2.5rem;
  background: rgba(246, 224, 94, 0.15);
  border-radius: 50%;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tutorial-content strong {
  color: #f6e05e;
  font-size: 0.95rem;
  display: block;
  margin-bottom: 2px;
}

.tutorial-content p {
  font-size: 0.95rem;
  line-height: 1.35;
  color: #f7fafc;
}

.world-toast {
  position: absolute;
  bottom: 140px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(246, 224, 94, 0.95);
  color: #1a202c;
  font-weight: 800;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 1.05rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  z-index: 30;
  pointer-events: none;
}

/* Virtual Joystick */
.joystick-zone {
  position: absolute;
  bottom: 24px;
  left: 24px;
  width: 130px;
  height: 130px;
  z-index: 25;
}

.joystick-base {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 3px solid rgba(255, 255, 255, 0.35);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.joystick-stick {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fefcbf, #d69e2e);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  position: absolute;
  transition: transform 0.05s linear;
}

/* Spellbook Modal */
.spellbook-card {
  max-width: 640px;
  max-height: 88vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.close-x {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

.mode-switcher-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  padding: 10px 14px;
  border-radius: 12px;
  gap: 10px;
  flex-wrap: wrap;
}

.mini-mode-btns {
  display: flex;
  gap: 6px;
}

.mini-mode-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid transparent;
  color: #fff;
  padding: 6px 10px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.mini-mode-btn.active {
  border-color: #f6e05e;
  background: rgba(246, 224, 94, 0.22);
}

.spellbook-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
  width: 100%;
}

.spell-entry {
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(104, 211, 145, 0.4);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.spell-entry.locked {
  opacity: 0.45;
  border-style: dashed;
}

.spell-entry-icon {
  font-size: 2rem;
}

/* ==========================================
   REAL-TIME BATTLE SCREEN
   ========================================== */
#battle-screen {
  background: radial-gradient(circle at 50% 35%, #234e52 0%, #132a2e 60%, #091417 100%);
  z-index: 100;
  padding: 12px;
  align-items: center;
  justify-content: center;
}

.battle-arena {
  width: 100%;
  max-width: 920px;
  height: 100%;
  max-height: 680px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.battle-fighters {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-height: 0;
}

.fighter-card {
  background: rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.fighter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-size: 1.05rem;
}

.shield-badge {
  background: #3182ce;
  color: #fff;
  font-size: 0.78rem;
  padding: 3px 8px;
  border-radius: 8px;
  font-weight: 800;
}

.status-badge {
  background: #63b3ed;
  color: #1a202c;
  font-size: 0.78rem;
  padding: 3px 8px;
  border-radius: 8px;
  font-weight: 800;
}

.monster-intent-bar {
  position: relative;
  width: 100%;
  height: 20px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(246, 173, 85, 0.5);
}

.intent-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ecc94b, #dd6b20);
  transition: width 0.1s linear;
}

#monster-intent-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  text-shadow: 0 1px 2px #000;
}

.fighter-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hit-fx {
  position: absolute;
  font-size: 1.5rem;
  font-weight: 900;
  pointer-events: none;
  opacity: 0;
}

.hit-fx.pop {
  animation: floatDamage 0.9s ease-out forwards;
}

@keyframes floatDamage {
  0% { opacity: 1; transform: translateY(0) scale(0.8); }
  40% { opacity: 1; transform: translateY(-20px) scale(1.2); }
  100% { opacity: 0; transform: translateY(-45px) scale(1); }
}

.battle-center-fx {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  position: relative;
}

.battle-announcement {
  background: rgba(246, 224, 94, 0.2);
  border: 2px solid #f6e05e;
  color: #fefcbf;
  padding: 6px 12px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.9rem;
  text-align: center;
}

.spell-projectile {
  font-size: 2.8rem;
  position: absolute;
  z-index: 40;
}

/* Battle Bottom Controls */
.battle-controls {
  background: rgba(12, 26, 28, 0.95);
  border: 2.5px solid #68d391;
  border-radius: 22px;
  padding: 14px;
  min-height: 225px;
  display: flex;
  flex-direction: column;
}

.deck-header, .challenge-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-weight: 800;
  color: #b2f5ea;
}

.flee-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 6px 12px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.battle-spell-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  flex: 1;
}

.spell-cast-btn {
  position: relative;
  background: linear-gradient(145deg, #2d3748, #1a202c);
  border: 2.5px solid #4fd1c5;
  border-radius: 16px;
  padding: 12px;
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  overflow: hidden;
  transition: transform 0.1s;
}

.spell-cast-btn:active:not(:disabled) {
  transform: scale(0.96);
}

.spell-cast-btn:disabled {
  opacity: 0.55;
  border-color: #718096;
  cursor: not-allowed;
}

.spell-cast-btn .sp-icon {
  font-size: 2rem;
}

.spell-cast-btn .sp-name {
  font-weight: 800;
  font-size: 1rem;
  color: #fefcbf;
}

.spell-cast-btn .sp-desc {
  font-size: 0.78rem;
  color: #cbd5e0;
}

.cooldown-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.72);
  color: #f6e05e;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  pointer-events: none;
}

/* Challenge Body (Mini-tasks, Writing, Speaking) */
.casting-challenge-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.challenge-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
}

/* Writing Challenge */
.word-slots {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.letter-slot {
  width: 40px;
  height: 46px;
  border-bottom: 3px solid #68d391;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 900;
  color: #fefcbf;
}

.letter-tiles {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.letter-tile-btn {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #3182ce;
  border: 2.5px solid #90cdf4;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.letter-tile-btn.used {
  opacity: 0.25;
  pointer-events: none;
}

/* Speaking Challenge */
.speak-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.incantation-phrase {
  font-size: 1.5rem;
  font-weight: 900;
  color: #f6e05e;
  background: rgba(246, 224, 94, 0.14);
  padding: 8px 20px;
  border-radius: 14px;
  border: 2px dashed #f6e05e;
}

.mic-pulse-btn {
  background: #e53e3e;
  border: 3px solid #feb2b2;
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  animation: pulseMic 1.2s infinite ease-in-out;
}

@keyframes pulseMic {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(229, 62, 62, 0.7); }
  50% { transform: scale(1.06); box-shadow: 0 0 0 14px rgba(229, 62, 62, 0); }
}

/* Mini-Task Area */
.task-playfield {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 145px;
  background: rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(104, 211, 145, 0.45);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.star-node {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle, #fefcbf, #d69e2e);
  border: 3px solid #fff;
  color: #1a202c;
  font-weight: 900;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(246, 224, 94, 0.8);
}

.star-node.done {
  background: #48bb78;
  color: #fff;
  transform: scale(0.85);
  opacity: 0.6;
}

.riddle-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.riddle-btn {
  background: #805ad5;
  border: 2.5px solid #d6bcfa;
  color: #fff;
  padding: 12px 22px;
  border-radius: 14px;
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
}
