.rg-root {
    min-height: calc(100vh - var(--main-nav-height, 88px));
    min-height: calc(100dvh - var(--main-nav-height, 88px));
    padding-right: 18px;
    padding-bottom: 24px;
    padding-left: 18px;
    position: relative;
    overflow: hidden;
    font-family: "NanumSquareRound", "Pretendard", "Noto Sans KR", sans-serif;
    color: #f8fbff;
    background:
        radial-gradient(circle at 14% 12%, rgba(56, 189, 248, 0.25), transparent 30%),
        radial-gradient(circle at 88% 16%, rgba(251, 146, 60, 0.25), transparent 32%),
        radial-gradient(circle at 50% 90%, rgba(99, 102, 241, 0.18), transparent 38%),
        linear-gradient(160deg, #061329 0%, #0c1d45 42%, #091634 100%);
}

.rg-root::before,
.rg-root::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(4px);
    opacity: 0.45;
}

.rg-root::before {
    width: 220px;
    height: 220px;
    top: 90px;
    left: -70px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.42), transparent 68%);
}

.rg-root::after {
    width: 260px;
    height: 260px;
    right: -80px;
    bottom: 40px;
    background: radial-gradient(circle, rgba(255, 116, 77, 0.26), transparent 70%);
}

.rg-topbar,
.rg-screen,
.rg-hero-panel,
.rg-panel,
.rg-stage,
.rg-save-panel,
.rg-battle-hud,
.rg-battle-wrap,
.rg-note {
    position: relative;
    z-index: 1;
}

.rg-topbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.82), rgba(17, 29, 64, 0.92));
    box-shadow: 0 24px 50px rgba(2, 8, 23, 0.32);
    padding: 18px 20px;
    margin-bottom: 16px;
    backdrop-filter: blur(14px);
}

.rg-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.rg-brand-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.8), transparent 28%),
        linear-gradient(160deg, #7c3aed, #2563eb 60%, #06b6d4);
    box-shadow:
        0 18px 30px rgba(59, 130, 246, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.32);
    animation: rg-float 2.8s ease-in-out infinite;
}

.rg-brand-copy {
    min-width: 0;
}

.rg-brand-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    margin-bottom: 6px;
    color: #dbeafe;
    font-family: "Outfit", "NanumSquareRound", sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: rgba(59, 130, 246, 0.14);
}

.rg-brand h1 {
    margin: 0;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.rg-brand p {
    margin: 4px 0 0;
    color: rgba(219, 234, 254, 0.84);
    font-size: 0.98rem;
    line-height: 1.4;
}

.rg-top-actions {
    display: flex;
    flex-shrink: 0;
}

.rg-btn {
    border: 1px solid transparent;
    border-radius: 16px;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, opacity 0.16s ease;
}

.rg-btn:hover:not(:disabled) {
    transform: translateY(-1px) scale(1.01);
}

.rg-btn:active:not(:disabled) {
    transform: translateY(0) scale(0.99);
}

.rg-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.rg-btn-primary {
    color: #fff;
    background: linear-gradient(145deg, #7c3aed, #4f46e5 52%, #2563eb);
    box-shadow: 0 18px 28px rgba(79, 70, 229, 0.34);
}

.rg-btn-ghost {
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.32);
    background: rgba(15, 23, 42, 0.56);
}

.rg-screen {
    display: none;
}

.rg-screen.is-active {
    display: block;
}

.rg-hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.8fr);
    gap: 14px;
    margin-bottom: 14px;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 28px;
    background:
        linear-gradient(145deg, rgba(15, 23, 42, 0.8), rgba(20, 32, 73, 0.92)),
        linear-gradient(135deg, rgba(56, 189, 248, 0.08), transparent 40%);
    box-shadow: 0 24px 50px rgba(2, 8, 23, 0.28);
}

