/* Rocket Breaker: a 2D canvas fills the stage; the HUD, title, menus and editor are HTML on top. Neon on dark. */
.rb { display: flex; flex-direction: column; color: #eaf2ff; --neon: #3ff5ff; --pink: #ff6bd6; --gold: #ffd36b; --panel: rgba(9,14,36,0.94); --line: rgba(120,170,255,0.28); }
.rb-stage { position: relative; width: 100%; height: min(82vh, 800px); min-height: 420px; overflow: hidden; border-radius: 10px; background: #04060f;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
  font-family: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
@media (max-width: 600px) { .rb-stage { height: auto; aspect-ratio: 9 / 16; max-height: 84vh; min-height: 0; border-radius: 8px; } }
#rb-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; outline: none; cursor: none; }
.rb-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.rb [hidden] { display: none !important; }
.rb button { font-family: inherit; }

/* ---------- HUD: a strip above the field, or the two sides of it on wide screens ---------- */
.rb-hud { position: absolute; left: var(--fx); top: calc(var(--fy) - 46px); width: var(--fw); height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 8px; pointer-events: none; padding: 0 2px; }
.rb-hl, .rb-hc, .rb-hr { display: flex; flex-direction: column; min-width: 0; line-height: 1.05; }
.rb-hl { flex: 0 1 30%; }
.rb-hc { flex: 1 1 auto; align-items: center; text-align: center; }
.rb-hr { flex: 0 0 auto; flex-direction: row; align-items: center; gap: 8px; }
.rb-score { font-size: 24px; font-weight: 900; letter-spacing: -0.01em; color: #fff; font-variant-numeric: tabular-nums; text-shadow: 0 0 12px rgba(63,245,255,0.55); white-space: nowrap; }
.rb-small { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; color: #a9bde6; white-space: nowrap; }
.rb-lvname { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: #dfe9ff; }
.rb-time { font-size: 12px; font-weight: 800; color: #a9bde6; font-variant-numeric: tabular-nums; } .rb-time.is-over { color: #ff9db1; }
.rb-lives { display: inline-flex; align-items: center; gap: 3px; }
.rb-lives i { width: 18px; height: 9px; border-radius: 5px; background: linear-gradient(#e8f4ff, #7a8fb8); box-shadow: 0 0 8px rgba(63,245,255,0.7); }
.rb-lives b { font-size: 14px; font-weight: 900; }
.rb-ibtn { pointer-events: auto; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: rgba(10,18,44,0.75); color: #fff; cursor: pointer; touch-action: manipulation; }
.rb-ibtn:hover { border-color: var(--neon); } .rb-ibtn:active { transform: scale(0.94); }
.rb-ibtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.rb.is-side .rb-hud { left: 0; top: var(--fy); width: 100%; height: var(--fh); display: block; padding: 0; }
.rb.is-side .rb-hl, .rb.is-side .rb-hc { position: absolute; right: calc(100% - var(--fx) + 18px); align-items: flex-end; text-align: right; max-width: calc(var(--fx) - 26px); }
.rb.is-side .rb-hl { top: 8px; } .rb.is-side .rb-hc { top: 74px; }
.rb.is-side .rb-hr { position: absolute; left: calc(var(--fx) + var(--fw) + 18px); top: 8px; flex-direction: column-reverse; align-items: flex-start; gap: 14px; }
.rb.is-side .rb-score { font-size: clamp(24px, 3.2vw, 40px); }
.rb.is-side .rb-lvname { white-space: normal; font-size: 13px; }
.rb.is-side .rb-lives { flex-wrap: wrap; max-width: 120px; }

/* ---------- prompts over the field ---------- */
.rb-hint { position: absolute; left: var(--fx); width: var(--fw); top: calc(var(--fy) + var(--fs) * 560px); text-align: center; pointer-events: none; font-size: 15px; font-weight: 900; color: #fff; text-shadow: 0 0 10px rgba(63,245,255,0.9), 0 2px 0 rgba(0,0,0,0.5); animation: rb-pulse 1.3s ease-in-out infinite; }
.rb-hint kbd { display: inline-block; padding: 0 6px; border-radius: 6px; background: rgba(255,255,255,0.14); font: inherit; }
.rb .rb-ht { display: none; }
@media (hover: none) and (pointer: coarse) { .rb .rb-hk { display: none; } .rb .rb-ht { display: inline; } }
@keyframes rb-pulse { 50% { opacity: 0.6; transform: scale(1.04); } }
.rb-tip { position: absolute; left: calc(var(--fx) + 12px); width: calc(var(--fw) - 24px); top: calc(var(--fy) + var(--fs) * 420px); padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(6,12,34,0.82); color: #e6f0ff;
  font-size: 14px; font-weight: 700; line-height: 1.35; text-align: center; pointer-events: none; animation: rb-fadein .4s ease-out; }
.rb-tip.is-quiet { opacity: 0.85; font-size: 13px; }
@keyframes rb-fadein { from { opacity: 0; transform: translateY(6px); } }
.rb-banner { position: absolute; left: var(--fx); width: var(--fw); top: calc(var(--fy) + var(--fs) * 330px); transform: translateY(-50%); text-align: center; pointer-events: none; opacity: 0;
  font-size: clamp(24px, calc(var(--fs) * 42px), 40px); font-weight: 900; letter-spacing: 0.02em; color: #fff; text-shadow: 0 0 18px rgba(63,245,255,0.8), 0 3px 0 rgba(0,0,0,0.5); }
.rb-banner small { display: block; margin-bottom: 4px; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); text-shadow: 0 0 10px rgba(255,211,107,0.7); }
.rb-banner.is-on { animation: rb-banner 1.7s ease-out forwards; }
@keyframes rb-banner { 0% { opacity: 0; transform: translateY(-50%) scale(0.85); } 12% { opacity: 1; transform: translateY(-50%) scale(1.04); } 20% { transform: translateY(-50%) scale(1); } 78% { opacity: 1; } 100% { opacity: 0; } }
.rb-toast { position: absolute; left: 50%; top: 18%; transform: translate(-50%, -50%); padding: 9px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(6,12,34,0.9); font-size: 15px; font-weight: 800;
  white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .25s; z-index: 6; }
.rb-toast.is-on { opacity: 1; }

/* ---------- title ---------- */
.rb-title { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 12px; padding: 26px 14px 18px; text-align: center;
  background: radial-gradient(ellipse at 50% 28%, rgba(4,6,15,0.62), rgba(4,6,15,0.5) 45%, rgba(4,6,15,0.78) 85%); }
.rb-logo { margin: 0; display: flex; flex-direction: column; align-items: center; line-height: 0.9; font-size: clamp(44px, 11vmin, 84px); font-weight: 900; letter-spacing: 0.02em; text-transform: uppercase; color: #fff;
  text-shadow: 0 0 6px #fff, 0 0 18px var(--neon), 0 0 42px rgba(63,245,255,0.6); animation: rb-logo .7s cubic-bezier(.2,1.3,.4,1) both; }
.rb-logo span:last-child { color: #ffe9fb; text-shadow: 0 0 6px #fff, 0 0 18px var(--pink), 0 0 42px rgba(255,107,214,0.6); }
@keyframes rb-logo { from { opacity: 0; transform: scale(0.8) translateY(-20px); } }
.rb-tagline { margin: 12px 0 0; font-size: 14px; font-weight: 800; letter-spacing: 0.04em; color: #cfe0ff; text-shadow: 0 2px 0 rgba(0,0,0,0.5); min-height: 1em; }
.rb-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; max-width: 440px; }
.rb-mbtn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 64px; padding: 10px 8px; border: 1px solid var(--line); border-radius: 16px;
  background: rgba(10,18,46,0.82); color: #fff; cursor: pointer; touch-action: manipulation; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03), 0 6px 18px rgba(0,0,0,0.35); transition: border-color .15s, transform .1s, box-shadow .15s; }
.rb-mbtn b { font-size: 17px; font-weight: 900; letter-spacing: 0.01em; }
.rb-mbtn small { font-size: 12px; font-weight: 700; color: #9fb4dd; }
.rb-mbtn:hover { border-color: var(--neon); box-shadow: 0 0 18px rgba(63,245,255,0.35); } .rb-mbtn:active { transform: scale(0.97); }
.rb-mbtn-main { grid-column: 1 / -1; min-height: 72px; background: linear-gradient(180deg, rgba(20,200,230,0.35), rgba(20,80,160,0.35)); border-color: rgba(63,245,255,0.7); box-shadow: 0 0 22px rgba(63,245,255,0.3); }
.rb-mbtn-main b { font-size: 21px; }
.rb-minis { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.rb-mini { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; min-width: 66px; min-height: 52px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 14px; background: rgba(10,18,46,0.7);
  color: #dfe9ff; font-size: 11.5px; font-weight: 800; text-decoration: none; cursor: pointer; touch-action: manipulation; }
.rb-mini:hover { border-color: var(--neon); color: #fff; }
.rb-mini svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rb-sound .off { display: none; } .rb-sound[aria-pressed="true"] .on { display: none; } .rb-sound[aria-pressed="true"] .off { display: inline; } .rb-sound[aria-pressed="true"] { color: #8a95b7; }
.rb-mbtn:focus-visible, .rb-mini:focus-visible, .rb-btn:focus-visible, .rb-lv:focus-visible, .rb-wtab:focus-visible, .rb-card:focus-visible, .rb-ibtn:focus-visible, .rb-close:focus-visible, .rb-toggle:focus-visible, .rb-seg button:focus-visible, .rb-ed button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* ---------- panels ---------- */
.rb-overlay { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; padding: 14px; background: rgba(2,4,14,0.6); }
.rb-panel { position: relative; width: min(100%, 420px); max-height: 100%; overflow: auto; overscroll-behavior: contain; text-align: center; padding: 22px 18px 18px; border-radius: 20px;
  background: var(--panel); border: 1px solid rgba(63,245,255,0.35); box-shadow: 0 0 30px rgba(63,245,255,0.18), 0 24px 60px rgba(0,0,0,0.6); color: #eaf2ff; animation: rb-in .28s cubic-bezier(.2,1.3,.4,1); }
.rb-overlay.is-sheet .rb-panel { width: min(100%, 560px); }
@keyframes rb-in { from { opacity: 0; transform: scale(0.92) translateY(8px); } }
.rb-panel h3 { margin: 0 0 6px; font-size: 22px; font-weight: 900; color: #fff; text-transform: none; letter-spacing: 0; }
.rb-kicker { margin: 0 0 4px; font-size: 11.5px; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.rb-left { text-align: left; margin-top: 14px; }
.rb-big { margin: 2px 0; font-size: 58px; line-height: 1; font-weight: 900; letter-spacing: -0.02em; color: #fff; text-shadow: 0 0 20px rgba(63,245,255,0.5); font-variant-numeric: tabular-nums; }
.rb-sub { margin: 6px 0 12px; font-size: 14px; font-weight: 700; color: #b9c9ea; line-height: 1.45; } .rb-sub b { color: #fff; }
.rb-note { margin: 10px 0 0; font-size: 12.5px; font-weight: 600; color: #8ea3cc; line-height: 1.4; }
.rb-new { display: inline-block; padding: 3px 10px; border-radius: 99px; background: var(--gold); color: #3d2800; font-size: 12px; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; }
.rb-unlock { margin: 8px 0 0; font-size: 14px; font-weight: 800; color: #9dffc9; }
.rb-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.rb-btn { flex: 1 1 0; min-width: 0; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 13px; background: rgba(30,44,92,0.75); color: #fff; font-size: 15px; font-weight: 900;
  cursor: pointer; touch-action: manipulation; white-space: nowrap; transition: border-color .15s, transform .1s; }
.rb-btn:hover { border-color: var(--neon); } .rb-btn:active { transform: translateY(2px); }
.rb-btn-primary { background: linear-gradient(180deg, #1fd0e6, #0d7fb8); border-color: #6ff7ff; color: #021018; font-size: 17px; box-shadow: 0 0 18px rgba(63,245,255,0.45); }
.rb-btn-wide { flex-basis: 100%; }
.rb-btn:disabled { opacity: 0.45; cursor: default; }
.rb-close { position: absolute; right: 10px; top: 10px; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 12px; background: rgba(30,44,92,0.6); color: #fff; font-size: 22px; font-weight: 900; cursor: pointer; touch-action: manipulation; z-index: 1; }
.rb-stars { display: inline-flex; gap: 4px; } .rb-stars i { font-style: normal; color: rgba(255,255,255,0.18); }
.rb-stars-big { margin: 4px 0 2px; } .rb-stars-big i { font-size: 46px; line-height: 1; transform: scale(0.5); animation: rb-star .45s cubic-bezier(.2,1.6,.4,1) forwards; }
.rb-stars i.on { color: var(--gold); text-shadow: 0 0 14px rgba(255,211,107,0.9); }
@keyframes rb-star { to { transform: scale(1); } }
.rb-checks { list-style: none; margin: 6px auto 4px; padding: 0; display: inline-flex; flex-direction: column; gap: 3px; text-align: left; font-size: 13.5px; font-weight: 700; color: #7f90b5; }
.rb-checks li::before { content: '○ '; } .rb-checks li.on { color: #e6f0ff; } .rb-checks li.on::before { content: '★ '; color: var(--gold); }
.rb-toggles { display: grid; gap: 8px; margin-top: 14px; text-align: left; }
.rb-toggle { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(20,30,70,0.6); color: #fff; font-size: 14px; font-weight: 800; cursor: pointer; }
.rb-toggle i { position: relative; width: 40px; height: 22px; border-radius: 99px; background: #39456b; transition: background .15s; }
.rb-toggle i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.rb-toggle[aria-pressed="true"] i { background: #18c3dd; } .rb-toggle[aria-pressed="true"] i::after { transform: translateX(18px); }
.rb-seg { display: flex; gap: 6px; flex-wrap: wrap; }
.rb-seg button { flex: 1 1 0; min-height: 40px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 10px; background: rgba(20,30,70,0.6); color: #cfe0ff; font-size: 13px; font-weight: 800; cursor: pointer; }
.rb-seg button[aria-pressed="true"] { background: #18c3dd; color: #021018; border-color: #6ff7ff; }

/* campaign */
.rb-worlds { display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 6px; margin: 10px -4px 0; scrollbar-width: none; }
.rb-wtab { flex: none; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 11px; background: rgba(20,30,70,0.6); color: #cfe0ff; font-size: 13px; font-weight: 900; cursor: pointer; touch-action: manipulation; }
.rb-wtab[aria-selected="true"] { background: var(--wc); color: #04060f; border-color: #fff; box-shadow: 0 0 14px var(--wc); }
.rb-wtab:disabled { opacity: 0.45; cursor: default; }
.rb-wdesc { margin: 8px 0 0; font-size: 13px; font-weight: 600; color: #b9c9ea; line-height: 1.4; text-align: left; }
.rb-levels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px; }
.rb-lv { min-height: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 1px solid var(--line); border-radius: 13px; background: rgba(20,30,70,0.6); color: #fff; font-size: 18px; font-weight: 900; cursor: pointer; touch-action: manipulation; }
.rb-lv small { font-size: 11px; letter-spacing: 1px; color: rgba(255,255,255,0.22); } .rb-lv small em { font-style: normal; color: var(--gold); }
.rb-lv.is-done { border-color: rgba(61,255,158,0.55); background: rgba(20,70,60,0.55); }
.rb-lv.is-boss b { color: #ff9db1; text-shadow: 0 0 10px rgba(255,77,109,0.8); }
.rb-lv:disabled { opacity: 0.35; cursor: default; }
.rb-lv:not(:disabled):hover { border-color: var(--neon); }

/* hangar */
.rb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin-top: 8px; }
.rb-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px 8px; border: 1px solid var(--line); border-radius: 14px; background: rgba(20,30,70,0.55); color: #fff; font-size: 13px; cursor: pointer; min-height: 104px; }
.rb-card b { font-weight: 900; } .rb-card small { font-size: 11px; font-weight: 700; color: #9fb4dd; line-height: 1.25; }
.rb-card.is-sel { border-color: #3dff9e; box-shadow: 0 0 14px rgba(61,255,158,0.35); }
.rb-card.is-locked { opacity: 0.6; } .rb-card.is-locked .rb-art { filter: grayscale(1) brightness(0.6); }
.rb-art { display: block; width: 74px; height: 30px; }
.rb-art-ship { position: relative; } .rb-art-ship::before { content: ''; position: absolute; left: 6px; right: 6px; top: 10px; height: 13px; border-radius: 8px; background: linear-gradient(var(--b), var(--c)); box-shadow: 0 0 12px var(--a); }
.rb-art-ship::after { content: ''; position: absolute; left: 30px; top: 4px; width: 14px; height: 8px; border-radius: 8px 8px 0 0; background: linear-gradient(#e0fbff, var(--a)); }
.rb-art-trail { border-radius: 99px; background: radial-gradient(circle at 88% 50%, #fff 0 6px, transparent 7px), linear-gradient(90deg, transparent, var(--t, #3ff5ff)); }
.rb-tr-spark { --t: #3ff5ff; } .rb-tr-ember { --t: #ff7a2e; } .rb-tr-stardust { --t: #fff1a8; } .rb-tr-plasma { --t: #c77dff; }
.rb-tr-rainbow { background: radial-gradient(circle at 88% 50%, #fff 0 6px, transparent 7px), linear-gradient(90deg, transparent, #ff4d6d, #ffd84d, #3dff9e, #4dd8ff, #c77dff); }

/* ---------- editor ---------- */
.rb-editor { position: absolute; inset: 0; z-index: 4; background: rgba(3,6,18,0.97); overflow: auto; overscroll-behavior: contain; }
.rb-ed { display: flex; flex-direction: column; min-height: 100%; padding: 10px; gap: 8px; }
.rb-ed-head { display: flex; align-items: center; justify-content: space-between; position: relative; min-height: 40px; }
.rb-ed-head h3 { margin: 0; font-size: 19px; font-weight: 900; color: #fff; text-transform: none; letter-spacing: 0; }
.rb-ed-head .rb-close { position: static; }
.rb-ed-body { display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; }
.rb-ed-gridwrap { width: 100%; display: flex; justify-content: center; }
.rb-ed-grid { display: block; border: 1px solid rgba(63,245,255,0.45); border-radius: 6px; touch-action: none; cursor: crosshair; box-shadow: 0 0 20px rgba(63,245,255,0.15); }
.rb-ed-side { display: flex; flex-direction: column; gap: 8px; }
.rb-ed-pal { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 5px; }
.rb-ed-p { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 2px 4px; border: 1px solid var(--line); border-radius: 10px; background: rgba(20,30,70,0.55); color: #cfe0ff; cursor: pointer; min-height: 46px; touch-action: manipulation; }
.rb-ed-p small { font-size: 10.5px; font-weight: 800; white-space: nowrap; }
.rb-ed-p[aria-checked="true"] { border-color: #fff; background: rgba(24,195,221,0.3); box-shadow: 0 0 10px rgba(63,245,255,0.5); color: #fff; }
.rb-ed-sw { display: grid; place-items: center; height: 20px; }
.rb-ed-tools { display: flex; gap: 6px; flex-wrap: wrap; }
.rb-ed-t { flex: 1 1 auto; min-height: 38px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(20,30,70,0.6); color: #dfe9ff; font-size: 13px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.rb-ed-t[aria-pressed="true"] { border-color: #6ff7ff; color: #fff; background: rgba(24,195,221,0.28); }
.rb-ed-msg { margin: 0; min-height: 1.3em; font-size: 13px; font-weight: 700; color: #9dffc9; } .rb-ed-msg.is-bad { color: #ffb0c0; }
.rb-ed-main { display: flex; gap: 8px; } .rb-ed-main .rb-btn { min-height: 44px; }
.rb-ed-code label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 800; color: #9fb4dd; text-align: left; }
.rb-ed-in { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #050a1c; color: #fff; font: 13px/1.2 ui-monospace, Menlo, Consolas, monospace; user-select: text; -webkit-user-select: text; }
.rb-ed-row { display: flex; gap: 8px; margin-top: 6px; } .rb-ed-row .rb-btn { min-height: 40px; font-size: 14px; }
.rb-ed-saved ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 5px; }
.rb-ed-saved li { display: flex; gap: 5px; }
.rb-ed-load { flex: 1; min-height: 38px; text-align: left; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(20,30,70,0.55); color: #fff; font-weight: 800; cursor: pointer; }
.rb-ed-del { min-width: 38px; min-height: 38px; border: 1px solid var(--line); border-radius: 10px; background: rgba(90,20,40,0.55); color: #ffd0da; font-weight: 900; cursor: pointer; }
@media (min-width: 760px) and (min-aspect-ratio: 1/1) {
  .rb-ed-body { flex-direction: row; align-items: flex-start; }
  .rb-ed-gridwrap { flex: 1 1 58%; }
  .rb-ed-side { flex: 1 1 42%; max-width: 380px; }
}

/* ---------- full screen ---------- */
.stage.is-immersive .stage-body > .rb { min-height: 0; flex: 1 1 auto; }
.stage.is-immersive .rb-stage { flex: 1 1 auto; height: auto; aspect-ratio: auto; max-height: none; min-height: 0; border-radius: 0; }
@media (orientation: landscape) and (max-height: 520px) {
  .rb-title { padding: 10px 12px 10px; gap: 6px; flex-direction: row; align-items: center; justify-content: center; }
  .rb-titletop { flex: 0 0 auto; }
  .rb-logo { font-size: 40px; }
  .rb-tagline { margin-top: 6px; font-size: 12px; }
  .rb-menu { max-width: 360px; gap: 6px; }
  .rb-mbtn { min-height: 50px; padding: 6px; } .rb-mbtn-main { min-height: 54px; }
  .rb-minis { margin-top: 6px; } .rb-mini { min-height: 44px; min-width: 56px; }
  .rb-panel { padding: 14px 14px 12px; }
  .rb-big { font-size: 42px; }
  .rb-stars-big i { font-size: 34px; }
  .rb-levels { grid-template-columns: repeat(10, 1fr); gap: 5px; } .rb-lv { min-height: 48px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .rb-hint, .rb-logo, .rb-panel, .rb-stars-big i, .rb-banner.is-on { animation-duration: 0.01s; } }
