@charset "UTF-8";

:root {
  color-scheme: light;
  --paper: #f6f7ef;
  --card: #ffffff;
  --ink: #253e34;
  --muted: #6d7c71;
  --green: #294f3d;
  --lime: #d4edaa;
  --border: #e5e9de;
  --soft: #f5f7f0;
  --radius: 23px;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  font-synthesis: none;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: radial-gradient(ellipse at 5% 15%, #edf1e3 0, transparent 42%), var(--paper); }
button, textarea { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .44; }
button, a, textarea, canvas, summary { outline-offset: 4px; }
:focus-visible { outline: 3px solid #638844; }
a { color: inherit; }
button svg, .small-card-heading svg, .connection-details summary svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
button { transition: background .18s, box-shadow .18s, transform .18s; }
button:not(:disabled):active { transform: translateY(1px); }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.site-shell { max-width: 1320px; margin: 0 auto; padding: 0 44px; }
.site-header { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #dfe5d6; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 750; letter-spacing: .25px; text-decoration: none; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; background: #e9efd9; border-radius: 13px; color: #315743; }
.brand-mark svg { width: 33px; height: 33px; }
.mvp-badge { padding: 2px 7px; color: #647252; border: 1px solid #cfd9bd; border-radius: 5px; font-size: 10px; font-weight: 650; letter-spacing: .8px; margin-left: 2px; }
.header-right { display: flex; align-items: center; gap: 24px; min-width: 0; }
.header-note { font-size: 12px; color: var(--muted); }
.model-pill { display: flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid #dfe5d6; border-radius: 20px; background: #ffffff9c; font-size: 11px; text-decoration: none; max-width: 270px; min-width: 0; }
.model-pill > span:nth-child(2) { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.model-pill > svg { width: 13px; height: 13px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.5; }
.status-dot { width: 7px; height: 7px; background: #c49958; border-radius: 50%; flex-shrink: 0; }
.status-dot[data-status="configured"] { background: #7d996a; }
.status-dot[data-status="error"] { background: #c5866b; }
.hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 42px 1px 32px; }
.eyebrow { font-size: 12px; color: #718054; letter-spacing: 1.05px; display: flex; align-items: center; gap: 7px; margin-bottom: 10px; }
.tiny-spark { font-size: 16px; }
h1 { font-size: clamp(32px, 3.8vw, 47px); letter-spacing: -1.7px; line-height: 1.4; font-weight: 850; }
h1 span { position: relative; isolation: isolate; white-space: nowrap; }
h1 span::after { content: ""; position: absolute; bottom: 1px; left: 3px; right: 0; height: 12px; background: #d6e8b5; border-radius: 4px 9px 5px 7px; z-index: -1; transform: rotate(-1deg); }
.hero-description { margin-top: 14px; color: #7a8175; font-size: 14px; line-height: 1.9; }
.hero-description strong { color: #52694a; font-weight: 600; }
.mobile-break { display: none; }
.hero-sketch { width: 234px; margin-right: 16px; text-align: center; flex-shrink: 0; }
.hero-sketch svg { width: 214px; height: 103px; display: block; }
.hero-sketch span { font-size: 11px; color: #8d957d; letter-spacing: 1.3px; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.47fr) minmax(355px, 1fr); align-items: start; gap: 22px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 5px 18px #243e3203; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.section-kicker { color: #879178; font-size: 10px; letter-spacing: 1.7px; font-weight: 600; }
.card-heading h2 { font-size: 20px; letter-spacing: .4px; font-weight: 750; margin-top: 3px; }
.game-card { overflow: hidden; }
.game-heading { padding: 22px 24px 18px; }
.state-chip { border: 1px solid #e1e8d6; background: #f6f8f0; color: #698454; font-size: 11px; padding: 4px 10px; border-radius: 20px; white-space: nowrap; }
.state-chip[data-phase="running"] { background: #eaf3db; color: #396237; }
.game-hud { margin: 0 21px; padding: 12px 17px; display: flex; align-items: center; gap: 24px; border: 1px solid #e8eade; border-bottom: 0; background: #fcfcf8; border-radius: 14px 14px 0 0; }
.hud-item { display: flex; align-items: center; gap: 7px; line-height: 1; }
.hud-label { font-size: 11px; color: #818b7c; }
.hud-item strong { font-family: "Segoe UI", system-ui, sans-serif; font-size: 23px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hud-unit { font-size: 10px; color: #8a9283; align-self: end; padding-bottom: 2px; }
.life-item { margin-left: 3px; }
.hearts { display: flex; gap: 4px; }
.hearts svg { width: 16px; height: 16px; fill: #d79789; transition: fill .2s; }
.hearts svg.lost { fill: #e6e7df; }
.timer-item { margin-left: auto; }
.timer-item > svg { width: 18px; height: 18px; fill: none; stroke: #819078; stroke-width: 1.5; stroke-linecap: round; }
.timer-item.urgent, .timer-item.urgent strong { color: #b25848; }
.game-viewport { position: relative; margin: 0 21px; background: #edf0f7; border: 1px solid #e3e6e9; border-top: 0; border-radius: 0 0 15px 15px; overflow: hidden; }
#game-canvas { display: block; width: 100%; height: auto; aspect-ratio: 760 / 470; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
#game-canvas:active { cursor: grabbing; }
#game-canvas:focus-visible { outline-offset: -5px; border-radius: 0 0 15px 15px; }
.canvas-topline { position: absolute; top: 16px; left: 18px; right: 18px; display: flex; justify-content: space-between; gap: 10px; pointer-events: none; font-size: 9px; color: #8591a1; letter-spacing: 1px; }
#shield-tag { background: #f6fff2dd; color: #45776e; border: 1px solid #b2d4cb; padding: 2px 7px; border-radius: 10px; letter-spacing: 0; text-align: right; }
.game-overlay { position: absolute; inset: 0; display: grid; place-items: center; padding: 28px 22px 76px; pointer-events: none; }
.overlay-note { text-align: center; background: #ffffffc7; border: 1px solid #ffffffe8; box-shadow: 0 9px 32px #73779009; border-radius: 20px; padding: 23px 27px 19px; max-width: 100%; backdrop-filter: blur(7px); pointer-events: auto; }
.overlay-kicker { color: #8a91a2; font-size: 10px; letter-spacing: 1.4px; }
.overlay-note h3 { margin: 5px 0 8px; color: #41525e; font-size: clamp(16px, 1.7vw, 23px); font-weight: 750; letter-spacing: -.3px; }
.overlay-note p { font-size: 11px; color: #7c8990; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 39px; padding: 9px 15px; border: 1px solid transparent; border-radius: 10px; font-size: 12px; line-height: 1.45; font-weight: 600; white-space: nowrap; }
.button-dark { background: var(--green); color: #fffef7; box-shadow: 0 2px 3px #294f3d10; }
.button-dark:not(:disabled):hover { background: #1c3d2c; box-shadow: 0 3px 9px #294f3d20; }
.button-light { border-color: #e2e8dd; background: #fff; color: #6c7c67; }
.button-light:not(:disabled):hover { background: #f3f6ed; }
.button-plain { background: transparent; color: #85907f; }
.button-plain:not(:disabled):hover { background: #f5f7f0; }
.button-lime { background: var(--lime); color: #355329; border-color: #cce5a4; }
.button-lime:not(:disabled):hover { background: #c5e397; box-shadow: 0 3px 8px #b5cb932e; }
.overlay-start { margin: 17px auto 10px; padding: 10px 21px; min-height: 42px; }
.overlay-start svg { margin-left: 8px; }
.overlay-footnote { display: block; color: #8d9796; font-size: 9px; }
.time-track { position: absolute; bottom: 0; left: 0; right: 0; height: 4px; background: #ffffff70; pointer-events: none; }
.time-track span { display: block; width: 100%; height: 100%; background: #91b4a0; transform-origin: left; }
.game-controls { padding: 17px 22px 0; }
.control-buttons { display: flex; gap: 8px; align-items: center; }
.replay-button { margin-left: auto; padding-right: 3px; font-size: 11px; }
#game-instructions { display: flex; justify-content: center; align-items: center; gap: 4px; padding: 15px 0 14px; font-size: 10px; color: #98a18f; }
#game-instructions > span { margin-left: 7px; }
kbd { min-width: 18px; padding: 1px 4px; background: #f7f8f2; border: 1px solid #e2e6dc; border-bottom-width: 2px; border-radius: 4px; font: 10px "Segoe UI", sans-serif; text-align: center; }
.game-caption { border-top: 1px solid #edf0e6; background: #fcfdf9; padding: 12px 22px; font-size: 10px; color: #86917a; display: flex; align-items: center; gap: 7px; min-height: 43px; }
.caption-dot { width: 5px; height: 5px; border-radius: 50%; background: #a8ba8a; flex-shrink: 0; }
.builder-card { padding: 22px; }
.pencil-mark { width: 40px; height: 40px; border-radius: 13px; background: #f0f5e4; display: grid; place-items: center; transform: rotate(6deg); }
.pencil-mark svg { width: 21px; height: 21px; fill: none; stroke: #91a66b; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tickets-box { background: #f7f9f0; border: 1px solid #e9eedd; border-radius: 13px; padding: 12px 13px 9px; margin-top: 18px; }
.tickets-heading { display: flex; justify-content: space-between; align-items: center; gap: 7px; font-size: 10px; color: #849072; }
.tickets-heading strong { color: #52713b; }
#ticket-count { color: #5c7746; font-size: 10px; font-weight: 650; white-space: nowrap; }
.tickets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 10px; }
.ticket { position: relative; display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 47px; background: #e8f2d1; border: 1px dashed #b8cf94; border-radius: 6px; color: #728c4d; overflow: hidden; }
.ticket::before, .ticket::after { content: ""; position: absolute; width: 10px; height: 10px; background: #f7f9f0; border-radius: 50%; left: -6px; top: calc(50% - 5px); border: 1px solid #c7d8b0; }
.ticket::after { right: -6px; left: auto; }
.ticket-number { position: absolute; top: 3px; left: 6px; font-size: 7px; letter-spacing: .5px; opacity: .65; }
.ticket svg { width: 17px; height: 17px; fill: #f7fbe9; stroke: #82995f; stroke-width: 1.2; }
.ticket-label { font-size: 10px; font-weight: 650; }
.ticket.used { background: #eeefe8; border-color: #d8ddcf; color: #a3aa99; }
.ticket.used svg { fill: none; stroke: #bac1b0; }
.ticket-note { text-align: center; color: #94a181; font-size: 9px; margin-top: 7px; }
.play-banner { display: none; margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; background: #eef5dc; color: #4d6238; font-size: 13px; font-weight: 650; }
.play-banner a { color: #3d6b1f; }
.play-only .play-banner { display: block; }
.play-only .hero,
.play-only .builder-card,
.play-only .bottom-grid,
.play-only .connection-details,
.play-only .site-footer { display: none !important; }
.play-only .workspace { grid-template-columns: 1fr; }
.mode-row { display: flex; gap: 8px; margin-bottom: 4px; }
.mode-chip { border: 1px solid #d5deca; background: #f7f8f2; color: #6d7a5f; border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 700; }
.mode-chip.on { background: #dcebbb; border-color: #8aa56a; color: #345125; }
.voice-panel { margin-top: 10px; }
.voice-button { width: 100%; min-height: 42px; justify-content: center; }
.voice-button.rec { background: #f3d6cf; border-color: #d7a394; color: #8a3d2c; }
.voice-hint, .export-note { font-size: 11px; color: #8b957c; line-height: 1.55; margin-top: 8px; }
.hear-box { margin-top: 10px; padding: 12px 13px; border: 1px solid #e1e7d6; border-radius: 10px; background: #fbfcf6; }
.hear-label { font-size: 11px; color: #7f8a6e; }
.hear-text { margin-top: 4px; font-size: 16px; font-weight: 750; color: #2f4a38; line-height: 1.55; min-height: 1.5em; }
.hear-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.clear-idea { margin-top: 8px; }
.proposal-card.closest { background: #f8f4e8; border-color: #e2d4a6; }
.proposal-card.closest .proposal-label { color: #8a7040; }
.proposal-card.closest .pending-badge { color: #8a7040; background: #efe6c8; }
.export-box { margin-top: 18px; padding-top: 14px; border-top: 1px solid #edf0e5; }
.export-heading { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.export-heading h3 { font-size: 14px; }
#cabinet-label { font-size: 11px; color: #7f8a6e; }
.export-box > .button { width: 100%; margin-top: 10px; justify-content: center; }
.export-result { margin-top: 12px; }
.export-result label { display: block; font-size: 11px; color: #7f8a6e; margin-bottom: 6px; }
.export-url-row { display: flex; gap: 6px; flex-wrap: wrap; }
.export-url-row input { flex: 1; min-width: 140px; border: 1px solid #dce4d3; border-radius: 8px; padding: 8px; font-size: 12px; }
.export-list { margin-top: 12px; display: grid; gap: 8px; padding: 0; list-style: none; }
.export-list li { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 8px 10px; background: #f7f8f2; border-radius: 8px; font-size: 12px; }
.export-list a { color: #3d6b1f; font-weight: 700; }
.export-list button { border: 0; background: transparent; color: #99694d; font-size: 11px; font-weight: 700; }
.parent-tools { margin-top: 14px; padding-top: 12px; border-top: 1px dashed #d7deca; display: grid; gap: 8px; }
.parent-tools p { font-size: 11px; color: #7f8a6e; }
.dialog-field { display: block; margin: 10px 0 4px; font-size: 12px; font-weight: 650; }
dialog input { width: 100%; border: 1px solid #dce4d3; border-radius: 8px; padding: 9px; font-size: 15px; }
.input-label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 19px 0 9px; }
.input-label-row label { font-size: 12px; font-weight: 650; }
.input-label-row > span { color: #a2a897; font-size: 10px; font-variant-numeric: tabular-nums; }
.idea-field { position: relative; }
textarea { display: block; width: 100%; resize: vertical; min-height: 104px; max-height: 240px; padding: 12px 33px 12px 13px; color: #3e5545; border: 1px solid #dce4d3; border-radius: 11px; background: #fff; font-size: 12px; line-height: 1.9; }
textarea::placeholder { color: #a1aa98; }
textarea:focus { border-color: #92ac73; box-shadow: 0 0 0 3px #eaf2db; }
textarea:disabled { background: #fafbf7; color: #78816c; }
.field-decoration { position: absolute; bottom: 13px; right: 11px; pointer-events: none; }
.field-decoration svg { width: 19px; height: 19px; fill: none; stroke: #b0bf97; stroke-width: 1.4; }
.examples-label { margin-top: 12px; font-size: 9px; color: #96a088; }
.example-buttons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.example-button { display: flex; align-items: center; gap: 4px; color: #758168; background: #f9faf5; border: 1px solid #e5e9db; border-radius: 7px; padding: 6px 7px; font-size: 9px; white-space: nowrap; }
.example-button svg { width: 14px; height: 14px; stroke-width: 1.25; }
.example-button:first-child svg { fill: #677560; }
.example-button:not(:disabled):hover { background: #f0f5e5; border-color: #c9d7b4; }
.send-button { width: 100%; min-height: 43px; margin-top: 16px; justify-content: flex-start; padding: 11px 14px; font-size: 12px; }
.send-button > svg:first-child { width: 20px; height: 20px; }
.send-arrow { margin-left: auto; }
.privacy-note { display: flex; align-items: flex-start; gap: 4px; color: #929c85; font-size: 9px; line-height: 1.65; margin-top: 9px; }
.privacy-note svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.3; flex-shrink: 0; margin-top: 1px; }
.builder-footer { margin-top: 17px; border-top: 1px solid #edf0e5; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.builder-footer > span { font-size: 9px; color: #a1a996; }
.text-button { border: 0; padding: 3px 0; background: transparent; color: #68874b; font-size: 10px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.text-button:not(:disabled):hover { color: #345125; text-decoration: underline; text-underline-offset: 3px; }
.undo-button svg { width: 13px; height: 13px; }
.feedback { margin-top: 14px; padding: 12px; border-radius: 10px; display: flex; align-items: flex-start; gap: 9px; overflow-wrap: anywhere; }
.feedback-error { background: #fcf6ef; border: 1px solid #eedecd; color: #99694d; }
.feedback strong { display: block; font-size: 11px; font-weight: 650; margin-bottom: 3px; }
.feedback p { font-size: 10px; line-height: 1.8; }
.feedback-icon { display: grid; place-items: center; flex-shrink: 0; width: 16px; height: 16px; margin-top: 1px; border: 1px solid #c0a17c; border-radius: 50%; color: #b08c60; font-size: 10px; font-weight: 700; }
.feedback .text-button { margin-top: 6px; color: #946c44; }
.feedback-info { background: #f0f6e9; border: 1px solid #dce9ce; color: #64834a; }
.info-icon { border: 1px solid #92a77c; border-radius: 50%; width: 15px; height: 15px; display: grid; place-items: center; font: 11px Georgia, serif; flex-shrink: 0; margin-top: 1px; }
.request-progress { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 13px; background: #f5f7ed; border: 1px solid #e5ebd7; border-radius: 10px; }
.request-progress strong { font-size: 11px; font-weight: 600; }
.request-progress p { color: #899679; font-size: 10px; margin-top: 2px; }
#wait-seconds { font-variant-numeric: tabular-nums; }
.spinner { width: 19px; height: 19px; border: 2px solid #d9e5c7; border-top-color: #7c9a58; border-radius: 50%; animation: spin .9s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.proposal-card { margin-top: 17px; background: #f7faef; border: 1px solid #ccdfad; border-radius: 13px; padding: 14px; }
.proposal-heading { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.proposal-label { color: #7a9461; font-size: 10px; letter-spacing: .8px; }
.pending-badge { background: #e8f0d9; color: #6c864b; border-radius: 5px; padding: 2px 6px; font-size: 9px; }
.proposal-card h3 { font-size: 15px; margin-top: 9px; }
#proposal-summary { font-size: 11px; line-height: 1.8; color: #738068; margin-top: 5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.diff-list { padding: 0; margin: 13px 0; list-style: none; border-block: 1px solid #e2e9d5; }
.diff-row { display: grid; grid-template-columns: minmax(65px, .9fr) minmax(0, 1fr) 14px minmax(0, 1fr); align-items: center; gap: 7px; padding: 8px 0; font-size: 10px; overflow-wrap: anywhere; }
.diff-row + .diff-row { border-top: 1px dashed #e4eadb; }
.diff-key { color: #7d8970; }
.diff-old { color: #979c8d; text-decoration: line-through; text-decoration-color: #bfc6b2; }
.diff-arrow { color: #9cae86; }
.diff-new { color: #446c35; font-weight: 650; }
.proposal-note { font-size: 9px; color: #8c997e; line-height: 1.8; }
.proposal-actions { display: flex; gap: 8px; margin-top: 12px; }
.proposal-actions .button:first-child { flex: 1; padding-inline: 9px; }
.proposal-actions .button { font-size: 11px; }
.bottom-grid { display: grid; grid-template-columns: 1.18fr 1fr .8fr; gap: 18px; margin-top: 23px; align-items: stretch; }
.rules-card, .history-card { padding: 21px; min-width: 0; }
.small-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.small-card-heading h2 { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 650; }
.small-card-heading svg { width: 15px; height: 15px; color: #8a9c74; }
.small-card-heading circle { fill: #fff; }
.small-badge { font-size: 9px; color: #889879; background: #f2f6e9; border-radius: 5px; padding: 2px 7px; white-space: nowrap; max-width: 100px; overflow: hidden; text-overflow: ellipsis; }
.rules-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; margin: 18px 0 0; }
.rule { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; min-width: 0; }
.rule dt { font-size: 10px; color: #9ba491; flex-shrink: 0; }
.rule dd { margin: 0; font-size: 10px; color: #5a7250; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.rule:last-child { grid-column: 1 / -1; justify-content: flex-start; gap: 12px; }
.rules-footnote { font-size: 9px; line-height: 1.7; color: #a4ac99; border-top: 1px solid #eff2e8; margin-top: 16px; padding-top: 10px; }
.history-card { display: flex; flex-direction: column; }
.history-list { list-style: none; padding: 0; margin: 18px 0 14px; max-height: 195px; overflow-y: auto; flex: 1; scrollbar-width: thin; scrollbar-color: #d2ddc6 transparent; }
.history-list li { position: relative; padding: 0 0 15px 17px; border-left: 1px solid #e5ebdd; margin-left: 4px; min-height: 35px; }
.history-list li:last-child { border-left-color: transparent; padding-bottom: 0; }
.history-list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; position: absolute; left: -4px; top: 6px; background: #e6eddd; border: 1px solid #ccdab9; }
.history-list li.current::before { background: #8ea56f; border-color: #8ea56f; box-shadow: 0 0 0 3px #f1f5e9; }
.history-label { display: block; font-size: 11px; color: #6d7d61; overflow-wrap: anywhere; white-space: pre-wrap; }
.history-version { display: block; color: #a7af9c; font-size: 9px; margin-top: 2px; }
.new-project-row { border-top: 1px solid #eff2e8; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.new-project-row > span { font-size: 9px; color: #a1aa93; }
.learning-card { position: relative; background: #eef1de; border: 1px solid #e3e8d0; border-radius: var(--radius); padding: 23px; overflow: hidden; }
.learning-icon { position: absolute; right: 17px; top: 17px; width: 30px; height: 30px; opacity: .7; transform: rotate(12deg); }
.learning-icon svg { width: 26px; height: 26px; fill: none; stroke: #91a068; stroke-width: 1.6; stroke-linecap: round; }
.learning-card .section-kicker { font-size: 9px; letter-spacing: .6px; margin-top: 2px; }
.learning-card h2 { font-size: 20px; line-height: 1.65; color: #627747; font-weight: 650; margin-top: 11px; }
.learning-card > p { color: #8b9875; font-size: 10px; line-height: 1.95; margin-top: 9px; }
.learning-stamp { display: inline-block; border-top: 1px solid #d9e1c4; padding-top: 10px; margin-top: 13px; color: #7e915f; font-size: 9px; letter-spacing: .4px; }
.connection-details { border: 1px solid #e1e7d6; border-radius: 13px; margin-top: 23px; background: #f9faf4; scroll-margin-top: 20px; }
.connection-details summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 53px; padding: 15px 21px; color: #82906f; font-size: 10px; border-radius: 13px; }
.connection-details summary::-webkit-details-marker { display: none; }
.connection-details summary > span { display: flex; align-items: center; gap: 9px; }
.connection-details summary svg { width: 14px; height: 14px; }
.details-summary-right { color: #a1aa92; font-size: 9px; }
.connection-details[open] .details-summary-right svg { transform: rotate(180deg); }
.connection-content { padding: 0 22px 19px; border-top: 1px solid #e8ecdf; }
.connection-principle { color: #5c7546; font-size: 12px; margin: 16px 0; font-weight: 600; }
.connection-stats { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 16px; margin: 0; }
.connection-stats > div { padding: 12px 15px; border: 1px solid #e5eadb; border-radius: 9px; background: #ffffffa1; min-width: 0; }
.connection-stats dt { font-size: 10px; color: #95a184; }
.connection-stats dd { margin: 4px 0 0; font-size: 16px; font-weight: 650; color: #647b4d; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.connection-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 13px; }
.connection-bottom p { font-size: 10px; color: #8a987a; overflow-wrap: anywhere; }
.connection-bottom .button { font-size: 10px; min-height: 34px; }
.connection-note { font-size: 9px; color: #a0aa92; margin-top: 12px; line-height: 1.9; }
.site-footer { display: flex; justify-content: space-between; gap: 15px; padding: 23px 0 28px; font-size: 9px; color: #a0a78f; letter-spacing: .35px; }
.footer-divider { margin: 0 9px; color: #c0c7b2; }
.toast { position: fixed; z-index: 20; bottom: 27px; left: 50%; transform: translateX(-50%); padding: 13px 22px; border: 1px solid #466850; border-radius: 12px; background: #2f503f; color: #f8ffe9; box-shadow: 0 7px 24px #213f3026; font-size: 12px; max-width: calc(100% - 32px); width: max-content; pointer-events: none; }
dialog { max-width: 450px; width: calc(100% - 36px); border: 1px solid #d7e1c8; border-radius: 21px; padding: 28px; background: #fffffa; color: var(--ink); box-shadow: 0 25px 100px #18321c33; }
dialog::backdrop { background: #273c3159; backdrop-filter: blur(3px); }
.dialog-kicker { font-size: 10px; color: #95a67b; letter-spacing: .7px; }
dialog h2 { font-size: 23px; margin-top: 8px; }
dialog p { font-size: 12px; line-height: 1.9; color: #7e8b71; margin-top: 14px; }
.dialog-tip { padding: 12px; background: #f2f6e9; border-radius: 9px; font-size: 11px; }
.dialog-actions { margin-top: 23px; display: flex; justify-content: flex-end; gap: 10px; }

@media (min-width: 1400px) {
  .site-shell { max-width: 1370px; padding-inline: 48px; }
  .workspace { grid-template-columns: minmax(0, 1.5fr) minmax(380px, 1fr); gap: 24px; }
  .builder-card { padding: 24px; }
  .game-heading { padding-top: 24px; padding-bottom: 20px; }
  .game-controls { padding-top: 19px; }
  #game-instructions { padding-block: 17px; }
  .tickets-box { margin-top: 20px; }
  textarea { min-height: 116px; }
  .example-button { font-size: 10px; padding: 7px 8px; }
}
@media (max-width: 1100px) {
  .site-shell { padding-inline: 26px; }
  .header-note { display: none; }
  .workspace { gap: 17px; grid-template-columns: minmax(0, 1.4fr) minmax(330px, 1fr); }
  .game-heading { padding-inline: 19px; }
  .game-hud, .game-viewport { margin-inline: 16px; }
  .game-hud { gap: 15px; padding-inline: 12px; }
  .hud-label { font-size: 10px; }
  .game-controls { padding-inline: 16px; }
  .builder-card { padding: 19px; }
  .hero-sketch { width: 175px; margin-right: 0; }
  .hero-sketch svg { width: 175px; }
  .bottom-grid { gap: 15px; grid-template-columns: 1.18fr 1fr .85fr; }
  .rules-card, .history-card, .learning-card { padding: 17px; }
  .small-card-heading h2 { font-size: 12px; }
  .learning-card h2 { font-size: 18px; }
  .learning-icon { right: 9px; width: 21px; }
  .learning-icon svg { width: 20px; }
  .overlay-note { padding: 17px 16px 14px; }
  .game-overlay { padding: 22px 13px 60px; }
  .overlay-note h3 { font-size: 18px; }
  .overlay-note p { font-size: 10px; }
  .overlay-start { min-height: 36px; padding-block: 8px; margin-top: 12px; }
}
@media (max-width: 850px) {
  .site-shell { max-width: 740px; padding-inline: 24px; }
  .site-header { min-height: 76px; }
  .brand { font-size: 15px; gap: 8px; }
  .hero { padding: 32px 0 28px; }
  .hero-sketch { display: none; }
  h1 { font-size: 38px; }
  .hero-description { font-size: 13px; }
  .workspace { grid-template-columns: 1fr; gap: 20px; }
  .game-heading { padding: 21px 24px 18px; }
  .game-hud, .game-viewport { margin-inline: 22px; }
  .game-hud { padding: 14px 18px; gap: 30px; }
  .game-controls { padding-inline: 22px; }
  .overlay-note { padding: 25px 30px 19px; }
  .overlay-note h3 { font-size: 24px; }
  .overlay-note p { font-size: 12px; }
  .overlay-start { min-height: 40px; margin-top: 17px; }
  .game-overlay { padding-bottom: 75px; }
  .builder-card { padding: 24px; }
  .tickets { gap: 12px; }
  .ticket { min-height: 52px; }
  .ticket-label { font-size: 12px; }
  .ticket svg { width: 20px; height: 20px; }
  .input-label-row label { font-size: 14px; }
  textarea { font-size: 14px; }
  .example-button { padding: 8px 11px; font-size: 11px; }
  .send-button { font-size: 14px; min-height: 46px; }
  .privacy-note { font-size: 10px; }
  .text-button { font-size: 11px; }
  .feedback p, .request-progress p { font-size: 12px; }
  .feedback strong, .request-progress strong { font-size: 13px; }
  .bottom-grid { grid-template-columns: 1.15fr 1fr; gap: 17px; }
  .rules-card, .history-card { padding: 21px; }
  .learning-card { grid-column: 1 / -1; padding: 20px 25px; display: grid; grid-template-columns: 1fr 1.3fr; column-gap: 25px; align-items: center; }
  .learning-card .section-kicker { grid-column: 1; }
  .learning-card h2 { grid-column: 1; grid-row: 2 / 4; font-size: 21px; margin-top: 7px; }
  .learning-card > p { grid-column: 2; grid-row: 1 / 3; font-size: 11px; margin-top: 0; }
  .learning-stamp { grid-column: 2; grid-row: 3; width: max-content; margin-top: 6px; }
  .learning-icon { right: 20px; top: 20px; }
  .connection-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .site-shell { padding-inline: 15px; }
  .site-header { gap: 8px; min-height: 69px; }
  .brand { font-size: 13px; gap: 6px; letter-spacing: 0; }
  .brand-mark { width: 32px; height: 32px; border-radius: 10px; }
  .brand-mark svg { width: 27px; height: 27px; }
  .mvp-badge { font-size: 8px; padding: 1px 4px; margin-left: 0; }
  .model-pill { font-size: 9px; max-width: 132px; padding: 5px 7px; gap: 5px; }
  .model-pill > svg { display: none; }
  .hero { padding-block: 28px 25px; }
  .eyebrow { font-size: 10px; letter-spacing: .5px; }
  h1 { font-size: clamp(26px, 7.3vw, 36px); letter-spacing: -1px; }
  h1 span::after { height: 9px; }
  .hero-description { font-size: 12px; margin-top: 12px; }
  .mobile-break { display: inline; }
  .card { border-radius: 18px; }
  .game-heading { padding: 18px 17px 15px; }
  .card-heading h2 { font-size: 18px; }
  .section-kicker { font-size: 9px; }
  .state-chip { font-size: 9px; padding: 4px 8px; }
  .game-hud, .game-viewport { margin-inline: 12px; }
  .game-hud { padding: 11px 10px; gap: 17px; }
  .hud-item { gap: 5px; }
  .hud-item strong { font-size: 21px; }
  .hud-label { font-size: 9px; }
  .hud-unit { font-size: 9px; }
  .hearts { gap: 3px; }
  .hearts svg { width: 13px; height: 13px; }
  .life-item { margin-left: 0; }
  .timer-item > svg { width: 15px; height: 15px; }
  .game-viewport { border-radius: 0 0 11px 11px; }
  .canvas-topline { top: 11px; left: 12px; right: 12px; font-size: 7px; }
  .game-overlay { padding: 22px 10px 67px; }
  .overlay-note { padding: 10px 13px 9px; border-radius: 13px; }
  .overlay-kicker { font-size: 8px; letter-spacing: .6px; }
  .overlay-note h3 { font-size: 16px; margin: 2px 0 4px; }
  .overlay-note p { font-size: 9px; }
  .overlay-start { min-height: 31px; margin: 9px auto 6px; font-size: 10px; padding: 7px 14px; border-radius: 8px; }
  .overlay-start svg { width: 14px; height: 14px; }
  .overlay-footnote { display: none; }
  .game-controls { padding: 13px 13px 0; }
  .control-buttons { gap: 6px; }
  .control-buttons .button { min-height: 37px; padding: 8px 10px; font-size: 10px; border-radius: 8px; gap: 5px; }
  .control-buttons .button svg { width: 14px; height: 14px; }
  .control-buttons .replay-button { padding-right: 2px; font-size: 10px; }
  #game-instructions { padding-block: 12px; font-size: 9px; }
  .game-caption { padding: 11px 15px; font-size: 9px; align-items: flex-start; }
  .caption-dot { margin-top: 5px; }
  .builder-card { padding: 19px; }
  .tickets-heading { font-size: 10px; }
  .tickets { gap: 9px; }
  .ticket { min-height: 48px; }
  .ticket-label { font-size: 11px; }
  .ticket-note { font-size: 9px; }
  .input-label-row label { font-size: 12px; }
  textarea { font-size: 16px; line-height: 1.7; min-height: 123px; }
  textarea::placeholder { font-size: 13px; }
  .example-buttons { gap: 6px; }
  .example-button { font-size: 10px; padding: 8px 7px; }
  .example-button svg { width: 13px; height: 13px; }
  .privacy-note { font-size: 9px; }
  .bottom-grid { grid-template-columns: 1fr; margin-top: 19px; gap: 16px; }
  .rules-card, .history-card { padding: 20px; }
  .rules-list { gap: 12px 22px; }
  .rule dt, .rule dd { font-size: 11px; }
  .small-card-heading h2 { font-size: 13px; }
  .learning-card { padding: 21px; gap: 0 15px; }
  .learning-card h2 { font-size: 18px; }
  .learning-card > p { font-size: 10px; }
  .learning-icon { display: none; }
  .learning-stamp { font-size: 8px; }
  .learning-card .section-kicker { font-size: 8px; }
  .connection-details { margin-top: 18px; }
  .connection-details summary { padding: 13px 14px; font-size: 10px; }
  .details-summary-right { font-size: 0; }
  .connection-content { padding-inline: 15px; }
  .connection-stats { gap: 9px; }
  .connection-stats > div { padding: 10px; }
  .connection-bottom { align-items: flex-start; flex-direction: column; gap: 10px; }
  .site-footer { flex-direction: column; gap: 5px; padding-block: 20px; font-size: 8px; }
  .dialog-actions { flex-direction: column-reverse; }
}
.section-kicker, .hud-label, .hud-unit, .ticket-note, .privacy-note, .examples-label, .feedback p, .request-progress p, .rule dt, .rule dd, .history-version, .rules-footnote, .proposal-note, .connection-note, .connection-bottom p, .site-footer { font-size: 12px; color: #65735e; }
.input-label-row label, textarea, .send-button { font-size: 15px; }
.example-button, .text-button, .ticket-label, .tickets-heading, #ticket-count, .diff-row, #proposal-summary, .connection-details summary { font-size: 13px; }
.button { min-height: 42px; }
.rules-list { grid-template-columns: 1fr; }
.canvas-topline { font-size: 11px; }
.overlay-kicker, .overlay-footnote, .overlay-note p { font-size: 12px; }
@media (max-width: 520px) { .overlay-kicker { display: none; } .overlay-note p { font-size: 11px; } .tickets-heading, #ticket-count, .example-button { font-size: 11px; } textarea { font-size: 16px; } .canvas-topline { font-size: 9px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
  .spinner { animation-duration: 2s; }
}

/* AI 游戏系列导航（两款页面完全一致：位置在页头之上、内容宽度 1232px、配色统一） */
.series-nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 16px 0 0; font-size: 12px; }
.series-label { font-size: 10px; font-weight: 700; letter-spacing: 1.6px; color: #7d8f85; margin-right: 2px; }
.series-link { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; border: 1px solid #dde4da; background: #fff; color: #4b6560; font-weight: 650; text-decoration: none; min-height: 38px; }
.series-link:hover { background: #eaf3ed; border-color: #c3d3c8; text-decoration: none; }
.series-step { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #e9eee2; color: #26786d; font-size: 10px; font-weight: 700; flex-shrink: 0; }
.series-link em { font-style: normal; font-size: 10px; color: #7d8f85; font-weight: 400; }
.series-link.is-current { background: #26786d; border-color: #26786d; color: #fff; }
.series-link.is-current .series-step { background: rgba(255,255,255,.28); color: #fff; }
.series-link.is-current em { color: #d9ece4; }
.series-arrow { color: #b6c4ae; font-size: 13px; }
.series-home { margin-left: auto; font-size: 11px; color: #7d8f85; text-decoration: none; }
.series-home:hover { color: #26786d; }
@media (max-width: 760px) { .series-nav { gap: 8px; padding: 12px 0 0; } .series-link { padding: 6px 11px; font-size: 11px; } .series-home { margin-left: 0; } }

/* 手机端：按键做大、首屏先看到游戏（实测原来最小按钮只有 27px，画布上方占了 480px） */
@media (max-width: 760px) {
  .button { min-height: 46px; padding: 11px 16px; font-size: 14px; }
  .button svg { width: 20px; height: 20px; }
  .mode-chip, .example-button, .chip-button { min-height: 44px; padding: 10px 13px; font-size: 12px; }
  .text-button { min-height: 42px; padding: 9px 10px; font-size: 12px; }
  .send-button { min-height: 50px; font-size: 15px; }
  .overlay-start { min-height: 48px; }
}
@media (max-width: 760px) {
  /* 这两处原规则更具体（.control-buttons .button / .connection-bottom .button），要同级别覆盖 */
  .control-buttons .button { min-height: 46px; padding: 11px 13px; font-size: 11px; border-radius: 9px; }
  .connection-bottom .button { min-height: 44px; font-size: 11px; }
}
@media (max-width: 520px) {
  .hero { padding-block: 16px 18px; }
  h1 { font-size: clamp(24px, 6.6vw, 32px); }
  .hero-description { margin-top: 8px; line-height: 1.7; }
  .game-card .card-heading { padding-bottom: 12px; }
  .game-hud, .game-viewport, .game-controls { margin-inline: 10px; }
  .game-hud { padding: 12px 14px; gap: 18px; }
  .game-controls { padding-inline: 12px; }
}

/* 朗读按钮 */
.speak-btn { border: 1px solid #dfe6d9; background: #fff; color: #5c6f57; border-radius: 999px; padding: 5px 11px; margin-left: 8px; font-size: 11px; font-weight: 600; min-height: 34px; cursor: pointer; vertical-align: middle; }
.speak-btn:hover { background: #f2f7ea; border-color: #c6d6bb; }
.game-caption .speak-btn { margin-left: auto; flex-shrink: 0; }
@media (max-width: 760px) { .speak-btn { min-height: 38px; padding: 7px 12px; font-size: 12px; } }
