/* Story selection stage. All rules are outside or scoped away from gameplay. */
body:not(.playing){background:#ede8dc;color:#302d25;font-family:system-ui,-apple-system,'Malgun Gothic',sans-serif}
body:not(.playing)>header.lobby-masthead{max-width:1440px;border:0;padding:24px 44px 22px;gap:20px;align-items:center}
.g-n-logo{display:flex;align-items:center;gap:13px}.g-n-logo>b{font-size:30px}.g-n-logo b{font-family:Georgia,'Batang',serif;font-size:32px;letter-spacing:-2px;font-weight:800;line-height:1.15}.g-n-logo small{display:block;font-size:10px;letter-spacing:2px;margin-top:6px;color:#716952}.brand-seal{display:grid;place-content:center;background:#a5452a;color:#f9e9ca;border:3px double #e4ac7e;transform:rotate(-5deg);font:700 16px/1.05 serif;width:35px;height:43px}.masthead-tools{display:flex;align-items:center;gap:26px;font-size:12px}.masthead-tools>a{padding:12px 0}.masthead-tools #sound{font-size:11px;border:1px solid #bdb6a6;border-radius:0;padding:10px 14px;background:transparent}
#lobby.story-lobby{max-width:1440px;padding:0 32px 0;word-break:keep-all;overflow-wrap:anywhere}
.story-selector{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;border-top:0;margin:0 12px}
.story-tab{position:relative;display:flex;align-items:center;gap:12px;min-height:92px;padding:6px 22px;background:none;border:0;border-bottom:3px solid transparent;text-align:left;color:#8b8372;transition:color .18s,background .18s}
.story-tab[aria-selected=true]{color:#3e392c;border-bottom-color:#a5452a;background:transparent}.story-tab small{display:block;font:italic 13px Georgia,serif;margin-bottom:3px}.story-tab b{font-size:16px;font-weight:650;letter-spacing:-.4px}.tab-face{flex:none;width:70px;height:70px;background:url('/assets/characters-v7b.webp') no-repeat;background-size:300% 300%;filter:grayscale(.5);opacity:.6}.story-tab[aria-selected=true] .tab-face{filter:none;opacity:1}.face-sunduk{background-position:0 0}.face-elder{background-position:0 50%}.face-woman{background-position:100% 100%}
.story-theater{position:relative;margin-top:0;background:#262c20}
.story-stage{position:relative;isolation:isolate;min-height:600px;overflow:hidden;color:#fff1d2;--accent:#f2c26d;--ink:#3b2b19;padding:52px 6% 36px;animation:scene-in .25s ease-out}
.story-landscape{position:absolute;inset:0;z-index:-3;width:100%;height:100%;object-fit:cover;object-position:center}
.stage-shade{position:absolute;inset:0;z-index:-2;background:linear-gradient(90deg,#251f13ee 0%,#251f139e 34%,#251f1300 72%),linear-gradient(0deg,#20201088,transparent 45%)}
.story-copy{position:relative;z-index:1;pointer-events:none;max-width:580px}.story-chapter{display:flex;align-items:center;gap:12px;font-size:12px;letter-spacing:1px;color:#ead7af;margin:0 0 22px}.story-chapter i{width:28px;height:1px;background:currentColor;opacity:.5}.story-copy h1{font-family:'Batang','Noto Serif KR',Georgia,serif;font-size:clamp(48px,5.5vw,78px);line-height:1.1;letter-spacing:-3.5px;font-weight:700;margin:0;text-shadow:0 2px 20px #1a190840}.story-line{font-size:17px;margin:22px 0 0;color:#ffedc6;line-height:1.6}
.story-figure{position:absolute;width:600px;height:600px;right:2%;bottom:0;background-image:url('/assets/characters-v7b.webp');background-size:300% 300%;background-repeat:no-repeat;z-index:-1;filter:drop-shadow(5px 20px 20px #08130965);pointer-events:none}
.figure-sunduk{background-position:50% 0;bottom:6%;right:-2%;transform:rotate(-7deg)}.figure-elder{background-position:50% 50%;right:4%;bottom:-4%}.figure-woman{background-position:100% 100%;width:540px;height:540px;right:6%;bottom:0}
.story-play{position:relative;z-index:2;width:400px;max-width:100%;margin-top:38px}.play-genre{font-size:10px;letter-spacing:1.5px;color:#e3cca4}.story-play>p{font-size:13px;line-height:1.6;margin:7px 0 15px;color:#e7dfc9}.stage-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.enter-story{display:flex;align-items:center;justify-content:center;gap:0;min-width:225px;padding:16px 22px;min-height:54px;border:1px solid #ffe7b480;background:var(--accent);color:var(--ink);font-size:16px;font-weight:750;box-shadow:3px 3px 0 #0004;transition:background .18s,transform .18s}.enter-story:hover{background:#ffe3a2;transform:translateY(-2px)}.enter-story span{font-size:23px;font-weight:400}.watch-story{background:transparent;border:0;border-bottom:1px solid #fff6;padding:10px 0;color:inherit;font-size:12px}.watch-story span{font-size:18px;margin-right:5px}.stage-guide{font-size:11px;line-height:1.6;margin-top:8px}.stage-guide summary{cursor:pointer;width:fit-content;min-height:36px;display:flex;align-items:center;gap:7px;color:#ded5bd;list-style:none}.stage-guide summary:after{content:'+';font-size:15px}.stage-guide[open] summary:after{content:'−'}.stage-guide summary::-webkit-details-marker{display:none}.stage-guide p{font-size:12px;line-height:1.7;padding:12px 14px;background:#101710db;border-left:2px solid var(--accent);margin:0 0 10px;max-width:380px}.side-game{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #f9e5bd35;margin-top:8px;padding-top:10px;gap:15px;flex-wrap:wrap}.side-game>a{font-size:12px;padding:8px 0}.side-game>a span{margin-left:18px}.side-game .stage-guide{margin:0}.side-game .stage-guide[open]{width:100%}.scene-number{position:absolute;right:30px;bottom:20px;font:italic 110px/.8 Georgia,serif;color:#fff3;pointer-events:none}
.stage-rhythm{--accent:#d3c9f0;--ink:#262038;color:#fff5df}.stage-rhythm .stage-shade{background:linear-gradient(90deg,#0b1429f5 0%,#0b1429b0 37%,#0b142900 80%),linear-gradient(0deg,#0b142977,transparent 50%)}.stage-rhythm .story-chapter,.stage-rhythm .play-genre{color:#c1bad6}.stage-rhythm .story-line{color:#e3d9ff}.stage-rhythm .story-figure{filter:drop-shadow(6px 12px 28px #21234c)}
.stage-weather{--accent:#dde9b8;--ink:#233b28}.stage-weather .stage-shade{background:linear-gradient(90deg,#142f24eb 0%,#1834239c 38%,#20402300 77%),linear-gradient(0deg,#20331970,transparent 60%)}.stage-weather .story-line{color:#e7f0c9}.stage-weather .story-chapter,.stage-weather .play-genre{color:#d0dfb6}
.gildong-entry{position:relative;isolation:isolate;overflow:hidden;margin:28px 12px 0;min-height:245px;background:#222829;color:#eee3c9;display:flex;align-items:center;padding:34px 5%}.gildong-art{position:absolute;inset:0 0 0 38%;z-index:-1}.gildong-art img{width:100%;height:100%;object-fit:cover;object-position:center 45%;opacity:.9}.gildong-art:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#222829 0%,#22282930 65%,#22282900)}.gildong-copy>span{font-size:10px;letter-spacing:2px;color:#ccb486}.gildong-copy h2{font-family:Georgia,'Batang',serif;font-size:35px;letter-spacing:-1px;margin:9px 0}.gildong-copy>p{font-size:12px;color:#c1c7be}.gildong-copy>a{display:inline-block;color:#f0d294;font-size:14px;border-bottom:1px solid #bc9d6744;padding:9px 0}.gildong-copy>a>span{margin-left:24px}.gildong-entry .stage-guide{max-width:350px}.lobby-fineprint{text-align:center;font-size:11px;color:#847963;margin:24px 0}
body:not(.playing)>.site-footer{max-width:1352px;margin:0 auto;padding:22px 12px 32px;border-top:1px solid #c9c1af;letter-spacing:0;display:flex;align-items:center;gap:18px 28px;flex-wrap:wrap;color:#766d5c;font-size:11px}.content-footer nav{display:flex;flex-wrap:wrap;gap:8px 18px}.content-footer nav a{padding:10px 0}.footer-email{margin-left:auto}.content-footer small{font-size:10px}
.story-film{width:min(840px,94vw);padding:24px;background:#efe8d9;color:#342e24;border:1px solid #bdab8b}.story-film::backdrop{background:#101612cc}.story-film h2{font-size:20px;padding-right:65px}.story-film iframe{width:100%;aspect-ratio:16/9;border:0}.story-film>a{display:block;padding:15px 0;font-size:12px}.film-close{position:absolute;right:14px;top:12px;border:0;background:none}.film-start{display:block;width:100%;min-height:180px;background:#273627;color:#fff;border:0}.story-film p{font-size:12px}.story-lobby :focus-visible,.lobby-masthead :focus-visible{outline:3px solid #d97442;outline-offset:4px}
@keyframes scene-in{from{opacity:.65}to{opacity:1}}
@media(min-width:1440px){.story-stage{min-height:650px}.story-figure{width:670px;height:670px}.figure-woman{width:590px;height:590px}}
@media(max-width:950px){.story-stage{padding:36px 5%;min-height:585px}.story-figure{width:530px;height:530px;right:-10%;bottom:5%}.figure-woman{width:475px;height:475px;right:-4%}.figure-elder{right:-5%}.story-copy h1{font-size:60px}.story-play{width:340px}.story-tab{padding:8px 12px;gap:6px}.tab-face{width:55px;height:55px}.story-tab b{font-size:14px}.masthead-tools{gap:15px}body:not(.playing)>.site-footer{margin:0 44px}}
@media(max-width:620px){body:not(.playing)>header.lobby-masthead{padding:17px 20px 15px;gap:10px}.g-n-logo{gap:9px}.g-n-logo b{font-size:26px}.g-n-logo small{font-size:8px;letter-spacing:1px;margin-top:4px}.brand-seal{width:28px;height:36px;font-size:13px}.masthead-tools>a{display:none}.masthead-tools #sound{font-size:10px;padding:8px 10px;min-height:38px}#lobby.story-lobby{padding:0}.story-selector{margin:0 16px}.story-tab{min-height:74px;padding:8px 4px;gap:4px;justify-content:center}.story-tab small{font-size:10px;margin-bottom:4px}.story-tab b{font-size:11px;white-space:nowrap;letter-spacing:-.5px}.tab-face{width:38px;height:42px}.story-stage{min-height:590px;padding:27px 24px 22px}.story-copy h1{font-size:48px;line-height:1.12;letter-spacing:-2.5px}.story-chapter{font-size:9px;gap:8px;letter-spacing:.5px;margin-bottom:15px}.story-chapter i{width:20px}.story-line{font-size:12px;margin-top:13px}.story-figure{width:350px;height:350px;top:98px;bottom:auto;right:-58px}.figure-sunduk{top:70px;right:-12px;transform:rotate(-7deg)}.figure-elder{top:108px;right:-15px;width:310px;height:310px}.figure-woman{top:109px;right:-25px;width:305px;height:305px}.stage-shade{background:linear-gradient(90deg,#251f1399,transparent),linear-gradient(0deg,#251f13 0%,#251f13d9 24%,#251f1300 60%)}.stage-rhythm .stage-shade{background:linear-gradient(90deg,#0b142960,transparent),linear-gradient(0deg,#0b1429 0%,#0b1429d9 27%,#0b142900 65%)}.stage-weather .stage-shade{background:linear-gradient(90deg,#142f2477,transparent),linear-gradient(0deg,#142f24 0%,#142f24e0 27%,#142f2400 65%)}.story-landscape{object-position:65% center}.story-play{width:100%;margin-top:195px}.story-play>p{font-size:12px;margin:6px 0 13px}.play-genre{font-size:9px}.enter-story{min-width:0;flex:1;font-size:15px;padding:13px 18px;min-height:52px}.stage-actions{gap:12px}.watch-story{font-size:11px}.stage-guide{font-size:11px}.stage-guide summary{min-height:32px}.side-game{padding-top:5px;margin-top:1px}.side-game>a{font-size:11px}.scene-number{font-size:70px;right:16px;top:30px;bottom:auto;opacity:.6}.gildong-entry{margin:18px 16px 0;min-height:230px;padding:25px 22px}.gildong-art{inset:0 0 0 20%}.gildong-art img{opacity:.7}.gildong-art:after{background:linear-gradient(90deg,#222829f2,#22282955)}.gildong-copy h2{font-size:30px}.gildong-copy>p{font-size:11px}.gildong-copy>a{font-size:12px}.lobby-fineprint{font-size:10px;padding:0 24px;line-height:1.7}body:not(.playing)>.site-footer{margin:0 20px;padding:18px 0 26px;display:block;font-size:10px}.content-footer nav{gap:4px 16px;margin-top:10px}.footer-email{display:block;margin:8px 0}.content-footer small{display:block;font-size:9px}}
@media(max-width:350px){.tab-face{display:none}.story-tab b{font-size:11px}.story-stage{padding:24px 20px;min-height:570px}.story-copy h1{font-size:43px}.story-figure{right:-35px;width:325px;height:325px;top:92px}.figure-elder{right:-20px;width:290px;height:290px;top:103px}.figure-woman{right:-35px;width:290px;height:290px;top:103px}.story-play{margin-top:187px}.story-chapter{font-size:9px}.story-line{font-size:11px}}
@media(prefers-reduced-motion:reduce){.story-stage{animation:none}.story-tab,.enter-story{transition:none}}

/* The main image is the game menu: native horizontal swipe, no autoplay. */
.game-carousel{margin:0 12px}.carousel-heading{display:flex;align-items:center;justify-content:space-between;padding:0 0 12px;color:#655b48;font-size:13px}.carousel-heading small{font-size:11px;color:#8a806c}
.game-carousel .story-theater{display:flex;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain;touch-action:pan-x pan-y;scroll-behavior:auto}.game-carousel .story-theater::-webkit-scrollbar{display:none}
.game-carousel .story-stage{flex:0 0 100%;min-width:0;box-sizing:border-box;scroll-snap-align:start;scroll-snap-stop:always;animation:none;display:flex;flex-direction:column;justify-content:space-between;min-height:570px}.game-carousel .story-play{margin-top:180px}.game-carousel .story-copy h1{font-size:clamp(44px,5vw,72px)}
.carousel-controls{display:flex;align-items:center;justify-content:center;gap:26px;padding:14px 0 4px}.slide-caption{display:flex;align-items:center;justify-content:center;gap:14px;min-width:200px}.slide-caption strong{font-size:14px;color:#433a2c}.slide-caption>span{font-size:11px;color:#87785d;font-variant-numeric:tabular-nums}
.slide-dots{display:flex;justify-content:center;gap:0}.slide-dot{display:grid;place-items:center;width:32px;height:36px;padding:0;background:none;border:0;cursor:pointer}.slide-dot>span{width:6px;height:6px;border-radius:6px;background:#c6baa4;transition:width .2s}.slide-dot[aria-selected=true]>span{width:22px;background:#a5452a}
.stage-duel{--accent:#edc18c}.stage-duel .story-landscape{object-position:65% 50%}.stage-goblin{--accent:#b8d8d0;--ink:#163c34}.stage-goblin .stage-shade{background:linear-gradient(90deg,#102a2bf2,#102a2b55 70%)}.stage-goblin .figure-elder{background-image:url('/assets/goblin-fighters-v2.webp');background-size:400% 200%;background-position:0 0;clip-path:inset(0 0 10% 0)}
.stage-honggildong{--accent:#d8c39a;--ink:#262c25;background:#162026}.stage-honggildong .story-landscape{left:auto;right:0;width:65%;object-position:center 46%}.stage-honggildong .stage-shade{background:linear-gradient(90deg,#162026 12%,#162026a0 45%,#16202600 85%)}
@media(max-width:620px){.game-carousel{margin:0}.carousel-heading{padding:0 20px 12px}.game-carousel .story-stage{min-height:550px;padding:26px 24px 18px}.game-carousel .story-play{margin-top:205px}.game-carousel .story-copy h1{font-size:44px}.game-carousel .story-line{font-size:12px}.carousel-controls{padding-top:10px;gap:16px}.slide-caption{min-width:180px}.slide-caption strong{font-size:13px}.stage-duel .stage-shade{background:linear-gradient(180deg,#332418a0,transparent 40%,#332418 85%)}.stage-goblin .stage-shade{background:linear-gradient(180deg,#102a2b77,transparent 40%,#102a2b 85%)}.stage-honggildong .story-landscape{width:100%;object-position:center 43%}.stage-honggildong .stage-shade{background:linear-gradient(180deg,#162026dd,transparent 44%,#162026 87%)}.stage-honggildong .story-copy{text-shadow:0 2px 8px #000}.game-carousel .story-stage:has(.stage-guide[open]){min-height:640px}}
@media(max-width:350px){.game-carousel .story-stage{padding:24px 20px 16px;min-height:520px}.game-carousel .story-copy h1{font-size:38px}.game-carousel .story-play{margin-top:190px}.slide-caption{min-width:170px}.carousel-controls{gap:10px}}
@media(prefers-reduced-motion:reduce){.slide-dot>span{transition:none}}

/* Character tabs restored above the image; independently swipeable. */
.story-selector.story-strip{display:flex;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;scrollbar-width:none;margin:0;border-top:0;border-bottom:1px solid #c9c1af;overscroll-behavior-x:contain;touch-action:pan-x pan-y}
.story-strip::-webkit-scrollbar{display:none}.story-strip .story-tab{flex:0 0 230px;min-width:0;min-height:92px;scroll-snap-align:start;padding:8px 16px;gap:10px;border-radius:0}.story-strip .tab-word{min-width:0}.story-strip .story-tab small{font:11px/1.4 system-ui,sans-serif;color:#8b806c;letter-spacing:0}.story-strip .story-tab b{white-space:nowrap;font-size:15px}.story-strip .tab-face{display:block;width:62px;height:62px}.story-strip .face-flight{background-position:0 0}.story-strip .face-rhythm{background-position:0 50%}.story-strip .face-weather{background-position:100% 100%}.story-strip .face-duel{background-position:0 0}.story-strip .face-goblin{background-image:url('/assets/goblin-fighters-v2.webp');background-size:400% 200%;background-position:0 0;clip-path:inset(0 0 10% 0)}.story-strip .face-honggildong{background-image:url('/assets/honggildong-release30.png');background-size:160% auto;background-position:38% 52%;border-radius:50%;width:54px;height:54px}.story-strip .story-tab[aria-selected=true]{background:transparent}
/* Keep keyboard focus inside the strip: an outer outline is clipped to side rails. */
.story-lobby .story-strip .story-tab:focus-visible{outline:none;border-bottom-color:#72321e;box-shadow:inset 0 -2px 0 #72321e}
.slide-marker{display:block;width:6px;height:6px;border-radius:6px;background:#c6baa4;margin:15px 12px}.slide-marker.is-active{width:22px;background:#a5452a;margin-left:4px;margin-right:4px}
@media(max-width:620px){.story-selector.story-strip{margin:0 16px}.story-strip .story-tab{flex-basis:168px;min-height:76px;justify-content:flex-start;padding:8px 10px;gap:7px}.story-strip .tab-face{width:44px;height:48px}.story-strip .face-honggildong{width:42px;height:42px}.story-strip .story-tab small{font-size:9px;margin-bottom:4px}.story-strip .story-tab b{font-size:12px;letter-spacing:-.4px}.carousel-heading{padding-bottom:8px}}
