:root {
  --ink: #102f2a;
  --forest: #173f37;
  --forest-2: #245d50;
  --mint: #c6f06f;
  --mint-soft: #e9f9c5;
  --paper: #f5f3eb;
  --white: #fffef9;
  --mist: #e7ebe4;
  --muted: #66746f;
  --coral: #f26e50;
  --line: rgba(16, 47, 42, .14);
  --shadow: 0 24px 60px rgba(18, 54, 45, .18);
  --radius-card: 22px;
  --radius-control: 13px;
}

* { box-sizing: border-box; }
html { background: var(--forest); scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Avenir Next", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button, a { color: inherit; font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }

.review-rail { position: fixed; z-index: 100; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; padding: 6px; border: 1px solid rgba(255,255,255,.22); border-radius: 16px; background: rgba(12,34,30,.9); color: white; box-shadow: 0 12px 40px rgba(0,0,0,.24); backdrop-filter: blur(18px); }
.review-rail strong { padding: 0 10px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.66); white-space: nowrap; }
.review-rail button { border: 0; border-radius: 10px; padding: 9px 11px; background: transparent; color: rgba(255,255,255,.76); font-size: 12px; white-space: nowrap; }
.review-rail button:hover, .review-rail button.active { background: var(--mint); color: var(--ink); }
.view { display: none; min-height: 100dvh; }
.view.is-active { display: block; }

.site-nav { height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 clamp(24px, 4vw, 68px); border-bottom: 1px solid var(--line); background: rgba(245,243,235,.92); }
.brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; font-size: 20px; font-weight: 800; letter-spacing: -.04em; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--mint); background: var(--forest); font-size: 15px; }
.nav-links { display: flex; gap: 34px; font-size: 13px; font-weight: 650; }
.nav-links a { text-decoration: none; }
.nav-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.language-button { border: 0; background: transparent; padding: 10px 12px; font-size: 12px; }
.nav-play, .primary-cta { border: 0; color: white; background: var(--forest); border-radius: var(--radius-control); font-weight: 750; }
.nav-play { padding: 11px 17px; }

.hero { min-height: calc(100dvh - 72px); display: grid; grid-template-columns: minmax(360px, .82fr) minmax(560px, 1.18fr); align-items: center; gap: clamp(36px, 5vw, 88px); padding: clamp(34px, 5vh, 70px) clamp(24px, 4vw, 68px) 64px; overflow: hidden; }
.hero-copy { max-width: 590px; }
.chapter-label { display: block; margin-bottom: 22px; color: var(--forest-2); font-size: 12px; font-weight: 800; letter-spacing: .18em; }
.hero h1 { max-width: 630px; margin: 0; font-size: clamp(50px, 5.4vw, 84px); line-height: .98; letter-spacing: -.065em; font-weight: 850; }
.hero p { max-width: 440px; margin: 26px 0 30px; color: var(--muted); font-size: 17px; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 14px; }
.primary-cta { min-width: 148px; padding: 15px 19px; display: inline-flex; justify-content: space-between; align-items: center; }
.primary-cta:hover, .nav-play:hover { background: var(--forest-2); }
.primary-cta:active, .nav-play:active { transform: translateY(1px); }
.text-cta { border: 1px solid var(--line); background: var(--white); border-radius: var(--radius-control); padding: 14px 19px; font-weight: 700; }
.platform-note { margin-top: 25px; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #38a961; box-shadow: 0 0 0 4px rgba(56,169,97,.12); }
.divider { width: 1px; height: 12px; margin: 0 5px; background: var(--line); }
.hero-art { position: relative; min-height: 570px; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); transform: rotate(1.2deg); background: var(--forest); }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(7,31,26,.68)); pointer-events: none; }
.hero-art > img { width: 100%; height: 100%; min-height: 570px; object-fit: cover; }
.art-caption { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 20px; display: flex; justify-content: space-between; color: white; font-size: 13px; }
.art-caption strong { color: var(--mint); font-size: 17px; }
.find-ring { position: absolute; z-index: 3; width: 56px; height: 56px; border: 3px solid var(--mint); border-radius: 50%; box-shadow: 0 0 0 7px rgba(198,240,111,.2); }
.find-ring span { position: absolute; left: 42px; top: -24px; padding: 7px 10px; border-radius: 9px; background: var(--mint); font-size: 10px; font-weight: 800; white-space: nowrap; }
.ring-one { left: 37%; top: 51%; animation: discover 3s ease-in-out infinite; }
.ring-two { left: 8%; top: 14%; width: 38px; height: 38px; opacity: .65; }
@keyframes discover { 0%,70%,100% { transform: scale(1); } 78% { transform: scale(1.12); } }

