@font-face {
  font-family: local-rounded;
  src: local('Hiragino Sans GB');
  font-display: swap;
}
:root {
  --paper: #faf9f5;
  --ink: #3e394b;
  --muted: #797482;
  --purple: #8872a4;
  --purple-dark: #70578e;
  --line: #e8e4e9;
  --lavender: #eee8f5;
  --mint: #e7eee7;
  --peach: #f6e9de;
  --radius: 22px;
  --shadow: 0 8px 35px #49365809;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 105px;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: local-rounded, 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
body:has(dialog[open]) {
  overflow: hidden;
}
button,
input,
textarea {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button {
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
canvas:focus-visible {
  outline: 3px solid #8c71ac;
  outline-offset: 5px;
}
button {
  touch-action: manipulation;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 650;
}
button:not(.button) {
  font-family: inherit;
}
button[hidden],
[hidden] {
  display: none !important;
}
.wrap {
  width: min(1120px, calc(100% - 64px));
  margin-inline: auto;
}
.section {
  padding-block: 84px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2.2px;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 15px;
}
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 1px solid transparent;
  border-radius: 100px;
  padding: 11px 24px;
  font-size: 13px;
  font-weight: 600;
  transition:
    background 0.2s,
    transform 0.2s;
  white-space: nowrap;
}
.button:hover {
  transform: translateY(-2px);
}
.button-primary {
  background: var(--purple);
  color: #fff;
}
.button-primary:hover {
  background: var(--purple-dark);
}
.button-outline {
  border-color: #d9d1e2;
  background: transparent;
  color: var(--purple-dark);
}
.button-outline:hover {
  background: #eee8f5;
}
.button-small {
  min-height: 44px;
  padding: 8px 19px;
  font-size: 12px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: none;
  border: 0;
  padding: 9px 0;
  min-height: 44px;
  color: var(--purple-dark);
  font-size: 13px;
  line-height: 1.6;
}
.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.muted {
  font-size: 12px;
  color: var(--muted);
}
.fine-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 23px;
  line-height: 1.9;
}
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #faf9f5f2;
  border-bottom: 1px solid #ede9e7;
  backdrop-filter: blur(12px);
}
.header-inner {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.header-actions,
.dialog-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.language-switch {
  min-width: 58px;
  min-height: 44px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: transparent;
  color: var(--purple-dark);
  font-size: 12px;
}
.language-switch:hover {
  background: var(--lavender);
}
html[lang='en'] .brand {
  letter-spacing: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 20px;
  letter-spacing: 2px;
  font-weight: 650;
  line-height: 1.5;
}
.brand small {
  font-size: 7px;
  display: block;
  letter-spacing: 2.2px;
  font-weight: 500;
  color: #8c8492;
  margin-top: 3px;
}
.brand-moon {
  font-size: 47px;
  font-family: Georgia, serif;
  line-height: 1;
  color: var(--purple);
  transform: rotate(-20deg);
  display: block;
}
.desktop-nav {
  display: flex;
  gap: 28px;
  font-size: 12px;
  align-items: center;
}
.desktop-nav a {
  position: relative;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.desktop-nav a:hover {
  color: var(--purple);
}
.tiny-star {
  font-size: 13px;
  color: #b8a16b;
  margin-left: 5px;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 596px;
  gap: 14px;
  padding-block: 46px 56px;
}
.hero .eyebrow {
  letter-spacing: 2px;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
}
.status-dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  background: #94a28a;
  border-radius: 50%;
}
.hero h1 {
  font-size: clamp(34px, 3.8vw, 51px);
  line-height: 1.55;
  letter-spacing: 2px;
  position: relative;
  font-weight: 650;
}
.name-underline {
  color: var(--purple);
  position: relative;
  isolation: isolate;
}
.name-underline:after {
  content: '';
  position: absolute;
  left: 0;
  right: -3px;
  bottom: 0;
  height: 12px;
  background: #eddcb5;
  border-radius: 40% 65%;
  z-index: -1;
  transform: rotate(-3deg);
}
.title-star {
  font-size: 35px;
  color: #bba675;
  display: inline-block;
  transform: translate(13px, -28px) rotate(20deg);
}
.hero-description {
  color: var(--muted);
  font-size: 14px;
  line-height: 2.2;
  margin-top: 24px;
}
.hero-actions {
  display: flex;
  gap: 25px;
  align-items: center;
  margin-top: 30px;
}
.hero-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
}
.hero-note p {
  font-size: 10px;
  color: #686171;
  line-height: 1.7;
}
.hero-note p span {
  display: block;
  font-size: 9px;
  color: #938995;
}
.little-faces {
  display: flex;
  padding-left: 5px;
}
.little-faces i {
  font-style: normal;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: #e9dfd4;
  border: 2px solid var(--paper);
  color: #b08a79;
  margin-left: -5px;
}
.little-faces i:nth-child(2) {
  background: #e4e8dc;
  color: #8b9a77;
}
.little-faces i:nth-child(3) {
  background: #e7dff0;
  color: #a28cbb;
}
.hero-art {
  position: relative;
}
.hero-art > img {
  width: 100%;
  animation: bob 7s ease-in-out infinite;
}
.hero-sticker {
  position: absolute;
  z-index: 1;
  border: 1px solid #fff;
  background: #fffdf8;
  padding: 10px 19px;
  box-shadow: 0 5px 20px #66556d09;
  border-radius: 10px;
  font-size: 10px;
  letter-spacing: 1px;
}
.top-sticker {
  top: 22px;
  right: 12px;
  transform: rotate(6deg);
}
.top-sticker span {
  color: #c5a364;
  font-size: 16px;
  margin-left: 5px;
}
.bottom-sticker {
  bottom: 44px;
  left: 7px;
  transform: rotate(-8deg);
  font-size: 12px;
}
.bottom-sticker span {
  font-size: 23px;
  color: var(--purple);
  vertical-align: middle;
  margin-right: 6px;
}
.art-note {
  position: absolute;
  bottom: 3px;
  right: 23px;
  font-size: 9px;
  color: #938797;
}
.values-strip {
  background: #f0edf2;
  border-block: 1px solid #e8e3ed;
}
.values-strip > .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding-block: 14px;
  font-size: 11px;
  letter-spacing: 3px;
  color: #7b7186;
}
.values-strip i {
  font-style: normal;
  color: #b8a3bd;
  font-size: 18px;
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.section-heading .eyebrow {
  margin-bottom: 10px;
}
h2 {
  font-size: 27px;
  letter-spacing: 1px;
  line-height: 1.6;
}
.section-heading h2 > span {
  color: #b79cae;
  font-size: 26px;
}
.section-aside {
  font-size: 11px;
  line-height: 2;
  color: var(--muted);
  text-align: right;
}
.game-grid,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 23px;
}
.game-card {
  border: 1px solid #e7e1e9;
  overflow: hidden;
  padding: 0;
  text-align: left;
  border-radius: var(--radius);
  background: #fffdf9;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
  box-shadow: var(--shadow);
}
.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px #49365813;
}
.game-art {
  height: 198px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.lavender .game-art {
  background: #e8e0f0;
}
.peach .game-art {
  background: #f1e1d3;
}
.mint .game-art {
  background: #dce8de;
}
.memory-art {
  padding: 24px 90px;
  display: grid;
  grid-template-columns: repeat(2, 58px);
  gap: 10px;
  transform: none;
}
.memory-art > span {
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #fffaf4;
  font-size: 31px;
  box-shadow: 0 5px 0 #a898b338;
  transform: rotate(-9deg);
  color: #9f89b4;
}
.memory-art > span:nth-child(2),
.memory-art > span:nth-child(3) {
  background: #b6a0ca;
  color: #eae0f1;
  transform: rotate(7deg);
}
.number-art {
  gap: 7px;
  padding-bottom: 25px;
}
.number-art > span {
  width: 48px;
  height: 64px;
  border-radius: 9px;
  background: #fffaf0;
  display: grid;
  place-items: center;
  font:
    600 30px Georgia,
    serif;
  color: #aa8263;
  transform: rotate(-8deg);
  box-shadow: 0 5px 0 #b89b7930;
}
.number-art > span:nth-child(2n) {
  transform: rotate(8deg) translateY(-6px);
}
.number-art > i {
  position: absolute;
  bottom: 27px;
  right: 62px;
  font:
    italic 25px Georgia,
    serif;
  color: #a58874;
  transform: rotate(-8deg);
}
.star-art > span {
  font-size: 119px;
  color: #c5ab67;
  text-shadow: 0 6px 0 #c3a15f30;
  transform: rotate(-12deg);
  line-height: 1;
}
.star-art:before {
  content: '';
  position: absolute;
  width: 139px;
  height: 139px;
  border-radius: 50%;
  border: 1px dashed #a9b9a7;
}
.star-art > i {
  position: absolute;
  font-style: normal;
  color: #92ae9c;
  font-size: 30px;
}
.star-one {
  left: 66px;
  top: 25px;
}
.star-two {
  right: 64px;
  top: 44px;
}
.star-three {
  right: 84px;
  bottom: 25px;
}
.star-art > b {
  position: absolute;
  right: 66px;
  bottom: 41px;
  color: #708d7a;
  font:
    italic 18px Georgia,
    serif;
  transform: rotate(-20deg);
}
.game-card-copy {
  padding: 24px 25px 19px;
  display: flex;
  flex-direction: column;
}
.card-tag {
  font-size: 10px;
  color: #91879a;
  letter-spacing: 0.7px;
}
.game-card-copy strong {
  font-size: 20px;
  font-weight: 600;
  margin: 7px 0 8px;
  letter-spacing: 1px;
}
.game-card-copy > span:nth-last-child(2) {
  font-size: 11px;
  color: var(--muted);
}
.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 21px;
  font-size: 11px;
  font-weight: 600;
  color: var(--purple-dark);
}
.card-bottom i {
  font-style: normal;
  background: #f2edf5;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 17px;
}
.community-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 35px 0 14px;
}
.community-heading h3 {
  font-size: 16px;
  font-weight: 600;
}
.community-heading .muted {
  max-width: 500px;
  font-size: 10px;
}
.small-badge {
  font-size: 9px;
  padding: 4px 9px;
  border-radius: 5px;
  background: #ede7f2;
  color: #8d789e;
  vertical-align: middle;
  margin-left: 8px;
  font-weight: 400;
}
.community-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.empty-state {
  grid-column: 1/-1;
  padding: 25px;
  border: 1px dashed #dcd4e3;
  border-radius: 14px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.mini-card {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fffdf9;
  padding: 20px;
  min-width: 0;
}
.mini-card h4 {
  margin: 8px 0;
  font-size: 15px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.mini-card p {
  font-size: 11px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.mini-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.mini-card .text-link {
  font-size: 11px;
}
.mini-card .game-icon {
  font-size: 25px;
  line-height: 1;
}
.mini-card .small-badge {
  float: right;
}
.studio-section {
  padding-block: 75px;
  background: #f0edf3;
  border-block: 1px solid #e9e3ed;
}
.studio-section .section-heading {
  margin-bottom: 12px;
}
.studio-label {
  font-size: 11px;
  border: 1px solid #cfc1dc;
  border-radius: 50px;
  padding: 6px 15px;
  color: var(--purple-dark);
  white-space: nowrap;
}
.section-intro {
  font-size: 12px;
  color: var(--muted);
  line-height: 2;
}
.studio-steps {
  display: flex;
  list-style: none;
  gap: 40px;
  padding: 0;
  margin: 28px 0;
  font-size: 11px;
  color: #7a6f87;
}
.studio-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.studio-steps li > span {
  display: grid;
  place-items: center;
  background: #e0d7ea;
  border: 1px solid #d3c8df;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font:
    italic 13px Georgia,
    serif;
}
.studio-workspace {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  border: 1px solid #ddd5e4;
  border-radius: 20px;
  background: #fffcf9;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.studio-editor {
  padding: 30px;
}
.editor-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 17px;
}
.editor-heading h3 {
  font-size: 16px;
}
.status-text {
  font-size: 9px;
  color: #8b789b;
  background: #f2edf5;
  padding: 3px 8px;
  border-radius: 30px;
}
.login-panel {
  background: #f6f2f8;
  border-radius: 10px;
  padding: 13px 15px;
  margin-bottom: 20px;
}
.login-panel p {
  font-size: 10px;
  color: #7c7187;
  margin-bottom: 9px;
}
input,
textarea {
  background: #fffefb;
  border: 1px solid #dcd5e3;
  color: var(--ink);
  border-radius: 10px;
  min-width: 0;
  font-size: 14px;
  padding: 10px 13px;
}
input::placeholder,
textarea::placeholder {
  color: #98919e;
  font-size: 12px;
}
textarea {
  resize: vertical;
  min-height: 140px;
  width: 100%;
  line-height: 1.9;
  display: block;
}
#login-form,
#wish-form {
  display: flex;
  gap: 8px;
}
#creator-code,
#wish-input {
  flex: 1;
  width: 0;
}
.input-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}
.idea-examples {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
}
.idea-examples > span {
  font-size: 10px;
  color: var(--muted);
}
.idea-examples button {
  padding: 7px 9px;
  min-height: 38px;
  background: #f3eff5;
  border: 0;
  border-radius: 6px;
  color: #83718e;
  font-size: 10px;
}
.idea-examples button:hover {
  background: #e6dced;
}
.privacy-inline {
  font-size: 10px;
  line-height: 1.9;
  color: var(--muted);
  margin-top: 17px;
}
.generation-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 19px;
}
.generation-actions .button {
  font-size: 12px;
}
.form-message {
  font-size: 12px;
  color: var(--purple-dark);
  margin-top: 13px;
  overflow-wrap: anywhere;
}
.form-message.error {
  color: #a14e63;
}
.quota-note {
  font-size: 9px;
  color: #948899;
  line-height: 1.9;
  margin-top: 14px;
}
.session-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #edf2ec;
  padding: 5px 14px;
  border-radius: 10px;
  font-size: 11px;
  margin-bottom: 18px;
  color: #68806a;
}
.studio-preview {
  background: #f7f4f8;
  border-left: 1px solid #e7e0ec;
  padding: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.preview-empty {
  text-align: center;
}
.preview-empty > span:first-child {
  font-size: 75px;
  line-height: 1;
  color: #b7a1ca;
  display: block;
  margin-bottom: 22px;
}
.preview-empty h3 {
  font-size: 17px;
  margin-bottom: 13px;
  font-weight: 500;
}
.preview-empty p {
  font-size: 11px;
  line-height: 2.1;
  color: #94879e;
}
.preview-sticker {
  display: inline-block;
  font-size: 10px;
  transform: rotate(-4deg);
  background: #eee5d8;
  color: #a08c71;
  padding: 6px 17px;
  margin-top: 37px;
  border-radius: 5px;
}
.preview-game {
  width: 100%;
  text-align: center;
}
.preview-game .game-icon {
  font-size: 60px;
  line-height: 1;
}
.preview-game h3 {
  font-size: 22px;
  margin: 16px 0 10px;
  overflow-wrap: anywhere;
}
.preview-game > p {
  font-size: 12px;
  color: var(--muted);
}
.preview-game .button {
  margin-top: 18px;
}
.preview-game .preview-status {
  margin-top: 18px;
  font-size: 11px;
  line-height: 1.8;
}
.preview-game .mini-card-actions {
  justify-content: center;
}
.admin-panel {
  margin-top: 30px;
  border: 1px solid #ddcfe6;
  padding: 0 22px 22px;
  border-radius: 15px;
}
.admin-panel > p {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 15px;
}
.handwritten {
  font-size: 12px;
  color: #aa8b8f;
  transform: rotate(-5deg);
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.art-card {
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
}
.art-image {
  display: block;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  padding: 9px;
  background: white;
  box-shadow: 0 4px 18px #47314908;
  border: 1px solid #ede7e5;
  transition: transform 0.2s;
}
.art-image img {
  width: 100%;
  border-radius: 6px;
}
.art-card:nth-child(1) .art-image {
  transform: rotate(-2deg);
}
.art-card:nth-child(3) .art-image {
  transform: rotate(2deg);
}
.art-card:hover .art-image {
  transform: rotate(0) translateY(-4px);
}
.sample-label {
  position: absolute;
  bottom: 19px;
  left: 19px;
  background: #fffdf3e6;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 9px;
  color: #736763;
}
.art-caption {
  display: flex;
  flex-direction: column;
  padding: 18px 8px 0;
}
.art-caption strong {
  font-size: 14px;
  font-weight: 550;
}
.art-caption > span {
  font-size: 10px;
  color: #9d929c;
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
}
.art-caption i {
  font-style: normal;
  font-size: 17px;
  color: #a78d9f;
}
.memories-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 65px;
  border-radius: 22px;
  background: #ebe8ef;
  padding: 36px 60px;
  margin-top: 12px;
}
.memories-copy h2 {
  font-size: 26px;
  margin-bottom: 18px;
}
.memories-copy > p:not(.eyebrow) {
  font-size: 12px;
  color: var(--muted);
  line-height: 2;
}
.memories-copy .text-link {
  margin-top: 13px;
}
.memories-copy small {
  font-size: 9px;
  color: #958b9c;
  display: block;
  margin-top: 5px;
}
.video-card {
  position: relative;
  padding: 0;
  background: #e1d9eb;
  border: 6px solid #fefbf8;
  overflow: hidden;
  border-radius: 13px;
  transform: rotate(2deg);
  box-shadow: 0 6px 15px #6552790c;
}
.video-card img {
  width: 100%;
  height: 244px;
  object-fit: contain;
}
.play-circle {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fffdf7e8;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  color: #8a75a0;
  font-size: 16px;
  padding-left: 3px;
}
.video-caption {
  display: flex;
  justify-content: space-between;
  background: #fffdf8;
  padding: 10px 7px 5px;
  font-size: 10px;
}
.video-caption > span {
  font-size: 9px;
  color: var(--muted);
}
.little-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 25px;
}
.drawing-card,
.wish-card {
  border: 1px solid #e9e2e9;
  border-radius: 18px;
  padding: 27px;
  background: #fffdfa;
}
.drawing-card .editor-heading {
  margin-bottom: 3px;
}
.drawing-card .editor-heading > span {
  font-size: 10px;
  color: var(--muted);
}
canvas {
  display: block;
  width: 100%;
  height: auto;
  background: #faf7f1;
  border: 1px dashed #ded5e4;
  border-radius: 10px;
  touch-action: none;
  margin-top: 15px;
  cursor: crosshair;
}
.drawing-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
}
.color-palette {
  display: flex;
  gap: 3px;
}
.color {
  width: 40px;
  height: 40px;
  border: 8px solid #fffdfa;
  border-radius: 50%;
  position: relative;
}
.color[aria-pressed='true'] {
  outline: 1px solid #a892b4;
  outline-offset: -4px;
}
.color-purple {
  background: #8a74a5;
}
.color-pink {
  background: #d39091;
}
.color-green {
  background: #6d9a85;
}
.color-gold {
  background: #c39a43;
}
.color-dark {
  background: #51465f;
}
.drawing-actions {
  display: flex;
  gap: 8px;
}
.drawing-card .fine-note {
  margin-top: 9px;
}
.wish-card {
  background: #f5efe5;
  position: relative;
  overflow: hidden;
}
.wish-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
}
.wish-card > p:not(.eyebrow) {
  font-size: 11px;
  line-height: 2;
  color: #958a7e;
}
.wish-decoration {
  position: absolute;
  right: 20px;
  top: 15px;
  color: #c7b38b;
  font-size: 67px;
  transform: rotate(14deg);
  opacity: 0.7;
  pointer-events: none;
}
.wish-card .eyebrow {
  color: #a2947d;
  margin-top: 15px;
}
.wish-card #wish-form {
  margin-top: 20px;
}
.wish-empty {
  text-align: center;
  padding: 40px 15px;
  color: #b0a290 !important;
}
.wish-list {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}
.wish-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px dashed #ded2c3;
  padding: 8px 0;
  font-size: 12px;
}
.wish-list label {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  overflow-wrap: anywhere;
  min-width: 0;
}
.wish-list input {
  accent-color: var(--purple);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.wish-list li.done label span {
  text-decoration: line-through;
  color: #9b938b;
}
.wish-list button {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: none;
  color: #a69280;
  font-size: 20px;
}
.farewell {
  text-align: center;
  padding-block: 36px 80px;
}
.farewell > span {
  font-size: 35px;
  color: #b7a26c;
}
.farewell h2 {
  font-size: 23px;
  margin: 12px 0;
}
.farewell p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 22px;
}
.footer {
  display: flex;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-block: 25px 35px;
}
.footer-brand {
  font-size: 14px;
  letter-spacing: 1px;
}
.footer-brand .brand-moon {
  font-size: 29px;
}
.footer > p {
  font-size: 10px;
  color: #9a919e;
}
.footer > div {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-left: auto;
  font-size: 10px;
  color: #96879d;
}
.footer .text-link {
  font-size: 10px;
  color: inherit;
}
.mobile-nav,
.mobile-only {
  display: none;
}
dialog {
  border: 1px solid #e5ddea;
  border-radius: 23px;
  background: var(--paper);
  color: var(--ink);
  padding: 28px;
  width: min(580px, calc(100% - 32px));
  max-height: 90dvh;
  box-shadow: 0 20px 100px #31283a33;
  overflow: auto;
}
dialog::backdrop {
  background: #3830457d;
  backdrop-filter: blur(5px);
}
.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}
.dialog-header .eyebrow {
  margin-bottom: 4px;
  font-size: 9px;
}
.dialog-header h2 {
  font-size: 22px;
  overflow-wrap: anywhere;
}
.close-button {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid #dfd5e5;
  background: #f1eaf5;
  font-size: 26px;
  line-height: 1;
  color: #897298;
}
.game-instructions {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 18px;
  line-height: 1.9;
}
.game-stats {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-radius: 10px;
  background: #eee8f3;
  padding: 11px 15px;
  font-size: 12px;
  margin-bottom: 18px;
}
.game-stats strong {
  font-weight: 600;
  color: var(--purple-dark);
}
.memory-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.memory-tile {
  aspect-ratio: 1;
  border: 1px solid #cfc0df;
  border-radius: 13px;
  background: #b49cc9;
  color: #eee6f5;
  font-size: 30px;
  box-shadow: 0 3px 0 #9c84b438;
  transition:
    background 0.2s,
    transform 0.15s;
  min-height: 60px;
}
.memory-tile.revealed,
.memory-tile.matched {
  background: #f8f3eb;
  color: var(--ink);
  border-color: #e4d9d0;
  transform: rotate(0);
}
.memory-tile.matched {
  background: #e8eee4;
  box-shadow: none;
  opacity: 0.75;
}
.game-feedback {
  padding: 15px 0;
  font-size: 13px;
  color: var(--purple-dark);
  min-height: 58px;
  text-align: center;
  overflow-wrap: anywhere;
}
.game-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  flex-wrap: wrap;
  padding-top: 8px;
}
.game-fine {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  margin-top: 16px;
}
.number-board {
  display: flex;
  justify-content: center;
  gap: 10px;
  min-height: 106px;
  align-items: center;
  flex-wrap: wrap;
}
.number-tile {
  width: 88px;
  height: 88px;
  background: #f2e4d5;
  border: 2px solid transparent;
  border-radius: 13px;
  font-size: 30px;
  font-family: Georgia, serif;
  color: #886a59;
  overflow-wrap: anywhere;
}
.number-tile.selected {
  border-color: #8b73a4;
  background: #e7dcee;
}
.math-ops {
  display: flex;
  gap: 13px;
  justify-content: center;
  padding: 20px 0;
}
.math-ops button {
  width: 52px;
  height: 52px;
  font-size: 24px;
  border-radius: 50%;
  border: 1px solid #ddd1e3;
  background: #faf5fc;
}
.math-ops button.selected {
  background: var(--purple);
  color: white;
}
.math-expression {
  font-size: 19px;
  text-align: center;
  min-height: 48px;
  margin: 8px 0;
}
.tap-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.tap-cell {
  aspect-ratio: 1;
  min-height: 70px;
  border: 1px solid #d4ded1;
  border-radius: 15px;
  background: #e6ede4;
  font-size: 42px;
}
.tap-cell.active {
  background: #fbf4d8;
  border-color: #dbbf6a;
}
.tap-cell:not(.active) {
  color: transparent;
}
.tap-cell:disabled {
  opacity: 1;
}
.game-overlay {
  border: 1px dashed #d3c6dc;
  border-radius: 13px;
  padding: 24px;
  text-align: center;
  margin-bottom: 15px;
}
.game-overlay h3 {
  font-size: 19px;
  margin-bottom: 10px;
}
.game-overlay p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 17px;
}
.quiz-question {
  font-size: 21px;
  padding: 20px 0 26px;
  line-height: 1.7;
}
.quiz-options {
  display: grid;
  gap: 12px;
}
.quiz-options button {
  background: #f1eaf6;
  border: 1px solid #ddd2e7;
  text-align: left;
  border-radius: 12px;
  padding: 15px 18px;
  min-height: 52px;
  line-height: 1.7;
}
.quiz-options button.correct {
  background: #e4eee0;
  border-color: #91af7e;
  opacity: 1;
}
.quiz-options button.wrong {
  background: #f5e3e6;
  border-color: #caa0a5;
  opacity: 1;
}
.media-dialog {
  width: min(850px, calc(100% - 32px));
}
.media-dialog img {
  width: 100%;
  max-height: 65dvh;
  object-fit: contain;
  border-radius: 9px;
  background: #f2edf5;
}
.media-dialog video {
  display: block;
  width: 100%;
  max-height: 65dvh;
  border-radius: 9px;
  background: #e8e0f1;
}
.media-dialog p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 15px;
}
.privacy-copy p {
  font-size: 13px;
  margin-bottom: 16px;
  line-height: 2;
}
.toast {
  position: fixed;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
  background: #4e425bec;
  color: white;
  padding: 12px 23px;
  border-radius: 13px;
  box-shadow: 0 6px 25px #33263722;
  max-width: calc(100% - 36px);
  width: max-content;
  font-size: 12px;
  z-index: 100;
  pointer-events: none;
  line-height: 1.8;
}
.skip-link {
  position: fixed;
  top: 4px;
  left: 10px;
  transform: translateY(-150%);
  z-index: 100;
  background: white;
  padding: 10px 20px;
}
.skip-link:focus {
  transform: translateY(0);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.noscript {
  background: #f3e8cf;
  padding: 20px;
  text-align: center;
}
.error-state {
  color: #a14e63;
}
.share-field {
  width: 100%;
  font-size: 12px;
}
.busy {
  animation: pulse 1.3s ease-in-out infinite;
}
@keyframes bob {
  50% {
    transform: translateY(-8px);
  }
}
@keyframes pulse {
  50% {
    opacity: 0.55;
  }
}
.review-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12px;
  line-height: 1.8;
  margin-block: 16px;
  min-height: 44px;
}
.review-check input {
  accent-color: var(--purple);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}
