:root {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  color: #18312e;
  background: #edf2f0;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --accent: #0f6f63;
  --accent-dark: #0a554c;
  --accent-soft: #dcece8;
  --ink: #18312e;
  --muted: #667a76;
  --line: #d7dfdc;
  --surface: #ffffff;
  --surface-subtle: #f6f8f7;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: #edf2f0; }
body { margin: 0; min-width: 320px; min-height: 100dvh; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button, input, textarea, select { outline: none; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { box-shadow: 0 0 0 3px rgba(15, 111, 99, .22); }
::selection { color: #fff; background: #0f6f63; }
* { scrollbar-color: #96aaa5 transparent; scrollbar-width: thin; }

.app-shell { min-height: 100dvh; }
.topbar { height: 72px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.brand { display: flex; align-items: center; gap: 11px; min-width: 250px; }
.brand-mark { width: 42px; height: 38px; display: grid; place-items: center; color: #fff; background: var(--accent); border-radius: 12px; font-weight: 800; font-size: 12px; letter-spacing: -.02em; }
.brand div { display: grid; gap: 1px; }
.brand strong { font-size: 15px; }
.brand small { color: var(--muted); font-size: 11px; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.save-state { color: var(--muted); font-size: 12px; margin-right: 4px; }
.save-state.error { color: #8a2525; font-weight: 700; }

.button { min-height: 40px; border-radius: 10px; padding: 0 15px; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: 13px; font-weight: 600; cursor: pointer; transition: transform .16s ease, background .16s ease, border-color .16s ease; }
.button:active { transform: translateY(1px); }
.button.primary { color: #fff; background: var(--accent); }
.button.primary:hover { background: var(--accent-dark); }
.button.secondary { background: #fff; border-color: var(--line); }
.button.secondary:hover { background: var(--surface-subtle); border-color: #b8c7c3; }
.button:disabled { cursor: not-allowed; opacity: .4; }

.workspace { min-height: calc(100dvh - 72px); display: grid; grid-template-columns: 232px minmax(620px, 1fr) 410px; max-width: 1760px; margin: 0 auto; }
.step-nav { border-right: 1px solid var(--line); background: #f7f9f8; padding: 26px 16px; }
.project-label { padding: 0 10px 22px; display: grid; gap: 5px; border-bottom: 1px solid var(--line); }
.project-label small, .project-label span { color: var(--muted); font-size: 11px; }
.project-label strong { font-size: 14px; line-height: 1.45; }
.step-nav ol { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 4px; }
.step-nav li button { width: 100%; min-height: 61px; padding: 10px; border: 0; border-radius: 12px; background: transparent; display: grid; grid-template-columns: 30px 1fr 16px; align-items: center; text-align: left; gap: 9px; cursor: pointer; }
.step-nav li button:hover { background: #eef3f1; }
.step-nav li button.active { background: var(--accent-soft); color: var(--accent-dark); }
.step-nav li button > span:nth-child(2) { display: grid; gap: 2px; }
.step-nav li button strong { font-size: 13px; }
.step-nav li button small { color: var(--muted); font-size: 10px; }
.step-nav li button b { font-size: 12px; font-weight: 600; }
.step-index { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; border: 1px solid #c6d2cf; font-size: 12px; font-weight: 700; }
.step-nav .active .step-index { color: #fff; background: var(--accent); border-color: var(--accent); }
.template-lock { margin-top: 22px; padding: 13px; display: flex; align-items: flex-start; gap: 9px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.template-lock > span { width: 26px; height: 26px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; color: var(--accent-dark); background: var(--accent-soft); font-size: 10px; font-weight: 700; }
.template-lock strong { font-size: 12px; }
.template-lock p { color: var(--muted); font-size: 10px; line-height: 1.6; margin: 4px 0 0; }

.editor { min-width: 0; background: #fff; display: flex; flex-direction: column; }
.editor-section { width: min(840px, calc(100% - 64px)); margin: 0 auto; padding: 42px 0 28px; flex: 1; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; margin-bottom: 30px; }
.section-heading h1 { margin: 0 0 8px; font-size: clamp(24px, 2.1vw, 31px); line-height: 1.2; letter-spacing: -.025em; }
.section-heading h1 small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: 0; }
.section-token small { font-size: 8px; font-weight: 600; }
.en-copy { margin-top: 2px !important; color: #7b8b87 !important; font-size: 11px !important; }
.section-heading p { max-width: 55ch; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.section-token { min-width: 48px; height: 48px; padding: 0 9px; flex: 0 0 auto; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); border-radius: 14px; font-size: 11px; font-weight: 700; }
.form-grid.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field-label { display: flex; align-items: baseline; gap: 6px; font-size: 12px; font-weight: 700; }
.field-label small { color: var(--muted); font-size: 9px; font-weight: 500; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid #cbd6d3; background: #fff; border-radius: 10px; padding: 11px 12px; color: var(--ink); font-size: 13px; transition: border-color .16s ease, box-shadow .16s ease; }
.field textarea { resize: vertical; min-height: 98px; line-height: 1.65; }
.field select { min-height: 42px; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: #93aaa4; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); }
.field-hint { color: var(--muted); font-size: 10px; line-height: 1.5; }
.theme-block { margin-top: 8px; padding-top: 24px; border-top: 1px solid var(--line); }
.cover-block { margin-top: 8px; padding: 24px 0; border-top: 1px solid var(--line); }
.cover-editor { display: grid; grid-template-columns: 230px 1fr; gap: 18px; align-items: start; }
.cover-art-control { display: grid; gap: 9px; }
.cover-art-control .asset-tile { height: 230px; border-radius: 18px; background: linear-gradient(145deg, var(--accent-soft), #fff7e5); }
.cover-art-control .asset-placeholder b { width: 52px; height: 52px; display: grid; place-items: center; color: #fff; background: var(--accent); border-radius: 17px 17px 17px 6px; font-size: 20px; }
.cover-art-control > p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.cover-art-control > p small { font-size: 9px; }
.clear-asset { min-height: 38px; padding: 7px 10px; color: var(--accent-dark); background: #fff; border: 1px solid var(--line); border-radius: 10px; font-size: 10px; cursor: pointer; }
.clear-asset:hover { background: var(--surface-subtle); }
.cover-copy-fields .bilingual-field { margin-bottom: 12px; padding: 12px; }
.cover-copy-fields .language-pair { gap: 8px; }
.cover-style-section { margin-top: 18px; }
.cover-style-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cover-style-options > button { min-height: 82px; padding: 9px; display: grid; grid-template-columns: 54px 1fr 15px; align-items: center; gap: 9px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 13px; text-align: left; cursor: pointer; }
.cover-style-options > button:hover { background: var(--surface-subtle); }
.cover-style-options > button.selected { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 12%, transparent); }
.cover-style-options strong { display: grid; gap: 3px; font-size: 11px; }
.cover-style-options strong small { color: var(--muted); font-size: 8px; font-weight: 500; }
.cover-style-options > button > b { color: var(--accent); font-size: 11px; }
.cover-style-swatch { width: 54px; height: 58px; padding: 6px; display: grid; place-items: center; background: var(--accent-soft); border-radius: 12px; }
.cover-style-swatch i { display: grid; place-items: center; color: #fff; background: var(--accent); font-size: 11px; font-style: normal; }
.cover-style-swatch.playful i { width: 34px; height: 29px; border-radius: 11px; }
.cover-style-swatch.storybook { border-radius: 22px 22px 9px 9px; }
.cover-style-swatch.storybook i { width: 37px; height: 37px; border-radius: 50% 50% 10px 10px; }
.cover-style-swatch.poster { border-radius: 8px; background: var(--accent); }
.cover-style-swatch.poster i { width: 33px; height: 45px; color: var(--accent); background: #fff; border-radius: 4px; }
.cover-fit-field { margin-top: 12px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 18px; background: var(--surface-subtle); border-radius: 12px; }
.cover-fit-field > span { display: grid; gap: 2px; font-size: 11px; }
.cover-fit-field small { color: var(--muted); font-size: 8px; }
.cover-fit-field select { min-width: 210px; padding: 9px 11px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 9px; font-size: 10px; }
.mini-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.mini-heading strong { font-size: 13px; }
.mini-heading strong small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; font-weight: 500; }
.mini-heading small { color: var(--muted); font-size: 10px; }
.theme-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.theme-options button { min-height: 54px; display: grid; grid-template-columns: 21px 1fr auto; align-items: center; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-align: left; cursor: pointer; }
.theme-options button:hover { background: var(--surface-subtle); }
.theme-options button.selected { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(15, 111, 99, .1); }
.theme-options button > span { width: 20px; height: 20px; border-radius: 7px; }
.theme-options button strong { display: grid; gap: 1px; font-size: 11px; }
.theme-options button strong small { color: var(--muted); font-size: 8px; font-weight: 500; }
.theme-options button i { color: var(--accent); font-size: 9px; font-style: normal; }

.pair-list { display: grid; gap: 16px; }
.pair-row { display: grid; grid-template-columns: 48px 176px 1fr; gap: 16px; align-items: start; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.pair-number { display: grid; justify-items: center; gap: 5px; }
.pair-number span { width: 30px; height: 30px; display: grid; place-items: center; color: #fff; background: var(--accent); border-radius: 9px; font-size: 12px; font-weight: 700; }
.pair-number small { color: var(--muted); font-size: 9px; white-space: nowrap; }
.pair-assets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.asset-tile { height: 110px; position: relative; overflow: hidden; padding: 0; border: 1px dashed #aebfba; border-radius: 11px; background: #f3f6f5; cursor: pointer; }
.asset-tile img { width: 100%; height: 100%; object-fit: cover; }
.asset-placeholder { width: 100%; height: 100%; display: grid; place-items: center; align-content: center; gap: 2px; color: #284b46; }
.asset-placeholder b { font-size: 25px; }
.asset-placeholder small { font-size: 9px; }
.asset-action { position: absolute; inset: auto 5px 5px; min-height: 25px; display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(18, 49, 46, .82); border-radius: 7px; font-size: 9px; opacity: 0; transition: opacity .16s ease; }
.asset-tile:hover .asset-action, .asset-tile:focus-visible .asset-action { opacity: 1; }
.pair-fields .field { margin-bottom: 11px; }
.pair-fields .field:last-child { margin-bottom: 0; }
.pair-fields input { padding: 9px 10px; }
.info-callout { margin-top: 17px; padding: 13px 15px; display: flex; align-items: flex-start; gap: 10px; color: #385954; background: #eef5f3; border-radius: 12px; }
.info-callout strong { flex: 0 0 auto; color: var(--accent-dark); font-size: 11px; }
.info-callout p { margin: 0; font-size: 11px; line-height: 1.65; }

.collab-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: 7px; margin-bottom: 28px; }
.collab-flow > div { min-height: 78px; padding: 11px; display: grid; align-content: center; gap: 5px; background: var(--surface-subtle); border-radius: 12px; text-align: center; }
.collab-flow span { color: var(--accent); font-size: 10px; font-weight: 700; }
.collab-flow strong { font-size: 11px; line-height: 1.45; }
.collab-flow > b { color: #8ba09b; font-size: 13px; }
.example-prompts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 8px; }
.example-prompts strong { margin-right: 3px; font-size: 11px; }
.example-prompts button { min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--accent-dark); font-size: 11px; cursor: pointer; }
.example-prompts button:hover { background: var(--accent-soft); }

.review-list { border-top: 1px solid var(--line); }
.review-list > div { min-height: 68px; display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.review-list span:nth-child(2) { display: grid; gap: 4px; }
.review-list strong { font-size: 12px; }
.review-list small { color: var(--muted); font-size: 10px; }
.review-list button { min-height: 40px; padding: 0 9px; border: 0; background: transparent; color: var(--accent); font-size: 11px; font-weight: 700; cursor: pointer; }
.check { color: var(--accent); font-weight: 800; }
.review-list .waiting .check { color: #9a4e16; }
.palette-dot { width: 18px; height: 18px; border-radius: 6px; }
.error-box, .success-box { margin-top: 18px; padding: 13px 15px; border-radius: 12px; font-size: 11px; }
.error-box { color: #7b2929; background: #fae9e8; }
.error-box p { margin: 4px 0 0; }
.success-box { color: #174f47; background: #e4f2ee; }
.publish-card { width: 100%; margin-top: 18px; padding: 18px; display: grid; grid-template-columns: 46px 1fr 22px; align-items: center; gap: 14px; text-align: left; color: #fff; background: var(--accent); border: 0; border-radius: var(--radius); cursor: pointer; box-shadow: 0 12px 30px rgba(15, 86, 77, .18); transition: transform .16s ease, background .16s ease; }
.publish-card:hover { background: var(--accent-dark); transform: translateY(-1px); }
.publish-card:active { transform: translateY(1px); }
.publish-card > span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .14); font-size: 10px; font-weight: 700; }
.publish-card strong { font-size: 14px; }
.publish-card p { margin: 4px 0 0; color: #d8efeb; font-size: 10px; line-height: 1.6; }
.release-note { color: var(--muted); font-size: 10px; line-height: 1.65; }
.editor-footer { height: 66px; padding: 0 28px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; position: sticky; bottom: 0; background: rgba(255, 255, 255, .96); z-index: 10; }
.editor-footer > span { color: var(--muted); font-size: 10px; }

.preview-panel { background: #e9eeec; padding: 22px 26px; overflow: auto; }
.preview-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.preview-heading > div { display: flex; align-items: baseline; gap: 8px; }
.preview-heading span { font-size: 12px; font-weight: 700; }
.preview-heading small { color: var(--muted); font-size: 9px; }
.preview-heading button { min-height: 38px; padding: 0 11px; border: 1px solid #c8d3d0; border-radius: 8px; background: #fff; font-size: 10px; cursor: pointer; }
.phone-shell { width: 332px; height: 643px; margin: 0 auto; padding: 12px; position: relative; background: #16312e; border-radius: 38px; box-shadow: 0 24px 50px rgba(39, 64, 59, .2); }
.phone-speaker { width: 74px; height: 19px; border-radius: 0 0 13px 13px; background: #16312e; position: absolute; z-index: 4; top: 11px; left: 50%; transform: translateX(-50%); }
.phone-screen { width: 100%; height: 100%; overflow: hidden; position: relative; border-radius: 28px; background: #fff; }
.preview-note { width: 332px; margin: 14px auto 0; color: var(--muted); font-size: 9px; line-height: 1.55; }

.play-screen { --game-accent: #0f6f63; --game-soft: #dcece8; --game-ink: #123c37; --game-bg: #fbfcfb; --game-sun: #ffd45a; --game-coral: #ff7a73; --game-sky: #66c7ef; width: 100%; height: 100%; min-height: 0; padding: 40px 22px 24px; position: relative; overflow-x: hidden; overflow-y: auto; color: var(--game-ink); background: var(--game-bg); display: flex; flex-direction: column; }
.play-screen.compact { font-size: 90%; }
.welcome { isolation: isolate; align-items: center; justify-content: flex-start; padding: 22px 22px 24px; overflow: hidden; text-align: center; background: linear-gradient(180deg, color-mix(in srgb, var(--game-soft) 82%, #fff) 0%, #fff9ec 61%, var(--game-bg) 100%); }
.welcome::before { content: ""; width: 240px; height: 240px; position: absolute; z-index: -2; top: -126px; left: -112px; border-radius: 50%; background: color-mix(in srgb, var(--game-sky) 28%, transparent); }
.welcome::after { content: ""; width: 190px; height: 190px; position: absolute; z-index: -2; right: -92px; bottom: 54px; border-radius: 50%; background: color-mix(in srgb, var(--game-sun) 32%, #fff); }
.museum-tag { color: var(--game-accent); font-size: 13px; font-weight: 700; }
.dual-text { display: inline-grid; gap: 2px; }
.dual-text small { display: block; color: inherit; font-size: .72em; font-weight: 500; opacity: .72; }
.museum-tag .dual-text small { font-size: 10px; }
.welcome-brand { width: 100%; min-height: 34px; display: flex; align-items: center; gap: 8px; padding-right: 112px; color: var(--game-ink); text-align: left; }
.welcome-brand > span { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; color: #fff; background: var(--game-accent); border-radius: 12px 12px 12px 4px; box-shadow: 0 6px 13px color-mix(in srgb, var(--game-accent) 24%, transparent); font-size: 10px; font-weight: 900; }
.welcome-brand strong { font-size: 12px; letter-spacing: -.01em; }
.playful-sky { position: absolute; z-index: -1; inset: 74px 0 auto; height: 164px; pointer-events: none; }
.playful-sky i { position: absolute; display: block; border-radius: 50%; }
.playful-sky i:nth-child(1) { width: 16px; height: 16px; left: 25px; top: 18px; background: var(--game-sun); }
.playful-sky i:nth-child(2) { width: 10px; height: 10px; right: 35px; top: 4px; background: var(--game-coral); }
.playful-sky i:nth-child(3) { width: 8px; height: 28px; right: 24px; bottom: 21px; border-radius: 6px; background: var(--game-sky); transform: rotate(34deg); }
.playful-sky i:nth-child(4) { width: 22px; height: 8px; left: 21px; bottom: 7px; border-radius: 6px; background: var(--game-coral); transform: rotate(-25deg); }
.welcome-art { width: 208px; height: 171px; margin: 17px 0 9px; position: relative; display: grid; place-items: center; border-radius: 42px 42px 31px 31px; background: color-mix(in srgb, var(--game-soft) 76%, #fff); box-shadow: 0 18px 36px color-mix(in srgb, var(--game-accent) 18%, transparent); animation: welcome-rise .55s cubic-bezier(.16,1,.3,1) both; }
.welcome-art::after { content: ""; width: 126px; height: 14px; position: absolute; left: 41px; bottom: 17px; border-radius: 50%; background: color-mix(in srgb, var(--game-accent) 17%, transparent); filter: blur(2px); }
.custom-cover-art { overflow: hidden; background: var(--game-soft); }
.custom-cover-art::after { width: auto; height: 46%; left: 0; right: 0; bottom: 0; border-radius: 0; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--game-ink) 32%, transparent)); filter: none; }
.cover-image { width: 100%; height: 100%; display: block; object-fit: cover; }
.cover-fit-contain .cover-image { object-fit: contain; }
.cover-image-badge { width: 34px; height: 34px; position: absolute; z-index: 2; right: 12px; bottom: 11px; display: grid; place-items: center; color: var(--game-accent); background: #fff; border-radius: 11px 11px 11px 4px; box-shadow: 0 6px 14px rgba(24,39,35,.18); font-size: 13px; font-weight: 900; }
.museum-building { width: 132px; height: 88px; position: absolute; z-index: 1; bottom: 27px; color: #fff; background: var(--game-accent); border-radius: 10px 10px 24px 24px; box-shadow: 0 12px 20px color-mix(in srgb, var(--game-accent) 24%, transparent); }
.museum-roof { width: 140px; height: 38px; position: absolute; left: -8px; top: -34px; background: var(--game-accent); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.museum-column { width: 14px; height: 44px; position: absolute; bottom: 17px; border-radius: 7px 7px 3px 3px; background: rgba(255,255,255,.88); }
.museum-column:nth-of-type(2) { left: 20px; }
.museum-column:nth-of-type(3) { left: 55px; }
.museum-column:nth-of-type(4) { right: 20px; }
.museum-building > b { width: 32px; height: 32px; position: absolute; z-index: 2; left: 50px; top: -16px; display: grid; place-items: center; color: var(--game-accent); background: #fff; border-radius: 11px; font-size: 14px; }
.museum-face { width: 54px; height: 27px; position: absolute; z-index: 3; left: 39px; bottom: 4px; }
.museum-face > i { width: 6px; height: 8px; position: absolute; top: 0; border-radius: 50%; background: #fff; }
.museum-face > i:first-child { left: 10px; }
.museum-face > i:nth-child(2) { right: 10px; }
.museum-face > b { width: 18px; height: 9px; position: absolute; left: 18px; top: 9px; border: 3px solid #fff; border-top: 0; border-radius: 0 0 14px 14px; }
.artifact-token { width: 46px; height: 46px; position: absolute; z-index: 3; right: -11px; bottom: 20px; display: grid; place-items: center; color: #5d4100; background: var(--game-sun); border: 4px solid #fff; border-radius: 16px 16px 16px 5px; box-shadow: 0 8px 17px rgba(64,47,12,.18); font-size: 17px; font-weight: 800; transform: rotate(7deg); animation: artifact-float 2.7s ease-in-out infinite; }
.spark { position: absolute; display: block; border-radius: 50%; background: var(--game-accent); }
.spark-one { width: 10px; height: 10px; left: 21px; top: 31px; }
.spark-two { width: 7px; height: 7px; right: 28px; top: 25px; background: #ff9c8c; }
.spark-three { width: 13px; height: 13px; left: 28px; bottom: 26px; background: #ffd86e; }
.welcome-copy { display: grid; justify-items: center; }
.adventure-ribbon { margin-bottom: 5px; color: var(--game-accent); font-size: 10px; font-weight: 800; letter-spacing: .06em; }
.welcome-copy .museum-tag { max-width: 290px; margin-bottom: 6px; padding: 5px 11px; border-radius: 999px; color: #6a3f00; background: color-mix(in srgb, var(--game-sun) 58%, #fff); font-size: 11px; }
.welcome h1 { max-width: 310px; margin: 0; font-size: 30px; line-height: 1.16; letter-spacing: -.025em; text-wrap: balance; }
.welcome h1::after { content: ""; width: 72px; height: 7px; margin: 8px auto 0; display: block; border-radius: 6px; background: linear-gradient(90deg, var(--game-coral) 0 32%, var(--game-sun) 32% 66%, var(--game-sky) 66%); }
.welcome-copy p { max-width: 292px; margin: 7px 0 12px; color: color-mix(in srgb, var(--game-ink) 82%, #fff); font-size: 13px; line-height: 1.5; }
.cover-style-storybook { background: linear-gradient(180deg, color-mix(in srgb, var(--game-soft) 60%, #fff) 0%, #fff 56%, color-mix(in srgb, var(--game-sun) 18%, #fff) 100%); }
.cover-style-storybook .welcome-art { width: 196px; height: 181px; border-radius: 96px 96px 25px 25px; box-shadow: 0 13px 0 color-mix(in srgb, var(--game-sun) 38%, #fff), 0 22px 36px color-mix(in srgb, var(--game-accent) 15%, transparent); }
.cover-style-storybook .welcome-copy { width: 100%; justify-items: start; text-align: left; }
.cover-style-storybook .welcome-copy .museum-tag { margin-left: 0; }
.cover-style-storybook .welcome-copy h1, .cover-style-storybook .welcome-copy p { max-width: 100%; text-align: left; }
.cover-style-storybook .welcome-copy h1::after { margin-left: 0; }
.cover-style-poster { padding-left: 17px; padding-right: 17px; background: linear-gradient(155deg, color-mix(in srgb, var(--game-accent) 12%, #fff), #fff8e8 66%, color-mix(in srgb, var(--game-sky) 16%, #fff)); }
.cover-style-poster .welcome-art { width: 100%; height: 194px; margin-top: 14px; border-radius: 20px; box-shadow: 0 16px 28px color-mix(in srgb, var(--game-accent) 22%, transparent); }
.cover-style-poster .welcome-copy { width: calc(100% - 16px); margin: -22px 8px 0; padding: 14px 15px 11px; z-index: 3; border-radius: 17px; background: rgba(255,255,255,.94); box-shadow: 0 10px 24px rgba(33,48,44,.11); }
.cover-style-poster .welcome-copy h1 { font-size: 25px; }
.cover-style-poster .welcome-copy .museum-tag { margin-top: 1px; }
.cover-style-poster .role-note, .cover-style-poster .welcome-start { max-width: calc(100% - 16px); }
.cover-style-poster .playful-sky { opacity: .6; }
.welcome h2, .complete h2 { max-width: 280px; margin: 0; font-size: 25px; line-height: 1.3; letter-spacing: -.02em; }
.role-note { width: 100%; max-width: 310px; min-height: 72px; margin-bottom: 13px; padding: 10px 12px; display: grid; grid-template-columns: 1fr 24px 1fr; align-items: center; gap: 5px; color: var(--game-ink); background: #fff; border-radius: 16px; box-shadow: 0 9px 22px color-mix(in srgb, var(--game-accent) 13%, transparent); text-align: left; }
.role-step { display: grid; grid-template-columns: 26px 1fr; align-items: center; gap: 7px; }
.role-step > b { width: 27px; height: 27px; display: grid; place-items: center; color: #fff; background: var(--game-accent); border-radius: 10px 10px 10px 4px; font-size: 11px; box-shadow: 0 4px 8px color-mix(in srgb, var(--game-accent) 20%, transparent); }
.role-step:last-child > b { color: #6a3f00; background: var(--game-sun); border-radius: 10px 10px 4px 10px; }
.role-step > span { display: grid; gap: 2px; }
.role-step strong { color: var(--game-ink); font-size: 10px; line-height: 1.25; }
.role-step small { color: color-mix(in srgb, var(--game-ink) 68%, #fff); font-size: 8px; line-height: 1.35; }
.role-link { width: 20px; height: 2px; position: relative; display: block; border-radius: 2px; background: color-mix(in srgb, var(--game-accent) 58%, #fff); }
.role-link::after { content: ""; width: 9px; height: 12px; position: absolute; right: -2px; top: -5px; background: var(--game-accent); clip-path: polygon(0 0, 100% 50%, 0 100%, 30% 50%); }
.welcome-start { width: 100%; max-width: 310px; min-height: 58px; padding: 0 13px 0 20px; display: flex; align-items: center; justify-content: space-between; border-radius: 18px; box-shadow: 0 13px 25px color-mix(in srgb, var(--game-accent) 28%, transparent); font-size: 16px; }
.welcome-start > b { width: 34px; height: 34px; position: relative; display: block; color: var(--game-accent); background: #fff; border-radius: 12px; }
.start-arrow::before { content: ""; width: 11px; height: 2px; position: absolute; left: 10px; top: 16px; border-radius: 2px; background: var(--game-accent); }
.start-arrow::after { content: ""; width: 9px; height: 12px; position: absolute; left: 15px; top: 11px; background: var(--game-accent); clip-path: polygon(0 0, 100% 50%, 0 100%, 30% 50%); }
@keyframes welcome-rise { from { opacity: .55; transform: translateY(14px) scale(.96); } }
@keyframes artifact-float { 50% { transform: translateY(-6px) rotate(3deg); } }
.game-primary { min-height: 50px; padding: 0 22px; color: #fff; background: var(--game-accent); border: 0; border-radius: 15px; box-shadow: 0 9px 18px color-mix(in srgb, var(--game-accent) 24%, transparent); font-size: 14px; font-weight: 800; cursor: pointer; transition: transform .16s cubic-bezier(.2,.8,.2,1), filter .16s ease, box-shadow .16s ease; }
.game-primary small { margin-left: 4px; font-size: 10px; font-weight: 600; opacity: .8; }
.game-primary:hover { filter: brightness(.92); }
.game-primary:active { transform: translateY(2px) scale(.98); box-shadow: 0 4px 10px color-mix(in srgb, var(--game-accent) 18%, transparent); }
.board-screen { padding-top: 72px; background: linear-gradient(180deg, color-mix(in srgb, var(--game-soft) 52%, #fff) 0 106px, var(--game-bg) 106px 100%); }
.game-head { min-height: 58px; position: relative; display: flex; justify-content: space-between; align-items: center; margin: 0 -3px 20px; padding: 0 4px 13px; }
.game-head::after { content: ""; height: 5px; position: absolute; left: 4px; right: 4px; bottom: 0; border-radius: 5px; background: linear-gradient(90deg, var(--game-coral), var(--game-sun), var(--game-sky)); opacity: .82; }
.game-head > div { display: grid; gap: 2px; }
.game-head small { color: #526762; font-size: 12px; }
.game-head strong { font-size: 16px; }
.game-head > span { padding: 9px 11px; color: var(--game-ink); background: #fff; border-radius: 12px 12px 12px 5px; box-shadow: 0 5px 13px color-mix(in srgb, var(--game-accent) 12%, transparent); font-size: 12px; font-weight: 800; }
.memory-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; perspective: 900px; }
.game-card { min-height: 136px; position: relative; padding: 0; border: 0; border-radius: 18px; background: transparent; transform-style: preserve-3d; cursor: pointer; transition: transform .45s cubic-bezier(.16,1,.3,1), opacity .25s ease; }
.game-card.is-open, .game-card.is-matched { transform: rotateY(180deg); }
.game-card.is-matched { opacity: .68; }
.game-card.is-matched::after { content: ""; width: 25px; height: 25px; position: absolute; z-index: 4; right: 8px; top: 7px; background: #fff; clip-path: polygon(7% 48%, 22% 32%, 42% 52%, 79% 13%, 95% 29%, 42% 83%); filter: drop-shadow(0 2px 2px rgba(0,0,0,.18)); }
.card-face { position: absolute; inset: 0; display: grid; place-items: center; backface-visibility: hidden; border-radius: 18px; overflow: hidden; }
.card-back { color: #fff; background: var(--game-accent); box-shadow: 0 9px 18px color-mix(in srgb, var(--game-accent) 24%, transparent); }
.card-back::before { content: ""; width: 84px; height: 84px; position: absolute; right: -34px; top: -33px; border-radius: 50%; background: color-mix(in srgb, var(--game-sun) 72%, transparent); }
.card-back::after { content: ""; position: absolute; inset: 9px; border: 2px dashed rgba(255,255,255,.48); border-radius: 13px; }
.card-back i { width: 43px; height: 43px; z-index: 1; display: grid; place-items: center; color: var(--game-accent); background: #fff; border-radius: 14px 14px 14px 5px; box-shadow: 0 6px 12px rgba(0,0,0,.11); font-size: 18px; font-style: normal; font-weight: 800; }
.card-front { padding: 9px; transform: rotateY(180deg); align-content: center; gap: 6px; }
.card-front img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-front strong { font-size: 30px; }
.card-front > .dual-text { position: relative; z-index: 1; align-self: end; padding: 5px 8px; color: var(--game-ink); background: rgba(255,255,255,.92); border-radius: 7px; font-size: 11px; font-weight: 700; }
.card-front > .single-label { position: relative; z-index: 1; align-self: end; padding: 6px 9px; color: var(--game-ink); background: rgba(255,255,255,.94); border-radius: 10px; box-shadow: 0 4px 10px rgba(0,0,0,.07); font-size: 12px; font-weight: 800; }
.game-tip { margin: 17px auto 0; max-width: 290px; padding: 9px 13px; color: #445d57; background: color-mix(in srgb, var(--game-soft) 62%, #fff); border-radius: 12px; text-align: center; font-size: 12px; line-height: 1.5; }
.game-tip small { display: block; font-size: 9px; opacity: .75; }
.game-tip.feedback { color: var(--game-accent); font-weight: 700; }
.handoff { position: absolute; inset: 0; z-index: 8; display: flex; align-items: flex-end; background: color-mix(in srgb, var(--game-ink) 56%, transparent); }
.handoff-sheet { width: 100%; max-height: 100%; flex: 0 0 auto; padding: 26px 22px 22px; position: relative; overflow-x: hidden; overflow-y: auto; background: linear-gradient(180deg, color-mix(in srgb, var(--game-sun) 30%, #fff), #fff 42%); border-radius: 28px 28px 0 0; text-align: center; animation: sheet-in .28s cubic-bezier(.16,1,.3,1) both; }
.handoff-sheet::before { content: ""; width: 42px; height: 5px; position: absolute; top: 10px; left: calc(50% - 21px); border-radius: 5px; background: color-mix(in srgb, var(--game-accent) 24%, #fff); }
@keyframes sheet-in { from { transform: translateY(18px); opacity: .5; } }
.handoff-icon { width: 60px; height: 40px; margin: 0 auto 7px; display: flex; align-items: center; justify-content: center; }
.handoff-icon b { width: 35px; height: 35px; display: grid; place-items: center; color: #fff; background: var(--game-accent); border: 3px solid #fff; border-radius: 50%; box-shadow: 0 6px 13px color-mix(in srgb, var(--game-accent) 20%, transparent); font-size: 9px; }
.handoff-icon b:last-child { margin-left: -12px; color: #6a3f00; background: var(--game-sun); }
.handoff-sheet > small { color: var(--game-ink); font-size: 12px; font-weight: 700; }
.handoff-sheet h3 { margin: 3px 0 6px; font-size: 20px; }
.handoff-sheet p { margin: 0 auto 8px; max-width: 280px; font-size: 13px; line-height: 1.5; }
.prompt-text { display: grid; margin: 0 auto 8px; max-width: 280px; font-size: 13px; line-height: 1.45; }
.discovery-note { margin-bottom: 10px; padding: 9px; color: #526762; background: #f2f5f4; border-radius: 10px; font-size: 12px; line-height: 1.45; }
.handoff-sheet .game-primary { min-height: 48px; }
.complete { isolation: isolate; align-items: center; justify-content: center; text-align: center; background: linear-gradient(180deg, color-mix(in srgb, var(--game-soft) 72%, #fff), #fff9ec 100%); }
.complete::before, .complete::after { content: ""; width: 170px; height: 170px; position: absolute; z-index: -1; border-radius: 50%; }
.complete::before { left: -95px; top: 70px; background: color-mix(in srgb, var(--game-sky) 26%, transparent); }
.complete::after { right: -98px; bottom: 80px; background: color-mix(in srgb, var(--game-coral) 18%, transparent); }
.complete-mark { width: 72px; height: 72px; margin-bottom: 15px; position: relative; display: block; background: var(--game-accent); border: 6px solid #fff; border-radius: 24px 24px 24px 8px; box-shadow: 0 12px 24px color-mix(in srgb, var(--game-accent) 26%, transparent); transform: rotate(-4deg); animation: success-pop .58s cubic-bezier(.16,1,.3,1) both; }
.complete-mark::after { content: ""; width: 34px; height: 34px; position: absolute; left: 13px; top: 12px; background: #fff; clip-path: polygon(7% 48%, 22% 32%, 42% 52%, 79% 13%, 95% 29%, 42% 83%); }
@keyframes success-pop { from { transform: rotate(-10deg) scale(.7); filter: blur(3px); } }
.celebration-bursts { position: absolute; z-index: -1; inset: 76px 18px auto; height: 220px; pointer-events: none; }
.celebration-bursts i { width: 10px; height: 24px; position: absolute; border-radius: 8px; background: var(--game-coral); animation: confetti-in .7s cubic-bezier(.16,1,.3,1) both; }
.celebration-bursts i:nth-child(1) { left: 8%; top: 24%; transform: rotate(-26deg); }
.celebration-bursts i:nth-child(2) { left: 22%; top: 4%; width: 11px; height: 11px; background: var(--game-sky); transform: rotate(15deg); }
.celebration-bursts i:nth-child(3) { left: 34%; top: 16%; height: 18px; background: var(--game-sun); transform: rotate(32deg); }
.celebration-bursts i:nth-child(4) { right: 34%; top: 4%; width: 12px; height: 12px; background: var(--game-coral); transform: rotate(-18deg); }
.celebration-bursts i:nth-child(5) { right: 20%; top: 17%; background: var(--game-sky); transform: rotate(24deg); }
.celebration-bursts i:nth-child(6) { right: 7%; top: 38%; height: 18px; background: var(--game-sun); transform: rotate(-32deg); }
.celebration-bursts i:nth-child(7) { left: 2%; top: 61%; width: 9px; height: 9px; background: var(--game-sun); }
.celebration-bursts i:nth-child(8) { right: 3%; top: 72%; width: 11px; height: 11px; background: var(--game-coral); }
.celebration-bursts i:nth-child(9) { left: 49%; top: -4%; width: 9px; height: 19px; background: var(--game-sky); }
@keyframes confetti-in { from { opacity: 0; scale: .4; } }
.complete .museum-tag { margin-bottom: 7px; }
.shared-question { width: 100%; max-width: 310px; margin: 20px 0 14px; padding: 17px; background: #fff; border-radius: 16px 16px 16px 6px; box-shadow: 0 8px 20px color-mix(in srgb, var(--game-accent) 12%, transparent); text-align: left; }
.shared-question small { color: var(--game-ink); font-size: 12px; font-weight: 700; }
.shared-question p { margin: 6px 0 0; font-size: 14px; line-height: 1.65; }
.shared-question > .dual-text { margin-top: 6px; font-size: 14px; line-height: 1.55; }
.attempt-copy { color: #526762; font-size: 12px; }
.replay-button { min-width: 166px; }

.standalone { min-height: 100dvh; padding: 24px; display: grid; place-items: center; background: #e8efec; }
.back-to-editor { position: fixed; top: 20px; left: 20px; z-index: 10; min-width: 44px; min-height: 44px; padding: 0 13px; border: 1px solid #c7d3cf; border-radius: 10px; background: #fff; font-size: 12px; cursor: pointer; }
.standalone-phone { width: min(100%, 390px); height: min(780px, calc(100dvh - 48px)); overflow: hidden; position: relative; border-radius: 28px; background: #fff; box-shadow: 0 24px 60px rgba(32, 67, 60, .18); }
.publish-overlay { position: fixed; z-index: 80; inset: 0; padding: 20px; display: grid; place-items: center; background: rgba(17,43,38,.58); backdrop-filter: blur(4px); }
.publish-dialog { width: min(100%, 430px); padding: 26px; position: relative; display: grid; justify-items: center; color: var(--ink); background: #fff; border-radius: 20px; box-shadow: 0 28px 80px rgba(11,42,36,.3); text-align: center; animation: dialog-in .22s ease both; }
@keyframes dialog-in { from { opacity: .4; transform: translateY(10px) scale(.98); } }
.dialog-close { width: 38px; height: 38px; position: absolute; top: 12px; right: 12px; border: 0; border-radius: 10px; color: var(--muted); background: var(--surface-subtle); font-size: 22px; cursor: pointer; }
.publish-success { width: 48px; height: 48px; display: grid; place-items: center; color: #fff; background: var(--accent); border-radius: 14px; font-size: 22px; font-weight: 800; }
.publish-dialog h2 { margin: 12px 0 7px; display: grid; gap: 3px; font-size: 21px; }
.publish-dialog h2 small { color: var(--muted); font-size: 10px; font-weight: 500; }
.publish-dialog > p { max-width: 330px; margin: 0 0 15px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.publish-qr { width: 196px; height: 196px; padding: 10px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--muted); font-size: 10px; }
.publish-qr img, .publish-qr canvas { width: 176px!important; height: 176px!important; }
.publish-url { width: 100%; margin-top: 15px; display: grid; gap: 6px; text-align: left; }
.publish-url span { color: var(--muted); font-size: 9px; font-weight: 700; }
.publish-url input { width: 100%; padding: 10px 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--surface-subtle); font-size: 11px; }
.publish-actions { width: 100%; margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.publish-actions a { text-decoration: none; }
.publish-research { margin-top: 18px; padding-top: 18px; border-top: 1px solid #dfe9e5; display: grid; gap: 12px; }
.publish-research p { margin: 0; color: #526d66; font-size: 13px; line-height: 1.55; }
.publish-research .button { justify-self: center; text-decoration: none; }
.loading-player { color: var(--ink); }
.player-loading, .player-error { padding: 28px; display: grid; justify-items: center; gap: 7px; text-align: center; background: #fff; border-radius: 18px; box-shadow: 0 18px 50px rgba(32,67,60,.15); }
.player-loading > span { width: 36px; height: 36px; border: 4px solid var(--accent-soft); border-top-color: var(--accent); border-radius: 50%; animation: loading-spin .8s linear infinite; }
@keyframes loading-spin { to { transform: rotate(360deg); } }
.player-loading strong, .player-error strong { font-size: 15px; }
.player-loading small, .player-error small { color: var(--muted); font-size: 10px; }
.player-error .button { margin-top: 8px; text-decoration: none; }

/* v2 — bilingual configuration and reusable templates */
.game-language { position: absolute; z-index: 7; top: 14px; right: 14px; padding: 4px; display: flex; gap: 2px; border: 0; border-radius: 12px; background: rgba(255,255,255,.95); box-shadow: 0 6px 16px color-mix(in srgb, var(--game-accent) 12%, transparent); }
.game-language button { min-width: 44px; min-height: 44px; padding: 0 11px; border: 0; border-radius: 9px; color: #50655f; background: transparent; font-size: 11px; font-weight: 800; cursor: pointer; }
.game-language button.active { color: #fff; background: var(--game-accent); }
.single-label { line-height: 1.25; }
.brand strong small { margin-left: 4px; color: var(--muted); font-size: 9px; font-weight: 500; }
.template-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.template-card { min-height: 176px; padding: 18px; display: grid; grid-template-columns: 50px 1fr; align-content: start; gap: 13px; text-align: left; border: 1px solid var(--line); border-radius: 16px; background: #fff; cursor: pointer; transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease; }
.template-card:hover { border-color: #9db0ab; transform: translateY(-2px); }
.template-card.selected { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15,111,99,.1); }
.template-icon { width: 48px; height: 48px; display: grid; place-items: center; color: var(--accent-dark); background: var(--accent-soft); border-radius: 14px; font-size: 17px; font-weight: 800; }
.template-card > span:nth-child(2) { display: grid; gap: 2px; }
.template-card strong { font-size: 15px; }
.template-card small { color: var(--muted); font-size: 10px; }
.template-card p { min-height: 48px; margin: 10px 0 0; color: #526762; font-size: 11px; line-height: 1.55; }
.template-card p em { color: #81908d; font-size: 9px; font-style: normal; }
.template-card > b { grid-column: 2; color: var(--accent); font-size: 10px; }

.bilingual-field { margin-bottom: 18px; padding: 13px; background: var(--surface-subtle); border: 1px solid #e2e8e6; border-radius: 13px; }
.field-title { margin-bottom: 10px; display: flex; align-items: baseline; gap: 7px; }
.field-title strong { font-size: 12px; }
.field-title small { color: var(--muted); font-size: 9px; }
.language-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.language-control { min-width: 0; display: grid; grid-template-columns: 31px 1fr; align-items: stretch; }
.language-control > span { display: grid; place-items: center; color: var(--accent-dark); background: var(--accent-soft); border: 1px solid #cbd6d3; border-right: 0; border-radius: 9px 0 0 9px; font-size: 9px; font-weight: 800; }
.language-control input, .language-control textarea { width: 100%; min-width: 0; padding: 10px 11px; border: 1px solid #cbd6d3; border-radius: 0 9px 9px 0; color: var(--ink); background: #fff; font-size: 12px; outline: none; }
.language-control textarea { min-height: 80px; resize: vertical; line-height: 1.55; }
.language-control input:focus, .language-control textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(15,111,99,.12); }
.textarea-control > span { align-content: start; padding-top: 12px; }
.bilingual-field > .field-hint { display: block; margin-top: 8px; }
.form-grid.two > .bilingual-field { margin-bottom: 20px; }
.customize-row { margin-top: 16px; padding: 14px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 12px; align-items: end; background: #f6f8f7; border-radius: 13px; }
.switch-row { min-height: 42px; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.switch-row input { width: 19px; height: 19px; accent-color: var(--accent); }
.switch-row span { display: grid; gap: 2px; }
.switch-row strong { font-size: 11px; }
.switch-row small { color: var(--muted); font-size: 9px; }
.color-field, .symbol-field { display: grid; gap: 6px; color: var(--muted); font-size: 9px; }
.color-field input { width: 100%; height: 34px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.symbol-field select { height: 34px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.sound-row { width: fit-content; margin-top: 12px; }

.asset-pair-large { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.asset-pair-large > div { display: grid; gap: 8px; }
.asset-pair-large > div > strong { font-size: 12px; }
.asset-pair-large > div > strong small { color: var(--muted); font-size: 9px; font-weight: 500; }
.asset-pair-large .asset-tile { height: 210px; }
.spot-config { display: grid; gap: 12px; }
.spot-config > article { padding: 14px; display: grid; grid-template-columns: 34px 190px 1fr; gap: 13px; align-items: start; border: 1px solid var(--line); border-radius: 13px; }
.spot-index, .item-number { width: 30px; height: 30px; display: grid; place-items: center; color: #fff; background: var(--accent); border-radius: 9px; font-size: 11px; font-weight: 800; }
.spot-sliders { display: grid; gap: 8px; padding-top: 4px; }
.spot-sliders label { display: grid; grid-template-columns: 12px 1fr 34px; gap: 5px; align-items: center; color: var(--muted); font-size: 10px; }
.spot-sliders input { accent-color: var(--accent); }
.spot-sliders output { text-align: right; }
.spot-config .bilingual-field { margin: 0; padding: 10px; }
.spot-config .language-pair { grid-template-columns: 1fr; gap: 7px; }

.category-config { margin-bottom: 18px; }
.classify-items { display: grid; gap: 12px; }
.classify-items > article { padding: 13px; display: grid; grid-template-columns: 34px 110px 1fr; gap: 13px; align-items: start; border: 1px solid var(--line); border-radius: 13px; }
.classify-items .asset-tile { height: 116px; }
.classify-items .bilingual-field { margin-bottom: 9px; padding: 10px; }
.classify-items .field { margin: 0; }

.ar-explainer { margin-bottom: 20px; padding: 18px; display: flex; gap: 14px; align-items: center; background: #ecf4f2; border-radius: 14px; }
.scan-glyph { width: 54px; height: 54px; flex: 0 0 auto; display: grid; place-items: center; color: #fff; background: var(--accent); border-radius: 15px; font-weight: 800; }
.ar-explainer strong { font-size: 13px; }
.ar-explainer p { margin: 5px 0 2px; color: #49635e; font-size: 11px; line-height: 1.55; }
.ar-explainer small { color: var(--muted); font-size: 9px; }
.ar-content-grid { display: grid; grid-template-columns: 220px 1fr; gap: 18px; align-items: start; }
.ar-content-grid .asset-tile { height: 220px; }

/* player: spot the difference */
.spot-screen, .classify-screen { padding: 72px 16px 18px; background: linear-gradient(180deg, color-mix(in srgb, var(--game-soft) 52%, #fff) 0 106px, var(--game-bg) 106px 100%); }
.spot-pictures { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.spot-pictures > div > small { width: max-content; display: block; margin: 0 0 7px 3px; padding: 4px 7px; color: var(--game-ink); background: #fff; border-radius: 8px 8px 8px 3px; box-shadow: 0 4px 10px color-mix(in srgb, var(--game-accent) 10%, transparent); font-size: 9px; font-weight: 800; }
.spot-pictures > div:last-child > small { color: #6a3f00; background: color-mix(in srgb, var(--game-sun) 56%, #fff); }
.spot-image { aspect-ratio: 4 / 5; position: relative; overflow: hidden; border: 4px solid #fff; border-radius: 18px; background: #f0e7d8; box-shadow: 0 8px 18px color-mix(in srgb, var(--game-accent) 15%, transparent); }
.spot-image img { width: 100%; height: 100%; object-fit: cover; }
.spot-fallback { width: 100%; height: 100%; position: relative; background: linear-gradient(150deg,#efe1c6,#dce8e1); }
.vase { width: 58px; height: 77px; position: absolute; left: 50%; top: 48%; transform: translate(-50%,-50%); border: 7px solid #537d72; border-radius: 12px 12px 28px 28px; }
.vase::before { content:""; width: 25px; height: 18px; position: absolute; left: 50%; top: -25px; transform: translateX(-50%); border: 6px solid #537d72; border-bottom: 0; }
.vase i { position:absolute; inset:18px 6px auto; height:6px; background:#b67657; border-radius:8px; }
.spot-fallback.changed .vase i { background:#67528d; transform:rotate(5deg); }
.sun-dot { width:18px; height:18px; position:absolute; left:16%; top:20%; border-radius:50%; background:#b67657; }
.spot-fallback.changed .sun-dot { opacity:0; }
.wave { position:absolute; right:13%; top:28%; color:#537d72; font-size:27px; font-weight:800; }
.spot-fallback.changed .wave { transform:rotate(180deg); color:#a9454c; }
.spot-fallback b { position:absolute; left:44%; bottom:10%; color:#8a6500; font-size:18px; }
.spot-fallback.changed b::after { content:"•"; position:absolute; right:-12px; top:-5px; }
.hotspot { width:44px; height:44px; position:absolute; z-index:3; transform:translate(-50%,-50%); border:2px solid transparent; border-radius:50%; background:transparent; cursor:pointer; }
.hotspot:focus-visible { border-color:#fff; box-shadow:0 0 0 3px var(--game-accent); }
.hotspot.found { display:grid; place-items:center; color:#fff; background:var(--game-coral); border:4px solid #fff; font-size:17px; font-weight:800; box-shadow:0 6px 13px rgba(85,35,32,.24); animation: found-pop .34s cubic-bezier(.16,1,.3,1) both; }
@keyframes found-pop { from { scale: .55; } }

/* player: classification */
.object-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.object-card { min-height:100px; padding:8px 5px; display:grid; place-items:center; align-content:center; gap:5px; border:4px solid #fff; border-radius:17px; color:var(--game-ink); background:var(--item-color); box-shadow:0 7px 15px color-mix(in srgb, var(--game-accent) 13%, transparent); cursor:pointer; transition:transform .16s cubic-bezier(.2,.8,.2,1), box-shadow .16s ease; }
.object-card img { width:58px; height:50px; object-fit:cover; border-radius:11px; }
.object-card b { font-size:24px; }
.object-card .dual-text, .object-card .single-label { font-size:9px; text-align:center; }
.object-card.selected { border-color:var(--game-accent); box-shadow:0 10px 19px color-mix(in srgb, var(--game-accent) 22%, transparent); transform:translateY(-4px) rotate(-1deg); }
.object-card.placed { opacity:.28; }
.category-targets { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:14px; }
.category-targets button { min-height:76px; padding:10px; display:grid; grid-template-columns:31px 1fr; align-items:center; gap:8px; border:2px dashed color-mix(in srgb, var(--game-accent) 58%, #fff); border-radius:16px; color:var(--game-ink); background:color-mix(in srgb, var(--game-soft) 74%, #fff); cursor:pointer; text-align:left; }
.category-targets button:disabled { opacity:.62; cursor:default; }
.category-targets button > span:first-child { width:31px; height:31px; display:grid; place-items:center; border-radius:11px 11px 11px 4px; color:#fff; background:var(--game-accent); font-size:12px; font-weight:800; }
.category-targets .dual-text, .category-targets .single-label { font-size:10px; font-weight:700; }

/* player: fixed-marker AR */
.ar-launch, .ar-reveal { align-items:center; justify-content:center; text-align:center; }
.scanner-demo { width:230px; height:230px; position:relative; display:grid; place-items:center; border-radius:18px; background:linear-gradient(145deg,#dce6e2,#fcfcfb); overflow:hidden; box-shadow:inset 0 0 0 2px rgba(255,255,255,.8); }
.scanner-demo::before,.scanner-demo::after,.scanner-demo span::before,.scanner-demo span::after { content:""; width:48px; height:48px; position:absolute; border-color:var(--game-accent); border-style:solid; }
.scanner-demo::before { left:15px; top:15px; border-width:4px 0 0 4px; }
.scanner-demo::after { right:15px; top:15px; border-width:4px 4px 0 0; }
.scanner-demo span::before { left:15px; bottom:15px; border-width:0 0 4px 4px; }
.scanner-demo span::after { right:15px; bottom:15px; border-width:0 4px 4px 0; }
.scanner-demo i { width:90px; height:90px; display:grid; place-items:center; border:12px solid #111; color:#111; background:#fff; font-size:21px; font-style:normal; font-weight:900; }
.ar-launch h2 { display:grid; gap:3px; margin:20px 0 7px; font-size:22px; }
.ar-launch h2 small { color:#647671; font-size:11px; font-weight:500; }
.ar-launch > p { max-width:290px; margin:2px 0; color:#536762; font-size:12px; line-height:1.55; }
.link-button { margin-top:18px; display:inline-flex; align-items:center; text-decoration:none; }
.game-secondary { min-height:42px; margin-top:8px; padding:0 15px; border:1px solid var(--game-accent); border-radius:11px; color:var(--game-accent); background:#fff; font-size:11px; font-weight:700; cursor:pointer; }
.marker-link { margin-top:13px; color:var(--game-accent); font-size:10px; }
.scan-success { width:52px; height:52px; margin-bottom:6px; display:grid; place-items:center; color:#fff; background:var(--game-accent); border-radius:15px; font-size:24px; font-weight:800; }
.ar-reveal > small { color:var(--game-accent); font-size:10px; font-weight:700; }
.ar-reveal > img { width:190px; height:190px; margin:16px 0; object-fit:contain; border-radius:18px; background:var(--game-soft); }
.ar-object { width:160px; height:160px; margin:16px 0; display:grid; place-items:center; color:var(--game-accent); background:var(--game-soft); border-radius:24px; font-size:56px; font-weight:800; animation:ar-float 2.4s ease-in-out infinite; }
@keyframes ar-float { 50% { transform:translateY(-7px) rotate(2deg); } }
.ar-reveal h2 { margin:0 0 10px; font-size:22px; }
.ar-copy { max-width:300px; color:#485f59; font-size:12px; line-height:1.55; }
.ar-reveal .shared-question { margin:14px 0; font-size:11px; }

.compact-host .play-screen { min-height:100%; }
.compact-host .spot-screen,.compact-host .classify-screen { padding-top:68px; }

@media (max-width: 1380px) {
  .workspace { grid-template-columns: 218px minmax(560px, 1fr) 380px; }
  .phone-shell,.preview-note { width:320px; }
}

@media (max-width: 1180px) {
  .workspace { grid-template-columns: 210px minmax(500px, 1fr); }
  .preview-panel { grid-column: 1 / -1; border-top: 1px solid var(--line); }
}

@media (max-width: 760px) {
  .topbar { height: auto; min-height: 66px; padding: 12px 14px; }
  .brand { min-width: 0; }
  .brand small, .save-state, .top-actions .secondary { display: none; }
  .top-actions .button { padding: 0 11px; }
  .workspace { display: block; }
  .step-nav { position: sticky; top: 65px; z-index: 12; padding: 8px 12px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
  .project-label, .template-lock { display: none; }
  .step-nav ol { display: flex; width: max-content; margin: 0; gap: 5px; }
  .step-nav li button { min-height: 42px; grid-template-columns: 25px auto; padding: 6px 10px; }
  .step-nav li button > b, .step-nav li button small { display: none; }
  .step-index { width: 24px; height: 24px; border-radius: 7px; }
  .editor-section { width: calc(100% - 28px); padding: 28px 0 92px; }
  .section-heading { margin-bottom: 23px; }
  .section-token { display: none; }
  .form-grid.two, .theme-options { grid-template-columns: 1fr; }
  .cover-editor { grid-template-columns: 1fr; }
  .cover-art-control .asset-tile { height: 220px; }
  .cover-style-options { grid-template-columns: 1fr; }
  .cover-style-options > button { min-height: 72px; }
  .cover-fit-field { align-items: stretch; flex-direction: column; gap: 8px; }
  .cover-fit-field select { width: 100%; min-width: 0; }
  .template-grid, .language-pair, .asset-pair-large { grid-template-columns: 1fr; }
  .customize-row { grid-template-columns: 1fr 1fr; }
  .spot-config > article { grid-template-columns: 34px 1fr; }
  .spot-config > article .bilingual-field { grid-column:2; }
  .classify-items > article { grid-template-columns:34px 90px 1fr; }
  .ar-content-grid { grid-template-columns:1fr; }
  .ar-content-grid .asset-tile { height:180px; }
  .mini-heading { align-items: flex-start; gap: 8px; }
  .mini-heading small { max-width: 150px; text-align: right; }
  .pair-row { grid-template-columns: 36px 1fr; padding: 13px; }
  .pair-assets, .pair-fields { grid-column: 2; }
  .collab-flow { grid-template-columns: 1fr 1fr; }
  .collab-flow > b { display: none; }
  .editor-footer { position: fixed; left: 0; right: 0; bottom: 0; height: 65px; padding: 0 14px; }
  .preview-panel { padding: 24px 14px 88px; }
  .phone-shell { width: min(332px, calc(100vw - 28px)); height: auto; aspect-ratio: 332 / 643; }
  .preview-note { width: min(332px, calc(100vw - 28px)); }
  .standalone { padding: 0; }
  .standalone-phone { width: 100%; height: 100dvh; border-radius: 0; box-shadow: none; }
  .back-to-editor { top: 12px; left: 12px; min-width: 44px; min-height: 44px; background: rgba(255,255,255,.94); }
}

@media (max-width: 520px) {
  .customize-row { grid-template-columns:1fr; }
  .classify-items > article { grid-template-columns:32px 1fr; }
  .classify-items > article > div:last-child { grid-column:2; }
  .classify-items .asset-tile { height:140px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* v4 — guided studio and simpler early-childhood player */
.coplay-v4 { --v4-cream:#fffaf0; --v4-paper:#fffdf8; --v4-green:#116b5d; --v4-ink:#173b35; --v4-yellow:#ffd45c; --v4-sky:#8ed8f7; --v4-coral:#ff8c7c; background:#f3f5f1; }
.studio-intro { min-height:100dvh; display:grid; grid-template-rows:auto 1fr auto; color:var(--v4-ink); background:linear-gradient(110deg,#fffdf8 0 66%,#e8f5ef 66%); }
.intro-header { height:78px; padding:0 clamp(24px,5vw,76px); display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid #dce7e1; }
.intro-header a { color:#57706a; font-size:12px; text-decoration:none; }
.intro-stage { width:min(1280px,calc(100% - 48px)); margin:auto; padding:72px 0 64px; display:grid; grid-template-columns:minmax(0,1.2fr) minmax(360px,.8fr); align-items:center; gap:88px; }
.intro-copy { max-width:730px; }
.intro-chip { display:inline-flex; min-height:34px; padding:0 14px; align-items:center; color:#315d54; background:#e2f1eb; border-radius:999px; font-size:12px; font-weight:700; }
.intro-copy h1 { max-width:700px; margin:24px 0 20px; font-size:clamp(42px,5vw,68px); line-height:1.08; letter-spacing:-.035em; text-wrap:balance; }
.intro-copy > p { max-width:650px; margin:0; color:#526963; font-size:18px; line-height:1.8; }
.intro-actions { margin-top:34px; display:flex; align-items:center; gap:12px; }
.intro-primary { min-height:56px; padding:0 22px; gap:28px; font-size:15px; }
.intro-primary span { width:28px; height:28px; display:grid; place-items:center; color:var(--v4-green); background:#fff; border-radius:9px; }
.intro-path { max-width:680px; margin:50px 0 0; padding:26px 0 0; display:grid; grid-template-columns:repeat(3,1fr); gap:0; border-top:1px solid #dce7e1; list-style:none; }
.intro-path li { min-width:0; display:grid; grid-template-columns:34px 1fr; align-items:start; gap:11px; position:relative; }
.intro-path li:not(:last-child)::after { content:""; height:1px; position:absolute; left:calc(100% - 26px); right:14px; top:16px; background:#cbdad4; }
.intro-path b { width:32px; height:32px; display:grid; place-items:center; color:#fff; background:var(--v4-green); border-radius:10px; font-size:12px; }
.intro-path li:nth-child(2) b { color:#6b4a00; background:var(--v4-yellow); }
.intro-path li:nth-child(3) b { color:#7d3027; background:var(--v4-coral); }
.intro-path span { display:grid; gap:4px; }
.intro-path strong { font-size:14px; }
.intro-path small { color:#6b7e79; font-size:11px; line-height:1.5; }
.intro-demo { display:grid; justify-items:center; gap:22px; }
.intro-phone { width:326px; height:628px; padding:12px; background:#163b35; border-radius:40px; box-shadow:0 30px 70px rgba(28,76,66,.22); transform:rotate(2deg); }
.intro-phone-screen { height:100%; padding:44px 25px 27px; position:relative; overflow:hidden; display:flex; flex-direction:column; align-items:center; text-align:center; color:#16473e; background:linear-gradient(#c8f0fb 0 52%,#fff6d9 52%); border-radius:29px; }
.intro-phone-screen::after { content:""; width:120%; height:150px; position:absolute; left:-10%; bottom:0; background:#9be183; border-radius:50% 50% 0 0; opacity:.45; }
.mini-cloud { width:64px; height:20px; position:absolute; border-radius:20px; background:#fff; opacity:.82; }
.mini-cloud::before,.mini-cloud::after { content:""; position:absolute; border-radius:50%; background:inherit; }
.mini-cloud::before { width:27px;height:27px;left:9px;bottom:4px; }.mini-cloud::after { width:35px;height:35px;right:7px;bottom:3px; }
.mini-cloud.one { left:22px;top:78px; }.mini-cloud.two { right:-12px;top:135px;scale:.75; }
.mini-mascot { width:190px;height:222px;margin:44px 0 25px;position:relative;z-index:1; }
.mini-mascot::before { content:""; width:164px;height:155px;position:absolute;left:13px;top:38px;background:#55b99b;border-radius:74px 74px 54px 54px;box-shadow:0 14px 0 rgba(21,87,75,.1); }
.mini-mascot > i { width:116px;height:42px;position:absolute;z-index:2;left:37px;top:19px;background:#ffc84d;border-radius:50% 50% 14px 14px; }
.mini-mascot > i::after { content:"★"; width:34px;height:34px;position:absolute;left:41px;top:-14px;display:grid;place-items:center;color:#fff;background:#ff836f;border-radius:50%;font-style:normal; }
.mini-mascot > b::before,.mini-mascot > b::after { content:""; width:13px;height:16px;position:absolute;z-index:3;top:95px;border-radius:50%;background:#143e38; }
.mini-mascot > b::before { left:65px; }.mini-mascot > b::after { right:65px; }
.mini-mascot > b { width:47px;height:24px;position:absolute;z-index:3;left:72px;top:126px;border:5px solid #143e38;border-top:0;border-radius:0 0 36px 36px; }
.mini-mascot > em { width:78px;height:49px;position:absolute;z-index:3;left:56px;bottom:0;background:#168575;border-radius:16px 16px 30px 30px; }
.intro-phone-screen > small { position:relative;z-index:2;color:#327266;font-size:11px;font-weight:700; }
.intro-phone-screen > strong { position:relative;z-index:2;margin:7px 0 19px;font-size:25px;line-height:1.25; }
.intro-phone-screen > button { width:100%;min-height:56px;position:relative;z-index:2;border:0;border-radius:18px;color:#fff;background:var(--v4-green);font-weight:800; }
.intro-next { display:flex;align-items:center;gap:9px;color:#627772;font-size:11px; }.intro-next b { padding:7px 10px;color:#315c53;background:#fff;border-radius:8px;box-shadow:0 5px 14px rgba(41,75,68,.09); }.intro-next i { color:#2c6e60;font-style:normal; }
.intro-footer { min-height:64px;padding:0 clamp(24px,5vw,76px);display:flex;align-items:center;justify-content:space-between;color:#6c7d79;border-top:1px solid #dce7e1;font-size:11px; }

.v4-topbar { height:66px; padding:0 22px; }
.button.quiet { min-height:38px; padding:0 9px; border:0; color:#4e6862; background:transparent; font-size:11px; }
.v4-workspace { grid-template-columns:212px minmax(560px,1fr) 390px; }
.v4-step-nav { padding:24px 15px; }
.v4-step-nav ol { margin-top:20px; gap:5px; }
.v4-step-nav li button { min-height:58px; padding:8px 10px; }
.nav-help { margin-top:auto; padding:15px 12px; color:#3f5c55; background:#edf5f1; border-radius:13px; }
.nav-help strong { font-size:11px; }.nav-help p { margin:5px 0 9px; color:#6a7f79; font-size:9px; line-height:1.55; }.nav-help button { padding:0;border:0;color:var(--accent);background:none;font-size:9px;font-weight:700;cursor:pointer; }
.v4-section { width:min(740px,calc(100% - 52px)); padding:44px 0 100px; }
.v4-heading { margin-bottom:20px; }.v4-heading h1 { font-size:27px; }.v4-heading h1 small { display:none; }.v4-heading p { max-width:620px;margin-top:9px;font-size:12px;line-height:1.7; }.v4-heading .section-token { min-width:58px; }
.guide-strip { min-height:58px;margin-bottom:22px;padding:12px 15px;display:flex;align-items:center;gap:14px;color:#31574f;background:#edf6f2;border-radius:12px; }
.guide-strip b { flex:0 0 auto;font-size:11px; }.guide-strip span { padding-left:14px;border-left:1px solid #c9ddd5;font-size:10px;line-height:1.55; }
.v4-bilingual { margin-bottom:13px; padding:12px; }
.v4-bilingual .field-title { margin-bottom:8px; }.v4-bilingual .field-title button { margin-left:auto;padding:3px 7px;border:0;border-radius:6px;color:var(--accent);background:#e0eee9;font-size:8px;cursor:pointer; }
.v4-bilingual .language-pair { grid-template-columns:1fr;gap:7px; }.v4-bilingual .language-control { grid-template-columns:32px 1fr; }.v4-bilingual .language-control input { min-height:40px; }.v4-bilingual .language-control textarea { min-height:68px; }
.en-control { opacity:.78; }.en-control:focus-within { opacity:1; }
.v4-cover-block { margin:18px 0; }.v4-cover-block .cover-editor { grid-template-columns:210px 1fr;gap:15px; }.v4-cover-block .cover-art-control .asset-tile { height:210px; }
.v4-style-row { margin:16px 0;display:grid;grid-template-columns:1fr 1fr;gap:12px; }.v4-style-row label { display:grid;gap:7px;color:#5d746e;font-size:9px; }.v4-style-row select { min-height:42px;padding:0 11px;border:1px solid var(--line);border-radius:10px;color:var(--ink);background:#fff; }
.advanced-settings { margin-top:18px;border-top:1px solid var(--line); }.advanced-settings summary { padding:16px 0;color:#4d6861;font-size:11px;font-weight:700;cursor:pointer; }.advanced-settings > div { padding-top:4px; }
.v4-template-list { display:grid;gap:10px; }
.selection-count { margin:-8px 0 14px;padding:11px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px;color:#456860;background:#f7f3e5;border-radius:10px; }
.selection-count b { color:#246e60;font-size:10px; }.selection-count span { font-size:9px; }
.v4-template { min-height:108px;padding:14px 16px;display:grid;grid-template-columns:70px 1fr auto;align-items:center;gap:15px;text-align:left;border:1px solid #dce4e1;border-radius:14px;background:#fff;cursor:pointer;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease; }
.v4-template:hover { transform:translateY(-2px);border-color:#aac5bc; }.v4-template.selected { border-color:#3a8777;box-shadow:0 10px 25px rgba(32,98,83,.1); }.v4-template > span:nth-child(2) { display:grid;gap:2px; }.v4-template strong { font-size:14px; }.v4-template small { color:#6d807b;font-size:9px; }.v4-template p { margin:6px 0 0;color:#536963;font-size:10px; }.v4-template > b { min-width:64px;padding:8px 9px;color:#126c5d;background:#e6f2ed;border-radius:8px;text-align:center;font-size:9px; }
.v4-game-icon { width:66px;height:66px;position:relative;display:block;overflow:hidden;border-radius:19px;background:#ffe27b; }
.v4-game-icon i,.v4-game-icon b,.v4-game-icon em { position:absolute;display:block;font-style:normal; }
.game-matching { background:#9ee0f4; }.game-matching i,.game-matching b { width:24px;height:34px;top:16px;border:3px solid #fff;border-radius:7px;background:#247d9d; }.game-matching i { left:10px;transform:rotate(-8deg); }.game-matching b { right:10px;transform:rotate(8deg); }.game-matching em { width:8px;height:8px;left:29px;top:29px;border-radius:50%;background:#ffd559; }
.game-spot { background:#ffd36a; }.game-spot i,.game-spot b { width:23px;height:35px;top:15px;border-radius:8px;background:#fff; }.game-spot i { left:10px; }.game-spot b { right:10px; }.game-spot em { width:9px;height:9px;right:17px;top:25px;border-radius:50%;background:#ff746d;box-shadow:-26px 13px 0 #3faf90; }
.game-classify { background:#a9df94; }.game-classify i,.game-classify b { width:22px;height:22px;bottom:10px;border-radius:7px;background:#fff; }.game-classify i { left:9px; }.game-classify b { right:9px; }.game-classify em { width:17px;height:17px;left:25px;top:9px;border-radius:50%;background:#ff8b74; }
.game-ar { background:#c9b8ef; }.game-ar::before,.game-ar::after { content:"";width:17px;height:17px;position:absolute;border-color:#fff;border-style:solid; }.game-ar::before { left:11px;top:11px;border-width:3px 0 0 3px; }.game-ar::after { right:11px;bottom:11px;border-width:0 3px 3px 0; }.game-ar em { width:22px;height:22px;left:22px;top:22px;border-radius:7px;background:#6f55aa; }
.game-shadow { background:#8ecdc5; }.game-shadow i { width:29px;height:38px;left:10px;top:14px;border-radius:50% 50% 42% 42%;background:#245b58; }.game-shadow b { width:25px;height:34px;right:9px;top:16px;border:3px solid #fff;border-radius:50% 50% 42% 42%;background:#ffce61; }.game-shadow em { width:7px;height:7px;right:18px;top:28px;border-radius:50%;background:#245b58; }
.game-count { background:#ffb878; }.game-count i,.game-count b,.game-count em { width:19px;height:25px;top:23px;display:grid;place-items:center;color:#784728;background:#fff;border-radius:8px;font-size:12px;font-weight:900; }.game-count i { left:5px; }.game-count b { left:24px;top:11px; }.game-count em { right:5px; }
.game-color { background:conic-gradient(#ff7d70 0 33%,#ffd45f 0 66%,#72caa0 0); }.game-color i { width:30px;height:30px;left:18px;top:18px;border:5px solid #fff;border-radius:50%; }.game-color b { width:9px;height:9px;left:29px;top:29px;border-radius:50%;background:#5baee0; }
.content-switch { margin:0 0 18px;display:flex;gap:6px;flex-wrap:wrap; }.content-switch button { min-height:34px;padding:0 10px;border:1px solid var(--line);border-radius:9px;color:#557069;background:#fff;font-size:9px;cursor:pointer; }.content-switch button.active { color:#fff;border-color:var(--accent);background:var(--accent); }
.simple-content-editor { display:grid;gap:12px; }.simple-content-editor > .mini-heading { margin-bottom:0; }.simple-content-editor article { padding:13px;display:grid;grid-template-columns:34px 118px 1fr;align-items:start;gap:12px;border:1px solid var(--line);border-radius:14px;background:#fff; }.simple-content-editor .asset-tile { width:118px;height:118px; }.simple-content-editor .v4-bilingual { padding:9px;margin-bottom:8px; }.simple-item-number { width:30px;height:30px;display:grid;place-items:center;color:#fff;background:var(--accent);border-radius:10px;font-size:11px;font-weight:800; }.count-field { grid-template-columns:1fr auto;align-items:center; }.count-field input { grid-column:1;width:100%; }.count-field output { grid-column:2;grid-row:1/3;width:38px;height:38px;display:grid;place-items:center;color:#fff;background:var(--accent);border-radius:11px;font-weight:800; }
.v4-role-flow { margin:18px 0 22px;padding:18px;display:grid;grid-template-columns:1fr auto 1fr auto 1fr;align-items:center;gap:12px;background:#fff8df;border-radius:14px; }.v4-role-flow span { display:grid;gap:3px;text-align:center; }.v4-role-flow b { font-size:12px; }.v4-role-flow small { color:#6f7064;font-size:9px; }.v4-role-flow i { color:#2b7568;font-style:normal; }
.v4-preview { background:#edf2ee; }.v4-preview .preview-heading > div { display:grid;gap:2px; }.v4-preview .preview-heading span { color:#264c44;font-size:11px; }.v4-preview .preview-heading small { font-size:8px; }.v4-preview .preview-note { text-align:center; }

.v4-cover { padding:18px 20px 24px;align-items:center;overflow:hidden;text-align:center;background:linear-gradient(180deg,#c9f0fb 0 58%,#fff7d7 58% 100%); }
.v4-cover .game-language { top:12px;right:12px; }.v4-cover-brand { width:100%;padding-right:118px;display:flex;align-items:center;gap:7px;text-align:left; }.v4-cover-brand > span { width:31px;height:31px;display:grid;place-items:center;color:#fff;background:var(--game-accent);border-radius:10px;font-size:9px;font-weight:900; }.v4-cover-brand strong { font-size:10px; }
.v4-cover-scene { width:100%;height:306px;position:relative;display:grid;place-items:center; }
.v4-cover-scene > img { width:220px;height:230px;z-index:2;object-fit:cover;border:7px solid #fff;border-radius:40px;box-shadow:0 17px 31px rgba(29,90,77,.16); }
.v4-cloud { width:56px;height:18px;position:absolute;z-index:0;border-radius:20px;background:rgba(255,255,255,.8); }.v4-cloud::before,.v4-cloud::after { content:"";position:absolute;border-radius:50%;background:inherit; }.v4-cloud::before { width:24px;height:24px;left:8px;bottom:4px; }.v4-cloud::after { width:32px;height:32px;right:6px;bottom:3px; }.v4-cloud.c1 { left:-5px;top:54px; }.v4-cloud.c2 { right:-16px;top:96px;scale:.72; }
.v4-hill { width:260px;height:105px;position:absolute;bottom:-30px;border-radius:50% 50% 0 0;background:#96db82; }.v4-hill.h1 { left:-90px; }.v4-hill.h2 { right:-110px;bottom:-40px;background:#76ca87; }
.v4-mascot { width:196px;height:232px;position:relative;z-index:2;filter:drop-shadow(0 15px 12px rgba(25,77,65,.14)); }
.mascot-hat { width:140px;height:55px;position:absolute;z-index:4;left:28px;top:18px;background:#ffd25d;border-radius:70px 70px 15px 15px; }.mascot-hat::after { content:"★";width:39px;height:39px;position:absolute;left:51px;top:-12px;display:grid;place-items:center;color:#fff;background:#ff826f;border-radius:50%;font-size:18px; }
.mascot-face { width:164px;height:148px;position:absolute;z-index:3;left:16px;top:55px;background:#51b694;border-radius:76px 76px 54px 54px; }.mascot-face i { width:14px;height:17px;position:absolute;top:55px;border-radius:50%;background:#17433b; }.mascot-face i:first-child { left:48px; }.mascot-face i:nth-child(2) { right:48px; }.mascot-face b { width:51px;height:28px;position:absolute;left:57px;top:83px;border:6px solid #17433b;border-top:0;border-radius:0 0 38px 38px; }
.mascot-body { width:102px;height:68px;position:absolute;z-index:2;left:47px;bottom:0;background:#168170;border-radius:21px 21px 38px 38px; }.mascot-body i { width:27px;height:45px;position:absolute;top:2px;border-radius:18px;background:#51b694; }.mascot-body i:first-child { left:-17px;transform:rotate(24deg); }.mascot-body i:last-child { right:-17px;transform:rotate(-24deg); }.v4-mascot > em { width:34px;height:34px;position:absolute;z-index:4;right:9px;top:101px;display:grid;place-items:center;color:#764b00;background:#ffd35e;border:4px solid #fff;border-radius:12px;font-style:normal; }
.v4-cover-copy { z-index:3; }.v4-cover-copy h1 { max-width:300px;margin:0 auto;color:var(--game-ink);font-size:28px;line-height:1.2;letter-spacing:-.02em;text-wrap:balance; }.v4-cover-copy p { max-width:288px;margin:10px auto 14px;color:#44625b;font-size:12px;line-height:1.5; }
.v4-big-start { width:100%;min-height:58px;z-index:3;display:flex;align-items:center;justify-content:space-between;padding:0 14px 0 19px;border-radius:18px;font-size:15px; }.v4-big-start span { width:34px;height:34px;display:grid;place-items:center;color:var(--game-accent);background:#fff;border-radius:11px; }
.v4-cover-credit { z-index:3;margin-top:8px;color:#5a706a;font-size:11px;line-height:1.35; }
.v4-menu { padding:68px 17px 20px;background:linear-gradient(180deg,#d5f3fb 0 150px,#fffaf0 150px); }.v4-menu header { margin-bottom:17px; }.v4-menu header small { color:#32766a;font-size:10px;font-weight:800; }.v4-menu h2 { margin:4px 0 5px;font-size:24px; }.v4-menu header p { margin:0;color:#60756f;font-size:10px; }
.v4-game-menu { display:grid;gap:10px; }.v4-game-menu > button { min-height:102px;padding:11px;display:grid;grid-template-columns:66px 1fr 30px;align-items:center;gap:11px;text-align:left;border:0;border-radius:17px;color:var(--game-ink);background:#fff;box-shadow:0 9px 20px rgba(53,91,82,.1);cursor:pointer; }.v4-game-menu > button > span:nth-child(2) { display:grid;gap:4px; }.v4-game-menu strong { font-size:14px; }.v4-game-menu small { display:-webkit-box;overflow:hidden;color:#566d67;font-size:11px;line-height:1.4;-webkit-line-clamp:3;-webkit-box-orient:vertical; }.v4-game-menu > button > b { width:30px;height:30px;display:grid;place-items:center;color:#fff;background:var(--game-accent);border-radius:9px;font-size:12px; }
.single-game-menu .v4-game-menu { align-content:start; }.single-game-menu .v4-game-menu > button { min-height:126px; }
.simple-game-screen { padding:70px 17px 20px;background:linear-gradient(180deg,color-mix(in srgb,var(--game-soft) 55%,#fff) 0 112px,var(--game-bg) 112px); }.simple-game-screen .game-head { margin-bottom:14px; }.simple-game-screen .game-tip { margin-top:13px; }
.shadow-stage { min-height:205px;padding:16px;display:grid;place-items:center;align-content:center;gap:8px;text-align:center;background:#fff4cc;border-radius:22px; }.shadow-stage small { color:#685938;font-size:11px;font-weight:800; }.shadow-target { width:128px;height:128px;display:grid;place-items:center; }.shadow-target img { width:112px;height:112px;object-fit:contain;filter:brightness(0);opacity:.78; }.shadow-target .fallback-object { width:104px;height:104px;color:#202a28;background:#202a28;text-shadow:0 0 0 transparent;border-radius:48% 48% 38% 38%; }
.simple-choice-grid { margin-top:13px;display:grid;grid-template-columns:repeat(3,1fr);gap:8px; }.simple-choice-grid button { min-width:0;min-height:126px;padding:8px 5px 9px;display:grid;place-items:center;align-content:center;gap:6px;color:var(--game-ink);background:#fff;border:3px solid color-mix(in srgb,var(--choice-color) 72%,#fff);border-radius:17px;box-shadow:0 7px 14px rgba(42,78,71,.08);cursor:pointer; }.simple-choice-grid img,.simple-choice-grid .fallback-object { width:62px;height:62px;object-fit:contain;border-radius:16px; }.simple-choice-grid span { max-width:96px;min-height:28px;display:-webkit-box;overflow:hidden;font-size:11px;font-weight:800;line-height:1.25;text-align:center;-webkit-line-clamp:2;-webkit-box-orient:vertical;white-space:normal; }
.fallback-object { display:grid;place-items:center;color:#314b45;background:var(--object-color,#dce8e4);font-size:23px;font-weight:900; }
.count-stage { min-height:245px;padding:20px;display:flex;flex-wrap:wrap;align-content:center;align-items:center;justify-content:center;gap:12px;background:#fff;border-radius:23px;box-shadow:inset 0 0 0 3px color-mix(in srgb,var(--game-soft) 70%,#fff); }.count-stage > span { width:82px;height:82px;display:grid;place-items:center;background:color-mix(in srgb,var(--count-color) 52%,#fff);border-radius:24px;transform:rotate(calc((var(--delay) - 2) * 3deg)); }.count-stage img,.count-stage .fallback-object { width:64px;height:64px;object-fit:contain;border-radius:17px; }.simple-question { margin:17px 0 12px;text-align:center;font-size:20px; }.number-options { display:grid;grid-template-columns:repeat(3,1fr);gap:10px; }.number-options button { min-height:70px;color:#fff;background:var(--game-accent);border:0;border-radius:20px;font-size:29px;font-weight:900;box-shadow:0 8px 0 color-mix(in srgb,var(--game-accent) 72%,#000);cursor:pointer; }.number-options button:nth-child(2) { color:#66500d;background:#ffd45f;box-shadow-color:#d6a92b; }.number-options button:nth-child(3) { background:#ff8577;box-shadow-color:#cf5f55; }
.color-target { min-height:170px;padding:18px;display:grid;place-items:center;align-content:center;gap:12px;background:#fff;border-radius:23px; }.color-target > span { width:92px;height:92px;border:8px solid #fff;border-radius:50%;box-shadow:0 0 0 3px rgba(31,72,64,.1),0 12px 25px rgba(40,72,66,.13); }.color-target h2 { margin:0;font-size:19px; }
.v4-instruction { padding:74px 24px 28px;align-items:center;justify-content:center;text-align:center;background:linear-gradient(180deg,#d6f3fb,#fff9e9); }.instruction-mascot { width:176px;height:176px;position:relative;display:grid;place-items:center;border-radius:50%;background:#fff;box-shadow:0 17px 36px rgba(40,89,78,.12); }.instruction-mascot > .v4-game-icon { transform:scale(1.35); }.instruction-mascot > span:last-child { width:70px;height:54px;position:absolute;right:-12px;bottom:2px;background:#53b89a;border:5px solid #fff;border-radius:50% 50% 42% 42%; }.instruction-mascot > span:last-child i { width:7px;height:8px;position:absolute;top:16px;border-radius:50%;background:#173e37; }.instruction-mascot > span:last-child i:first-child { left:19px; }.instruction-mascot > span:last-child i:nth-child(2) { right:19px; }.instruction-mascot > span:last-child b { width:20px;height:10px;position:absolute;left:20px;top:28px;border:3px solid #173e37;border-top:0;border-radius:0 0 16px 16px; }
.v4-instruction > small { margin-top:22px;color:#36776b;font-size:11px;font-weight:800; }.v4-instruction h2 { max-width:300px;margin:7px 0 20px;font-size:25px;line-height:1.3; }.instruction-steps { width:100%;margin-bottom:22px;padding:14px 10px;display:grid;grid-template-columns:repeat(3,1fr);gap:6px;background:#fff;border-radius:15px; }.instruction-steps span { display:grid;justify-items:center;gap:5px;color:#526963;font-size:11px;line-height:1.3;text-align:center; }.instruction-steps b { width:30px;height:30px;display:grid;place-items:center;color:#fff;background:var(--game-accent);border-radius:9px;font-size:11px; }.instruction-steps span:nth-child(2) b { color:#765200;background:#ffd45d; }.instruction-steps span:nth-child(3) b { background:#ff8977; }
.player-experience { position:relative; }.active-game { width:100%;height:100%; }.player-home { width:44px;height:44px;position:absolute;z-index:30;left:12px;top:12px;border:0;border-radius:12px;background:rgba(255,255,255,.95);box-shadow:0 5px 14px rgba(26,68,59,.13);cursor:pointer; }.player-home span::before { content:"";width:15px;height:13px;position:absolute;left:14px;top:17px;border:3px solid #235f54;border-top:0;border-radius:2px; }.player-home span::after { content:"";width:13px;height:13px;position:absolute;left:15px;top:12px;border:3px solid #235f54;border-right:0;border-bottom:0;transform:rotate(45deg); }
.v4-family-preview { padding:68px 23px 25px;align-items:center;justify-content:center;text-align:center;background:linear-gradient(#d6f2fb,#fff8dc); }.family-scene { width:210px;height:175px;position:relative;margin-bottom:17px; }.family-child,.family-adult { position:absolute;bottom:0;background:#54b99b;border-radius:50% 50% 32% 32%; }.family-child { width:105px;height:122px;left:12px; }.family-adult { width:125px;height:150px;right:0;background:#ffd160; }.family-child i,.family-adult i { width:12px;height:14px;position:absolute;top:44px;border-radius:50%;background:#173f38;box-shadow:35px 0 0 #173f38; }.family-child i { left:30px; }.family-adult i { left:37px;top:56px;box-shadow:40px 0 0 #173f38; }.family-child b,.family-adult b { width:36px;height:18px;position:absolute;left:35px;top:67px;border:5px solid #173f38;border-top:0;border-radius:0 0 28px 28px; }.family-adult b { left:45px;top:82px; }.v4-family-preview > small { color:#34766a;font-size:10px;font-weight:800; }.v4-family-preview h2 { margin:6px 0 18px;font-size:23px; }.family-question { width:100%;margin-bottom:15px;padding:16px;text-align:left;background:#fff;border-radius:16px;box-shadow:0 10px 24px rgba(46,86,77,.1); }.family-question b { color:#34756a;font-size:10px; }.family-question p { margin:7px 0 0;font-size:13px;line-height:1.55; }
.v4-standalone { background:#dfeee8; }

@media (max-width:1180px){.v4-workspace{grid-template-columns:200px minmax(520px,1fr)}.v4-preview{grid-column:1/-1}.intro-stage{gap:38px}.intro-copy h1{font-size:48px}}
@media (max-width:760px){.studio-intro{background:#fffdf8}.intro-header{height:68px;padding:0 17px}.intro-header a{display:none}.intro-stage{width:calc(100% - 34px);padding:42px 0;display:flex;flex-direction:column;gap:48px}.intro-copy h1{margin-top:18px;font-size:38px}.intro-copy>p{font-size:15px}.intro-path{grid-template-columns:1fr;gap:17px}.intro-path li:not(:last-child)::after{display:none}.intro-phone{width:min(326px,calc(100vw - 48px));height:auto;aspect-ratio:326/628}.intro-footer{padding:14px 17px;align-items:flex-start;flex-direction:column;justify-content:center;gap:4px}.v4-section{width:calc(100% - 28px);padding-top:28px}.guide-strip{align-items:flex-start;flex-direction:column;gap:7px}.guide-strip span{padding:0;border:0}.v4-cover-block .cover-editor{grid-template-columns:1fr}.v4-style-row{grid-template-columns:1fr}.v4-template{grid-template-columns:64px 1fr}.v4-template>b{grid-column:2;width:max-content}.simple-content-editor article{grid-template-columns:34px 1fr}.simple-content-editor .asset-tile{grid-column:2;width:100%;height:180px}.simple-content-editor article>div:last-child{grid-column:2}.v4-role-flow{grid-template-columns:1fr}.v4-role-flow>i{transform:rotate(90deg)}.v4-preview{padding-bottom:88px}}

/* Educational exhibit introductions */
.handoff-icon b { position:relative; }
.handoff-icon b::before { content:"";width:8px;height:8px;position:absolute;top:7px;left:10px;border-radius:50%;background:#fff; }
.handoff-icon b::after { content:"";width:16px;height:9px;position:absolute;left:6px;bottom:6px;border-radius:10px 10px 6px 6px;background:#fff; }
.handoff-icon b:last-child::before,.handoff-icon b:last-child::after { background:#7a570d; }
.exhibit-introduction,.parent-followup { margin:0 auto 10px;max-width:300px;padding:12px 14px;text-align:left;border-radius:14px; }
.exhibit-introduction { color:var(--game-ink);background:#fff7d8;border:2px solid color-mix(in srgb,var(--game-sun) 58%,#fff); }
.parent-followup { color:#42635b;background:#edf7f3; }
.exhibit-introduction small,.parent-followup small { display:block;margin-bottom:4px;color:var(--game-accent);font-size:9px;font-weight:900; }
.exhibit-introduction p,.parent-followup p { margin:0;max-width:none;font-size:12px;line-height:1.55; }
.handoff-exhibit-image { width:112px;height:112px;margin:8px auto 7px;padding:8px;display:grid;place-items:center;overflow:hidden;background:#fff;border:3px solid color-mix(in srgb,var(--game-sun) 62%,#fff);border-radius:24px;box-shadow:0 9px 20px rgba(39,79,69,.12); }
.handoff-exhibit-image img { width:100%;height:100%;display:block;object-fit:contain;border-radius:16px; }
.learning-focus { width:max-content;margin-top:7px;padding:6px 9px;display:flex!important;align-items:center;gap:7px;color:#315f55;background:#eef7f3;border-radius:8px;font-size:9px; }
.learning-focus > i { width:13px;height:11px;position:relative;border:2px solid #3c8b79;border-radius:2px;background:#fff; }
.learning-focus > i::after { content:"";width:2px;height:9px;position:absolute;left:4px;top:-1px;background:#3c8b79; }
.learning-focus > span { display:flex;gap:5px; }.learning-focus b { font-size:9px; }
.exhibit-card-preview .family-scene { height:112px;margin-bottom:10px;transform:scale(.8);transform-origin:bottom; }
.exhibit-preview-image { width:150px;height:150px;margin:0 auto 12px;padding:10px;display:grid;place-items:center;overflow:hidden;background:#fff;border:4px solid #f2d56c;border-radius:30px;box-shadow:0 13px 27px rgba(38,82,72,.14); }
.exhibit-preview-image img { width:100%;height:100%;display:block;object-fit:contain;border-radius:20px; }
.exhibit-card-preview h2 { margin-bottom:10px; }
.exhibit-preview-copy { width:100%;margin-bottom:10px;padding:14px;text-align:left;color:#354e48;background:#fff8d9;border:2px solid #f1d777;border-radius:16px; }
.exhibit-preview-copy b { display:block;margin-bottom:6px;color:#285f54;font-size:14px; }.exhibit-preview-copy p { margin:0;font-size:11px;line-height:1.55; }
.exhibit-card-preview .family-question { margin-bottom:10px;padding:12px 14px; }
