:root {
  --rr-bg: #081425;
  --rr-bg-2: #0b1c31;
  --rr-panel: #162942;
  --rr-panel-2: #1b3150;
  --rr-panel-3: #233e62;
  --rr-line: #0a1729;
  --rr-text: #eef5ff;
  --rr-muted: #9db3ce;
  --rr-dim: #617896;
  --rr-green: #3fd64f;
  --rr-green-dark: #1e9b32;
  --rr-blue: #26a9f7;
  --rr-blue-dark: #0b69b8;
  --rr-orange: #ff873d;
  --rr-orange-dark: #bd571b;
  --rr-yellow: #ffc93c;
  --rr-yellow-dark: #c99a16;
  --rr-red: #ff5252;
  --rr-red-dark: #b62c2c;
  --rr-purple: #a46bff;
  --rr-shadow: 0 9px 0 var(--rr-line);
  --abz-game-type-display: 64px;
  --abz-game-type-screen-title: 38px;
  --abz-game-type-card-title: 23px;
  --abz-game-type-body: 16px;
  --abz-game-type-control: 16px;
  --abz-game-type-caption: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #eaf1f8; }
button, input, textarea, select { font: inherit; }
button { touch-action: manipulation; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 4px solid var(--rr-yellow); outline-offset: 3px;
}
[hidden] { display: none !important; }
.sr-only, .rr-app .sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

[data-abz-type="display"] { font-size: var(--abz-game-type-display); line-height: .9; }
[data-abz-type="screen-title"] { font-size: var(--abz-game-type-screen-title); line-height: 1; }
[data-abz-type="card-title"] { font-size: var(--abz-game-type-card-title); line-height: 1.1; }
[data-abz-type="body"] { font-size: var(--abz-game-type-body); line-height: 1.5; }
[data-abz-type="control"] { font-size: var(--abz-game-type-control); line-height: 1.2; }
[data-abz-type="caption"] { font-size: var(--abz-game-type-caption); line-height: 1.25; }

.rr-app {
  position: relative;
  isolation: isolate;
  container: game-canvas / inline-size;
  width: 100%;
  min-height: min(900px, calc(100dvh - 96px));
  overflow: hidden;
  color: var(--rr-text);
  background:
    radial-gradient(circle at 10% 95%, rgba(31, 156, 71, .25), transparent 34%),
    radial-gradient(circle at 91% 8%, rgba(43, 117, 220, .23), transparent 38%),
    linear-gradient(145deg, #071322, var(--rr-bg) 55%, #071120);
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 700;
}
.rr-app::after {
  content: ""; position: absolute; inset: auto 0 0; height: 22%; opacity: .24; pointer-events: none; z-index: -1;
  background-image: linear-gradient(rgba(36, 128, 213, .28) 1px, transparent 1px), linear-gradient(90deg, rgba(36, 128, 213, .28) 1px, transparent 1px);
  background-size: 46px 32px; transform: perspective(280px) rotateX(55deg); transform-origin: bottom;
}
.rr-app h1, .rr-app h2, .rr-app h3, .rr-app h4, .rr-app p { margin-top: 0; }
.rr-app h1, .rr-app h2, .rr-app h3, .rr-app h4, .rr-display, .rr-btn, .rr-step { font-family: "Baloo 2", system-ui, sans-serif; }

.rr-screen-shell { min-height: inherit; }
.rr-screen { position: relative; z-index: 2; width: min(1450px, 100%); min-height: inherit; margin: 0 auto; padding: clamp(32px, 4cqw, 64px); }
.rr-screen.is-active { animation: rr-enter .42s ease both; }
@keyframes rr-enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.rr-floaters { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.rr-floater { position: absolute; display: block; width: 28px; aspect-ratio: 1; border-radius: 7px; transform: rotate(16deg); animation: rr-float 7s ease-in-out infinite; box-shadow: 0 6px 0 rgba(0,0,0,.26); }
.rr-floater-a { left: 2%; top: 48%; background: var(--rr-blue); }
.rr-floater-b { right: 9%; top: 18%; background: var(--rr-green); animation-delay: .7s; }
.rr-floater-c { right: 17%; bottom: 13%; width: 44px; background: var(--rr-yellow); animation-delay: 1.2s; }
.rr-floater-d { left: 3%; bottom: 9%; width: 22px; background: var(--rr-orange); animation-delay: .4s; }
.rr-floater-e { left: 65%; top: 8%; width: 19px; background: var(--rr-purple); animation-delay: 1.6s; }
.rr-floater-f { right: 2%; top: 53%; width: 18px; background: #2ed3c6; animation-delay: .9s; }
@keyframes rr-float { 0%,100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -24px; rotate: 16deg; } }

.rr-hud {
  position: relative; z-index: 30; display: flex; align-items: center; gap: 14px; min-height: 92px; padding: 16px clamp(18px, 3cqw, 50px);
  background: rgba(7, 20, 37, .94); border-bottom: 10px dotted #182d49; box-shadow: 0 4px 0 rgba(0,0,0,.3);
}
.rr-brand-button { display: inline-flex; align-items: center; gap: 12px; border: 0; background: transparent; color: var(--rr-text); cursor: pointer; font: 800 22px/1 "Baloo 2", sans-serif; white-space: nowrap; }
.rr-brand-cube { display: grid; place-items: center; width: 44px; aspect-ratio: 1; border-radius: 11px; color: #fff; background: var(--rr-blue); box-shadow: 0 6px 0 var(--rr-blue-dark); }
.rr-level { display: flex; align-items: center; gap: 10px; flex: 1 1 320px; min-width: 180px; color: var(--rr-dim); font-size: 13px; }
.rr-level strong { color: var(--rr-yellow); white-space: nowrap; }
.rr-xp-track { flex: 1; min-width: 80px; height: 13px; overflow: hidden; border: 3px solid #234366; border-radius: 99px; background: #0c1c30; }
.rr-xp-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--rr-blue), var(--rr-green)); transition: width .35s ease; }
.rr-hud-stats { display: flex; gap: 10px; }
.rr-hud-stats > span { display: grid; min-width: 86px; padding: 10px 14px; border-radius: 13px; background: var(--rr-panel); box-shadow: 0 5px 0 var(--rr-line); }
.rr-hud-stats small { color: var(--rr-dim); font-size: 11px; letter-spacing: .12em; }
.rr-hud-stats strong { font-size: 22px; line-height: 1.05; }
.rr-hud-stats span:first-child strong { color: var(--rr-orange); }
.rr-vault-stat { background: var(--rr-green) !important; color: #073818; box-shadow: 0 5px 0 var(--rr-green-dark) !important; }
.rr-vault-stat small { color: rgba(7,56,24,.62); }
.rr-hud-button { min-height: 52px; border: 0; border-radius: 12px; padding: 0 18px; background: #203a5c; box-shadow: 0 5px 0 var(--rr-line); color: var(--rr-text); font-weight: 900; cursor: pointer; }
.rr-hud-button:hover { translate: 0 -3px; background: #294b74; }
.rr-hud-button:active { translate: 0 3px; box-shadow: 0 2px 0 var(--rr-line); }

.rr-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; border: 0; border-radius: 13px; padding: 13px 24px;
  color: #fff; font-weight: 900; letter-spacing: .01em; cursor: pointer; transition: transform .14s ease, filter .14s ease, box-shadow .14s ease;
}
.rr-btn:hover:not(:disabled) { transform: translateY(-4px); filter: brightness(1.08); }
.rr-btn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 2px 0 var(--rr-line); }
.rr-btn:disabled { cursor: not-allowed; opacity: .55; }
.rr-btn-large { min-height: 68px; padding-inline: 34px; font-size: 21px; }
.rr-btn-green { color: #062d16; background: var(--rr-green); box-shadow: 0 7px 0 var(--rr-green-dark); }
.rr-btn-blue { background: var(--rr-blue); box-shadow: 0 7px 0 var(--rr-blue-dark); }
.rr-btn-orange { color: #321200; background: var(--rr-orange); box-shadow: 0 7px 0 var(--rr-orange-dark); }
.rr-btn-dark { background: #263f62; box-shadow: 0 7px 0 var(--rr-line); }

.rr-screen-home { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr); align-items: center; gap: clamp(30px, 6cqw, 90px); }
.rr-home-copy { max-width: 700px; }
.rr-online-pill { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 32px; padding: 11px 18px; border-radius: 11px; color: var(--rr-muted); background: var(--rr-panel); box-shadow: 0 5px 0 var(--rr-line); font-size: 14px; }
.rr-online-pill span { width: 12px; aspect-ratio: 1; border-radius: 3px; background: var(--rr-green); }
.rr-display { max-width: 720px; margin-bottom: 34px; font-weight: 800; letter-spacing: -.035em; text-shadow: 0 10px 0 rgba(0,0,0,.28); }
.rr-display span { display: inline-block; padding: .04em .17em .12em; border-radius: .18em; background: var(--rr-blue); box-shadow: 0 .13em 0 var(--rr-blue-dark); }
.rr-home-copy > p { max-width: 610px; margin-bottom: 38px; color: var(--rr-muted); font-size: clamp(18px, min(1.7cqw, 2.8cqh), 26px); line-height: 1.55; }
.rr-avatar-dots { display: flex; gap: 9px; margin-top: 26px; }
.rr-avatar-dots span { width: 24px; height: 14px; border-radius: 4px; box-shadow: 0 4px 0 rgba(0,0,0,.3); animation: rr-bop 2.4s ease-in-out infinite; }
.rr-avatar-dots span:nth-child(1) { background: var(--rr-green); } .rr-avatar-dots span:nth-child(2) { background: var(--rr-yellow); animation-delay: .15s; }
.rr-avatar-dots span:nth-child(3) { background: var(--rr-blue); animation-delay: .3s; } .rr-avatar-dots span:nth-child(4) { background: var(--rr-orange); animation-delay: .45s; }
@keyframes rr-bop { 50% { transform: translateY(-6px); } }

.rr-avatar-stage { position: relative; display: grid; place-items: center; min-height: 560px; }
.rr-avatar { position: relative; width: 330px; height: 530px; transform-origin: 50% 72%; animation: rr-avatar-idle 3.6s ease-in-out both; }
.rr-avatar-head { position: absolute; left: 81px; top: 5px; width: 170px; height: 150px; border-radius: 34px; background: linear-gradient(#ffd94e, #ffc331); box-shadow: 0 18px 0 #d29c17; }
.rr-avatar-head i { position: absolute; top: 57px; width: 15px; height: 28px; border-radius: 50%; background: rgba(87,63,0,.52); }
.rr-avatar-head i:first-child { left: 46px; } .rr-avatar-head i:nth-child(2) { right: 46px; }
.rr-avatar-head b { position: absolute; left: 50%; bottom: 30px; width: 62px; height: 30px; transform: translateX(-50%); border-radius: 0 0 30px 30px; background: #28314a; }
.rr-avatar-head b::after { content: ""; position: absolute; inset: 14px 8px 0; border-radius: 0 0 20px 20px; background: #f35aa0; }
.rr-avatar-body { position: absolute; left: 80px; top: 178px; display: grid; place-items: center; width: 172px; height: 174px; border-radius: 24px; background: linear-gradient(#2eb4ff, #1491df); box-shadow: 0 18px 0 #0870b4; }
.rr-avatar-body span { display: grid; place-items: center; width: 80px; height: 82px; border-radius: 17px; color: var(--rr-blue-dark); background: #f0f6ff; font-size: 46px; font-weight: 900; }
.rr-avatar-arm { position: absolute; top: 186px; width: 55px; height: 166px; border-radius: 22px; background: linear-gradient(#ffd94e, #f4b72b); box-shadow: 0 12px 0 #c89010; transform-origin: top center; }
.rr-arm-left { left: 18px; } .rr-arm-right { right: 18px; }
.rr-avatar-leg { position: absolute; top: 385px; width: 92px; height: 132px; border-radius: 24px; background: linear-gradient(#35df52, #24bb3a); box-shadow: 0 15px 0 #13892b; transform-origin: top center; }
.rr-leg-left { left: 70px; rotate: 10deg; } .rr-leg-right { right: 70px; rotate: -10deg; }

.rr-emote {
  position: absolute; top: 0; left: 50%; z-index: 5; translate: -50% -34px; rotate: 0deg;
  min-width: 210px; padding: 13px 20px; border-radius: 15px; color: #10203a; background: #eef5ff;
  box-shadow: 0 8px 0 #aac2df; text-align: center; direction: ltr; writing-mode: horizontal-tb;
  font: 900 20px/1.2 "Baloo 2", sans-serif; transform-style: flat; animation: rr-emote-upright 3.6s ease both;
}

/* The start-screen avatar performs Roblox-style emotes without speech. */
.rr-avatar[data-emote="wave"] { animation-name: rr-avatar-idle; }
.rr-avatar[data-emote="wave"] .rr-arm-right { animation: rr-wave-right 1.05s ease-in-out 3; }
.rr-avatar[data-emote="dance"] { animation: rr-dance-body .9s ease-in-out 4; }
.rr-avatar[data-emote="dance"] .rr-arm-left { animation: rr-dance-left .9s ease-in-out 4; }
.rr-avatar[data-emote="dance"] .rr-arm-right { animation: rr-dance-right .9s ease-in-out 4; }
.rr-avatar[data-emote="dance"] .rr-leg-left { animation: rr-dance-leg-left .9s ease-in-out 4; }
.rr-avatar[data-emote="dance"] .rr-leg-right { animation: rr-dance-leg-right .9s ease-in-out 4; }
.rr-avatar[data-emote="spin"] { animation: rr-spin-body 3.6s cubic-bezier(.5,.1,.3,1) both; }
.rr-avatar[data-emote="spin"] .rr-arm-left { animation: rr-spin-left 3.6s ease-in-out both; }
.rr-avatar[data-emote="spin"] .rr-arm-right { animation: rr-spin-right 3.6s ease-in-out both; }
.rr-avatar[data-emote="cheer"] { animation: rr-cheer-body .72s ease-in-out 5; }
.rr-avatar[data-emote="cheer"] .rr-arm-left { animation: rr-cheer-left 3.6s ease-in-out both; }
.rr-avatar[data-emote="cheer"] .rr-arm-right { animation: rr-cheer-right 3.6s ease-in-out both; }
.rr-avatar[data-emote="robot"] { animation: rr-robot-body .6s steps(2, jump-none) 6; }
.rr-avatar[data-emote="robot"] .rr-arm-left { animation: rr-robot-left 1.2s steps(2, jump-none) 3; }
.rr-avatar[data-emote="robot"] .rr-arm-right { animation: rr-robot-right 1.2s steps(2, jump-none) 3; }

@keyframes rr-avatar-idle { 0%,100% { transform: translateY(0); } 45% { transform: translateY(-12px); } }
@keyframes rr-wave-right { 0%,100% { rotate: -8deg; } 22% { rotate: -132deg; } 45% { rotate: -92deg; } 68% { rotate: -138deg; } 86% { rotate: -100deg; } }
@keyframes rr-dance-body { 0%,100% { transform: translateX(-8px) rotate(-3deg); } 50% { transform: translateX(8px) translateY(-10px) rotate(3deg); } }
@keyframes rr-dance-left { 0%,100% { rotate: 35deg; } 50% { rotate: 118deg; } }
@keyframes rr-dance-right { 0%,100% { rotate: -118deg; } 50% { rotate: -35deg; } }
@keyframes rr-dance-leg-left { 0%,100% { rotate: 18deg; } 50% { rotate: -8deg; } }
@keyframes rr-dance-leg-right { 0%,100% { rotate: 8deg; } 50% { rotate: -18deg; } }
@keyframes rr-spin-body { 0%,14% { transform: rotate(0deg) translateY(0); } 52% { transform: rotate(360deg) translateY(-16px); } 86%,100% { transform: rotate(720deg) translateY(0); } }
@keyframes rr-spin-left { 0%,100% { rotate: 54deg; } 20%,80% { rotate: 88deg; } }
@keyframes rr-spin-right { 0%,100% { rotate: -54deg; } 20%,80% { rotate: -88deg; } }
@keyframes rr-cheer-body { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-20px) scale(1.025); } }
@keyframes rr-cheer-left { 0%,100% { rotate: 4deg; } 15%,85% { rotate: 152deg; } }
@keyframes rr-cheer-right { 0%,100% { rotate: -4deg; } 15%,85% { rotate: -152deg; } }
@keyframes rr-robot-body { 0%,100% { transform: translateX(-9px) rotate(-4deg); } 50% { transform: translateX(9px) rotate(4deg); } }
@keyframes rr-robot-left { 0%,100% { rotate: 92deg; } 50% { rotate: 6deg; } }
@keyframes rr-robot-right { 0%,100% { rotate: -6deg; } 50% { rotate: -92deg; } }
@keyframes rr-emote-upright { 0% { opacity: 0; transform: translateY(12px); } 12%,88% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-8px); } }

.rr-step { display: flex; align-items: center; gap: 11px; color: var(--rr-yellow); font-size: 16px; letter-spacing: .12em; font-weight: 900; }
.rr-step i { width: 24px; height: 28px; border-radius: 7px; background: var(--rr-yellow); box-shadow: 0 5px 0 var(--rr-yellow-dark); }
.rr-orange-step { color: var(--rr-orange); } .rr-orange-step i { background: var(--rr-orange); box-shadow-color: var(--rr-orange-dark); }
.rr-blue-step { color: var(--rr-blue); } .rr-blue-step i { background: var(--rr-blue); box-shadow-color: var(--rr-blue-dark); }
.rr-screen-mode > h2, .rr-sticky-screen-head h2, .rr-screen-ident > h2 { margin: 22px 0 10px; font-weight: 800; }
.rr-screen-intro { color: var(--rr-muted); max-width: 700px; }
.rr-mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 34px; align-items: stretch; }
.rr-mode-card { position: relative; display: flex; flex-direction: column; min-height: 570px; overflow: hidden; border-radius: 24px; padding: 38px; background: var(--rr-panel); box-shadow: var(--rr-shadow); }
.rr-mode-topline { position: absolute; inset: 0 0 auto; height: 15px; background: var(--rr-orange); background-image: radial-gradient(circle at 15px 100%, rgba(0,0,0,.23) 6px, transparent 7px); background-size: 34px 100%; }
.rr-mode-quiz .rr-mode-topline { background-color: var(--rr-blue); }
.rr-mode-card:hover { transform: translateY(-6px); }
.rr-mode-compete { outline: 4px solid var(--rr-orange); outline-offset: -4px; }
.rr-most-played { position: absolute; top: 26px; right: -50px; width: 200px; padding: 8px; rotate: 38deg; color: #fff; background: var(--rr-red); text-align: center; font-size: 12px; font-weight: 900; }
.rr-mode-title-row { display: flex; align-items: center; gap: 22px; margin: 20px 0 24px; }
.rr-mode-icon { display: grid; place-items: center; flex: 0 0 76px; height: 76px; border-radius: 18px; background: var(--rr-orange); box-shadow: 0 9px 0 var(--rr-orange-dark); font-size: 34px; }
.rr-mode-quiz .rr-mode-icon { background: var(--rr-blue); box-shadow-color: var(--rr-blue-dark); }
.rr-mode-card h3 { margin: 0 0 10px; font-size: clamp(38px, 4cqw, 58px); }
.rr-mini-chip { display: inline-block; margin: 0 6px 5px 0; padding: 7px 13px; border-radius: 9px; color: var(--rr-muted); background: #223b5e; font-size: 13px; }
.rr-mode-card > p { min-height: 76px; color: var(--rr-muted); font-size: 17px; line-height: 1.6; }
.rr-mode-card ol { display: grid; gap: 14px; margin: 2px 0 30px; padding: 0; list-style: none; color: var(--rr-muted); }
.rr-mode-card li { display: flex; align-items: center; gap: 14px; }
.rr-mode-card li b { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border-radius: 9px; color: var(--rr-orange); background: #223b5e; box-shadow: 0 4px 0 var(--rr-line); }
.rr-mode-quiz li b { color: var(--rr-blue); }
.rr-mode-card .rr-btn { width: 100%; margin-top: auto; justify-content: space-between; }

.rr-screen-skills { padding-top: 28px; }
.rr-sticky-screen-head { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 24px; align-items: start; margin-bottom: 20px; }
.rr-back-link { margin-top: 3px; border: 0; padding: 8px 0; color: var(--rr-muted); background: transparent; cursor: pointer; font-weight: 900; }
.rr-back-link:hover { color: var(--rr-green); }
.rr-result-count { padding: 12px 17px; border-radius: 10px; color: var(--rr-muted); background: var(--rr-panel); box-shadow: 0 5px 0 var(--rr-line); font-size: 13px; }
.rr-skill-scroll-wrap, .rr-builder-scroll-wrap { position: relative; }
.rr-skill-scroll { max-height: min(620px, 68dvh); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--rr-blue) #0b192a; padding: 4px 15px 40px 4px; }
.rr-inner-scroll { position: absolute; right: 1px; z-index: 8; width: 46px; height: 46px; border: 0; border-radius: 50%; color: #082038; background: var(--rr-yellow); box-shadow: 0 5px 0 var(--rr-yellow-dark); cursor: pointer; font-size: 25px; font-weight: 900; }
.rr-inner-scroll:hover { transform: scale(1.06); }
.rr-inner-scroll-up { top: 8px; } .rr-inner-scroll-down { bottom: 8px; }
.rr-custom-section { margin-bottom: 22px; }
.rr-custom-promo, .rr-created-wrap { border: 2px solid #28496e; border-radius: 19px; padding: 20px; background: linear-gradient(135deg, rgba(38,169,247,.12), rgba(164,107,255,.09)), var(--rr-panel); box-shadow: 0 6px 0 var(--rr-line); }
.rr-custom-promo { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.rr-custom-promo h3, .rr-created-head h3 { margin: 0 0 4px; font-size: 24px; }
.rr-custom-promo p, .rr-created-head p { margin: 0; color: var(--rr-muted); }
.rr-created-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 15px; }
.rr-created-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 13px; }
.rr-created-card { border-radius: 15px; padding: 16px; color: var(--rr-text); background: #203958; box-shadow: 0 5px 0 var(--rr-line); }
.rr-created-card h4 { margin-bottom: 4px; font-size: 20px; }
.rr-created-card p { color: var(--rr-muted); font-size: 13px; }
.rr-created-card small { display: block; margin: -2px 0 12px; color: #a9c7e9; font-size: 11px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.rr-created-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rr-created-actions button { min-height: 42px; border: 0; border-radius: 9px; padding: 8px 12px; color: var(--rr-text); background: #2b4c75; cursor: pointer; font-weight: 900; }
.rr-created-actions button:first-child { color: #052d13; background: var(--rr-green); }
.rr-created-actions button:hover { filter: brightness(1.12); }
.rr-empty-created { padding: 14px; border: 2px dashed #36597e; border-radius: 12px; color: var(--rr-muted); }

.rr-skill-toolbar { position: sticky; top: 0; z-index: 6; padding: 5px 0 18px; background: linear-gradient(var(--rr-bg) 80%, transparent); }
.rr-search { display: flex; align-items: center; min-height: 58px; padding: 0 14px; border: 3px solid #29486c; border-radius: 15px; background: #10223a; }
.rr-search > span { margin-right: 12px; color: var(--rr-blue); font-size: 28px; }
.rr-search input { width: 100%; border: 0; outline: 0; color: var(--rr-text); background: transparent; font-size: 17px; }
.rr-search input::placeholder { color: var(--rr-dim); }
.rr-search button { width: 38px; height: 38px; border: 0; border-radius: 9px; color: var(--rr-text); background: #284668; cursor: pointer; font-size: 22px; }
.rr-filter-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 12px; }
.rr-filter-row button { min-height: 42px; border: 0; border-radius: 9px; padding: 8px 15px; color: var(--rr-muted); background: var(--rr-panel); box-shadow: 0 4px 0 var(--rr-line); cursor: pointer; font-weight: 900; }
.rr-filter-row button.is-active { color: #fff; background: var(--rr-blue); box-shadow-color: var(--rr-blue-dark); }
.rr-search-status { min-height: 20px; margin: 10px 0 0; color: var(--rr-dim); font-size: 13px; }
.rr-skill-group { margin-top: 30px; }
.rr-skill-group-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.rr-skill-group-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 13px; background: var(--group-color); box-shadow: 0 6px 0 var(--group-shade); font-size: 25px; }
.rr-skill-group-head h3 { margin: 0; font-size: 26px; }
.rr-skill-group-head p { margin: 0; color: var(--rr-muted); font-size: 14px; }
.rr-skill-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 15px; }
.rr-skill-card { position: relative; overflow: hidden; border: 0; border-radius: 17px; padding: 22px; color: var(--rr-text); background: var(--rr-panel); box-shadow: 0 6px 0 var(--rr-line); text-align: left; }
.rr-skill-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 9px; background: var(--skill-color); }
.rr-skill-card:hover { transform: translateY(-5px); background: #1d3453; }
.rr-skill-card h4 { margin: 4px 0 8px; font-size: 22px; }
.rr-skill-card > p { min-height: 44px; margin-bottom: 14px; color: var(--rr-muted); font-size: 14px; line-height: 1.5; }
.rr-skill-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--rr-dim); font-size: 12px; text-transform: uppercase; }
.rr-skill-play { color: var(--skill-color); font-weight: 900; }
.rr-grade-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.rr-grade-row button { min-width: 46px; min-height: 46px; border: 0; border-radius: 10px; color: var(--rr-text); background: #2a496f; box-shadow: 0 4px 0 var(--rr-line); cursor: pointer; font-weight: 900; }
.rr-grade-row button:hover { color: #082038; background: var(--skill-color); transform: translateY(-3px); }
.rr-empty { padding: 50px 20px; text-align: center; color: var(--rr-muted); }
.rr-empty > span { font-size: 48px; }

.rr-play-meta { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 20px; }
.rr-play-meta > div:first-child { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.rr-mode-badge { padding: 10px 18px; border-radius: 10px; color: #112035; background: var(--rr-orange); box-shadow: 0 5px 0 var(--rr-orange-dark); font-weight: 900; }
.rr-mode-badge.is-quiz { color: #fff; background: var(--rr-blue); box-shadow-color: var(--rr-blue-dark); }
.rr-play-meta strong { font: 800 24px/1 "Baloo 2", sans-serif; }
.rr-play-meta > div > span:last-child { color: var(--rr-dim); }
.rr-round-ticks { display: flex; gap: 9px; }
.rr-round-ticks i { display: block; width: 58px; height: 14px; border-radius: 5px; background: var(--rr-panel); box-shadow: 0 5px 0 var(--rr-line); }
.rr-round-ticks i.is-done { background: var(--rr-green); box-shadow-color: var(--rr-green-dark); }
.rr-round-ticks i.is-current { background: var(--rr-yellow); box-shadow-color: var(--rr-yellow-dark); }
.rr-question-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.rr-panel { border-radius: 22px; background: var(--rr-panel); box-shadow: var(--rr-shadow); }
.rr-question-panel { overflow: hidden; border-top: 14px solid var(--rr-orange); }
.rr-question-panel.is-quiz { border-color: var(--rr-blue); }
.rr-question-panel > header { display: flex; justify-content: space-between; gap: 18px; padding: 20px 30px; border-bottom: 4px solid var(--rr-line); }
.rr-question-panel > header span { color: var(--rr-orange); font-size: 13px; }
.rr-question-panel.is-quiz > header span { color: var(--rr-blue); }
.rr-question-content { padding: clamp(28px, 4cqw, 50px); }
.rr-question-content > h2 { margin-bottom: 26px; font-size: clamp(27px, min(2.5cqw, 4.2cqh), 42px); line-height: 1.15; }
.rr-passage { max-width: 70ch; margin-bottom: 22px; padding: 20px; border-left: 7px solid var(--rr-blue); border-radius: 10px; color: #d9e8fb; background: #0e2037; font-size: clamp(17px, min(1.55cqw, 2.7cqh), 23px); line-height: 1.55; white-space: pre-line; }
.rr-answer-list { display: grid; gap: 14px; }
.rr-answer-button { display: grid; grid-template-columns: 54px 1fr; align-items: center; gap: 16px; width: 100%; min-height: 82px; border: 0; border-radius: 15px; padding: 13px 22px; color: var(--rr-text); background: #284566; box-shadow: 0 7px 0 var(--rr-line); text-align: left; cursor: pointer; font-size: clamp(18px, min(1.5cqw, 2.7cqh), 25px); font-weight: 900; }
.rr-answer-button span { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 11px; color: var(--rr-muted); background: #132a47; }
.rr-answer-button:hover:not(:disabled) { transform: translateY(-4px); background: #33577f; }
.rr-answer-button.is-wrong { color: #a9878f; background: #3a1e24; animation: rr-shake .3s; }
.rr-answer-button.is-correct { color: #073717; background: var(--rr-green); box-shadow-color: var(--rr-green-dark); }
@keyframes rr-shake { 25% { transform: translateX(-7px); } 75% { transform: translateX(7px); } }
.rr-dictation { display: grid; gap: 22px; }
.rr-listen-row, .rr-type-row { display: flex; align-items: center; gap: 14px; }
.rr-listen-row > span { color: var(--rr-dim); }
.rr-peek { margin-left: auto; border: 0; padding: 10px; color: var(--rr-purple); background: transparent; cursor: pointer; font-weight: 900; }
.rr-peek-answer { padding: 18px; border: 3px dashed var(--rr-purple); border-radius: 13px; color: #e2d4ff; background: rgba(164,107,255,.12); font-size: 22px; text-align: center; }
.rr-type-row input { min-width: 0; flex: 1; min-height: 68px; border: 4px solid #294a73; border-radius: 14px; padding: 0 20px; color: var(--rr-text); background: #0f2036; font-size: 19px; }
.rr-feedback { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 18px 26px; color: #073717; background: var(--rr-green); border-top: 8px solid var(--rr-green-dark); }
.rr-feedback strong, .rr-feedback span { display: block; }
.rr-feedback strong { font: 800 24px/1 "Baloo 2", sans-serif; }
.rr-next-top { display: none; }
.rr-feedback .rr-btn { background: #eef5ff; box-shadow: 0 6px 0 rgba(7,55,23,.35); }
.rr-run-side { display: grid; gap: 20px; }
.rr-lineup-panel { overflow: hidden; border-top: 13px solid var(--rr-orange); }
.rr-lineup-panel h3 { display: flex; justify-content: space-between; margin: 0; padding: 20px; }
.rr-lineup-panel h3 span { color: var(--rr-green); }
.rr-lineup-panel > div { display: grid; gap: 8px; padding: 0 20px 20px; }
.rr-lineup-slot { display: flex; align-items: center; gap: 12px; min-height: 48px; color: var(--rr-dim); }
.rr-lineup-slot i { display: grid; place-items: center; width: 50px; height: 46px; border-radius: 11px; background: #0e2037; font-style: normal; }
.rr-lineup-slot.is-filled { color: var(--rr-text); }
.rr-lineup-panel footer { padding: 18px 20px; border-top: 4px solid var(--rr-line); color: var(--rr-dim); }
.rr-lineup-panel footer strong { color: var(--rr-red); }
.rr-run-stats { padding: 22px; }
.rr-run-stats > small { color: var(--rr-dim); letter-spacing: .14em; }
.rr-run-stats > div { display: flex; justify-content: space-between; gap: 20px; margin-top: 16px; }
.rr-run-stats span { color: var(--rr-dim); font-size: 13px; }
.rr-run-stats strong { display: block; color: var(--rr-green); font-size: 34px; }
.rr-run-stats span:last-child strong { color: var(--rr-orange); }

.rr-screen-ident { text-align: center; }
.rr-screen-ident .rr-step { justify-content: center; }
.rr-ident-layout { display: grid; grid-template-columns: minmax(260px, 420px) minmax(300px, 560px); justify-content: center; align-items: center; gap: 42px; margin-top: 30px; }
.rr-game-tile { position: relative; display: grid; place-items: center; overflow: hidden; aspect-ratio: 1.3; border-radius: 22px; color: #14233a; background: var(--tile-color, var(--rr-blue)); box-shadow: 0 10px 0 var(--tile-shade, var(--rr-blue-dark)); }
.rr-game-tile::after { content: ""; position: absolute; inset: auto 0 0; height: 18px; background-image: radial-gradient(circle at 18px 100%, rgba(0,0,0,.25) 7px, transparent 8px); background-size: 38px 100%; }
.rr-game-tile img { width: 100%; height: 100%; object-fit: cover; }
.rr-game-tile span, .rr-game-tile strong { font: 900 clamp(60px, 8cqw, 112px)/1 "Baloo 2", sans-serif; }
.rr-ident-options { display: grid; gap: 15px; }
.rr-ident-options button { min-height: 70px; border: 0; border-radius: 14px; padding: 14px 20px; color: var(--rr-text); background: #284566; box-shadow: 0 7px 0 var(--rr-line); cursor: pointer; text-align: left; font-weight: 900; font-size: 19px; }
.rr-ident-options button:hover:not(:disabled) { transform: translateY(-4px); background: #345a85; }
.rr-ident-options button.is-correct { color: #073717; background: var(--rr-green); box-shadow-color: var(--rr-green-dark); }
.rr-ident-options button.is-wrong { background: var(--rr-red); box-shadow-color: var(--rr-red-dark); }

.rr-picker-roll { display: flex; align-items: center; justify-content: center; gap: 28px; margin: 28px 0; }
.rr-picker-roll > div { display: grid; place-items: center; min-width: 170px; min-height: 120px; border-radius: 18px; color: var(--rr-dim); background: var(--rr-panel); box-shadow: var(--rr-shadow); transition: .2s ease; }
.rr-picker-roll > div.is-active { color: #082138; background: var(--rr-green); box-shadow: 0 9px 0 var(--rr-green-dark); transform: scale(1.08); }
.rr-picker-roll > div:last-child.is-active { background: var(--rr-red); box-shadow-color: var(--rr-red-dark); }
.rr-picker-roll small { letter-spacing: .14em; } .rr-picker-roll strong { font-size: 37px; }
.rr-picker-roll > b { color: var(--rr-dim); font-size: 28px; }
.rr-pick-status { margin: 26px 0; padding: 22px; border-radius: 18px; color: #7bea6d; background: var(--rr-panel); box-shadow: 0 6px 0 var(--rr-line); text-align: center; }
.rr-pick-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.rr-pick-card { overflow: hidden; border: 0; border-radius: 22px; color: var(--rr-text); background: var(--rr-panel); box-shadow: var(--rr-shadow); text-align: left; cursor: pointer; }
.rr-pick-card:hover:not(:disabled) { transform: translateY(-7px); }
.rr-pick-card .rr-game-tile { border-radius: 0; box-shadow: none; aspect-ratio: 1.65; }
.rr-pick-card .rr-game-tile span { font-size: clamp(54px, 5cqw, 82px); }
.rr-pick-card > div:last-child { padding: 18px 20px 22px; }
.rr-pick-card h3 { margin-bottom: 5px; font-size: 23px; }
.rr-pick-card p { margin: 0; color: var(--rr-muted); }
.rr-pick-card.is-scanning { outline: 6px solid var(--rr-yellow); animation: rr-scan .3s ease-in-out infinite alternate; }
@keyframes rr-scan { to { filter: brightness(1.22); } }
.rr-spotlight { position: fixed; inset: 50% auto auto 50%; z-index: 90; width: min(420px, calc(100vw - 40px)); padding: 25px; transform: translate(-50%,-50%); border-radius: 24px; background: var(--rr-panel); box-shadow: 0 0 0 100vmax rgba(1,8,18,.82), var(--rr-shadow); text-align: center; animation: rr-pop .3s ease both; }
.rr-spotlight > span { display: inline-block; margin-bottom: 17px; padding: 8px 14px; border-radius: 9px; color: #073717; background: var(--rr-green); font-weight: 900; }
.rr-spotlight .rr-game-tile { margin-bottom: 20px; }
.rr-spotlight h3 { margin-bottom: 5px; font-size: 28px; }
.rr-spotlight p { color: var(--rr-muted); }

.rr-screen-judging { display: grid; place-content: center; justify-items: center; text-align: center; }
.rr-judges { display: flex; gap: 32px; margin: 45px 0; font-size: 68px; }
.rr-judges span { animation: rr-judge 1.4s ease-in-out infinite; } .rr-judges span:nth-child(2) { animation-delay: .2s; } .rr-judges span:nth-child(3) { animation-delay: .4s; }
@keyframes rr-judge { 50% { transform: translateY(-18px) rotate(8deg); } }
.rr-judge-track { width: min(680px, 80vw); height: 24px; overflow: hidden; border: 5px solid #29486d; border-radius: 99px; background: #0b192b; }
.rr-judge-track i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--rr-orange), var(--rr-yellow), var(--rr-green)); transition: width .25s linear; }

.rr-verdict-hero, .rr-result-hero { margin-bottom: 28px; padding: clamp(28px, 4cqw, 55px); border-radius: 24px; color: #073717; background: var(--rr-green); box-shadow: 0 10px 0 var(--rr-green-dark); text-align: center; }
.rr-verdict-hero.is-loss { color: #fff; background: var(--rr-red); box-shadow-color: var(--rr-red-dark); }
.rr-verdict-hero small, .rr-result-hero small { letter-spacing: .15em; }
.rr-verdict-hero h2, .rr-result-hero h2 { margin: 10px 0 15px; }
.rr-verdict-hero p, .rr-result-hero p { max-width: 720px; margin: 0 auto; font-size: 18px; }
.rr-scoreboards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 26px; }
.rr-scoreboard { border-radius: 19px; padding: 22px; background: var(--rr-panel); box-shadow: var(--rr-shadow); }
.rr-scoreboard h3 { display: flex; justify-content: space-between; color: var(--board-color); }
.rr-scoreboard-games { display: flex; flex-wrap: wrap; gap: 10px; }
.rr-scoreboard-game { display: grid; place-items: center; width: 62px; height: 54px; border-radius: 10px; color: #112039; background: var(--tile-color); box-shadow: 0 5px 0 var(--tile-shade); font-weight: 900; }
.rr-screen-verdict > .rr-btn { display: flex; width: min(360px, 100%); margin: 0 auto; }

.rr-result-hero { color: #09203a; background: var(--rr-blue); box-shadow-color: var(--rr-blue-dark); }
.rr-result-hero.is-win { color: #073717; background: var(--rr-green); box-shadow-color: var(--rr-green-dark); }
.rr-result-stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 15px; margin-bottom: 24px; }
.rr-result-stat { padding: 22px; border-radius: 17px; background: var(--rr-panel); box-shadow: 0 6px 0 var(--rr-line); text-align: center; }
.rr-result-stat strong { display: block; color: var(--stat-color); font: 800 36px/1 "Baloo 2", sans-serif; }
.rr-result-stat span { color: var(--rr-muted); font-size: 13px; }
.rr-assignment-status, .rr-account-recap { margin: 20px 0; padding: 22px; border-radius: 18px; background: var(--rr-panel); box-shadow: 0 6px 0 var(--rr-line); }
.rr-assignment-status.is-success { border-left: 8px solid var(--rr-green); } .rr-assignment-status.is-error { border-left: 8px solid var(--rr-red); }
.rr-assignment-status p, .rr-account-recap p { margin: 6px 0 0; color: var(--rr-muted); }
.rr-assignment-status button, .rr-account-recap button, .rr-account-recap a { display: inline-flex; min-height: 46px; align-items: center; margin: 13px 8px 0 0; border: 0; border-radius: 10px; padding: 8px 14px; color: #09203a; background: var(--rr-yellow); text-decoration: none; cursor: pointer; font-weight: 900; }
.rr-result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 26px; }
.rr-feedback-mount { margin-top: 30px; }

.rr-pop { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 20px; }
.rr-pop-backdrop { position: absolute; inset: 0; background: rgba(2,8,17,.84); backdrop-filter: blur(4px); }
.rr-pop article { position: relative; width: min(480px, 100%); border-radius: 25px; padding: 28px; color: var(--rr-text); background: var(--rr-panel); box-shadow: 0 12px 0 var(--rr-line); text-align: center; animation: rr-pop .28s ease both; }
@keyframes rr-pop { from { opacity: 0; transform: scale(.85); } }
.rr-pop-art { display: grid; place-items: center; width: 100%; min-height: 185px; overflow: hidden; margin-bottom: 20px; border-radius: 17px; background: #1d3a28; }
.rr-pop-art span { font-size: 70px; }
.rr-pop-art img { width: 100%; max-height: 250px; object-fit: contain; }
.rr-pop small { color: var(--rr-green); letter-spacing: .14em; }
.rr-pop h2 { margin: 7px 0; font-size: 45px; }
.rr-pop p { color: var(--rr-muted); }
.rr-pop .rr-btn { width: 100%; }

.rr-modal { position: absolute; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; }
.rr-modal-backdrop { position: absolute; inset: 0; background: rgba(1,7,16,.88); backdrop-filter: blur(5px); }
.rr-builder { position: relative; display: grid; grid-template-rows: auto auto minmax(0,1fr) auto; width: min(880px, 100%); max-height: min(820px, calc(100dvh - 30px)); overflow: hidden; border-radius: 24px; background: var(--rr-panel); box-shadow: 0 12px 0 var(--rr-line); }
.rr-builder > header, .rr-builder > footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; background: #1d3554; }
.rr-builder > header { border-bottom: 4px solid var(--rr-line); }
.rr-builder > header small { color: var(--rr-blue); letter-spacing: .14em; } .rr-builder > header h2 { margin: 2px 0 0; }
.rr-builder > header button { width: 48px; height: 48px; border: 0; border-radius: 11px; color: var(--rr-text); background: #294a71; cursor: pointer; font-size: 30px; }
.rr-builder > footer { justify-content: flex-end; border-top: 4px solid var(--rr-line); }
.rr-builder-message { min-height: 0; padding: 0 24px; color: #ffd2d2; background: #401f27; }
.rr-builder-message:not(:empty) { padding-block: 12px; }
.rr-builder-scroll-wrap { min-height: 0; }
.rr-builder-scroll { height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: 24px 70px 40px 24px; }
.rr-builder-scroll-wrap .rr-inner-scroll { right: 12px; }
.rr-field { display: grid; gap: 7px; margin-bottom: 14px; }
.rr-field span { color: var(--rr-muted); font-size: 14px; }
.rr-field b { color: var(--rr-red); }
.rr-field input, .rr-field textarea, .rr-field select { width: 100%; min-height: 50px; border: 3px solid #315579; border-radius: 11px; padding: 11px 13px; color: var(--rr-text); background: #0e2139; }
.rr-field textarea { min-height: 80px; resize: vertical; }
.rr-builder-help { color: var(--rr-muted); }
.rr-builder-question { margin: 20px 0; border: 3px solid #2e5077; border-radius: 17px; padding: 18px; background: #132740; }
.rr-builder-question > header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.rr-builder-question h3 { margin: 0; }
.rr-remove-question { min-height: 42px; border: 0; border-radius: 9px; padding: 7px 12px; color: #fff; background: #773441; cursor: pointer; }
.rr-choice-editor { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; margin-bottom: 10px; }
.rr-choice-editor input[type="radio"] { width: 22px; height: 22px; accent-color: var(--rr-green); }
.rr-choice-editor label { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 8px; }
.rr-choice-editor label span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; color: var(--rr-muted); background: #294867; }
.rr-choice-editor input[type="text"] { min-height: 48px; border: 3px solid #315579; border-radius: 10px; padding: 9px 12px; color: var(--rr-text); background: #0e2139; }

@container game-canvas (min-width: 1100px) {
  [data-content-density="short"] .rr-question-content > h2 { font-size: clamp(36px, 3.1cqw, 48px); }
  [data-content-density="short"] .rr-answer-button { min-height: 94px; font-size: clamp(23px, 2cqw, 30px); }
}

@media (max-width: 1050px) {
  .rr-hud { flex-wrap: wrap; }
  .rr-level { order: 3; flex-basis: 100%; }
  .rr-hud-stats { margin-left: auto; }
  .rr-screen-home { grid-template-columns: 1fr .8fr; }
  .rr-avatar { scale: .78; transform-origin: center; }
  .rr-mode-card { padding: 30px; }
  .rr-question-layout { grid-template-columns: 1fr; }
  .rr-run-side { grid-template-columns: 1fr 1fr; }
  .rr-lineup-panel > div { grid-template-columns: repeat(5, 1fr); }
  .rr-lineup-slot { display: grid; justify-items: center; text-align: center; font-size: 11px; }
  .rr-skill-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 760px) {
  :root { --abz-game-type-display: 52px; --abz-game-type-screen-title: 34px; --abz-game-type-card-title: 22px; }
  .rr-app { min-height: 780px; overflow: visible; }
  .rr-screen { padding: 26px 18px 45px; }
  .rr-hud { gap: 9px; padding: 12px 14px; border-bottom-width: 7px; }
  .rr-brand-button { font-size: 18px; } .rr-brand-cube { width: 38px; }
  .rr-hud-stats > span { min-width: 62px; padding: 8px 10px; } .rr-hud-stats small { font-size: 8px; } .rr-hud-stats strong { font-size: 18px; }
  .rr-hud-button { min-height: 46px; padding: 0 12px; }
  .rr-screen-home { display: block; padding-top: 45px; text-align: center; }
  .rr-home-copy { margin: 0 auto; } .rr-home-copy > p { margin-inline: auto; }
  .rr-online-pill { margin-bottom: 22px; } .rr-avatar-stage { min-height: 390px; margin-top: 30px; }
  .rr-avatar { scale: .63; transform-origin: center top; }
  .rr-mode-grid { grid-template-columns: 1fr; }
  .rr-mode-card { min-height: 0; } .rr-mode-card > p { min-height: 0; }
  .rr-sticky-screen-head { grid-template-columns: 1fr auto; } .rr-back-link { grid-column: 1 / -1; }
  .rr-sticky-screen-head > div { min-width: 0; }
  .rr-skill-scroll { max-height: 70dvh; padding-right: 54px; }
  .rr-skill-grid { grid-template-columns: 1fr; }
  .rr-custom-promo, .rr-created-head { align-items: flex-start; flex-direction: column; }
  .rr-play-meta { align-items: flex-start; flex-direction: column; }
  .rr-round-ticks i { width: min(14cqw, 52px); }
  .rr-question-panel > header { padding: 17px 19px; }
  .rr-question-content { padding: 23px 18px; }
  .rr-answer-button { grid-template-columns: 44px 1fr; min-height: 72px; padding: 11px 14px; }
  .rr-answer-button span { width: 42px; height: 42px; }
  .rr-listen-row { align-items: stretch; flex-wrap: wrap; } .rr-listen-row .rr-btn { flex: 1; }
  .rr-peek { margin-left: 0; }
  .rr-type-row { align-items: stretch; flex-direction: column; }
  .rr-feedback { grid-template-columns: 1fr; text-align: center; }
  .rr-next-top { display: inline-flex; }
  .rr-run-side { grid-template-columns: 1fr; }
  .rr-lineup-panel > div { grid-template-columns: repeat(5, minmax(0,1fr)); }
  .rr-ident-layout { grid-template-columns: 1fr; gap: 25px; }
  .rr-ident-tile { max-width: 390px; margin: 0 auto; }
  .rr-pick-grid { grid-template-columns: 1fr; }
  .rr-pick-card { display: grid; grid-template-columns: 42% 1fr; }
  .rr-pick-card .rr-game-tile { height: 100%; aspect-ratio: auto; }
  .rr-picker-roll { gap: 12px; } .rr-picker-roll > div { min-width: 125px; min-height: 95px; }
  .rr-scoreboards { grid-template-columns: 1fr; }
  .rr-result-stats { grid-template-columns: repeat(2, 1fr); }
  .rr-result-actions { align-items: stretch; flex-direction: column; }
  .rr-result-actions .rr-btn { width: 100%; }
}

@media (max-height: 520px) and (orientation: landscape) {
  .rr-app { min-height: 620px; }
  .rr-screen { min-height: 620px; padding-block: 20px 40px; }
  .rr-hud { min-height: 64px; padding-block: 8px; }
  .rr-level { order: initial; flex-basis: auto; }
  .rr-hud-stats > span { padding-block: 6px; }
  .rr-screen-home { grid-template-columns: 1.3fr .7fr; text-align: left; }
  .rr-online-pill { margin-bottom: 12px; }
  .rr-display { margin-bottom: 16px; }
  .rr-home-copy > p { margin: 0 0 18px; font-size: 16px; }
  .rr-avatar-stage { min-height: 420px; margin: 0; }
  .rr-avatar { scale: .62; }
  .rr-mode-grid { grid-template-columns: 1fr 1fr; }
  .rr-mode-card { padding: 24px; }
  .rr-mode-card ol { display: none; }
  .rr-skill-scroll { max-height: 430px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
