:root { color-scheme: dark; font-family: system-ui, sans-serif; background: #080b18; }
* { box-sizing: border-box; }
body { margin: 0; }
.hero { position: relative; height: 100svh; min-height: 360px; overflow: hidden; isolation: isolate; background: #080b18; touch-action: pan-y pinch-zoom; }
.scene { position: absolute; width: 1920px; height: 1080px; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(var(--scale, 1)); }
.layer { position: absolute; pointer-events: none; user-select: none; max-width: none; }
.scene.moving .layer { will-change: transform; }
.scene-shade { pointer-events: none; position: absolute; inset: 0; background: linear-gradient(0deg, #080b18, transparent 7%), linear-gradient(90deg, #080b18, transparent 4%, transparent 96%, #080b18); }
/* The supplied transparent square has generous empty margins above/below.
   Frame the artwork in CSS while preserving the original PNG unchanged. */
.game-logo { position: absolute; z-index: 10; top: max(16px, 2.5svh); left: 50%; transform: translateX(-50%); width: min(30vw, 42svh, 460px); aspect-ratio: 1.6; margin: 0; overflow: hidden; pointer-events: none; user-select: none; filter: drop-shadow(0 6px 12px #030615a0); }
.game-logo img { position: absolute; width: 100%; height: auto; left: 0; top: -34.5%; }
@media (max-width: 650px) { .game-logo { width: min(76vw, 36svh, 360px); top: max(18px, 3svh); } }

@font-face {
  font-family: 'BDCRAFT Goblins';
  src: url('assets/fonts/BDCRAFTGoblins.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
h2, h3 { font-family: 'BDCRAFT Goblins', system-ui, sans-serif; font-weight: 400; font-synthesis: none; }
/* Landing page sections. */
html { scroll-behavior: auto; }
body { color: #f5f1eb; }
a { color: inherit; }
a:focus-visible { outline: 2px solid #f5cc83; outline-offset: 6px; }
.skip-link { position: fixed; left: 16px; top: 16px; z-index: 100; padding: 12px 18px; background: #171428; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.section { position: relative; padding: clamp(72px, 8vw, 130px) 24px; }
.section-inner { max-width: 1160px; margin-inline: auto; }
.video-section { background: radial-gradient(ellipse at 50% 45%, #29204455, transparent 65%), #080b18; }
.section-heading { text-align: center; max-width: 800px; margin: 0 auto 44px; }
.eyebrow { font-size: 11px; font-weight: 650; letter-spacing: .18em; text-transform: uppercase; color: #eac68e; margin: 0 0 22px; }
.eyebrow > span { color: #80748e; margin-right: 10px; }
h2 { font-size: clamp(32px, 4.4vw, 62px); line-height: 1.2; letter-spacing: normal; margin: 0; }
h2 span { color: #eed4a7; }
.section-intro { color: #a4a4b8; line-height: 1.7; font-size: 15px; margin: 22px auto 0; max-width: 560px; }
.frame-corner { position: absolute; width: 24px; height: 24px; pointer-events: none; }
.section-footnote { display: flex; justify-content: space-between; padding-top: 16px; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; color: #888398; }
.features-section { border-top: 1px solid #ffffff0c; background: radial-gradient(ellipse at 50% 5%, #20233b66, transparent 65%), #0b0e1c; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.feature-card { --accent: #f6ad57; --glow: #fa8a2528; border: 1px solid #ffffff12; background: #101321; overflow: hidden; }
.feature-green { --accent: #b6d78b; --glow: #91c35a25; }
.feature-ice { --accent: #8be0f5; --glow: #29c4f028; }
.feature-art { position: relative; height: 310px; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at 50% 65%, var(--glow), transparent 67%); }
.feature-art img { position: relative; height: 270px; width: auto; max-width: 92%; object-fit: contain; filter: drop-shadow(0 12px 18px #0005); }
.feature-number { position: absolute; top: 22px; left: 22px; color: #ffffff0b; font-size: 100px; font-weight: 800; letter-spacing: -.07em; line-height: 1; }
.feature-copy { padding: 0 28px 34px; }
.feature-copy .eyebrow { color: var(--accent); font-size: 10px; letter-spacing: .12em; margin-bottom: 14px; }
.feature-copy h3 { font-size: 23px; line-height: 1.3; letter-spacing: normal; margin: 0 0 14px; }
.feature-copy > p:last-child { color: #a4a4b8; font-size: 14px; line-height: 1.8; margin: 0; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 30px max(24px, calc((100vw - 1160px) / 2)); border-top: 1px solid #ffffff12; color: #9994a9; font-size: 11px; letter-spacing: .08em; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #eed4a7; }
@media (max-width: 760px) {
  .feature-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .feature-art { height: 260px; }
  .feature-art img { height: 240px; }
  .section { padding-inline: 20px; }
  .section-heading { margin-bottom: 32px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.scroll-cue { position: absolute; z-index: 12; bottom: 25px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 10px 14px; color: #fff3dc; text-decoration: none; border-radius: 28px; filter: drop-shadow(0 2px 5px #000); }
.mouse-icon { position: relative; display: block; width: 29px; height: 44px; border: 2px solid currentColor; border-radius: 16px; background: #080b1840; }
.mouse-wheel { position: absolute; width: 3px; height: 9px; top: 8px; left: 50%; transform: translateX(-50%); border-radius: 3px; background: currentColor; }
.scroll-dots { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.scroll-dots span { width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: scroll-down 1.65s ease-in-out infinite; }
.scroll-dots span:nth-child(2) { animation-delay: .18s; }
.scroll-dots span:nth-child(3) { animation-delay: .36s; }
.scroll-cue:hover { color: #ffd08a; }
@keyframes scroll-down { 0%, 70%, 100% { opacity: .2; transform: translateY(-3px); } 35% { opacity: 1; transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) { .scroll-dots span { animation: none; opacity: .8; } }

/* Fire and ice frame the player; typography stays white. */
.video-section { color: #fff; background: radial-gradient(ellipse at 7% 60%, #ff681921, transparent 48%), radial-gradient(ellipse at 93% 60%, #20d8ff21, transparent 48%), #080b18; }
.video-section h2, .video-section h2 span, .video-section .eyebrow, .video-section .section-intro { color: #fff; }
.video-section .eyebrow > span { color: #ff812e; }
.video-section .section-heading::after { content: ''; display: block; width: 100px; height: 3px; margin: 28px auto 0; background: linear-gradient(90deg, #ff721f, #ffad56 38%, #71e8ff 62%, #20d8ff); }
.video-frame { position: relative; aspect-ratio: 16 / 9; margin: 0; border: 2px solid transparent; background: linear-gradient(#050711, #050711) padding-box, linear-gradient(110deg, #ff721f, #ff9e4b 20%, #303047 48%, #38d9ff 80%, #8cefff) border-box; box-shadow: -22px 4px 65px #ff68191a, 22px 4px 65px #20d8ff1a, 0 24px 80px #0005; }
.video-frame iframe { position: absolute; inset: 0; display: block; width: 100%; max-width: 100%; height: 100%; min-width: 0; border: 0; }
.top-left { top: -2px; left: -2px; border-top: 3px solid #ff913d; border-left: 3px solid #ff913d; }
.bottom-right { bottom: -2px; right: -2px; border-bottom: 3px solid #62e5ff; border-right: 3px solid #62e5ff; }
.video-section .section-footnote { color: #fff; gap: 16px; flex-wrap: wrap; }
.video-section .section-footnote a { text-underline-offset: 4px; }
.video-section .section-footnote a:hover { color: #75e7ff; }

/* Carved obsidian surround, with warm and frozen crystal corner pieces. */
.video-frame {
  border-width: 10px;
  border-radius: 8px;
  background: linear-gradient(#050711, #050711) padding-box,
    linear-gradient(135deg, #ffad56 0%, #713d31 3%, #242332 16%, #3d3440 32%, #171c2c 49%, #284353 73%, #408fac 95%, #9af3ff 100%) border-box;
  box-shadow: -18px 0 55px #ff681925, 18px 0 55px #20d8ff25, 0 24px 70px #0009,
    -2px 0 0 #ff812eaa, 2px 0 0 #54e6ff99, 0 2px 0 #080b18;
}
.video-frame::before, .video-frame::after { content: ''; position: absolute; z-index: 2; height: 3px; width: 32%; pointer-events: none; }
.video-frame::before { top: -7px; left: 2%; background: linear-gradient(90deg, #ffe09b, #ff751e 45%, transparent); box-shadow: 0 -3px 14px #ff751e66; }
.video-frame::after { bottom: -7px; right: 2%; background: linear-gradient(90deg, transparent, #23d8ff 55%, #d0fcff); box-shadow: 0 3px 14px #23d8ff66; }
.video-frame iframe { border-radius: 2px; background: #050711; }
.video-frame .frame-corner { width: 42px; height: 42px; z-index: 3; }
.video-frame .top-left { top: -12px; left: -12px; border-width: 4px; border-radius: 7px 0 0 0; filter: drop-shadow(0 0 6px #ff751e66); }
.video-frame .bottom-right { bottom: -12px; right: -12px; border-width: 4px; border-radius: 0 0 7px 0; filter: drop-shadow(0 0 6px #23d8ff66); }
.frame-stone { position: absolute; z-index: 4; width: 47px; height: 65px; pointer-events: none; filter: drop-shadow(0 3px 3px #0009); }
.frame-stone-fire { left: -22px; bottom: -19px; transform: rotate(-28deg); }
.frame-stone-ice { right: -22px; top: -19px; transform: rotate(28deg); }
.frame-stone::before, .frame-stone::after, .frame-stone i { content: ''; position: absolute; display: block; clip-path: polygon(46% 0, 91% 29%, 100% 72%, 55% 100%, 8% 78%, 0 35%); }
.frame-stone::before { inset: 0; background: linear-gradient(115deg, #ffdf8c 0 21%, #ff8b2c 22% 47%, #b74320 48% 73%, #5b2826 74%); }
.frame-stone::after { width: 14px; height: 29px; left: -8px; bottom: 1px; transform: rotate(-23deg); background: linear-gradient(110deg, #ffd573 0 40%, #df5d25 41%); }
.frame-stone i { width: 12px; height: 32px; right: -6px; bottom: -2px; transform: rotate(26deg); background: linear-gradient(110deg, #ffad45 0 40%, #873821 41%); }
.frame-stone-ice::before { background: linear-gradient(115deg, #d2fcff 0 21%, #6ae5ff 22% 47%, #259bc1 48% 73%, #20526e 74%); }
.frame-stone-ice::after { background: linear-gradient(110deg, #befaff 0 40%, #38badc 41%); }
.frame-stone-ice i { background: linear-gradient(110deg, #72eaff 0 40%, #246d92 41%); }
@media (max-width: 650px) {
  .video-frame { border-width: 7px; margin-inline: 4px; }
  .frame-stone { width: 29px; height: 41px; }
  .frame-stone-fire { left: -15px; bottom: -13px; }
  .frame-stone-ice { right: -15px; top: -13px; }
  .video-frame .frame-corner { width: 27px; height: 27px; }
  .video-frame .top-left { left: -9px; top: -9px; }
  .video-frame .bottom-right { right: -9px; bottom: -9px; }
  .video-frame::before { top: -5px; }
  .video-frame::after { bottom: -5px; }
}

/* The anchor lands on a viewport-sized section with the player at its center. */
.video-section {
  min-height: 100svh;
  padding-block: 32px;
  scroll-margin-top: 0;
}
.video-section > .section-inner {
  width: min(100%, 1160px, max(280px, calc((100svh - 220px) * 16 / 9)));
  min-height: calc(100svh - 64px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(min-content, 1fr) auto minmax(min-content, 1fr);
}
.video-section > .section-inner > * { min-width: 0; }
.video-section .section-heading {
  max-width: none;
  width: 100%;
  margin: 0;
  padding-bottom: 24px;
  align-self: end;
}
.video-section h2 { font-size: clamp(28px, 3.6vw, 48px); text-wrap: balance; }
.video-section .section-heading::after { display: none; }
.video-section .video-frame { width: 100%; max-width: 100%; min-width: 0; margin: 0; }
.video-section .section-footnote { align-self: start; padding-top: 22px; }
@media (max-width: 650px) {
  .video-section { padding-inline: 24px; }
  .video-section .section-heading { padding-bottom: 24px; }
  .video-section h2 { overflow-wrap: anywhere; }
  .video-section .frame-stone-fire { left: -5px; }
  .video-section .frame-stone-ice { right: -5px; }
  .video-section .section-footnote { font-size: 9px; letter-spacing: .06em; }
}

/* Three waypoints on a dungeon route, rather than independent cards. */
.features-section { background: radial-gradient(ellipse at 0% 60%, #ff7b2410, transparent 50%), radial-gradient(ellipse at 100% 60%, #22d8ff12, transparent 50%), #0b0e1c; }
.features-section h2, .features-section h2 span { color: #fff; }
.dungeon-map { position: relative; isolation: isolate; padding: 58px 0 32px; border-block: 1px solid #8b9eb426; background-image: linear-gradient(#7387a207 1px, transparent 1px), linear-gradient(90deg, #7387a207 1px, transparent 1px); background-size: 36px 36px; }
.map-caption { position: absolute; inset: 18px 0 auto; display: flex; justify-content: space-between; gap: 16px; font-size: 9px; letter-spacing: .16em; color: #ffad65; }
.map-caption span:last-child { color: #70def5; text-align: right; }
.dungeon-route { position: absolute; top: 58px; left: 0; width: 100%; height: 400px; z-index: -1; overflow: hidden; pointer-events: none; }
.dungeon-walls { color: #889bb42b; }
.route-glow, .route-line { fill: none; stroke: url(#route-colors); vector-effect: non-scaling-stroke; }
.route-glow { stroke-width: 16px; opacity: .12; }
.route-line { stroke-width: 3px; stroke-linecap: round; stroke-dasharray: 7 8; }
.dungeon-map .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; max-width: none; }
.dungeon-map .feature-card { position: relative; min-width: 0; border: 0; background: none; overflow: visible; text-align: center; }
.dungeon-map .feature-green { margin-top: 60px; --accent: #b7d9c7; }
.dungeon-map .feature-art { height: 260px; }
.dungeon-map .feature-art img { height: 245px; max-width: 90%; }
.dungeon-map .feature-number { display: none; }
.route-marker { display: grid; place-items: center; width: 40px; height: 40px; margin: 0 auto; border: 2px solid var(--accent); border-radius: 50%; color: var(--accent); background: #101724; font-size: 12px; font-weight: 750; box-shadow: 0 0 0 7px #0b0e1c, 0 0 22px var(--glow); }
.dungeon-map .feature-copy { padding: 27px 22px 10px; }
.dungeon-map .feature-copy h3 { color: #fff; overflow-wrap: anywhere; }
.dungeon-map .feature-copy > p:last-child { max-width: 280px; margin-inline: auto; }
@media (max-width: 760px) {
  .dungeon-map { padding-top: 48px; }
  .map-caption { font-size: 8px; letter-spacing: .08em; }
  .dungeon-route { display: none; }
  .dungeon-map::before { content: ''; position: absolute; top: 60px; bottom: 45px; left: 27px; width: 3px; z-index: -1; background: linear-gradient(#ff7b24, #ffb66a 35%, #83e6ef 65%, #22d8ff); }
  .dungeon-map .feature-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .dungeon-map .feature-card { padding-left: 62px; text-align: left; }
  .dungeon-map .feature-green { margin-top: 0; }
  .dungeon-map .feature-art { height: 220px; }
  .dungeon-map .feature-art img { height: 215px; }
  .dungeon-map .route-marker { position: absolute; left: 8px; top: 105px; margin: 0; }
  .dungeon-map .feature-copy { padding: 12px 0 0 8px; }
  .dungeon-map .feature-copy > p:last-child { max-width: none; }
}

/* Full-width illustrated dungeon, with a one-shot travelling magic beam. */
.features-section { padding-inline: clamp(20px, 3vw, 64px); }
.features-section > .section-inner { max-width: none; width: 100%; min-width: 0; }
.dungeon-map { border-block: 3px solid #3f3a4b; border-radius: 20px; background-color: #131523; box-shadow: inset 0 3px #64607555, inset 0 -4px #070912, 0 14px 45px #0004; }
.map-caption { left: 22px; right: 22px; }
.dungeon-map .feature-art img { width: clamp(130px, 13vw, 210px); height: auto; max-height: 210px; filter: drop-shadow(0 9px 0 #080b1855) drop-shadow(0 0 24px var(--glow)); }
.dungeon-map .feature-copy { max-width: 430px; margin-inline: auto; }
.dungeon-map .feature-copy .eyebrow { color: var(--accent); }
.dungeon-map .feature-copy h3 { text-shadow: 0 3px #070912; }
.route-marker { font-family: 'BDCRAFT Goblins', system-ui, sans-serif; font-weight: 400; border-width: 3px; border-radius: 12px; background: linear-gradient(145deg, #474359, #242636); box-shadow: 0 0 0 5px #131523, 0 4px 0 #070912, 0 0 25px var(--glow); }
.route-line { stroke-width: 5px; stroke-dasharray: 1; stroke-dashoffset: 0; filter: drop-shadow(0 0 5px #a5e5ef88); }
.route-glow { stroke-width: 19px; opacity: .22; stroke-dasharray: 1; stroke-dashoffset: 0; }
.route-ready:not(.route-arrived) .route-line, .route-ready:not(.route-arrived) .route-glow { stroke-dashoffset: 1; }
.route-ready.route-arrived .route-line, .route-ready.route-arrived .route-glow { animation: beam-travel 2.8s cubic-bezier(.25,.1,.25,1) both; }
@keyframes beam-travel { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media (max-width: 760px) {
  .features-section { padding-inline: 16px; }
  .dungeon-map { padding: 58px 16px 30px 0; }
  .map-caption { left: 16px; right: 16px; }
  .dungeon-map .feature-card { padding-left: 66px; }
  .dungeon-map .feature-art { height: 190px; }
  .dungeon-map .feature-art img { width: min(155px, 100%); height: auto; }
  .dungeon-map .route-marker { top: 90px; }
  .dungeon-map .feature-copy { padding-inline: 4px; }
  .dungeon-map::before { background: #3a3e50; width: 5px; left: 26px; }
  .dungeon-map::after { content: ''; position: absolute; left: 26px; top: 60px; bottom: 45px; width: 5px; z-index: -1; background: linear-gradient(#ff7b24, #ffb66a 35%, #83e6ef 65%, #22d8ff); box-shadow: 0 0 12px #74deee88; transform-origin: top; }
  .route-ready:not(.route-arrived)::after { transform: scaleY(0); }
  .route-ready.route-arrived::after { animation: beam-down 2.8s ease-in-out both; }
  @keyframes beam-down { from { transform: scaleY(0); } to { transform: scaleY(1); } }
}
@media (prefers-reduced-motion: reduce) {
  .dungeon-map .route-line, .dungeon-map .route-glow { animation: none !important; stroke-dashoffset: 0 !important; }
  .dungeon-map::after { animation: none !important; transform: none !important; }
}


