/* 직소 퍼즐 — 화면 스타일 */
.jg-page{margin:0;background:#1b2630;color:#eef3f7;font-family:"Noto Sans KR",-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Malgun Gothic",sans-serif;line-height:1.65;overflow-x:hidden}
html.jg-lock,html.jg-lock body{overflow:hidden;overscroll-behavior:none}
.jg-wrap,.jg-wrap *{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
.jg-wrap{position:relative;width:100%;max-width:1280px;margin:0 auto;height:100vh;height:100svh;max-height:min(940px,230vw);min-height:460px;overflow:hidden;background:#23303a;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
@media (orientation:landscape) and (min-width:700px){.jg-wrap{max-height:min(70vw,860px)}}
.jg-wrap canvas#jg-cv{display:block;position:absolute;left:0;top:0;width:100%;height:100%;touch-action:none;outline:none}
.jg-top{position:absolute;left:0;right:0;top:0;height:48px;display:flex;align-items:center;gap:8px;padding:6px 10px;background:linear-gradient(180deg,rgba(10,16,22,.85),rgba(10,16,22,.55));z-index:3;pointer-events:none}
.jg-top>*{pointer-events:auto}
.jg-hud{display:flex;align-items:baseline;gap:8px;font-variant-numeric:tabular-nums;white-space:nowrap}
.jg-hud b{font-size:20px;font-weight:900;color:#ffe27a;min-width:52px}
.jg-hud span{font-size:13px;font-weight:800;color:#cfe3f1;background:rgba(255,255,255,.12);padding:1px 8px;border-radius:999px}
.jg-name{flex:1;min-width:0;font-size:12px;color:#b9cad8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:right}
.jg-ib{width:34px;height:34px;flex:0 0 34px;border:0;border-radius:11px;background:rgba(255,255,255,.12);color:#fff;font:900 15px/1 sans-serif;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;padding:0}
.jg-bar{position:absolute;left:0;right:0;bottom:0;height:58px;display:flex;gap:2px;padding:4px 4px calc(4px + env(safe-area-inset-bottom,0px));background:linear-gradient(0deg,rgba(10,16,22,.92),rgba(10,16,22,.7));z-index:3}
.jg-bar button{flex:1 1 0;min-width:0;border:0;border-radius:12px;background:transparent;color:#fff;font:900 19px/1 sans-serif;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:0}
.jg-bar button small{font:700 10px/1 "Noto Sans KR",sans-serif;color:#b9cad8;white-space:nowrap}
.jg-bar button:hover{background:rgba(255,255,255,.08)}
.jg-bar button:active{transform:translateY(1px)}
.jg-bar button.on{background:rgba(255,226,122,.2);box-shadow:inset 0 0 0 2px #ffe27a}
.jg-bar button.on small{color:#ffe27a}
.jg-prev{position:absolute;top:54px;right:10px;z-index:2;display:none;background:#fff;padding:4px;border-radius:10px;box-shadow:0 6px 18px rgba(0,0,0,.45);cursor:pointer;transform-origin:top right;transition:transform .15s}
.jg-prev.on{display:block}
.jg-prev canvas{display:block;border-radius:6px;max-width:42vw;height:auto!important}
.jg-prev.big{transform:scale(1.8)}
@media (max-width:500px){.jg-prev.big{transform:scale(1.5)}}
.jg-toast{position:absolute;left:50%;bottom:70px;transform:translate(-50%,20px);background:rgba(0,0,0,.8);color:#fff;font-weight:800;font-size:13px;padding:8px 16px;border-radius:999px;opacity:0;transition:.2s;pointer-events:none;z-index:6;max-width:94%;text-align:center;line-height:1.4}
.jg-toast.on{opacity:1;transform:translate(-50%,0)}
.jg-ui{position:absolute;inset:0;z-index:5;display:none;align-items:flex-start;justify-content:center;padding:14px 12px 16px;background:radial-gradient(ellipse at 50% 30%,rgba(25,40,55,.82),rgba(6,10,16,.94));overflow-y:auto;touch-action:pan-y;-webkit-overflow-scrolling:touch}
.jg-ui.on{display:flex}
.jg-card{width:100%;max-width:560px;margin:auto 0;text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px;animation:jgIn .2s ease-out}
@keyframes jgIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.jg-card h2{margin:0;font-family:"Black Han Sans",sans-serif;font-weight:400;font-size:clamp(24px,7vw,34px);line-height:1.15;color:#ffe27a;text-shadow:0 3px 0 rgba(0,0,0,.45)}
.jg-logo{display:flex;flex-direction:column;align-items:center;line-height:1;font-family:"Black Han Sans",sans-serif;text-shadow:0 4px 0 rgba(0,0,0,.4);margin-top:4px}
.jg-logo span{font-size:clamp(15px,4.4vw,20px);color:#bfe0f5;letter-spacing:.1em}
.jg-logo b{font-weight:400;font-size:clamp(44px,13vw,64px);background:linear-gradient(180deg,#fff,#ffe9a0 45%,#ff9f43);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;filter:drop-shadow(0 4px 0 rgba(0,0,0,.4))}
.jg-tiny{margin:0;font-size:12px;color:#b9cad8;line-height:1.6}
.jg-note{margin:0;font-size:12.5px;color:#d7f5df;background:rgba(40,160,90,.18);border:1px solid rgba(80,200,120,.35);border-radius:12px;padding:8px 12px;line-height:1.55;text-align:left}
.jg-emo{font-size:46px;line-height:1}
.jg-big{margin:0;font-weight:900;font-size:clamp(24px,7.5vw,34px);color:#fff}
.jg-big small{font-size:.5em;color:#ffe27a;margin-left:4px}
.jg-day{width:100%;font:inherit;color:#fff;border:0;border-radius:18px;padding:10px;cursor:pointer;display:flex;align-items:center;gap:12px;text-align:left;background:linear-gradient(135deg,#ff9f43,#e8586a);box-shadow:0 5px 0 rgba(0,0,0,.3)}
.jg-day:active{transform:translateY(2px)}
.jg-dth{flex:0 0 108px;height:81px;border-radius:10px;overflow:hidden;background:rgba(0,0,0,.2)}
.jg-dtx{display:flex;flex-direction:column;gap:2px;min-width:0}
.jg-dtx b{font-size:18px}
.jg-dtx small{font-size:12px;color:#fff3e6}
.jg-dtx .jg-hl{color:#fff;font-weight:800}
.jg-mode{width:100%;font:inherit;color:#fff;border:0;border-radius:16px;padding:11px 16px;cursor:pointer;text-align:left;display:flex;flex-direction:column;gap:2px;background:linear-gradient(135deg,rgba(255,255,255,.17),rgba(255,255,255,.06));box-shadow:inset 0 0 0 2px rgba(255,255,255,.18),0 4px 0 rgba(0,0,0,.3)}
.jg-mode:active{transform:translateY(2px)}
.jg-mode:hover{box-shadow:inset 0 0 0 2px #ffe27a,0 4px 0 rgba(0,0,0,.3)}
.jg-mode b{font-size:16px}
.jg-mode small{font-size:12px;color:#c9d9e5}
.jg-photo{background:linear-gradient(135deg,rgba(80,170,255,.35),rgba(80,170,255,.12))}
.jg-h3{margin:6px 0 0;font-size:16px;color:#ffe27a;align-self:flex-start}
.jg-h3 small{font-size:12px;color:#b9cad8;font-weight:700}
.jg-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%}
@media (min-width:560px){.jg-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
.jg-art{font:inherit;border:0;border-radius:12px;padding:4px 4px 6px;cursor:pointer;background:rgba(255,255,255,.08);color:#fff;display:flex;flex-direction:column;gap:4px;align-items:stretch}
.jg-art:hover{background:rgba(255,226,122,.18)}
.jg-art b{font-size:12px;line-height:1.25;font-weight:800}
.jg-th{display:block;aspect-ratio:4/3;border-radius:8px;overflow:hidden;background:rgba(0,0,0,.25)}
.jg-thc{display:block;width:100%;height:100%}
.jg-pvw{width:100%;max-width:340px;aspect-ratio:4/3;border-radius:14px;overflow:hidden;box-shadow:0 6px 16px rgba(0,0,0,.45);background:rgba(0,0,0,.25)}
#jg-ph{aspect-ratio:auto;max-height:46vh;display:flex;justify-content:center}
#jg-ph canvas{width:auto;max-width:100%;max-height:46vh;height:auto}
.jg-lab{margin:2px 0 0;font-weight:800;font-size:13px;color:#cfe3f1}
.jg-chips{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
.jg-chip{font:inherit;font-weight:900;font-size:15px;min-width:52px;min-height:40px;border:0;border-radius:12px;cursor:pointer;background:rgba(255,255,255,.12);color:#fff}
.jg-chip.on{background:#ffe27a;color:#2a1d00}
.jg-tog{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:700;cursor:pointer}
.jg-tog input{width:20px;height:20px}
.jg-row{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.jg-btn{font:inherit;font-weight:900;font-size:16px;border:0;border-radius:14px;padding:11px 20px;cursor:pointer;color:#2a1d00;background:linear-gradient(180deg,#fff2a0,#ffc93a);box-shadow:0 4px 0 #a87800;min-height:44px;text-decoration:none;display:inline-flex;align-items:center}
.jg-btn:active{transform:translateY(3px);box-shadow:0 1px 0 #a87800}
.jg-btn.g{background:rgba(255,255,255,.14);color:#fff;box-shadow:inset 0 0 0 2px rgba(255,255,255,.3)}
.jg-btn:disabled{opacity:.6;cursor:default}
.jg-rk{width:100%;max-width:420px;font-size:13px;background:rgba(0,0,0,.3);border-radius:14px;padding:8px 10px;min-height:40px;font-variant-numeric:tabular-nums}
.jg-rk div{display:flex;justify-content:space-between;gap:8px;padding:3px 4px}
.jg-rk div:nth-child(odd){background:rgba(255,255,255,.05);border-radius:6px}
.jg-muted{justify-content:center!important;color:#b9cad8}
.jg-reg{display:flex;gap:6px;width:100%;max-width:400px}
.jg-reg input{flex:1;min-width:0;font:inherit;font-size:16px;padding:9px 12px;border-radius:12px;border:0}
.jg-reg .jg-btn{font-size:15px;padding:9px 14px}
.jg-spin{width:42px;height:42px;border-radius:50%;border:4px solid rgba(255,255,255,.2);border-top-color:#ffe27a;animation:jgSp .8s linear infinite;margin:20px auto 0}
@keyframes jgSp{to{transform:rotate(360deg)}}
/* 아래 글 */
.jg-below{max-width:780px;margin:0 auto;padding:16px 16px 40px;box-sizing:border-box}
.jg-crumb{font-size:.82rem;color:#b9cad8;margin:0 0 10px}
.jg-crumb a,.jg-below a{color:#9fd3ff}
.jg-box{background:#22323e;border:1px solid #33495a;border-radius:18px;padding:16px 18px;margin-bottom:14px}
.jg-box h1{font-size:1.25rem;margin:0 0 8px;color:#ffe27a;line-height:1.4}
.jg-box h2{font-size:1.08rem;margin:0 0 8px;color:#cfe8fa}
.jg-box ul{margin:0;padding-left:1.2em}
.jg-box li{margin:4px 0}
.jg-box p{margin:0 0 6px}
.jg-box details{border-top:1px solid #33495a;padding:8px 0}
.jg-box details:first-of-type{border-top:0}
.jg-box summary{cursor:pointer;font-weight:800}
.jg-box details p{margin-top:6px;color:#d4e2ec}
.jg-mt{width:100%;border-collapse:collapse;font-size:.92rem}
.jg-mt th{text-align:left;white-space:nowrap;padding:6px 10px 6px 0;color:#ffe27a;vertical-align:top}
.jg-mt td{padding:6px 0;border-bottom:1px solid #33495a}
.jg-al{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 14px;padding-left:1.2em!important}
@media (min-width:600px){.jg-al{grid-template-columns:repeat(3,minmax(0,1fr))}}
.jg-al small{color:#8fa6b8;font-size:.78em}
.jg-more{font-size:.9rem;color:#b9cad8}
/* 그림 모음 페이지 */
.jg-gal{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px;margin:0 0 14px}
.jg-gcard{background:#22323e;border:1px solid #33495a;border-radius:16px;overflow:hidden;display:flex;flex-direction:column}
.jg-gcard canvas{display:block;width:100%;aspect-ratio:4/3;height:auto;background:#2b3a46}
.jg-gcard div{padding:10px 12px 12px;display:flex;flex-direction:column;gap:4px;flex:1}
.jg-gcard h2{font-size:1.02rem;margin:0;color:#ffe27a}
.jg-gcard p{margin:0;font-size:.88rem;color:#d4e2ec;flex:1}
.jg-gcard small{color:#8fa6b8}
.jg-gcard a.jg-btn{align-self:flex-start;font-size:14px;padding:8px 14px;min-height:38px;margin-top:4px}
.jg-ui.jg-light{background:rgba(6,10,16,.35)}
.jg-ui.jg-light .jg-card{background:rgba(12,20,30,.86);border-radius:20px;padding:16px 14px;box-shadow:0 10px 30px rgba(0,0,0,.5)}
.jg-ui.jg-light .jg-card{margin:auto 0 0}