.mode-preview { padding: 100px clamp(24px, 7vw, 110px) 140px; background: var(--forest); color: white; }
.mode-intro { margin-bottom: 42px; }
.mode-intro h2 { margin: 0; font-size: clamp(36px, 4vw, 62px); letter-spacing: -.05em; }
.mode-intro p { color: rgba(255,255,255,.58); }
.mode-panel { position: relative; display: grid; grid-template-columns: 70px 1fr 45%; min-height: 300px; align-items: center; gap: 20px; padding: 30px; overflow: hidden; border-top: 1px solid rgba(255,255,255,.22); cursor: pointer; }
.mode-panel img { width: 100%; height: 240px; object-fit: cover; border-radius: var(--radius-card); filter: saturate(.84); }
.mode-index { align-self: start; padding-top: 12px; color: var(--mint); font-size: 12px; }
.mode-panel h3 { margin: 0 0 12px; font-size: clamp(30px, 3vw, 52px); letter-spacing: -.04em; }
.mode-panel p { max-width: 340px; color: rgba(255,255,255,.64); line-height: 1.6; }
.mode-panel button { padding: 0; border: 0; background: transparent; color: var(--mint); font-weight: 700; }

.lobby-view { background: #eef0ea; }
.lobby-header { height: 76px; display: grid; grid-template-columns: 280px 1fr auto; align-items: center; padding: 0 34px; color: white; background: var(--forest); }
.light-brand .brand-mark { color: var(--forest); background: var(--mint); }
.welcome { display: flex; flex-direction: column; line-height: 1.25; }
.welcome small { color: rgba(255,255,255,.54); font-size: 10px; }
.welcome strong { font-size: 13px; }
.header-tools { display: flex; gap: 8px; }
.header-tools button { padding: 9px 13px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; background: transparent; color: white; font-size: 11px; }
.lobby-shell { min-height: calc(100dvh - 76px); display: grid; grid-template-columns: 280px 1fr; }
.mode-switcher { padding: 34px 22px; color: white; background: #1e4b42; }
.mode-switcher > p { margin: 0 10px 15px; color: rgba(255,255,255,.45); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.mode-button { width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px; border: 0; border-radius: 14px; color: white; background: transparent; text-align: left; }
.mode-button.active { color: var(--ink); background: var(--mint); }
.mode-symbol { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid currentColor; border-radius: 50%; font-size: 21px; }
.difference-symbol { font-size: 18px; }
.mode-button span:last-child { display: flex; flex-direction: column; gap: 3px; }
.mode-button strong { font-size: 13px; }
.mode-button small { opacity: .62; font-size: 10px; }
.local-progress { margin: 34px 10px 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.16); }
.local-progress > span, .local-progress > strong { display: block; }
.local-progress > span { color: rgba(255,255,255,.52); font-size: 10px; }
.local-progress > strong { margin: 6px 0 12px; font-size: 24px; }
.local-progress > div { height: 5px; overflow: hidden; border-radius: 5px; background: rgba(255,255,255,.14); }
.local-progress i { display: block; height: 100%; background: var(--mint); }
.local-progress small { display: block; margin-top: 10px; color: rgba(255,255,255,.48); font-size: 9px; }
.world-content { padding: 46px clamp(28px, 4vw, 64px) 100px; overflow: hidden; }
.world-heading { display: grid; grid-template-columns: 1fr 310px; align-items: end; gap: 30px; }
.world-heading > div > span { color: var(--forest-2); font-size: 11px; font-weight: 800; }
.world-heading h1 { margin: 6px 0 10px; font-size: clamp(36px, 4vw, 58px); letter-spacing: -.055em; }
.world-heading p { max-width: 580px; margin: 0; color: var(--muted); line-height: 1.6; font-size: 13px; }
.continue-card { display: grid; grid-template-columns: 1fr 30px; gap: 3px; padding: 18px; border: 0; border-radius: var(--radius-card); color: white; background: var(--forest); text-align: left; box-shadow: 0 14px 32px rgba(23,63,55,.14); }
.continue-card span, .continue-card strong { grid-column: 1; }
.continue-card span { color: var(--mint); font-size: 10px; }
.continue-card strong { font-size: 13px; }
.continue-card i { grid-column: 2; grid-row: 1 / 3; align-self: center; font-style: normal; font-size: 24px; }
.difficulty-tabs { display: flex; gap: 6px; margin: 42px 0 18px; border-bottom: 1px solid var(--line); }
.difficulty-tabs button { padding: 11px 15px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; }
.difficulty-tabs button.active { border-color: var(--forest); color: var(--ink); }
.difficulty-tabs span { margin-left: 4px; opacity: .55; }
.locked-tab { opacity: .48; }
.level-grid { display: grid; grid-template-columns: repeat(4, minmax(210px, 1fr)); gap: 16px; }
.level-card { overflow: hidden; border-radius: var(--radius-card); background: var(--white); box-shadow: 0 5px 16px rgba(23,63,55,.07); cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.level-card:hover { transform: translateY(-3px); box-shadow: 0 18px 34px rgba(23,63,55,.13); }
.level-card.current { outline: 2px solid var(--forest); outline-offset: -2px; }
.level-image { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.level-image img { width: 100%; height: 100%; object-fit: cover; }
.level-number { position: absolute; left: 12px; bottom: 10px; display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; color: white; background: rgba(11,34,29,.78); font-size: 10px; backdrop-filter: blur(8px); }
.status-chip, .done-chip { position: absolute; top: 11px; right: 11px; padding: 6px 9px; border-radius: 8px; background: var(--mint); font-size: 9px; font-weight: 800; }
.done-chip { color: white; background: var(--forest); }
.level-copy { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; }
.level-copy small { color: var(--muted); font-size: 9px; }
.level-copy h3 { margin: 3px 0 0; font-size: 13px; }
.completion { font-size: 10px; font-weight: 800; color: var(--forest-2); }
.completion.done { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; color: var(--ink); background: var(--mint); }
.locked-card .level-image > img { filter: saturate(.3) brightness(.62); }
.lock-layer { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; color: white; text-align: center; }
.lock-layer span { padding: 4px 7px; border-radius: 6px; color: var(--ink); background: var(--mint); font-size: 8px; font-weight: 800; }
.lock-layer strong { margin: 9px 0; font-size: 11px; line-height: 1.45; }
.lock-layer button { padding: 7px 10px; border: 1px solid rgba(255,255,255,.5); border-radius: 8px; color: white; background: rgba(255,255,255,.1); font-size: 9px; }

.game-view { position: relative; height: 100dvh; min-height: 620px; overflow: hidden; background: #dfe4dc; }
.game-header { position: relative; z-index: 5; height: 76px; display: grid; grid-template-columns: 44px 1fr minmax(180px, 28%) auto 44px; align-items: center; gap: 18px; padding: 0 22px; color: white; background: var(--forest); }
.round-control { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.23); border-radius: 50%; color: white; background: rgba(255,255,255,.06); font-weight: 800; }
.level-title { display: flex; flex-direction: column; }
.level-title small { color: rgba(255,255,255,.5); font-size: 9px; }
.level-title strong { margin-top: 2px; font-size: 13px; }
.game-progress { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; }
.game-progress > span { height: 6px; overflow: hidden; border-radius: 6px; background: rgba(255,255,255,.14); }
.game-progress i { display: block; height: 100%; border-radius: inherit; background: var(--mint); }
.game-progress strong { color: var(--mint); font-size: 20px; }
.game-progress small { color: rgba(255,255,255,.52); font-size: 11px; }
.mistake-count { display: flex; align-items: center; gap: 4px; }
.mistake-count span { margin-right: 5px; color: rgba(255,255,255,.5); font-size: 9px; }
.mistake-count i { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.mistake-count i.used { background: rgba(255,255,255,.18); }
.hidden-stage { position: absolute; inset: 76px 300px 0 0; overflow: hidden; background: #cfd7cf; }
.scene-image { width: 100%; height: 100%; object-fit: cover; }
.scene-hotspot { position: absolute; left: 36.3%; top: 51%; width: 5.2%; height: 10%; border: 0; background: transparent; }
.found-marker { position: absolute; display: grid; place-items: center; width: 46px; height: 46px; border: 3px solid var(--mint); border-radius: 50%; box-shadow: 0 0 0 7px rgba(198,240,111,.26); color: var(--ink); background: rgba(198,240,111,.18); }
.found-marker span { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: var(--mint); font-size: 11px; font-weight: 900; }
.marker-a { left: 17%; top: 50%; }
.found-marker.pulse { animation: markerPulse .5s ease 2; }
@keyframes markerPulse { 50% { transform: scale(1.2); } }
.zoom-tools { position: absolute; right: 17px; bottom: 18px; display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(12,36,31,.8); backdrop-filter: blur(10px); }
.zoom-tools button { width: 34px; height: 34px; border: 0; border-radius: 8px; color: white; background: transparent; font-weight: 800; }
.zoom-tools button:hover { background: rgba(255,255,255,.12); }
.zoom-tools .fit-button { width: auto; padding: 0 10px; font-size: 9px; }
.target-dock { position: absolute; z-index: 4; right: 0; top: 76px; bottom: 0; width: 300px; padding: 23px 18px; background: var(--paper); box-shadow: -12px 0 32px rgba(16,47,42,.11); }
.dock-label { display: flex; justify-content: space-between; align-items: end; padding: 0 4px 18px; border-bottom: 1px solid var(--line); }
.dock-label small { color: var(--muted); }
.dock-label strong { font-size: 13px; }
.target-list { padding: 9px 0; }
.target-item { position: relative; width: 100%; display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 11px; padding: 10px 4px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.target-item > span:nth-child(2) { display: flex; flex-direction: column; gap: 3px; }
.target-item strong { font-size: 12px; }
.target-item small { color: var(--muted); font-size: 9px; }
.target-thumb { width: 52px; height: 42px; border-radius: 9px; background-image: url("../assets/harbor-demo/scene_a.png"); background-size: 1300px auto; background-repeat: no-repeat; box-shadow: inset 0 0 0 1px rgba(16,47,42,.08); }
.crop-cat { background-position: 38% 55%; }
.crop-dog { background-position: 68% 54%; }
.crop-ufo { background-position: 50% 15%; }
.crop-butterfly { background-position: 10% 18%; }
.target-item.found { opacity: .46; }
.target-item.found::after { content: ""; position: absolute; left: 3px; right: 3px; top: 50%; height: 1px; background: var(--ink); }
.target-item > i { position: relative; z-index: 2; display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; color: var(--ink); background: var(--mint); font-size: 9px; font-style: normal; }
.hint-button { width: calc(100% - 36px); position: absolute; left: 18px; bottom: 23px; display: flex; align-items: center; gap: 11px; padding: 12px; border: 0; border-radius: var(--radius-control); color: white; background: var(--forest); text-align: left; }
.hint-symbol { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--ink); background: var(--mint); font-weight: 900; }
.hint-button span:last-child { display: flex; flex-direction: column; }
.hint-button strong { font-size: 11px; }
.hint-button small { color: rgba(255,255,255,.52); font-size: 8px; }
.game-toast { position: absolute; z-index: 6; left: calc(50% - 150px); bottom: -60px; transform: translateX(-50%); padding: 11px 15px; border-radius: 11px; color: var(--ink); background: var(--mint); font-size: 11px; font-weight: 800; box-shadow: 0 12px 30px rgba(16,47,42,.2); transition: bottom .25s ease; }
.game-toast.show { bottom: 22px; }

.difference-header { grid-template-columns: 44px minmax(150px,1fr) minmax(300px, 38%) auto 44px; }
.difference-status { display: grid; grid-template-columns: auto auto minmax(110px,1fr); align-items: center; gap: 14px; }
.countdown,.remaining-count { display: flex; flex-direction: column; min-width: 58px; }
.countdown small,.remaining-count small { color: rgba(255,255,255,.5); font-size: 8px; }
.countdown strong,.remaining-count strong { margin-top: 2px; color: var(--mint); font-size: 15px; font-variant-numeric: tabular-nums; }
.countdown.is-low strong { color: var(--coral); animation: timePulse .8s ease-in-out infinite alternate; }
@keyframes timePulse { to { opacity: .56; } }
.difference-pips { display: flex; align-items: center; gap: 6px; }
.difference-pips i { width: 24px; height: 5px; border-radius: 4px; background: rgba(255,255,255,.17); }
.difference-pips i.found { background: var(--mint); }
.difference-stage { position: absolute; inset: 76px 0 72px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; background: #9fa9a1; }
.difference-stage figure { position: relative; margin: 0; overflow: hidden; border-radius: 13px; background: var(--forest); }
.difference-stage figure > span { position: absolute; z-index: 3; top: 13px; left: 13px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: white; background: rgba(13,38,33,.72); font-size: 10px; font-weight: 800; backdrop-filter: blur(8px); }
.difference-stage img { width: 100%; height: 100%; object-fit: cover; }
.difference-marker { position: absolute; width: 52px; height: 52px; border: 3px solid var(--mint); border-radius: 50%; box-shadow: 0 0 0 7px rgba(198,240,111,.25); }
.diff-one { left: 49%; top: 26%; }
.difference-hotspot { position:absolute; width:58px; height:58px; padding:0; border:0; border-radius:50%; background:transparent; }
.difference-hotspot::after { content:""; position:absolute; inset:3px; border:3px solid transparent; border-radius:50%; transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease; }
.difference-hotspot:hover::after,.difference-hotspot:focus-visible::after { border-color:rgba(255,255,255,.9); box-shadow:0 0 0 5px rgba(255,255,255,.24); }
.difference-hotspot.is-found::after,.difference-hotspot.is-revealed::after { border-color:var(--mint); box-shadow:0 0 0 7px rgba(198,240,111,.25); transform:scale(1.05); }
.difference-hotspot.is-revealed::before { content:"答案"; position:absolute; z-index:2; left:50%; top:50%; transform:translate(-50%,-50%); padding:4px 6px; border-radius:6px; color:var(--ink); background:var(--mint); font-size:8px; font-weight:900; }
.diff-two { left:21%; top:22%; }.diff-three { left:71%; top:70%; }.diff-four { left:12%; top:61%; }
.difference-footer { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; height: 72px; display: grid; grid-template-columns: 1fr auto minmax(300px,360px); align-items: center; gap: 16px; padding: 0 22px; background: var(--paper); }
.difference-footer > div:first-child { display: flex; flex-direction: column; }
.difference-footer strong { font-size: 11px; }
.difference-footer span { color: var(--muted); font-size: 9px; }
.inline-tools { position: static; background: var(--forest); }
.hint-button.compact { position: static; width: 100%; padding: 8px 11px; }
.hint-button.compact .hint-symbol { width: 30px; height: 30px; }
.assist-actions { display:grid; grid-template-columns:1fr 1.15fr; gap:8px; }
.rescue-button { display:flex; align-items:center; gap:9px; min-width:0; padding:8px 10px; border:1px solid var(--line); border-radius:var(--radius-control); color:var(--ink); background:transparent; text-align:left; }
.rescue-button>span:first-child { display:grid; place-items:center; width:30px; height:30px; flex:0 0 30px; border-radius:50%; color:white; background:var(--coral); font-size:8px; font-weight:900; }
.rescue-button>span:last-child { display:flex; flex-direction:column; min-width:0; }
.rescue-button strong { font-size:11px; }.rescue-button small { color:var(--muted); font-size:8px; white-space:nowrap; }

.modal-backdrop { position: fixed; z-index: 200; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(9,29,24,.72); backdrop-filter: blur(10px); }
.modal-backdrop[hidden] { display: none; }
.game-modal { position: relative; width: min(440px, 100%); padding: 38px; border-radius: 26px; background: var(--white); text-align: center; box-shadow: 0 34px 100px rgba(0,0,0,.3); }
.modal-close { position: absolute; right: 14px; top: 14px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--mist); }
.modal-kicker { color: var(--forest-2); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.game-modal h2 { margin: 8px 0 12px; font-size: 32px; line-height: 1.1; letter-spacing: -.045em; }
.game-modal p { margin: 0 auto 22px; max-width: 310px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.modal-counter { display: flex; justify-content: center; gap: 8px; margin: 24px 0; }
.modal-counter i { width: 12px; height: 12px; border-radius: 50%; background: var(--coral); }
.modal-counter i.used { background: var(--mist); box-shadow: inset 0 0 0 1px #c7cfca; }
.modal-primary, .modal-secondary { width: 100%; min-height: 48px; border-radius: var(--radius-control); font-weight: 800; }
.modal-primary { display: flex; justify-content: center; align-items: center; gap: 12px; border: 0; color: white; background: var(--forest); }
.modal-secondary { margin-top: 8px; border: 1px solid var(--line); background: var(--white); }
.modal-link { margin-top: 14px; border: 0; background: transparent; color: var(--muted); font-size: 10px; }
.seal { width: 74px; height: 74px; display: grid; place-items: center; margin: -76px auto 24px; border: 7px solid rgba(198,240,111,.24); border-radius: 50%; color: var(--ink); background: var(--mint); font-size: 12px; font-weight: 900; transform: rotate(-7deg); }
.score-block { display:flex; flex-direction:column; align-items:center; margin:18px 0 6px; padding:15px; border:1px solid var(--line); border-radius:14px; background:rgba(255,255,255,.34); }
.score-block small { color:var(--muted); font-size:8px; font-weight:800; letter-spacing:.12em; }.score-block strong { margin:2px 0; font-size:34px; line-height:1; font-variant-numeric:tabular-nums; }.score-block span { color:var(--muted); font-size:8px; }
.result-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 12px 0 14px; border-block: 1px solid var(--line); }
.result-stats div { padding: 16px 4px; }
.result-stats div + div { border-left: 1px solid var(--line); }
.result-stats small, .result-stats strong { display: block; }
.result-stats small { color: var(--muted); font-size: 8px; }
.result-stats strong { margin-top: 4px; font-size: 19px; }
.game-modal .save-note { margin-bottom: 18px; color: var(--forest-2); font-size: 9px; }
.save-note span { display: inline-grid; place-items: center; width: 17px; height: 17px; margin-right: 5px; border-radius: 50%; background: var(--mint-soft); font-weight: 900; }
.badge-strip { display:flex; justify-content:center; align-items:center; flex-wrap:wrap; gap:6px; margin-bottom:14px; }.badge-strip small { width:100%; color:var(--muted); font-size:8px; }.badge-strip span { padding:5px 8px; border:1px solid var(--line); border-radius:999px; font-size:8px; font-weight:800; }
.share-panel { margin:0 0 14px; padding:12px; border:1px solid var(--line); border-radius:14px; text-align:left; }.share-panel>span { display:block; margin-bottom:8px; font-size:10px; font-weight:800; }.share-panel>div { display:flex; gap:6px; }.share-panel button { min-height:32px; padding:0 10px; border:1px solid var(--line); border-radius:8px; color:var(--ink); background:transparent; font-size:9px; font-weight:800; white-space:nowrap; }.share-panel button:first-child { color:white; background:var(--forest); border-color:var(--forest); }.share-panel small { display:block; margin-top:8px; color:var(--muted); font-size:8px; }
.rescue-summary { display:flex; justify-content:space-between; align-items:center; margin:22px 0; padding:14px 16px; border-block:1px solid var(--line); }.rescue-summary span { color:var(--muted); font-size:10px; }.rescue-summary strong { font-size:15px; }

@media (max-width: 1050px) {
  .hero { grid-template-columns: .8fr 1.2fr; gap: 28px; }
  .hero-art, .hero-art > img { min-height: 480px; }
  .level-grid { grid-template-columns: repeat(2, 1fr); }
  .world-heading { grid-template-columns: 1fr; }
  .continue-card { max-width: 360px; }
}

@media (max-width: 760px) {
  .review-rail { left: 8px; right: 8px; bottom: 7px; transform: none; overflow-x: auto; justify-content: flex-start; }
  .review-rail strong { display: none; }
  .site-nav { height: 60px; grid-template-columns: 1fr auto; padding: 0 16px; }
  .nav-links, .language-button { display: none; }
  .nav-play { padding: 9px 13px; font-size: 11px; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding: 46px 16px 80px; }
  .hero-copy { padding: 0 6px; }
  .chapter-label { margin-bottom: 14px; }
  .hero h1 { font-size: clamp(43px, 13vw, 62px); }
  .hero p { margin: 20px 0 24px; font-size: 14px; }
  .hero-art, .hero-art > img { min-height: 390px; }
  .hero-art { order: -1; border-radius: 20px; transform: none; }
  .platform-note { flex-wrap: wrap; }
  .mode-preview { padding: 70px 16px 110px; }
  .mode-panel { grid-template-columns: 34px 1fr; padding: 25px 4px; }
  .mode-panel img { grid-column: 1 / -1; height: 190px; }
  .lobby-header { height: 64px; grid-template-columns: 1fr auto; padding: 0 16px; }
  .welcome { display: none; }
  .lobby-shell { min-height: calc(100dvh - 64px); grid-template-columns: 1fr; }
  .mode-switcher { padding: 10px 12px; display: flex; gap: 6px; }
  .mode-switcher > p, .local-progress { display: none; }
  .mode-button { justify-content: center; padding: 9px 12px; }
  .mode-button small, .mode-symbol { display: none; }
  .world-content { padding: 28px 16px 100px; }
  .world-heading h1 { font-size: 38px; }
  .continue-card { width: 100%; }
  .difficulty-tabs { margin-top: 28px; }
  .level-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .level-copy { padding: 10px; }
  .level-copy h3 { font-size: 11px; }
  .game-view { min-height: 650px; }
  .game-header { height: 62px; grid-template-columns: 36px 1fr auto 36px; gap: 9px; padding: 0 10px; }
  .round-control { width: 34px; height: 34px; }
  .game-progress { position: absolute; left: 0; right: 0; bottom: -4px; display: block; }
  .game-progress > span { display: block; border-radius: 0; height: 4px; }
  .game-progress strong { display: none; }
  .mistake-count span { display: none; }
  .hidden-stage { inset: 62px 0 150px; }
  .target-dock { top: auto; left: 0; right: 0; bottom: 0; width: 100%; height: 150px; padding: 10px 10px 48px; }
  .dock-label { display: none; }
  .target-list { display: flex; gap: 6px; overflow-x: auto; padding: 0; }
  .target-item { flex: 0 0 150px; grid-template-columns: 44px 1fr; padding: 6px; border: 1px solid var(--line); border-radius: 11px; }
  .target-thumb { width: 44px; height: 39px; }
  .target-item > i { display: none; }
  .hint-button { left: auto; right: 10px; bottom: 7px; width: auto; padding: 6px 9px; }
  .hint-button .hint-symbol { width: 27px; height: 27px; }
  .hint-button span:last-child small { display: none; }
  .game-toast { left: 50%; bottom: 160px; }
  .game-toast.show { bottom: 160px; }
  .difference-header { grid-template-columns: 36px 1fr auto 36px; }
  .difference-status { grid-template-columns:auto auto; gap:8px; }
  .difference-pips { position: absolute; left: 0; right: 0; bottom: -4px; gap: 2px; }
  .difference-pips i { flex: 1; border-radius: 0; height: 4px; }
  .difference-pips strong { display: none; }
  .difference-stage { inset: 62px 0 84px; grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; gap: 4px; padding: 4px; }
  .difference-stage figure { border-radius: 9px; }
  .difference-footer { height: 84px; grid-template-columns: auto 1fr; padding: 0 10px 18px; }
  .difference-footer > div:first-child { display: none; }
  .inline-tools { justify-self: start; }
  .assist-actions { grid-template-columns:1fr 1fr; }
  .hint-button.compact { width: auto; }
  .rescue-button small,.hint-button.compact small { display:none; }
  .game-modal { padding: 34px 24px; }
  .complete-modal { max-height:calc(100dvh - 30px); overflow:auto; }
  .share-panel>div { overflow-x:auto; }
}

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