/* RANGO ARCADE (module "arcade"): catalogue and full-screen player in the RANGO WORLD look (palette of daily.css).
   Scoped to .ra / .ra-player – with the module off nothing here applies. */
.ra, .ra-player {
  --ra-night: #0E1211; --ra-stone: #1D2421; --ra-stone-hi: #283130; --ra-gold: #E2B84E; --ra-gold-deep: #C9962F; --ra-pale: #F3DFA0;
  --ra-cream: #F6F1E7; --ra-muted: #A9B6AC; --ra-turq: #5DB3A9; --ra-line: rgba(232, 217, 188, .12);
  --ra-display: "Outfit", "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif; --ra-ui: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ra-spring: cubic-bezier(.3, 1.45, .45, 1);
  color: var(--ra-cream); font-family: var(--ra-ui); box-sizing: border-box;
}
.ra *, .ra-player * { box-sizing: border-box; }
.ra[hidden] { display: none !important; }
.ra { position: relative; margin: 18px 0 24px; padding: 18px clamp(14px, 3vw, 26px) 18px; border-radius: 26px; border: 1px solid var(--ra-line);
  background: radial-gradient(120% 90% at 12% 0%, rgba(226, 184, 78, .10), transparent 55%), radial-gradient(90% 70% at 100% 100%, rgba(93, 179, 169, .08), transparent 60%), linear-gradient(180deg, var(--ra-stone), #141917);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .04); }
.ra-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ra-kicker { margin: 0 0 4px; font: 700 11px/1.2 var(--ra-ui); letter-spacing: .16em; color: var(--ra-gold); }
.ra h2 { margin: 0; font: 700 clamp(20px, 3vw, 28px)/1.15 var(--ra-display); color: var(--ra-cream); letter-spacing: 0; }
.ra-count { color: var(--ra-muted); font-size: 13px; white-space: nowrap; }
.ra-fine { margin: 12px 0 0; color: var(--ra-muted); font-size: 12.5px; line-height: 1.5; }
.ra-link { border: 0; background: none; padding: 0; color: var(--ra-pale); font: inherit; text-decoration: underline; cursor: pointer; }
.ra a { color: var(--ra-pale); }

/* mission / guest strip */
.ra-strip { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 18px; background: rgba(255, 255, 255, .035); border: 1px solid var(--ra-line); }
.ra-strip p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ra-cream); }
.ra-strip-i { font-size: 26px; flex: none; }
.ra-mission { padding: 14px 16px; border-radius: 20px; border: 1px solid rgba(226, 184, 78, .28); background: linear-gradient(135deg, rgba(226, 184, 78, .12), rgba(93, 179, 169, .06)); }
.ra-mission-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ra-mission-goal { margin: 6px 0 8px; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.ra-mission-goal b { font: 700 17px/1.2 var(--ra-display); color: var(--ra-pale); }
.ra-mission-goal span { color: var(--ra-muted); font-variant-numeric: tabular-nums; }
.ra-bar { height: 10px; border-radius: 999px; background: rgba(0, 0, 0, .35); overflow: hidden; }
.ra-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ra-gold-deep), var(--ra-gold), var(--ra-pale)); transition: width .6s var(--ra-spring); }
.ra-steps { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; font-size: 14px; color: var(--ra-muted); }
.ra-steps li.is-done { color: var(--ra-pale); }
.ra-steps b { color: var(--ra-gold); margin-left: 4px; }
.ra-steps small { color: var(--ra-muted); margin-left: 4px; }
.ra-chip { display: inline-flex; align-items: center; min-height: 26px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--ra-line); background: var(--ra-stone-hi); font-size: 12.5px; font-weight: 700; color: var(--ra-cream); }
.ra-chip--gold { border-color: var(--ra-gold); color: var(--ra-night); background: var(--ra-gold); }