.rg-hero-copy h2 {
    margin: 0;
    font-size: clamp(1.85rem, 4.4vw, 3rem);
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.rg-hero-copy p {
    max-width: 38rem;
    margin: 10px 0 0;
    color: rgba(224, 231, 255, 0.86);
    font-size: 1rem;
    line-height: 1.55;
}

.rg-kicker {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
    color: #fef3c7;
    font-family: "Outfit", "NanumSquareRound", sans-serif;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: rgba(245, 158, 11, 0.2);
}

.rg-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.rg-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    color: #dbeafe;
    font-size: 0.88rem;
    font-weight: 800;
    background: rgba(30, 41, 59, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.rg-signal-board {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    padding: 20px;
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(10, 17, 38, 0.9), rgba(18, 36, 79, 0.86));
    border: 1px solid rgba(96, 165, 250, 0.22);
}

.rg-signal-copy strong {
    display: block;
    font-family: "Outfit", "NanumSquareRound", sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.rg-signal-copy span {
    color: rgba(219, 234, 254, 0.82);
    font-size: 0.92rem;
}

.rg-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.rg-mode-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    text-align: left;
    border-radius: 24px;
    border: 1px solid rgba(129, 140, 248, 0.5);
    padding: 22px;
    color: #eff6ff;
    background:
        radial-gradient(circle at top right, rgba(191, 219, 254, 0.18), transparent 30%),
        linear-gradient(145deg, rgba(67, 56, 202, 0.96), rgba(37, 99, 235, 0.8));
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.24);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.rg-mode-card:hover {
    transform: translateY(-2px);
    border-color: rgba(191, 219, 254, 0.7);
    box-shadow: 0 26px 48px rgba(15, 23, 42, 0.28);
}

.rg-mode-card-alt {
    border-color: rgba(251, 146, 60, 0.5);
    background:
        radial-gradient(circle at top right, rgba(254, 215, 170, 0.18), transparent 30%),
        linear-gradient(145deg, rgba(194, 65, 12, 0.96), rgba(249, 115, 22, 0.78));
}

.rg-mode-tag {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    color: rgba(239, 246, 255, 0.95);
    font-family: "Outfit", "NanumSquareRound", sans-serif;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(15, 23, 42, 0.18);
}

.rg-mode-card strong {
    display: block;
    font-size: clamp(1.45rem, 2.6vw, 1.9rem);
    line-height: 1.04;
    letter-spacing: -0.03em;
}

.rg-mode-card span:last-of-type {
    color: rgba(239, 246, 255, 0.92);
    font-size: 1rem;
    font-weight: 700;
}

.rg-mode-card small {
    color: rgba(239, 246, 255, 0.88);
    font-size: 0.92rem;
    font-weight: 700;
}

.rg-panel {
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 22px 40px rgba(2, 8, 23, 0.2);
}

.rg-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.rg-panel h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 900;
}

.rg-panel-badge {
    padding: 6px 10px;
    border-radius: 999px;
    color: #fef3c7;
    font-size: 0.8rem;
    font-weight: 800;
    background: rgba(245, 158, 11, 0.18);
}

.rg-leaderboard {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rg-rank-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(96, 165, 250, 0.12);
}

.rg-rank-no {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "Outfit", "NanumSquareRound", sans-serif;
    font-size: 1.1rem;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(145deg, #7c3aed, #2563eb);
}

.rg-rank-name {
    min-width: 0;
    color: #f8fafc;
    font-size: 1rem;
    font-weight: 800;
}

.rg-rank-time {
    color: #fef08a;
    font-family: "Outfit", "NanumSquareRound", sans-serif;
    font-size: 1.05rem;
    font-weight: 900;
}

.rg-empty-rank {
    padding: 18px;
    border-radius: 18px;
    color: #bfdbfe;
    font-size: 0.98rem;
    font-weight: 700;
    background: rgba(30, 41, 59, 0.56);
}

.rg-screen-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.rg-screen-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    background: rgba(15, 23, 42, 0.62);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.rg-screen-chip-single {
    color: #bfdbfe;
}

.rg-screen-chip-battle {
    color: #fed7aa;
}

.rg-hud,
.rg-battle-hud {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    margin-bottom: 10px;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(12px);
}

.rg-hud-copy,
.rg-battle-sub,
#rg-battle-status {
    margin: 0;
    color: #dbeafe;
    font-size: 1rem;
    font-weight: 800;
}

.rg-signal-track {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.rg-signal-track-demo .rg-light-green {
    animation: rg-pop 1.4s ease-in-out infinite 0.35s;
}

.rg-light {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.24);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.12);
}

.rg-light-red {
    background: rgba(239, 68, 68, 0.28);
}

.rg-light-yellow {
    background: rgba(250, 204, 21, 0.24);
}

.rg-light-green {
    background: rgba(34, 197, 94, 0.24);
}

.rg-light.is-on,
[data-state="waiting"] .rg-light-red,
[data-state="waiting"] .rg-light-yellow,
[data-tone="foul"] .rg-light-red,
[data-tone="win"] .rg-light-green {
    box-shadow:
        0 0 0 4px rgba(255, 255, 255, 0.06),
        0 0 18px currentColor;
}

[data-state="waiting"] .rg-light-red,
[data-tone="foul"] .rg-light-red {
    color: #ef4444;
    background: #f87171;
}

[data-state="waiting"] .rg-light-yellow {
    color: #facc15;
    background: #fde047;
}

[data-state="ready"] .rg-light-green,
[data-tone="win"] .rg-light-green {
    color: #22c55e;
    background: #4ade80;
}

