/* One edge-to-edge portal scene; character stays a separate uncropped layer. */
:root {
  --bg: #0d1031;
  --panel: #221b54;
  --line: #8064c8;
}
html,
body {
  background: #0d1031 url(assets/portal-resolute-v1.webp) center/cover fixed;
}
body {
  background-image: linear-gradient(#090c2499, #15102a66), url(assets/portal-resolute-v1.webp);
}
body main {
  max-width: none;
}
body:has(#home:not([hidden])) main {
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
}
nav {
  padding-left: 12px;
  padding-right: 12px;
  background: #11132de6;
  border-color: #c795ff66;
}
#home {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.mirror-stage {
  background: #0d1031 url(assets/portal-resolute-v1.webp) center 65% / cover no-repeat;
}
.mirror-stage:before,
.mirror-stage:after,
.mirror-orbit,
.hero-platform,
.hero-reflection {
  display: none;
}
.hero-heading {
  z-index: 5;
  top: 4%;
}
.hero-heading h1 {
  text-shadow:
    0 3px #211345,
    0 0 18px #07091f;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.hero-heading .eyebrow {
  color: #ffd77e;
}
.hub-puls {
  top: 17%;
  height: 72%;
  width: 64%;
  object-fit: contain;
  filter: drop-shadow(0 12px 12px #070517) drop-shadow(0 0 14px #ad67ff66);
}
.orbit-button {
  border-radius: 16px;
  border: 2px solid #f6dcff;
  transform: rotate(-3deg);
  background:
    linear-gradient(135deg, #ffffff44, transparent 45%),
    linear-gradient(155deg, var(--tile), #261746);
  box-shadow:
    inset 0 3px #fff8,
    inset 0 -5px #080b2633,
    0 6px 0 var(--edge),
    0 0 18px #ae68ff55,
    0 14px 20px #05071799;
}
.orbit-skin,
.orbit-board,
.orbit-room {
  transform: rotate(3deg);
}
.orbit-button:hover {
  background:
    linear-gradient(135deg, #ffffff66, transparent 45%),
    linear-gradient(155deg, var(--tile), #261746);
  transform: translateY(-3px) rotate(0);
}
.orbit-button .orbit-art {
  filter: drop-shadow(0 5px 3px #110c32) drop-shadow(0 0 8px #ffffff55);
}
.arcade-arrow {
  z-index: 6;
  border-radius: 14px;
  box-shadow:
    inset 0 2px #fff,
    0 6px #9b4921,
    0 0 25px #ffc04d88;
}
.hero-hint {
  text-shadow: 0 2px 4px #000;
}
.track {
  background:
    linear-gradient(180deg, #7b37958c, #201444aa 48%, #194d7199),
    url(assets/portal-resolute-v1.webp) center/cover;
  border-color: #b982ff;
  box-shadow:
    inset 0 2px #ffe3ff66,
    0 0 20px #984dff44;
}
.tier .item.reward-item {
  background:
    radial-gradient(ellipse at 50% 45%, #48bcff66, transparent 70%),
    linear-gradient(145deg, #305878b3, #181d4688);
  border-color: #89e0ff99;
}
.tier .item.reward-item.premium {
  background:
    radial-gradient(ellipse at 50% 42%, #e6a9ff77, transparent 70%),
    linear-gradient(145deg, #794889b3, #2b1b4c99);
  border-color: #ffdf9faa;
}
@media (max-width: 700px) {
  .hub-puls {
    top: 20%;
    height: 66%;
    width: 80%;
  }
  .hero-heading h1 {
    max-width: 320px;
  }
  .orbit-avatar,
  .orbit-skin {
    top: 25%;
  }
  .orbit-reaction,
  .orbit-board {
    top: 47%;
  }
  .orbit-frame,
  .orbit-room {
    top: 68%;
  }
  .orbit-avatar,
  .orbit-frame {
    left: 3%;
  }
  .orbit-reaction {
    left: 2%;
  }
  .orbit-skin,
  .orbit-room {
    right: 3%;
  }
  .orbit-board {
    right: 2%;
  }
}
@media (orientation: landscape) and (max-width: 1024px) and (max-height: 500px) {
  .hub-puls {
    left: 43%;
    top: 2%;
    height: 96%;
    width: 40%;
  }
  .hero-heading {
    top: 8%;
    width: 25%;
  }
  .hero-heading h1 {
    font-size: 18px;
  }
  .orbit-avatar {
    left: auto;
    right: 25%;
    top: 8%;
  }
  .orbit-reaction {
    left: auto;
    right: 25%;
    top: 38%;
  }
  .orbit-frame {
    left: auto;
    right: 25%;
    top: 68%;
  }
  .orbit-skin {
    right: 7%;
    top: 8%;
  }
  .orbit-board {
    right: 7%;
    top: 38%;
  }
  .orbit-room {
    right: 7%;
    top: 68%;
  }
}

/* Portrait phones: three quests per column, with horizontal paging unchanged. */
@media (max-width: 700px) and (orientation: portrait) {
  .quest-list {
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .quest {
    padding: 10px 14px;
  }
  .quest-label {
    font-size: 9px;
  }
  .quest h3 {
    font-size: 16px;
    line-height: 1.2;
    margin: 5px 0 8px;
  }
  .quest-bottom {
    margin-top: 7px;
    font-size: 11px;
  }
  .quest-bottom button {
    min-height: 44px;
    padding: 6px 14px;
    font-size: 12px;
  }
}
@media (max-width: 700px) and (orientation: portrait) and (max-height: 530px) {
  .quest { padding: 6px 10px; }
  .quest-label { display: none; }
  .quest h3 { font-size: 14px; line-height: 1.1; margin: 3px 0 4px; }
  .quest-bottom { margin-top: 4px; font-size: 10px; }
}
