:root {
  --green: #2f7d32; --green-2: #43a047; --sea: #19b5b0; --sand: #fff3ce; --coral: #ff6f61; --sun: #ffc93c;
  --ink: #163a55; --white: #fff; --accent: #2f7d32;
  --display: 'Baloo 2', 'Nunito', system-ui, sans-serif; --body: 'Nunito', system-ui, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #39a9f5; font-family: var(--body); color: var(--ink); user-select: none; -webkit-user-select: none; touch-action: manipulation; }
#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
#fade { position: fixed; left: 0; right: 0; top: 0; height: 100%; background: linear-gradient(#35d0c9, #1fa6b8); pointer-events: none; z-index: 30; transform: translateY(calc(100% + 130px)); transition: transform .58s cubic-bezier(.65, 0, .25, 1); }
#fade::before, #fade::after { content: ''; position: absolute; left: 0; right: 0; height: 64px; background-repeat: repeat-x; background-size: 260px 64px; }
#fade::before { top: -62px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 64' preserveAspectRatio='none'%3E%3Cpath d='M0 34 Q32 0 65 34 T130 34 T195 34 T260 34 V64 H0Z' fill='%2335d0c9'/%3E%3C/svg%3E"); }
#fade::after { top: -86px; background-position: 90px 0; opacity: .9; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 64' preserveAspectRatio='none'%3E%3Cpath d='M0 34 Q32 0 65 34 T130 34 T195 34 T260 34 V64 H0Z' fill='%23ffffff'/%3E%3C/svg%3E"); z-index: -1; }
#fade.on { transform: none; }
.confetti { position: fixed; top: -20px; width: 11px; height: 16px; border-radius: 3px; z-index: 40; pointer-events: none; animation: fall 2.4s cubic-bezier(.3, .2, .6, 1) forwards; }
@keyframes fall { to { transform: translate(var(--x), 110vh) rotate(var(--r)); opacity: .9; } }
@keyframes wob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-7%) rotate(-2.5deg); } }
@keyframes shine { 0%, 60% { transform: translateX(-160%) skewX(-20deg); } 100% { transform: translateX(260%) skewX(-20deg); } }
#ui { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
.screen { position: absolute; inset: 0; display: none; pointer-events: none; }
.screen.on { display: block; animation: fadein .45s ease both; }
.screen.on button, .screen.on .panel, .screen.on .card, .screen.on [data-live] { pointer-events: auto; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.06); } 100% { transform: scale(1); opacity: 1; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-7px); } 75% { transform: translateX(7px); } }