[data-state="waiting"] .rg-light-red,
[data-state="waiting"] .rg-light-yellow {
    animation: rg-pop 0.85s ease-in-out infinite alternate;
}

[data-state="ready"] .rg-light-green {
    animation: rg-pop-fast 0.5s ease-in-out infinite alternate;
}

.rg-stage {
    min-height: min(62vh, 560px);
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    border: 2px solid rgba(148, 163, 184, 0.24);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    padding: 26px 20px;
    user-select: none;
    cursor: pointer;
    touch-action: manipulation;
    transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.rg-stage::before {
    content: "";
    position: absolute;
    inset: 14px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.rg-stage > * {
    position: relative;
    z-index: 1;
}

.rg-stage-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border-radius: 999px;
    margin-bottom: 6px;
    color: #fff;
    font-family: "Outfit", "NanumSquareRound", sans-serif;
    font-size: 0.84rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    background: rgba(15, 23, 42, 0.26);
}

.rg-stage-main {
    margin: 0;
    font-family: "Outfit", "NanumSquareRound", sans-serif;
    font-weight: 900;
    font-size: clamp(3rem, 8vw, 5.8rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.rg-stage-sub {
    margin: 0;
    max-width: 32rem;
    font-size: clamp(1rem, 2vw, 1.24rem);
    font-weight: 800;
    color: rgba(239, 246, 255, 0.94);
    line-height: 1.4;
}

.rg-stage-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

.rg-stage-idle {
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 34%),
        linear-gradient(145deg, #243447, #374963);
}

.rg-stage-waiting {
    background:
        repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.05) 0 18px, transparent 18px 36px),
        linear-gradient(145deg, #dc2626, #fb7185);
    box-shadow: 0 28px 45px rgba(220, 38, 38, 0.18);
}

.rg-stage-ready {
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.18), transparent 42%),
        linear-gradient(145deg, #16a34a, #4ade80);
    box-shadow: 0 28px 45px rgba(34, 197, 94, 0.26);
    transform: scale(1.01);
}

.rg-stage-finished {
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.1), transparent 34%),
        linear-gradient(145deg, #0f172a, #1d4ed8);
}

.rg-stage-foul {
    background:
        repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.05) 0 18px, transparent 18px 36px),
        linear-gradient(145deg, #7f1d1d, #dc2626);
}

.rg-save-panel {
    padding: 16px;
    margin-top: 12px;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 18px 32px rgba(2, 8, 23, 0.2);
}

.rg-save-label {
    display: block;
    margin-bottom: 10px;
    color: #e0f2fe;
    font-size: 0.95rem;
    font-weight: 900;
}

.rg-save-row {
    display: flex;
    gap: 10px;
}

.rg-save-row input {
    flex: 1;
    min-width: 0;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 16px;
    padding: 12px 14px;
    color: #f8fafc;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 800;
    background: rgba(30, 41, 59, 0.86);
    outline: none;
}

.rg-save-row input:focus {
    border-color: rgba(96, 165, 250, 0.6);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}

.rg-save-row input:disabled {
    opacity: 0.7;
}

.rg-save-status {
    min-height: 1.35rem;
    margin: 10px 0 0;
    color: #bfdbfe;
    font-size: 0.92rem;
    font-weight: 800;
}

.rg-battle-hud {
    margin-bottom: 12px;
}

.rg-versus-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.rg-versus-badge {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: "Outfit", "NanumSquareRound", sans-serif;
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    background: linear-gradient(145deg, #f97316, #ef4444);
    box-shadow: 0 16px 28px rgba(249, 115, 22, 0.22);
}

.rg-battle-cta {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.rg-battle-wrap {
    min-height: min(66vh, 580px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.7fr) minmax(0, 1fr);
    grid-template-areas: "p1 center p2";
    gap: 12px;
}

.rg-p1 {
    grid-area: p1;
}

.rg-p2 {
    grid-area: p2;
}

.rg-battle-center {
    grid-area: center;
}

.rg-battle-side,
.rg-battle-center {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    backdrop-filter: blur(12px);
}

.rg-battle-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 18px;
    color: #f8fafc;
    cursor: pointer;
    touch-action: manipulation;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 34%),
        linear-gradient(145deg, rgba(30, 41, 59, 0.96), rgba(51, 65, 85, 0.88));
    transition: transform 0.16s ease, background-color 0.16s ease, opacity 0.16s ease, box-shadow 0.16s ease;
}

.rg-battle-side > * {
    position: relative;
    z-index: 1;
}

.rg-player-tag {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.9);
    font-family: "Outfit", "NanumSquareRound", sans-serif;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    background: rgba(15, 23, 42, 0.28);
}

