/* 동네 블랙홀 — 화면 스타일 (바다 먹이사슬·땅따먹기와 같은 틀, 밤하늘빛) */
.hl-page{margin:0;background:#1b1b2f;color:#f3f0ff;font-family:"Noto Sans KR",-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Malgun Gothic",sans-serif;line-height:1.65;overflow-x:hidden}
html.hl-lock,html.hl-lock body{overflow:hidden;overscroll-behavior:none}
html.hl-lock #funsoft-fab,html.hl-lock #inq-float,html.hl-lock #fs-a2hs{opacity:0;pointer-events:none}
.hl-wrap,.hl-wrap *{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
.hl-wrap{position:relative;width:100%;margin:0 auto;height:100vh;height:100svh;min-height:360px;overflow:hidden;background:#2b2d42;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.hl-wrap canvas{display:block;position:absolute;left:0;top:0;width:100%;height:100%;touch-action:none;outline:none}
.hl-wrap.hl-playing{touch-action:none}
.hl-btns{position:absolute;top:8px;left:8px;display:flex;gap:6px;z-index:3}
.hl-ib{width:38px;height:38px;border:0;border-radius:12px;background:rgba(0,0,0,.45);color:#fff;font:900 16px/1 sans-serif;cursor:pointer;box-shadow:inset 0 0 0 2px rgba(255,255,255,.22);display:inline-flex;align-items:center;justify-content:center;padding:0;touch-action:manipulation}
.hl-ib:active{transform:translateY(1px)}
.hl-ui{position:absolute;inset:0;z-index:4;display:none;align-items:flex-start;justify-content:center;padding:54px 12px 16px;background:radial-gradient(ellipse at 50% 35%,rgba(30,24,64,.78),rgba(10,8,25,.93));overflow-y:auto;touch-action:pan-y;-webkit-overflow-scrolling:touch}
.hl-ui.on{display:flex}
.hl-card{width:100%;max-width:470px;margin:auto 0;text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px;animation:hlIn .2s ease-out}
@keyframes hlIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.hl-card h2{margin:0;font-family:"Black Han Sans",sans-serif;font-weight:400;font-size:clamp(28px,8vw,40px);line-height:1.1;color:#ffe066;text-shadow:0 3px 0 rgba(0,0,0,.5)}
.hl-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,.45)}
.hl-logo span{font-size:clamp(17px,4.6vw,22px);color:#d0bfff;letter-spacing:.12em}
.hl-logo b{font-weight:400;font-size:clamp(46px,13vw,68px);background:linear-gradient(180deg,#f4fce3,#a9e34b 45%,#37b24d);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;filter:drop-shadow(0 4px 0 rgba(0,0,0,.45))}
.hl-sub{margin:0;font-size:14px;color:#ece8fb}
.hl-tiny{margin:0;font-size:12px;color:#b9b3d6;line-height:1.6}
.hl-new{margin:0;font-weight:900;color:#69db7c}
.hl-big{font-weight:900;font-size:clamp(34px,10vw,48px);color:#fff;line-height:1.05}
.hl-big small{font-size:.42em;color:#ddd6f5;font-weight:700;margin-left:4px}
.hl-row{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.hl-btn{font:inherit;font-weight:900;font-size:16px;border:0;border-radius:14px;padding:11px 22px;cursor:pointer;color:#102a12;background:linear-gradient(180deg,#d8f5a2,#82c91e);box-shadow:0 4px 0 #3d7a0c;min-height:44px}
.hl-btn:active{transform:translateY(3px);box-shadow:0 1px 0 #3d7a0c}
.hl-btn.go{font-size:20px;padding:13px 40px}
.hl-btn.g{background:rgba(255,255,255,.14);color:#fff;box-shadow:inset 0 0 0 2px rgba(255,255,255,.35)}
.hl-btn:disabled{opacity:.6;cursor:default}
.hl-opt{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:center;font-size:13px}
.hl-opt>span{color:#b9b3d6}
.hl-seg{display:inline-flex;border-radius:999px;background:rgba(0,0,0,.35);padding:3px}
.hl-seg button{font:inherit;font-size:13px;font-weight:800;border:0;border-radius:999px;padding:6px 12px;cursor:pointer;background:transparent;color:#ece8fb;min-height:32px}
.hl-seg button.on{background:#a9e34b;color:#102a12}
.hl-opt[hidden]{display:none}
.hl-modes{display:flex;width:100%;max-width:400px}
.hl-modes button{flex:1;padding:8px 6px;font-size:13px;min-height:40px;white-space:nowrap}
.hl-mdesc{max-width:400px;min-height:3.2em}
.hl-mdesc b{color:#ffe066}
.hl-mode{margin:0;font-size:13px;font-weight:800;color:#ffe066;background:rgba(0,0,0,.35);padding:3px 12px;border-radius:999px}
.hl-cardimg{display:block;width:100%;max-width:360px;height:auto;border-radius:16px;box-shadow:0 6px 24px rgba(0,0,0,.5)}
.hl-name{display:flex;gap:6px;width:100%;max-width:340px}
.hl-name input,.hl-reg input{flex:1;min-width:0;font:inherit;font-size:16px;padding:9px 12px;border-radius:12px;border:0;text-align:center}
.hl-skins{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;width:100%}
.hl-skin{font:inherit;border:0;border-radius:12px;padding:4px 2px 3px;cursor:pointer;background:rgba(255,255,255,.08);color:#fff;display:flex;flex-direction:column;align-items:center;gap:1px;min-height:44px;position:relative}
.hl-wrap .hl-skin canvas{position:static;width:100%;max-width:72px;height:auto;aspect-ratio:96/56;display:block}
.hl-skin small{font-size:10px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.hl-skin.on{box-shadow:inset 0 0 0 2px #a9e34b;background:rgba(169,227,75,.16)}
.hl-skin.lock{opacity:.55;cursor:default}
.hl-skin.lock small{color:#d0bfff}
.hl-stat{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;font-size:12px}
.hl-stat span{background:rgba(0,0,0,.35);padding:3px 10px;border-radius:999px}
.hl-stat b{color:#ffe066}
.hl-tabs{display:flex;gap:6px}
.hl-rk{width:100%;max-width:400px;font-size:13px;background:rgba(0,0,0,.3);border-radius:14px;padding:8px 10px;min-height:40px}
.hl-rk div{display:flex;justify-content:space-between;gap:8px;padding:3px 4px}
.hl-rk div:nth-child(odd){background:rgba(255,255,255,.05);border-radius:6px}
.hl-muted{justify-content:center!important;color:#b9b3d6}
.hl-reg{display:flex;gap:6px;width:100%;max-width:380px}
.hl-reg .hl-btn{font-size:15px;padding:9px 14px}
.hl-unl{background:rgba(169,227,75,.15);border-radius:14px;padding:8px 14px;font-weight:800;color:#d8f5a2;font-size:14px}
.hl-link{font:inherit;font-size:12px;border:0;background:none;color:#b9b3d6;text-decoration:underline;cursor:pointer;padding:4px}
.hl-toast{position:absolute;left:50%;top:28%;transform:translateX(-50%);z-index:5;pointer-events:none;background:rgba(0,0,0,.6);color:#fff;font-weight:900;font-size:15px;padding:8px 16px;border-radius:999px;opacity:0;transition:opacity .25s;white-space:nowrap;max-width:92%;overflow:hidden;text-overflow:ellipsis}
.hl-toast.on{opacity:1}
/* 아래 글 */
.hl-below{max-width:760px;margin:0 auto;padding:16px 16px 40px}
.hl-box{background:#24243e;border:1px solid #3b3b63;border-radius:18px;padding:16px 18px;margin-bottom:14px}
.hl-box h1{font-size:1.25rem;margin:0 0 8px;color:#ffe066;line-height:1.4}
.hl-box h2{font-size:1.08rem;margin:0 0 8px;color:#d0bfff}
.hl-box ul{margin:0;padding-left:1.2em}
.hl-box li{margin:4px 0}
.hl-box p{margin:0}
.hl-box details{border-top:1px solid #3b3b63;padding:8px 0}
.hl-box details:first-of-type{border-top:0}
.hl-box summary{cursor:pointer;font-weight:800}
.hl-box details p{margin-top:6px;color:#e2dcf7}
.hl-today{margin-top:10px!important;background:#2f2f52;border-radius:12px;padding:8px 12px}
.hl-today b{color:#ffe066}
.hl-badge{display:inline-block;font-size:.75rem;font-weight:800;background:#a9e34b;color:#102a12;border-radius:999px;padding:0 8px;margin-left:4px}
.hl-crumb{font-size:.8rem;color:#b9b3d6;margin:0 0 6px!important}
.hl-keys{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;font-size:.92rem}
.hl-keys b{color:#ffe066;white-space:nowrap}
.hl-keys span b{color:inherit;white-space:normal}
.hl-mt{width:100%;border-collapse:collapse;font-size:.92rem}
.hl-mt th{text-align:left;white-space:nowrap;padding:6px 10px 6px 0;color:#ffe066;vertical-align:top}
.hl-mt td{padding:6px 0;color:#ece8fb}
.hl-mt tr+tr th,.hl-mt tr+tr td{border-top:1px solid #3b3b63}
.hl-more{font-size:.85rem;color:#b9b3d6}
.hl-page a{color:#ffe066}
.hl-logo b{background-image:linear-gradient(180deg,#fff9db,#ffe066 45%,#fab005)}
.hl-logo b,.hl-logo span{letter-spacing:.02em}
.hl-skins{grid-template-columns:repeat(4,minmax(0,1fr))}
.hl-wrap .hl-skin canvas{max-width:80px}
.hl-src{font-size:.82rem;color:#b9b3d6;margin-top:8px!important}
.hl-steps{margin:0;padding-left:1.3em}
.hl-steps li{margin:5px 0}
.hl-btn{background:linear-gradient(180deg,#fff3bf,#ffd43b);color:#3b2a00;box-shadow:0 4px 0 #b08900}
.hl-btn:active{box-shadow:0 1px 0 #b08900}
.hl-seg button.on{background:#ffe066;color:#3b2a00}
.hl-skin.on{box-shadow:inset 0 0 0 2px #ffe066;background:rgba(255,224,102,.16)}
.hl-badge{background:#ffe066;color:#3b2a00}
.hl-unl{background:rgba(255,224,102,.15);color:#fff3bf}
.hl-new{color:#ffe066}
.hl-logo b{background-image:linear-gradient(180deg,#e7f5ff,#74c0fc 45%,#1c7ed6)}
.hl-logo span{color:#d0bfff}
.hl-skins{grid-template-columns:repeat(4,minmax(0,1fr))}
.hl-wrap .hl-skin canvas{border-radius:8px}
.hl-tier{width:100%;border-collapse:collapse;font-size:.9rem}
.hl-tier th,.hl-tier td{padding:6px 6px;text-align:left;border-top:1px solid #3b3b63;vertical-align:top}
.hl-tier thead th{border-top:0;color:#d0bfff;font-size:.82rem;white-space:nowrap}
.hl-tier tbody th{color:#ffe066;white-space:nowrap}
.hl-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
.hl-cue{display:inline-block;padding:0 8px;border-radius:999px;font-weight:800;font-size:.85rem}
.hl-cue.ok{box-shadow:inset 0 0 0 2px #51cf66;color:#b2f2bb}
.hl-cue.no{box-shadow:inset 0 0 0 2px #ff4d4f;color:#ffa8a8}
.hl-cue.mid{box-shadow:inset 0 0 0 2px rgba(255,255,255,.4)}
.hl-tier .hl-nw{white-space:nowrap}
.hl-tier td small{display:block;font-size:.76rem;color:#b9b3d6;line-height:1.35;margin-top:2px}
/* 블랙홀: 3D 캔버스 위에 HUD 캔버스 */
.hl-wrap #hl-hud{z-index:2}
.hl-wrap #hl-cv{z-index:1}
.hl-btns{z-index:3}
.hl-logo b{background-image:linear-gradient(180deg,#f3f0ff,#b197fc 45%,#7048e8)}
.hl-logo span{color:#d0bfff}
.hl-wrap .hl-skin canvas{aspect-ratio:80/56}