button { font-family: var(--display); cursor: pointer; border: 0; color: inherit; }
.btn { background: var(--accent); color: #fff; font-weight: 800; font-size: 18px; letter-spacing: .04em; padding: 12px 26px; border-radius: 16px; box-shadow: 0 6px 0 rgba(0, 0, 0, .22), 0 14px 24px rgba(0, 0, 0, .18); transition: transform .12s, box-shadow .12s, filter .12s; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0, 0, 0, .22); }
.btn.big { font-size: 22px; padding: 14px 38px; border-radius: 20px; position: relative; overflow: hidden; }
.btn.big::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); animation: shine 3.2s ease-in-out infinite; pointer-events: none; }
.btn.alt { background: #fff; color: var(--ink); }
.btn.coral { background: var(--coral); }
.ghost { background: transparent; color: #fff; font-size: 16px; font-weight: 700; opacity: .85; }
.pill { background: rgba(255, 255, 255, .92); color: var(--ink); font-weight: 800; font-size: 15px; padding: 10px 18px; border-radius: 999px; box-shadow: 0 4px 0 rgba(0, 0, 0, .15); }
.pill:active { transform: translateY(3px); box-shadow: none; }
.round { width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .9); font-size: 20px; font-weight: 800; box-shadow: 0 4px 0 rgba(0, 0, 0, .16); }
.round.corner { position: absolute; right: 16px; bottom: 16px; pointer-events: auto; z-index: 5; }

/* Pembuka */
#intro.on { display: flex; align-items: center; justify-content: center; }
#intro-text { font-family: var(--display); font-weight: 800; color: #fff; font-size: clamp(30px, 6vw, 64px); text-align: center; max-width: 12em; line-height: 1.15; margin: 0; text-shadow: 0 4px 0 rgba(0, 0, 0, .12); }
#intro-text span { display: inline-block; opacity: 0; transform: translateY(18px); transition: opacity .35s, transform .35s; margin: 0 .14em; }
#intro-text span.in { opacity: 1; transform: none; }
#intro-skip { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); }

/* Wordmark */
.wordmark { font-family: var(--display); font-weight: 800; margin: 0; line-height: .9; color: #fff; letter-spacing: .02em; text-shadow: 0 5px 0 rgba(0, 0, 0, .16), 0 14px 30px rgba(0, 60, 90, .35); font-size: clamp(64px, 13vw, 150px); }
.wordmark { text-shadow: 0 .05em 0 #1596a0, 0 .09em 0 #0f7f8a, 0 .2em .3em rgba(0, 60, 90, .35); }
.wordmark span { color: #fff; }
.wordmark b { color: var(--sun); font-weight: 800; text-shadow: 0 .05em 0 #e09a00, 0 .09em 0 #c27f00, 0 .2em .3em rgba(0, 60, 90, .35); }
.wordmark i { display: inline-block; font-style: normal; animation: wob 2.8s ease-in-out infinite; animation-delay: calc(var(--i) * .13s); }
.wordmark.small { font-size: 34px; background: none; pointer-events: auto; }

/* Beranda */
#home.on { display: flex; align-items: center; justify-content: center; }
.home-center { text-align: center; padding: 20px; margin-top: -6vh; }
.presented { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; animation: pop .6s .1s both; }
.presented img { height: 34px; border-radius: 4px; box-shadow: 0 3px 10px rgba(0, 0, 0, .2); }
.presented span { color: #fff; font-weight: 900; }
.presented em { flex-basis: 100%; color: #fff; font-style: normal; font-weight: 700; font-size: 14px; opacity: .95; }
#home .wordmark { animation: pop .7s .25s both; }
.tagline { font-family: var(--display); font-weight: 700; color: #fff; font-size: clamp(18px, 3vw, 28px); margin: 6px 0 22px; text-shadow: 0 2px 0 rgba(0, 0, 0, .14); animation: pop .6s .45s both; }
#btn-start { background: var(--coral); animation: pop .6s .65s both, bob 2.4s 1.4s ease-in-out infinite; }

/* Pilih pulau */
.topbar { position: absolute; top: 14px; left: 0; right: 0; text-align: center; }
.arrow { position: absolute; top: 50%; width: 58px; height: 58px; margin-top: -29px; border-radius: 50%; background: rgba(255, 255, 255, .18); border: 3px solid #fff; color: #fff; font-size: 34px; line-height: 1; font-weight: 800; transition: transform .15s, background .15s; }
.arrow:hover { background: rgba(255, 255, 255, .35); transform: scale(1.08); }
.arrow.left { left: 18px; } .arrow.right { right: 18px; }
.island-info { position: absolute; right: 9vw; top: 50%; transform: translateY(-50%); width: min(40vw, 440px); color: #fff; text-align: center; }
.island-info h2 { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 5vw, 62px); line-height: .98; margin: 8px 0 6px; text-shadow: 0 .06em 0 color-mix(in srgb, var(--accent) 70%, #000), 0 .2em .3em rgba(0, 40, 60, .35); }
.slogan, .blurb, .best { text-shadow: 0 2px 6px rgba(0, 50, 70, .45); }
.slogan { font-family: var(--display); font-weight: 700; font-size: clamp(17px, 2.1vw, 24px); margin: 0 0 8px; }
.blurb { font-weight: 700; font-size: 15px; line-height: 1.45; margin: 0 auto 12px; max-width: 30em; text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.chip { display: inline-block; background: rgba(255, 255, 255, .95); color: var(--ink); font-weight: 900; font-size: 13px; padding: 5px 12px; border-radius: 999px; }
.best { font-weight: 900; font-size: 15px; min-height: 22px; margin-bottom: 12px; letter-spacing: .03em; }
.dots { margin-top: 18px; display: flex; gap: 9px; justify-content: center; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .45); transition: all .2s; }
.dots i.on { background: #fff; transform: scale(1.35); }
.bottomnav { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; gap: 10px; justify-content: center; padding: 0 74px 0 12px; flex-wrap: wrap; }
.swap .island-info > * { animation: pop .45s both; }

/* HUD */
.hud-top { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.hud-box { background: rgba(255, 255, 255, .93); border-radius: 16px; padding: 6px 16px; min-width: 86px; text-align: center; box-shadow: 0 4px 0 rgba(0, 0, 0, .14); }
.hud-box small { display: block; font-weight: 900; font-size: 11px; letter-spacing: .12em; opacity: .6; }
.hud-box b { font-family: var(--display); font-size: 28px; line-height: 1; }
.hud-box b.bump { animation: pop .3s; }
.hud-title { font-family: var(--display); font-weight: 800; color: #fff; font-size: 18px; letter-spacing: .14em; text-transform: uppercase; padding-top: 12px; text-shadow: 0 2px 0 rgba(0, 0, 0, .18); }
#hud-extra { position: absolute; top: 82px; left: 0; right: 0; text-align: center; font-family: var(--display); font-weight: 800; color: #fff; font-size: 20px; text-shadow: 0 2px 0 rgba(0, 0, 0, .2); }
#btn-pause { position: absolute; right: 16px; bottom: 76px; }
#toast { position: absolute; top: 124px; left: 50%; transform: translate(-50%, -12px); background: #fff; color: var(--ink); font-weight: 800; font-size: 15px; padding: 10px 18px; border-radius: 14px; box-shadow: 0 6px 0 rgba(0, 0, 0, .14); opacity: 0; transition: all .3s; max-width: min(90vw, 460px); text-align: center; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
#toast::before { content: '💡 '; }
#controls { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 76px 20px 14px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
#controls > * { pointer-events: auto; }
.act { background: var(--coral); color: #fff; font-weight: 800; font-size: 24px; padding: 16px 44px; border-radius: 22px; box-shadow: 0 7px 0 rgba(0, 0, 0, .22); min-width: 200px; touch-action: none; }
.act:active, .act.down { transform: translateY(5px); box-shadow: 0 2px 0 rgba(0, 0, 0, .22); }
.hint { background: rgba(22, 58, 85, .78); color: #fff; font-weight: 800; padding: 8px 16px; border-radius: 999px; font-size: 15px; text-align: center; max-width: 92vw; }
.gauge { position: relative; width: min(88vw, 520px); height: 34px; background: #fff; border-radius: 999px; box-shadow: 0 5px 0 rgba(0, 0, 0, .16); overflow: hidden; }
.gauge .zone { position: absolute; top: 0; bottom: 0; background: #ffb199; }
.gauge .zone.cold { background: #9fe3ee; }
.gauge .zone.ok { background: #b9e8a4; }
.gauge .fill { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #fff7dc, #fff); border-right: 4px solid var(--ink); }
.gauge .mark { position: absolute; top: -4px; bottom: -4px; width: 8px; margin-left: -4px; background: var(--ink); border-radius: 4px; }
.gauge .lbl { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 11px; letter-spacing: .06em; color: var(--ink); }
.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; width: min(94vw, 480px); }
.chips button { background: #fff; border-radius: 16px; padding: 9px 4px; font-size: 14px; font-weight: 800; box-shadow: 0 5px 0 rgba(0, 0, 0, .16); display: flex; flex-direction: column; align-items: center; gap: 2px; font-family: var(--body); }
.chips button span { font-size: 26px; line-height: 1.1; }
.chips button img { height: 70px; object-fit: contain; }
.chips button.ok { background: #c9f2b8; pointer-events: none; }
.chips button.no { animation: shake .3s; background: #ffd0c9; }
.order { background: #fff; border-radius: 16px; padding: 8px 16px; font-weight: 800; box-shadow: 0 5px 0 rgba(0, 0, 0, .14); text-align: center; font-size: 15px; max-width: 94vw; }
.order b { font-family: var(--display); font-size: 19px; }

/* Judul sinematik */
#cine.on { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 14vh; }
#cine h2 { text-align: center; padding: 0 16px; line-height: 1; font-family: var(--display); font-size: clamp(34px, 8vw, 96px); color: #fff; margin: 0; letter-spacing: .06em; text-transform: uppercase; text-shadow: 0 5px 0 rgba(0, 0, 0, .18); animation: pop .7s both; }
#cine p { font-family: var(--display); color: #fff; font-size: clamp(18px, 3vw, 28px); font-weight: 700; margin: 0; animation: pop .7s .2s both; }
#cine-skip { position: absolute; top: 16px; right: 16px; }

/* Kartu & panel */
.overlay.on { display: flex; align-items: center; justify-content: center; background: rgba(13, 62, 84, .45); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); pointer-events: auto; padding: 16px; }
.overlay.scroll.on { align-items: flex-start; overflow-y: auto; }
.card, .panel { background: #fffaf0; border-radius: 28px; padding: 26px; box-shadow: 0 10px 0 rgba(0, 0, 0, .16), 0 30px 60px rgba(0, 0, 0, .25); animation: pop .4s both; position: relative; }
.card { width: min(94vw, 480px); text-align: center; max-height: 92vh; overflow-y: auto; }
.card h2, .panel h2 { font-family: var(--display); font-size: 34px; margin: 0 0 6px; line-height: 1; color: var(--accent); }
.card h3, .panel h3 { font-family: var(--display); font-size: 21px; margin: 20px 0 8px; }
.card p { font-weight: 700; line-height: 1.45; margin: 6px 0; }
.card ul { text-align: left; font-weight: 700; line-height: 1.5; padding-left: 20px; margin: 10px 0; }
.card .row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.card .emoji { font-size: 52px; line-height: 1; }
.card .pack { height: 120px; object-fit: contain; margin: 4px auto; display: block; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .2)); }
.keys { display: inline-block; background: #e9f3ea; border-radius: 12px; padding: 8px 14px; font-weight: 800; font-size: 14px; margin-top: 6px; }
.stars { font-size: 44px; letter-spacing: 6px; margin: 4px 0; }
.stars span { display: inline-block; opacity: .22; filter: grayscale(1); }
.stars span.on { opacity: 1; filter: none; animation: pop .5s both; }
.score-big { font-family: var(--display); font-size: 62px; font-weight: 800; line-height: 1; color: var(--ink); }
.badge { display: inline-flex; align-items: center; gap: 8px; background: var(--sun); border-radius: 999px; padding: 7px 16px; font-weight: 900; margin: 8px 0; }
.fact { background: #e9f3ea; border-radius: 14px; padding: 10px 14px; font-weight: 800; margin-top: 10px; font-size: 15px; }
.panel { width: min(96vw, 940px); margin: 20px auto 80px; }
.panel.narrow { width: min(96vw, 560px); text-align: center; }
.panel .lead { font-weight: 700; margin: 0 0 14px; }
.close { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 50%; background: var(--coral); color: #fff; font-size: 18px; font-weight: 900; box-shadow: 0 4px 0 rgba(0, 0, 0, .18); }
.grid { display: grid; gap: 14px; }
.grid.featured { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.grid.more { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.prod { background: #fff; border-radius: 20px; padding: 14px; text-align: center; box-shadow: 0 5px 0 rgba(0, 0, 0, .1); transition: transform .2s; position: relative; overflow: hidden; }
.prod:hover { transform: translateY(-5px) rotate(-1deg); }
.prod img { height: 150px; max-width: 100%; object-fit: contain; filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .18)); transition: transform .3s; }
.prod:hover img { transform: scale(1.08) rotate(3deg); }
.more .prod img { height: 96px; }
.prod h4 { font-family: var(--display); font-size: 19px; margin: 8px 0 2px; line-height: 1.1; }
.prod .meta { font-size: 12px; font-weight: 900; opacity: .65; letter-spacing: .04em; }
.prod ul { text-align: left; font-size: 13.5px; font-weight: 700; padding-left: 16px; margin: 8px 0 0; line-height: 1.4; }
.prod .tag { position: absolute; top: 10px; left: 10px; background: var(--green); color: #fff; font-size: 11px; font-weight: 900; padding: 3px 9px; border-radius: 999px; }
.prod .tag.sun { background: var(--ink); }
.tech { background: #e6f6f7; border-radius: 20px; padding: 6px 18px 16px; margin-top: 22px; }
.tech-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.tech-row div { background: #fff; border-radius: 16px; padding: 12px 14px; }
.tech-row b { font-family: var(--display); font-size: 18px; color: var(--ink); }
.tech-row p { margin: 4px 0 0; font-weight: 700; font-size: 14px; line-height: 1.45; }
.q-opts { display: grid; gap: 10px; margin-top: 14px; }
.q-opts button { background: #fff; border-radius: 16px; padding: 13px 14px; font-family: var(--body); font-weight: 800; font-size: 15.5px; box-shadow: 0 5px 0 rgba(0, 0, 0, .12); text-align: left; }
.q-opts button.ok { background: #c9f2b8; } .q-opts button.no { background: #ffd0c9; animation: shake .3s; }
.q-opts.done button { pointer-events: none; }
.progress { height: 10px; background: #e7dfcc; border-radius: 99px; overflow: hidden; margin: 10px 0 16px; }
.progress i { display: block; height: 100%; background: var(--green-2); transition: width .3s; }
.badges { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 10px 0; }
.badges span { background: #eee5d0; border-radius: 999px; padding: 5px 12px; font-weight: 900; font-size: 13px; opacity: .55; }
.badges span.on { background: var(--sun); opacity: 1; }
input.name { font-family: var(--display); font-size: 22px; font-weight: 700; text-align: center; padding: 10px 14px; border-radius: 14px; border: 3px solid var(--green-2); width: 100%; margin: 10px 0; background: #fff; color: var(--ink); user-select: text; -webkit-user-select: text; }
#cert-canvas { width: 100%; border-radius: 14px; box-shadow: 0 6px 20px rgba(0, 0, 0, .18); margin-top: 8px; }

#loading { position: fixed; inset: 0; z-index: 50; background: linear-gradient(#39a9f5, #a9e6ff); display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; font-family: var(--display); font-weight: 800; font-size: 20px; transition: opacity .5s; }
#loading.off { opacity: 0; pointer-events: none; }
.coconut { font-size: 64px; animation: bob 1s ease-in-out infinite; }

@media (max-aspect-ratio: 1/1) {
  .island-info { right: 0; left: 0; top: auto; bottom: 84px; transform: none; width: auto; padding: 0 20px; }
  .bottomnav { flex-wrap: nowrap; gap: 8px; bottom: 16px; padding: 0 70px 0 10px; }
  .pill { font-size: 13px; padding: 10px 12px; white-space: nowrap; }
  .island-info .btn.big { font-size: 20px; padding: 12px 34px; }
  .dots { margin-top: 10px; }
  .best { margin-bottom: 8px; }
  .island-info h2 { font-size: 40px; }
  .blurb { font-size: 14px; }
  .arrow { top: 30%; width: 48px; height: 48px; font-size: 28px; }
  .arrow.left { left: 8px; } .arrow.right { right: 8px; }
  .hud-title { display: none; }
  #controls { padding: 12px 12px 18px; }
  #btn-pause { bottom: auto; top: 78px; right: 12px; width: 42px; height: 42px; font-size: 17px; }
  body.ingame .round.corner { bottom: auto; top: 78px; right: 62px; width: 42px; height: 42px; font-size: 17px; }
  #hud-extra { top: 86px; font-size: 18px; text-align: left; padding-left: 16px; }
  #toast { top: 132px; }
  .home-center { margin-top: -44vh; }
  #btn-start { position: fixed; left: 50%; bottom: 9vh; margin-left: -120px; width: 240px; }
}
@media (max-height: 520px) {
  .blurb { display: none; }
  .island-info h2 { font-size: 38px; }
  .bottomnav { bottom: 10px; }
  .chips button img { height: 46px; }
  .act { padding: 10px 34px; font-size: 20px; }
}

/* Bilah sinematik dan teks skor melayang */
#bars i { position: fixed; left: 0; right: 0; height: 9vh; background: #06141c; z-index: 9; transition: transform .7s cubic-bezier(.65, 0, .25, 1); pointer-events: none; }
#bars i:first-child { top: 0; transform: translateY(-101%); }
#bars i:last-child { bottom: 0; transform: translateY(101%); }
body.cine #bars i { transform: none; }
#pops { position: fixed; inset: 0; pointer-events: none; z-index: 12; }
.pop { position: absolute; font-family: var(--display); font-weight: 800; font-size: 30px; transform: translate(-50%, -50%); text-shadow: 0 3px 0 rgba(0, 0, 0, .28), 0 0 14px rgba(255, 255, 255, .5); animation: popup .95s cubic-bezier(.2, .8, .3, 1) forwards; }
@keyframes popup { 0% { transform: translate(-50%, -30%) scale(.4); opacity: 0; } 20% { transform: translate(-50%, -80%) scale(1.25); opacity: 1; } 100% { transform: translate(-50%, -260%) scale(1); opacity: 0; } }
#cine.on { padding-bottom: 17vh; }
#cine-skip { top: calc(9vh + 12px); }
#intro-skip { bottom: calc(9vh + 14px); }
#loading { background: linear-gradient(#2a6fd0, #ffd9a8); }
html, body { background: #2a6fd0; }

/* ---------- Tampilan kaca yang serasi dengan dunia 3D ---------- */
.hud-box { background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5); border: 1.5px solid rgba(255, 255, 255, .6); color: #fff; box-shadow: 0 10px 30px rgba(0, 30, 60, .22), inset 0 1px 0 rgba(255, 255, 255, .5); text-shadow: 0 2px 6px rgba(0, 40, 70, .5); }
.hud-box small { opacity: .92; }
.hud-box.warn { background: rgba(255, 80, 60, .5); animation: pulse .5s ease-in-out infinite alternate; }
@keyframes pulse { to { transform: scale(1.09); } }
.round, .pill { background: rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4); border: 1.5px solid rgba(255, 255, 255, .6); color: #fff; box-shadow: 0 8px 22px rgba(0, 30, 60, .22); text-shadow: 0 1px 4px rgba(0, 40, 70, .55); transition: background .15s, transform .15s; }
.round:hover, .pill:hover { background: rgba(255, 255, 255, .36); transform: translateY(-2px); }
.arrow { background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 2px solid rgba(255, 255, 255, .8); box-shadow: 0 8px 22px rgba(0, 30, 60, .22); }
.btn { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 78%, #fff), var(--accent)); box-shadow: 0 6px 0 color-mix(in srgb, var(--accent) 62%, #000), 0 16px 28px rgba(0, 30, 50, .3), inset 0 2px 0 rgba(255, 255, 255, .38); }
.btn:active { box-shadow: 0 2px 0 color-mix(in srgb, var(--accent) 62%, #000), inset 0 2px 0 rgba(255, 255, 255, .38); }
.btn.alt { background: linear-gradient(180deg, #fff, #f3ecdc); color: var(--ink); box-shadow: 0 6px 0 #d3cab6, 0 14px 24px rgba(0, 0, 0, .14); }
.btn.coral, #btn-start, .act { background: linear-gradient(180deg, #ff9184, #ff5d4e); box-shadow: 0 7px 0 #c5463a, 0 18px 30px rgba(0, 30, 50, .3), inset 0 2px 0 rgba(255, 255, 255, .42); }
.act:active, .act.down, #btn-start:active { box-shadow: 0 2px 0 #c5463a, inset 0 2px 0 rgba(255, 255, 255, .42); }
.hint { background: rgba(6, 28, 42, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .25); }
#toast { background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 12px 30px rgba(0, 30, 60, .25); border: 1.5px solid #fff; }
.order, .chips button, .gauge { box-shadow: 0 10px 26px rgba(0, 30, 60, .22), 0 4px 0 rgba(0, 0, 0, .1); border: 1.5px solid #fff; }
.card, .panel { background: linear-gradient(180deg, #fffdf6, #fff3dc); border: 2px solid #fff; box-shadow: 0 30px 80px rgba(0, 20, 40, .45), 0 8px 0 rgba(0, 0, 0, .12); }
.overlay.on { background: radial-gradient(circle at 50% 40%, rgba(13, 62, 84, .28), rgba(6, 24, 36, .66)); -webkit-backdrop-filter: blur(9px) saturate(1.2); backdrop-filter: blur(9px) saturate(1.2); }
.island-info::before { content: ''; position: absolute; inset: -36px -46px; background: radial-gradient(closest-side, rgba(4, 34, 52, .42), transparent); z-index: -1; filter: blur(10px); pointer-events: none; }
.island-info h2 { letter-spacing: .01em; }
.chip { box-shadow: 0 6px 16px rgba(0, 30, 60, .25); }
.score-big { background: linear-gradient(180deg, #1d5a8a, #163a55); -webkit-background-clip: text; background-clip: text; color: transparent; }
.home-center { margin-top: -1vh; }
@media (max-aspect-ratio: 1/1) { .home-center { margin-top: -44vh; } }
