/* Armor of God game. Painted stages, parchment page, sticky way back. */
body.page-kidz:has(.verse-game) {
  background-color: #f3e4c4;
  background-image: radial-gradient(circle at 50% -10%, rgba(255, 248, 220, .95), transparent 46%), linear-gradient(#f8efd8, #e7d2a6);
}
.verse-game {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 .75rem 2rem;
}
body.page-kidz main h1.verse-title {
  margin: .15rem 0 .2rem;
  text-align: center;
  font-family: var(--serif), Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 6vw, 2.35rem);
  font-weight: 700;
  line-height: 1.1;
  color: #6a4214;
}
.verse-lead {
  margin: 0 0 .7rem;
  text-align: center;
  font-weight: 600;
  line-height: 1.35;
  color: #5c4630;
}
body.page-kidz main a.verse-back {
  position: sticky;
  top: var(--site-header-offset);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin: .4rem 0 .55rem;
  padding: .55rem 1rem;
  border: 3px solid #8a6230;
  border-radius: 999px;
  background: linear-gradient(#ffe7a8, #e8c56b);
  color: #3a2a16;
  font: 700 1.05rem/1.2 Fredoka, "Trebuchet MS", Verdana, sans-serif;
  text-decoration: none;
  box-shadow: 0 4px 0 #8a6230;
  touch-action: manipulation;
}
.verse-back:focus-visible { outline: 3px solid #3a2a16; outline-offset: 3px; }
.verse-scene {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 4px solid #c6a15a;
  border-radius: 22px;
  background: #1c140c;
  box-shadow: 0 0 0 1px #f8ecc8 inset, 0 10px 0 rgba(92, 59, 22, .12);
}
.armor-frame {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity .55s ease;
}
.armor-frame.is-show { opacity: 1; z-index: 1; }
.armor-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.verse-shine,
.verse-burst,
.verse-rays {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.verse-shine {
  background: linear-gradient(115deg, transparent 32%, rgba(255, 244, 196, 0) 42%, rgba(255, 236, 170, .82) 50%, transparent 58%);
  transform: translateX(-120%);
  opacity: 0;
}
.verse-scene.is-shining .verse-shine { animation: armor-shine .7s ease; }
.verse-burst {
  left: 50%;
  top: 42%;
  width: 10rem;
  height: 10rem;
  margin: -5rem 0 0 -5rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 244, 196, .85), transparent 68%);
  opacity: 0;
}
.verse-game.is-celebrating .verse-burst { opacity: 1; animation: verse-burst 1.1s ease; }
.verse-rays {
  background: repeating-conic-gradient(from 0deg at 50% 38%, rgba(255, 236, 170, .42) 0 8deg, transparent 8deg 22deg);
  opacity: 0;
}
.verse-game.is-celebrating .verse-rays { opacity: .9; }
@keyframes armor-shine {
  0% { transform: translateX(-120%); opacity: 0; }
  25% { opacity: 1; }
  100% { transform: translateX(120%); opacity: 0; }
}
@keyframes verse-burst {
  from { transform: scale(.35); opacity: .2; }
  to { transform: scale(1.7); opacity: 1; }
}
.armor-label {
  min-height: 1.7rem;
  margin: .55rem 0 .15rem;
  text-align: center;
  font-family: var(--serif), Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 4.5vw, 1.7rem);
  font-weight: 700;
  color: #8a5a12;
}
.armor-label.is-new { animation: label-pop .5s ease; }
@keyframes label-pop {
  0% { transform: scale(.82); opacity: 0; }
  65% { transform: scale(1.05); opacity: 1; }
  100% { transform: none; opacity: 1; }
}
.armor-meter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem;
  margin: 0 0 .55rem;
  padding: 0;
  list-style: none;
}
.armor-meter li {
  display: grid;
  place-items: center;
  width: 2.45rem;
  height: 2.45rem;
  border: 3px solid #d9c49a;
  border-radius: 50%;
  background: #fffaf0;
}
.armor-meter li.is-on {
  border-color: #c6922e;
  background: radial-gradient(circle at 40% 35%, #fff6d2, #f0d48a);
  box-shadow: 0 0 0 2px rgba(198, 146, 46, .25);
}
.armor-icon { width: 1.35rem; height: 1.35rem; filter: grayscale(1) brightness(1.05); }
.armor-meter li.is-on .armor-icon { filter: none; }
.verse-level {
  margin: .85rem 0 .35rem;
  text-align: center;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8a5a12;
}
.verse-prompt {
  margin: 0;
  padding: 1rem 1.05rem;
  background: #fffaf0;
  border: 3px solid #c6a15a;
  border-radius: 18px;
  box-shadow: 0 8px 0 rgba(120, 84, 32, .08);
  font-family: var(--serif), Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 4.4vw, 1.55rem);
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  color: #3a2a16;
}
.verse-blank {
  display: inline-block;
  min-width: 4.5rem;
  border-bottom: 2px solid #8a6230;
  color: #8a5a12;
}
.verse-ref {
  margin: .45rem 0 .5rem;
  text-align: center;
  font-family: var(--serif), Georgia, "Times New Roman", serif;
  font-weight: 700;
  color: #6a4214;
}
.verse-feedback {
  margin: 0 0 .55rem;
  padding: .4rem .9rem;
  border-radius: 999px;
  border: 3px solid #c6922e;
  background: #fffaf0;
  text-align: center;
  font-weight: 700;
  color: #8a3e12;
}
.verse-feedback.is-yes { border-color: #6f8f3a; color: #3d5a16; }
.verse-feedback[hidden] { display: none; }
.verse-choices { display: grid; gap: .7rem; }
.verse-choice {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: .7rem .9rem;
  border: 3px solid #c6a15a;
  border-radius: 16px;
  background: linear-gradient(#fffaf0, #f4e3bc);
  color: #3a2a16;
  font: 700 1.15rem/1.3 Fredoka, "Trebuchet MS", Verdana, sans-serif;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 0 #a6843e;
  touch-action: manipulation;
}
.verse-choice:focus-visible { outline: 3px solid #3a2a16; outline-offset: 3px; }
.verse-choice.is-wrong {
  background: #e7e1d4;
  color: #8d8476;
  border-color: #cfc6b4;
  box-shadow: none;
  cursor: default;
}
.verse-choice.is-right {
  background: #f4f8ea;
  color: #2f4a16;
  border-color: #7d9a45;
  box-shadow: 0 4px 0 #5f7a32;
}
.verse-choice:disabled { cursor: default; }
.verse-play[hidden],
.verse-win[hidden] { display: none; }
.verse-win {
  margin-top: .9rem;
  padding: 1.1rem 1rem 1.2rem;
  background: #fffaf0;
  border: 3px solid #c6a15a;
  border-radius: 22px;
  box-shadow: 0 8px 0 rgba(120, 84, 32, .08);
  text-align: center;
}
body.page-kidz main .verse-win h2 {
  margin: 0 0 .55rem;
  font-family: var(--serif), Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.15;
  color: #6a4214;
}
.verse-win blockquote {
  margin: 0;
  font-family: var(--serif), Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 4vw, 1.45rem);
  font-weight: 600;
  line-height: 1.4;
  color: #3a2a16;
}
.verse-win cite {
  display: block;
  margin-top: .45rem;
  font-style: normal;
  font-weight: 700;
  color: #8a5a12;
}
.verse-again {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: .9rem;
  padding: .6rem 1.3rem;
  border: 3px solid #8a6230;
  border-radius: 999px;
  background: linear-gradient(#ffe7a8, #e8c56b);
  color: #3a2a16;
  font: 700 1.05rem/1.2 Fredoka, "Trebuchet MS", Verdana, sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 0 #8a6230;
}
.verse-again:focus-visible { outline: 3px solid #3a2a16; outline-offset: 3px; }
.verse-credit {
  margin: 1rem 0 0;
  font-family: Inter, "Trebuchet MS", Verdana, sans-serif;
  font-size: .78rem;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
  color: #5c4630;
}
.verse-spark {
  position: absolute;
  left: 46%;
  top: 18%;
  z-index: 3;
  width: 1.6rem;
  height: 1.6rem;
  background: #ffe7a8;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: verse-pop .6s ease forwards;
}
@keyframes verse-pop {
  from { transform: scale(.4); opacity: 1; }
  to { transform: scale(1.5); opacity: 0; }
}
@media (max-width: 359px) {
  .armor-meter { gap: .28rem; }
  .armor-meter li { width: 2.15rem; height: 2.15rem; }
  .armor-icon { width: 1.15rem; height: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
  .armor-frame,
  .verse-shine,
  .verse-spark,
  .armor-label.is-new,
  .verse-game.is-celebrating .verse-burst,
  .verse-game.is-celebrating .verse-rays { transition: none; animation: none; }
}
