:root {
  color-scheme: light;
  --paper: #f9f6ef;
  --ink: #211b16;
  --muted: #62594f;
  --rule: #ded6cb;
  --shell: min(1280px, calc(100% - 112px));
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body, h1, h2, h3, p, figure, dl, dd { margin: 0; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, .cast-strip:focus-visible { outline: 2px solid #95600a; outline-offset: 4px; }
section[id] { scroll-margin-top: 28px; }
.shell { width: var(--shell); margin-inline: auto; }
.section-gap { margin-top: clamp(84px, 10vw, 148px); }

.skip-link {
  position: absolute;
  z-index: 5;
  top: 12px;
  left: 12px;
  padding: 10px 18px;
  background: var(--ink);
  color: white;
  transform: translateY(calc(-100% - 18px));
}
.skip-link:focus { transform: none; }

.site-header {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 900 1.42rem/1 system-ui, sans-serif;
  letter-spacing: -.065em;
}
.brand img { border-radius: 10px; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px clamp(16px, 3vw, 42px); }
.main-nav a { padding-block: 10px; font-size: .94rem; font-weight: 650; white-space: nowrap; }
.main-nav .language-toggle {
  min-width: 46px;
  padding: 7px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  text-align: center;
}
.main-nav .language-toggle:hover { background: #f4eadb; border-color: #c8ad8b; }
.main-nav a:hover, .site-footer a:hover { color: #825006; }
.main-nav a[aria-current="page"], .site-footer a[aria-current="page"] { text-decoration: underline; text-underline-offset: .36em; }

.hero {
  padding-top: clamp(34px, 5.1vw, 74px);
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(30px, 4.5vw, 64px);
}
.eyebrow { font-size: .95rem; font-weight: 750; letter-spacing: .075em; }
.hero-copy .eyebrow {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 23px;
}
.hero-copy .eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  background: #dd4e2f;
  border-radius: 50%;
}

h1, h2 { font-weight: 900; line-height: 1.13; letter-spacing: -.061em; }
h1 { font-size: clamp(3.7rem, 6.45vw, 6.35rem); }
h2 { font-size: clamp(2.45rem, 4.55vw, 4.7rem); }
html[lang="en"] .hero h1 { font-size: clamp(3.1rem, 5.85vw, 5.9rem); }
.hero-intro {
  max-width: 22em;
  margin-top: 25px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.45vw, 1.25rem);
  line-height: 1.85;
}
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 23px; margin-top: 32px; }
.primary-link, .text-link { font-size: .97rem; font-weight: 750; }
.primary-link {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 10px 23px;
  border-radius: 12px;
  background: var(--ink);
  color: white;
  transition: background .2s ease;
}
.primary-link:hover { background: #493a2e; }
.text-link { padding: 10px 0; text-decoration: underline; text-underline-offset: .32em; }
.text-link:hover { color: #825006; }

.hero-art {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 1.19;
  min-width: 0;
  border-radius: 23px;
  background: radial-gradient(ellipse at 55% 40%, #ffe896, #ffd364 58%, #ffbd47);
}
.stage-circle {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 69%;
  aspect-ratio: 1;
  transform: translate(-50%, -48%);
  border: 1px solid #98560d32;
  border-radius: 50%;
}
.stage-circle::before, .stage-circle::after {
  content: "";
  position: absolute;
  border: inherit;
  border-radius: inherit;
}
.stage-circle::before { inset: 12%; }
.stage-circle::after { inset: -12%; }
.head {
  position: absolute;
  height: auto;
  filter: drop-shadow(0 12px 8px #6e3c1736);
}
.head-lin { width: 36%; top: 6%; left: 3%; transform: rotate(-12deg); }
.head-meera { width: 35%; top: 1%; right: 3%; transform: rotate(13deg); }
.head-camille { width: 39%; bottom: 3%; left: 0; transform: rotate(-10deg); }
.head-dimas { width: 41%; bottom: -1%; right: 0; transform: rotate(12deg); }
.head-oskar { width: 61%; top: 16%; left: 19.5%; transform: rotate(-5deg); }
.viewfinder-corners {
  --corner: 19px;
  --stroke: 1.5px;
  position: absolute;
  inset: 17px;
  z-index: 1;
  pointer-events: none;
  color: #34200776;
  background:
    linear-gradient(currentColor, currentColor) top left / var(--corner) var(--stroke),
    linear-gradient(currentColor, currentColor) top left / var(--stroke) var(--corner),
    linear-gradient(currentColor, currentColor) top right / var(--corner) var(--stroke),
    linear-gradient(currentColor, currentColor) top right / var(--stroke) var(--corner),
    linear-gradient(currentColor, currentColor) bottom left / var(--corner) var(--stroke),
    linear-gradient(currentColor, currentColor) bottom left / var(--stroke) var(--corner),
    linear-gradient(currentColor, currentColor) bottom right / var(--corner) var(--stroke),
    linear-gradient(currentColor, currentColor) bottom right / var(--stroke) var(--corner);
  background-repeat: no-repeat;
}

.section-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px 48px;
  margin-bottom: clamp(23px, 3.2vw, 44px);
}
.section-intro > p {
  max-width: 23em;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.75;
}

.expression-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  gap: clamp(25px, 4vw, 56px);
  padding: 13px;
  border: 1px solid var(--rule);
  border-radius: 23px;
  background: #fffcf7;
}
.expression-view {
  min-width: 0;
  min-height: clamp(330px, 37vw, 464px);
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 13px;
  --stage-base: #f4e1af;
  background: radial-gradient(circle, #fffaf095, transparent 65%), var(--stage-base);
}
.expression-view[data-character="camille"] { --stage-base: #f1d2c1; }
.expression-view[data-character="maya"] { --stage-base: #d9d2ea; }
.expression-image {
  position: relative;
  width: min(73%, 346px);
  aspect-ratio: 1;
  overflow: hidden;
}
.expression-fallback { width: 100%; height: 100%; }
.expression-strip {
  position: absolute;
  top: 0;
  left: 0;
  width: 800%;
  height: 100%;
  max-width: none;
  transform: translateX(calc(-12.5% * var(--frame, 0)));
}
.expression-view figcaption {
  position: absolute;
  left: 25px;
  bottom: 24px;
  padding: 6px 12px;
  border-radius: 6px;
  background: #fffcf7;
  font-size: .88rem;
  font-weight: 700;
}
.expression-controls {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
  padding: 26px clamp(12px, 3.3vw, 40px) 26px 0;
}
.expression-controls fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.expression-controls legend { margin-bottom: 11px; padding: 0; font-weight: 750; }
.character-options, .expression-options { display: grid; gap: 8px; }
.character-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.expression-options { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.expression-controls button {
  cursor: pointer;
  min-height: 43px;
  padding: 6px 4px;
  border: 1px solid #d9cfc2;
  border-radius: 10px;
  background: transparent;
  font-size: .92rem;
  font-weight: 650;
  transition: background .14s ease, border-color .14s ease;
}
.expression-controls button:hover { background: #faefd9; border-color: #b28f4d; }
.expression-controls button[aria-pressed="true"] { background: #ffe39b; border-color: #98722b; }
.character-option img {
  width: min(72%, 66px);
  height: auto;
  margin-inline: auto;
}
.character-option span { display: block; padding-bottom: 2px; }
.expression-status { color: #9a321e; font-size: .9rem; }

.cast-strip {
  overflow: auto hidden;
  scrollbar-width: thin;
  scrollbar-color: #a68664 #f7e7d1;
  border: 1px solid #e9d4b9;
  border-radius: 23px;
  background: #f7e7d1;
}
.cast-line {
  min-width: 860px;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  align-items: center;
  margin: 0;
  padding: clamp(12px, 2.25vw, 34px) 2%;
  list-style: none;
}
.cast-line li {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.cast-line li::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 85%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--cast-color, #ebc592);
}
.cast-line img {
  width: 100%;
  height: auto;
  transform: rotate(var(--tilt, -7deg));
  filter: drop-shadow(0 5px 4px #53341623);
}
.cast-line li:nth-child(even) { --tilt: 6deg; transform: translateY(8%); }
.cast-line li:nth-child(odd) { transform: translateY(-5%); }
.cast-line li:nth-child(4n+1) { --cast-color: #eecda1; }
.cast-line li:nth-child(4n+2) { --cast-color: #dbdfb7; }
.cast-line li:nth-child(4n+3) { --cast-color: #edc3b8; }
.cast-line li:nth-child(4n+4) { --cast-color: #dfd2e7; }

.camera-section { background: #24201b; color: #fff7e9; }
.camera-inner {
  display: grid;
  grid-template-columns: minmax(0, .79fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5.2vw, 74px);
  padding-block: clamp(48px, 7vw, 95px);
}
.camera-copy .eyebrow { color: #ffd77c; margin-bottom: 16px; }
.camera-steps { max-width: 440px; margin-top: 28px; }
.camera-steps > div { padding: 14px 0; border-top: 1px solid #595046; }
.camera-steps dt { margin-bottom: 5px; font-size: 1.08rem; font-weight: 750; }
.camera-steps dd { color: #e0d4c3; line-height: 1.65; }
.camera-art {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(10px, 2.1vw, 30px);
  min-width: 0;
}
.camera-display, .wardrobe-display {
  aspect-ratio: .76;
  position: relative;
  overflow: hidden;
  background: #3c342d;
  border-radius: 17px;
  border: 1px solid #615343;
}
.camera-display img, .wardrobe-display img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.camera-display .viewfinder-corners {
  --corner: clamp(10px, 1.2vw, 16px);
  color: #fff6e6;
  inset: clamp(9px, 1.25vw, 15px);
}
.camera-art figcaption { margin-top: 11px; color: #e0d4c3; font-size: .86rem; }

.site-footer {
  min-height: 98px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: .94rem;
}
.footer-brand { font-size: 1.25rem; }
.site-footer { border-top: 1px solid var(--rule); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 9px clamp(16px, 2.5vw, 34px); }
.footer-credit { color: var(--muted); }

.document-page {
  width: min(var(--shell), 820px);
  margin-block: clamp(52px, 9vw, 112px);
}
.document-intro {
  border-bottom: 1px solid var(--rule);
  padding-bottom: clamp(22px, 4vw, 42px);
}
.document-intro h1 { font-size: clamp(2.75rem, 6.7vw, 5.7rem); }
.document-intro p { margin-top: 16px; color: var(--muted); font-size: 1.05rem; line-height: 1.7; }
.document-intro .document-meta { font-size: .92rem; }
.document-intro a { color: #784b0b; font-weight: 700; text-decoration: underline; text-underline-offset: .24em; }
.document-copy { font-size: 1.04rem; line-height: 1.82; }
.document-copy > section { margin-top: clamp(30px, 5vw, 52px); }
.document-copy h2 {
  margin-bottom: 12px;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.32;
  letter-spacing: -.035em;
}
.document-copy h3 { margin: 20px 0 6px; font-size: 1.14rem; }
.document-copy p + p, .document-copy li + li { margin-top: .6em; }
.document-copy ul, .document-copy ol { padding-inline-start: 1.4em; }
.document-copy a { text-decoration: underline; text-underline-offset: .24em; overflow-wrap: anywhere; }
.document-copy a:hover { color: #825006; }
.support-faq details { padding-block: 14px; border-bottom: 1px solid var(--rule); }
.support-faq summary { cursor: pointer; font-weight: 720; padding-block: 3px; }
.support-faq details p { margin: 8px 0 3px; }
.support-faq summary:focus-visible { outline: 2px solid #95600a; outline-offset: 4px; }

@media (max-width: 1150px) {
  :root { --shell: calc(100% - 72px); }
  .hero { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); }
}

@media (max-width: 870px) {
  :root { --shell: calc(100% - 48px); }
  .hero, .camera-inner { grid-template-columns: 1fr; }
  .hero { gap: 32px; }
  .hero-art { aspect-ratio: 1.36; }
  .hero-intro { max-width: 29em; }
  .section-intro { display: grid; }
  .expression-panel { gap: 22px; }
  .camera-copy br { display: none; }
  .camera-steps { max-width: none; }
  .camera-art { max-width: 650px; }
}

@media (max-width: 580px) {
  :root { --shell: calc(100% - 32px); }
  .site-header { min-height: 65px; gap: 8px; }
  .brand { font-size: 1.18rem; gap: 6px; }
  .brand img { width: 30px; height: 30px; border-radius: 8px; }
  .main-nav { gap: 0 11px; }
  .main-nav a { font-size: .88rem; }
  .main-nav .language-toggle { min-width: 42px; padding: 6px 9px; }
  h1 { font-size: clamp(3.2rem, 12vw, 4.1rem); }
  h2 { font-size: clamp(2.2rem, 8.1vw, 3rem); }
  .hero-copy .eyebrow { margin-bottom: 14px; }
  .hero-intro { margin-top: 16px; }
  .hero-actions { margin-top: 23px; }
  .hero-art { aspect-ratio: 1.14; border-radius: 17px; }
  .viewfinder-corners { inset: 12px; --corner: 13px; }
  .expression-panel { grid-template-columns: 1fr; gap: 0; padding: 8px; border-radius: 18px; }
  .expression-view { min-height: 0; aspect-ratio: 1.14; }
  .expression-view figcaption { left: 18px; bottom: 18px; }
  .expression-controls { padding: 18px 8px 12px; gap: 19px; }
  .cast-strip { border-radius: 17px; }
  .cast-line { padding: 12px; }
  .camera-display, .wardrobe-display { border-radius: 12px; }
  .site-footer { min-height: 74px; flex-wrap: wrap; padding-block: 20px; }
  .site-footer nav { order: 1; flex-basis: 100%; }
}

@media (min-width: 581px) and (max-width: 700px) {
  html[lang="en"] .expression-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
  .site-header { flex-wrap: wrap; padding-block: 12px; }
  .main-nav { width: 100%; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
}
