/* Ocean Gift — tema hadiah laut dalam, layout ala Ocean Trench / Victor's Company:
   header profil, saldo besar, kartu case, nav bawah. Tanpa emoticon. */
* { box-sizing: border-box; }
body { font-family: system-ui, -apple-system, sans-serif; background: #060a18; color: #eaf2ff; margin: 0; padding: 0; }
#app { max-width: 480px; margin: 0 auto; padding: 14px 14px 120px; }
.screen-title { margin: 4px 0 12px; font-size: 20px; }
.hidden { display: none !important; }
.center { text-align: center; }
.small { font-size: 13px; opacity: .85; line-height: 1.5; }
.logo { height: 56px; text-align: center; }
.gift-svg { width: 56px; height: 56px; color: #ffb020; filter: drop-shadow(0 0 14px rgba(255,176,32,.45)); }
.gift-svg.big { width: 64px; height: 64px; }
.gift-svg.small { width: 36px; height: 36px; }
.card { background: linear-gradient(180deg, #14224a, #0a1230); border: 1px solid #2a4a86; 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; }
.topbar { display: flex; align-items: center; gap: 10px; padding: 4px 2px 12px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #7b5cff, #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: #14224a; border: 1px solid #7b5cff; padding: 3px 8px; border-radius: 999px; display: inline-block; margin-top: 3px; }
.music-btn { background: #14224a; border: 1px solid #2a4a86; color: #eaf2ff; border-radius: 999px; padding: 6px 10px; font-size: 13px; white-space: nowrap; cursor: pointer; font-family: inherit; }
.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; }
.case-card { border-color: #7b5cff; }
.case-head { display: flex; gap: 12px; align-items: center; }
.case-price { font-size: 18px; font-weight: 800; color: #ffd75e; }
.field-label { display: block; font-size: 12px; opacity: .85; margin: 10px 0 4px; }
input { width: 100%; background: #060a18; color: #eaf2ff; border: 1px solid #2a4a86; border-radius: 10px; padding: 12px; font-size: 15px; font-family: inherit; }
.wd-btn { margin-top: 12px; }
.link-btn { background: none; border: 0; color: #00d4ff; text-decoration: underline; font-size: 13px; padding: 0; }
#connected-wallet code, #wallet-address, #wd-confirm-address { word-break: break-all; background: #060a18; padding: 4px 6px; border-radius: 6px; font-size: 12px; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 76px; width: min(440px, calc(100% - 28px)); background: #14224a; border: 1px solid #7b5cff; border-radius: 12px; padding: 12px 14px; font-size: 14px; font-weight: 700; text-align: center; z-index: 20; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
button { font-family: inherit; cursor: pointer; }
button:disabled { opacity: .55; }
button:active { transform: scale(.98); }
.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); }
.small-btn { background: #14224a; color: #eaf2ff; border: 1px solid #2a4a86; border-radius: 10px; padding: 8px 12px; font-size: 13px; margin: 2px 0 8px; width: 100%; }
.small-btn.secondary, .secondary { background: #14224a; }
.action-card { background: linear-gradient(180deg, #14224a, #0a1230); color: #eaf2ff; border: 1px solid #2a4a86; border-radius: 14px; padding: 14px 10px; font-size: 14px; font-weight: 700; text-align: left; }
.action-card.wide { width: 100%; }
.ref-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px solid #2a4a86; font-size: 14px; }
.ref-row:last-child { border-bottom: none; }
.inv-row { margin: 10px 0; }
.inv-head { display: flex; gap: 10px; align-items: center; }
.inv-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.inv-actions .small-btn { margin: 0; }
.rarity-common { color: #9fb3d1; }
.rarity-rare { color: #5ec8ff; }
.rarity-epic { color: #c58cff; font-weight: 700; }
.rarity-legendary { color: #ffd75e; font-weight: 800; }
#roulette-wrap { overflow: hidden; position: relative; padding: 18px 0; }
.roulette-pointer { position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; background: #ffb020; transform: translateX(-50%); z-index: 2; }
#roulette-strip { display: flex; gap: 8px; will-change: transform; }
.roulette-cell { flex: 0 0 120px; background: #060a18; border: 1px solid #2a4a86; border-radius: 10px; padding: 14px 8px; text-align: center; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.roulette-cell.winner { border-color: #ffb020; background: #2a1f08; color: #ffd75e; }
.result-gift { text-align: center; padding: 8px 0; }
.result-gift .gift-svg { width: 84px; height: 84px; }
.result-name { font-size: 22px; font-weight: 800; text-align: center; margin: 4px 0; }
#bottom-nav { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: min(480px, 100%); display: flex; background: rgba(8, 14, 36, .97); border-top: 1px solid #2a4a86; padding: 6px 4px calc(8px + env(safe-area-inset-bottom)); z-index: 10; }
#bottom-nav button { flex: 1; background: none; border: 0; color: #7fa8c4; font-size: 20px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; }
#bottom-nav button.active { color: #fff; }
#bottom-nav button.active span { color: #00d4ff; }
#bottom-nav button span { font-size: 11px; }
