/* v120 상단 B앱 방식 — 정리본 (v1.9.617, HanJin). 591~616 누적 규칙을 기능별로 묶음, 적용값 동일(계산 스타일 비교 검증). v87 --stop 끌어올림은 무력화 금지 */
/* 1. 톤막·상단 유리막 */
#tonewash{-webkit-mask-image:linear-gradient(180deg,transparent 0,transparent calc(env(safe-area-inset-top,0px) + 120px),#000 calc(env(safe-area-inset-top,0px) + 240px))!important;mask-image:linear-gradient(180deg,transparent 0,transparent calc(env(safe-area-inset-top,0px) + 120px),#000 calc(env(safe-area-inset-top,0px) + 240px))!important}
body::after{content:"";position:fixed;left:0;right:0;top:0;height:calc(env(safe-area-inset-top,0px) * .22);pointer-events:none;z-index:2147483000;background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,0));-webkit-backdrop-filter:blur(6px) saturate(1.15);backdrop-filter:blur(6px) saturate(1.15);-webkit-mask-image:linear-gradient(180deg,#000 40%,transparent);mask-image:linear-gradient(180deg,#000 40%,transparent)}
/* 2. 이중 배경·파란 비침 차단(tone-on) */
#device.tone-on{background:var(--tone-deep-live)!important}
#device.tone-on > #bg{opacity:0!important;transition:none!important}
html body[data-theme] #device.tone-on,html body #device.tone-on{background-image:none!important;background-color:var(--tone-deep-live)!important}
html body #device.tone-on #sky,html body #device.tone-on .sky{opacity:0!important;background-color:transparent!important;transition:none!important}
/* 3. 상단 버튼: 바탕·흐림 없음, 흰 글씨+옅은 그림자, 로고 밝은 금색 */
body[data-theme] .screen .topbar .chip,body[data-theme] .screen .topbar .top-alt,body[data-theme] .screen .scene-btn.bk{background:transparent!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;box-shadow:none!important;border-color:transparent!important;color:#fff!important;text-shadow:0 1px 3px rgba(0,0,0,.55),0 0 1px rgba(0,0,0,.4)!important}
body[data-theme] .screen .topbar .chip svg,body[data-theme] .screen .topbar .top-alt svg,body[data-theme] .screen .scene-btn.bk svg{filter:drop-shadow(0 1px 2px rgba(0,0,0,.55))!important}
body[data-theme] .screen .topbar .brand,body[data-theme] .screen .topbar .brand *{color:#FFE7A8!important;text-shadow:0 1px 3px rgba(0,0,0,.6),0 0 1px rgba(0,0,0,.45)!important}
body[data-theme] .screen .scene-btn.bk{box-shadow:inset 0 0 0 1px rgba(255,255,255,.22)!important}
body[data-theme] .screen .scene-btn.bk::before,body[data-theme] .screen .scene-btn.bk::after{display:none!important}
html body[data-theme] .screen .topbar .chip,html body[data-theme] .screen .topbar .top-alt,html body[data-theme] .screen .topbar .chip *,html body[data-theme] .screen .topbar .top-alt *{color:rgba(255,255,255,.88)!important;font-weight:600!important;text-shadow:0 1px 3px rgba(0,0,0,.45)!important}
html body[data-theme] .screen .topbar .chip,html body[data-theme] .screen .topbar .top-alt{background:transparent!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
html body[data-theme] .screen .topbar .chip{font-size:18.6px!important;color:#fff!important;opacity:1!important}
html body[data-theme] .screen .topbar .chip svg{color:#fff!important}
html body[data-theme] .screen .topbar .brand{font-size:17.8px!important;filter:brightness(1.3)!important}
/* 4. 상단 줄 높이 통일: 기준=내 기록, 나머지는 --b365dn 만큼 함께 이동(배경 영상은 맨 위 고정) */
html body[data-theme] #device>.screen:not(#s-records) .topbar{transform:translateY(max(0px,calc(env(safe-area-inset-top,0px)*.27 - 10px)))!important}
html body[data-theme] #s-records .topbar{top:calc(-12px - env(safe-area-inset-top,0px)*.17)!important}
html body[data-theme] #device>.screen:not(#s-records){--b365dn:max(0px,calc(env(safe-area-inset-top,0px)*.27 - 10px))}
html body[data-theme] #device>.screen:not(#s-records) .scene-btn,html body[data-theme] #device>.screen:not(#s-records) .top-alt,html body[data-theme] #device>.screen:not(#s-records) .ocean-scene-copy,html body[data-theme] #device>.screen:not(#s-records) .hero-btns{translate:0 var(--b365dn)}
html body[data-theme] #device>.screen:not(#s-records) .ocean-scene{margin-bottom:var(--b365dn)!important}
/* 5. SNS 버튼 동일 투명도(크기는 sharerail.js 1.35 고정) */
html body .share-rail .sr-b{opacity:.6!important}
/* 6. 고무줄 스크롤·전체보기 상태바 덮기 */
.screen .scroll{overscroll-behavior-y:auto!important;-webkit-overflow-scrolling:touch}
html body .ocean-lightbox{top:calc(-1 * env(safe-area-inset-top,0px))!important;padding-top:0!important}
.hero-lb2 .ocean-lightbox-shade{background:linear-gradient(180deg,rgba(6,15,26,0),rgba(5,13,24,0) 48%,rgba(4,10,18,.88))!important}
/* v1.9.648 (HanJin) 상단: 톱니바퀴 2배, 꺽쇠 연회색 바탕, 로고 가독성, SNS 10% 축소·투명도 통일, 배경 제목 얇게·페이드인 */
html body #topAlt svg{width:34px!important;height:34px!important}
html body[data-theme] .screen .scene-btn,html body[data-theme] #sceneBtn{background:rgba(120,120,120,.30)!important;border-radius:50%!important}
html body .topbar .brand{text-shadow:0 1px 3px rgba(0,0,0,.55),0 0 10px rgba(0,0,0,.25)!important}
html body .share-rail{zoom:.9}
html body .share-rail .sr-b{opacity:.85!important}
html body .ocean-scene-copy b,html body .ocean-scene-copy>span{transition:opacity .9s ease!important}
html body .ocean-scene-copy b{font-weight:500!important}
html body .ocean-scene-copy>span,html body .ocean-scene-copy.cap-on b,html body .ocean-scene-copy.cap-on>span,html body .ocean-scene-copy.cap-on .hcap-ch{font-weight:300!important}
/* v1.9.649 (HanJin) 배경 전체보기 우측 하단 수직 버튼바 — 화면 오른쪽 끝에 밀착, 바탕 투명도 85%, 외곽 테두리 없음 */
.ocean-lightbox .hero-vbar{position:absolute;right:0;bottom:calc(env(safe-area-inset-bottom,0px) + 190px);z-index:30;display:flex;flex-direction:column;gap:6px;opacity:0;pointer-events:none;transition:opacity .5s ease}
.ocean-lightbox .hero-vbar.show{opacity:1;pointer-events:auto}
.ocean-lightbox .vbar-btn{width:52px;height:52px;border:0;border-radius:8px 0 0 8px;background:rgba(20,20,20,.15);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);color:#fff;display:grid;place-items:center;align-content:center;gap:1px;padding:0}
.ocean-lightbox .vbar-btn svg{width:22px;height:22px;filter:drop-shadow(0 1px 2px rgba(0,0,0,.45))}
.ocean-lightbox .vbar-btn i{font-style:normal;font-size:10px;line-height:1;opacity:.9;text-shadow:0 1px 2px rgba(0,0,0,.5)}
.ocean-lightbox .vbar-btn.on svg{fill:rgba(255,220,140,.85)}
.ocean-lightbox .vbar-btn:active{transform:scale(.94)}
/* v1.9.650 (HanJin) 전체보기 수직바가 보이는 동안 우측 '다음' 화살표를 왼쪽으로 비켜 겹침 방지 */
.ocean-lightbox .lb-chev{margin-top:-124px!important}
.ocean-lightbox .hero-vbar{right:0!important;margin:0!important}
.ocean-lightbox .hero-vbar .vbar-btn{margin-right:0!important;border-right:0!important;border-top-right-radius:0!important;border-bottom-right-radius:0!important}
/* v1.9.654 (HanJin) 수면↔명상 버튼: 누르는 즉시 부드러운 반응 */
.rest-side button{transition:background-color .6s cubic-bezier(.22,.61,.36,1),color .6s,box-shadow .6s,transform .35s!important}
.rest-side button.rs-press{transform:scale(.97)}
/* v1.9.655 (HanJin) 전체보기 탭: 재생 삼각형 더 진하게, 다시 재생 시 정지 표시 1초 */
.hero-lb2.paused:not(.tray-open) .lb-play{opacity:1!important}
.hero-lb2 .lb-play{background:rgba(0,0,0,.38)!important;color:rgba(255,255,255,.95)!important}
.hero-lb2 .lb-ppflash{position:absolute;left:50%;top:50%;width:96px;height:96px;margin:-48px 0 0 -48px;border-radius:50%;background:rgba(0,0,0,.38);display:flex;align-items:center;justify-content:center;opacity:0;pointer-events:none;transition:opacity .45s ease;z-index:30}
.hero-lb2 .lb-ppflash svg{width:46px;height:46px;fill:rgba(255,255,255,.92)}
.hero-lb2.pp-flash .lb-ppflash{opacity:1}

/* v1.9.659 (HanJin) 전체보기 버튼 ㄴ자 배치: 아래 4(배경·찜·패턴·사운드) + 우측 벽 2(위 비주얼·아래 타이머) */
.ocean-lightbox .hero-vbar.vb-L{display:grid!important;grid-template-columns:repeat(5,52px);grid-template-rows:52px 52px;gap:6px!important;flex-direction:unset}
.ocean-lightbox .vb-L .vb-r1{grid-column:5;grid-row:1}.ocean-lightbox .vb-L .vb-r2{grid-column:5;grid-row:2}
.ocean-lightbox .vb-L .vb-b1{grid-column:1;grid-row:2}.ocean-lightbox .vb-L .vb-b2{grid-column:2;grid-row:2}.ocean-lightbox .vb-L .vb-b3{grid-column:3;grid-row:2}.ocean-lightbox .vb-L .vb-b4{grid-column:4;grid-row:2}
.ocean-lightbox .vb-L .vb-b1,.ocean-lightbox .vb-L .vb-b2,.ocean-lightbox .vb-L .vb-b3,.ocean-lightbox .vb-L .vb-b4{border-radius:8px!important}
.ocean-lightbox .vb-flash{animation:vbFlash 1.2s ease}@keyframes vbFlash{0%,100%{filter:none}40%{filter:drop-shadow(0 0 10px rgba(212,175,55,.9))}}
/* v1.9.660 (HanJin) 스케치 배치: 하단 기존 배경·사운드 버튼 제거 → 아래 4칸 + 맨 오른쪽 1칸 비움 + 그 위 2칸 */
.ocean-lightbox .lb-title .lb-scnpick,.ocean-lightbox .lb-title .lb-sndpick{display:none!important}
.ocean-lightbox .hero-vbar.vb-L{grid-template-rows:52px 52px 52px!important}
.ocean-lightbox .vb-L .vb-r1{grid-column:5!important;grid-row:1!important}.ocean-lightbox .vb-L .vb-r2{grid-column:5!important;grid-row:2!important}
.ocean-lightbox .vb-L .vb-b1,.ocean-lightbox .vb-L .vb-b2,.ocean-lightbox .vb-L .vb-b3,.ocean-lightbox .vb-L .vb-b4{grid-row:3!important}
/* 바탕 단계: 플레이 .27(기존 .38에서 30%↓) → X .19(70%) → 하트 .15(X의 80%) */
.lb-play{background:rgba(0,0,0,.27)!important}
.ocean-lightbox .lb-x{background:rgba(0,0,0,.19)!important;border-radius:50%}
.ocean-lightbox .lb-favonly{background:rgba(0,0,0,.15)!important;border-radius:50%}
.ocean-lightbox .vb-L .vb-b1,.ocean-lightbox .vb-L .vb-b2,.ocean-lightbox .vb-L .vb-b3,.ocean-lightbox .vb-L .vb-b4{background:rgba(20,20,20,.15)!important;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.ocean-lightbox .hero-vbar.vb-L{transform:translateY(-64px)}