.rg-battle-side strong {
    font-family: "Outfit", "NanumSquareRound", sans-serif;
    font-size: clamp(3rem, 8vw, 4.8rem);
    font-weight: 900;
    letter-spacing: -0.05em;
}

.rg-battle-label {
    font-size: clamp(1rem, 1.8vw, 1.24rem);
    font-weight: 900;
    color: #eff6ff;
}

.rg-battle-tip {
    color: rgba(239, 246, 255, 0.82);
    font-size: 0.92rem;
    font-weight: 800;
}

.rg-battle-side.is-ready {
    animation: rg-pop 0.7s ease-in-out infinite alternate;
}

.rg-battle-side.is-ready.rg-p1 {
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.12), transparent 36%),
        linear-gradient(145deg, #2563eb, #60a5fa);
    box-shadow: 0 24px 40px rgba(37, 99, 235, 0.24);
}

.rg-battle-side.is-ready.rg-p2 {
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.12), transparent 36%),
        linear-gradient(145deg, #f97316, #fb7185);
    box-shadow: 0 24px 40px rgba(249, 115, 22, 0.24);
}

.rg-battle-side.is-winner.rg-p1 {
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.14), transparent 34%),
        linear-gradient(145deg, #2563eb, #22d3ee);
    box-shadow: 0 28px 44px rgba(37, 99, 235, 0.26);
}

.rg-battle-side.is-winner.rg-p2 {
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.14), transparent 34%),
        linear-gradient(145deg, #f97316, #facc15);
    box-shadow: 0 28px 44px rgba(249, 115, 22, 0.26);
}

.rg-battle-side.is-foul {
    background:
        repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.05) 0 18px, transparent 18px 36px),
        linear-gradient(145deg, #7f1d1d, #dc2626);
}

.rg-battle-side.is-muted {
    opacity: 0.56;
}

.rg-battle-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px;
    text-align: center;
    background:
        radial-gradient(circle at center, rgba(99, 102, 241, 0.12), transparent 44%),
        linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(14, 26, 58, 0.96));
}

.rg-battle-sub {
    color: rgba(219, 234, 254, 0.82);
    font-size: 0.98rem;
}

[data-tone="foul"] .rg-versus-badge {
    background: linear-gradient(145deg, #b91c1c, #ef4444);
}

[data-tone="win"] .rg-versus-badge {
    background: linear-gradient(145deg, #16a34a, #22c55e);
}

.rg-note {
    margin-top: 10px;
    color: #bfdbfe;
    font-size: 0.93rem;
    font-weight: 800;
}

.is-hidden {
    display: none !important;
}

@keyframes rg-pop {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.06);
    }
}

@keyframes rg-pop-fast {
    from {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5);
    }
    to {
        transform: scale(1.14);
        box-shadow: 0 0 0 10px rgba(74, 222, 128, 0);
    }
}

@keyframes rg-float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

@media (max-width: 1024px) {
    .rg-hero-panel {
        grid-template-columns: 1fr;
    }

    .rg-battle-wrap {
        grid-template-columns: minmax(0, 1fr) minmax(180px, 0.7fr) minmax(0, 1fr);
    }
}

@media (max-width: 900px) {
    .rg-root {
        padding-right: 12px;
        padding-bottom: 18px;
        padding-left: 12px;
    }

    .rg-topbar,
    .rg-hud,
    .rg-battle-hud {
        flex-direction: column;
        align-items: stretch;
    }

    .rg-card-grid {
        grid-template-columns: 1fr;
    }

    .rg-stage {
        min-height: min(54vh, 430px);
    }

    .rg-battle-cta {
        justify-content: stretch;
    }

    .rg-battle-cta .rg-btn {
        flex: 1;
    }

    .rg-battle-wrap {
        min-height: auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "center center"
            "p1 p2";
    }

    .rg-battle-center {
        min-height: auto;
    }

    .rg-battle-side {
        min-height: 240px;
    }
}

@media (max-width: 640px) {
    .rg-topbar {
        padding: 16px;
    }

    .rg-brand {
        align-items: flex-start;
    }

    .rg-brand-icon {
        width: 50px;
        height: 50px;
        border-radius: 16px;
        font-size: 1.55rem;
    }

    .rg-hero-copy h2 {
        font-size: clamp(1.65rem, 9vw, 2.1rem);
    }

    .rg-stage-main,
    .rg-battle-side strong {
        font-size: clamp(2.5rem, 14vw, 4rem);
    }

    .rg-save-row {
        flex-direction: column;
    }

    .rg-battle-wrap {
        gap: 10px;
    }

    .rg-battle-side {
        min-height: 200px;
        padding: 14px;
    }

    .rg-player-tag {
        font-size: 0.66rem;
    }
}