/* controls */
.ra-controls { display: flex; gap: 10px; margin: 14px 0 10px; flex-wrap: wrap; align-items: center; }
.ra-search { flex: 1 1 220px; }
.ra-search input { width: 100%; min-height: 44px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--ra-line); background: rgba(0, 0, 0, .28); color: var(--ra-cream); font: 500 15px var(--ra-ui); }
.ra-search input::placeholder { color: var(--ra-muted); }
.ra-search input:focus-visible { outline: 2px solid var(--ra-gold); outline-offset: 1px; }
.ra-tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(0, 0, 0, .28); border: 1px solid var(--ra-line); }
.ra-tabs button { min-height: 36px; padding: 6px 14px; border: 0; border-radius: 999px; background: none; color: var(--ra-muted); font: 700 13.5px var(--ra-ui); cursor: pointer; }
.ra-tabs button[aria-selected="true"] { background: var(--ra-gold); color: var(--ra-night); }
.ra-cats { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.ra-cats button { flex: none; min-height: 34px; padding: 5px 13px; border-radius: 999px; border: 1px solid var(--ra-line); background: var(--ra-stone-hi); color: var(--ra-cream); font: 600 13px var(--ra-ui); cursor: pointer; }
.ra-cats button[aria-pressed="true"] { border-color: var(--ra-gold); color: var(--ra-pale); box-shadow: 0 0 0 3px rgba(226, 184, 78, .14); }
.ra-tabs button:focus-visible, .ra-cats button:focus-visible, .ra-play:focus-visible, .ra-fav:focus-visible { outline: 2px solid var(--ra-gold); outline-offset: 2px; }

/* grid */
.ra-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: clamp(10px, 1.8vw, 16px); }
.ra-card { position: relative; }
.ra-play { display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; border: 1px solid var(--ra-line); border-radius: 20px; overflow: hidden; background: var(--ra-stone-hi); color: inherit; text-align: left; cursor: pointer; transition: transform .25s var(--ra-spring), border-color .2s, box-shadow .2s; -webkit-tap-highlight-color: transparent; }
.ra-play:hover { transform: translateY(-3px); border-color: rgba(226, 184, 78, .55); box-shadow: 0 12px 24px rgba(0, 0, 0, .35); }
.ra-play:active { transform: scale(.97); }
.ra-img { display: block; aspect-ratio: 16 / 9; background: radial-gradient(circle at 30% 25%, #34403B, var(--ra-stone)); }
.ra-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ra-noimg { display: grid; place-items: center; height: 100%; font-size: 34px; }
.ra-title { display: block; padding: 9px 12px 2px; font: 700 14.5px/1.25 var(--ra-display); color: var(--ra-cream); }
.ra-cat { display: block; padding: 0 12px 11px; font-size: 12px; color: var(--ra-muted); }
.ra-mp { color: var(--ra-turq); font-weight: 700; }
.ra-fav { position: absolute; top: 8px; right: 8px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: rgba(14, 18, 17, .72); color: var(--ra-pale); font-size: 20px; line-height: 1; cursor: pointer; backdrop-filter: blur(4px); }
.ra-fav.is-on { color: var(--ra-gold); border-color: var(--ra-gold); }
.ra-empty { grid-column: 1 / -1; padding: 26px 10px; text-align: center; color: var(--ra-muted); }

/* start page: part of the RANGO WORLD flow under the live stage and the daily experiences */
.ra--home { margin: 22px 0 18px; scroll-margin-top: 90px; }
.ra-feature { margin: 14px 0 6px; padding: 12px 12px 4px; border-radius: 20px; border: 1px solid rgba(93, 179, 169, .32); background: linear-gradient(135deg, rgba(93, 179, 169, .14), rgba(226, 184, 78, .06)); }
.ra-feature-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 4px 10px; }
.ra-feature-head .ra-kicker { margin: 0; color: var(--ra-turq); }
.ra-feature-head b { font: 600 14px/1.35 var(--ra-ui); color: var(--ra-cream); }
.ra-strip-list { list-style: none; margin: 0; padding: 0 2px 10px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(148px, 1fr); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.ra-strip-list .ra-card { scroll-snap-align: start; min-width: 148px; }
.ra-more { display: block; margin: 14px auto 0; }
@media (min-width: 640px) { .ra-strip-list { grid-auto-columns: minmax(170px, calc((100% - 30px) / 3.3)); } }

/* player (covers the page; RANGO WORLD stays around it) */
html.ra-open { overflow: hidden; }
.ra-player { position: fixed; inset: 0; z-index: 2147483000; display: flex; flex-direction: column; background: var(--ra-night); padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.ra-bar-top { flex: none; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 10px; border-bottom: 1px solid var(--ra-line); background: linear-gradient(180deg, var(--ra-stone), var(--ra-night)); }
.ra-ptitle { flex: 1; min-width: 0; font: 700 15px var(--ra-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ra-timer { font: 700 13.5px var(--ra-ui); color: var(--ra-pale); font-variant-numeric: tabular-nums; }
.ra-tools { display: inline-flex; gap: 6px; }
.ra-tool { min-width: 42px; min-height: 42px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--ra-line); background: var(--ra-stone-hi); color: var(--ra-cream); font: 700 15px var(--ra-ui); cursor: pointer; }
.ra-tool:focus-visible, .ra-btn:focus-visible { outline: 2px solid var(--ra-gold); outline-offset: 2px; }
.ra-tool[aria-pressed="true"] { color: var(--ra-gold); border-color: var(--ra-gold); }
.ra-stage { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; background: #000; }
.ra-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.ra-say { position: absolute; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%); margin: 0; max-width: min(92vw, 520px); padding: 0; color: var(--ra-cream); font-size: 13.5px; text-align: center; pointer-events: none; }
.ra-say:empty { display: none; }
.ra-say:not(:empty) { padding: 8px 14px; border-radius: 999px; background: rgba(14, 18, 17, .88); border: 1px solid rgba(226, 184, 78, .4); animation: ra-fade 4.2s forwards; }
@keyframes ra-fade { 0%, 85% { opacity: 1; } 100% { opacity: 0; } }
.ra-player.ra-max .ra-bar-top { position: absolute; top: env(safe-area-inset-top); right: env(safe-area-inset-right); z-index: 2; border: 0; background: none; min-height: 0; }
.ra-player.ra-max .ra-bar-top > :not(.ra-tools) { display: none; }
.ra-player:fullscreen { padding: 0; }
.ra-loading { display: flex; align-items: center; gap: 10px; color: var(--ra-muted); }
.ra-spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(226, 184, 78, .25); border-top-color: var(--ra-gold); animation: ra-spin 1s linear infinite; }
@keyframes ra-spin { to { transform: rotate(360deg); } }
.ra-notice { width: min(560px, calc(100% - 28px)); max-height: 100%; overflow: auto; padding: 22px clamp(16px, 4vw, 28px); border-radius: 24px; border: 1px solid var(--ra-line); background: linear-gradient(180deg, var(--ra-stone), #141917); color: var(--ra-cream); }
.ra-notice img { display: block; width: 64px; height: 64px; margin: 0 0 6px; }
.ra-notice h2 { margin: 0 0 8px; font: 700 22px/1.2 var(--ra-display); }
.ra-notice p, .ra-notice li { font-size: 15px; line-height: 1.5; }
.ra-notice ul { padding-left: 20px; margin: 8px 0 12px; color: var(--ra-muted); }
.ra-notice a { color: var(--ra-pale); }
.ra-check { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ra-muted); margin: 8px 0 14px; }
.ra-check input { width: 20px; height: 20px; accent-color: var(--ra-gold); }
.ra-row { display: flex; gap: 10px; flex-wrap: wrap; }
.ra-btn { min-height: 46px; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--ra-line); background: var(--ra-stone-hi); color: var(--ra-cream); font: 700 15px var(--ra-ui); cursor: pointer; }
.ra-btn--gold { border-color: var(--ra-gold); background: linear-gradient(180deg, var(--ra-pale), var(--ra-gold)); color: var(--ra-night); }
@media (max-width: 560px) {
  .ra { border-radius: 20px; }
  .ra-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ra-tabs { width: 100%; }
  .ra-tabs button { flex: 1; }
  .ra-back span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ra-play, .ra-bar i { transition: none; } .ra-spin { animation-duration: 3s; } }
