/* Ocean Trench — tema laut dalam, layout ala miniapp Victor's Company:
   header profil, saldo besar, arena berburu di tengah, kartu aksi, nav bawah. */
* { box-sizing: border-box; }
body { font-family: system-ui, -apple-system, sans-serif; background: #020d18; color: #eaf6ff; margin: 0; padding: 0; }
#app { max-width: 480px; margin: 0 auto; padding: 14px 14px 84px; }
.hidden { display: none !important; }
.center { text-align: center; }
.small { font-size: 13px; opacity: .85; line-height: 1.5; }
.logo { font-size: 56px; text-align: center; }
.card { background: linear-gradient(180deg, #0b3d5c, #072a42); border: 1px solid #155e86; border-radius: 18px; padding: 18px; margin: 12px 0; line-height: 1.6; }
.lang-card { text-align: center; margin-top: 30px; }
.lang-card h1 { margin: 6px 0; }
#lang-buttons { display: grid; gap: 8px; margin-top: 12px; }

/* Header */
.topbar { display: flex; align-items: center; gap: 10px; padding: 4px 2px 12px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #1e90ff, #00d4ff); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; color: #fff; flex: none; }
.who { flex: 1; min-width: 0; }
.who b { display: block; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-badge { font-size: 12px; background: #0b3d5c; border: 1px solid #1e90ff; padding: 3px 8px; border-radius: 999px; display: inline-block; margin-top: 3px; }
.streak-pill { background: #3d1a06; border: 1px solid #ff8c1a; border-radius: 999px; padding: 6px 10px; font-size: 13px; white-space: nowrap; }

/* Saldo */
.balance-hero { text-align: center; padding: 6px 0 12px; }
.balance-label { font-size: 13px; opacity: .8; text-transform: uppercase; letter-spacing: 1px; }
.balance-value { font-size: 40px; line-height: 1.1; }
.balance-value .coin { font-size: 18px; }
.balance-gram { font-size: 13px; opacity: .75; margin-top: 2px; }
.progress-wrap { margin-top: 10px; }
.progress-bar { height: 10px; background: #0b3d5c; border-radius: 999px; overflow: hidden; }
#progress-fill { height: 100%; width: 2%; background: linear-gradient(90deg, #00d4ff, #1e90ff, #7b5cff); transition: width .5s; }
.progress-text { font-size: 12px; opacity: .85; margin-top: 5px; }

/* Arena laut dalam */
.ocean { position: relative; height: 220px; border-radius: 20px; overflow: hidden; border: 1px solid #155e86; margin: 4px 0 12px; background: linear-gradient(180deg, #0a4a6b 0%, #06283d 55%, #031626 100%); transition: background 1s; }
.ocean.depth-2 { background: linear-gradient(180deg, #083a5c 0%, #041e33 60%, #02101f 100%); }
.ocean.depth-3 { background: linear-gradient(180deg, #062e4d 0%, #031626 60%, #010c16 100%); }
.ocean.depth-4 { background: linear-gradient(180deg, #042238 0%, #020f1d 60%, #00080f 100%); }
.ocean.depth-5 { background: linear-gradient(180deg, #020e1c 0%, #00060f 70%, #00040a 100%); }
.rays { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(180,230,255,.10) 48%, transparent 56%, rgba(180,230,255,.07) 64%, transparent 72%); }
.bubbles i { position: absolute; bottom: 18px; width: 7px; height: 7px; border-radius: 50%; background: rgba(200,235,255,.5); animation: rise 6s linear infinite; }
.bubbles i:nth-child(1) { left: 12%; animation-delay: 0s; }
.bubbles i:nth-child(2) { left: 28%; animation-delay: 1.2s; width: 5px; height: 5px; }
.bubbles i:nth-child(3) { left: 48%; animation-delay: 2.4s; }
.bubbles i:nth-child(4) { left: 63%; animation-delay: .6s; width: 9px; height: 9px; }
.bubbles i:nth-child(5) { left: 78%; animation-delay: 3s; width: 5px; height: 5px; }
.bubbles i:nth-child(6) { left: 90%; animation-delay: 1.8s; }
@keyframes rise { from { transform: translateY(0); opacity: 0; } 15% { opacity: .9; } to { transform: translateY(-170px); opacity: 0; } }
.prey { position: absolute; font-size: 24px; animation: swim 9s linear infinite; }
.prey.p1 { top: 22%; animation-duration: 11s; }
.prey.p2 { top: 44%; animation-duration: 8s; animation-delay: -3s; font-size: 20px; }
.prey.p3 { top: 60%; animation-duration: 13s; animation-delay: -6s; }
.prey.p4 { top: 34%; animation-duration: 10s; animation-delay: -1.5s; font-size: 18px; }
.prey.p5 { top: 52%; animation-duration: 9s; animation-delay: -4.5s; font-size: 22px; }
@keyframes swim { from { right: -30px; transform: scaleX(1); } to { right: 110%; transform: scaleX(1); } }
.hunter { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 72px; filter: drop-shadow(0 0 18px rgba(0,212,255,.45)); animation: bob 3s ease-in-out infinite; transition: transform .6s; }
@keyframes bob { 0%, 100% { transform: translate(-50%, -54%); } 50% { transform: translate(-50%, -46%); } }
.ocean.hunting .hunter { animation: lunge 1.1s ease-in-out; }
@keyframes lunge { 0% { transform: translate(-50%, -50%) scale(1); } 40% { transform: translate(-20%, -60%) scale(1.15); } 100% { transform: translate(-50%, -50%) scale(1); } }
.ocean.hunting .prey.p1 { animation: caught 1.1s ease-in; }
@keyframes caught { to { opacity: 0; transform: translateX(-60px) scale(.4); } }
.catch-float { position: absolute; left: 50%; top: 22%; transform: translateX(-50%); font-size: 22px; font-weight: 800; color: #ffd75e; text-shadow: 0 2px 8px #000; animation: floatup 1.4s ease-out forwards; }
@keyframes floatup { from { opacity: 0; transform: translate(-50%, 10px); } 20% { opacity: 1; } to { opacity: 0; transform: translate(-50%, -34px); } }
.seabed { position: absolute; bottom: 6px; left: 0; right: 0; text-align: center; font-size: 20px; letter-spacing: 6px; opacity: .9; }
.ocean-caption { position: absolute; top: 8px; left: 10px; font-size: 12px; background: rgba(0,0,0,.35); padding: 4px 8px; border-radius: 999px; }
.pass-status { position: absolute; top: 8px; right: 10px; font-size: 12px; background: rgba(0,0,0,.35); padding: 4px 8px; border-radius: 999px; }

/* Tombol & kartu */
button { font-family: inherit; cursor: pointer; }
.hunt-btn { width: 100%; background: linear-gradient(135deg, #ffb020, #ff7a1a); color: #201200; border: 0; border-radius: 16px; padding: 16px; font-size: 18px; font-weight: 800; box-shadow: 0 6px 20px rgba(255,150,20,.35); }
.hunt-btn:active { transform: scale(.98); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.action-card { background: linear-gradient(180deg, #0b3d5c, #082f49); color: #eaf6ff; border: 1px solid #155e86; border-radius: 14px; padding: 14px 10px; font-size: 14px; font-weight: 700; text-align: left; }
.action-card small { display: block; font-weight: 400; font-size: 11px; opacity: .8; margin-top: 4px; line-height: 1.4; }
.action-card.wide { grid-column: 1 / -1; }
.action-card.secondary { background: #0b3d5c; }
#msg { min-height: 1.2em; font-weight: bold; text-align: center; margin: 12px 0 4px; }

/* Nav bawah */
#bottom-nav { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: min(480px, 100%); display: flex; background: rgba(4, 26, 43, .97); border-top: 1px solid #155e86; padding: 6px 4px calc(8px + env(safe-area-inset-bottom)); z-index: 10; }
#bottom-nav button { flex: 1; background: none; border: 0; color: #bfe3ff; font-size: 20px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; }
#bottom-nav button span { font-size: 11px; }
