/* Peta Ruang 3D (Admin → Ruang Redaksi & halaman publik /ruang). Dimuat hanya di dua halaman itu. */
.rr3 { --rr-navy: #0f1d3a; --rr-maroon: #930b32; --rr-line: #e4e2dc; --rr-muted: #646b7b; --rr-bg: #f4f3ef; }
/* Ruang Redaksi 3D */
.rr3-stage { position: relative; height: min(72vh, 640px); min-height: 420px; border-radius: 20px; overflow: hidden; background: #eef1f6; border: 1px solid var(--rr-line); margin-bottom: 14px; touch-action: none; user-select: none; }
.rr3-stage canvas { display: block; width: 100%; height: 100%; cursor: grab; opacity: 0; transition: opacity .6s; }
.rr3-stage.ready canvas { opacity: 1; }
.rr3-stage canvas:active { cursor: grabbing; }
.rr3-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.rr3-lab { position: absolute; left: 0; top: 0; pointer-events: auto; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 5px 10px 6px; border-radius: 12px; background: rgba(255, 255, 255, .94); box-shadow: 0 6px 14px -8px rgba(15, 20, 45, .45); border: 1px solid rgba(20, 33, 61, .08); text-decoration: none; white-space: nowrap; font-size: 11px; line-height: 1.25; will-change: transform; }
.rr3-lab::after { content: ''; position: absolute; bottom: -5px; left: 50%; width: 9px; height: 9px; background: inherit; transform: translateX(-50%) rotate(45deg); border-right: 1px solid rgba(20, 33, 61, .08); border-bottom: 1px solid rgba(20, 33, 61, .08); }
.rr3-lab b { font-size: 11px; color: var(--rr-muted); font-weight: 600; }
.rr3-lab span { font-size: 12.5px; font-weight: 700; color: var(--rr-navy); }
.rr3-lab em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--rr-maroon); }
.rr3-lab.s-tidur { opacity: .8; }
.rr3-lab.s-tidur span { color: var(--rr-muted); }
.rr3-lab.s-masalah { background: #fff1f0; }
.rr3-lab .zz { position: absolute; right: -14px; top: -12px; font-style: normal; font-weight: 800; font-size: 13px; color: #6b7cff; animation: rr3z 2.4s ease-in-out infinite; }
@keyframes rr3z { 0% { opacity: 0; transform: translateY(6px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(-8px); } }
.rr3-lab:hover span { color: var(--rr-maroon); }
.rr3-hud { position: absolute; top: 12px; right: 12px; display: flex; align-items: center; gap: 8px; }
.rr3-hud span { font-size: 12.5px; font-weight: 700; color: var(--rr-navy); background: rgba(255, 255, 255, .9); padding: 6px 10px; border-radius: 99px; }
.rr3-btn { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: var(--rr-navy); display: grid; place-items: center; cursor: pointer; }
.rr3-hint { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); margin: 0; font-size: 12px; color: var(--rr-navy); background: rgba(255, 255, 255, .9); padding: 6px 12px; border-radius: 99px; white-space: nowrap; transition: opacity .6s; pointer-events: none; }
.rr3-hint.off { opacity: 0; }
.rr3-list ul { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.rr3-li a { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; grid-template-areas: "dot name ch" "dot txt ch"; column-gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--rr-line); border-radius: 12px; text-decoration: none; color: var(--rr-navy); }
.rr3-li a:hover { background: var(--rr-bg); }
.rr3-li i { grid-area: dot; width: 10px; height: 10px; border-radius: 50%; background: #9aa0ad; }
.rr3-li.s-kerja i { background: #1D9E75; } .rr3-li.s-masalah i { background: #d92d20; } .rr3-li.s-tidur i { background: #c9ccd4; }
.rr3-li b { grid-area: name; font-size: 13.5px; }
.rr3-li span { grid-area: txt; font-size: 12.5px; color: var(--rr-muted); }
.rr3-li em { font-style: normal; color: var(--rr-maroon); font-weight: 600; }
.rr3-li svg { grid-area: ch; color: var(--rr-muted); }
@media (max-width: 700px) { .rr3-stage { height: 64vh; min-height: 380px; border-radius: 16px; } .rr3-lab { padding: 4px 8px 5px; } .rr3-lab b { font-size: 10px; } .rr3-lab span { font-size: 11.5px; } .rr3-hint { font-size: 11px; white-space: normal; text-align: center; width: 88%; } }
@media (max-width: 700px) {
  .rr3-lab { padding: 3px 7px 4px; border-radius: 9px; }
  .rr3-lab b, .rr3-lab em { display: none; }
  .rr3-lab span { font-size: 10.5px; }
  .rr3-lab.s-masalah span, .rr3-lab:has(em) span { color: var(--rr-maroon); }
  .rr3-lab:focus b, .rr3-lab:active b { display: block; }
}

/* Ruang Redaksi: tab & Ruang Pengunjung */
.rr3-tabs { display: flex; gap: 6px; margin: 0 0 12px; padding: 4px; background: #fff; border: 1px solid var(--rr-line); border-radius: 14px; width: max-content; max-width: 100%; overflow-x: auto; }
.rr3-tabs button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; padding: 9px 14px; border-radius: 10px; font: inherit; font-size: 14px; font-weight: 600; color: var(--rr-muted); cursor: pointer; white-space: nowrap; }
.rr3-tabs button.on { background: var(--rr-navy); color: #fff; }
.rr3-tabs em { font-style: normal; font-size: 11.5px; font-weight: 800; background: #1D9E75; color: #fff; padding: 1px 7px; border-radius: 99px; }
[data-stage2] { background: #1e2033; border-color: #2c2f4a; }
[data-stage2] .rr3-hud span { max-width: min(70vw, 520px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-lab { position: absolute; left: 0; top: 0; pointer-events: auto; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 99px; background: rgba(255, 255, 255, .92); font-size: 11px; line-height: 1.2; white-space: nowrap; box-shadow: 0 4px 10px -6px rgba(0, 0, 0, .6); cursor: default; will-change: transform; }
.rp-lab b { color: var(--rr-maroon); font-weight: 800; }
.rp-lab span { color: var(--rr-navy); font-weight: 600; }
.rp-lab em { font-style: normal; font-weight: 800; color: #fff; background: #1D9E75; padding: 1px 6px; border-radius: 99px; margin-left: 2px; }
.rp-lab.new { animation: rpIn .5s ease-out; }
@keyframes rpIn { from { transform: scale(.6); opacity: 0; } }
.rp-tip { display: none; position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); width: max-content; max-width: 260px; white-space: normal; background: #14213d; color: #fff; padding: 8px 10px; border-radius: 10px; font-size: 12px; line-height: 1.4; }
.rp-tip b { display: block; color: #ffcf5c; font-size: 11px; }
.rp-tip small { display: block; color: #b9c2dd; margin-top: 3px; }
.rp-lab:hover .rp-tip, .rp-lab:focus-within .rp-tip, .rp-lab:active .rp-tip { display: block; }
.rp-ul { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.rp-ul li { border: 1px solid var(--rr-line); border-radius: 12px; padding: 9px 12px; display: flex; flex-direction: column; gap: 2px; }
.rp-ul b { font-size: 13px; color: var(--rr-maroon); }
.rp-ul span { font-size: 13.5px; color: var(--rr-navy); }
.rp-ul small { font-size: 12px; color: var(--rr-muted); }
.rr3-list h2 small { font-size: 13px; color: var(--rr-muted); font-weight: 500; margin-left: 6px; }
@media (max-width: 700px) { .rp-lab span { display: none; } }
@media (max-width: 700px) { .rp-lab em { display: none; } .rp-lab { padding: 2px 6px; } }

/* peta gabungan */
.rr3-stage.map { height: min(78vh, 720px); background: #bfe3ff; }
.rr3-views { position: absolute; top: 12px; left: 12px; display: flex; gap: 4px; background: rgba(255, 255, 255, .92); padding: 4px; border-radius: 12px; }
.rr3-views button { border: 0; background: none; padding: 6px 11px; border-radius: 9px; font: inherit; font-size: 13px; font-weight: 700; color: var(--rr-navy); cursor: pointer; }
.rr3-views button.on { background: var(--rr-navy); color: #fff; }
.rr3-on { display: inline-flex; align-items: center; gap: 4px; }
.rr3-on b { color: #11843f; }
.rr3-btn { font-size: 17px; font-weight: 700; }

.rr3-stage.map .rr3-hint { bottom: 48px; }
.rr3-panels { align-items: start; }
@media (max-width: 700px) { .rr3-stage.map { height: 68vh; } .rr3-views { top: 8px; left: 8px; } .rr3-views button { padding: 5px 8px; font-size: 12px; } .rr3-stage.map .rr3-hud { top: auto; bottom: 46px; right: 8px; } .rr3-stage.map .rr3-hint { display: none; } }

/* 6 aula & mode penonton */
.rr3-mode { position: absolute; left: 12px; bottom: 12px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; background: rgba(255, 255, 255, .94); padding: 4px 6px 4px 10px; border-radius: 12px; max-width: calc(100% - 24px); }
.rr3-mode span { font-size: 12px; font-weight: 700; color: var(--rr-muted); margin-right: 2px; }
.rr3-mode button { border: 0; background: none; padding: 5px 10px; border-radius: 8px; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--rr-navy); cursor: pointer; }
.rr3-mode button.on { background: #930b32; color: #fff; }
.rr3-mode small { font-size: 11.5px; color: var(--rr-muted); margin-left: 4px; }
.rr3-aula { margin-bottom: 14px; }
.ra-ul { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; counter-reset: aula; }
.ra-ul li { counter-increment: aula; position: relative; border: 1px solid var(--rr-line); border-left: 4px solid #9aa0ad; border-radius: 10px; padding: 8px 12px 9px 40px; display: flex; flex-direction: column; gap: 2px; }
.ra-ul li::before { content: counter(aula); position: absolute; left: 12px; top: 10px; width: 20px; height: 20px; border-radius: 50%; background: var(--rr-navy); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.ra-ul li.ra-sorotan { border-left-color: #ffb703; } .ra-ul li.ra-terbaru { border-left-color: #2c5bd9; } .ra-ul li.ra-terdekat { border-left-color: #e11d48; }
.ra-ul em { font-style: normal; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--rr-muted); }
.ra-ul a { text-decoration: none; } .ra-ul b { font-size: 14px; color: var(--rr-navy); }
.ra-ul small { font-size: 12px; color: var(--rr-muted); }
.ra-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ra-form .lbl { flex-basis: 100%; font-size: 13px; font-weight: 600; color: var(--rr-navy); }
.ra-form select { flex: 1 1 240px; min-width: 0; }
.rr3-stage.map .rr3-hint { bottom: 56px; }
@media (max-width: 700px) { .rr3-mode { bottom: 8px; left: 8px; } .rr3-mode small { flex-basis: 100%; margin: 0 0 2px 2px; } .rr3-stage.map .rr3-hud { bottom: 64px; } }

/* layar penuh peta */
.rr3-stage.map:fullscreen { height: 100vh; border-radius: 0; border: 0; margin: 0; }
.rr3-stage.map.fs { position: fixed; inset: 0; z-index: 9999; height: 100dvh; min-height: 0; border-radius: 0; border: 0; margin: 0; }
body.rr3-lock { overflow: hidden; }
.rr3-btn.on { background: var(--rr-navy); color: #fff; }
.rr3-stage.map .rr3-views, .rr3-stage.map .rr3-hud, .rr3-stage.map .rr3-mode { z-index: 3; }

/* kartu aula/taman + pemutar Spotify */
.rr3-card { position: absolute; right: 12px; bottom: 12px; z-index: 4; width: min(340px, calc(100% - 24px)); background: #fff; border-radius: 16px; box-shadow: 0 18px 40px -16px rgba(15, 29, 58, .5); padding: 12px 12px 10px; display: flex; flex-direction: column; gap: 8px; animation: rpIn .25s ease-out; }
.rr3-card[hidden] { display: none; }
.rr3-card-h { display: flex; gap: 10px; align-items: flex-start; }
.rr3-card-h img { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; flex: 0 0 auto; background: var(--rr-bg); }
.rr3-card-h div { min-width: 0; flex: 1; }
.rr3-card-h em { display: block; font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--rr-maroon); }
.rr3-card-h b { display: block; font-size: 14.5px; line-height: 1.25; color: var(--rr-navy); }
.rr3-card-h small { display: block; font-size: 12px; color: var(--rr-muted); margin-top: 2px; }
.rr3-x { border: 0; background: var(--rr-bg); width: 28px; height: 28px; border-radius: 50%; cursor: pointer; color: var(--rr-navy); font-size: 14px; flex: 0 0 auto; }
.rr3-sp { border-radius: 12px; overflow: hidden; min-height: 80px; background: #282828; }
.rr3-sp iframe { display: block; width: 100%; height: 80px; border: 0; }
.rr3-np { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--rr-muted); }
.rr3-np b { color: var(--rr-navy); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rr3-np span { flex: 1; min-width: 0; display: flex; gap: 4px; overflow: hidden; }
.rr3-np button { border: 1px solid var(--rr-line); background: #fff; border-radius: 99px; padding: 4px 10px; font: inherit; font-size: 12px; font-weight: 700; color: var(--rr-navy); cursor: pointer; white-space: nowrap; }
.rr3-go { display: block; text-align: center; background: var(--rr-navy); color: #fff !important; text-decoration: none; font-size: 13px; font-weight: 700; padding: 8px 12px; border-radius: 10px; }
.rr3-nomusic { margin: 0; font-size: 12px; color: var(--rr-muted); }
.rp-lab.me { background: #930b32; } .rp-lab.me b, .rp-lab.me span { color: #fff; }
.rp-lab.me { animation: rrMe 1.6s ease-in-out infinite; }
@keyframes rrMe { 50% { box-shadow: 0 0 0 5px rgba(147, 11, 50, .25); } }
@media (max-width: 700px) {
  .rr3-card { left: 8px; right: 8px; width: auto; bottom: 8px; }
  .rp-lab.me span { display: inline; }
}
.rr3-labels { z-index: 1; }

/* ---------------- halaman publik /ruang (desain) */
.rpub { --rp-ink: #0f1d3a; --rp-mar: #930b32; padding-bottom: 40px; }
.rpub-hero { background: radial-gradient(120% 140% at 85% 0%, #534AB7 0%, rgba(83, 74, 183, 0) 55%), radial-gradient(90% 120% at 0% 100%, #930b32 0%, rgba(147, 11, 50, 0) 60%), #0f1d3a; color: #fff; padding: 34px 0 96px; position: relative; overflow: hidden; }
.rpub-hero::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(120deg, rgba(255, 255, 255, .04) 0 2px, transparent 2px 22px); pointer-events: none; }
.rpub-hero .wrap { position: relative; z-index: 1; }
.rpub-live { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); padding: 5px 11px; border-radius: 99px; }
.rpub-live i { width: 8px; height: 8px; border-radius: 50%; background: #ff3d6e; box-shadow: 0 0 0 0 rgba(255, 61, 110, .7); animation: rpubPulse 1.6s infinite; }
@keyframes rpubPulse { 70% { box-shadow: 0 0 0 9px rgba(255, 61, 110, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 61, 110, 0); } }
.rpub-hero h1 { font-family: var(--display, system-ui); font-size: clamp(30px, 5vw, 52px); line-height: 1.02; letter-spacing: -.02em; margin: 14px 0 10px; color: #fff; }
.rpub-hero h1 em { font-style: normal; background: linear-gradient(90deg, #ffcf5c, #ff6b8b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rpub-hero p { max-width: 640px; margin: 0; color: rgba(255, 255, 255, .82); font-size: 15.5px; }
.rpub-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 22px; max-width: 760px; }
.rpub-stats div { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; padding: 10px 12px; backdrop-filter: blur(6px); }
.rpub-stats b { display: block; font-family: var(--display, system-ui); font-size: 26px; line-height: 1.1; color: #fff; }
.rpub-stats div:first-child b { color: #6ee7a8; }
.rpub-stats small { font-size: 12px; color: rgba(255, 255, 255, .72); }
.rpub-main { margin-top: -72px; position: relative; z-index: 2; }
.rpub .rr3-stage.map { border: 0; border-radius: 22px; box-shadow: 0 30px 60px -28px rgba(15, 29, 58, .55); margin-bottom: 16px; }
.rpub-how { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.rpub-how li { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; background: #fff; border: 1px solid var(--rr-line); border-radius: 14px; padding: 10px 12px; }
.rpub-how span { grid-row: span 2; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: #f8ebef; color: var(--rp-mar); }
.rpub-how b { font-size: 13.5px; color: var(--rp-ink); } .rpub-how small { font-size: 12px; color: var(--rr-muted); line-height: 1.3; }
.rpub-sec { margin-bottom: 30px; }
.rpub-sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.rpub-sec-h h2 { margin: 0; font-family: var(--display, system-ui); font-size: 22px; color: var(--rp-ink); }
.rpub-sec-h a { font-size: 13.5px; font-weight: 700; color: var(--rp-mar); text-decoration: none; }
.rpub-ev { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.rpub-card { background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid var(--rr-line); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.rpub-card:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -20px rgba(15, 29, 58, .5); }
.rpub-img { position: relative; display: block; aspect-ratio: 16 / 10; background: #1e2033; overflow: hidden; }
.rpub-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rpub-img > span { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .5); }
.rpub-img em { position: absolute; left: 10px; top: 10px; font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 4px 9px; border-radius: 99px; background: #fff; color: var(--rp-ink); }
.s-sorotan .rpub-img em { background: #ffb703; color: #3a2400; } .s-terbaru .rpub-img em { background: #2c5bd9; color: #fff; } .s-terdekat .rpub-img em { background: #e11d48; color: #fff; }
.rpub-onair { position: absolute; right: 10px; top: 10px; font-style: normal; font-size: 11px; font-weight: 800; color: #fff; background: rgba(225, 29, 72, .92); padding: 4px 9px; border-radius: 99px; animation: rpubBeat 1.6s ease-in-out infinite; }
@keyframes rpubBeat { 50% { opacity: .65; } }
.rpub-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.rpub-body small { font-size: 12.5px; color: var(--rr-muted); } .rpub-body small.live { color: #e11d48; font-weight: 700; }
.rpub-body > a { text-decoration: none; } .rpub-body b { font-size: 16px; line-height: 1.25; color: var(--rp-ink); }
.rpub-act { display: flex; gap: 8px; align-items: center; margin-top: auto; padding-top: 10px; }
.rpub-play { display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer; font: inherit; font-size: 13px; font-weight: 800; color: #fff; background: linear-gradient(90deg, #1db954, #169c46); padding: 8px 12px; border-radius: 99px; }
.rpub-play span { font-weight: 600; opacity: .85; font-size: 12px; }
.rpub-play.ghost { background: #eef1f6; color: var(--rp-ink); }
.rpub-play.sm { width: 38px; height: 38px; padding: 0; justify-content: center; flex: 0 0 auto; }
.rpub-more { font-size: 13px; font-weight: 700; color: var(--rp-ink); text-decoration: none; }
.rpub-ml { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.rpub-mus { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--rr-line); border-radius: 16px; padding: 12px; text-decoration: none; }
.rpub-mus > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rpub-mus em { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #0f766e; }
.rpub-mus a { text-decoration: none; } .rpub-mus b { font-size: 15px; color: var(--rp-ink); } .rpub-mus small { font-size: 12.5px; color: var(--rr-muted); }
.rpub-ava { width: 54px; height: 54px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; display: grid; place-items: center; background: linear-gradient(135deg, #0f766e, #134e4a); color: #fff; box-shadow: 0 0 0 3px #fff, 0 0 0 5px #0f766e33; }
.rpub-ava img { width: 100%; height: 100%; object-fit: cover; }
.rpub-join { border-style: dashed; border-color: #0f766e66; background: #f0fbf8; }
.rpub-join .rpub-ava { background: #fff; color: #0f766e; box-shadow: inset 0 0 0 2px #0f766e55; }
.rpub-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: linear-gradient(110deg, #0f1d3a, #2a3d66); color: #fff; border-radius: 20px; padding: 20px 22px; }
.rpub-cta b { font-family: var(--display, system-ui); font-size: 20px; } .rpub-cta p { margin: 4px 0 0; color: rgba(255, 255, 255, .78); font-size: 14px; max-width: 520px; }
.rpub-cta-btn { display: flex; gap: 8px; flex-wrap: wrap; }
.rpub-cta .btn-ghost { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .3); }
@media (max-width: 800px) {
  .rpub-hero { padding: 24px 0 80px; }
  .rpub-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rpub-stats b { font-size: 22px; }
  .rpub-how { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rpub-main { margin-top: -60px; }
}
@media (max-width: 420px) { .rpub-how li { grid-template-columns: 1fr; text-align: left; } .rpub-how span { grid-row: auto; margin-bottom: 6px; } }
@media (prefers-reduced-motion: reduce) { .rpub-live i, .rpub-onair { animation: none; } }
.rpub-play, .rpub-more { white-space: nowrap; }
.rpub-act { flex-wrap: wrap; }
/* tombol penonton dihapus: HUD HP turun ke bawah, petunjuk ikut turun */
.rr3-stage.map .rr3-hint { bottom: 14px; }
@media (max-width: 700px) { .rr3-stage.map .rr3-hud { bottom: 8px; } }

/* HP: kartu aula/taman di bawah peta (panggung tetap terlihat utuh) */
.rr3-card.below { position: relative; left: auto; right: auto; bottom: auto; width: auto; margin: -4px 0 14px; box-shadow: 0 10px 26px -14px rgba(15, 29, 58, .45); border: 1px solid var(--rr-line); }

/* latar peta = hamparan rumput */
.rr3-stage.map { background: #79bd67; }
/* keterangan saat kursor di atas aula/taman */
.rr3-tip { position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; background: #14213d; color: #fff; padding: 8px 12px; border-radius: 12px; box-shadow: 0 12px 28px -12px rgba(0, 0, 0, .6); max-width: 260px; display: flex; flex-direction: column; gap: 1px; }
.rr3-tip[hidden] { display: none; }
.rr3-tip b { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: #ffcf5c; }
.rr3-tip span { font-size: 14px; font-weight: 700; line-height: 1.25; }
.rr3-tip small { font-size: 11.5px; color: #b9c2dd; }

/* mode jalan-jalan */
.rr3-walkbtn { width: auto !important; padding: 0 12px; gap: 6px; display: inline-flex !important; align-items: center; font-size: 15px; background: #930b32 !important; color: #fff !important; border-radius: 99px !important; }
.rr3-walkbtn span { font-size: 12.5px; font-weight: 800; }
.rr3-walkbtn[hidden] { display: none !important; }
.rr3-stage.walking .rr3-views, .rr3-stage.walking [data-rot], .rr3-stage.walking .rr3-hint { display: none !important; }
.rr3-stage.walking canvas { cursor: grab; }
.rr3-walkbar { position: absolute; top: 12px; left: 12px; z-index: 4; display: flex; gap: 6px; }
.rr3-walkbar[hidden] { display: none; }
.rr3-walkbar button { border: 0; border-radius: 99px; padding: 8px 14px; font: inherit; font-size: 13px; font-weight: 800; background: rgba(255, 255, 255, .92); color: #0f1d3a; cursor: pointer; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .5); }
.rr3-walkbar button[data-w-exit] { background: #0f1d3a; color: #fff; }
.rr3-walkhint { position: absolute; left: 50%; top: 58px; transform: translateX(-50%); z-index: 3; margin: 0; background: rgba(15, 29, 58, .82); color: #fff; font-size: 12.5px; font-weight: 600; padding: 7px 14px; border-radius: 99px; white-space: nowrap; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; }
.rr3-walkhint[hidden] { display: none; }
.rr3-joy { position: absolute; left: 18px; bottom: 18px; z-index: 4; width: 130px; height: 130px; border-radius: 50%; background: rgba(255, 255, 255, .22); border: 2px solid rgba(255, 255, 255, .7); touch-action: none; display: grid; place-items: center; }
.rr3-joy[hidden] { display: none; }
.rr3-joy.auto { border-color: #ffd23f; box-shadow: 0 0 0 4px rgba(255, 210, 63, .35); }
.rr3-joy.auto i { background: #ffd23f; }
.rr3-joy i { width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 255, 255, .9); box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .5); }
@media (max-width: 700px) {
  .rr3-walkbtn span { display: none; }
  .rr3-stage.walking .rr3-card { top: 56px; bottom: auto; left: 8px; right: 8px; }
  .rr3-stage.walking .rr3-card .rr3-card-h small, .rr3-stage.walking .rr3-card .rr3-go { display: none; }
  .rr3-walkhint { top: 54px; white-space: normal; text-align: center; font-size: 11.5px; }
}
.rr3-hud .rr3-walkbtn span { background: none; padding: 0; color: #fff; border-radius: 0; }
/* layar penuh cadangan (HP): sembunyikan header & menu bawah situs/admin supaya peta benar-benar penuh */
body.rr3-lock header.top, body.rr3-lock .bnav, body.rr3-lock .fb-tab, body.rr3-lock .bgm, body.rr3-lock header.bar, body.rr3-lock .mnav, body.rr3-lock .side { display: none !important; }
body.rr3-lock .rpub-main { position: static; z-index: auto; }

/* panel karakter */
.rr3-cust { position: absolute; top: 60px; right: 12px; bottom: 12px; z-index: 5; width: min(360px, calc(100% - 24px)); background: rgba(255, 255, 255, .97); border-radius: 18px; box-shadow: 0 20px 44px -18px rgba(0, 0, 0, .55); display: flex; flex-direction: column; overflow: hidden; color: #0f1d3a; }
.rr3-cust[hidden] { display: none; }
.rc-h { display: flex; align-items: center; gap: 6px; padding: 12px 12px 10px 16px; border-bottom: 1px solid #eee; }
.rc-h b { flex: 1; font-size: 15px; }
.rc-h button { border: 0; border-radius: 99px; padding: 7px 12px; font: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer; background: #eef1f6; color: #0f1d3a; }
.rc-h [data-c-done] { background: #930b32; color: #fff; }
.rc-b { overflow-y: auto; padding: 6px 16px 8px; flex: 1; }
.rc-row { padding: 8px 0; border-bottom: 1px dashed #eee; }
.rc-row > span { display: block; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #646b7b; margin-bottom: 6px; }
.rc-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.rc-chip { border: 1.5px solid #e4e2dc; background: #fff; border-radius: 99px; padding: 5px 11px; font: inherit; font-size: 12.5px; font-weight: 700; color: #0f1d3a; cursor: pointer; }
.rc-chip.on { background: #0f1d3a; color: #fff; border-color: #0f1d3a; }
.rc-sw { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1.5px #d6d3cc; cursor: pointer; padding: 0; }
.rc-sw.on { box-shadow: 0 0 0 2.5px #930b32; }
.rc-note { margin: 0; padding: 8px 16px 12px; font-size: 11.5px; color: #646b7b; border-top: 1px solid #eee; }
@media (max-width: 700px) { .rr3-cust { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; height: 50%; } }
/* daftar sebelum jalan-jalan */
.rr3-join { position: absolute; inset: 0; z-index: 7; background: rgba(15, 29, 58, .55); display: grid; place-items: center; padding: 16px; }
.rr3-join[hidden] { display: none; }
.rj-box { background: #fff; color: #0f1d3a; border-radius: 20px; padding: 20px; width: min(380px, 100%); display: flex; flex-direction: column; gap: 10px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .6); }
.rj-box > b { font-size: 18px; }
.rj-box > p { margin: 0; font-size: 13px; color: #646b7b; }
.rj-box label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 700; }
.rj-box input, .rc-me input { font: inherit; font-size: 15px; padding: 9px 12px; border: 1.5px solid #e4e2dc; border-radius: 12px; color: #0f1d3a; background: #fff; }
.rc-me input { font-size: 13.5px; padding: 6px 10px; width: 150px; }
.rj-g { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rj-g span { flex-basis: 100%; font-size: 12.5px; font-weight: 700; }
.rj-g button { flex: 1; border: 1.5px solid #e4e2dc; background: #fff; border-radius: 12px; padding: 10px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; color: #0f1d3a; }
.rj-g button.on { border-color: #930b32; background: #f8ebef; color: #930b32; }
.rc-err { color: #b42318; font-size: 12px; min-height: 0; }
.rj-act { display: flex; gap: 8px; justify-content: flex-end; }
.rj-act button { border: 0; border-radius: 99px; padding: 10px 16px; font: inherit; font-size: 13.5px; font-weight: 800; cursor: pointer; }
.rj-cancel { background: #eef1f6; color: #0f1d3a; } .rj-go { background: #930b32; color: #fff; }
.rc-must { margin: 6px 0 2px; font-size: 12.5px; background: #fff7e0; color: #7a5300; padding: 8px 10px; border-radius: 10px; }
/* naik kendaraan & lompat */
.rr3-ride { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 4; border: 0; border-radius: 99px; padding: 11px 18px; font: inherit; font-size: 14px; font-weight: 800; background: #ffd23f; color: #3a2400; cursor: pointer; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .6); }
.rr3-ride[hidden] { display: none; }
.rr3-jumpbtn { position: absolute; right: 18px; bottom: 76px; z-index: 4; width: 64px; height: 64px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .3); color: #fff; font-size: 26px; font-weight: 800; touch-action: none; }
.rr3-jumpbtn[hidden] { display: none; }
/* nama pemain */
.rp-lab.nick { background: rgba(15, 29, 58, .88); }
.rp-lab.nick b { color: #3fe08a; } .rp-lab.nick span { color: #fff; display: inline !important; }
.rp-lab.nick.me { background: #930b32; } .rp-lab.nick.me b { color: #ffd23f; }
@media (max-width: 700px) { .rr3-ride { bottom: 150px; } }

/* admin: pemain & rating Ruang 3D */
.r3p, .r3r { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 420px; overflow-y: auto; }
.r3p li { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "n f" "s f"; gap: 0 10px; align-items: center; border: 1px solid var(--rr-line); border-radius: 12px; padding: 8px 12px; }
.r3p li b { grid-area: n; font-size: 14px; color: var(--rr-navy); } .r3p li span { grid-area: s; font-size: 12px; color: var(--rr-muted); } .r3p li form { grid-area: f; margin: 0; }
.r3p li.blk { background: #fdf2f2; } .r3p li.blk b { text-decoration: line-through; color: #b42318; }
.r3r-sum { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 0 16px; align-items: center; margin-bottom: 12px; }
.r3r-sum > b { font-size: 40px; line-height: 1; color: var(--rr-navy); } .r3r-sum > span { grid-column: 1; color: #ffb703; font-size: 15px; letter-spacing: 1px; }
.r3r-sum > div { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; gap: 2px; }
.r3r-sum p { margin: 0; display: grid; grid-template-columns: 24px 1fr 32px; align-items: center; gap: 6px; font-size: 11.5px; color: var(--rr-muted); }
.r3r-sum p i { font-style: normal; } .r3r-sum p em { display: block; height: 7px; border-radius: 99px; background: #ffb703; min-width: 2px; }
.r3r li { border: 1px solid var(--rr-line); border-radius: 12px; padding: 8px 12px; } .r3r li b { color: #ffb703; letter-spacing: 1px; } .r3r li span { font-size: 12px; color: var(--rr-muted); }
.r3r li p { margin: 4px 0 0; font-size: 13.5px; color: var(--rr-navy); white-space: pre-line; }

/* sambutan saat muncul */
.rr3-welcome { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; padding: 16px; pointer-events: auto; background: radial-gradient(60% 60% at 50% 45%, rgba(15, 29, 58, .35), rgba(15, 29, 58, 0)); transition: opacity .5s; }
.rr3-welcome[hidden] { display: none; }
.rr3-welcome.out { opacity: 0; }
.rw-in { text-align: center; color: #fff; max-width: 560px; animation: rwPop .7s cubic-bezier(.2, 1.4, .4, 1); text-shadow: 0 3px 18px rgba(0, 0, 0, .55); }
.rw-badge { display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: rgba(147, 11, 50, .9); padding: 5px 12px; border-radius: 99px; text-shadow: none; }
.rw-in b { display: block; font-family: var(--display, system-ui); font-size: clamp(26px, 5vw, 44px); line-height: 1.05; margin: 10px 0 6px; }
.rw-in p { margin: 0 auto 12px; font-size: 15px; max-width: 460px; }
.rw-tips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.rw-tips span { background: rgba(255, 255, 255, .92); color: #0f1d3a; font-size: 12.5px; font-weight: 700; padding: 6px 11px; border-radius: 99px; text-shadow: none; }
@keyframes rwPop { from { transform: scale(.7) translateY(20px); opacity: 0; } }
.rr3-toast { position: absolute; left: 50%; top: 64px; transform: translateX(-50%); z-index: 8; background: #0f1d3a; color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 13.5px; font-weight: 700; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .6); }
.rr3-toast[hidden] { display: none; }
/* popup rating */
.rr3-rate { position: absolute; inset: 0; z-index: 7; display: grid; place-items: center; padding: 16px; background: rgba(15, 29, 58, .45); }
.rr3-rate[hidden] { display: none; }
.rr-box { position: relative; background: #fff; color: #0f1d3a; border-radius: 20px; padding: 22px 20px 18px; width: min(400px, 100%); display: flex; flex-direction: column; gap: 10px; text-align: center; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .6); animation: rwPop .4s ease-out; }
.rr-box > b { font-size: 18px; } .rr-box > p { margin: 0; font-size: 13.5px; color: #646b7b; }
.rr-x { position: absolute; top: 10px; right: 10px; border: 0; background: #eef1f6; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; color: #0f1d3a; }
.rr-stars { display: flex; justify-content: center; gap: 4px; }
.rr-stars button { border: 0; background: none; font-size: 38px; line-height: 1; color: #d6d3cc; cursor: pointer; padding: 2px; transition: transform .12s, color .12s; }
.rr-stars button:hover { transform: scale(1.12); } .rr-stars button.on { color: #ffb703; }
.rr-box textarea { font: inherit; font-size: 14px; border: 1.5px solid #e4e2dc; border-radius: 12px; padding: 10px 12px; resize: vertical; color: #0f1d3a; }
.rr-thx b { font-size: 22px; }

/* ===== HP: tombol jalan-jalan besar, layar miringkan, tata letak mendatar ===== */
.rr3-stage > .rr3-walkbtn.big { position: absolute; left: 50%; bottom: 62px; transform: translateX(-50%); z-index: 4; width: auto !important; height: auto; padding: 12px 20px; border-radius: 99px !important; font-size: 18px; box-shadow: 0 12px 28px -10px rgba(147, 11, 50, .7); animation: rrWalkPulse 2s ease-in-out infinite; white-space: nowrap; }
.rr3-stage > .rr3-walkbtn.big span { display: inline !important; font-size: 15px; font-weight: 800; color: #fff; }
@keyframes rrWalkPulse { 50% { box-shadow: 0 0 0 10px rgba(147, 11, 50, .18), 0 12px 28px -10px rgba(147, 11, 50, .7); } }
@media (max-width: 700px) { .rr3-hud [data-clock] { display: none; } .rr3-stage.map .rr3-hud { gap: 6px; } }
.rr3-rotate { position: absolute; inset: 0; z-index: 9; background: #0f1d3a; color: #fff; display: grid; place-items: center; text-align: center; padding: 24px; }
.rr3-rotate[hidden] { display: none; }
.rr3-rotate div { display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 320px; }
.rr3-rotate i { font-style: normal; font-size: 64px; display: inline-block; animation: rrTilt 1.8s ease-in-out infinite; }
@keyframes rrTilt { 0%, 30% { transform: rotate(0); } 60%, 100% { transform: rotate(-90deg); } }
.rr3-rotate b { font-size: 22px; } .rr3-rotate p { margin: 0; font-size: 14.5px; color: #c9d1e6; } .rr3-rotate small { font-size: 12.5px; color: #8f9bb8; }
.rr3-rotate button { margin-top: 10px; border: 0; border-radius: 99px; padding: 10px 20px; font: inherit; font-weight: 800; background: rgba(255, 255, 255, .14); color: #fff; }
/* HP mendatar (tinggi layar kecil) */
@media (orientation: landscape) and (max-height: 520px) {
  .rr3-stage.walking .rr3-joy { left: calc(env(safe-area-inset-left, 0px) + 56px); bottom: 34px; width: 150px; height: 150px; }
  .rr3-stage.walking .rr3-joy i { width: 62px; height: 62px; }
  .rr3-stage.walking .rr3-jumpbtn { right: calc(env(safe-area-inset-right, 0px) + 64px); bottom: 52px; width: 78px; height: 78px; font-size: 30px; }
  .rr3-stage.walking .rr3-ride { bottom: 26px; }
  .rr3-stage.walking .rr3-walkbar { top: 10px; left: calc(env(safe-area-inset-left, 0px) + 12px); }
  .rr3-stage.walking .rr3-walkbar button { padding: 6px 12px; font-size: 12.5px; }
  .rr3-stage.walking .rr3-hud { top: 10px !important; bottom: auto !important; right: calc(env(safe-area-inset-right, 0px) + 12px) !important; }
  .rr3-stage.walking .rr3-hud [data-clock] { display: none; }
  .rr3-stage.walking .rr3-walkhint { top: 52px; font-size: 11.5px; white-space: nowrap; }
  .rr3-stage.walking .rr3-card { top: 54px; bottom: auto; left: auto; right: calc(env(safe-area-inset-right, 0px) + 12px); width: 300px; max-height: calc(100% - 64px); overflow-y: auto; padding: 10px; gap: 6px; }
  .rr3-stage.walking .rr3-card .rr3-card-h img { width: 40px; height: 40px; }
  .rr3-stage.walking .rr3-card .rr3-card-h small { display: none; }
  .rr3-stage.walking .rr3-cust { top: 50px; bottom: 10px; right: 10px; left: auto; width: min(340px, 48%); height: auto; }
  .rr3-stage.walking .rw-in b { font-size: 26px; } .rr3-stage.walking .rw-in p { font-size: 13px; margin-bottom: 8px; }
  .rr3-stage.walking .rw-tips span { font-size: 11px; padding: 4px 9px; }
  .rr3-stage.walking .rr-box { max-height: calc(100vh - 32px); overflow-y: auto; padding: 14px 16px; gap: 6px; }
  .rr3-stage.walking .rr-stars button { font-size: 30px; }
  .rr3-join .rj-box { max-height: calc(100vh - 24px); overflow-y: auto; }
}
/* kontrol sentuh selalu menjauh dari pojok (pas jempol) di semua ukuran layar: jarak ikut ukuran layar */
.rr3-stage.walking .rr3-joy { left: calc(env(safe-area-inset-left, 0px) + clamp(40px, 7vw, 110px)); bottom: clamp(36px, 10vh, 110px); width: clamp(130px, 17vmin, 180px); height: clamp(130px, 17vmin, 180px); }
.rr3-stage.walking .rr3-joy i { width: 44%; height: 44%; }
.rr3-stage.walking .rr3-jumpbtn { right: calc(env(safe-area-inset-right, 0px) + clamp(48px, 8vw, 130px)); bottom: clamp(48px, 12vh, 130px); width: clamp(70px, 10vmin, 96px); height: clamp(70px, 10vmin, 96px); font-size: clamp(26px, 4vmin, 36px); }
.rr3-stage.walking .rr3-ride { bottom: clamp(24px, 6vh, 60px); }
.rr3-stage.walking .rr3-joy { left: calc(env(safe-area-inset-left, 0px) + clamp(56px, 9vw, 130px)); bottom: clamp(48px, 14vh, 130px); }
.rr3-stage.walking .rr3-jumpbtn { right: calc(env(safe-area-inset-right, 0px) + clamp(64px, 10vw, 150px)); bottom: clamp(64px, 19vh, 150px); }
/* kontrol sentuh samar (tidak menutupi pemandangan); sedikit lebih jelas saat disentuh */
.rr3-stage.walking .rr3-joy { background: rgba(255, 255, 255, .08); border: 1.5px solid rgba(255, 255, 255, .28); opacity: .55; transition: opacity .2s; }
.rr3-stage.walking .rr3-joy i { background: rgba(255, 255, 255, .45); box-shadow: none; }
.rr3-stage.walking .rr3-joy:active { opacity: .85; }
.rr3-stage.walking .rr3-jumpbtn { background: rgba(255, 255, 255, .08); border: 1.5px solid rgba(255, 255, 255, .28); color: rgba(255, 255, 255, .7); opacity: .55; transition: opacity .2s; }
.rr3-stage.walking .rr3-jumpbtn:active { opacity: .9; }

/* tombol naik kendaraan (HP): di atas tombol lompat, menyala kuning saat dekat kendaraan */
.rr3-ridebtn { position: absolute; z-index: 4; right: calc(env(safe-area-inset-right, 0px) + clamp(64px, 10vw, 150px) + 6px); bottom: calc(clamp(64px, 19vh, 150px) + clamp(70px, 10vmin, 96px) + 14px); width: 58px; height: 58px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .08); font-size: 26px; opacity: .6; touch-action: none; }
.rr3-ridebtn[hidden] { display: none; }
.rr3-ridebtn.near { opacity: 1; background: #ffd23f; border-color: #fff; box-shadow: 0 0 0 6px rgba(255, 210, 63, .35); animation: rrWalkPulse 1.4s ease-in-out infinite; }

/* HP tegak saat jalan-jalan: seluruh tampilan diputar 90° (tampil mendatar tanpa harus menunggu rotasi layar) */
.rr3-stage.map.walking.rot { position: fixed !important; inset: auto !important; top: 0 !important; left: 100vw !important; width: 100vh !important; width: 100dvh !important; height: 100vw !important; min-height: 0 !important; margin: 0 !important; border-radius: 0 !important; border: 0 !important; transform-origin: top left; transform: rotate(90deg); z-index: 9999; }
.rr3-stage.map.walking.rot .rr3-joy { left: clamp(56px, 9vh, 130px); bottom: clamp(48px, 14vw, 130px); width: clamp(130px, 17vmin, 180px); height: clamp(130px, 17vmin, 180px); }
.rr3-stage.map.walking.rot .rr3-jumpbtn { right: clamp(64px, 10vh, 150px); bottom: clamp(64px, 19vw, 150px); }
.rr3-stage.map.walking.rot .rr3-ridebtn { right: calc(clamp(64px, 10vh, 150px) + 6px); bottom: calc(clamp(64px, 19vw, 150px) + clamp(70px, 10vmin, 96px) + 14px); }
.rr3-stage.map.walking.rot .rr3-card { top: 54px; bottom: auto; left: auto; right: 12px; width: 300px; max-height: calc(100vw - 64px); overflow-y: auto; padding: 10px; gap: 6px; }
.rr3-stage.map.walking.rot .rr3-card .rr3-card-h small { display: none; }
.rr3-stage.map.walking.rot .rr3-cust { top: 50px; bottom: 10px; right: 10px; left: auto; width: min(340px, 48%); height: auto; }
.rr3-stage.map.walking.rot .rr3-walkbar button { padding: 6px 12px; font-size: 12.5px; }
.rr3-stage.map.walking.rot .rr3-hud { top: 10px !important; bottom: auto !important; right: 12px !important; }
.rr3-stage.map.walking.rot .rr3-hud [data-clock] { display: none; }
.rr3-stage.map.walking.rot .rr3-walkhint { top: 52px; font-size: 11.5px; }
.rr3-stage.map.walking.rot .rw-in b { font-size: 26px; } .rr3-stage.map.walking.rot .rw-in p { font-size: 13px; }
.rr3-stage.map.walking.rot .rw-tips span { font-size: 11px; padding: 4px 9px; }
.rr3-stage.map.walking.rot .rr-box, .rr3-stage.map.walking.rot .rj-box { max-height: calc(100vw - 24px); overflow-y: auto; }

/* joystick lebih jelas (tetap transparan) */
.rr3-stage.walking .rr3-joy { background: rgba(15, 29, 58, .22); border: 2px solid rgba(255, 255, 255, .6); opacity: .9; }
.rr3-stage.walking .rr3-joy i { background: rgba(255, 255, 255, .78); box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .5); }
.rr3-stage.walking .rr3-jumpbtn, .rr3-stage.walking .rr3-ridebtn:not(.near) { background: rgba(15, 29, 58, .22); border: 2px solid rgba(255, 255, 255, .6); color: #fff; opacity: .9; }

/* ---- gaya & stiker */
.rp-lab .stk { position: absolute; left: 50%; bottom: calc(100% + 4px); transform: translateX(-50%); font-style: normal; font-size: 30px; line-height: 1; padding: 6px 8px; background: #fff; border-radius: 16px; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .6); pointer-events: none; }
.rp-lab .stk::after { content: ''; position: absolute; left: 50%; bottom: -5px; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: #fff; }
.rp-lab .stk.pop { animation: rrStk 5s ease-out forwards; }
@keyframes rrStk { 0% { transform: translateX(-50%) scale(.2); opacity: 0; } 6% { transform: translateX(-50%) scale(1.25); opacity: 1; } 12% { transform: translateX(-50%) scale(1); } 88% { opacity: 1; transform: translateX(-50%) translateY(-4px); } 100% { opacity: 0; transform: translateX(-50%) translateY(-12px); } }
.rr3-emo { position: absolute; z-index: 6; top: 54px; left: 50%; transform: translateX(-50%); width: min(440px, calc(100% - 24px)); background: rgba(15, 29, 58, .94); color: #fff; border-radius: 18px; padding: 10px 12px 12px; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .7); }
.rr3-emo[hidden] { display: none; }
.re-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.re-h b { font-size: 14px; } .re-h small { color: #9fb3d9; font-size: 11.5px; flex: 1; }
.re-h button, .ro-h button { border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; font: inherit; }
.re-g { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.re-g button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; border: 0; border-radius: 12px; padding: 7px 2px 6px; background: rgba(255, 255, 255, .1); color: #fff; font: inherit; font-size: 10.5px; font-weight: 700; cursor: pointer; }
.re-g button i { font-style: normal; font-size: 24px; line-height: 1; }
.re-g button span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.re-g kbd { position: absolute; top: 3px; right: 4px; font: 700 9px/1 Inter, system-ui, sans-serif; color: #9fb3d9; }
.re-s { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; margin-top: 8px; }
.re-s button { border: 0; border-radius: 10px; padding: 5px 0; background: rgba(255, 255, 255, .1); font-size: 22px; line-height: 1.1; cursor: pointer; }
.re-g button:hover, .re-s button:hover, .re-g button:active, .re-s button:active { background: rgba(255, 255, 255, .25); }
@media (any-pointer: coarse) { .re-g kbd { display: none; } }
@media (max-width: 520px) { .re-s { grid-template-columns: repeat(6, 1fr); } }
.rr3-stage.map.walking.rot .rr3-emo { top: 50px; }
.rr3-emobtn { position: absolute; z-index: 4; right: calc(env(safe-area-inset-right, 0px) + clamp(64px, 10vw, 150px) + clamp(70px, 10vmin, 96px) + 16px); bottom: calc(clamp(64px, 19vh, 150px) + 6px); width: 58px; height: 58px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .6); background: rgba(15, 29, 58, .22); font-size: 26px; opacity: .9; touch-action: manipulation; }
.rr3-emobtn[hidden] { display: none; }
.rr3-stage.map.walking.rot .rr3-emobtn { right: calc(clamp(64px, 10vh, 150px) + clamp(70px, 10vmin, 96px) + 16px); bottom: calc(clamp(64px, 19vw, 150px) + 6px); }

/* ---- daftar sedang online */
.rr3-on[role=button] { cursor: pointer; }
.rr3-on[role=button]::after { content: '▾'; font-size: 10px; margin-left: 2px; color: #4a5a7a; }
.rr3-olist { position: absolute; z-index: 6; top: 50px; right: 12px; width: min(300px, calc(100% - 24px)); max-height: min(360px, calc(100% - 64px)); overflow-y: auto; background: #fff; color: #0f1d3a; border-radius: 16px; padding: 10px 12px; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6); }
.rr3-olist[hidden] { display: none; }
.ro-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.ro-h b { font-size: 14px; }
.ro-h button { background: #eef1f7; color: #0f1d3a; }
.rr3-olist ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rr3-olist li { display: flex; flex-direction: column; padding: 6px 9px; border-radius: 10px; background: #f4f6fb; font-size: 12.5px; }
.rr3-olist li b { font-weight: 800; color: #930b32; }
.rr3-olist li.nk b { color: #11843f; }
.rr3-olist li.me { background: #930b32; } .rr3-olist li.me b, .rr3-olist li.me span { color: #fff; }
.rr3-olist li span { color: #4a5a7a; font-size: 11.5px; }
.rr3-olist p { margin: 8px 0 0; font-size: 10.5px; color: #6b7894; }
@media (max-width: 700px) { .rr3-stage.map:not(.walking) .rr3-olist { top: auto; bottom: 46px; } }
/* atur karakter: label status/pengunjung disembunyikan supaya karakter tidak tertutup */
.rr3-stage.custom [data-labels] { visibility: hidden; }
/* ruang ganti: tombol putar karakter */
.rr3-spin { position: absolute; z-index: 5; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; max-width: calc(100% - 400px); }
.rr3-spin[hidden] { display: none; }
.rr3-spin button { border: 1.5px solid rgba(255, 255, 255, .35); border-radius: 99px; height: 40px; min-width: 40px; padding: 0 12px; font: inherit; font-size: 14px; font-weight: 800; background: #0f1d3a; color: #fff; cursor: pointer; box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .6); touch-action: manipulation; }
.rr3-spin button[data-sp="-1"], .rr3-spin button[data-sp="1"] { font-size: 20px; padding: 0; }
.rr3-spin small { flex-basis: 100%; font-size: 11.5px; font-weight: 600; color: rgba(255, 255, 255, .78); text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
@media (max-width: 700px) { .rr3-spin { max-width: calc(100% - 32px); top: 56px; bottom: auto; } }
@media (any-pointer: coarse) and (orientation: landscape), (any-pointer: coarse) and (max-height: 500px) { .rr3-stage.walking .rr3-spin { top: auto; bottom: 12px; left: 12px; max-width: calc(52% - 24px); } }
.rr3-stage.map.walking.rot .rr3-spin { top: auto; bottom: 12px; left: 12px; max-width: calc(52% - 24px); }
/* nama & jenis kelamin terkunci di panel karakter */
.rc-me input[disabled] { background: #f3f4f8; color: #4a5a7a; cursor: not-allowed; }
.rc-chip.rc-lock { cursor: default; }
.rc-lockn { display: block; margin-top: 6px; font-size: 11.5px; color: #6b7894; }

/* HP miring: pakai ukuran layar yang benar-benar terlihat (diukur JS), supaya tombol kanan tidak terpotong */
.rr3-stage.map.walking.rot { left: var(--rw, 100vw) !important; width: var(--rh, 100dvh) !important; height: var(--rw, 100vw) !important; }
/* HP: tombol "Gaya & stiker" di bar atas disembunyikan (sudah ada tombol bulat 😀), bar atas lebih ringkas */
@media (any-pointer: coarse) {
  .rr3-stage.walking .rr3-walkbar [data-w-emo] { display: none; }
  .rr3-stage.walking .rr3-walkbar { gap: 5px; max-width: calc(100% - 190px); }
  .rr3-stage.walking .rr3-walkbar button { padding: 6px 11px; font-size: 12px; white-space: nowrap; }
  .rr3-stage.walking .rr3-hud { gap: 5px; }
}
/* tombol kendaraan hanya muncul saat dekat kendaraan / sedang naik */
.rr3-stage.walking .rr3-ridebtn:not(.near) { display: none; }
/* ruang ganti di HP miring: tombol putar lebih ringkas, petunjuk kecil disembunyikan */
.rr3-stage.map.walking.rot .rr3-spin small { display: none; }
.rr3-stage.map.walking.rot .rr3-spin button { height: 36px; min-width: 36px; font-size: 12.5px; }
@media (any-pointer: coarse) and (max-height: 500px) { .rr3-stage.walking .rr3-spin small { display: none; } .rr3-stage.walking .rr3-spin button { height: 36px; min-width: 36px; font-size: 12.5px; } }
/* di ruang ganti, bar tombol jalan-jalan disembunyikan (sudah ada tombol Selesai) supaya judul & karakter lega */
.rr3-stage.custom .rr3-walkbar, .rr3-stage.custom .rr3-walkhint { display: none !important; }

/* ================================================================ RUANG AUDISI (lomba dance) */
.rr3-audgo { position: absolute; z-index: 6; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; border: 0; border-radius: 18px; padding: 12px 26px; background: linear-gradient(135deg, #ff3d6e, #7b5cff); color: #fff; font: inherit; font-size: 22px; cursor: pointer; box-shadow: 0 0 0 4px rgba(255, 207, 92, .55), 0 14px 30px -10px rgba(0, 0, 0, .6); animation: rrWalkPulse 1.4s ease-in-out infinite; }
.rr3-audgo b { font-size: 17px; font-weight: 900; letter-spacing: .02em; } .rr3-audgo small { font-size: 11.5px; font-weight: 700; opacity: .85; }
.rr3-audgo[hidden] { display: none; }
.rr3-stage.aud .rr3-walkbar, .rr3-stage.aud .rr3-joy, .rr3-stage.aud .rr3-jumpbtn, .rr3-stage.aud .rr3-emobtn, .rr3-stage.aud .rr3-ridebtn, .rr3-stage.aud .rr3-ride, .rr3-stage.aud .rr3-walkhint, .rr3-stage.aud .rr3-card, .rr3-stage.aud .rr3-emo { display: none !important; }
.rr3-stage.aud [data-labels] { visibility: hidden; }
.rr3-aud { position: absolute; inset: 0; z-index: 7; pointer-events: none; color: #fff; font-family: Inter, system-ui, sans-serif; }
.rr3-aud[hidden] { display: none; }
.rr3-aud button, .rr3-aud .ra-sheet { pointer-events: auto; }
.ra-top { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; align-items: center; gap: 10px; }
.ra-song { flex: 1; max-width: 340px; background: rgba(13, 10, 28, .78); border: 1.5px solid rgba(255, 255, 255, .18); border-radius: 14px; padding: 7px 12px; }
.ra-song b { display: block; font-size: 13.5px; font-weight: 800; margin-bottom: 5px; }
.ra-song i { display: block; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .15); overflow: hidden; } .ra-song i span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ffcf5c, #ff3d6e); }
.ra-score { margin-left: auto; text-align: right; background: rgba(13, 10, 28, .78); border: 1.5px solid rgba(255, 207, 92, .5); border-radius: 14px; padding: 5px 14px; }
.ra-score small { display: block; font-size: 10px; font-weight: 800; letter-spacing: .12em; color: #ffcf5c; } .ra-score b { font-size: 24px; font-weight: 900; font-variant-numeric: tabular-nums; }
.ra-x { border: 0; width: 40px; height: 40px; border-radius: 50%; background: rgba(13, 10, 28, .78); color: #fff; font-size: 16px; cursor: pointer; }
.ra-count { position: absolute; left: 0; right: 0; top: 34%; text-align: center; font-size: clamp(40px, 9vmin, 84px); font-weight: 900; color: #ffcf5c; text-shadow: 0 0 24px rgba(255, 61, 110, .8), 0 4px 0 #930b32; }
.ra-judge { position: absolute; left: 0; right: 0; top: 22%; text-align: center; opacity: 0; }
.ra-judge b { display: block; font-size: clamp(30px, 7vmin, 60px); font-weight: 900; letter-spacing: .04em; font-style: italic; }
.ra-judge span { display: block; font-size: clamp(16px, 3.4vmin, 24px); font-weight: 900; color: #ffcf5c; } .ra-judge small { display: block; font-size: 13px; font-weight: 700; opacity: .85; }
.ra-judge.pop { animation: raPop 0.9s ease-out forwards; }
@keyframes raPop { 0% { opacity: 0; transform: scale(.5); } 12% { opacity: 1; transform: scale(1.18); } 22% { transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px); } }
.ra-judge.j0 b { color: #ffe066; text-shadow: 0 0 18px #ff9f1c, 0 3px 0 #b35c00; } .ra-judge.j1 b { color: #7ee8c1; text-shadow: 0 0 16px #1db954, 0 3px 0 #0f766e; }
.ra-judge.j2 b { color: #8fd3ff; text-shadow: 0 3px 0 #2c5bd9; } .ra-judge.j3 b { color: #d6c6ff; text-shadow: 0 3px 0 #5b2bb5; } .ra-judge.j4 b { color: #ff8fa3; text-shadow: 0 3px 0 #930b32; }
.ra-panel { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); width: min(620px, calc(100% - 24px)); display: grid; grid-template-columns: auto 1fr; gap: 8px 10px; align-items: center; background: rgba(13, 10, 28, .82); border: 2px solid rgba(255, 255, 255, .16); border-radius: 22px; padding: 10px 14px 12px; }
.ra-panel[hidden] { display: none; }
.ra-lv { font-size: 11px; font-weight: 900; color: #ffcf5c; letter-spacing: .1em; text-align: center; } .ra-lv b { display: block; font-size: 22px; color: #fff; letter-spacing: 0; }
.ra-arrows { display: flex; justify-content: center; gap: 6px; flex-wrap: nowrap; min-height: 44px; }
.ra-arrows i { flex: 0 1 44px; height: 44px; display: grid; place-items: center; font-style: normal; font-size: 24px; font-weight: 900; border-radius: 12px; background: #2a2450; border: 2px solid #5a4fa0; color: #fff; }
.ra-arrows i.ok { background: linear-gradient(180deg, #3fe08a, #0f9a55); border-color: #b6ffd6; color: #fff; transform: scale(.94); }
.ra-arrows.bad { animation: raShake .3s; } .ra-arrows.bad i { border-color: #ff6b8b; }
@keyframes raShake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-7px); } 75% { transform: translateX(7px); } }
.ra-bar { grid-column: 1 / -1; position: relative; height: 14px; border-radius: 99px; background: linear-gradient(90deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .2)); }
.ra-bar em { position: absolute; left: 87.5%; top: -6px; bottom: -6px; width: 6px; margin-left: -3px; border-radius: 3px; background: #ffcf5c; box-shadow: 0 0 12px #ffcf5c; }
.ra-bar i { position: absolute; top: -4px; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #ff3d6e); box-shadow: 0 0 14px #ff3d6e; left: 0; }
.ra-pad, .ra-hit { display: none; }
.ra-keys { position: absolute; left: 0; right: 0; bottom: 4px; margin: 0; text-align: center; font-size: 11.5px; color: rgba(255, 255, 255, .7); }
@media (any-pointer: coarse) {
  .ra-keys { display: none; }
  .ra-panel { bottom: 10px; width: min(460px, calc(100% - 310px)); padding: 8px 10px 10px; }
  .ra-arrows i { height: 34px; font-size: 19px; border-radius: 9px; } .ra-arrows { min-height: 34px; gap: 4px; }
  .ra-pad { display: grid; position: absolute; left: calc(env(safe-area-inset-left, 0px) + 18px); bottom: 14px; grid-template-columns: repeat(3, 52px); grid-template-rows: repeat(3, 52px); }
  .ra-pad button { border: 2px solid rgba(255, 255, 255, .5); border-radius: 14px; background: rgba(13, 10, 28, .6); color: #fff; font-size: 24px; font-weight: 900; touch-action: none; }
  .ra-pad [data-ak="1"] { grid-column: 2; grid-row: 1; } .ra-pad [data-ak="0"] { grid-column: 1; grid-row: 2; } .ra-pad [data-ak="3"] { grid-column: 3; grid-row: 2; } .ra-pad [data-ak="2"] { grid-column: 2; grid-row: 3; }
  .ra-hit { display: grid; place-items: center; position: absolute; right: calc(env(safe-area-inset-right, 0px) + 22px); bottom: 30px; width: 96px; height: 96px; border-radius: 50%; border: 3px solid #ffcf5c; background: radial-gradient(circle at 35% 35%, #ff6b8b, #930b32); color: #fff; font-size: 40px; touch-action: none; box-shadow: 0 0 22px rgba(255, 61, 110, .6); }
  .ra-pad button.on, .ra-hit.on { transform: scale(.9); filter: brightness(1.4); }
}
/* kartu pilih lagu / hasil / konfirmasi */
.ra-sheet { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(8, 6, 20, .55); padding: 12px; }
.ra-sheet[hidden] { display: none; }
.ra-card { width: min(460px, 100%); max-height: calc(100% - 8px); overflow-y: auto; background: #fff; color: #0f1d3a; border-radius: 22px; padding: 18px 18px 16px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); text-align: center; }
.ra-card h3 { margin: 0 0 4px; font-size: 20px; font-weight: 900; } .ra-sub { margin: 0 0 10px; font-size: 12.5px; color: #4a5a7a; }
.ra-best { margin: 0 0 10px; font-size: 13px; } .ra-best b { color: #930b32; }
.ra-songs { display: grid; gap: 8px; }
.ra-s { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; text-align: left; border: 2px solid #ece7f7; border-radius: 16px; padding: 11px 14px; background: linear-gradient(135deg, #fff, #f6f1ff); font: inherit; color: #0f1d3a; cursor: pointer; }
.ra-s:hover, .ra-s:focus-visible { border-color: #7b5cff; }
.ra-s b { font-size: 16px; font-weight: 900; } .ra-s span { grid-row: span 2; align-self: center; font-size: 12.5px; font-weight: 800; color: #930b32; } .ra-s small { font-size: 12px; color: #6b7894; }
.ra-acts { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.ra-acts button { border: 0; border-radius: 99px; padding: 10px 16px; font: inherit; font-size: 13.5px; font-weight: 800; cursor: pointer; }
.ra-ghost { background: #eef1f7; color: #0f1d3a; } .ra-main { background: #930b32; color: #fff; }
.ra-grade { width: 74px; height: 74px; margin: 0 auto 6px; display: grid; place-items: center; border-radius: 50%; font-size: 42px; font-weight: 900; color: #fff; background: #6b7894; }
.ra-grade.gS { background: linear-gradient(135deg, #ffcf5c, #ff7a1f); box-shadow: 0 0 0 5px #fff1c9; } .ra-grade.gA { background: linear-gradient(135deg, #3fe08a, #0f766e); } .ra-grade.gB { background: linear-gradient(135deg, #5de0ff, #2c5bd9); } .ra-grade.gC { background: #7b5cff; }
.ra-big { margin: 2px 0 8px; font-size: 34px; font-weight: 900; color: #930b32; font-variant-numeric: tabular-nums; }
.ra-stats { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.ra-stats span { display: flex; flex-direction: column; min-width: 60px; padding: 5px 6px; border-radius: 10px; background: #f4f6fb; font-size: 10px; font-weight: 800; letter-spacing: .04em; color: #4a5a7a; }
.ra-stats span b { font-size: 18px; color: #0f1d3a; } .ra-stats .j0 b { color: #c47f00; } .ra-stats .j4 b { color: #930b32; }
.ra-rank { margin: 6px 0 4px; font-size: 13.5px; } .ra-rank b { color: #930b32; }
.ra-top5 { list-style: none; counter-reset: r; margin: 8px auto 0; padding: 0; max-width: 300px; text-align: left; }
.ra-top5 li { counter-increment: r; display: flex; justify-content: space-between; gap: 8px; padding: 5px 8px; border-radius: 8px; font-size: 13px; } .ra-top5 li:nth-child(odd) { background: #f4f6fb; }
.ra-top5 li b::before { content: counter(r) '. '; color: #930b32; }
.ra-small { width: min(340px, 100%); }
.rr3-stage.map.walking.rot .ra-panel { width: min(440px, calc(100% - 300px)); }
@media (max-height: 420px) { .ra-card { padding: 12px 14px; } .ra-card h3 { font-size: 17px; } .ra-s { padding: 7px 12px; } .ra-grade { width: 54px; height: 54px; font-size: 30px; } .ra-big { font-size: 26px; margin-bottom: 4px; } }
.rr3-stage.aud .rr3-hud { display: none !important; } /* saat lomba: skor & tombol ✕ milik lomba yang tampil di kanan atas */
.rr3-aud[data-phase="pick"] .ra-song, .rr3-aud[data-phase="pick"] .ra-score, .rr3-aud[data-phase="result"] .ra-song { visibility: hidden; }
.ra-count { font-size: clamp(54px, 13vmin, 120px); top: 26%; }

/* ================================================================ GALERI: kartu info pigura */
.rr3-gcard { position: absolute; z-index: 6; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 12px; align-items: center; width: min(460px, calc(100% - 24px)); background: rgba(255, 255, 255, .97); color: #0f1d3a; border-radius: 18px; padding: 10px; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6); animation: rpIn .3s ease-out; }
.rr3-gcard[hidden] { display: none; }
.rr3-gcard img { width: 84px; height: 108px; object-fit: cover; border-radius: 10px; flex: 0 0 auto; background: #eee; }
.rr3-gcard div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rr3-gcard small { font-size: 10.5px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: #930b32; } .rr3-gcard small.k-up { color: #0f766e; } .rr3-gcard small.k-art { color: #2c5bd9; }
.rr3-gcard b { font-size: 15.5px; font-weight: 900; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rr3-gcard span { font-size: 12.5px; color: #4a5a7a; }
.rr3-gcard a { align-self: flex-start; margin-top: 4px; padding: 7px 14px; border-radius: 99px; background: #930b32; color: #fff; font-size: 12.5px; font-weight: 800; text-decoration: none; }
@media (any-pointer: coarse) { .rr3-stage.walking .rr3-gcard { bottom: auto; top: 54px; width: min(400px, calc(100% - 220px)); } .rr3-gcard img { width: 64px; height: 82px; } }
.rr3-stage.custom .rr3-gcard, .rr3-stage.aud .rr3-gcard { display: none !important; }

/* ================================================================ GALERI: lift antar-lantai */
.rr3-liftbtn { position: absolute; z-index: 6; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; border: 0; border-radius: 16px; padding: 10px 22px; background: linear-gradient(135deg, #0f1d3a, #2c5bd9); color: #fff; font: inherit; font-size: 20px; cursor: pointer; box-shadow: 0 0 0 3px rgba(255, 207, 92, .6), 0 14px 30px -10px rgba(0, 0, 0, .6); }
.rr3-liftbtn b { font-size: 15px; font-weight: 900; } .rr3-liftbtn small { font-size: 11.5px; font-weight: 700; opacity: .85; }
.rr3-liftbtn[hidden] { display: none; }
.rr3-liftmenu { position: absolute; z-index: 7; left: 50%; bottom: 20px; transform: translateX(-50%); width: min(380px, calc(100% - 24px)); max-height: calc(100% - 80px); overflow-y: auto; background: #fff; color: #0f1d3a; border-radius: 18px; padding: 10px; box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .7); }
.rr3-liftmenu[hidden] { display: none; }
.lm-h { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 8px; } .lm-h b { font-size: 15px; } .lm-h button { border: 0; width: 30px; height: 30px; border-radius: 50%; background: #eef1f7; cursor: pointer; }
.lm-f { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; border-radius: 12px; padding: 8px 10px; margin-top: 4px; background: #f4f6fb; font: inherit; text-align: left; color: #0f1d3a; cursor: pointer; }
.lm-f b { flex: 0 0 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: #0f1d3a; color: #ffcf5c; font-size: 17px; font-weight: 900; }
.lm-f span { font-size: 12.5px; font-weight: 700; line-height: 1.3; }
.lm-f.on { background: #fff1c9; } .lm-f.on b { background: #930b32; color: #fff; }
.rr3-liftflash { position: absolute; inset: 0; z-index: 8; background: #0b0d14; pointer-events: none; opacity: 0; }
.rr3-liftflash[hidden] { display: none; }
.rr3-liftflash.go { animation: liftGo .7s ease-out; }
@keyframes liftGo { 0% { opacity: 0; } 25% { opacity: 1; } 55% { opacity: 1; } 100% { opacity: 0; } }
.rr3-stage.custom .rr3-liftbtn, .rr3-stage.custom .rr3-liftmenu, .rr3-stage.aud .rr3-liftbtn { display: none !important; }
@media (any-pointer: coarse) { .rr3-stage.walking .rr3-liftbtn { bottom: 18px; } }
/* tombol lift di kiri bawah (laptop) / kiri atas di bawah bar (HP) supaya tidak menumpuk dengan kartu info pigura */
.rr3-liftbtn { left: 18px; transform: none; bottom: 22px; }
.rr3-liftmenu { left: 18px; transform: none; bottom: 22px; }
@media (any-pointer: coarse) { .rr3-stage.walking .rr3-liftbtn, .rr3-stage.walking .rr3-liftmenu { left: 12px; top: 54px; bottom: auto; } .rr3-stage.walking .rr3-liftmenu { max-height: calc(100% - 70px); } }
/* HP: kartu info galeri ringkas di kanan atas supaya poster/foto tetap terlihat */
@media (any-pointer: coarse) {
  .rr3-stage.walking .rr3-gcard { top: 52px; right: 12px; left: auto; bottom: auto; transform: none; width: min(270px, 42%); padding: 8px 10px; gap: 8px; border-radius: 14px; background: rgba(255, 255, 255, .94); }
  .rr3-stage.walking .rr3-gcard img { display: none; }
  .rr3-stage.walking .rr3-gcard b { font-size: 13.5px; -webkit-line-clamp: 1; } .rr3-stage.walking .rr3-gcard span { font-size: 11px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
  .rr3-stage.walking .rr3-gcard small { font-size: 9.5px; } .rr3-stage.walking .rr3-gcard a { padding: 5px 11px; font-size: 11.5px; margin-top: 2px; }
}

/* ================================================================ tombol duduk / berdiri */
.rr3-sitbtn { position: absolute; z-index: 6; left: 50%; bottom: 22px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 99px; padding: 10px 20px; background: #fff; color: #0f1d3a; font: inherit; font-size: 18px; cursor: pointer; box-shadow: 0 0 0 3px rgba(147, 11, 50, .35), 0 12px 26px -10px rgba(0, 0, 0, .55); }
.rr3-sitbtn b { font-size: 14.5px; font-weight: 900; }
.rr3-sitbtn small { font: 800 11px/1 Inter, system-ui, sans-serif; padding: 3px 6px; border-radius: 5px; background: #eef1f7; color: #4a5a7a; }
.rr3-sitbtn[hidden] { display: none; }
.rr3-playbtn { box-shadow: 0 0 0 3px rgba(34, 170, 110, .45), 0 12px 26px -10px rgba(0, 0, 0, .55); }
@media (any-pointer: coarse) { .rr3-stage.walking .rr3-playbtn { background: #7ee0a8; box-shadow: 0 0 0 6px rgba(126, 224, 168, .35); } }
.rr3-stage.custom .rr3-sitbtn, .rr3-stage.aud .rr3-sitbtn { display: none !important; }
@media (any-pointer: coarse) { .rr3-stage.walking .rr3-sitbtn { bottom: 16px; padding: 9px 18px; } }
/* HP/tablet: tombol duduk = tombol bulat di area jempol kanan (di atas tombol 😀, sejajar tombol kendaraan) */
@media (any-pointer: coarse) {
  .rr3-stage.walking .rr3-sitbtn { left: auto; transform: none; right: calc(env(safe-area-inset-right, 0px) + clamp(64px, 10vw, 150px) + clamp(70px, 10vmin, 96px) + 16px); bottom: calc(clamp(64px, 19vh, 150px) + clamp(70px, 10vmin, 96px) + 14px); width: 58px; height: 58px; padding: 0; justify-content: center; border-radius: 50%; font-size: 26px; background: #ffd23f; border: 2px solid #fff; box-shadow: 0 0 0 6px rgba(255, 210, 63, .35); touch-action: manipulation; }
  .rr3-stage.walking .rr3-sitbtn b, .rr3-stage.walking .rr3-sitbtn small { display: none; }
  .rr3-stage.map.walking.rot .rr3-sitbtn { right: calc(clamp(64px, 10vh, 150px) + clamp(70px, 10vmin, 96px) + 16px); bottom: calc(clamp(64px, 19vw, 150px) + clamp(70px, 10vmin, 96px) + 14px); }
}

/* ================================================================ STUDIO BAND: mode main alat musik */
.rr3-stage.band .rr3-walkbar, .rr3-stage.band .rr3-joy, .rr3-stage.band .rr3-jumpbtn, .rr3-stage.band .rr3-emobtn, .rr3-stage.band .rr3-ridebtn, .rr3-stage.band .rr3-ride, .rr3-stage.band .rr3-walkhint, .rr3-stage.band .rr3-card, .rr3-stage.band .rr3-emo, .rr3-stage.band .rr3-sitbtn, .rr3-stage.band .rr3-hud, .rr3-stage.band .rr3-gcard { display: none !important; }
.rr3-stage.band [data-labels] { visibility: hidden; }
.rr3-band { position: absolute; inset: 0; z-index: 7; pointer-events: none; color: #fff; font-family: Inter, system-ui, sans-serif; }
.rr3-band[hidden] { display: none; }
.rr3-band button { pointer-events: auto; font: inherit; cursor: pointer; touch-action: none; -webkit-user-select: none; user-select: none; }
.bd-top { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; align-items: center; gap: 8px; }
.bd-top b { font-size: 15px; font-weight: 900; background: rgba(16, 11, 11, .78); padding: 8px 14px; border-radius: 99px; }
.bd-top [data-bb] { border: 2px solid rgba(255, 255, 255, .4); background: rgba(16, 11, 11, .6); color: #fff; padding: 7px 14px; border-radius: 99px; font-size: 13px; font-weight: 800; }
.bd-top [data-bb].on { background: #3fe08a; color: #0f1d3a; border-color: #fff; }
.bd-x { margin-left: auto; border: 0; background: #930b32; color: #fff; padding: 9px 16px; border-radius: 99px; font-size: 13.5px; font-weight: 800; }
.bd-pads { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; width: min(720px, calc(100% - 24px)); }
.bd-pads.bd-bass { grid-template-columns: repeat(7, 1fr); } .bd-pads.bd-vokal { grid-template-columns: repeat(9, 1fr); }
.bd-pads button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 76px; border-radius: 18px; border: 2px solid rgba(255, 255, 255, .45); background: rgba(16, 11, 11, .62); color: #fff; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .8); transition: transform .06s, background .06s; }
.bd-pads button b { font-size: 16px; font-weight: 900; } .bd-pads button small { font-size: 11px; font-weight: 800; opacity: .7; }
.bd-pads button.on { transform: scale(.93); background: #ff3d6e; border-color: #fff; }
.bd-drum button:nth-child(1).on, .bd-drum button:nth-child(5).on { background: #ffcf5c; color: #3a2400; } .bd-drum button:nth-child(6) { background: rgba(147, 11, 50, .7); }
.bd-gitar button.on { background: #e11d48; } .bd-bass button.on { background: #2c5bd9; } .bd-vokal button.on { background: #7b5cff; } .bd-vokal button:last-child { background: rgba(255, 207, 92, .35); }
.bd-piano { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); width: min(760px, calc(100% - 24px)); height: 150px; display: flex; }
.bd-piano .w { flex: 1; position: relative; border: 2px solid #1b1b22; border-radius: 0 0 10px 10px; background: linear-gradient(#fff, #e8e8ee); color: #555; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; }
.bd-piano .w.on { background: linear-gradient(#ffd1dc, #ff6b8b); }
.bd-piano .b { position: absolute; top: 0; width: 6.4%; height: 60%; z-index: 2; border: 0; border-radius: 0 0 8px 8px; background: linear-gradient(#3a3a48, #111); color: #bbb; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px; }
.bd-piano .b.on { background: linear-gradient(#7b5cff, #3a2a99); }
.bd-piano small { font-size: 10px; font-weight: 800; }
.bd-keys { position: absolute; left: 0; right: 0; bottom: 4px; margin: 0; text-align: center; font-size: 11px; color: rgba(255, 255, 255, .75); }
@media (any-pointer: coarse) {
  .bd-keys, .bd-pads small, .bd-piano small { display: none; }
  .bd-pads { bottom: 14px; gap: 8px; } .bd-pads button { min-height: 68px; } .bd-pads button b { font-size: 14px; }
  .bd-piano { bottom: 12px; height: 128px; }
  .bd-pads.bd-vokal { grid-template-columns: repeat(5, 1fr); }
}
.rr3-stage.map.walking.rot .bd-pads { width: calc(100% - 24px); }
/* pesan besar di tengah layar (hitung mundur & hasil lomba dayung) */
.rr3-bigmsg { position: absolute; z-index: 8; left: 50%; top: 30%; transform: translate(-50%, -50%); pointer-events: none; text-align: center; color: #fff; font: 900 clamp(40px, 9vmin, 84px)/1.05 Inter, system-ui, sans-serif; text-shadow: 0 4px 0 #0b4f7a, 0 10px 30px rgba(0, 0, 0, .55); animation: rr3-pop .35s cubic-bezier(.2, 1.6, .4, 1); white-space: nowrap; }
.rr3-bigmsg small { display: block; margin-top: 10px; font-size: clamp(14px, 2.4vmin, 20px); font-weight: 800; text-shadow: 0 2px 8px rgba(0, 0, 0, .7); white-space: normal; max-width: 80vw; }
.rr3-bigmsg[hidden] { display: none; }
@keyframes rr3-pop { from { transform: translate(-50%, -50%) scale(.6); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
/* status wahana (kecepatan, kembali ke start, dll.) di atas tengah layar */
.rr3-ridehud { position: absolute; z-index: 6; top: calc(env(safe-area-inset-top, 0px) + 58px); left: 50%; transform: translateX(-50%); padding: 7px 16px; border-radius: 99px; background: rgba(11, 18, 32, .78); color: #fff; font: 800 15px/1.2 Inter, system-ui, sans-serif; white-space: nowrap; pointer-events: none; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .6); }
.rr3-ridehud[hidden] { display: none; }
.rr3-stage.custom .rr3-ridehud { display: none !important; }
/* tombol main/naik yang belum bisa dipakai (kereta/lomba sedang jalan) */
.rr3-playbtn.off { opacity: .6; filter: grayscale(.7); cursor: default; }
/* HP: tombol bulat tetap diberi keterangan kecil di bawahnya supaya jelas fungsinya */
@media (any-pointer: coarse) {
  .rr3-stage.walking .rr3-sitbtn b { display: block; position: absolute; left: 50%; top: calc(100% + 5px); transform: translateX(-50%); padding: 3px 8px; border-radius: 99px; background: rgba(11, 18, 32, .8); color: #fff; font: 800 11px/1.2 Inter, system-ui, sans-serif; white-space: nowrap; pointer-events: none; }
  .rr3-ridehud { font-size: 13px; padding: 5px 12px; top: calc(env(safe-area-inset-top, 0px) + 54px); }
}
.rr3-stage.swim .rr3-jumpbtn { display: none !important; }
/* HP: pratinjau gambar kota sebelum 3D dimuat (bisa digeser untuk scroll halaman) */
.rr3-stage.lazy { touch-action: auto; background: #0f1d3a; }
.rr3-stage.lazy > :not(.rr3-lazy) { visibility: hidden; }
.rr3-lazy { position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; }
.rr3-lazy img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 60%; animation: rr3LzKb 18s ease-in-out infinite alternate; }
.rr3-lazy::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 29, 58, .35) 0%, rgba(15, 29, 58, 0) 30%, rgba(15, 29, 58, .2) 55%, rgba(15, 29, 58, .9) 100%); pointer-events: none; }
.rr3-lazy-badge { position: absolute; z-index: 1; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 99px; background: rgba(15, 29, 58, .78); font: 800 12px/1.2 Inter, system-ui, sans-serif; }
.rr3-lazy-badge i { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; animation: rr3LzPing 1.6s ease-out infinite; }
.rr3-lazy-act, .rr3-lazy-load { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 0 16px 18px; }
.rr3-lazy-act[hidden], .rr3-lazy-load[hidden] { display: none; }
.rr3-lazy-go { border: 0; border-radius: 99px; padding: 14px 18px; background: #930b32; color: #fff; font: 800 16px/1.2 Inter, system-ui, sans-serif; box-shadow: 0 0 0 0 rgba(255, 61, 110, .55), 0 12px 24px -10px rgba(0, 0, 0, .6); animation: rr3LzGo 2.2s ease-in-out infinite; cursor: pointer; }
.rr3-lazy-map { border: 1px solid rgba(255, 255, 255, .5); border-radius: 99px; padding: 11px 18px; background: rgba(15, 29, 58, .55); color: #fff; font: 700 14px/1.2 Inter, system-ui, sans-serif; cursor: pointer; }
.rr3-lazy-act small { text-align: center; font: 600 11.5px/1.3 Inter, system-ui, sans-serif; opacity: .8; }
.rr3-lazy-load { align-items: center; gap: 10px; padding-bottom: 28px; }
.rr3-lazy-load span { width: min(240px, 70%); height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.rr3-lazy-load span i { display: block; width: 40%; height: 100%; border-radius: 99px; background: #ffcf5c; animation: rr3LzBar 1.1s ease-in-out infinite; }
.rr3-lazy-load b { font: 800 14px/1.2 Inter, system-ui, sans-serif; }
@keyframes rr3LzKb { from { transform: scale(1.04); } to { transform: scale(1.14) translate(-2%, -1%); } }
@keyframes rr3LzPing { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); } 70%, 100% { box-shadow: 0 0 0 7px rgba(61, 220, 132, 0); } }
@keyframes rr3LzGo { 50% { box-shadow: 0 0 0 8px rgba(255, 61, 110, 0), 0 12px 24px -10px rgba(0, 0, 0, .6); } }
@keyframes rr3LzBar { from { transform: translateX(-110%); } to { transform: translateX(260%); } }
@media (prefers-reduced-motion: reduce) { .rr3-lazy img, .rr3-lazy-badge i, .rr3-lazy-go { animation: none; } }
/* status koneksi (ping) di sebelah penghitung online */
.rr3-net { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: #4a5a7a; white-space: nowrap; }
.rr3-net i { width: 8px; height: 8px; border-radius: 50%; background: #b9c2d3; flex: 0 0 auto; }
.rr3-net.ok i { background: #22b35e; } .rr3-net.mid i { background: #f0b400; } .rr3-net.bad i { background: #ff7a1a; }
.rr3-net.off i { background: #e5484d; animation: rr3NetBlink 1s steps(2) infinite; } .rr3-net.off b { color: #c62a2f; }
@keyframes rr3NetBlink { 50% { opacity: .25; } }
@media (max-width: 700px), (any-pointer: coarse) { .rr3-net b { font-size: 11px; } }

/* mancing: tombol berdenyut saat ikan menyambar; nama ikan muncul di atas teman yang dapat ikan */
.rr3-playbtn.bite { background: #ffcf5c !important; animation: rrBite .45s ease-in-out infinite alternate; }
@keyframes rrBite { from { transform: translateX(-50%) scale(1); } to { transform: translateX(-50%) scale(1.08); } }
@media (any-pointer: coarse) { .rr3-stage.walking .rr3-playbtn.bite { animation-name: rrBiteM; } }
@keyframes rrBiteM { from { transform: scale(1); } to { transform: scale(1.12); } }
.rp-lab .fpop { position: absolute; left: 50%; bottom: calc(100% + 4px); transform: translateX(-50%); font-style: normal; font: 800 12.5px/1 Inter, system-ui, sans-serif; white-space: nowrap; padding: 6px 9px; background: #fff; color: #0f1d3a; border-radius: 12px; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .6); pointer-events: none; animation: rrFpop 3.5s ease-out forwards; }
@keyframes rrFpop { 0% { opacity: 0; transform: translate(-50%, 6px); } 10%, 80% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -8px); } }
/* keranjang ikan (kolam pemancingan) */
.rr3-bkbtn { position: absolute; z-index: 6; top: calc(env(safe-area-inset-top, 0px) + 112px); left: 12px; display: inline-flex; align-items: center; gap: 7px; border: 0; border-radius: 99px; padding: 8px 14px; background: #fff; color: #0f1d3a; font: 800 14px/1 Inter, system-ui, sans-serif; cursor: pointer; box-shadow: 0 0 0 3px rgba(232, 163, 58, .45), 0 10px 22px -10px rgba(0, 0, 0, .55); }
.rr3-bkbtn span { min-width: 22px; padding: 3px 6px; border-radius: 99px; background: #e8a33a; color: #fff; font-size: 12px; text-align: center; }
.rr3-bkbtn[hidden], .rr3-bkpanel[hidden] { display: none; }
.rr3-bkpanel { position: absolute; z-index: 7; top: calc(env(safe-area-inset-top, 0px) + 156px); left: 12px; width: min(320px, calc(100% - 24px)); max-height: calc(100% - 130px); overflow: auto; background: #fff; color: #0f1d3a; border-radius: 16px; padding: 12px 14px 14px; font: 500 13.5px/1.4 Inter, system-ui, sans-serif; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6); }
.rr3-bkpanel .bk-h { display: flex; align-items: center; justify-content: space-between; font-size: 15.5px; }
.rr3-bkpanel .bk-h button { border: 0; background: #eef1f7; color: #4a5a7a; width: 28px; height: 28px; border-radius: 50%; font: 800 13px/1 Inter, system-ui, sans-serif; cursor: pointer; }
.rr3-bkpanel p { margin: 8px 0 0; color: #4a5a7a; } .rr3-bkpanel p b { color: #0f1d3a; }
.rr3-bkpanel .bk-list { list-style: none; margin: 8px 0 0; padding: 0; max-height: 210px; overflow: auto; border-top: 1px solid #eef1f7; }
.rr3-bkpanel .bk-list li { display: flex; align-items: center; gap: 8px; padding: 7px 2px; border-bottom: 1px solid #eef1f7; }
.rr3-bkpanel .bk-list i { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.rr3-bkpanel .bk-list em { font-style: normal; font-size: 11px; font-weight: 800; color: #930b32; background: #fbe7ec; padding: 2px 6px; border-radius: 99px; }
.rr3-bkpanel .bk-list span { margin-left: auto; font-weight: 800; color: #0f1d3a; }
.rr3-bkpanel .bk-kinds { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.rr3-bkpanel .bk-kinds span { font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 99px; background: #f1f2f5; color: #8a8f9c; }
.rr3-bkpanel .bk-kinds span.on { background: #e3f4ec; color: #146c4a; }
.rr3-stage.custom .rr3-bkbtn, .rr3-stage.custom .rr3-bkpanel { display: none !important; }
.rr3-bkbtn i { font-style: normal; font-size: 15px; }
.rr3-bkpanel .bk-tabs { display: flex; gap: 6px; margin-top: 10px; }
.rr3-bkpanel .bk-tabs button, .rr3-bkpanel .bk-seg button { flex: 1; border: 0; border-radius: 99px; padding: 7px 10px; background: #f1f2f5; color: #4a5a7a; font: 800 12.5px/1 Inter, system-ui, sans-serif; cursor: pointer; }
.rr3-bkpanel .bk-tabs button.on { background: #0f1d3a; color: #fff; }
.rr3-bkpanel .bk-seg { display: flex; gap: 5px; margin-top: 9px; }
.rr3-bkpanel .bk-seg button.on { background: #e8a33a; color: #fff; }
.rr3-bkpanel .bk-seg.sm button { padding: 5px 8px; font-size: 11.5px; }
.rr3-bkpanel .bk-seg.sm button.on { background: #fdf0dc; color: #9a5a00; }
.rr3-bkpanel .bk-lb { list-style: none; margin: 8px 0 0; padding: 0; }
.rr3-bkpanel .bk-lb li { display: grid; grid-template-columns: 28px 1fr auto; grid-template-rows: auto auto; align-items: center; column-gap: 8px; padding: 6px 4px; border-bottom: 1px solid #eef1f7; }
.rr3-bkpanel .bk-lb li.me { background: #fff6e5; border-radius: 10px; }
.rr3-bkpanel .bk-lb .rk { grid-row: 1 / 3; font-weight: 900; text-align: center; font-size: 15px; }
.rr3-bkpanel .bk-lb b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rr3-bkpanel .bk-lb b em { font-style: normal; font-size: 10.5px; color: #9a5a00; background: #fdf0dc; padding: 1px 6px; border-radius: 99px; }
.rr3-bkpanel .bk-lb small { grid-column: 2; color: #8a8f9c; font-size: 11.5px; }
.rr3-bkpanel .bk-lb .v { grid-column: 3; grid-row: 1 / 3; font-weight: 900; }
/* ruang ganti: ajakan diantar ke sana bila tombol Karakter ditekan di luar */
.rr3-drask { position: absolute; z-index: 8; top: calc(env(safe-area-inset-top, 0px) + 56px); left: 50%; transform: translateX(-50%); width: min(340px, calc(100% - 24px)); background: #fff; color: #0f1d3a; border-radius: 16px; padding: 14px 16px; font: 500 13.5px/1.45 Inter, system-ui, sans-serif; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6); }
.rr3-drask[hidden] { display: none; }
.rr3-drask b { font-size: 15px; } .rr3-drask p { margin: 6px 0 10px; color: #4a5a7a; }
.rr3-drask div { display: flex; gap: 8px; justify-content: flex-end; }
.rr3-drask button { border: 0; border-radius: 99px; padding: 8px 14px; font: 800 13px/1 Inter, system-ui, sans-serif; cursor: pointer; background: #eef1f7; color: #4a5a7a; }
.rr3-drask button[data-dr-go] { background: #c2185b; color: #fff; }

/* kebutuhan karakter & tas */
.rr3-needs { position: absolute; z-index: 6; top: calc(env(safe-area-inset-top, 0px) + 54px); left: 12px; display: flex; align-items: center; gap: 8px; padding: 5px 6px 5px 5px; border-radius: 99px; background: rgba(255, 255, 255, .94); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .55); }
.rr3-needs[hidden], .rr3-ndpanel[hidden] { display: none; }
.rr3-needs .nd-face { width: 40px; height: 40px; border: 3px solid #fff; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; box-shadow: 0 0 0 2px rgba(15, 29, 58, .12); }
.rr3-needs .nd-bars { display: grid; grid-template-columns: repeat(2, 64px); gap: 4px 8px; cursor: pointer; }
.rr3-needs .nd-b { display: flex; align-items: center; gap: 4px; }
.rr3-needs .nd-b i { font-style: normal; font-size: 12px; width: 15px; text-align: center; }
.rr3-needs .nd-b span { flex: 1; height: 7px; border-radius: 99px; background: #e6e9ef; overflow: hidden; }
.rr3-needs .nd-b span b { display: block; height: 100%; border-radius: 99px; transition: width .6s; }
.rr3-needs .nd-b.low span { animation: rrLow 1s ease-in-out infinite alternate; }
@keyframes rrLow { from { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0); } to { box-shadow: 0 0 0 2px rgba(225, 29, 72, .7); } }
.rr3-needs .nd-tas { position: relative; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #0f1d3a; font-size: 20px; cursor: pointer; }
.rr3-needs .nd-tas span { position: absolute; right: -4px; top: -4px; min-width: 18px; padding: 2px 4px; border-radius: 99px; background: #e8a33a; color: #fff; font: 800 10.5px/14px Inter, system-ui, sans-serif; }
.rr3-needs .nd-tas span:empty, .rr3-needs .nd-tas span:where(:not(:empty)) { } 
.rr3-ndpanel { position: absolute; z-index: 8; top: calc(env(safe-area-inset-top, 0px) + 106px); left: 12px; width: min(330px, calc(100% - 24px)); max-height: calc(100% - 130px); overflow: auto; background: #fff; color: #0f1d3a; border-radius: 16px; padding: 12px 14px 14px; font: 500 13.5px/1.4 Inter, system-ui, sans-serif; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6); }
.rr3-ndpanel .nd-h { display: flex; align-items: center; justify-content: space-between; font-size: 15.5px; }
.rr3-ndpanel .nd-h button { border: 0; background: #eef1f7; color: #4a5a7a; width: 28px; height: 28px; border-radius: 50%; font: 800 13px/1 Inter, system-ui, sans-serif; cursor: pointer; }
.rr3-ndpanel .nd-tabs { display: flex; gap: 6px; margin-top: 10px; }
.rr3-ndpanel .nd-tabs button { flex: 1; border: 0; border-radius: 99px; padding: 7px 10px; background: #f1f2f5; color: #4a5a7a; font: 800 12.5px/1 Inter, system-ui, sans-serif; cursor: pointer; }
.rr3-ndpanel .nd-tabs button.on { background: #0f1d3a; color: #fff; }
.rr3-ndpanel .nd-mood { margin: 10px 0 2px; padding: 8px 10px; border-radius: 12px; background: color-mix(in srgb, var(--mc) 14%, #fff); font-size: 18px; }
.rr3-ndpanel .nd-mood b { font-size: 14px; }
.rr3-ndpanel .nd-row { margin-top: 10px; }
.rr3-ndpanel .nd-row > div { display: flex; align-items: center; gap: 6px; }
.rr3-ndpanel .nd-row i { font-style: normal; } .rr3-ndpanel .nd-row span { margin-left: auto; font-weight: 800; }
.rr3-ndpanel .nd-row p { margin: 4px 0 0; height: 8px; border-radius: 99px; background: #eef1f7; overflow: hidden; } .rr3-ndpanel .nd-row p b { display: block; height: 100%; border-radius: 99px; }
.rr3-ndpanel .nd-row small { display: block; margin-top: 3px; color: #8a8f9c; font-size: 11.5px; }
.rr3-ndpanel .nd-row.low span { color: #e11d48; }
.rr3-ndpanel .nd-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 10px; }
.rr3-ndpanel .nd-slot { position: relative; aspect-ratio: 1; border: 2px solid #e6e9ef; border-radius: 12px; background: #f7f8fb; font-size: 26px; cursor: pointer; }
.rr3-ndpanel .nd-slot.empty { cursor: default; background: repeating-linear-gradient(45deg, #f7f8fb 0 6px, #f1f2f5 6px 12px); }
.rr3-ndpanel .nd-slot.on { border-color: #e8a33a; background: #fff6e5; }
.rr3-ndpanel .nd-slot span { position: absolute; right: 4px; bottom: 2px; font: 800 11.5px/1 Inter, system-ui, sans-serif; color: #0f1d3a; }
.rr3-ndpanel .nd-item { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: #fff6e5; }
.rr3-ndpanel .nd-item small { color: #8a8f9c; } .rr3-ndpanel .nd-item p { margin: 3px 0 8px; color: #1d7a4a; font-weight: 700; font-size: 12.5px; }
.rr3-ndpanel .nd-item div { display: flex; gap: 8px; justify-content: flex-end; }
.rr3-ndpanel .nd-item button { border: 0; border-radius: 99px; padding: 8px 14px; font: 800 13px/1 Inter, system-ui, sans-serif; cursor: pointer; background: #eef1f7; color: #4a5a7a; }
.rr3-ndpanel .nd-item button[data-use] { background: #1db954; color: #fff; }
.rr3-ndpanel .nd-hint { margin: 10px 0 0; color: #8a8f9c; font-size: 12.5px; }
.rr3-stage.custom .rr3-needs, .rr3-stage.custom .rr3-ndpanel { display: none !important; }
/* tidur: layar meredup */
.rr3-stage.sleeping .rr3-labels { z-index: 2; }
.rr3-stage.sleeping::after { content: ''; position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse at center, rgba(10, 12, 40, .12), rgba(10, 12, 40, .5)); pointer-events: none; }
/* tombol Tidur/Bangun saat duduk: digeser supaya tidak menumpuk dengan tombol Berdiri */
.rr3-stage .rr3-playbtn.alt { bottom: 80px; }
@media (any-pointer: coarse) { .rr3-stage.walking .rr3-playbtn.alt { bottom: calc(clamp(64px, 19vh, 150px) + clamp(70px, 10vmin, 96px) + 84px); } }

/* tanda tidur: z melayang di samping nama */
.rp-lab .zzz { position: absolute; left: calc(100% + 4px); bottom: 30%; width: 48px; height: 48px; pointer-events: none; font-style: normal; z-index: 5; }
.rp-lab .zzz b { position: absolute; left: 0; bottom: 0; font: 900 17px/1 Inter, system-ui, sans-serif; color: #e8efff; -webkit-text-stroke: 1.5px #2a3ab8; paint-order: stroke fill; text-shadow: 0 2px 6px rgba(20, 30, 120, .55); opacity: 0; animation: rrZzz 2.7s ease-out infinite; }
.rp-lab .zzz b:nth-child(2) { font-size: 22px; animation-delay: .9s; } .rp-lab .zzz b:nth-child(3) { font-size: 28px; animation-delay: 1.8s; }
@keyframes rrZzz { 0% { opacity: 0; transform: translate(0, 4px) rotate(-10deg) scale(.7); } 18% { opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; transform: translate(26px, -42px) rotate(12deg) scale(1.05); } }
/* kartu statistik: bisa diperkecil (sisa wajah & tas) */
.rr3-needs .nd-min { width: 22px; height: 40px; border: 0; border-radius: 99px; background: #eef1f7; color: #4a5a7a; font: 900 15px/1 Inter, system-ui, sans-serif; cursor: pointer; padding: 0; }
.rr3-needs.mini .nd-bars { display: none; }
.rr3-needs .nd-face.low { animation: rrLowF 1s ease-in-out infinite alternate; }
@keyframes rrLowF { from { box-shadow: 0 0 0 2px rgba(15, 29, 58, .12); } to { box-shadow: 0 0 0 4px rgba(225, 29, 72, .75); } }
/* pengaturan */
.rr3-set { position: absolute; z-index: 9; top: calc(env(safe-area-inset-top, 0px) + 56px); right: 12px; width: min(320px, calc(100% - 24px)); max-height: calc(100% - 80px); overflow: auto; background: #fff; color: #0f1d3a; border-radius: 16px; padding: 12px 14px 14px; font: 500 13.5px/1.4 Inter, system-ui, sans-serif; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6); text-align: left; }
.rr3-set[hidden] { display: none; }
.rr3-set .rs-h { display: flex; align-items: center; justify-content: space-between; font-size: 15.5px; }
.rr3-set .rs-h button { border: 0; background: #eef1f7; color: #4a5a7a; width: 28px; height: 28px; border-radius: 50%; font: 800 13px/1 Inter, system-ui, sans-serif; cursor: pointer; }
.rr3-set .rs-l { margin: 10px 0 6px; font-weight: 800; font-size: 12.5px; color: #4a5a7a; }
.rr3-set .rs-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.rr3-set .rs-seg button { border: 2px solid #e6e9ef; border-radius: 12px; background: #f7f8fb; padding: 8px 6px; cursor: pointer; color: #0f1d3a; font: 800 13px/1.2 Inter, system-ui, sans-serif; }
.rr3-set .rs-seg button small { display: block; margin-top: 3px; font: 600 10.5px/1.2 Inter, system-ui, sans-serif; color: #8a8f9c; }
.rr3-set .rs-seg button.on { border-color: #0f1d3a; background: #0f1d3a; color: #fff; } .rr3-set .rs-seg button.on small { color: #c9d2e6; }
.rr3-set .rs-note { margin: 8px 0 0; padding: 8px 10px; border-radius: 10px; background: #fff6e5; color: #6b4a00; font-size: 12px; }
.rr3-set .rs-note[hidden] { display: none; }
.rr3-set .rs-note button { margin-top: 6px; border: 0; border-radius: 99px; padding: 6px 12px; background: #e8a33a; color: #fff; font: 800 12px/1 Inter, system-ui, sans-serif; cursor: pointer; }
.rr3-set .rs-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #eef1f7; }
.rr3-set .rs-row small { display: block; color: #8a8f9c; font-size: 11px; }
.rr3-set .rs-sw { min-width: 58px; border: 0; border-radius: 99px; padding: 7px 12px; background: #eef1f7; color: #4a5a7a; font: 800 13px/1 Inter, system-ui, sans-serif; cursor: pointer; }
.rr3-set .rs-sw.on, .rr3-set .rs-sw[data-amb][aria-pressed="true"] { background: #1db954; color: #fff; }
