/* The adventure: the game's loop in four steps, then the summon video. */

.adventure .section-head { grid-template-columns: auto 1fr; grid-template-areas: "marker marker" "title lead"; align-items: end; column-gap: 64px; }
.adventure .marker { grid-area: marker; }
.adventure h2 { grid-area: title; }
.adventure .lead { grid-area: lead; justify-self: end; max-width: 360px; }

.loop { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 64px; counter-reset: step; }
.loop-step { position: relative; padding-inline: 28px; }
.loop-step:first-child { padding-left: 0; }
.loop-step:last-child { padding-right: 0; }
.loop-step + .loop-step { border-left: 1px solid var(--line); }
/* The steps are a loop: the last one leads back to the first. */
.loop-step:last-child::after { position: absolute; right: 0; top: 64px; content: "↺"; color: var(--dim); font: 22px/1 var(--display); }
.loop-art { position: relative; display: flex; align-items: flex-end; height: 150px; margin-bottom: 26px; }
.loop-step h3 { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; font-size: 32px; }
.loop-number { color: var(--torch); font: 22px/1 var(--display); }
.loop-step p { max-width: 280px; color: var(--muted); font-size: 16px; line-height: 1.65; }

.summon-art img { width: 170px; height: auto; filter: drop-shadow(0 0 16px #b57cff26); }
.hunt-art { gap: 0; padding: 0 0 22px 12px; }
.hunt-art .hero-sprite { --scale: 3; position: relative; z-index: 1; }
.hunt-floor { position: absolute; left: 0; bottom: 0; width: 230px; height: 56px; opacity: .8; clip-path: polygon(14% 0, 86% 0, 100% 45%, 86% 100%, 14% 100%, 0 45%); background: repeating-linear-gradient(0deg, transparent 0 19px, #374349 19px 20px), repeating-linear-gradient(90deg, #222e34 0 27px, #374349 27px 28px); }
.mini-monster { position: relative; z-index: 1; width: 48px; height: 48px; margin-left: 18px; margin-bottom: 4px; background: url("../assets/monsters/slime-idle.png") -24px -24px / 768px 384px no-repeat; image-rendering: pixelated; }
.repair-art img { width: 140px; height: auto; filter: drop-shadow(0 0 24px #ff6b3d33); }
.grow-art { padding-left: 6px; }
.grow-art .card { --scale: 2; margin-right: -38px; filter: drop-shadow(0 6px 10px #00000060); }
.grow-art .card .hero-sprite { --scale: 3; }
.grow-art .card:nth-child(1) { rotate: -9deg; translate: 0 6px; }
.grow-art .card:nth-child(2) { rotate: -2deg; }
.grow-art .card:nth-child(3) { rotate: 7deg; translate: 0 -10px; filter: drop-shadow(0 0 14px #6ee06a66); }

.summon-feature { display: grid; grid-template-columns: .7fr 1.3fr; align-items: center; gap: 72px; margin-top: 96px; padding-top: 72px; border-top: 1px solid var(--line); }
.summon-copy h3 { margin-bottom: 20px; font-size: 54px; line-height: .9; }
.summon-copy p { max-width: 340px; color: var(--muted); }
.summon-video { min-width: 0; padding: 7px; background: #171923; box-shadow: inset 0 0 0 2px #4a3d63, 0 0 46px #b57cff1a; }
.summon-video video { width: 100%; height: auto; aspect-ratio: 56 / 33; object-fit: contain; background: #11141a; }
.summon-video figcaption { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 10px 6px; color: #9d90b4; font-size: 14px; }
#video-toggle { display: flex; align-items: center; gap: 8px; padding: 4px 2px; border: 0; color: #d6c3ef; background: none; font-size: 14px; }
#video-toggle:hover { color: #f1e4ff; }
.video-control-icon { width: 12px; font-size: 11px; text-align: center; }

@media (max-width: 1199px) {
  .loop-step { padding-inline: 20px; }
  .loop-step h3 { font-size: 28px; }
  .summon-art img { width: 150px; }
  .hunt-art .hero-sprite { --scale: 2; }
  .hunt-floor { width: 180px; }
  .summon-feature { gap: 44px; }
}
@media (max-width: 959px) {
  .adventure .section-head { grid-template-columns: 1fr; grid-template-areas: "marker" "title" "lead"; }
  .adventure .lead { justify-self: start; }
  .loop { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .loop-step:nth-child(3) { padding-left: 0; border-left: 0; }
  .loop-step:nth-child(2) { padding-right: 0; }
  .summon-feature { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 719px) {
  .loop { grid-template-columns: 1fr; row-gap: 0; margin-top: 40px; }
  .loop-step, .loop-step + .loop-step { display: grid; grid-template-columns: 120px 1fr; column-gap: 20px; padding: 22px 0; border-left: 0; border-top: 1px solid var(--line); }
  .loop-step:first-child { border-top: 0; padding-top: 0; }
  .loop-art { grid-row: span 2; height: 110px; margin-bottom: 0; justify-content: center; align-items: center; }
  .loop-step h3 { align-self: end; margin-bottom: 8px; font-size: 26px; }
  .loop-step p { font-size: 15px; }
  .loop-step:last-child::after { display: none; }
  .summon-art img { width: 116px; }
  .hunt-art { padding: 0 0 12px; }
  .hunt-art .hero-sprite { --scale: 2; margin-left: -6px; }
  .hunt-floor { width: 120px; height: 40px; bottom: 10px; }
  .mini-monster { display: none; }
  .repair-art img { width: 90px; }
  .grow-art .card { margin-right: -56px; }
  .summon-feature { margin-top: 64px; padding-top: 48px; }
  .summon-copy h3 { font-size: 44px; }
}
