/* 게임 안내는 기존 공원 색을 유지하고, 조작 예시와 규칙을 나란히 둔다. */
.game-jumps{display:flex;flex-wrap:wrap;gap:8px;margin:24px 0}
.game-jumps a{color:var(--coral-deep);background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:9px 15px;text-decoration:none;font-weight:650}
.game-guide{scroll-margin-top:140px;padding:32px 0;border-top:1px solid var(--line);margin-top:24px}
.game-guide h3{font:700 clamp(25px,4vw,34px)/1.2 Georgia,serif;margin:0 0 10px;color:var(--coral-deep)}
.game-guide .game-intro{font-size:17px;max-width:68ch;margin:0 0 20px;line-height:1.6}
.guide-columns{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}
.guide-visual{position:sticky;top:136px;min-width:0}
.guide-visual figure{margin:0 0 18px}
.guide-visual .image-zoom{display:block;overflow:hidden;border-radius:16px;border:1px solid var(--line)}
.guide-visual img{display:block;width:100%;height:auto}
.guide-visual figcaption{font-size:13px;color:var(--ink-dim);margin-top:7px}
.guide-rules{min-width:0}.guide-rules h4{font-size:18px;margin:0 0 12px}
.guide-rules ol{padding-left:24px;margin:0 0 22px}.guide-rules li{padding:0 0 9px 4px;line-height:1.65}
.guide-rules details{border-top:1px solid var(--line);padding:13px 0}
.guide-rules summary{cursor:pointer;font-weight:750;font-size:17px;padding:3px 0;color:var(--coral-deep)}
.guide-rules details>div{padding-top:14px}.guide-rules p{line-height:1.65;margin:0 0 12px}
.guide-table{border-collapse:collapse;width:100%;font-size:14px;line-height:1.55;margin:4px 0 16px}
.guide-table th{text-align:left;color:var(--coral-deep);background:var(--bg-1)}
.guide-table th,.guide-table td{padding:10px 8px;border-bottom:1px solid var(--line);vertical-align:top}
.guide-table td:first-child{font-variant-numeric:tabular-nums;width:28px;color:var(--ink-mute)}
.guide-table th:first-child,.guide-table td:first-child{white-space:nowrap;min-width:2.2em;word-break:normal}
.guide-table td,.guide-table th{word-break:normal;overflow-wrap:break-word}
.guide-table th:nth-child(2),.guide-table td:nth-child(2){width:30%}
.guide-note{padding:13px 15px;border-left:3px solid var(--gold);background:var(--gold-soft);border-radius:0 8px 8px 0;font-size:14px;line-height:1.6;margin:14px 0}
.guide-demo{background:#e5efec;border:1px solid #b9d0c9;border-radius:16px;padding:14px;overflow:hidden}
.guide-demo svg{display:block;width:100%;height:auto;max-height:280px;overflow:visible}
.guide-demo svg text{font-family:system-ui,sans-serif;font-weight:750;fill:#173e49;text-anchor:middle;dominant-baseline:middle}
.guide-demo svg .demo-piece{transition:transform .55s cubic-bezier(.25,.1,.25,1)}
.guide-demo svg .demo-wire{transition:stroke-dashoffset .6s ease}
.guide-demo svg .demo-liquid{transition:height .5s ease,y .5s ease,opacity .45s ease}
.guide-demo svg .demo-digit{transition:opacity .25s ease}
.guide-demo .demo-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:12px}
.guide-demo button{min-height:40px;border:1px solid #95b6b0;border-radius:10px;padding:8px 13px;color:#173e49;background:#f9fcf9;font:650 14px system-ui;cursor:pointer}
.guide-demo button[data-action="play"]{background:#21565c;color:#fff;border-color:#21565c}
.guide-demo button:disabled{opacity:.45;cursor:default}
.demo-count{margin-left:auto;font-size:12px;color:#44606a;font-variant-numeric:tabular-nums}
.demo-caption{min-height:3.2em;margin:12px 0 0!important;font-size:14px;line-height:1.55!important;color:#214b54}
.demo-label{font-size:12px;color:#44606a;margin:0 0 10px!important}
.guide-demo .demo-card{transform-box:fill-box;transform-origin:center;transition:fill .35s ease,opacity .3s ease}
.guide-demo[data-playing="true"] .demo-card.active{animation:guide-flip .45s ease}
.guide-demo[data-playing="true"] .demo-stream{animation:guide-flow .65s linear 2}
@keyframes guide-flow{to{stroke-dashoffset:-28}}
/* 모양을 식별해야 하는 것만 실제 그림으로 보인다. 숫자·가격·제한은 텍스트로 읽는다. */
.guide-els{display:flex;align-items:center;margin:0 0 6px;line-height:0}
.guide-el{display:block;width:46px;height:46px;object-fit:contain;border-radius:7px;border:1px solid var(--line);background:#fff}
.guide-el.wide{width:84px;height:46px}
.number-key{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:15px 0 22px;text-align:center}
.number-key>div>span{display:block;font-size:12px;line-height:1.4;margin-top:7px;color:var(--ink-dim)}
.pair-legend{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 7px;margin:2px 0 12px;text-align:center}
.pair-legend>div{display:grid;justify-items:center;gap:4px;font-size:12px;color:var(--ink-dim)}
.pair-legend .guide-symbol{width:37px;height:37px;margin:0;font-size:22px}
.legend-caption{font-size:14px;line-height:1.6}
.door-symbol{display:block;width:43px;height:43px;margin:0 0 5px}
.helper-list{padding-left:23px;margin:0}
.helper-list>li{border-bottom:1px solid var(--line);padding:14px 0 14px 3px}
.helper-list>li:last-child{border-bottom:0;padding-bottom:0}
.helper-entry{display:flex;align-items:flex-start;gap:12px}
.helper-copy{flex:1;min-width:0}
.helper-head{display:flex;align-items:baseline;justify-content:space-between;gap:7px;flex-wrap:wrap;margin-bottom:5px;font-size:15px}
.helper-price{font-size:14px;font-weight:700;color:var(--gold-d);white-space:nowrap}
.helper-copy p{font-size:14px;line-height:1.6;margin:0}
.helper-copy p.helper-when{font-size:13px;color:var(--ink-dim);margin-top:6px}
/* 티켓에서 행동 그림만 보여 준다. 오른쪽 보석 숫자를 중복 이미지로 읽게 하지 않는다. */
.helper-action{display:block;flex:0 0 43px;width:43px;height:37px;overflow:hidden;border-radius:6px}
.helper-action img{display:block;width:92px;max-width:none;height:37px;object-fit:contain;object-position:left center}
.guide-symbol{display:inline-grid;place-items:center;min-width:26px;height:26px;border-radius:50%;background:var(--symbol-color,#4389c3);color:white;text-shadow:0 1px 1px #153743;margin-right:5px;box-shadow:inset 0 0 0 2px #ffffffaa;font-size:15px}
@keyframes guide-flip{0%{transform:scaleX(.12)}100%{transform:scaleX(1)}}
.guide-demo [data-finished]{opacity:0;transition:opacity .25s}.guide-demo.is-finished [data-finished]{opacity:1}
.guide-rules a,.guide-back{color:#21565c;text-underline-offset:3px}
.guide-back{display:inline-block;margin-top:20px;font-size:14px}
.guide-demo button:focus-visible,.guide-rules summary:focus-visible,.game-jumps a:focus-visible{outline:3px solid #a56b11;outline-offset:3px}
.manual-overview{padding:22px;border:1px solid var(--line);background:var(--surface);border-radius:16px;margin:24px 0}
.manual-overview h3{margin:0 0 12px}.manual-overview p{line-height:1.65;max-width:76ch}
@media(max-width:720px){.guide-columns{grid-template-columns:1fr;gap:20px}.guide-visual{position:static}.guide-demo svg{max-height:245px}.guide-visual figure{max-width:580px}.game-guide{scroll-margin-top:150px;padding:25px 0}.guide-table{font-size:13px}.guide-table th,.guide-table td{padding:9px 6px}}
/* 가로로 든 휴대폰에서는 큰 시연을 고정하지 않아 아래 조작도 스크롤로 닿게 한다. */
@media(max-height:760px){.guide-visual{position:static}}
@media(prefers-reduced-motion:reduce){.guide-demo *{animation:none!important;transition:none!important}}

/* 원본 이미지의 비율과 색상을 유지한다. 가격·설명은 별도의 읽을 수 있는 글자다. */
.demo-screen{display:block;width:100%;height:auto;max-height:360px;object-fit:contain;border-radius:9px;background:#eef1e7}
.number-key img{display:block;width:62px;height:62px;object-fit:contain;margin:auto}
.pair-legend img{display:block;width:48px;height:48px;object-fit:contain}
.helper-action.original-icon{display:grid;place-items:center;background:transparent}
.helper-action.original-icon img{width:43px;height:37px;max-width:100%;object-fit:contain}
