@font-face { font-family: 'Fredoka'; src: url('./fonts/fredoka-semibold.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Nunito Sans'; src: url('./fonts/nunito-sans-regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Nunito Sans'; src: url('./fonts/nunito-sans-bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
:root {
  --ink: #382541;
  --muted: #634e69;
  --plum: #583066;
  --paper: #fffaf5;
  --line: #dfcedf;
  --lilac: #efdef5;
  --pink: #f8e1e9;
  --peach: #f9e9db;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; color: var(--ink); background: var(--paper) radial-gradient(#e8d9e3 1px, transparent 1px) 0 0 / 20px 20px; font: 1rem/1.65 'Nunito Sans', sans-serif; }
main { flex: 1; padding-block: clamp(1.25rem, 4vw, 3rem) 4rem; }
header, footer { background: #fffaf7; border-block-end: 1px solid var(--line); }
footer { border-block-start: 1px solid var(--line); border-block-end: 0; }
.wrap { width: min(100% - clamp(1.25rem, 4vw, 2rem), 72rem); margin-inline: auto; }
.nav, .nav-pages, .nav-account, .actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem clamp(.65rem, 2vw, 1.35rem); }
.nav { padding-block: .55rem; justify-content: space-between; }
.nav a, .secondary { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration: none; }
.nav a:hover, .nav [aria-current="page"], .secondary:hover { text-decoration: underline; }
header .brand { position: relative; }
.brand img { display: block; object-fit: contain; }
.brand-beta { position: absolute; top: 6px; right: -3px; padding: 2px 5px; border: 1px solid #fffdfa; border-radius: 6px; background: #816095; color: #fff; font-size: 9px; font-weight: 800; letter-spacing: .6px; transform: rotate(9deg); }
footer .brand { margin-inline-end: auto; }
a { color: var(--plum); text-underline-offset: .2em; }
:focus-visible { outline: 3px solid #825396; outline-offset: 4px; }
.skip { position: absolute; inset-inline-start: 1rem; transform: translateY(-200%); padding: .6rem; background: white; z-index: 2; }
.skip:focus { transform: translateY(0); }
h1, h2, h3 { margin-block: 0 .6em; line-height: 1.12; overflow-wrap: anywhere; }
h1, h2 { font-family: 'Fredoka', sans-serif; font-weight: 600; }
h1 { font-size: clamp(2.5rem, 6vw, 4.3rem); letter-spacing: -.045em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.65rem); letter-spacing: -.025em; }
h3 { font-size: 1.2rem; }
p { margin-block: 0 1rem; }
section + section { margin-top: clamp(2.5rem, 6vw, 4.25rem); }
.hero { display: grid; grid-template-columns: 1fr 1.12fr; align-items: center; gap: clamp(1.25rem, 4vw, 3.5rem); padding: clamp(1.25rem, 4vw, 3.5rem); border: 1px solid var(--line); border-radius: 1.75rem; background: linear-gradient(128deg, #f9e9e3, #f0e0f6 72%); }
.hero h1 { font-size: clamp(3rem, 7.4vw, 6.2rem); line-height: .95; margin-bottom: .25em; }
.hero em { color: #744380; font-weight: inherit; }
.lede { max-width: 42ch; font-size: 1.075rem; }
.eyebrow, .step, .folio { color: var(--plum); font-weight: 800; font-size: .73rem; letter-spacing: .13em; text-transform: uppercase; }
.actions { margin-block: 1.2rem .45rem; }
.secondary { gap: .4rem; }
figure { margin: 0; }
figure img, .banner { display: block; width: 100%; height: auto; border-radius: .75rem; }
.lookbook { padding: clamp(.65rem, 2vw, 1rem); border: 1px solid var(--line); border-radius: 1.2rem; background: #fffdf7; box-shadow: 0 9px 0 #5a2a6412; }
.folio, .lookbook figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; padding: .25rem .2rem .65rem; }
.lookbook figcaption { align-items: baseline; padding-block: .7rem .15rem; }
.lookbook strong { color: var(--ink); font: bold 1.15rem Georgia, serif; }
.lookbook figcaption span, time, small { font-size: .86rem; color: var(--muted); }
.tiles { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.tiles > div, .tiles > article { padding: clamp(1.15rem, 2.6vw, 1.7rem); border: 1px solid var(--line); border-radius: 1.15rem; background: #fffdf9; overflow-wrap: anywhere; }
.feature-grid > div { display: flex; flex-direction: column; background: var(--peach); }
.feature-grid > div:nth-child(2) { background: var(--pink); }
.feature-grid > div:nth-child(3) { background: var(--lilac); }
.feature-grid a { margin-top: auto; font-weight: 700; }
.section-heading, .join { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem; }
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 1rem 2rem; }
details { background: #fffdf9; border: 1px solid var(--line); border-radius: .8rem; margin-bottom: .55rem; padding-inline: 1rem; }
summary { padding-block: .7rem; font-weight: 700; cursor: pointer; }
.join, .reading, .page-intro { padding: clamp(1.25rem, 4vw, 3rem); border: 1px solid var(--line); border-radius: 1.4rem; background: #fffdf9; }
.join, .page-intro { background: var(--lilac); }
.join h2, .join .play, .page-intro p:last-child { margin-bottom: 0; }
.page-intro { margin-bottom: 1.4rem; }
.reading { max-width: 52rem; margin-inline: auto; overflow-wrap: anywhere; }
.reading h2 { margin-top: 1.6em; }
.contents { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-block: 1.4rem; padding: .8rem 1rem; border-radius: .75rem; background: var(--lilac); }
.banner { margin-block: 0 1rem; aspect-ratio: 2; object-fit: contain; background: var(--lilac); }
.reading .banner { margin-top: 1rem; }
.reading figcaption { color: var(--muted); margin-top: .5rem; }
.button, .nav .button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 7px 15px; border-radius: 999px; border: 2px solid #816095; background: #E8F3AC; color: #302237; box-shadow: 2px 3px 0 #C9B5DE; font-size: 12px; font-weight: 700; text-decoration: none; }
.button:hover, .nav .button:hover { background: #E8F3AC; text-decoration: none; box-shadow: 1px 1px 0 #C9B5DE; }
.play { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
table { width: 100%; margin-bottom: 1rem; border-collapse: collapse; }
th, td { text-align: left; padding: .5rem .75rem; border-bottom: 1px solid var(--line); }
thead { background: var(--lilac); }
li + li { margin-top: .65rem; }
@media (max-width: 46rem) {
  .hero, .faq { grid-template-columns: 1fr; }
  .hero-copy { max-width: 33rem; }
}


.hero em { font-style: normal; }
button, input, select, textarea { font-family: inherit; }

.nav a, .secondary { font-size: 12px; }

.hero .button, .join .button { min-height: 46px; padding-inline: 1.15rem; font-size: .95rem; }
.screenshot { min-width: 0; padding: clamp(.45rem, 1.4vw, .85rem); background: #fffdf9; border: 1px solid var(--line); border-radius: 1rem; }
.screenshot figcaption { margin-top: .55rem; font-size: .86rem; color: var(--muted); }
.showcase { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(1.25rem, 4vw, 3rem); align-items: center; padding: clamp(1rem, 4vw, 2.5rem); background: var(--lilac); border: 1px solid var(--line); border-radius: 1.35rem; }
.showcase:nth-of-type(2) { background: var(--peach); }
.showcase:nth-of-type(3) { background: var(--pink); }
.feature-link { display: block; width: fit-content; padding-block: .35rem; font-weight: 700; }
.reading .screenshot { margin-block: 1rem; }
.comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; align-items: start; }
.confirmation { max-width: 21rem; }
.outfit-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.outfit-gallery h2 { font-size: 1.35rem; }
.outfit-gallery img { aspect-ratio: 1 / 2; object-fit: contain; background: var(--lilac); }
.item-references { font-size: .86rem; color: var(--muted); }
.recovery label { display: block; font-weight: 700; }
.recovery input { min-height: 44px; width: min(100%, 24rem); padding-inline: .65rem; border: 1px solid var(--plum); border-radius: .5rem; font-size: 1rem; }
.recovery .errorlist { color: #842347; }

/* Arcade palette and molded surfaces, matching the game chrome. */
body {
  --ink: #302237;
  --muted: #674e70;
  --plum: #4a2369;
  --line: #9a55cf;
  --arcade-lime: #bdeb4f;
  --arcade-cream: #fff6de;
  --arcade-panel: linear-gradient(160deg, #f8e9ff, #e8ccfa 42%, #d7adf7);
  --arcade-depth: 0 6px 0 #9254bc, 0 12px 20px #46275e2b;
  --arcade-rim: inset 0 0 0 3px #fff8e8;
  background:
    radial-gradient(circle at 20px 24px, #fff8edcf 0 2px, transparent 3px) 0 0 / 100px 100px,
    radial-gradient(circle at 53px 70px, #a872d229 0 4px, transparent 5px) 0 0 / 140px 132px,
    linear-gradient(145deg, #ffe7ed, #eddcff 48%, #ceb4ef);
}
header, footer {
  background: linear-gradient(#fff6f5ee, #e9d1f6ef);
  border-color: #b98be0;
}
.nav-pages a, .nav-account a, .secondary {
  border-radius: 999px;
  padding-inline: .85rem;
}
.nav-pages a:hover, .nav-pages a[aria-current="page"] { background: var(--arcade-cream); }
.button, .nav .button {
  background: linear-gradient(#e9f9a5, var(--arcade-lime));
  border: 2px solid #6d9430;
  box-shadow: inset 0 2px 0 #faffd9, 0 4px 0 #789e35;
  color: #302237;
}
.button:hover, .nav .button:hover {
  background: linear-gradient(#f2ffbe, #d2f477);
  box-shadow: inset 0 2px 0 #faffd9, 0 2px 0 #789e35;
}
.hero, .showcase, .join, .reading, .page-intro {
  background: var(--arcade-panel);
  border: 2px solid var(--line);
  border-radius: clamp(1.25rem, 3vw, 2.45rem);
  box-shadow: var(--arcade-rim), var(--arcade-depth);
  padding: clamp(1.25rem, 4vw, 3.25rem);
}
.hero { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.45rem, 4vw, 3.25rem); }
.hero h1 {
  font: 600 clamp(3rem, 7.1vw, 6rem)/.93 'Fredoka', sans-serif;
  color: var(--plum);
  letter-spacing: -.05em;
  text-shadow: 0 3px #fff6de;
}
.hero h1 em { color: #7d349a; }
h2 { color: var(--plum); }
.hero .secondary {
  background: linear-gradient(#fffdf1, #ffedc5);
  border: 1px solid #bc96cc;
  box-shadow: 0 3px 0 #ab83bf;
}
.screenshot {
  background: linear-gradient(#fffdf3, var(--arcade-cream));
  border: 2px solid #a477bf;
  border-radius: clamp(.85rem, 2vw, 1.4rem);
  box-shadow: inset 0 0 0 2px #fffaf7, 0 4px 0 #ab83bf, 0 7px 10px #46275e1f;
}
.screenshot img { border: 1px solid #ad8ac2; }
.showcase:nth-of-type(2) { background: linear-gradient(150deg, #fff6de, #f7d8c6); }
.showcase:nth-of-type(3) { background: linear-gradient(150deg, #ffe9f5, #f3bbdf); }
.showcase:nth-of-type(4) { background: linear-gradient(150deg, #efe2fd, #d7adf7); }
.showcase:nth-of-type(3) > div { grid-column: 2; grid-row: 1; }
.showcase:nth-of-type(3) > figure { grid-column: 1; grid-row: 1; }
.showcase:nth-of-type(3) { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); }
details, .tiles > article, .contents {
  background: var(--arcade-cream);
  border: 1px solid #b98be0;
  box-shadow: 0 3px 0 #ab83bf;
}
.reading { background: linear-gradient(165deg, #fff9ee, #f6eafa 100%); }
@media (max-width: 46rem) {
  .hero, .showcase, .showcase:nth-of-type(3), .comparison { grid-template-columns: minmax(0, 1fr); }
  .showcase:nth-of-type(3) > :is(div, figure) { grid-area: auto; }
  .outfit-gallery { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
}

/* Dressing-room stage and gameplay previews */
.dressing-hero {
  background: linear-gradient(125deg, #fff5f0 4%, #efdbfb 48%, #c898ef);
  box-shadow: inset 0 0 0 3px #fff8e8, var(--arcade-depth);
  padding-block: clamp(1.3rem, 3vw, 2.5rem);
}
.dressing-hero h1 { max-width: 11ch; font-size: clamp(3rem, 6vw, 5.3rem); }
.dressing-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .7fr);
  align-items: center;
  justify-items: center;
  min-width: 0;
  padding: clamp(.5rem, 1vw, 1.15rem);
  border-radius: 48% 48% 1.6rem 1.6rem / 22% 22% 1.6rem 1.6rem;
  background: radial-gradient(ellipse at 42% 48%, #fff8ed 0%, #efc6f4 52%, #ad77dd 100%);
  border: 2px solid #9a55cf;
  box-shadow: inset 0 0 0 4px #fff4f5b5, 0 7px 0 #ab83bf;
}
.dressing-model { display: grid; place-items: center; width: 100%; min-width: 0; }
.dressing-model img {
  width: min(100%, 12rem);
  max-height: 27rem;
  object-fit: contain;
  filter: drop-shadow(0 .55rem .5rem #46275e45);
}
.dressing-cards { display: grid; width: min(100%, 8.5rem); gap: .45rem; }
.dressing-cards img { width: 90%; border-radius: .6rem; box-shadow: 0 4px 8px #46275e42; }
.dressing-cards img:first-child { transform: rotate(7deg); }
.dressing-cards img:last-child { justify-self: end; transform: rotate(-6deg); }
.dressing-stage figcaption { grid-column: 1 / -1; color: var(--plum); font-size: .85rem; font-weight: 700; text-align: center; }
.showcase.battle-feature, .showcase.try-look, .showcase.collection-spotlight {
  border: 0;
  border-top: 1px solid #ad8ac2;
  border-radius: 0;
  background: none;
  box-shadow: none;
  padding: clamp(1.35rem, 4vw, 2.7rem) 0 0;
}
.battle-feature { display: block; }
.battle-feature > div:first-child { max-width: 42rem; margin-bottom: 1.15rem; }
.battle-turn-frames { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; align-items: start; }
.battle-turn-frames figcaption { font-weight: 700; }
.showcase.try-look { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); }
.showcase.try-look > div { grid-area: auto; }
.look-preview {
  min-width: 0;
  margin: 0;
  padding: 1rem;
  border: 2px solid #a477bf;
  border-radius: 1.25rem;
  background: var(--arcade-cream);
  box-shadow: var(--arcade-rim), 0 4px 0 #ab83bf;
}
.look-preview legend { padding: .2rem .65rem; background: var(--arcade-cream); border-radius: 999px; color: var(--plum); font-weight: 700; }
.hair-options { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-bottom: .65rem; }
.hair-options label { display: flex; align-items: center; min-height: 44px; gap: .35rem; padding: .4rem .8rem; border: 1px solid #9a55cf; border-radius: 999px; cursor: pointer; font-weight: 700; }
.hair-options label:has(input:checked) { background: #e8f4aa; }
.hair-options label:focus-within { outline: 2px solid var(--plum); outline-offset: 2px; }
.hair-options input { margin: 0; accent-color: var(--plum); }
.look-preview-stage { display: grid; place-items: center; min-height: 17rem; border-radius: .8rem; background: radial-gradient(ellipse, #fff8ed, #e6bdf6); }
.look-preview-stage figure { width: 7rem; }
.preview-waves, .look-preview:has([value="waves"]:checked) .preview-updo { display: none; }
.look-preview:has([value="waves"]:checked) .preview-waves { display: block; }
.explore-tiles article p:last-child { margin-bottom: 0; }
.lookbook-spread { max-width: 68rem; }
.lookbook-spread .outfit-gallery { gap: clamp(.75rem, 3vw, 2rem); }
.news-archive .featured-news { grid-column: 1 / -1; }
.news-archive .featured-news .banner { max-height: 24rem; }
@media (max-width: 46rem) {
  .battle-turn-frames, .showcase.try-look { grid-template-columns: minmax(0, 1fr); }
  .dressing-model img { max-height: 22rem; }
  .dressing-cards { width: min(100%, 6.25rem); }
}

/* Public navigation and feature pages */
.nav-menu { display: none; }
header .nav { position: relative; }
.featured-look, .news-feature {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid #a477bf;
  border-radius: 1.25rem;
  background: linear-gradient(140deg, #fff4f0, #e1bef7);
}
.featured-look > figure { width: min(100%, 16rem); justify-self: center; }
.featured-look img, .lookbook-pair img { background: radial-gradient(ellipse, #fff8ed, #e6bdf6); }
.featured-look h2 { margin-top: 0; }
.look-pieces { padding-left: 1.1rem; }
.look-pieces li + li { margin-top: .2rem; }
.lookbook-spread .lookbook-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lookbook-pair .screenshot { margin-top: 0; }
.lookbook-pair img { aspect-ratio: 1 / 1.5; }
.turn-decisions > li { padding-left: .25rem; }
.vote-ballot { min-width: 0; margin: 1.5rem 0; padding: .8rem; border: 2px solid #a477bf; border-radius: 1.15rem; background: var(--arcade-cream); }
.vote-ballot legend { padding: .12rem .65rem; color: var(--plum); font-weight: 700; }
.vote-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.25rem, 1vw, .65rem); }
.vote-options label { display: grid; grid-template-rows: auto 1fr; min-width: 0; border: 2px solid #bd9bce; border-radius: .65rem; background: #fffaf5; cursor: pointer; }
.vote-options img { display: block; width: 100%; height: auto; border-radius: .5rem .5rem 0 0; }
.vote-options span { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .25rem; min-height: 44px; padding: .25rem; font-size: .82rem; font-weight: 700; text-align: center; }
.vote-options input { margin: 0; accent-color: var(--plum); }
.vote-options label:hover, .vote-options label:has(input:checked) { border-color: var(--plum); background: #e8f4aa; }
.vote-options label:focus-within { outline: 2px solid var(--plum); outline-offset: 2px; }
.vote-note, .vote-next { margin: .6rem 0 0; font-size: .88rem; }
.vote-note { color: var(--muted); }
.vote-next { display: none; font-weight: 700; }
.vote-ballot:has(input:checked) .vote-next { display: block; }
.news-feature:not(:has(.banner)) { grid-template-columns: 1fr; }
.news-feature .banner { margin: 0; max-height: 22rem; }
.news-past { margin-top: 2rem; }
.news-past ul { list-style: none; padding: 0; }
.news-past li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; padding: .75rem 0; border-top: 1px solid #ad8ac2; }
@media (max-width: 52rem) {
  header .nav { flex-wrap: nowrap; gap: .35rem; }
  header .brand img { width: 86px; height: 50px; }
  .nav-pages { display: none; }
  .nav-account { margin-left: auto; gap: .2rem; flex-wrap: nowrap; }
  .nav-account a { padding-inline: .55rem; white-space: nowrap; }
  .nav-menu { display: block; margin: 0; padding: 0; background: var(--arcade-cream); }
  .nav-menu summary { display: flex; align-items: center; min-height: 44px; padding: 0 .45rem; font-size: .82rem; }
  .nav-menu summary::after { content: '▾'; margin-left: .25rem; }
  .nav-menu > div { position: absolute; z-index: 3; top: 100%; right: 0; width: min(14rem, 100%); padding: .4rem; border: 1px solid #a477bf; border-radius: .8rem; background: #fff6de; box-shadow: var(--arcade-depth); }
  .nav-menu > div a { display: flex; border-radius: .5rem; padding-inline: .75rem; }
  .nav-menu > div a:hover, .nav-menu > div [aria-current="page"] { background: #ead4f8; }
}
@media (max-width: 46rem) {
  .featured-look, .news-feature { grid-template-columns: minmax(0, 1fr); }
  .featured-look > figure { width: min(100%, 10rem); }
}
@media (max-width: 30rem) {
  .hero, .showcase, .join, .reading, .page-intro { padding-inline: 1rem; }
  .hero h1 { font-size: clamp(2.45rem, 11vw, 3.3rem); }
  .nav-account .button, .play .button { min-height: 44px; }
  .battle-turn-frames, .lookbook-spread .lookbook-pair { grid-template-columns: minmax(0, 1fr); }
  footer .brand { flex-basis: 100%; }
}