.game-dialog[data-theme='mint'] .game-stats {
  background: #e3ecdf;
}
.game-dialog[data-theme='peach'] .game-stats {
  background: #f2e5d8;
}
.game-dialog[data-theme='mint'] .memory-tile:not(.revealed):not(.matched) {
  background: #a3bea0;
  border-color: #8fab8b;
}
.game-dialog[data-theme='peach'] .memory-tile:not(.revealed):not(.matched) {
  background: #caab93;
  border-color: #b99379;
}
.game-dialog[data-theme='mint'] .quiz-options button:not(.correct):not(.wrong) {
  background: #e6eee2;
  border-color: #cadbc5;
}
.game-dialog[data-theme='peach'] .quiz-options button:not(.correct):not(.wrong) {
  background: #f3e7d9;
  border-color: #e3ceb6;
}
@media (min-width: 1400px) {
  .hero {
    gap: 35px;
    min-height: 630px;
  }
  .hero h1 {
    font-size: 51px;
  }
  .hero-art > img {
    width: 540px;
  }
}
@media (max-width: 1000px) {
  .wrap {
    width: calc(100% - 48px);
  }
  .desktop-nav {
    gap: 18px;
    font-size: 11px;
  }
  .header .button {
    padding-inline: 15px;
    gap: 8px;
  }
  .hero {
    min-height: 535px;
  }
  .hero h1 {
    font-size: 37px;
  }
  .title-star {
    font-size: 25px;
    transform: translate(5px, -24px);
  }
  .hero-actions {
    gap: 17px;
  }
  .hero-actions .button {
    padding-inline: 20px;
  }
  .hero-actions .text-link {
    font-size: 11px;
  }
  .game-card-copy {
    padding: 20px;
  }
  .game-art {
    height: 175px;
  }
  .game-grid,
  .gallery-grid {
    gap: 17px;
  }
  .number-art > span {
    width: 41px;
    height: 58px;
    font-size: 25px;
  }
  .star-one {
    left: 33px;
  }
  .star-two {
    right: 35px;
  }
  .star-three {
    right: 46px;
  }
  .star-art > b {
    right: 33px;
  }
  .game-card-copy strong {
    font-size: 18px;
  }
  .game-card-copy > span:nth-last-child(2) {
    font-size: 10px;
  }
  .studio-editor {
    padding: 24px;
  }
  .studio-preview {
    padding: 25px;
  }
  .memories-section {
    gap: 40px;
    padding: 30px 40px;
  }
  .footer > div {
    gap: 15px;
  }
  .color {
    width: 34px;
    height: 36px;
    border-width: 7px;
  }
}
@media (max-width: 760px) {
  html {
    scroll-padding-top: 82px;
  }
  .wrap {
    width: calc(100% - 36px);
  }
  .header-inner {
    height: 73px;
    gap: 10px;
  }
  .brand {
    font-size: 17px;
    letter-spacing: 1.4px;
    gap: 7px;
  }
  .brand small {
    font-size: 6px;
    letter-spacing: 1.5px;
  }
  .brand-moon {
    font-size: 38px;
  }
  .desktop-nav {
    display: none;
  }
  .header .button {
    font-size: 10px;
    min-height: 39px;
    padding: 7px 13px;
    gap: 5px;
  }
  .hero {
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 445px;
    padding-block: 35px;
  }
  .hero h1 {
    font-size: 29px;
    letter-spacing: 0.6px;
    line-height: 1.65;
  }
  .hero .eyebrow {
    font-size: 9px;
    letter-spacing: 1px;
    margin-bottom: 15px;
  }
  .title-star {
    display: none;
  }
  .hero-description {
    font-size: 11px;
    margin-top: 18px;
    line-height: 2;
  }
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    margin-top: 21px;
  }
  .hero-actions .button {
    font-size: 11px;
    min-height: 45px;
    padding: 9px 19px;
  }
  .hero-note {
    margin-top: 16px;
  }
  .hero-note p {
    font-size: 8px;
  }
  .hero-note p span {
    font-size: 8px;
  }
  .little-faces i {
    height: 25px;
    width: 25px;
    font-size: 16px;
  }
  .hero-sticker {
    padding: 6px 10px;
    font-size: 8px;
    letter-spacing: 0;
  }
  .top-sticker {
    top: 0;
    right: 0;
  }
  .top-sticker span {
    font-size: 12px;
  }
  .bottom-sticker {
    bottom: 20px;
    left: 0;
    font-size: 9px;
  }
  .bottom-sticker span {
    font-size: 16px;
  }
  .art-note {
    font-size: 7px;
    bottom: -12px;
    right: 3px;
  }
  .values-strip > .wrap {
    gap: 10px;
    font-size: 10px;
    letter-spacing: 1px;
    padding-block: 10px;
  }
  .values-strip i {
    font-size: 15px;
  }
  .values-strip i:nth-last-child(2),
  .last-value {
    display: none;
  }
  .section {
    padding-block: 55px;
  }
  .section-heading {
    gap: 12px;
    margin-bottom: 24px;
  }
  h2 {
    font-size: 22px;
  }
  .section-heading h2 > span {
    font-size: 22px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1.7px;
  }
  .section-aside {
    font-size: 9px;
  }
  .game-grid {
    gap: 12px;
  }
  .game-art {
    height: 145px;
  }
  .memory-art {
    padding: 15px;
    grid-template-columns: repeat(2, 43px);
    gap: 8px;
  }
  .memory-art > span {
    font-size: 23px;
    height: 46px;
  }
  .number-art {
    gap: 4px;
    flex-wrap: wrap;
    padding: 35px 24px 40px;
    align-content: center;
  }
  .number-art > span {
    height: 39px;
    width: 32px;
    font-size: 23px;
  }
  .number-art > i {
    font-size: 21px;
    bottom: 16px;
    right: 23px;
  }
  .star-art > span {
    font-size: 90px;
  }
  .star-art:before {
    width: 103px;
    height: 103px;
  }
  .star-art > i {
    font-size: 23px;
  }
  .star-one {
    left: 14px;
    top: 13px;
  }
  .star-two {
    right: 12px;
    top: 23px;
  }
  .star-three {
    right: 22px;
    bottom: 15px;
  }
  .star-art > b {
    right: 14px;
    bottom: 24px;
    font-size: 15px;
  }
  .game-card-copy {
    padding: 15px;
  }
  .card-tag {
    font-size: 8px;
    letter-spacing: 0;
  }
  .game-card-copy strong {
    font-size: 16px;
    margin-block: 8px;
  }
  .game-card-copy > span:nth-last-child(2) {
    font-size: 9px;
    line-height: 1.8;
  }
  .card-bottom {
    font-size: 10px;
    margin-top: 15px;
  }
  .card-bottom i {
    width: 24px;
    height: 24px;
    font-size: 15px;
  }
  .community-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .studio-section {
    padding-block: 50px;
  }
  .studio-label {
    font-size: 9px;
    padding: 5px 10px;
  }
  .section-intro {
    font-size: 11px;
  }
  .studio-steps {
    gap: 21px;
    font-size: 10px;
  }
  .studio-workspace {
    grid-template-columns: 1fr;
  }
  .studio-editor {
    padding: 24px;
  }
  .studio-preview {
    border-left: 0;
    border-top: 1px solid #e7e0ec;
    padding: 30px;
  }
  .preview-empty > span:first-child {
    font-size: 48px;
    margin-bottom: 13px;
  }
  .preview-empty h3 {
    font-size: 16px;
  }
  .preview-sticker {
    margin-top: 20px;
  }
  .community-heading .muted {
    max-width: 50%;
    font-size: 9px;
  }
  .gallery-grid {
    gap: 13px;
  }
  .art-image {
    padding: 6px;
    border-radius: 9px;
  }
  .sample-label {
    left: 12px;
    bottom: 12px;
    font-size: 8px;
  }
  .art-caption {
    padding: 13px 3px 0;
  }
  .art-caption strong {
    font-size: 11px;
  }
  .art-caption > span {
    font-size: 9px;
  }
  .memories-section {
    gap: 30px;
    padding: 29px;
  }
  .memories-copy h2 {
    font-size: 23px;
  }
  .memories-copy > p:not(.eyebrow) {
    font-size: 10px;
  }
  .video-card img {
    height: 210px;
  }
  .video-caption {
    font-size: 8px;
  }
  .little-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .drawing-card,
  .wish-card {
    padding: 21px;
  }
  .wish-card h3 {
    font-size: 19px;
  }
  .drawing-tools {
    flex-wrap: wrap;
    gap: 0;
    margin-block: 7px;
  }
  .drawing-tools > .text-link {
    font-size: 11px;
  }
  .drawing-actions {
    gap: 5px;
    flex-wrap: wrap;
  }
  .drawing-actions .button {
    font-size: 10px;
    padding: 7px 14px;
  }
  .wish-card #wish-form {
    flex-wrap: wrap;
  }
  #wish-input {
    width: 100%;
  }
  .wish-decoration {
    font-size: 48px;
    right: 10px;
    top: 10px;
  }
  .farewell {
    padding-block: 20px 50px;
  }
  .farewell h2 {
    font-size: 21px;
  }
  .footer {
    padding-bottom: 100px;
    flex-wrap: wrap;
    gap: 14px;
  }
  .footer > div {
    width: 100%;
    margin-left: 0;
    gap: 25px;
  }
  .mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 5px 15px calc(5px + env(safe-area-inset-bottom));
    height: calc(65px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #fffdf8f5;
    border-top: 1px solid #e5ddea;
    z-index: 30;
    backdrop-filter: blur(12px);
    box-shadow: 0 -5px 25px #3c2a4905;
  }
  .mobile-nav a,
  .mobile-nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: #8c799a;
    gap: 0;
    border: 0;
    background: none;
    line-height: 1.5;
    min-height: 49px;
  }
  .mobile-nav span {
    font-size: 23px;
    line-height: 1.3;
  }
  .mobile-nav a:hover {
    color: #604879;
  }
  .toast {
    bottom: calc(80px + env(safe-area-inset-bottom));
    font-size: 11px;
  }
  .fine-note {
    font-size: 10px;
    line-height: 1.9;
  }
  .game-dialog {
    max-height: 94dvh;
  }
  .media-dialog {
    padding: 20px;
  }
}
@media (max-width: 520px) {
  .hero {
    grid-template-columns: 1fr;
    padding-block: 30px 20px;
    position: relative;
    gap: 8px;
  }
  .hero-copy {
    z-index: 1;
  }
  .hero h1 {
    font-size: 35px;
    line-height: 1.5;
    letter-spacing: 1px;
  }
  .hero-description {
    font-size: 12px;
    line-height: 2;
    margin-top: 19px;
  }
  .hero .eyebrow {
    font-size: 10px;
    margin-bottom: 19px;
  }
  .hero-actions {
    flex-direction: row;
    align-items: center;
    gap: 20px;
    margin-top: 24px;
  }
  .hero-actions .button {
    font-size: 12px;
    min-height: 47px;
  }
  .hero-actions .text-link {
    font-size: 11px;
  }
  .hero-note {
    margin-top: 21px;
  }
  .hero-art {
    width: 86%;
    margin: -15px 0 0 auto;
    align-self: end;
  }
  .hero-art > img {
    width: 100%;
  }
  .top-sticker {
    top: 7px;
    right: 0;
    font-size: 9px;
    padding: 8px 13px;
  }
  .bottom-sticker {
    bottom: 23px;
    left: -18px;
    font-size: 10px;
    padding: 8px 15px;
  }
  .art-note {
    bottom: 1px;
    right: 12px;
  }
  .hero-note p {
    font-size: 9px;
  }
  .hero-note p span {
    font-size: 8px;
  }
  .little-faces i {
    height: 27px;
    width: 27px;
    font-size: 18px;
  }
  .hero-note {
    gap: 9px;
  }
  .section-aside {
    display: none;
  }
  .section-heading {
    align-items: center;
  }
  h2 {
    font-size: 22px;
  }
  .values-strip > .wrap {
    font-size: 9px;
    gap: 7px;
  }
  .game-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .game-card {
    display: grid;
    grid-template-columns: 125px 1fr;
    border-radius: 18px;
    min-height: 173px;
  }
  .game-art {
    height: 100%;
    min-height: 173px;
  }
  .memory-art {
    grid-template-columns: repeat(2, 39px);
    gap: 8px;
    align-content: center;
  }
  .memory-art > span {
    height: 43px;
    font-size: 22px;
  }
  .number-art {
    padding: 34px 22px 48px;
    gap: 7px;
    align-items: center;
    justify-content: center;
  }
  .number-art > span {
    width: 32px;
    height: 39px;
    font-size: 25px;
  }
  .number-art > i {
    right: 20px;
    bottom: 29px;
    font-size: 21px;
  }
  .star-art > span {
    font-size: 82px;
  }
  .star-art:before {
    width: 92px;
    height: 92px;
  }
  .star-one {
    left: 15px;
    top: 23px;
  }
  .star-two {
    right: 12px;
    top: 41px;
  }
  .star-three {
    right: 10px;
    bottom: 22px;
  }
  .star-art > b {
    bottom: 38px;
    right: 12px;
    font-size: 15px;
  }
  .game-card-copy {
    padding: 18px 18px 13px;
  }
  .game-card-copy strong {
    font-size: 18px;
    margin-block: 6px;
  }
  .card-tag {
    font-size: 8px;
  }
  .game-card-copy > span:nth-last-child(2) {
    font-size: 10px;
    line-height: 1.9;
  }
  .card-bottom {
    margin-top: 11px;
    font-size: 10px;
  }
  .card-bottom i {
    width: 25px;
    height: 25px;
  }
  .fine-note {
    margin-top: 19px;
    font-size: 9px;
  }
  .community-heading {
    margin-top: 27px;
    align-items: flex-start;
  }
  .community-heading h3 {
    font-size: 15px;
  }
  .small-badge {
    font-size: 8px;
    padding: 3px 7px;
    margin-left: 5px;
  }
  .community-grid {
    grid-template-columns: 1fr;
  }
  .mini-card {
    padding: 18px;
  }
  .mini-card h4 {
    font-size: 16px;
  }
  .mini-card p {
    font-size: 12px;
  }
  .empty-state {
    font-size: 11px;
    padding: 22px 15px;
  }
  .studio-section h2 {
    font-size: 21px;
  }
  .studio-label {
    display: none;
  }
  .studio-steps {
    justify-content: space-between;
    gap: 6px;
    font-size: 9px;
    margin: 24px 0 18px;
  }
  .studio-steps li {
    gap: 5px;
  }
  .studio-steps li > span {
    width: 20px;
    height: 20px;
    font-size: 11px;
  }
  .studio-editor {
    padding: 21px 18px;
  }
  .editor-heading h3 {
    font-size: 15px;
  }
  .status-text {
    font-size: 8px;
  }
  .login-panel {
    padding: 12px;
  }
  .login-panel p {
    font-size: 10px;
  }
  .login-panel .button {
    padding-inline: 14px;
    font-size: 11px;
  }
  input,
  textarea {
    font-size: 16px;
  }
  textarea {
    min-height: 154px;
  }
  input::placeholder,
  textarea::placeholder {
    font-size: 12px;
  }
  .privacy-inline {
    font-size: 10px;
  }
  .idea-examples {
    gap: 5px;
  }
  .idea-examples > span {
    width: 100%;
    font-size: 9px;
  }
  .idea-examples button {
    font-size: 10px;
    min-height: 40px;
    padding: 7px 9px;
  }
  .generation-actions {
    gap: 13px;
    flex-wrap: wrap;
  }
  .generation-actions .button {
    font-size: 12px;
  }
  .quota-note {
    font-size: 9px;
  }
  .studio-preview {
    padding: 27px 20px;
  }
  .community-heading .muted {
    max-width: 52%;
    font-size: 8px;
  }
  .admin-panel {
    padding: 0 14px 15px;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 29px;
    padding-inline: 5px;
  }
  .art-image {
    padding: 9px;
    border-radius: 13px;
  }
  .art-card:nth-child(2) {
    margin-inline: 7px;
  }
  .sample-label {
    left: 20px;
    bottom: 20px;
    font-size: 9px;
  }
  .art-caption {
    padding: 15px 4px 0;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .art-caption strong {
    font-size: 14px;
  }
  .art-caption > span {
    font-size: 9px;
    gap: 13px;
    margin: 0;
  }
  .handwritten {
    font-size: 10px;
    max-width: 85px;
    text-align: right;
  }
  .memories-section {
    grid-template-columns: 1fr;
    padding: 30px 25px;
    gap: 25px;
    margin-top: 0;
  }
  .memories-copy h2 {
    font-size: 23px;
  }
  .memories-copy > p:not(.eyebrow) {
    font-size: 11px;
  }
  .video-card img {
    height: 230px;
  }
  .video-caption {
    font-size: 10px;
  }
  .little-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .drawing-card,
  .wish-card {
    padding: 23px;
  }
  .drawing-tools {
    flex-wrap: nowrap;
    margin-block: 9px;
  }
  .color {
    width: 38px;
    height: 38px;
    border-width: 8px;
  }
  .drawing-actions {
    gap: 7px;
  }
  .drawing-actions .button {
    font-size: 11px;
    padding: 7px 18px;
  }
  .wish-card #wish-form {
    flex-wrap: nowrap;
  }
  .wish-card h3 {
    font-size: 22px;
  }
  .wish-card > p:not(.eyebrow) {
    font-size: 12px;
  }
  .wish-empty {
    padding-block: 28px;
  }
  .wish-decoration {
    font-size: 64px;
    right: 18px;
  }
  .farewell h2 {
    font-size: 20px;
  }
  .farewell p {
    font-size: 11px;
  }
  .farewell .button {
    font-size: 12px;
  }
  .footer-brand {
    font-size: 14px;
  }
  .footer > p {
    font-size: 9px;
  }
  .footer > div {
    gap: 22px;
    font-size: 10px;
  }
  .game-dialog {
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
    padding: 20px 18px calc(25px + env(safe-area-inset-bottom));
    overscroll-behavior: contain;
  }
  .game-dialog .dialog-header {
    position: sticky;
    top: -20px;
    background: var(--paper);
    z-index: 2;
    padding-block: 5px 13px;
  }
  .dialog-header h2 {
    font-size: 21px;
  }
  .game-instructions {
    font-size: 12px;
  }
  .game-stats {
    font-size: 11px;
    padding: 10px 13px;
  }
  .memory-board {
    gap: 9px;
  }
  .memory-tile {
    font-size: 29px;
    border-radius: 12px;
    min-height: 60px;
  }
  .game-footer .button {
    font-size: 12px;
  }
  .number-board {
    gap: 8px;
    min-height: 86px;
  }
  .number-tile {
    width: 68px;
    height: 78px;
    font-size: 28px;
  }
  .math-ops {
    gap: 15px;
  }
  .tap-cell {
    font-size: 39px;
  }
  .game-feedback {
    font-size: 12px;
    min-height: 60px;
  }
  .game-overlay {
    padding: 22px 18px;
  }
  .quiz-question {
    font-size: 19px;
    padding: 17px 0 22px;
  }
  .media-dialog,
  .info-dialog {
    padding: 20px;
    border-radius: 17px;
  }
  .privacy-copy p {
    font-size: 12px;
  }
  .mobile-only {
    display: block;
  }
}
@media (max-width: 355px) {
  .wrap {
    width: calc(100% - 28px);
  }
  .hero h1 {
    font-size: 31px;
  }
  .hero-actions {
    gap: 12px;
  }
  .hero-actions .text-link {
    font-size: 10px;
  }
  .game-card {
    grid-template-columns: 104px 1fr;
  }
  .game-card-copy {
    padding: 16px 13px;
  }
  .game-card-copy strong {
    font-size: 16px;
  }
  .memory-art {
    grid-template-columns: repeat(2, 34px);
    gap: 6px;
    padding: 12px;
  }
  .memory-art > span {
    height: 40px;
  }
  .number-art {
    padding-inline: 12px;
  }
  .studio-editor {
    padding-inline: 14px;
  }
  .studio-steps {
    font-size: 8px;
  }
  .studio-steps li {
    gap: 3px;
  }
  .color {
    width: 34px;
  }
  .number-tile {
    width: 59px;
    height: 70px;
  }
  .game-dialog {
    padding-inline: 15px;
  }
  .brand small {
    font-size: 5px;
  }
  .header .button {
    font-size: 9px;
    padding-inline: 10px;
  }
}
@media (max-width: 520px) {
  .game-instructions,
  .game-feedback,
  .mini-card .text-link,
  .game-footer .button {
    font-size: 14px;
  }
  .game-card-copy > span:nth-last-child(2),
  .login-panel p,
  .privacy-inline,
  .section-intro,
  .muted,
  .preview-empty p {
    font-size: 12px;
  }
  .game-card {
    min-height: 185px;
  }
  .fine-note,
  .quota-note,
  .studio-steps {
    font-size: 11px;
  }
  .community-heading .muted {
    font-size: 10px;
  }
  .idea-examples button {
    min-height: 44px;
    font-size: 11px;
  }
  .status-text {
    font-size: 10px;
  }
  .mobile-nav a,
  .mobile-nav button {
    font-size: 11px;
  }
  .color {
    width: 44px;
    height: 44px;
  }
  .drawing-tools {
    flex-wrap: wrap;
  }
  .quiz-options button {
    font-size: 16px;
  }
  .game-stats {
    font-size: 12px;
  }
}
@media (max-width: 760px) {
  .header-actions {
    gap: 5px;
  }
  .header .button {
    min-height: 44px;
  }
  html[lang='en'] .header .brand {
    font-size: 15px;
  }
  .dialog-header > div:first-child {
    min-width: 0;
  }
  .dialog-header h2 {
    overflow-wrap: anywhere;
  }
}
html[lang='en'] .studio-steps {
  flex-wrap: wrap;
  row-gap: 12px;
}
html[lang='en'] .game-footer {
  flex-wrap: wrap;
}
html[lang='en'] .mini-card-actions {
  flex-wrap: wrap;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
