.rpg-page {
  --g1: #ffe59a; --g2: #f2b54a; --g3: #d98a2b; --g4: #b8681f;
  --cream: #f6e9d0; --cream-2: #eadbbd;
  --gline: rgba(242, 181, 74, .18); --gline-2: rgba(242, 181, 74, .32);
  --soil: #0a0604;
  --px: "Pixelify Sans", "Inter Tight", system-ui, sans-serif;
  background: var(--soil);
}
.rpg-page ::selection { background: var(--g2); color: #000; }
.rpg-page main, .page-bg--rpg { --red: #f2b54a; --red-hot: #ffd36e; --red-deep: #8a5a12; --glow: rgba(242, 181, 74, .5); --line: rgba(242, 181, 74, .18); }
.rpg-page .fx-scan::after { background: linear-gradient(to bottom, transparent, rgba(255, 190, 80, .04), transparent); }
.page-bg--rpg .haze i { background: radial-gradient(circle, rgba(255, 170, 50, .22), rgba(255, 170, 50, 0) 70%); }
.page-bg--rpg .haze i:nth-child(2) { background: radial-gradient(circle, rgba(184, 104, 31, .22), rgba(184, 104, 31, 0) 70%); }
.page-bg--rpg .haze i:nth-child(3) { background: radial-gradient(circle, rgba(246, 233, 208, .07), rgba(246, 233, 208, 0) 70%); }
.page-bg--rpg .page-bg__glow { background: radial-gradient(closest-side, rgba(242, 170, 60, .15), rgba(184, 104, 31, .04) 60%, transparent); }

.rp { padding: 110px 0 0; overflow: hidden; }
.rp-idx { color: var(--g2); display: flex; gap: 14px; }
.rp-idx span { color: var(--ink-3); }
.rp-brand { display: flex; align-items: center; gap: 14px; }
.rp-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--g2); background: radial-gradient(circle at 50% 40%, #2a1a0a, #000); box-shadow: 0 0 0 4px rgba(242, 181, 74, .12), 0 0 24px rgba(242, 170, 60, .35); flex: none; }
.rp-icon img { width: 32px; height: 32px; image-rendering: pixelated; }

.rp-btn-gold { background: linear-gradient(180deg, var(--g1), var(--g3)); color: #1a0e02; border-color: var(--g2); box-shadow: 0 0 34px rgba(242, 170, 60, .38), inset 0 1px 0 rgba(255, 250, 230, .6); font-weight: 700; }
.rp-btn-gold:hover { background: linear-gradient(180deg, #fff0bd, var(--g2)); color: #1a0e02; border-color: var(--g1); box-shadow: 0 0 44px rgba(242, 181, 74, .55), inset 0 1px 0 rgba(255, 250, 230, .7); }
.rp-btn-ghost { border-color: var(--gline-2); color: var(--cream-2); }
.rp-btn-ghost:hover { border-color: var(--g2); box-shadow: 0 0 0 1px var(--g2) inset, 0 0 30px rgba(242, 181, 74, .2); color: var(--cream); }
.rp-btn-ghost[hidden] { display: none; }

.rp-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 4vw, 70px); align-items: center; min-height: min(760px, calc(100svh - 110px)); padding-bottom: 30px; }
.rp-title { font-size: clamp(64px, 9.4vw, 158px); margin: 18px 0 14px; line-height: .82; color: var(--cream); text-shadow: 0 0 40px rgba(242, 170, 60, .18); }
.rp-foam { display: inline-block; background: linear-gradient(180deg, #fffaf0 0 16%, var(--g1) 17%, var(--g2) 50%, var(--g3) 80%, var(--g4)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 22px rgba(242, 170, 60, .45)); }
.rp-tag { font-size: clamp(22px, 2.3vw, 34px); color: var(--g2); margin: 0 0 20px; letter-spacing: .01em; }
.rp-sub { max-width: 600px; color: var(--ink-2); font-size: 17px; margin: 0 0 30px; }
.rp-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.rp-chip { display: inline-flex; align-items: center; gap: 12px; max-width: 100%; margin-top: 22px; padding: 10px 16px; border: 1px solid var(--gline); background: rgba(242, 181, 74, .05); border-radius: 999px; }
.rp-chip .label { color: var(--g2); }
.rp-chip__v { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

.rp-stage { position: relative; display: grid; place-items: center; min-height: 560px; }
.rp-halo { position: absolute; width: min(540px, 94%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(242, 170, 60, .3), rgba(200, 110, 20, .09) 55%, transparent); filter: blur(10px); }
.rp-rise { position: absolute; inset: 0 8%; pointer-events: none; -webkit-mask-image: linear-gradient(to top, transparent, #000 25%, #000 70%, transparent); mask-image: linear-gradient(to top, transparent, #000 25%, #000 70%, transparent); }
.rp-rise img { position: absolute; bottom: -40px; width: 36px; height: 36px; image-rendering: pixelated; opacity: .75; animation: rprise linear infinite; }
@keyframes rprise { to { transform: translate3d(var(--dx, 0), -620px, 0); opacity: 0; } }
.rp-logo { position: relative; z-index: 2; padding: 0; border: 0; background: none; cursor: pointer; animation: rpfloat 6s ease-in-out infinite; -webkit-tap-highlight-color: transparent; }
@keyframes rpfloat { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-14px) rotate(-1deg); } }
.rp-logo.is-crack { animation: rpcrack .5s var(--ease); }
@keyframes rpcrack { 0% { transform: rotate(-3deg) scale(1); } 25% { transform: rotate(3deg) scale(1.08); } 55% { transform: rotate(-5deg) scale(.97); } 100% { transform: rotate(-3deg) scale(1); } }
.rp-logo:focus-visible { outline: 2px solid var(--g2); outline-offset: 8px; }
.rp-hint { position: absolute; bottom: 4%; left: 50%; transform: translateX(-50%); color: var(--ink-3); white-space: nowrap; transition: opacity .4s; }
.rp-pop { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.rp-pop img { position: absolute; left: 50%; top: 45%; width: 40px; height: 40px; margin: -20px 0 0 -20px; image-rendering: pixelated; animation: rpspray 1.1s var(--ease) forwards; }
@keyframes rpspray { 60% { opacity: 1; } to { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; } }
.rp-pop b { position: absolute; left: 50%; top: 6%; width: min(92%, 420px); transform: translateX(-50%); text-align: center; font: 700 clamp(28px, 3vw, 44px) var(--px); line-height: .9; text-transform: uppercase; color: var(--cream); text-shadow: 0 0 24px rgba(242, 170, 60, .75), 0 3px 0 rgba(0, 0, 0, .55); animation: rpword .35s var(--ease) both; }
.rp-pop b.is-out { animation: rpwordout .5s var(--ease) forwards; }
@keyframes rpword { from { opacity: 0; transform: translate(-50%, 20px) scale(.8); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@keyframes rpwordout { to { opacity: 0; transform: translate(-50%, -30px); } }

.rpgt { --s: clamp(120px, 15vw, 236px); --glow: drop-shadow(0 0 calc(var(--s) * .011) rgba(255, 235, 180, .55)) drop-shadow(0 0 calc(var(--s) * .185) rgba(255, 170, 50, .38)) drop-shadow(0 0 calc(var(--s) * .667) rgba(255, 120, 0, .2)); position: relative; display: inline-grid; justify-items: center; font-family: "Pixelify Sans", "Anton", Impact, sans-serif; font-weight: 700; text-transform: uppercase; line-height: .82; padding: calc(var(--s) * .7); margin: calc(var(--s) * -.7); pointer-events: none; -webkit-mask-image: repeating-linear-gradient(to bottom, #000 0 3px, rgba(0, 0, 0, .35) 3px 4px); mask-image: repeating-linear-gradient(to bottom, #000 0 3px, rgba(0, 0, 0, .35) 3px 4px); }
.rpgt__top { position: relative; left: calc(var(--s) * .0263); font-size: calc(var(--s) * .4815); letter-spacing: .06em; padding-left: .06em; margin-bottom: calc(var(--s) * -.087 + 1px); color: #f6e9d0; filter: var(--glow); }
.rpgt__bot { position: relative; left: calc(var(--s) * .067); font-family: "Jersey 10", "Pixelify Sans", sans-serif; font-weight: 400; font-size: var(--s); letter-spacing: .04em; padding-left: .04em; line-height: .78; background: linear-gradient(180deg, #ffe59a 0%, #f2b54a 50%, #b8681f 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; filter: var(--glow); }
.rpgt__bot::before, .rpgt__bot::after { color: #f5c04d; -webkit-text-fill-color: #f5c04d; }

.rp-recipe { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--gline); border-bottom: 1px solid var(--gline); margin-top: 20px; }
.rp-recipe > div { display: grid; gap: 8px; padding: 20px 18px; }
.rp-recipe > div + div { border-left: 1px solid var(--gline); }
.rp-recipe .label { color: var(--ink-3); }
.rp-recipe b { font-size: clamp(24px, 2.3vw, 36px); color: var(--cream-2); }

.rp-sec { margin-top: clamp(80px, 9vw, 130px); scroll-margin-top: 80px; }
.rp-sec--last { margin-bottom: clamp(80px, 9vw, 130px); }
.rp-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 30px; }
.rp-head h2 { font-size: clamp(48px, 6.4vw, 104px); margin: 12px 0 0; color: var(--cream); }
.rp-head p { max-width: 400px; margin: 0; color: var(--ink-2); font-size: 15px; }
.rp-head code, .rp-card code { padding: 1px 6px; background: rgba(255, 235, 225, .08); font: 600 .92em var(--f-ui); color: var(--ink); }

.rp-screen { position: relative; aspect-ratio: 16 / 9; max-height: 82vh; width: 100%; overflow: hidden; border: 1px solid var(--gline-2); background: #000; box-shadow: 0 50px 100px -60px rgba(242, 170, 60, .6); }
.rp-screen__title { position: absolute; inset: 0; overflow: hidden; }
.rp-screen__art { position: absolute; left: 0; top: 0; image-rendering: pixelated; }
.rp-screen__cta { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 16px 16px calc(var(--ground, 120px) + 10px); text-align: center; }
.rp-screen__logo { --s: clamp(80px, 10vw, 168px); }
.rp-start { margin-top: calc(var(--s, 120px) * .1); padding: 6px 10px; border: 0; background: none; color: var(--cream); font: 700 clamp(18px, 1.8vw, 26px) var(--px); letter-spacing: .12em; text-transform: uppercase; text-shadow: 0 3px 0 #000, 0 0 18px rgba(242, 170, 60, .7); cursor: pointer; animation: rpblink 1.1s steps(1) infinite; }
.rp-start::before { content: "▶ "; color: var(--g2); }
.rp-start:hover, .rp-start:focus-visible { animation: none; color: var(--g1); outline: none; }
@keyframes rpblink { 50% { opacity: .35; } }
.rp-keys { margin: 0; color: var(--ink-2); font-size: 12.5px; text-shadow: 0 1px 0 #000; line-height: 2.2; }
.rp-keys kbd { display: inline-block; min-width: 22px; margin: 0 5px 0 12px; padding: 1px 6px; border: 1px solid rgba(246, 233, 208, .28); border-radius: 4px; background: rgba(0, 0, 0, .5); color: var(--cream); font: 700 11.5px var(--px); }
.rp-keys kbd:first-child { margin-left: 0; }
.rp-season { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: grid; grid-template-columns: auto auto; column-gap: 10px; align-items: center; padding: 7px 12px 7px 10px; border: 1px solid rgba(246, 233, 208, .2); border-radius: 6px; background: rgba(0, 0, 0, .55); color: var(--ink); text-align: left; cursor: pointer; backdrop-filter: blur(4px); }
.rp-season:hover { border-color: rgba(246, 233, 208, .45); }
.rp-season i { grid-row: span 2; width: 12px; height: 12px; border-radius: 2px; background: var(--g2); }
:root[data-season="frost"] .rp-season i { background: #8ccfff; }
:root[data-season="woods"] .rp-season i { background: #ff96cc; }
:root[data-season="golden"] .rp-season i { background: #f6c454; }
:root[data-season="cursed"] .rp-season i { background: #be92ff; }
.rp-season b { font: 700 13px var(--px); text-transform: uppercase; letter-spacing: .04em; }
.rp-season span { font-size: 11px; color: var(--ink-3); }
.rp-screen.is-live .rp-screen__title { display: none; }
.rp-screen__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #000; }
.rp-screen:fullscreen { max-height: none; border: 0; }
.rp-screen__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.rp-screen__note { margin-left: auto; color: var(--ink-3); font-size: 12.5px; }

.rp-tavern { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); gap: 18px; align-items: stretch; }
.rp-chat { display: flex; flex-direction: column; height: clamp(540px, 74vh, 760px); min-width: 0; border: 1px solid var(--gline); background: linear-gradient(180deg, rgba(242, 181, 74, .05), rgba(10, 6, 4, .94) 22%); }
.rp-chat__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--gline); }
.rp-chat__ch { display: inline-flex; align-items: center; gap: 10px; color: var(--cream); }
.rp-chat__ch img { width: 20px; height: 20px; image-rendering: pixelated; }
.rp-live { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-3); }
.rp-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--g2); box-shadow: 0 0 10px rgba(242, 181, 74, .6); animation: rp-blink 1.6s steps(1) infinite; }
@keyframes rp-blink { 50% { opacity: .25; } }
.rp-chat__log { flex: 1; min-height: 0; overflow-y: auto; list-style: none; margin: 0; padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; scrollbar-width: thin; scrollbar-color: rgba(242, 181, 74, .25) transparent; overscroll-behavior: contain; }
.rp-m { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: start; }
.rp-m__av { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--gline-2); background: rgba(242, 181, 74, .07); font: 700 15px var(--f-ui); color: var(--cream); }
.rp-m__av--bot { border-color: var(--g2); background: radial-gradient(circle at 50% 40%, #2a1a0a, #000); box-shadow: 0 0 14px rgba(242, 170, 60, .3); }
.rp-m__av--bot img { width: 22px; height: 22px; image-rendering: pixelated; }
.rp-m__b { min-width: 0; }
.rp-m__h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.rp-m__h b { font: 700 14px var(--f-ui); }
.rp-m__lv, .rp-m__h time, .rp-m__only { font-size: 11px; color: var(--ink-3); }
.rp-m__lv { font-family: var(--f-mono, monospace); }
.rp-m__b > p { margin: 2px 0 0; color: var(--ink); font-size: 14.5px; line-height: 1.5; overflow-wrap: anywhere; }
.rp-m__b > p code { padding: 1px 6px; background: rgba(242, 181, 74, .1); color: var(--g1); font: 600 .95em var(--f-mono, monospace); }
.rp-m__bot { color: var(--g2); }
.rp-m__tag { padding: 1px 6px; border-radius: 3px; background: var(--g2); color: #140a02; font: 700 9.5px var(--f-ui); text-transform: uppercase; letter-spacing: .1em; }
.rp-m__sys { display: grid; place-items: center; width: 36px; font-size: 15px; }
.rp-m--sys p { margin: 0; padding: 8px 12px; border-left: 2px solid var(--g2); background: rgba(242, 181, 74, .06); color: var(--ink); font-size: 13.5px; line-height: 1.45; }
.rp-m--sys p b { color: var(--g1); }
.rp-m--note { grid-template-columns: minmax(0, 1fr); text-align: center; }
.rp-m--note p { margin: 0; color: var(--ink-3); font-size: 12.5px; }
.rp-m--bot .rp-view { margin-top: 8px; }
.rp-chat__log.is-busy .rp-actions { opacity: .6; pointer-events: none; }
.rp-chips { display: flex; gap: 6px; overflow-x: auto; padding: 10px 14px; border-top: 1px solid var(--gline); scrollbar-width: none; }
.rp-chips::-webkit-scrollbar { display: none; }
.rp-chips.is-menu { flex-wrap: wrap; max-height: 150px; overflow-y: auto; }
.rp-chip { flex: none; display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 11px; border: 1px solid var(--gline); border-radius: 999px; background: rgba(242, 181, 74, .04); color: var(--g2); cursor: pointer; font: 600 12.5px var(--f-mono, monospace); transition: border-color .2s, background .2s; }
.rp-chip:hover { border-color: var(--g2); background: rgba(242, 181, 74, .1); }
.rp-chip span { font: 500 12px var(--f-ui); color: var(--ink-3); }
.rp-chat__form { display: flex; align-items: stretch; gap: 10px; padding: 12px 14px 14px; }
.rp-chat__form .btn { height: 46px; padding: 0 22px; justify-content: center; }
.rp-chat__form.is-soon .btn, .rp-chips.is-soon .rp-chip { opacity: .45; cursor: not-allowed; }
.rp-soon__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.rp-start.is-soon { animation: none; color: var(--g1); }
.rp-chat__form input { flex: 1; min-width: 0; height: 46px; padding: 0 16px; border: 1px solid var(--gline-2); border-radius: 0; background: rgba(0, 0, 0, .45); color: var(--ink); font: 500 15px var(--f-ui); outline: none; transition: border-color .2s, box-shadow .2s; }
.rp-chat__form input:focus { border-color: var(--g2); box-shadow: 0 0 0 1px var(--g2) inset, 0 0 24px rgba(242, 181, 74, .15); }
.rp-chat__form input::placeholder { color: var(--ink-3); }
.rp-chat__form.is-out input { cursor: pointer; }

.rp-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; min-height: 0; }
.rp-side .rp-box { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.rp-side .rp-feed { flex: 1 1 0; min-height: 120px; max-height: none; align-content: start; }
.rp-game, .rp-box { padding: 20px; border: 1px solid var(--gline); background: linear-gradient(180deg, rgba(242, 181, 74, .06), rgba(10, 6, 4, .94) 60%); }
.rp-game { transition: opacity .2s; }
.rp-game.is-busy { opacity: .75; }
.rp-load { display: grid; place-items: center; min-height: 160px; color: var(--ink-3); }
.rp-pixel-h { margin: 8px 0 0; font: 900 clamp(34px, 3vw, 46px) / .9 var(--f-display); font-variation-settings: "wdth" 62; text-transform: uppercase; color: var(--cream); }
.rp-hud { display: grid; gap: 14px; }
.rp-hud__who { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.rp-hud__cls { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--g2); background: radial-gradient(circle at 50% 40%, #2a1a0a, #000); box-shadow: 0 0 18px rgba(242, 170, 60, .3); font-size: 21px; }
.rp-hud__name { display: block; font: 900 26px / 1 var(--f-display); font-variation-settings: "wdth" 62; text-transform: uppercase; color: var(--cream); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-hud__who .label { color: var(--ink-3); }
.rp-hud__gold { font-weight: 700; font-size: 15px; white-space: nowrap; color: var(--g1); }
.rp-bars { display: grid; gap: 9px; }
.rp-bar { display: grid; grid-template-columns: 40px minmax(0, 1fr) 70px; align-items: center; gap: 10px; }
.rp-bar__l { color: var(--ink-3); }
.rp-bar__t { position: relative; height: 8px; background: rgba(255, 235, 225, .07); overflow: hidden; }
.rp-bar__t i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--g3), var(--g1)); box-shadow: 0 0 14px rgba(242, 181, 74, .45); transition: width .45s var(--ease); }
.rp-bar__t::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(to right, transparent 0 9px, rgba(0, 0, 0, .55) 9px 10px); }
.rp-bar--mana .rp-bar__t i { background: linear-gradient(90deg, #2f86c8, #7fd0ff); box-shadow: 0 0 14px rgba(79, 184, 255, .4); }
.rp-bar--xp .rp-bar__t i { background: linear-gradient(90deg, #d9a520, #fff0a8); box-shadow: 0 0 14px rgba(255, 220, 110, .35); }
.rp-bar__v { text-align: right; font-size: 12.5px; color: var(--ink-2); }
.rp-hud__stats { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--ink-3); }
.rp-buff { color: var(--g2); }
.rp-hud__quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.rp-hero-card__new p, .rp-out p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.rp-out { display: grid; justify-items: start; gap: 12px; }
.rp-out__k { color: var(--g2); }
.rp-classes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; width: 100%; background: var(--gline); border: 1px solid var(--gline); }
.rp-classes div { display: grid; gap: 2px; padding: 10px 12px; background: var(--soil); }
.rp-classes b { font-size: 13.5px; color: var(--cream); }
.rp-classes span { color: var(--ink-3); font-size: 12.5px; }
.rp-out__go { margin-top: 4px; }
.rp-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 14px; margin-top: 16px; font-size: 12.5px; color: var(--ink-3); }
.rp-foot a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.rp-view { padding: 12px 14px; border-left: 2px solid var(--g2); background: rgba(255, 235, 225, .03); }
.rp-view--good { border-left-color: #9fdc6a; }
.rp-view--bad { border-left-color: #8a6a5a; }
.rp-view--gold { border-left-color: var(--g1); }
.rp-view--epic { border-left-color: #b98cff; }
.rp-view--muted { border-left-color: rgba(255, 235, 225, .2); }
.rp-view__t { margin: 0 0 8px; font: 700 17px var(--f-ui); color: var(--cream); }
.rp-view__b p { margin: 0 0 5px; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; overflow-wrap: anywhere; }
.rp-view__b b { color: var(--ink); }
.rp-view__b code { padding: 1px 6px; background: rgba(255, 235, 225, .08); font: 600 .92em var(--f-ui); color: var(--ink); }
.rp-view__b .rp-gap { height: 4px; margin: 0; }
.rp-hype { margin-top: 10px !important; padding: 8px 10px; border: 1px solid rgba(242, 181, 74, .35); background: rgba(242, 181, 74, .06); color: var(--ink) !important; }
.rp-err { color: var(--g1) !important; }
.rp-actions { display: grid; gap: 8px; margin-top: 10px; }
.rp-row { display: flex; flex-wrap: wrap; gap: 8px; }
.rp-btn { flex: 1 1 110px; min-height: 40px; padding: 8px 12px; border: 1px solid var(--gline-2); border-radius: 0; background: rgba(255, 235, 225, .03); color: var(--ink); font: 600 13.5px var(--f-ui); text-align: center; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s, transform .1s; }
.rp-btn:hover { border-color: var(--g2); background: rgba(242, 181, 74, .08); }
.rp-btn:active { transform: translateY(1px); }
.rp-btn:focus-visible { outline: 2px solid var(--g2); outline-offset: 2px; }
.rp-btn--primary { background: linear-gradient(180deg, var(--g1), var(--g3)); border-color: var(--g2); color: #1a0e02; font-weight: 700; box-shadow: 0 0 20px rgba(242, 170, 60, .25); }
.rp-btn--primary:hover { background: linear-gradient(180deg, #fff0bd, var(--g2)); }
.rp-btn--danger { border-color: rgba(255, 140, 80, .5); color: #ffc9a8; }
.rp-btn--success { border-color: rgba(159, 220, 106, .35); }
.rp-btn--success:hover { border-color: #9fdc6a; background: rgba(159, 220, 106, .07); }

.rp-box__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.rp-box__head > .label:first-child { color: var(--g2); }
.rp-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; max-height: 360px; overflow-y: auto; background: var(--gline); border: 1px solid var(--gline); }
.rp-feed li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 10px 12px; background: var(--soil); font-size: 13px; line-height: 1.45; color: var(--ink-2); overflow-wrap: anywhere; }
.rp-feed li b { color: var(--ink); }
.rp-feed time { color: var(--ink-3); white-space: nowrap; }
.rp-feed__i--mythic { box-shadow: inset 3px 0 0 #ff7ad9; }
.rp-feed__i--legendary { box-shadow: inset 3px 0 0 #ffb13c; }
.rp-feed__i--boss { box-shadow: inset 3px 0 0 var(--g2); }
.rp-feed__empty { display: block !important; color: var(--ink-3) !important; }
.rp-note { margin: 12px 0 0; color: var(--ink-3); font-size: 12.5px; line-height: 1.5; }

.rp-lands { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--gline); border: 1px solid var(--gline); }
.rp-land { display: flex; flex-direction: column; background: var(--soil); color: inherit; text-decoration: none; }
.rp-land__art { position: relative; height: 190px; overflow: hidden; background: #000; }
.rp-land__art canvas { position: absolute; left: 0; top: 0; image-rendering: pixelated; transition: filter .3s; filter: saturate(.9) brightness(.92); }
.rp-land:hover .rp-land__art canvas { filter: none; }
.rp-land__b { display: grid; gap: 6px; padding: 18px 20px 20px; background: linear-gradient(180deg, rgba(242, 181, 74, .06), transparent); }
.rp-land__b b { font-size: clamp(28px, 2.6vw, 38px); color: var(--cream); line-height: .95; transition: color .2s; }
.rp-land:hover .rp-land__b b { color: var(--g1); }
.rp-land__b em { font-style: normal; font-size: 13px; color: var(--ink-3); }

.rp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--gline); border: 1px solid var(--gline); }
.rp-steps li { display: grid; gap: 8px; align-content: start; padding: 22px 20px; background: linear-gradient(180deg, rgba(242, 181, 74, .06), rgba(10, 6, 4, .96) 70%); }
.rp-steps img { width: 40px; height: 40px; image-rendering: pixelated; margin-bottom: 6px; filter: drop-shadow(0 0 10px rgba(242, 170, 60, .35)); }
.rp-steps .label { color: var(--g2); }
.rp-steps b { font-size: clamp(28px, 2.4vw, 38px); color: var(--cream); line-height: .95; }
.rp-steps em { font-style: normal; color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.rp-trail { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--gline); border-bottom: 1px solid var(--gline); }
.rp-trail li { display: grid; gap: 8px; padding: 20px 18px; }
.rp-trail li + li { border-left: 1px solid var(--gline); }
.rp-trail .label { color: var(--ink-3); }
.rp-trail b { font-size: clamp(22px, 2vw, 30px); color: var(--cream-2); line-height: .95; }
.rp-trail em { font-style: normal; font-size: 12.5px; color: var(--g2); }
.rp-fine { margin: 24px 0 0; max-width: 620px; color: var(--ink-3); font-size: 12.5px; line-height: 1.55; }

.rp-where { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--gline); border: 1px solid var(--gline); }
.rp-card { display: flex; flex-direction: column; gap: 10px; padding: 24px 22px; background: linear-gradient(180deg, rgba(242, 181, 74, .06), rgba(10, 6, 4, .96) 70%); }
.rp-card > .label { color: var(--g2); }
.rp-card b { font-size: clamp(32px, 3vw, 46px); color: var(--cream); line-height: .95; }
.rp-card b code { font-family: var(--f-display); font-size: 1em; padding: 0 .08em; background: none; color: var(--g2); }
.rp-card em { font-style: normal; color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.rp-link { margin-top: auto; padding-top: 6px; color: var(--ink); }
.rp-link:hover { color: var(--g2); }

.rp-wiki { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(30px, 5vw, 80px); align-items: center; padding: clamp(24px, 4vw, 56px); border: 1px solid var(--gline); background: radial-gradient(80% 90% at 100% 100%, rgba(242, 170, 60, .14), transparent 60%), rgba(12, 7, 4, .9); color: inherit; text-decoration: none; transition: border-color .25s; }
.rp-wiki:hover { border-color: var(--gline-2); }
.rp-wiki h2 { font-size: clamp(48px, 6vw, 96px); margin: 12px 0 14px; color: var(--cream); }
.rp-wiki p { margin: 0 0 26px; max-width: 460px; color: var(--ink-2); }
.rp-wiki__icons { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 26px); justify-items: center; }
.rp-wiki__icons img { width: clamp(52px, 5.4vw, 76px); height: auto; aspect-ratio: 1; image-rendering: pixelated; filter: drop-shadow(0 0 16px rgba(242, 170, 60, .35)); animation: rpbob 3s ease-in-out infinite; }
.rp-wiki__icons img:nth-child(2) { animation-delay: -.5s; }
.rp-wiki__icons img:nth-child(3) { animation-delay: -1s; }
.rp-wiki__icons img:nth-child(4) { animation-delay: -1.5s; }
.rp-wiki__icons img:nth-child(5) { animation-delay: -2s; }
.rp-wiki__icons img:nth-child(6) { animation-delay: -2.5s; }
@keyframes rpbob { 50% { transform: translateY(-8px); } }

@media (max-width: 960px) {
  .rp-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .rp-stage { min-height: 380px; order: -1; }
  .rp-recipe { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rp-recipe > div:nth-child(4) { border-left: 0; }
  .rp-recipe > div:nth-child(n + 4) { border-top: 1px solid var(--gline); }
  .rp-head { flex-direction: column; align-items: start; gap: 14px; }
  .rp-tavern { grid-template-columns: minmax(0, 1fr); }
  .rp-side { display: contents; }
  .rp-game { order: -1; }
  .rp-chat { height: min(72vh, 640px); }
  .rp-lands, .rp-where { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rp-where .rp-card:last-child { grid-column: 1 / -1; }
  .rp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rp-trail { grid-template-columns: minmax(0, 1fr); }
  .rp-trail li + li { border-left: 0; border-top: 1px solid var(--gline); }
  .rp-wiki { grid-template-columns: minmax(0, 1fr); }
  .rp-wiki__icons { grid-template-columns: repeat(6, 1fr); }
  .rp-screen__note { margin-left: 0; flex-basis: 100%; }
}
@media (max-width: 560px) {
  .rp-stage { min-height: 300px; }
  .rpgt { --s: 104px; }
  .rp-recipe { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rp-recipe > div:nth-child(n) { border-left: 0; border-top: 0; }
  .rp-recipe > div:nth-child(even) { border-left: 1px solid var(--gline); }
  .rp-recipe > div:nth-child(n + 3) { border-top: 1px solid var(--gline); }
  .rp-lands, .rp-where, .rp-steps, .rp-classes { grid-template-columns: minmax(0, 1fr); }
  .rp-where .rp-card:last-child { grid-column: auto; }
  .rp-screen { aspect-ratio: 4 / 5; }
  .rp-screen__logo { --s: 76px; }
  .rp-bar { grid-template-columns: 36px minmax(0, 1fr) 62px; gap: 8px; }
  .rp-btn { flex-basis: 76px; min-height: 36px; font-size: 12.5px; padding: 6px; }
  .rp-m.rp-m--bot { grid-template-columns: minmax(0, 1fr); }
  .rp-m--bot .rp-m__av { display: none; }
  .rp-row, .rp-actions { gap: 6px; }
  .rp-chat__log { padding: 12px; }
  .rp-m { grid-template-columns: 30px minmax(0, 1fr); gap: 8px; }
  .rp-m__av, .rp-m__sys { width: 30px; height: 30px; font-size: 13px; }
  .rp-wiki__icons { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .rp-live i, .rp-start, .rp-logo, .rp-wiki__icons img { animation: none; }
  .rp-rise { display: none; }
  .rp-bar__t i { transition: none; }
}

.rp-renown { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.rp-board { border: 1px solid var(--gline); background: linear-gradient(180deg, rgba(242, 181, 74, .06), rgba(10, 6, 4, .94) 50%); }
.rp-board__head { display: flex; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--gline); }
.rp-board__head .label:first-child { color: var(--g2); }
.rp-board ol { list-style: none; margin: 0; padding: 0; }
.rp-board li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 18px; border-bottom: 1px solid rgba(255, 235, 225, .05); }
.rp-board li:nth-child(-n + 3) .rp-board__rank { color: var(--g1); }
.rp-board li.is-me { background: rgba(242, 181, 74, .1); box-shadow: inset 3px 0 0 var(--g2); }
.rp-board__rank { font: 900 22px / 1 var(--f-display); font-variation-settings: "wdth" 62; color: var(--ink-3); }
.rp-board__who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--cream); font-weight: 600; }
.rp-board__who em { font-style: normal; color: var(--ink-3); font-size: 12px; margin-left: 6px; }
.rp-board__pts { font-family: var(--f-mono, monospace); color: var(--g1); }
.rp-board__empty { display: block !important; color: var(--ink-3); }
@media (max-width: 960px) { .rp-renown { grid-template-columns: minmax(0, 1fr); } }
.rp-events { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 0 0 14px; }
.rp-events[hidden] { display: none; }
.rp-ev { display: flex; flex-direction: column; gap: 3px; padding: 10px 14px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 10px; background: rgba(255, 255, 255, .03); }
.rp-ev.is-live { border-color: rgba(245, 197, 58, .5); background: linear-gradient(180deg, rgba(245, 197, 58, .1), rgba(245, 197, 58, .02)); box-shadow: 0 0 22px rgba(245, 197, 58, .12); }
.rp-ev b { color: #ffe7a0; font-size: 15px; }
.rp-ev span { color: var(--muted, #b9bec7); font-size: 13.5px; }
.rp-ev time { color: #f5c53a; font-size: 11px; }

.rp-keys--touch { display: none; }
@media (pointer: coarse) { .rp-keys { display: none; } .rp-keys.rp-keys--touch { display: block; } }

.rp-beta { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 99px; background: linear-gradient(90deg, #f5c53a, #ff8a3d); color: #1a1206; font-weight: 900; letter-spacing: .08em; vertical-align: 1px; }
.rp-betanote { margin: 10px 0 0; font-size: 13px; color: var(--muted, #b9bec7); }
.rp-betanote a { color: var(--g1); text-underline-offset: 3px; }
.rp-betanote a:hover { color: #fff; }
