@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700&family=Outfit:wght@300;400;500;600&display=swap');
:root{color-scheme:dark;--white:#f0fcf7;--muted:#b9e3df;--ink:#123f45;--glass:rgba(7,49,61,.48)}*{box-sizing:border-box}html,body{width:100%;height:100%;margin:0;overflow:hidden}body{font-family:'Outfit','Noto Sans KR',sans-serif;color:var(--white);background:#097a91;overscroll-behavior:none}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:inherit;border:0}button:focus-visible,a:focus-visible{outline:2px solid #fff7b3;outline-offset:4px}#ocean{position:absolute;width:100%;height:100%;inset:0;touch-action:none}.vignette{position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(0,39,52,.27),transparent 34%,transparent 65%,rgba(0,28,42,.3))}header{position:absolute;left:42px;right:42px;top:max(28px,env(safe-area-inset-top));display:flex;justify-content:space-between;align-items:center;pointer-events:none}header>*{pointer-events:auto}.brand{display:flex;gap:12px;text-decoration:none;color:inherit;font-family:Outfit,sans-serif;font-size:31px;font-weight:500;letter-spacing:-1.2px;align-items:center}.brand-icon{font-size:56px;font-weight:300;line-height:.7}.brand small{display:block;font-family:'Noto Sans KR',sans-serif;font-size:10px;font-weight:400;letter-spacing:2px;margin-top:4px}.top-actions{display:flex;align-items:center;gap:10px}.live{font-size:11px;letter-spacing:.5px;margin-right:12px;color:#d4f5eb}.live i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#d4f7bf;margin-right:7px}.round{width:40px;height:40px;border:1px solid #ffffff38;background:#ffffff10;backdrop-filter:blur(12px);border-radius:50%;font-size:19px;position:relative}.off-line{position:absolute;height:1px;background:#fff;width:21px;transform:rotate(-50deg);top:19px;left:10px}.location{position:absolute;top:145px;left:44px;pointer-events:none;text-shadow:0 2px 22px #074a6a55}.eyebrow{font-size:10px;letter-spacing:3px;font-weight:500;color:#d3f2df}.eyebrow span{display:inline-block;border-bottom:1px solid #e3f9e7;padding-bottom:7px;margin-right:5px}h1{font-weight:500;letter-spacing:-1.8px;font-size:40px;margin:16px 0 12px}.location p{font-size:12px;font-weight:400;letter-spacing:.1px;color:#def1ec}.coordinates{display:flex;align-items:center;gap:10px;font-size:9px;letter-spacing:2px;margin-top:25px;color:#cff0e4}.tiny-wave{font-size:23px}.coordinates b{font-size:8px;font-weight:400}.depth{position:absolute;right:43px;top:155px;text-align:center;width:65px}.depth>span{font-size:9px;letter-spacing:2px;color:#d6f5ef}.depth strong{font-size:34px;font-weight:300;letter-spacing:-2px}.depth small{font-size:12px;margin-left:4px}.depth-track{height:80px;width:1px;background:#ffffff35;margin:16px auto;position:relative}.depth-track:before,.depth-track:after{content:'';height:1px;width:9px;background:#ffffff66;position:absolute;left:-4px}.depth-track:after{bottom:0}.depth-track i{position:absolute;left:-3px;width:7px;height:7px;border:1px solid white;border-radius:50%;background:#d9f5c4}.depth>span:last-child{letter-spacing:1px;font-size:10px}.bottom{position:absolute;bottom:max(22px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);text-align:center}.hint{font-size:10px;letter-spacing:.5px;margin:0 0 16px;color:#d2eceb;text-shadow:0 1px 6px #002c42}.toolbar{display:flex;gap:4px;background:rgba(4,42,57,.6);border:1px solid #d7ffff2b;padding:7px;border-radius:20px;backdrop-filter:blur(22px);box-shadow:0 12px 40px #00293533;white-space:nowrap}.toolbar button{display:flex;flex-direction:column;align-items:center;gap:5px;background:transparent;border-radius:13px;min-width:78px;padding:10px 13px;font-size:10px;transition:background .2s,color .2s}.toolbar button span{font-family:Arial,sans-serif;font-size:23px;height:26px;line-height:26px}.toolbar button:hover{background:#ffffff16}.toolbar button.active{color:#164c54;background:#e5f5d7;box-shadow:0 3px 12px #163d4b44}.toolbar i{width:1px;background:#ffffff20;margin:10px 4px}.footer-note{font-size:8px;letter-spacing:3px;color:#b0d7dc;margin-top:14px}#joystick{position:absolute;left:58px;bottom:80px;width:110px;height:110px;border-radius:50%;background:#ffffff0c;border:1px solid #ffffff35;touch-action:none;display:flex;align-items:center;justify-content:center}.joystick-ring{position:absolute;border:1px solid #ffffff20;inset:18px;border-radius:50%}#stick{width:46px;height:46px;border-radius:50%;background:#e7f9f12d;border:1px solid #ffffff66;display:flex;align-items:center;justify-content:center;font-size:20px;backdrop-filter:blur(8px)}#joystick small{position:absolute;bottom:-26px;font-size:10px;color:#c8e9e5;letter-spacing:1px}.depth-controls{position:absolute;right:48px;bottom:90px;display:flex;gap:8px;flex-direction:column}.depth-controls button{display:flex;align-items:center;gap:9px;background:#0a45595e;border:1px solid #ffffff35;backdrop-filter:blur(14px);width:92px;padding:10px 14px;border-radius:11px;font-size:21px;touch-action:none}.depth-controls small{font-size:10px}#toast{position:absolute;left:50%;top:28%;transform:translate(-50%,15px);opacity:0;pointer-events:none;transition:.3s;background:#063b4cbd;backdrop-filter:blur(15px);border:1px solid #ffffff24;padding:12px 22px;border-radius:30px;font-size:12px;white-space:nowrap}#toast.show{opacity:1;transform:translate(-50%,0)}dialog{border:1px solid #b7f8e83d;border-radius:24px;padding:28px;background:rgba(8,51,65,.96);color:#e6f7ed;width:min(620px,calc(100% - 32px));box-shadow:0 30px 100px #00192388;max-height:85dvh;overflow:auto}dialog::backdrop{background:#00283c88;backdrop-filter:blur(8px)}.dialog-top{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:22px}h2{font-size:23px;letter-spacing:-.7px;font-weight:500;margin:9px 0}.close{width:34px;height:34px;border-radius:50%;background:#ffffff10;font-size:23px;flex-shrink:0}.place-list{display:grid;gap:10px}.place-card{position:relative;text-align:left;padding:22px 25px;border:1px solid #ffffff25;border-radius:16px;min-height:115px;overflow:hidden}.place-card:after{content:'≋';position:absolute;right:40px;top:-25px;font-size:130px;opacity:.15;font-family:serif;transform:rotate(-20deg)}.coral-card{background:linear-gradient(120deg,#287b80,#298b8b)}.turtle-card{background:linear-gradient(120deg,#256660,#278274)}.wreck-card{background:linear-gradient(120deg,#143c56,#235777)}.place-card span{display:block;font-size:8px;letter-spacing:2px;color:#c7e8d4}.place-card strong{display:block;font-size:21px;font-weight:500;margin:9px 0 7px}.place-card small{font-size:11px;color:#c2e1dd}.place-card b{position:absolute;right:20px;bottom:23px;font-weight:400;font-size:12px}.dialog-note{font-size:10px;color:#a4cac9;line-height:1.8;margin:18px 0 0}#helpDialog>p{font-size:13px;line-height:2;color:#cce5dc}dl{display:grid;grid-template-columns:85px 1fr;font-size:12px;gap:18px 10px;margin-top:24px}dd{margin:0;color:#b4d9d6}#photoPreview{width:100%;border-radius:12px}.photo-actions{display:flex;gap:10px;margin-top:16px}.photo-actions button{flex:1;background:#e5f5d7;color:#164c54;padding:12px;border-radius:10px;font-size:12px}.photo-actions button+button{background:#ffffff16;color:#e5f5d7}#loading{position:fixed;inset:0;background:#0c5669;display:flex;align-items:center;justify-content:center;flex-direction:column;z-index:10;transition:opacity .5s}#loading p{font-size:12px;color:#b4ded4}.loader-wave{font-size:80px;font-weight:300;animation:wave 2s ease-in-out infinite}@keyframes wave{50%{transform:translateY(-10px);opacity:.4}}@media(max-width:700px){header{left:22px;right:20px;top:max(22px,env(safe-area-inset-top))}.brand{font-size:25px;gap:8px}.brand-icon{font-size:44px}.brand small{font-size:8px;letter-spacing:1.2px}.live{display:none}.round{width:34px;height:34px;font-size:16px}.off-line{top:16px;left:7px}.location{top:118px;left:25px}.eyebrow{font-size:8px;letter-spacing:2px}h1{font-size:29px;margin:13px 0 10px}.location p{font-size:10px;max-width:225px;line-height:1.8}.coordinates{margin-top:12px;font-size:8px;gap:7px}.depth{right:18px;top:126px;width:50px}.depth strong{font-size:27px}.depth-track{height:58px;margin:10px auto}.depth>span{font-size:8px}.bottom{bottom:max(18px,env(safe-area-inset-bottom));width:calc(100% - 30px)}.toolbar{justify-content:space-around;padding:6px;gap:0;border-radius:17px}.toolbar button{min-width:0;flex:1;padding:9px 5px;font-size:9px;gap:4px}.toolbar button span{font-size:21px}.toolbar i{margin:10px 3px}.hint{font-size:9px;margin-bottom:12px}.footer-note{font-size:7px;margin-top:11px}#joystick{left:29px;bottom:167px;width:90px;height:90px}#joystick small{bottom:-19px;font-size:9px}#stick{width:40px;height:40px}.depth-controls{right:25px;bottom:165px;gap:7px}.depth-controls button{width:47px;height:47px;padding:0;justify-content:center;font-size:24px}.depth-controls small{display:none}#toast{top:40%;font-size:10px;padding:12px 15px;max-width:93%;white-space:normal;text-align:center}dialog{padding:22px}.dialog-top h2{font-size:20px}}@media(max-height:540px){.location{top:100px}h1{font-size:25px}.location p,.coordinates,.footer-note,.hint{display:none}.depth{top:95px}.depth-track{height:40px}.bottom{bottom:12px;width:auto}.toolbar button{min-width:65px}.toolbar{padding:4px}#joystick{bottom:30px}.depth-controls{bottom:25px}header{top:15px}.location .eyebrow{font-size:8px}}

/* Keep actual connection count visible on phones. */
@media(max-width:700px){.live{display:block;position:absolute;right:0;top:46px;font-size:10px;margin:0}.top-actions{gap:7px}}

body.at-shore>header,body.at-shore>.location,body.at-shore>.depth,body.at-shore>.depth-controls,body.at-shore>#joystick,body.at-shore>.bottom,body.at-shore>#toast{visibility:hidden}
#entry{position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,#163f4a40,transparent 65%);transition:opacity .65s;color:#fffaf0}#entry.diving{opacity:0}.entry-brand{position:absolute;left:42px;top:max(34px,env(safe-area-inset-top));font-size:22px;letter-spacing:-1px;font-weight:600}.entry-brand span{display:block;font:9px Outfit,sans-serif;letter-spacing:3px;margin-top:7px}.entry-title{position:absolute;left:46px;top:24%;text-shadow:0 2px 30px #23484855}.entry-title>div{font:10px Outfit,sans-serif;letter-spacing:4px}.entry-title h1{font-size:57px;letter-spacing:-3px;line-height:1.3;margin:25px 0;font-weight:500}.entry-title p{font-size:13px;line-height:2;color:#fff6e6}.entry-note{position:absolute;left:45px;bottom:36px;font-size:10px;line-height:2.3;letter-spacing:.5px}.entry-note strong{font-weight:400;font-size:12px}.entry-coordinate{position:absolute;right:42px;bottom:46px;text-align:right;font-size:9px;line-height:2;letter-spacing:2px}#blueHole{pointer-events:auto;position:absolute;transform:translate(-50%,-50%);background:transparent;width:85px;height:85px;display:grid;place-items:center;border-radius:50%;touch-action:manipulation}.hole-ring{position:absolute;inset:3px;border:1px solid #ffffffbb;border-radius:50%;animation:hole-pulse 2s ease-out infinite}.hole-dot{display:grid;place-items:center;width:38px;height:38px;background:#e7fbf0eb;border-radius:50%;color:#1c6072;font-size:23px;box-shadow:0 4px 25px #002b4677}.hole-label{position:absolute;top:87px;font-size:11px;white-space:nowrap;text-shadow:0 2px 10px #073e54;background:#063b507a;padding:9px 15px;border:1px solid #fff4;border-radius:25px}#splash{position:fixed;inset:0;background:radial-gradient(ellipse at center,#62d8d8,#08748d);opacity:0;pointer-events:none;z-index:8}#splash.fade{opacity:0!important;transition:opacity .8s}@keyframes hole-pulse{0%{transform:scale(.7);opacity:1}100%{transform:scale(1.35);opacity:0}}@media(max-width:700px){.entry-brand{left:25px;top:28px;font-size:20px}.entry-title{left:26px;top:19%}.entry-title h1{font-size:40px;letter-spacing:-2px;margin:19px 0}.entry-title p{font-size:11px}.entry-title>div{font-size:9px;letter-spacing:3px}.entry-note{left:26px;bottom:32px;font-size:9px}.entry-note strong{font-size:10px}.entry-coordinate{right:24px;bottom:37px;font-size:7px;letter-spacing:1px}.brand{font-size:21px}.brand small{font-size:8px}}@media(prefers-reduced-motion:reduce){.hole-ring{animation:none}}

/* One touch target prevents child implicit capture from cancelling a drag. */
#joystick{z-index:3;user-select:none;-webkit-user-select:none;touch-action:none}
#joystick>*{pointer-events:none}
.depth-controls{z-index:3;user-select:none;-webkit-user-select:none}
.depth-controls button>*{pointer-events:none}

/* Keep directional touch controls above decorative overlays. */
.location,.depth,.hint,.footer-note{pointer-events:none}
#joystick{width:132px;height:132px;z-index:5}
#joystick .swim-direction{pointer-events:auto;position:absolute;width:44px;height:44px;padding:0;background:transparent;color:#effff9;font-size:17px;touch-action:none;border-radius:50%;z-index:2}
.swim-left{left:-4px;top:calc(50% - 22px)}.swim-right{right:-4px;top:calc(50% - 22px)}.swim-forward{top:-4px;left:calc(50% - 22px)}.swim-back{bottom:-4px;left:calc(50% - 22px)}
#joystick .swim-direction:active{background:#ffffff33}
#joystick small{white-space:nowrap}
@media(max-width:700px){#joystick{left:18px;width:124px;height:124px;bottom:157px}}
@media(max-height:540px){#joystick{bottom:28px}}
