@font-face {
  font-family: Caladea;
  src: url("assets/fonts/Caladea-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Caladea;
  src: url("assets/fonts/Caladea-BoldItalic.ttf") format("truetype");
  font-style: italic;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Rubik;
  src: url("assets/fonts/Rubik-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Rubik;
  src: url("assets/fonts/Rubik-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f7f5eb;
  --card: #fffdf4;
  --ink: #203b2c;
  --muted: #536351;
  --line: #cccfbb;
  --lime: #daea83;
  --display: Caladea, Georgia, serif;
  --body: Rubik, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper) url("assets/grain.png") repeat;
  font: 1rem/1.5 var(--body);
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: rgba(120, 151, 75, .18); }
button { color: inherit; cursor: pointer; }
nav span { white-space: nowrap; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #006f76; outline-offset: 4px; }
.hero :focus-visible { outline-color: #fffbdf; }
.symbol-bank { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.2em;
  height: 1.2em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.shell { width: min(1200px, calc(100% - 88px)); margin-inline: auto; }
.skip-link { position: absolute; top: 6px; left: 6px; padding: 8px; z-index: 9; background: white; clip-path: inset(100%); }
.skip-link:focus { clip-path: none; }
.masthead { background: #f8f7eb url("assets/grain.png"); border-bottom: 1px solid #dcdcc8; }
.topbar { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand, .footer-brand { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font: 700 1.7rem/1 var(--display); letter-spacing: -.055em; }
.brand em { color: #547043; }
nav { display: flex; align-items: center; gap: 20px; }
.play-link, .guide-link { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: .9rem; min-height: 44px; }
.play-link { padding: 0 14px; font-weight: 700; position: relative; isolation: isolate; }
.play-link::before { content: ""; position: absolute; inset: 5px 0; background: #e2e9cf; border: 1px solid #cdd8b8; border-radius: 24px; z-index: -1; }
.play-link .icon { width: 14px; height: 14px; }
.play-link:hover::before { background: #d6e3b5; }
.guide-link { background: transparent; border: 0; padding: 0 3px; }
.guide-link:hover { color: #48613a; text-decoration: underline; }
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  background: #0c3227;
  color: #fff9df;
}
.hero-art, .hero-art::before, .hero-art::after { position: absolute; inset-block: 0; background-repeat: no-repeat; }
.hero-art {
  inset-inline: 0;
  z-index: -2;
  background: #0c3227 url("assets/atelier-hero.webp") center / 100% 100% no-repeat;
}
.hero-art::before, .hero-art::after { content: ""; width: 45%; background-image: url("assets/atelier-hero.webp"); background-size: auto 100%; }
.hero-art::before { left: 0; background-position: left center; -webkit-mask-image: linear-gradient(90deg, black 0% 73%, transparent 100%); mask-image: linear-gradient(90deg, black 0% 73%, transparent 100%); }
.hero-art::after { right: 0; background-position: right center; -webkit-mask-image: linear-gradient(270deg, black 0% 76%, transparent 100%); mask-image: linear-gradient(270deg, black 0% 76%, transparent 100%); }
.hero::after {
  content: ""; position: absolute; bottom: -1px; left: 0; width: 100%; height: 8px;
  background: var(--paper) url("assets/grain.png");
  clip-path: polygon(0 64%,2% 51%,5% 76%,8% 43%,11% 58%,13% 41%,17% 67%,20% 42%,23% 60%,26% 40%,29% 66%,33% 45%,37% 60%,41% 42%,44% 71%,48% 48%,52% 67%,56% 31%,60% 56%,63% 43%,68% 65%,72% 39%,76% 56%,81% 30%,87% 58%,91% 43%,95% 65%,100% 38%,100% 100%,0 100%);
}
.hero-content { max-width: 740px; padding: 39px 16px 45px; margin: auto; }
.kicker { display: flex; align-items: center; justify-content: center; gap: 13px; color: #e3eab6; font-size: .75rem; font-weight: 700; letter-spacing: .16em; line-height: 1.25; }
.kicker span { position: relative; width: 31px; height: 1.5px; background: #9caa76; }
.kicker span:first-child::before, .kicker span:last-child::after { content: ""; width: 5px; height: 5px; position: absolute; top: -2px; background: #c8cf84; transform: rotate(45deg); }
.kicker span:first-child::before { left: 0; }
.kicker span:last-child::after { right: 0; }
h1 { margin-top: 13px; font: 700 clamp(5.8rem, 7.5vw, 7.5rem)/.98 var(--display); letter-spacing: -.064em; text-shadow: 0 4px 0 rgba(4, 32, 24, .38); }
h1 em { color: #d3e888; font-weight: 700; }
.hero-intro { margin-top: 9px; color: #f3f2dd; font-size: 1.12rem; line-height: 1.45; }
.partners { display: flex; gap: 12px; align-items: center; justify-content: center; margin: 25px auto 0; }
.partner {
  min-width: 215px; min-height: 65px; padding: 13px 20px; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-size: .89rem; font-weight: 700; letter-spacing: .018em; line-height: 1.2;
  border: 1px solid rgba(255, 255, 255, .48); box-shadow: 0 4px 0 #0c1f19, inset 0 -2px 0 rgba(70, 85, 51, .15);
  transition: transform .16s ease, filter .16s ease;
}
.partner:hover { transform: translateY(-2px); filter: brightness(1.06); }
.partner:active { transform: translateY(2px); }
.platform { width: 24px; height: 24px; flex: none; }
.discord { color: #233726; background: #d6e982; --platform-cutout: #d6e982; }
.twitch { color: #392d51; background: #ddcef0; --platform-cutout: #ddcef0; }
.studio { padding-top: 33px; padding-bottom: 30px; scroll-margin-top: 12px; }
.studio:focus { outline: none; }
.studio-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 21px; }
h2 { font: 700 clamp(2.2rem, 3vw, 3rem)/1.06 var(--display); letter-spacing: -.047em; }
.studio-heading p { margin-top: 4px; color: var(--muted); font-size: 1rem; }
.best-box { display: flex; align-items: center; gap: 11px; background: #f2efdc; border: 1px solid #d7d4bb; border-radius: 11px; padding: 9px 15px 9px 11px; }
.medal { display: grid; place-items: center; width: 33px; height: 34px; color: #86632b; }
.medal .icon { width: 26px; height: 26px; }
.small-label { display: block; text-transform: uppercase; color: #5d6652; font-size: .71rem; line-height: 1.3; font-weight: 700; letter-spacing: .095em; }
.best-box strong { display: block; font-size: .92rem; line-height: 1.4; }
.workbench { display: grid; grid-template-columns: minmax(0,1.56fr) minmax(0,1fr); gap: 24px; align-items: start; }
.scene-card, .mixer-card { overflow: hidden; background: var(--card); border: 1px solid #c7cbb7; border-radius: 16px; box-shadow: 0 3px 0 rgba(47, 61, 40, .055); }
.scene { --room-size: 100% 100%; position: relative; aspect-ratio: 2.22; background: #829f75 url("assets/atelier-room.webp") center / var(--room-size) no-repeat; isolation: isolate; }
.scene::before {
  content: ""; position: absolute; inset: 0; background: var(--target-color, #8fab72); opacity: .83;
  -webkit-mask: url("assets/wall-mask.webp") center / var(--room-size) no-repeat;
  mask: url("assets/wall-mask.webp") center / var(--room-size) no-repeat;
}
.scene::after {
  content: ""; position: absolute; width: 39%; left: 42%; bottom: 22.3%; height: 4%;
  background: radial-gradient(ellipse, #443a1f66, #443a1f28 45%, transparent 72%);
}
.room-label, .scene-tag { position: absolute; display: flex; align-items: center; border-radius: 7px; z-index: 1; }
.room-label { gap: 7px; left: 14px; top: 14px; background: #faf6e4; border: 1px solid #a8ad89; padding: 6px 10px; color: #2d4936; font-weight: 700; font-size: .8rem; box-shadow: 0 2px 4px #2a3d2c20; }
.room-label .icon { width: 16px; height: 16px; }
.scene-tag { right: 12px; bottom: 12px; gap: 7px; padding: 6px 10px; background: rgba(29, 49, 33, .93); color: #fcf9e5; font-size: .76rem; line-height: 1.3; }
.scene-tag i { width: 14px; height: 14px; border: 1px solid rgba(255,255,255,.7); border-radius: 3px; background: var(--target-color, #8fac71); }
#chameleon { position: absolute; width: 43%; height: auto; left: 39%; bottom: 23.6%; z-index: 1; filter: drop-shadow(1px 2px 1px rgba(43, 55, 25, .2)); }
.swatch-tray { display: grid; grid-template-columns: 1fr 1fr; padding: 17px 22px; border-top: 1px solid #b5bc9f; }
.swatch-item { display: flex; align-items: center; gap: 12px; }
.swatch-item + .swatch-item { border-left: 1px solid #d8d9c7; padding-left: 22px; }
.swatch { width: 43px; height: 43px; border-radius: 9px; border: 1px solid rgba(30,50,30,.25); flex: none; }
#target-chip { background: hsl(94,27%,56%); }
#mix-chip { background: hsl(115,49%,47%); }
.swatch-item strong { display: block; font: 700 1.28rem/1.23 var(--display); margin-top: 3px; letter-spacing: -.02em; }
.mixer-card { padding: 21px 24px 22px; }
.mixer-heading, .mixer-heading h3 { display: flex; align-items: center; }
.mixer-heading { justify-content: space-between; gap: 12px; border-bottom: 1px solid #dddfcf; padding-bottom: 15px; }
.mixer-heading h3 { gap: 10px; font: 700 1.71rem/1.1 var(--display); letter-spacing: -.035em; }
.mixer-heading .icon { width: 24px; height: 24px; color: #52714d; stroke-width: 1.9; }
.round-pill { border: 1px solid #d2d7bd; background: #eff2df; padding: 4px 8px; border-radius: 6px; font-weight: 700; font-size: .7rem; line-height: 1.4; text-transform: uppercase; letter-spacing: .07em; white-space: nowrap; }
.sliders { margin: 17px 0 11px; display: grid; gap: 7px; }
.slider-label { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.slider-label label { font-weight: 700; font-size: .92rem; }
.slider-label output { font-size: .79rem; line-height: 1.35; min-width: 40px; text-align: center; color: #41553e; background: #efefe3; border: 1px solid #dfdfd0; border-radius: 5px; padding: 2px 5px; font-variant-numeric: tabular-nums; }
input[type=range] { display: block; width: 100%; height: 28px; padding: 0; margin: 1px 0 2px; appearance: none; -webkit-appearance: none; background: transparent; cursor: pointer; touch-action: pan-y; }
#hue { --track: var(--hue-track, linear-gradient(to right, #db6253, #d5c354, #66ac65, #62b2b5, #638acf, #ae7ac1, #db6253)); }
#saturation { --track: var(--saturation-track, linear-gradient(to right, grey, green)); }
#lightness { --track: var(--lightness-track, linear-gradient(to right, #101911, green, ivory)); }
input[type=range]::-webkit-slider-runnable-track { height: 10px; border-radius: 7px; background: var(--track); box-shadow: inset 0 0 0 1px rgba(30, 60, 37, .22); }
input[type=range]::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; height: 21px; width: 21px; border: 4px solid #fffef2; background: var(--mix-color, #62b84d); border-radius: 50%; box-shadow: 0 0 0 1.5px #28452f, 0 2px 3px #1c332c45; margin-top: -5.5px; }
input[type=range]::-moz-range-track { height: 10px; border-radius: 7px; background: var(--track); box-shadow: inset 0 0 0 1px rgba(30,60,37,.22); }
input[type=range]::-moz-range-thumb { height: 14px; width: 14px; border: 4px solid #fffef2; background: var(--mix-color, #62b84d); border-radius: 50%; box-shadow: 0 0 0 1.5px #28452f; }
input[type=range]:disabled { cursor: default; opacity: .68; }
.game-actions { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.game-actions button, .guide-done { min-height: 45px; padding: 10px 13px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: .89rem; font-weight: 700; border-radius: 8px; }
#reveal, .guide-done { background: #2a5035; color: #fffce8; border: 1px solid #264c34; }
#reveal { flex: 1.4; }
#skip { flex: 1; color: #3e543e; border: 1px solid #ccd1ba; background: #f8f8ed; }
#reveal:hover, .guide-done:hover { background: #3c6142; }
#skip:hover { background: #ecf0da; }
.result { background: #edf2d8; border: 1px solid #c3cfa8; border-radius: 9px; padding: 11px 13px; }
.result-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.result-heading h4 { font: 700 1.22rem/1.15 var(--display); }
.result-heading strong { font-size: .9rem; white-space: nowrap; }
.result p { font-size: .88rem; margin-top: 6px; }
.keyboard-tip { display: flex; align-items: center; justify-content: center; gap: 8px; color: #606d59; font-size: .82rem; text-align: center; margin-top: 19px; }
.keyboard-tip .icon { width: 18px; height: 18px; }
.no-js { margin-top: 16px; font-weight: bold; }
.footer { border-top: 1px solid #d5d8c2; }
.footer-content { min-height: 84px; padding-block: 17px; display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.footer-brand { font-size: 1.15rem; gap: 4px; }
.footer-content p { font-size: .79rem; line-height: 1.45; color: var(--muted); text-align: right; }
dialog { color: var(--ink); background: #fbfaee url("assets/grain.png"); width: min(460px, calc(100% - 26px)); max-height: calc(100% - 32px); padding: 24px 28px; border-radius: 16px; border: 1px solid #a3ae8f; box-shadow: 0 14px 70px #12251e55; }
dialog::backdrop { background: rgba(16, 34, 25, .65); }
.guide-top { display: flex; align-items: center; justify-content: space-between; color: #4c6d42; }
.guide-top > .icon { width: 28px; height: 28px; }
#close-guide { height: 40px; width: 40px; border-radius: 50%; display: grid; place-items: center; background: #eef0dc; border: 1px solid #c8cbb7; }
dialog h2 { font-size: 2.1rem; margin: 6px 0 19px; }
.instructions { margin: 0; padding-left: 25px; }
.instructions li { padding-left: 4px; margin-top: 13px; }
.instructions li::marker { font: 700 1.15rem var(--display); color: #577146; }
.instructions h3 { font: 700 1.27rem var(--display); }
.instructions p, .guide-foot { font-size: .93rem; line-height: 1.48; }
.guide-foot { padding-top: 13px; border-top: 1px solid #d8d9c6; margin-top: 16px; color: var(--muted); }
.guide-done { width: 100%; margin-top: 16px; }
@media (min-width: 1600px) {
  .hero-content { padding-block: 48px 52px; }
}
@media (max-width: 1050px) {
  .shell { width: calc(100% - 56px); }
  .hero-art::before, .hero-art::after { display: none; }
  .hero-content { padding-block: 33px 38px; }
  .hero-art { background-size: cover; }
  .hero-content::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, transparent, #12392a88 25%, #10382ba3 50%, #12392a50 75%, transparent); }
  .workbench { gap: 16px; grid-template-columns: minmax(0,1.23fr) minmax(0,1fr); }
  .mixer-card { padding: 18px; }
  .scene { aspect-ratio: 1.75; --room-size: cover; }
  .swatch-tray { padding: 13px 14px; }
  .swatch-item { gap: 9px; }
  .swatch-item + .swatch-item { padding-left: 14px; }
  .swatch { width: 36px; height: 36px; }
  .game-actions { gap: 7px; }
  .game-actions button { padding: 9px; }
}
@media (max-width: 800px) {
  .shell { width: calc(100% - 40px); }
  .hero-art { background-position: 55% center; }
  .hero-content { padding-block: 30px 39px; }
  h1 { font-size: 5.5rem; }
  .hero-intro { font-size: 1.03rem; }
  .studio { padding-top: 25px; }
  .workbench { grid-template-columns: minmax(0,1.13fr) minmax(0,1fr); gap: 12px; }
  .scene { aspect-ratio: 1.5; }
  #chameleon { width: 54%; left: 36%; }
  .swatch-item strong { font-size: 1.07rem; }
  .swatch { width: 30px; height: 34px; }
  .swatch-tray { padding: 16px 10px; }
  .swatch-item + .swatch-item { padding-left: 8px; }
  .mixer-heading h3 { font-size: 1.48rem; gap: 6px; }
  .mixer-card { padding: 15px; }
}
@media (max-width: 680px) {
  .shell { width: calc(100% - 32px); }
  .workbench { grid-template-columns: 1fr; gap: 15px; }
  .scene { aspect-ratio: 2.12; --room-size: 100% 100%; }
  #chameleon { left: 39%; width: 43%; }
  .swatch-tray { padding: 13px 15px; }
  .swatch-item + .swatch-item { padding-left: 15px; }
  .swatch { width: 37px; height: 37px; }
  .mixer-card { padding: 18px; }
  .mixer-heading h3 { font-size: 1.56rem; gap: 9px; }
  .hero-content { padding-block: 30px 35px; }
  .kicker { font-size: .67rem; }
  h1 { font-size: 4.65rem; }
  .partners { gap: 9px; }
  .partner { min-width: 215px; padding-inline: 12px; font-size: .79rem; }
  .best-box { gap: 5px; padding: 7px 9px; }
  .studio-heading { gap: 10px; }
  .studio-heading h2 { font-size: 2.1rem; }
  .studio-heading p { font-size: .92rem; }
}
@media (max-width: 560px) {
  .topbar { height: 57px; gap: 10px; }
  .brand { font-size: 1.36rem; gap: 4px; }
  .brand img { width: 37px; height: auto; }
  nav { gap: 10px; }
  .play-link, .guide-link { font-size: .81rem; gap: 5px; }
  .play-link { padding-inline: 10px; }
  .hero-art { background-color: #10372c; background-size: 100% auto; background-position: center top; }
  .hero-art::after { display: block; width: 100%; mask-image: none; -webkit-mask-image: none; background: linear-gradient(to bottom, transparent 0, transparent 55px, rgba(15,53,42,.02) 75px, #10372c min(34vw, 162px), #10372c 100%); }
  .hero-content::before { display: none; }
  .hero-content { padding: clamp(94px, 23vw, 118px) 14px 23px; }
  .kicker { gap: 8px; color: #e7edc5; letter-spacing: .11em; text-shadow: 0 1px 3px #152f21; }
  .kicker span { width: 18px; }
  h1 { font-size: clamp(3.6rem, 14.5vw, 4.8rem); margin-top: 9px; }
  .hero-intro { font-size: .96rem; line-height: 1.4; margin-top: 7px; }
  .partners { flex-direction: column; gap: 9px; margin-top: 18px; }
  .partner { min-height: 56px; width: min(275px, 100%); padding: 10px 12px; font-size: .85rem; gap: 9px; border-radius: 9px; }
  .partner .platform { width: 21px; height: 21px; }
  .studio { padding-top: 21px; padding-bottom: 23px; }
  .studio-heading { flex-wrap: wrap; gap: 10px; margin-bottom: 13px; }
  .studio-heading h2 { font-size: clamp(1.9rem, 7.4vw, 2.25rem); }
  .studio-heading p { margin-top: 4px; font-size: .88rem; }
  .best-box { gap: 4px; border-radius: 6px; padding: 3px 7px; }
  .best-box > span:last-child { display: flex; align-items: center; gap: 6px; }
  .medal { width: 17px; height: 17px; }
  .medal .icon { width: 15px; height: 15px; }
  .best-box .small-label { font-size: .65rem; }
  .best-box strong { font-size: .75rem; }
  .scene { aspect-ratio: 1.83; }
  .scene-card, .mixer-card { border-radius: 12px; }
  .room-label { top: 9px; left: 9px; font-size: .72rem; padding: 4px 7px; }
  .scene-tag { right: 8px; bottom: 8px; font-size: .67rem; padding: 4px 6px; }
  .scene-tag i { width: 11px; height: 11px; }
  .swatch-tray { padding: 12px; }
  .swatch-item { gap: 8px; }
  .swatch-item + .swatch-item { padding-left: 12px; }
  .swatch { width: 30px; height: 35px; border-radius: 6px; }
  .small-label { font-size: .66rem; }
  .keyboard-tip { text-align: left; gap: 9px; font-size: .8rem; }
  .footer-content { flex-direction: column; align-items: flex-start; gap: 7px; }
  .footer-content p { text-align: left; }
  dialog { padding: 18px 20px; }
}
@media (max-width: 365px) {
  .shell { width: calc(100% - 24px); }
  nav { gap: 7px; }
  .guide-link { padding-inline: 0; font-size: .78rem; }
  .guide-link .icon { width: 14px; }
  .brand { font-size: 1.25rem; }
  .brand img { width: 32px; }
  .play-link { padding-inline: 8px; }
  .hero-content { padding-top: 81px; }
  .swatch-item strong { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
