/* Oceanography lesson. All rules scoped under .ocn-* */
.ocn-sc { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; }

/* the dive: the ocean to scale, a camera on a rope */
.ocn-dive { flex: 1; min-height: 0; width: 100%; position: relative; padding: 0 16px 12px; display: flex; flex-direction: column; touch-action: none; user-select: none; -webkit-user-select: none; }
.ocn-dship { position: relative; z-index: 2; width: 92px; margin: 0 0 -14px calc(32% - 46px); pointer-events: none; }
.ocn-col { position: relative; flex: 1; min-height: 0; border-radius: 18px; overflow: hidden;
  background: linear-gradient(to bottom, #58b8f2 0%, #2a7cc4 2.7%, #0f3c72 5.4%, #071a33 13%, #020812 27%, #010307 100%);
  box-shadow: inset 0 0 0 1px rgba(169,155,255,.18); }
.ocn-bed { position: absolute; left: 0; right: 0; bottom: 0; height: 6%; background: #3a2b22; border-top: 2px solid #5a4434; }
.ocn-rope { position: absolute; left: 32%; top: 0; width: 2px; margin-left: -1px; height: 0; background: rgba(234,227,215,.55); }
.ocn-cam { position: absolute; left: 32%; top: 0; width: 44px; height: 44px; margin: -6px 0 0 -22px; display: flex; align-items: center; justify-content: center; cursor: grab; }
.ocn-cam i { width: 26px; height: 20px; border-radius: 6px; background: var(--gold); box-shadow: 0 0 0 2px #FFE08A, 0 0 14px rgba(252,192,80,.6); position: relative; }
.ocn-cam i::after { content: ''; position: absolute; left: 7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: #1a2136; box-shadow: inset 0 0 0 2px #3a4466; }
.ocn-cam.dark i { box-shadow: 0 0 0 2px #FFE08A, 0 0 26px 8px rgba(252,192,80,.35); }
.ocn-read { position: absolute; right: 50px; top: 10px; white-space: nowrap; font: 700 15px var(--sans); color: var(--text); text-shadow: 0 1px 4px rgba(0,0,0,.8); }
.ocn-mk { position: absolute; left: 46%; right: 8px; transform: translateY(-50%); font: 500 13px/1.25 var(--sans); color: var(--text); opacity: 0; transition: opacity .4s; border-top: 1px dashed rgba(234,227,215,.5); padding-top: 3px; }
.ocn-mk b { display: block; font-size: 15px; color: var(--gold); }
.ocn-mk.m1 { transform: none; }
.ocn-mk.m3 { transform: translateY(-100%); border-top: none; border-bottom: 1px dashed rgba(234,227,215,.5); padding: 0 0 3px; }
.ocn-mk.on { opacity: 1; }

/* the net */
.ocn-net { position: relative; width: 100%; max-width: 330px; height: 220px; margin: 0; }
.ocn-netbox { position: absolute; inset: 0; border-radius: 18px; background: linear-gradient(to bottom, #0f3c72, #020812 40%, #010307); transition: opacity .6s; }
.ocn-netrope { position: absolute; left: 50%; top: 0; height: 62%; border-left: 2px dashed rgba(234,227,215,.55); }
.ocn-netbag { position: absolute; left: 50%; top: 60%; width: 64px; height: 54px; margin-left: -32px; border-radius: 10px 10px 30px 30px;
  background: repeating-linear-gradient(45deg, rgba(234,227,215,.35) 0 2px, transparent 2px 9px), repeating-linear-gradient(-45deg, rgba(234,227,215,.35) 0 2px, transparent 2px 9px); }
.ocn-haul { position: absolute; left: 50%; top: 50%; width: 92%; transform: translate(-50%, -30%) scale(.8); opacity: 0; transition: opacity .6s, transform .8s cubic-bezier(.2,.8,.2,1); }
.ocn-net.up .ocn-netbox { opacity: .25; }
.ocn-net.up .ocn-haul { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* cross-sections: the echo and the Atlantic */
.ocn-sec { position: relative; width: 100%; max-width: 360px; touch-action: none; user-select: none; -webkit-user-select: none; }
.ocn-secsvg { display: block; width: 100%; height: auto; border-radius: 16px; overflow: hidden; }
.ocn-sship { position: absolute; top: 0; width: 22%; transform: translate(-50%, -2%); pointer-events: none; }
.ocn-sec.atl .ocn-sship { width: 17%; transition: opacity .4s; }
.ocn-ground { fill: #3a2b22; transition: fill .3s; }
.ocn-sec.hit .ocn-ground { fill: #6a4f3c; }
.ocn-ping { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; }
.ocn-t { font: 700 15px var(--sans); fill: var(--text); }
.ocn-ans { fill: var(--gold); font-size: 14px; }
.ocn-land { fill: #3f6b45; stroke: #6fa877; stroke-width: 1; }
.ocn-lt { font: 600 13px var(--sans); fill: var(--text); }
.ocn-floor { fill: #4a372b; stroke: #c99a6e; stroke-width: 1.5; stroke-linejoin: round; }
.ocn-beam { stroke: var(--gold); stroke-width: 1.5; stroke-dasharray: 3 4; opacity: .9; }
.ocn-labs { opacity: 0; transition: opacity .5s; }
.ocn-sec.done .ocn-labs { opacity: 1; }
.ocn-mtn { fill: var(--gold); }
.ocn-quakes circle { fill: #FFE08A; stroke: #C98C1B; stroke-width: 1; animation: ocnQuake 1.6s ease-in-out infinite; }
.ocn-quakes circle:nth-child(2) { animation-delay: .4s; } .ocn-quakes circle:nth-child(3) { animation-delay: .8s; } .ocn-quakes circle:nth-child(4) { animation-delay: 1.2s; }
@keyframes ocnQuake { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.ocn-crk { fill: var(--gold); }
.ocn-arrows { fill: none; stroke: var(--violet-bright); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .5s; }
.ocn-sec.split .ocn-arrows { opacity: 1; }

/* the rocks across the ridge */
.ocn-ridge { width: 100%; max-width: 360px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ocn-ridgewrap { position: relative; width: 100%; }
.ocn-ridgesvg { display: block; width: 100%; height: auto; border-radius: 16px; overflow: hidden; }
.ocn-crkl { stroke: var(--gold); stroke-width: 1.5; stroke-dasharray: 3 3; }
.ocn-rock { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0; border: 0; background: none; cursor: pointer; }
.ocn-rock i { display: block; width: 22px; height: 18px; margin: 0 auto; border-radius: 9px 12px 8px 11px; background: #8a7a6c; box-shadow: inset -3px -3px 0 rgba(0,0,0,.25), 0 0 0 2px #c99a6e; }
.ocn-rock span { position: absolute; left: 50%; bottom: 38px; transform: translateX(-50%); white-space: nowrap; font: 700 12px/1.1 var(--sans); color: var(--gold); opacity: 0; transition: opacity .3s; background: rgba(10,14,26,.8); padding: 2px 5px; border-radius: 6px; }
.ocn-rock.first span { left: 0; transform: none; }
.ocn-rock.last span { left: auto; right: 0; transform: none; }
.ocn-rock.aged span { opacity: 1; }
.ocn-rock.aged i { background: #b39a84; }
.ocn-rock.picked i { box-shadow: inset -3px -3px 0 rgba(0,0,0,.25), 0 0 0 3px var(--gold); }
.ocn-capt { font: 500 12px var(--sans); color: var(--dim); }
.ocn-ridge.split .ocn-arrows { opacity: 1; }

/* the bath toys */
.ocn-toy { position: absolute; width: 22px; height: auto; margin: -11px 0 0 -11px; pointer-events: none; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.ocn-cols { display: flex; justify-content: space-around; width: 100%; font: 700 14px var(--sans); color: var(--gold); letter-spacing: .04em; text-transform: uppercase; }
.ocn-map { position: relative; width: 100%; max-width: 380px; }
.ocn-toyimg { display: block; width: 46%; margin: 0 auto 4px; }
.ocn-mapwrap { position: relative; }
.ocn-mapsvg { display: block; width: 100%; height: auto; border-radius: 14px; overflow: hidden; }
.ocn-pac { fill: #0d3466; }
.ocn-np { fill: #3f6b45; stroke: #6fa877; stroke-width: .6; }
.ocn-ml { font: 600 13px var(--sans); fill: var(--text); }
.ocn-date { font: 700 14px var(--sans); fill: var(--gold); }
.ocn-drift { fill: none; stroke: var(--violet-bright); stroke-width: 2.5; stroke-dasharray: 1000; stroke-dashoffset: 1000; stroke-linecap: round; }
.ocn-sitka { opacity: 0; transition: opacity .4s; }
.ocn-sitka circle { fill: var(--gold); }
.ocn-map.ashore .ocn-sitka { opacity: 1; }
.ocn-spill { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: radial-gradient(circle, var(--gold) 0 7px, rgba(252,192,80,.25) 8px 14px, transparent 15px); }

@media (max-height: 700px) {
  .ocn-dship { width: 74px; margin-left: calc(32% - 37px); margin-bottom: -12px; }
  .ocn-net { height: 190px; }
  .ocn-toyimg { width: 36%; }
}
