
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Playfair+Display:ital,wght@0,500;0,600;1,500&display=swap');

* { box-sizing: border-box; }

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

body {
  min-height: 100vh;
  color: #526c60;
  font-family: 'Cormorant Garamond', serif;
  background: #e8f0eb;
}

[hidden] { display: none !important; }

/* COVER */

.welcome-screen {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 12px;
  background:
    radial-gradient(ellipse at 10% 15%, #c9e1df, transparent 45%),
    radial-gradient(ellipse at 90% 85%, #c6dfd8, transparent 45%),
    #e8f0eb;
}

.cover-art {
  position: relative;
  width: min(96vw, 78svh);
  max-height: 96svh;
  line-height: 0;
  box-shadow: 0 15px 45px #526c6030;
}

.cover-art img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 96svh;
  object-fit: contain;
}

.start-button {
  position: absolute;
  left: 25%;
  top: 81%;
  width: 50%;
  height: 10%;
  border: none;
  border-radius: 40px;
  background: transparent;
  cursor: pointer;
}

.start-button:hover { background: #ffffff12; }

.start-button:focus-visible {
  outline: 3px dashed #527b67;
  outline-offset: 4px;
}

/* ADVENTURE */

.adventure-screen {
  min-height: 100vh;
  padding: 45px 20px 70px;
  text-align: center;
  background:
    radial-gradient(ellipse at top, #e3eee5, transparent 65%),
    #fffdf6;
}

.game-header {
  margin: 0 auto 35px;
  max-width: 750px;
}

.little-heading {
  color: #b17c7b;
  font-size: 21px;
  font-style: italic;
}

.game-header h1,
.quiz-panel h2,
.ending-panel h2 {
  color: #527b67;
  font-family: 'Playfair Display', serif;
  font-weight: 500;
}

.game-header h1 {
  font-size: clamp(36px, 7vw, 58px);
  margin: 8px 0;
}

.game-header > p:not(.little-heading) {
  font-size: 21px;
}

.hearts {
  font-size: 28px;
  letter-spacing: 5px;
  margin-top: 18px;
}

.heart-message {
  margin-top: 5px;
  font-size: 17px !important;
  font-style: italic;
  color: #b17c7b;
}

/* KINGDOM MAP */

.map-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 850px;
  margin: auto;
}

.kingdom-card {
  padding: 25px 18px;
  border: 1px solid #d9dfce;
  border-radius: 18px;
  background: #fffdf8;
  box-shadow: 0 8px 25px #526c6012;
  text-align: center;
}

.kingdom-icon {
  font-size: 48px;
  margin-bottom: 10px;
}

.kingdom-card h3 {
  margin: 5px 0;
  color: #527b67;
  font-family: 'Playfair Display', serif;
  font-size: 23px;
  font-weight: 500;
}

.kingdom-card p {
  font-size: 18px;
  line-height: 1.4;
}

.kingdom-card.locked {
  opacity: 0.58;
  filter: grayscale(0.5);
}

.kingdom-card.completed {
  border-color: #9aaf96;
  background: #f2f7ef;
}

.kingdom-card button,
.main-button {
  padding: 12px 25px;
  border: none;
  border-radius: 30px;
  background: #78977e;
  color: white;
  font-family: inherit;
  font-size: 18px;
  cursor: pointer;
}

.kingdom-card button:disabled {
  background: #aab7aa;
  cursor: not-allowed;
}

.kingdom-card button:hover,
.main-button:hover {
  background: #5f8069;
}

/* QUIZ */

.quiz-panel,
.ending-panel {
  max-width: 650px;
  margin: 25px auto;
  padding: 30px 24px;
  border: 1px solid #d9dfce;
  border-radius: 20px;
  background: #fffdf8;
  box-shadow: 0 12px 35px #526c6015;
}

.back-button {
  display: block;
  margin-bottom: 25px;
  border: none;
  background: transparent;
  color: #66866d;
  font-family: inherit;
  font-size: 18px;
  cursor: pointer;
}

.quiz-panel h2 {
  font-size: 32px;
}

.question-text {
  font-size: 23px;
  line-height: 1.5;
}

.answer-options {
  display: grid;
  gap: 12px;
  margin: 25px 0;
}

.answer-option {
  padding: 14px 18px;
  border: 1px solid #b8c8b4;
  border-radius: 12px;
  background: #f6f8f1;
  color: #526c60;
  font-family: inherit;
  font-size: 20px;
  cursor: pointer;
}

.answer-option:hover:not(:disabled) {
  background: #e6efe3;
}

.answer-option:disabled { cursor: default; }

.answer-option.correct {
  border-color: #78977e;
  background: #e1efdf;
}

.answer-option.wrong {
  border-color: #d69a9a;
  background: #f8e8e6;
}

.feedback {
  min-height: 65px;
  margin: 15px 0;
  font-size: 21px;
  line-height: 1.4;
}

.feedback.good { color: #527b67; }
.feedback.bad { color: #b16e70; }

.main-button { margin-top: 12px; }

/* ENDINGS */

.ending-crown {
  font-size: 65px;
}

.ending-panel h2 {
  font-size: 32px;
}

.ending-panel p {
  font-size: 22px;
  line-height: 1.5;
}

/* SMALL SCREENS */

@media (max-width: 600px) {
  .map-grid {
    grid-template-columns: 1fr;
    max-width: 390px;
  }

  .adventure-screen {
    padding: 30px 14px 50px;
  }

  .quiz-panel,
  .ending-panel {
    padding: 25px 16px;
  }
}
