@font-face {
  font-family: Baloo;
  src: url('assets/baloo-2.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --night: #130d19;
  --black: #0d0911;
  --ivory: #fff4e5;
  --muted: #c9b9c9;
  --gold: #ffca7b;
  --saffron: #ffd68f;
  --line: #ffe0b426;
  --title-font: Baloo, system-ui, sans-serif;
  --body-font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --frame: 1260px;
  --gutter: clamp(22px, 5.35vw, 82px);
  --section: clamp(72px, 10vw, 142px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--ivory); font: 1rem/1.6 var(--body-font); }
a { color: inherit; }
button { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }
figure, p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--title-font); font-weight: 800; }
h2 em, h1 em { color: var(--gold); font-family: Georgia, serif; font-weight: 500; }
:focus-visible { outline: 2px solid var(--saffron); outline-offset: 5px; }
section[id] { scroll-margin-top: 1.5rem; }
.frame { width: min(var(--frame), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.section { padding-block: var(--section); }
.skip-link { z-index: 10; position: fixed; top: .75rem; left: 1rem; padding: 12px 18px; background: var(--ivory); color: var(--black); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { position: relative; z-index: 2; background: #110b17; border-bottom: 1px solid var(--line); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; min-height: 82px; }
.brand { display: inline-flex; align-items: center; width: fit-content; min-height: 44px; text-decoration: none; }
.brand-mark { color: var(--gold); font: 800 2.15rem/.9 var(--title-font); letter-spacing: -.055em; text-shadow: 0 1px #ffe7aa, 0 3px #683232, 0 0 22px #eda25938; }
.site-header nav, .site-footer nav { display: flex; gap: clamp(18px, 3.3vw, 44px); align-items: center; }
.site-header nav a, .site-footer nav a { color: var(--muted); font-size: .92rem; font-weight: 620; text-decoration: none; }
.site-header nav a:hover, .site-footer nav a:hover { color: var(--gold); }
.header-inner > .button { justify-self: end; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 53px; padding: .8rem 1.35rem; border: 1px solid transparent; border-radius: .55rem; color: var(--ivory); font-weight: 760; text-decoration: none; transition: background-color .2s, border-color .2s, color .2s, transform .2s; }
.button:hover { transform: translateY(-2px); }
.button-small { min-height: 43px; padding: .5rem .9rem; font-size: .9rem; }
.button-primary { background: var(--gold); color: #291619; box-shadow: 0 .3rem 1.6rem #f2914030; }
.button-primary:hover { background: #ffe0a2; }
.button-outline { border-color: #e4ac7775; }
.button-outline:hover { border-color: var(--gold); background: #ffc48712; }

.kicker { color: var(--saffron); font-weight: 720; font-size: .82rem; letter-spacing: .185em; line-height: 1.4; text-transform: uppercase; }
.hero { position: relative; isolation: isolate; overflow: hidden; background: #170d1b; min-height: min(740px, calc(100svh - 83px)); }
.hero-inner { position: relative; display: flex; align-items: center; min-height: inherit; padding-block: clamp(48px, 7vw, 112px); }
.hero-copy { width: min(53%, 612px); }
.hero h1 { margin: .24em 0 .22em; font-size: clamp(4.1rem, 8vw, 8.4rem); font-weight: 800; line-height: .77; letter-spacing: -.066em; text-wrap: balance; }
.hero h1 em { display: inline-block; font-size: .76em; line-height: .94; letter-spacing: -.083em; }
.hero-description { color: #f5e1d2; font-size: clamp(1.03rem, 1.55vw, 1.3rem); line-height: 1.55; max-width: 32ch; }
.store-badges { --badge-height: 52px; display: flex; align-items: center; gap: 16px; margin-top: clamp(1.25rem, 3vw, 1.9rem); }
.store-badges a { display: inline-flex; align-items: center; flex: none; min-height: 44px; border-radius: .6rem; transition: transform .2s, box-shadow .2s; }
.store-badges a:hover { transform: translateY(-2px); box-shadow: 0 4px 20px #ffc48742; }
.store-badges img { width: auto; max-width: none; height: var(--badge-height); }
.hero-actions { display: flex; gap: clamp(14px, 2vw, 26px); flex-wrap: wrap; align-items: center; margin-top: .65rem; }
.hero-game-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--ivory); text-decoration-color: #efb8879c; text-underline-offset: .33em; font-size: .9rem; font-weight: 700; }
.hero-game-link:hover { color: var(--gold); }
.audio-button { border: 0; background: transparent; padding: 10px 0; min-height: 44px; display: inline-flex; align-items: center; gap: .55rem; font-size: .9rem; font-weight: 650; color: var(--ivory); cursor: pointer; }
.audio-button:hover { color: var(--gold); }
.sound-symbol { display: flex; align-items: center; justify-content: center; gap: 2px; width: 29px; height: 29px; border: 1px solid #e9ad765f; border-radius: 50%; }
.sound-symbol i { display: block; width: 2px; height: 8px; border-radius: 2px; background: var(--gold); }
.sound-symbol i:nth-child(2) { height: 13px; }
.audio-button[aria-pressed="true"] i { animation: beat .65s ease infinite alternate; }
.audio-button[aria-pressed="true"] i:nth-child(2) { animation-delay: .2s; }
@keyframes beat { from { transform: scaleY(.45); } to { transform: scaleY(1.1); } }
.hero-visual { position: absolute; z-index: -1; inset: 0 0 0 29%; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 61% center; }
.hero-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #170d1b 1%, #170d1baa 7%, #170d1b40 16%, #170d1b08 37%, transparent 50%), linear-gradient(0deg, #160d1a 0%, #160d1a00 17%, #160d1a00 90%, #160d1a45 100%); }
.hero-edge { position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, transparent, #d7956075 36%, #d7956075 64%, transparent); }

.section-intro { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(15rem, 1fr); align-items: end; gap: 2rem; margin-bottom: clamp(30px, 5vw, 56px); }
.section-intro > p { max-width: 35ch; padding-bottom: .3rem; color: var(--muted); font-size: 1.02rem; }
h2 { font-size: clamp(2.8rem, 6vw, 6rem); line-height: .93; letter-spacing: -.054em; text-wrap: balance; }
h2 em { letter-spacing: -.068em; }
.section-intro .kicker, .contest-copy .kicker, .release .kicker { margin-bottom: 14px; }
.journey-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-bottom: 14px; }
.journey-tabs button { display: block; padding: .85rem .7rem; min-height: 54px; border: 1px solid var(--line); border-radius: .42rem; background: #2d1a33; font-size: .97rem; font-weight: 720; cursor: pointer; }
.journey-tabs button:hover { border-color: #ffca7b75; }
.journey-tabs [aria-selected="true"] { background: var(--gold); color: #2d1820; border-color: transparent; }
.journey-panel { display: grid; grid-template-columns: minmax(0, 1.43fr) minmax(0, 1fr); overflow: hidden; border: 1px solid #ffcc7f32; border-radius: .8rem; background: linear-gradient(125deg, #2c172d, #211323); }
.journey-panel > img { width: 100%; height: auto; aspect-ratio: 3 / 2; align-self: start; }
.journey-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(26px, 4.75vw, 67px); }
.journey-copy h3 { font-size: clamp(2rem, 3.7vw, 3.6rem); line-height: .9; letter-spacing: -.045em; text-wrap: balance; }
.journey-copy > p { margin-top: 1.15rem; color: var(--muted); }
.journey-copy > .journey-detail { margin-top: 1.4rem; color: var(--saffron); font-weight: 670; font-size: .9rem; }

.contest { border-block: 1px solid var(--line); background: radial-gradient(ellipse at 20% 50%, #421927 0%, #271322 50%, #211122); }
.contest-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); align-items: center; min-height: 530px; gap: clamp(36px, 7vw, 112px); padding-block: clamp(40px, 6vw, 86px); }
.contest-photo { position: relative; align-self: stretch; margin-block: 0; min-height: clamp(320px, 40vw, 490px); overflow: hidden; border: 1px solid #bd735063; border-radius: 48% 48% .35rem .35rem / 25% 25% .35rem .35rem; }
.contest-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.contest-copy > p:not(.kicker) { color: #e2c6cc; max-width: 43ch; margin-top: 1.25rem; }
.phases { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .75rem 1rem; padding: 0; margin: 1.7rem 0 0; }
.phases li { border-bottom: 1px solid #f3ae6765; padding: .45rem 0; font-weight: 640; font-size: .97rem; color: var(--ivory); }
.phases li:last-child { color: var(--gold); border-color: var(--gold); }

.collection { --card-gap: 15px; }
.collection-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 12px; }
.collection-toolbar h3 { font-size: 1.4rem; line-height: 1; }
.gallery-controls { display: flex; gap: 7px; }
.gallery-button { padding: .5rem .78rem; min-height: 42px; border: 1px solid #9c728d6a; border-radius: .45rem; background: #25182a; font-size: .875rem; font-weight: 650; cursor: pointer; }
.gallery-button:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.gallery-button:disabled { opacity: .46; cursor: default; }
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * var(--card-gap)) / 4); gap: var(--card-gap); margin: 0; padding: 0 0 13px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-color: #8b567b #24182b; }
.costume-card { --card-tone: #683623; position: relative; display: flex; flex-direction: column; justify-content: end; min-width: 0; min-height: clamp(285px, 30vw, 400px); border: 1px solid #ffca7b40; border-radius: .7rem; overflow: hidden; isolation: isolate; scroll-snap-align: start; background: linear-gradient(180deg, var(--card-tone), #271728 70%, #1c1221); }
.costume-card[data-tone="rose"] { --card-tone: #77283f; }
.costume-card[data-tone="lilac"] { --card-tone: #553061; }
.costume-card[data-tone="blue"] { --card-tone: #2c4a69; }
.costume-card[data-tone="green"] { --card-tone: #355445; }
.costume-card::before { content: ''; position: absolute; z-index: -1; inset: 7% 8% 20%; border: 1px solid #ffd88b54; border-bottom: 0; border-radius: 50% 50% 0 0 / 37% 37% 0 0; background: radial-gradient(ellipse at 50% 60%, #ffc17733, transparent 65%); }
.costume-card img { position: absolute; z-index: -1; width: 85%; height: 70%; inset: auto 7.5% 22%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 7px 8px #100b18a6); }
.costume-card > div { padding: 14px clamp(10px, 1.55vw, 26px) 20px; min-height: 86px; background: linear-gradient(0deg, #1a111e 0%, #1a111eee 62%, #1a111e00); }
.costume-card h4 { font-size: clamp(1.17rem, 2.15vw, 1.85rem); line-height: .97; letter-spacing: -.025em; }
.costume-card p { color: #e5cbb9; margin-top: 6px; font-size: .9rem; line-height: 1.25; }

.world { margin-bottom: var(--section); overflow: hidden; border: 1px solid var(--line); border-radius: .85rem; background: #29192c; }
.world > img { width: 100%; height: auto; aspect-ratio: 2.32; object-fit: cover; }
.world-inner { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 28px; padding: clamp(24px,5vw,64px); }
.world-inner h2 { margin-top: .7rem; font-size: clamp(2.6rem,5.4vw,5.2rem); }
.world-inner dl { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(15px,2vw,30px); margin: 0; align-self: center; }
.world-inner dl > div { padding-top: 12px; border-top: 1px solid #ffce7e65; }
.world-inner dt { font-weight: 750; }
.world-inner dd { color: var(--muted); margin: .35rem 0 0; font-size: .95rem; }

.release { position: relative; background: radial-gradient(ellipse at 25% 50%, #4c2234, #231222 70%); border-block: 1px solid var(--line); }
.release-inner { padding-block: clamp(58px, 9vw, 110px); text-align: center; }
.store-buttons { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 13px; justify-content: center; }
.store-buttons > a { min-width: min(230px, 100%); min-height: 58px; }
.site-footer { background: #110a16; padding-block: 30px; }
.footer-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; }
.footer-inner .brand-mark { font-size: 1.8rem; }
.site-footer nav { margin-left: auto; gap: 1rem 1.65rem; flex-wrap: wrap; }

@media (max-width: 1000px) {
  .hero { min-height: 620px; }
  .hero-visual { inset-inline-start: 24%; }
  .hero-copy { width: 52%; }
  .hero-visual::after { background: linear-gradient(90deg, #170d1b 0%, #170d1bf5 15%, #170d1b30 53%, transparent 85%), linear-gradient(0deg, #170d1b, transparent 25%); }
  .contest-grid { gap: 40px; }
}

@media (max-width: 920px) {
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero-inner { order: -1; padding-block: 45px 12px; }
  .hero-copy { width: 100%; }
  .hero h1 { font-size: clamp(3.6rem, 12.9vw, 6.05rem); max-width: 11ch; text-wrap: wrap; }
  .hero-visual { position: relative; inset: auto; width: 100%; margin-top: -5px; aspect-ratio: 1.5; overflow: hidden; }
  .hero-visual img { object-position: center; }
  .hero-visual::after { background: linear-gradient(180deg, #170d1b 0%, #170d1b00 28%, #170d1b00 86%, #170d1b 100%); }
}

@media (max-width: 720px) {
  .header-inner { grid-template-columns: auto 1fr; min-height: 66px; }
  .site-header nav { display: none; }
  .brand-mark { font-size: 1.9rem; }
  .store-badges { --badge-height: clamp(41px, calc(15.72vw - 9.43px), 52px); gap: 12px; }
  .section-intro { grid-template-columns: 1fr; gap: 1rem; }
  .section-intro > p { max-width: 44ch; }
  .journey-tabs { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .journey-panel { grid-template-columns: 1fr; }
  .contest-grid { grid-template-columns: 1fr; }
  .contest-copy { grid-row: 1; }
  .contest-photo { min-height: auto; aspect-ratio: 1.13; }
  .gallery { grid-auto-columns: calc((100% - var(--card-gap)) / 2); }
  .costume-card { min-height: clamp(242px, 49vw, 365px); }
  .world-inner { grid-template-columns: 1fr; }
  .world > img { aspect-ratio: 1.48; }
  .site-footer nav { margin-left: 0; flex-basis: 100%; }
}

@media (max-width: 380px) {
  .store-badges { gap: 8px; }
  .hero-actions { gap: .4rem .9rem; }
  .collection-toolbar { align-items: flex-start; }
  .collection-toolbar h3 { max-width: 8ch; }
  .collection { --card-gap: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
