@font-face {
  font-family: Barlow Condensed;
  src: url('/assets/barlow-condensed-800.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url('/assets/inter-variable.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #101113;
  --black: #0c0d0e;
  --lime: #c8ff00;
  --snow: #f7f8f3;
  --mist: #e1e5e2;
  --secondary: #515953;
  --body: Inter, 'Hiragino Sans', 'PingFang TC', 'Noto Sans CJK TC', system-ui, sans-serif;
  --display: 'Barlow Condensed', 'Arial Narrow', var(--body);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--snow); font: 400 1rem/1.6 var(--body); }
figure, h1, h2, p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible, video:focus-visible { outline: 3px solid #6ea800; outline-offset: 5px; }
summary { cursor: pointer; }
summary::-webkit-details-marker { display: none; }
.shell { width: min(100% - 96px, 1200px); margin-inline: auto; }
.visually-hidden, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: 10px; left: 10px; z-index: 5; padding: 10px 18px; background: var(--lime); color: var(--ink); }

.site-header { position: absolute; z-index: 2; left: 0; right: 0; }
.navigation { min-height: 78px; border-bottom: 1px solid rgb(255 255 255 / 25%); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; width: max-content; font-weight: 700; letter-spacing: -.065em; font-size: 1.43rem; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.main-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 38px); }
.main-nav a, .header-actions { font-size: .875rem; font-weight: 600; }
.main-nav a:hover, .footer-layout nav a:hover { color: var(--lime); }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 20px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 3px; padding: 10px 18px; font-weight: 700; text-align: center; line-height: 1.25; }
.button:hover { filter: brightness(.9); }
.button .apple { flex: none; }
.button--small { background: var(--snow); color: var(--ink); min-height: 40px; padding: 8px 12px; white-space: nowrap; }
.button--small .apple { width: 16px; height: 18px; }
.button--lime { background: var(--lime); color: var(--ink); box-shadow: 4px 4px 0 #111914; }
.button--ink { background: var(--ink); color: var(--snow); }
.language { position: relative; }
.language summary, .sources summary { list-style: none; display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.language summary { min-height: 44px; padding-inline: 10px; border: 1px solid rgb(255 255 255 / 44%); border-radius: 4px; background: rgb(16 17 19 / 55%); }
.language .globe, .language .chevron { width: 17px; height: 17px; flex: none; }
.language[open] .chevron, .sources[open] .chevron { transform: rotate(180deg); }
.language nav { position: absolute; top: 100%; right: 0; border: 1px solid #484a4a; border-radius: 8px; min-width: 140px; background: var(--ink); box-shadow: 0 8px 26px rgb(0 0 0 / 35%); padding: 5px; }
.language nav a { display: block; padding: 8px 10px; border-radius: 4px; }
.language nav a:hover { background: #282c29; }
.language nav [aria-current] { color: var(--lime); }

.hero { position: relative; isolation: isolate; overflow: clip; background: #242c31; }
.hero-image, .hero::after, .hero-weather { position: absolute; inset: 0; pointer-events: none; }
.hero-image { z-index: -3; transform: translateY(var(--mountain-shift, 0px)) scale(1.12); transform-origin: center; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 50%; filter: grayscale(.4) contrast(1.2); }
.hero::after { z-index: -2; }
.hero::before {
  content: '';
  position: absolute;
  z-index: 1;
  inset: auto 0 -1px;
  height: 15px;
  background: var(--snow);
  clip-path: polygon(0 23%, 9% 43%, 20% 26%, 34% 58%, 48% 37%, 61% 78%, 78% 28%, 90% 43%, 100% 9%, 100% 100%, 0 100%);
  pointer-events: none;
}
.hero::after { content: ''; background: linear-gradient(90deg, rgb(9 12 14 / 85%), rgb(13 16 20 / 58%) 43%, transparent 85%), linear-gradient(0deg, rgb(8 12 15 / 60%), transparent 45%, rgb(8 12 15 / 50%)); }
.hero-weather { z-index: -1; overflow: hidden; }
.hero-snow { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-fog { position: absolute; inset: 0; overflow: hidden; }
.hero-fog::before, .hero-fog::after {
  content: '';
  position: absolute;
  left: -30%;
  width: 160%;
  height: 57%;
  filter: blur(17px);
  animation: mountain-fog 18s ease-in-out infinite alternate;
}
.hero-fog::before {
  bottom: -12%;
  background: radial-gradient(ellipse at 67% 57%, #e0edee8c, transparent 65%), radial-gradient(ellipse at 20% 75%, #bfcdd45a, transparent 67%);
}
.hero-fog::after {
  bottom: 6%;
  background: radial-gradient(ellipse at 85% 66%, #dfedf27c, transparent 62%), radial-gradient(ellipse at 38% 57%, #b9c8d342, transparent 49%);
  animation-duration: 25s;
  animation-delay: -11s;
  animation-direction: alternate-reverse;
}
.hero:not([data-weather-active='true']) .hero-fog::before,
.hero:not([data-weather-active='true']) .hero-fog::after { animation-play-state: paused; }
@keyframes mountain-fog {
  from { transform: translate3d(-10%, 5%, 0) rotate(-3deg); opacity: .54; }
  to { transform: translate3d(13%, -16%, 0) rotate(1deg); opacity: .96; }
}
.hero-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .65fr); align-items: center; gap: 28px; min-height: 725px; padding-block: 132px 72px; }
.hero-copy { padding-bottom: 8px; }
.eyebrow { color: var(--lime); font-weight: 700; font-size: .875rem; letter-spacing: .13em; line-height: 1.4; }
.hero h1, h2 { font-family: var(--display); font-weight: 800; line-height: .88; text-transform: uppercase; }
.hero h1 { font-size: clamp(4.3rem, 7.2vw, 7rem); letter-spacing: -.034em; margin-block: 23px 25px; }
.hero h1 span {
  display: inline-block;
  max-width: 100%;
  margin-top: .1em;
  padding: .035em .13em .1em;
  transform: rotate(-2deg);
  color: #10130c;
  background: var(--lime);
  clip-path: polygon(0 8%, 16% 4%, 25% 9%, 56% 1%, 75% 7%, 100% 2%, 99% 83%, 90% 93%, 73% 89%, 55% 98%, 29% 91%, 3% 98%);
}
.hero-intro { max-width: 45ch; color: #f0f1ed; font-size: clamp(1rem, 1.65vw, 1.18rem); line-height: 1.55; text-shadow: 0 2px 10px #121415; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 23px; margin-top: 30px; }
.hero-secondary { font-size: .94rem; text-decoration: underline; text-underline-offset: 6px; font-weight: 600; }
.hero-secondary:hover { color: var(--lime); }
.hero-language { margin-top: 14px; color: #f0f1ed; font-size: .875rem; }
.hero-device { justify-self: center; display: grid; place-items: center; gap: 12px; }
.hero-terrain { width: min(100%, 322px); overflow: hidden; border: 2px solid var(--snow); border-radius: 8px; box-shadow: 0 18px 48px rgb(0 0 0 / 45%); }
.hero-terrain img { width: 100%; height: auto; }
.phone { overflow: hidden; position: relative; background: #121315; width: var(--phone-width, 240px); padding: 6px; border-radius: var(--phone-radius, 35px); border: 2px solid #4d5351; box-shadow: 0 18px 48px rgb(0 0 0 / 45%), 0 0 0 1px #1b1c1d; }
.phone img { width: 100%; height: auto; display: block; border-radius: calc(var(--phone-radius, 35px) - 8px); }
.phone--hero { --phone-width: clamp(205px, 23vw, 252px); --phone-angle: -9deg; transform: translateY(var(--phone-shift, 0px)) rotate(calc(var(--phone-angle) + var(--phone-turn, 0deg))); border-color: var(--snow); }
.hero-device figcaption { margin-top: 5px; transform: rotate(3deg); background: #101313; border: 1px solid var(--lime); padding: 5px 13px; border-radius: 0; font-size: .8125rem; font-weight: 600; }
.hero-device figcaption span { width: 7px; height: 7px; background: var(--lime); border-radius: 50%; display: inline-block; margin-right: 7px; vertical-align: 1px; }

.light { background: radial-gradient(#24262819 .6px, transparent .6px) 0 0 / 4px 4px, var(--snow); color: var(--ink); }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(36px, 8vw, 116px); padding-block: 86px; }
.feature + .feature { border-top: 2px dashed #aaafa6; }
.feature h2, .download h2 { font-size: clamp(3.35rem, 6vw, 5.65rem); letter-spacing: -.025em; margin-block: 15px 22px; }
.light .eyebrow, .replay .eyebrow { display: inline-block; padding: 5px 8px; transform: rotate(-2deg); }
.light .eyebrow { background: var(--ink); color: var(--lime); }
.replay .eyebrow { background: var(--lime); color: var(--ink); }
.body-copy { font-size: 1.125rem; max-width: 45ch; }
.light .body-copy { color: var(--secondary); }
.feature-list { list-style: none; padding: 0; margin: 30px 0 0; border-top: 1px solid #d1d7cd; }
.feature-list li { display: flex; gap: 11px; align-items: center; padding: 11px 0; border-bottom: 1px solid #d1d7cd; font-weight: 600; }
.feature-icon { color: #455900; flex: none; }
.panel { min-height: 440px; border: 3px solid var(--ink); border-radius: 4px; overflow: hidden; position: relative; isolation: isolate; box-shadow: 8px 8px 0 #181d19; }
.panel--map { display: grid; align-items: center; justify-items: end; background: #dce1dd; }
.panel-map { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 56%; z-index: -2; transform: scale(1.09) translateY(calc(-.5 * var(--panel-shift, 0px))); }
.panel--map::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, transparent 30%, rgb(15 20 20 / 36%)); }
.weather-sample { margin-right: 10%; width: min(45%, 205px); aspect-ratio: .72; overflow: hidden; border-radius: 20px; border: 4px solid #242629; box-shadow: 0 13px 28px #14181c55; transform: translateY(var(--panel-shift, 0px)) rotate(-5deg); }
.weather-sample img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 83%; }
:lang(en) .weather-sample img { object-position: 50% 46%; }
.panel--friends { display: grid; justify-items: center; gap: 12px; padding: 24px 16px 16px; background: var(--mist); }
.phone--friends { --phone-width: min(100%, 280px); }
.panel--friends figcaption { color: var(--secondary); font-size: .875rem; text-align: center; }
.panel--track { min-height: 450px; display: grid; padding-block: 33px; align-items: end; justify-items: center; background: radial-gradient(#c3ff00aa .5px, transparent .6px) 0 0 / 5px 5px, radial-gradient(ellipse at 48% 75%, #4a474e, #232128 64%, #1d1b22); }
.phone--track { --phone-width: min(52%, 232px); align-self: start; grid-area: 1 / 1; transform: translateY(var(--panel-shift, 0px)) rotate(6deg); }
.panel--track figcaption { grid-area: 1 / 1; z-index: 1; justify-self: start; margin: 0 0 -10px 16px; padding: 6px 11px; font-weight: 600; font-size: .8125rem; border-radius: 30px; background: #141516; color: var(--snow); }
.panel.panel--route { display: grid; gap: 12px; min-height: 0; padding: 20px; background: var(--mist); }
.panel--route img { width: 100%; height: auto; border-radius: 6px; }
.panel--route figcaption { color: var(--secondary); font-size: .875rem; text-align: center; }
.replay { background: radial-gradient(ellipse at 80% 50%, #252d2b, #141617 58%); }
.replay-layout { padding-block: 83px; }
.replay .body-copy { color: #d1d6d3; }
.replay-media { justify-self: center; max-width: min(100%, 410px); display: grid; justify-items: center; gap: 10px; }
.replay-media video { display: block; width: min(100%, 340px); height: auto; aspect-ratio: 9 / 16; border-radius: 3px; background: #121414; border: 2px solid #b8c5b8; box-shadow: 9px 9px 0 -4px var(--lime); transform: translateY(calc(.2 * var(--panel-shift, 0px))); }
.replay-media figcaption { color: #e0e1db; font-size: .875rem; text-align: center; }
.replay-media figcaption small { display: block; margin-top: 4px; font-size: .8125rem; }
.replay-media figcaption a { text-decoration: underline; text-underline-offset: 3px; }
.sources { margin-top: 23px; font-size: .875rem; color: #d1d6d3; }
.sources summary { width: fit-content; font-weight: 600; color: var(--snow); }
.sources summary:hover, .sources a:hover { color: var(--lime); }
.sources .chevron { width: 20px; height: 20px; }
.sources ul { padding-left: 1.1em; }
.sources a { text-decoration: underline; text-underline-offset: 3px; }

.download { background: var(--lime); color: var(--ink); }
.download-content { display: flex; justify-content: space-between; align-items: center; gap: 23px; padding-block: 44px 48px; }
.download-content > .button:only-child { margin-inline: auto; }
.download h2 { margin: 0; font-size: clamp(2.7rem, 5vw, 4.5rem); }
.site-footer { background: var(--black); }
.footer-layout { display: flex; gap: 24px; align-items: center; justify-content: space-between; padding-block: 30px; }
.footer-layout nav { display: flex; flex-wrap: wrap; gap: 8px 21px; font-size: .875rem; }
.footer-languages [aria-current] { color: var(--lime); }

:lang(zh-Hant) h1, :lang(ja) h1 { font-size: clamp(2.65rem, 5.1vw, 5rem); line-height: 1.16; letter-spacing: -.05em; }
:lang(zh-Hant) h2, :lang(ja) h2 { font-size: clamp(2.15rem, 4.2vw, 4rem); line-height: 1.19; letter-spacing: -.045em; }

.invitation { min-height: 100vh; display: grid; align-items: center; background: radial-gradient(ellipse at top, #283531, var(--ink) 65%); }
.invitation-card { width: min(100% - 36px, 470px); margin: 32px auto; padding: clamp(24px, 7vw, 48px); border: 1px solid #43504a; border-radius: 20px; background: var(--ink); }
.invitation-card h1 { margin: 26px 0 14px; font-size: clamp(1.8rem, 7vw, 2.5rem); line-height: 1.15; }
.invitation-card .hero-actions { align-items: flex-start; }
.invitation-code { margin-top: 22px; color: #d0d6cf; overflow-wrap: anywhere; }
.invitation-code code { display: block; margin-top: 5px; user-select: all; }

@media (max-width: 900px) {
  .shell { width: min(100% - 56px, 1200px); }
  .navigation { gap: 14px; }
  .header-actions { gap: 11px; }
  .hero-layout { min-height: 650px; }
  .hero h1 { font-size: clamp(3.65rem, 8vw, 6.5rem); }
  .hero::after { background: linear-gradient(90deg, rgb(9 12 14 / 84%), rgb(13 16 20 / 53%) 60%, rgb(13 16 20 / 20%)), linear-gradient(0deg, rgb(8 12 15 / 45%), transparent 65%, rgb(8 12 15 / 52%)); }
  .feature { gap: 35px; padding-block: 66px; }
  .panel { min-height: 350px; }
}

@media (max-width: 700px) {
  .shell { width: calc(100% - 36px); }
  .navigation { min-height: 68px; grid-template-columns: 1fr auto; }
  .main-nav { display: none; }
  .hero-layout { grid-template-columns: 1fr; gap: 34px; padding-block: 103px 35px; }
  .hero-image img { object-position: 64% center; }
  .hero::after { background: linear-gradient(155deg, rgb(10 13 15 / 88%) 6%, rgb(10 13 15 / 62%) 39%, rgb(8 12 15 / 28%) 65%, rgb(8 12 15 / 69%)); }
  .hero h1 { font-size: clamp(3.28rem, 12vw, 5.8rem); margin-block: 16px 17px; }
  .hero-actions { margin-top: 22px; }
  .hero-device { gap: 9px; }
  .phone--hero { --phone-width: clamp(155px, 47vw, 222px); --phone-radius: 29px; --phone-angle: -5deg; }
  :lang(ja) .hero h1 { font-size: clamp(1.9rem, 7.35vw, 3.25rem); }
  .feature { grid-template-columns: 1fr; padding-block: 49px; gap: 27px; }
  .track .feature-copy { grid-row: 1; }
  .panel { min-height: 330px; }
  .panel--track { min-height: 400px; }
  .replay-media video { width: min(100%, 286px); }
  .download-content, .footer-layout { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .header-actions .button--small { display: none; }
}

@media (max-width: 365px) {
  .brand { font-size: 1.25rem; }
  .brand img { width: 32px; height: 32px; }
  .header-actions { gap: 7px; }
  .language .chevron { display: none; }
  .hero h1 { font-size: 3.1rem; }
  :lang(zh-Hant) h1, :lang(ja) h1 { font-size: 2.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-image { transform: none; }
  .hero-fog::before, .hero-fog::after { animation: none; }
  .hero-snow { display: none; }
  .phone--hero { transform: rotate(var(--phone-angle)); }
  .panel-map, .replay-media video { transform: none; }
  .weather-sample { transform: rotate(-5deg); }
  .phone--track { transform: rotate(6deg); }
}
