/* ============ 게임별 스타일 ============ */
.toast { pointer-events: none; }
.glow { animation: glowPulse .8s ease-in-out infinite !important; border-radius: 22px; }
.pop { animation: popIn .4s cubic-bezier(.2,1.6,.4,1); }
.fly { position: absolute; width: 90px; height: 90px; z-index: 60; pointer-events: none; }

/* ① 첫소리 풍선 */
.g1-card { position: absolute; left: 36px; top: 210px; width: 300px; padding: 16px 16px 20px; text-align: center; background: linear-gradient(#fffaf0, #f3e0b8); border: 6px solid #a9743f; border-radius: 30px; box-shadow: 0 8px 0 #6d4420, 0 14px 24px rgba(0,0,0,.3); z-index: 3; }
.g1-card .tag { position: absolute; left: 50%; top: -20px; transform: translateX(-50%); background: var(--pink); color: #fff; padding: 2px 18px; border-radius: 14px; font-size: 22px; }
.g1-card .em { font-size: 150px; line-height: 1.15; display: flex; justify-content: center; gap: 6px; }
.g1-card .wd { font-size: 60px; }
.g1-card .wd b { color: var(--red); font-weight: normal; }
.g1-card .wd .hide { letter-spacing: 6px; color: #b9a07a; }
.g1-card .trio { font-size: 70px; display: flex; flex-direction: column; align-items: center; opacity: .55; }
.g1-card .trio small { font-size: 22px; }
.g1-card .trio.done { opacity: 1; filter: drop-shadow(0 0 10px gold); }
.g1-card:has(.trio) { width: 330px; }
.g1-sky { position: absolute; inset: 0; z-index: 2; }
.balloon { position: absolute; left: 0; top: 0; width: 150px; height: 178px; padding: 0; background: transparent; z-index: 2; }
.balloon::before { content: ''; position: absolute; inset: 0 0 28px 0; border-radius: 50% 50% 46% 46% / 55% 55% 45% 45%; background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.95) 0 8%, transparent 22%), radial-gradient(circle at 50% 55%, var(--c), color-mix(in srgb, var(--c) 70%, #000)); box-shadow: inset -10px -14px 20px rgba(0,0,0,.18), 0 10px 16px rgba(0,0,0,.2); }
.balloon i { position: absolute; left: 50%; bottom: 0; width: 2px; height: 34px; background: rgba(255,255,255,.85); }
.balloon i::before { content: ''; position: absolute; left: -9px; top: -6px; border: 10px solid transparent; border-bottom: 10px solid var(--c); border-top: 0; }
.balloon span { position: relative; display: block; padding-top: 30px; font-size: 86px; color: #fff; text-shadow: 0 4px 0 rgba(0,0,0,.25), 0 0 2px rgba(0,0,0,.3); }
.balloon:hover::before { filter: brightness(1.08); }
.balloon.bounce { animation: jelly .5s; }
.balloon.popped { animation: popOut .35s forwards; pointer-events: none; }
.balloon.gold { --c: #ffc928; }
.balloon.gold::after { content: ''; position: absolute; inset: -20px; border-radius: 50%; background: radial-gradient(circle, rgba(255,230,120,.6), transparent 65%); animation: pulse .8s infinite; z-index: -1; }
.g1-path { position: absolute; left: 350px; top: 780px; width: 1060px; height: 60px; z-index: 1; }
.g1-step { position: absolute; top: 10px; width: 92px; height: 44px; border-radius: 30px; background: radial-gradient(circle at 30% 30%, #fff, #e6f2ff); box-shadow: 0 6px 0 #b9d4f0, 0 0 20px rgba(255,255,255,.9); animation: popIn .4s cubic-bezier(.2,1.6,.4,1); }
.g1-hero { position: absolute; left: 6px; top: -62px; width: 84px; height: 84px; border-radius: 50%; border: 5px solid #fff; overflow: hidden; box-shadow: 0 6px 10px rgba(0,0,0,.3); transition: left .5s cubic-bezier(.3,1.6,.5,1); animation: hop .8s ease-in-out infinite; z-index: 3; }
.g1-hero img { width: 100%; height: 100%; object-fit: cover; }
@keyframes popOut { to { transform: scale(1.6); opacity: 0; } }

/* ② 글자 요리사 */
.g2 .toast { bottom: auto; top: 520px; }
.g2-order { position: absolute; left: 30px; top: 190px; width: 300px; padding: 14px; text-align: center; background: #fffaf0; border: 6px solid #a9743f; border-radius: 26px; box-shadow: 0 8px 0 #6d4420; }
.g2-order .h { display: inline-block; background: #7a4520; color: #fff; border-radius: 14px; padding: 2px 16px; font-size: 24px; }
.g2-order .em { font-size: 120px; line-height: 1.2; }
.g2-order .wd { font-size: 56px; }
.g2-order .wd span { display: inline-block; padding: 0 4px; border-bottom: 6px solid transparent; color: #8a7a68; }
.g2-order .wd span.on { color: var(--red); border-color: var(--red); animation: pulse 1s infinite; }
.g2-order.vip { border-color: #ffc107; box-shadow: 0 8px 0 #b27b00, 0 0 30px 8px rgba(255,200,0,.8); }
.g2-order.vip::after { content: 'VIP'; position: absolute; right: -14px; top: -14px; background: #ffc107; color: #7a4520; border-radius: 12px; padding: 2px 10px; font-size: 22px; }
.g2-pot { position: absolute; left: 470px; top: 150px; width: 640px; height: 450px; }
.g2-pot .steps { text-align: center; font-size: 26px; color: #fff; text-shadow: 0 2px 3px rgba(0,0,0,.6); }
.g2-pot .steps span { display: inline-block; padding: 2px 14px; margin: 0 4px; border-radius: 14px; background: rgba(0,0,0,.25); }
.g2-pot .steps span.on { background: var(--orange); animation: pulse 1s infinite; }
.g2-pot .disp { position: absolute; left: 0; right: 0; top: 50px; text-align: center; height: 190px; z-index: 2; }
.g2-pot .disp b { display: inline-block; min-width: 200px; padding: 0 20px; font-size: 150px; font-weight: normal; line-height: 1.2; color: var(--ink); background: linear-gradient(#fffaf0, #ffe9b8); border-radius: 30px; box-shadow: 0 8px 0 #d6a84b, 0 0 30px rgba(255,220,120,.9); animation: jelly .45s; }
.g2-pot .disp i { font-size: 110px; font-style: normal; color: rgba(255,255,255,.75); text-shadow: 0 3px 6px rgba(0,0,0,.4); }
.g2-pot .pot { position: absolute; left: 60px; right: 60px; bottom: 0; height: 220px; border-radius: 0 0 260px 260px / 0 0 200px 200px; background: linear-gradient(#6d6d7a, #3f3f4c); box-shadow: inset 0 -20px 30px rgba(0,0,0,.4), 0 14px 20px rgba(0,0,0,.35); }
.g2-pot .pot::before { content: ''; position: absolute; left: -24px; right: -24px; top: -26px; height: 56px; border-radius: 50%; background: linear-gradient(#9a9aa8, #55556a); }
.g2-pot .soup { position: absolute; left: -6px; right: -6px; top: -16px; height: 38px; border-radius: 50%; background: radial-gradient(ellipse, #ffe27a, #f5a623); box-shadow: 0 0 30px rgba(255,200,60,.9); }
.g2-pot .face { position: absolute; left: 0; right: 0; top: 70px; text-align: center; font-size: 80px; color: #ffd27a; }
.g2-pot.bubble .pot { animation: jelly .45s; }
.g2-plate { position: absolute; left: 1150px; top: 170px; width: 470px; height: 420px; padding: 14px; background: rgba(255,250,240,.9); border: 6px solid #e9c98f; border-radius: 30px; text-align: center; }
.g2-plate .h { font-size: 26px; }
.g2-plate .dishes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.dish { background: radial-gradient(circle, #fff 55%, #f1e4cf); border-radius: 50%; height: 160px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 34px; box-shadow: 0 6px 0 #d9c39b; animation: popIn .5s cubic-bezier(.2,1.6,.4,1); }
.dish span { font-size: 64px; line-height: 1.1; }
.g2-rows { position: absolute; left: 380px; top: 612px; width: 1010px; display: flex; flex-direction: column; gap: 8px; }
.g2-row { display: flex; align-items: center; gap: 12px; padding: 6px 12px; border-radius: 22px; background: rgba(122,69,32,.75); border: 4px solid #c99558; transition: transform .2s, box-shadow .2s; opacity: .75; }
.g2-row.active { opacity: 1; transform: scale(1.02); box-shadow: 0 0 0 5px #ffd23f, 0 0 26px rgba(255,210,63,.9); }
.g2-row .lb { width: 140px; text-align: center; color: #fff; font-size: 24px; padding: 6px 0; border-radius: 16px; }
.lb.pink { background: #ff5fa2; } .lb.blue { background: #2f86ef; } .lb.green { background: #2fb35a; }
.g2-row .tiles { display: flex; gap: 12px; }
.tile { width: 84px; height: 72px; font-size: 48px; border-radius: 16px; background: linear-gradient(#fffaf0, #f2dfba); box-shadow: 0 6px 0 #b98a4e; color: var(--ink); transition: transform .1s; }
.tile:hover { transform: translateY(-4px); }
.tile:active { transform: translateY(3px); }
.tile[disabled] { opacity: .5; }
.tile.none { width: 110px; font-size: 20px; line-height: 1.1; }
.tile.bounce { animation: wiggle .5s; background: #ffd9d9; }
.g2-row[data-r="0"] .tile { color: #e0306d; } .g2-row[data-r="1"] .tile { color: #1d6fd6; } .g2-row[data-r="2"] .tile { color: #1d8d45; }

/* ③ 받침 바다 */
.g3-board { position: absolute; left: 50%; top: 100px; transform: translateX(-50%); min-width: 440px; padding: 10px 40px 40px; display: flex; align-items: center; gap: 22px; background: linear-gradient(#fffaf0, #f3e0b8); border: 6px solid #a9743f; border-radius: 26px; box-shadow: 0 8px 0 #6d4420; z-index: 4; }
.g3-board .em { font-size: 86px; }
.g3-board .wd { font-size: 76px; display: flex; gap: 6px; }
.g3-board .wd span { position: relative; }
.g3-board .tgt { color: #1d6fd6; }
.g3-board .slot { position: absolute; left: 50%; bottom: -36px; transform: translateX(-50%); width: 52px; height: 40px; font-size: 26px; font-style: normal; line-height: 34px; text-align: center; color: var(--red); border: 4px dashed var(--red); border-radius: 10px; background: #fff; animation: pulse 1s infinite; }
.g3-board .got { color: var(--ok); animation: jelly .5s; }
.g3-boat { position: absolute; left: 60px; top: 230px; width: 320px; height: 150px; z-index: 3; }
.g3-boat img { position: absolute; left: 100px; top: -40px; width: 120px; height: 120px; border-radius: 50%; border: 5px solid #fff; object-fit: cover; animation: bob 2.5s ease-in-out infinite; }
.g3-boat .hull { position: absolute; left: 0; right: 0; bottom: 0; height: 80px; background: linear-gradient(#a8652f, #6e3d17); border-radius: 0 0 160px 160px / 0 0 80px 80px; border-top: 8px solid #c98a4a; }
.g3-boat::after { content: ''; position: absolute; left: 200px; top: 10px; width: 560px; height: 7px; border-radius: 4px; background: linear-gradient(90deg, #7a4520, #c98a4a); transform: rotate(-1.5deg); transform-origin: left; }
.g3-water { position: absolute; left: 0; right: 0; top: 345px; bottom: 0; background: linear-gradient(rgba(80,190,255,.18), rgba(10,60,150,.45)); border-top: 4px solid rgba(255,255,255,.6); }
.g3-zone { position: absolute; left: 740px; width: 180px; top: 345px; bottom: 0; background: linear-gradient(rgba(255,230,120,.38), rgba(255,230,120,.08)); border-left: 4px dashed #ffe066; border-right: 4px dashed #ffe066; animation: zone 1.4s ease-in-out infinite; }
.g3-zone span { position: absolute; left: 50%; top: 8px; transform: translateX(-50%); background: #ffd23f; color: #7a4520; padding: 2px 12px; border-radius: 12px; font-size: 20px; white-space: nowrap; }
.g3-zone.off { display: none; }
@keyframes zone { 50% { background-color: rgba(255,240,150,.15); } }
.g3-line { position: absolute; left: 820px; top: 248px; width: 20px; height: 90px; z-index: 3; transition: height .3s ease-in; pointer-events: none; }
.g3-line i { position: absolute; left: 9px; top: 0; bottom: 18px; width: 3px; background: rgba(255,255,255,.9); }
.g3-line b { position: absolute; left: 1px; bottom: -4px; width: 20px; height: 24px; border: 5px solid #e8eef5; border-top: 0; border-radius: 0 0 14px 14px; font-size: 0; }
.g3-sea { position: absolute; inset: 0; z-index: 2; }
.fish { position: absolute; left: 0; top: 0; width: 150px; height: 92px; background: transparent; padding: 0; }
.fish .body { position: absolute; inset: 0; }
.fish .body::before { content: ''; position: absolute; left: 30px; right: 0; top: 0; bottom: 0; border-radius: 50% 55% 55% 50% / 50%; background: radial-gradient(circle at 70% 35%, rgba(255,255,255,.6) 0 6%, transparent 18%), var(--c); box-shadow: inset -8px -10px 14px rgba(0,0,0,.18), 0 6px 10px rgba(0,0,0,.2); }
.fish .body::after { content: ''; position: absolute; left: 0; top: 18px; border: 28px solid transparent; border-left: 36px solid var(--c); border-right: 0; filter: brightness(.85); }
.fish.l .body { transform: scaleX(-1); }
.fish .ltr { position: absolute; left: 40px; right: 10px; top: 8px; font-size: 54px; color: #fff; text-shadow: 0 3px 0 rgba(0,0,0,.3), 0 0 3px rgba(0,0,0,.4); }
.fish.inzone .body::before { box-shadow: 0 0 0 5px #fff, 0 0 30px 10px rgba(255,235,120,.95); }
.fish.caught { animation: catchUp .8s forwards; pointer-events: none; }
.fish.escape { animation: wiggle .5s; }
.fish.gold { --c: #ffc928; }
.fish.gold .ltr { color: #fff7c0; }
@keyframes catchUp { 30% { transform: translateY(-120px) rotate(-20deg) scale(1.2); } 100% { transform: translateY(-420px) rotate(20deg) scale(.4); opacity: 0; } }
.g3-clam { position: absolute; right: 30px; top: 170px; width: 320px; border-radius: 50%; z-index: 3; -webkit-mask-image: radial-gradient(ellipse 50% 50%, #000 60%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50%, #000 60%, transparent 100%); animation: bob 2s ease-in-out infinite; transition: filter .6s; }
.g3-clam.open { filter: brightness(1.3) saturate(1.3) drop-shadow(0 0 30px gold); }

/* ④ 기억의 숲 */
.g4-head { position: absolute; left: 50%; top: 100px; transform: translateX(-50%); padding: 8px 30px; font-size: 32px; background: linear-gradient(#fffaf0, #f2dfba); border: 5px solid #8a5a2b; border-radius: 30px; box-shadow: 0 5px 0 #5a3a1a; z-index: 3; white-space: nowrap; }
.g4-board { position: absolute; left: 50%; top: 175px; transform: translateX(-50%); display: grid; gap: 14px; perspective: 1200px; }
.mcard { width: 156px; height: 156px; padding: 0; background: transparent; justify-self: center; }
.mcard.sm { width: 132px; height: 132px; }
.mcard .in { position: relative; width: 100%; height: 100%; transition: transform .45s; transform-style: preserve-3d; }
.mcard.open .in, .mcard.peek .in, .mcard.done .in { transform: rotateY(180deg); }
.mcard .back, .mcard .front { position: absolute; inset: 0; border-radius: 22px; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: flex; align-items: center; justify-content: center; flex-direction: column; }
.mcard .back { background: linear-gradient(#5fb35a, #2e7d32); border: 5px solid #8fd18a; font-size: 56px; box-shadow: 0 6px 0 #1f5e22; }
.mcard:hover .back { filter: brightness(1.1); }
.mcard .front { transform: rotateY(180deg); background: #fffaf0; border: 5px solid #e9c98f; box-shadow: 0 6px 0 #c9a46a; }
.mcard .front.pic { font-size: 86px; }
.mcard.sm .front.pic { font-size: 70px; }
.mcard .front.pic small { font-size: 22px; line-height: 1.1; }
.mcard .front.pic:has(small) { font-size: 62px; line-height: 1.1; }
.mcard .front.word { font-size: 40px; color: var(--ink); }
.mcard.done .front { border-color: #7ee08a; box-shadow: 0 6px 0 #2fb35a, 0 0 24px rgba(126,224,138,.9); animation: jelly .5s; }
.g4-tip { position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); font-size: 24px; color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,.7); white-space: nowrap; }

/* ⑤ 맞춤법 경찰 */
.g5-case { position: absolute; left: 370px; top: 175px; width: 920px; min-height: 270px; padding: 50px 40px 30px; text-align: center; border-radius: 30px; z-index: 3; }
.g5-case .kind { position: absolute; left: 50%; top: -20px; transform: translateX(-50%); padding: 4px 22px; border-radius: 16px; background: #2f3b8f; color: #fff; font-size: 24px; white-space: nowrap; }
.g5-case .txt { font-size: 52px; line-height: 1.55; word-break: keep-all; }
.g5-case.sign { background: linear-gradient(#fbe7c4, #e9c58e); border: 10px solid #8a5a2b; box-shadow: 0 10px 0 #5a3a1a, 0 16px 30px rgba(0,0,0,.35); }
.g5-case.chat { background: #b2c7d9; border: 8px solid #fff; box-shadow: 0 16px 30px rgba(0,0,0,.35); text-align: left; }
.g5-case.chat .txt { display: inline-block; background: #fff59d; padding: 14px 26px; border-radius: 26px 26px 26px 6px; box-shadow: 0 4px 0 rgba(0,0,0,.15); }
.g5-case.menu { background: #2f4a3a; border: 12px solid #8a5a2b; color: #fff; box-shadow: 0 16px 30px rgba(0,0,0,.35); }
.g5-case.menu .txt { color: #fffde7; }
.g5-case.poster { background: #fff; border: 6px dashed #ff7eb6; transform: rotate(-1deg); box-shadow: 0 16px 30px rgba(0,0,0,.3); }
.tok { display: inline-block; padding: 0 6px; border-radius: 12px; cursor: pointer; transition: background .15s; }
.tok:hover { background: rgba(255,230,120,.55); }
.g5-case.menu .tok:hover { background: rgba(255,255,255,.2); }
.tok.nope { animation: wiggle .45s; background: rgba(255,170,90,.45); }
.tok.caught { background: #ff6b6b; color: #fff; box-shadow: 0 0 0 4px #fff, 0 0 20px rgba(255,80,80,.9); animation: jelly .4s; }
.tok.fixed { background: #7ee08a; color: #0d4d22; animation: jelly .5s; }
.tok.sus { animation: glowPulse .6s infinite; background: rgba(255,240,140,.9); color: var(--ink); }
.g5 .toast { bottom: 28px; max-width: 1060px; }
.g5-fix { position: absolute; left: 430px; top: 470px; width: 800px; padding: 14px 20px; text-align: center; background: #eef3ff; border: 5px solid #2f86ef; border-radius: 26px; z-index: 4; display: none; box-shadow: 0 10px 20px rgba(0,0,0,.3); }
.g5-fix.show { display: block; animation: popIn .35s cubic-bezier(.2,1.6,.4,1); }
.g5-fix .q { font-size: 28px; margin-bottom: 10px; }
.g5-fix .opts { display: flex; gap: 30px; justify-content: center; }
.g5-fix .btn { font-size: 40px; min-width: 260px; }
.g5-fix .btn.nope { animation: wiggle .4s; filter: grayscale(.5); }
.g5-ok { position: absolute; left: 700px; top: 640px; z-index: 4; font-size: 32px; }
.g5-clues { position: absolute; left: 20px; top: 560px; width: 320px; padding: 12px; background: rgba(255,250,240,.95); border: 5px solid #a9743f; border-radius: 22px; z-index: 3; }
.g5-clues .h { font-size: 24px; margin-bottom: 8px; }
.g5-clues .slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.g5-clues i { height: 64px; border-radius: 14px; background: #e9dfcb; display: flex; align-items: center; justify-content: center; font-size: 36px; font-style: normal; }
.g5-clues i.got { background: #fff4c7; box-shadow: 0 0 0 3px #ffc107; animation: popIn .4s; }
.g5-suspect { position: absolute; left: 1330px; top: 170px; width: 300px; padding: 16px; text-align: center; background: rgba(30,30,60,.82); border: 5px solid #fff; border-radius: 26px; color: #fff; z-index: 3; }
.g5-suspect .sil { font-size: 140px; line-height: 1.1; filter: brightness(.15); transition: filter .6s; }
.g5-suspect .nm { font-size: 30px; }
.g5-suspect .lv { font-size: 22px; color: #ffd23f; }
.g5-suspect.chase .sil { animation: wiggle 1s infinite; }
.g5-suspect.caught { background: rgba(47,134,239,.9); }
.g5-suspect.caught .sil { animation: jelly .6s; }
.g5-suspect.caught .sil::after { content: '🚓'; font-size: 70px; position: absolute; margin-left: -40px; margin-top: 90px; }

/* ⑥ 두 갈래 길 */
.g6 .toast { left: auto; right: 24px; bottom: 150px; transform: none; max-width: 540px; animation: popIn .3s; }
.g6-road { position: absolute; left: 0; right: 0; top: 420px; bottom: 0; clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%); background: linear-gradient(#cfc4b0, #9d8f78); overflow: hidden; --spd: .9s; }
.g6-road .lines { position: absolute; left: 50%; top: -100px; bottom: 0; width: 26px; margin-left: -13px; background: repeating-linear-gradient(#fff 0 60px, transparent 60px 120px); animation: roadRun var(--spd) linear infinite; opacity: .8; }
.boost .g6-road { background: linear-gradient(#ffe39a, #ffb84d); }
.boost .g6-road::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(100deg, transparent 0 40px, rgba(255,255,255,.35) 40px 44px); animation: roadRun .3s linear infinite; }
@keyframes roadRun { to { transform: translateY(120px); } }
.g6-sent { position: absolute; left: 50%; top: 140px; transform: translateX(-50%); min-width: 860px; max-width: 1100px; display: flex; align-items: center; gap: 18px; padding: 18px 34px; font-size: 42px; background: linear-gradient(#fbe7c4, #e9c58e); border: 8px solid #8a5a2b; border-radius: 22px; box-shadow: 0 8px 0 #5a3a1a; z-index: 4; white-space: nowrap; }
.g6-sent .say { width: 62px; height: 62px; border-radius: 50%; font-size: 30px; background: var(--orange); flex: none; box-shadow: 0 4px 0 #b3600f; }
.g6-sent .blank { color: var(--red); font-weight: normal; }
.g6-sent .fill { font-weight: normal; padding: 0 8px; border-radius: 10px; animation: jelly .4s; }
.g6-sent .fill.ok { background: #c9f5d2; color: #0d6b2e; } .g6-sent .fill.no { background: #ffe0c2; color: #b34a00; }
.g6-gates { position: absolute; left: 50%; top: 265px; transform: translateX(-50%); display: flex; gap: 140px; z-index: 3; }
.g6-gates.n3 { gap: 50px; }
.gate { width: 300px; height: 300px; padding: 0; background: transparent; transition: transform .3s, opacity .3s, filter .3s; }
.gate:hover { transform: translateY(-6px) scale(1.03); }
.gate .arch { position: relative; height: 290px; border: 22px solid #b9a77f; border-bottom: none; border-radius: 150px 150px 0 0; background: linear-gradient(#e8f6ff, #b9e2ff); box-shadow: inset 0 0 0 4px #8d7c58, 0 10px 18px rgba(0,0,0,.3); overflow: visible; }
.gate .sign { position: absolute; left: 50%; top: -34px; transform: translateX(-50%); min-width: 230px; padding: 8px 18px; font-size: 34px; color: #fff; white-space: nowrap; background: linear-gradient(#a8652f, #6e3d17); border: 4px solid #4d2a0f; border-radius: 14px; text-shadow: 0 2px 0 rgba(0,0,0,.4); }
.gate .door { position: absolute; inset: 60px 20px 0; border-radius: 90px 90px 0 0; background: radial-gradient(circle at 50% 70%, #fff, rgba(255,255,255,0) 70%); opacity: .6; }
.gate.win { transform: scale(1.12); filter: drop-shadow(0 0 30px gold); }
.gate.win .arch { background: linear-gradient(#fff6b0, #ffd23f); border-color: #ffd23f; }
.gate.lose { filter: grayscale(.8) brightness(.7); transform: scale(.94); }
.gate.right { filter: drop-shadow(0 0 24px #7ee08a); }
.gate.right .arch { border-color: #7ee08a; }
.gate.out { opacity: .25; pointer-events: none; }
.g6-runner { position: absolute; left: 836px; top: 640px; width: 130px; height: 130px; margin-left: -65px; z-index: 4; transition: translate .8s cubic-bezier(.5,0,.7,1), scale .8s, opacity .8s; }
.g6-runner img { width: 100%; height: 100%; border-radius: 50%; border: 6px solid #fff; object-fit: cover; box-shadow: 0 10px 16px rgba(0,0,0,.35); animation: hop .5s ease-in-out infinite; }
.g6-runner .shield { position: absolute; right: -20px; top: -10px; font-size: 54px; display: none; }
.g6-runner.shielded .shield { display: block; animation: pulse .8s infinite; }
.g6-runner.dash { translate: var(--tx) -330px; scale: .4; opacity: 0; }
.g6-runner.fall { translate: 0 60px; scale: .9; }
.g6-safe { position: absolute; left: 50%; top: 770px; transform: translateX(-50%); padding: 8px 30px; font-size: 28px; background: #fff; border-radius: 40px; box-shadow: 0 6px 0 #c9dff5; display: none; z-index: 3; }
.g6-safe.show { display: block; animation: popIn .3s; }
.g6-btns { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; gap: 20px; z-index: 5; }
.g6-btns .btn { font-size: 30px; padding: 12px 26px; }

/* ⑦ 띄어쓰기 용암섬 */
.g7-sent { position: absolute; left: 50%; top: 175px; translate: -50% 0; display: flex; align-items: center; padding: 16px 22px; background: rgba(255,250,240,.96); border: 6px solid #a9743f; border-radius: 26px; box-shadow: 0 8px 0 #6d4420; z-index: 4; white-space: nowrap; }
.g7-sent .syl { width: 60px; height: 74px; display: flex; align-items: center; justify-content: center; font-size: 44px; background: linear-gradient(#fff, #f3e6cc); border-radius: 12px; box-shadow: 0 5px 0 #c9a46a; }
.g7-sent .syl.p { width: 26px; background: none; box-shadow: none; }
.gap { width: 22px; height: 74px; padding: 0; margin: 0 1px; background: transparent; border-radius: 8px; position: relative; transition: width .15s, background .15s; }
.gap::before { content: ''; position: absolute; left: 50%; top: 14px; bottom: 14px; border-left: 3px dotted #c9a46a; }
.gap:hover { background: rgba(74,163,255,.2); }
.gap.on { width: 46px; background: rgba(74,163,255,.25); }
.gap.on::before { border: 0; content: '␣'; left: 0; right: 0; top: 18px; text-align: center; font-size: 28px; color: #2f86ef; }
.gap.miss { box-shadow: 0 0 0 4px #ffd23f, 0 0 18px #ffd23f; animation: pulse .6s infinite; }
.gap.extra { background: rgba(255,90,95,.35); box-shadow: 0 0 0 4px #ff5a5f; }
.g7-help { position: absolute; left: 50%; top: 300px; transform: translateX(-50%); font-size: 24px; color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,.8); white-space: nowrap; z-index: 4; }
.g7-go { position: absolute; left: 50%; top: 352px; transform: translateX(-50%); z-index: 4; font-size: 34px; }
.g7-go:hover { transform: translateX(-50%) translateY(-2px); }
.g7-go:active { transform: translateX(-50%) translateY(5px); }
.g7-lava { position: absolute; left: 0; right: 0; bottom: 0; height: 300px; background: radial-gradient(ellipse at 30% 20%, #ffde59, transparent 40%), radial-gradient(ellipse at 70% 60%, #ffae00, transparent 45%), linear-gradient(#ff7b00, #d62d00 60%, #8a1500); animation: lava 3s ease-in-out infinite alternate; transition: height 1s, filter 1s; }
.g7-lava.rise { animation: lava 1.5s ease-in-out infinite alternate, rise 40s linear forwards; }
.g7-lava.calm { height: 220px; filter: brightness(.75) saturate(.8); }
@keyframes lava { to { background-position: 40px 10px, -30px 0, 0 0; filter: brightness(1.12); } }
@keyframes rise { to { height: 420px; } }
.g7-cliff { position: absolute; bottom: 0; width: 290px; height: 400px; background: linear-gradient(#8d6e4f, #4e3624); z-index: 1; }
.g7-cliff.l { left: 0; clip-path: polygon(0 0, 85% 0, 100% 100%, 0 100%); }
.g7-cliff.r { right: 0; clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%); }
.g7-cliff.r img { position: absolute; left: 60px; top: -10px; width: 200px; }
.g7-bridge { position: absolute; left: 270px; right: 270px; top: 548px; height: 74px; display: flex; gap: 6px; justify-content: center; z-index: 2; }
.plank { flex: 1; display: flex; align-items: center; justify-content: center; font-size: 30px; white-space: nowrap; background: linear-gradient(#efe1c4, #c8ad7f); border: 4px solid #7a5a35; border-radius: 12px; box-shadow: 0 8px 0 #4e3624; animation: plankIn .5s cubic-bezier(.2,1.6,.4,1) backwards; }
@keyframes plankIn { from { transform: translateY(-260px) rotate(-12deg); opacity: 0; } }
.g7-hero { position: absolute; left: 150px; top: 452px; width: 100px; height: 100px; z-index: 3; transition: left 1.3s ease-in-out; }
.g7-hero img { width: 100%; height: 100%; border-radius: 50%; border: 5px solid #fff; object-fit: cover; box-shadow: 0 6px 10px rgba(0,0,0,.35); animation: hop .6s ease-in-out infinite; }
.g7-hero.walk { left: 1440px; }
.g7 .toast { bottom: auto; top: 640px; }

/* ⑧ 어휘 마왕성 */
.g8-hero { position: absolute; left: 50px; top: 200px; width: 290px; height: 330px; border-radius: 40px; overflow: hidden; border: 7px solid #fff; box-shadow: 0 0 30px rgba(155,107,255,.9); animation: bob 2.2s ease-in-out infinite; }
.g8-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.g8-boss { position: absolute; right: 40px; top: 200px; width: 400px; height: 400px; }
.g8-boss img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; -webkit-mask-image: radial-gradient(circle, #000 58%, transparent 72%); mask-image: radial-gradient(circle, #000 58%, transparent 72%); transition: filter 1s; }
.g8-boss .shield { position: absolute; inset: -14px; border-radius: 50%; background: radial-gradient(circle, transparent 55%, rgba(170,110,255,.55) 70%, rgba(220,180,255,.85)); box-shadow: 0 0 40px rgba(170,110,255,.9); transition: opacity .5s; animation: pulse 2s infinite; pointer-events: none; }
.g8-boss .say { position: absolute; left: 50%; bottom: -40px; transform: translateX(-50%); padding: 8px 22px; background: #fff; border-radius: 22px; font-size: 24px; white-space: nowrap; box-shadow: 0 5px 0 rgba(0,0,0,.2); }
.g8-boss.hit img { animation: shake .4s; filter: brightness(1.6); }
.g8-boss.friend img { filter: hue-rotate(160deg) brightness(1.25) saturate(1.2); animation: victory 1.2s infinite; }
.g8-q { position: absolute; left: 380px; top: 165px; width: 790px; min-height: 100px; padding: 22px 24px; display: block; text-align: center; font-size: 34px; line-height: 1.4; background: rgba(255,250,240,.96); border: 6px solid #8456f0; border-radius: 24px; box-shadow: 0 8px 0 #5531b3; z-index: 3; }
.g8-q .fill { font-weight: normal; color: #8456f0; animation: jelly .4s; }
.g8-top, .g8-bot { position: absolute; left: 380px; width: 790px; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; z-index: 3; }
.g8-top { top: 300px; } .g8-bot { top: 430px; }
.vcard { position: relative; padding: 10px 16px; border-radius: 20px; background: linear-gradient(#fffaf0, #f0dfbd); border: 5px solid #e9c98f; box-shadow: 0 7px 0 #b98a4e, 0 10px 16px rgba(0,0,0,.25); color: var(--ink); transition: transform .12s, opacity .3s; }
.vcard:hover { transform: translateY(-5px); }
.vcard.word { min-width: 200px; height: 96px; font-size: 42px; }
.vcard.mean { width: 245px; min-height: 130px; font-size: 23px; font-family: var(--font-body); font-weight: bold; line-height: 1.35; }
.vcard small { position: absolute; left: 8px; top: 4px; font-size: 16px; color: var(--ink-soft); }
.vcard.sel { border-color: #ffc107; background: linear-gradient(#fff9d6, #ffe48a); box-shadow: 0 7px 0 #c99a00, 0 0 30px rgba(255,200,0,.9); transform: translateY(-8px) scale(1.05); }
.vcard.used { opacity: .25; transform: scale(.9); pointer-events: none; }
.vcard.nope { animation: wiggle .45s; border-color: #ff8a8a; }
.g8-beam { position: absolute; height: 18px; border-radius: 10px; transform-origin: 0 50%; background: linear-gradient(90deg, rgba(255,255,255,.2), #fff59d, #fff); box-shadow: 0 0 30px 10px rgba(255,230,120,.9); opacity: 0; pointer-events: none; z-index: 6; }
.g8-beam.go { animation: beam .55s ease-out; }
@keyframes beam { 0% { opacity: 1; clip-path: inset(0 100% 0 0); } 60% { opacity: 1; clip-path: inset(0 0 0 0); } 100% { opacity: 0; clip-path: inset(0 0 0 0); } }
