﻿html:has(.room-page), .room-page { height: 100%; overflow: hidden; overscroll-behavior: none; }
.room-page { --neon: #ff8a1f; --neon-hot: #ffb35a; --glass: rgba(18, 9, 5, .62); --glass-line: rgba(255, 170, 90, .22); background: #0b0503; color: var(--ink); -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
.room-page .fx-grain { opacity: .05; z-index: 3; }

.room { position: fixed; inset: 0; overflow: hidden; background: #0b0503; }
.room__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; filter: saturate(1.08) contrast(1.04); opacity: 0; transition: opacity 1.2s ease; }
.room__canvas.is-on { opacity: 1; }
.room__canvas.is-drag { cursor: grabbing; }
.room__canvas.is-hot { cursor: pointer; }
.room__tv { position: absolute; left: 0; top: 0; width: 640px; height: 360px; border: 0; transform-origin: 0 0; pointer-events: none; opacity: 0; filter: brightness(.94) saturate(1.05); background: #000; }
.room__tv.is-on { opacity: 1; }
.room__grade { position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(ellipse farthest-corner at 50% 50%, transparent 58%, rgba(10, 4, 2, .2) 72%, rgba(8, 3, 1, .46) 88%, rgba(5, 2, 1, .66) 100%),
  linear-gradient(180deg, rgba(255, 150, 70, .05), transparent 30%, transparent 70%, rgba(40, 14, 4, .18)); mix-blend-mode: normal; }

.rhud { position: fixed; z-index: 20; }
.rhud--top { top: 0; left: 0; right: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 12px; padding: max(14px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); pointer-events: none; }
.rhud--top > * { pointer-events: auto; }
.rhud__right { justify-self: end; display: flex; gap: 8px; }
.rbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 16px 0 12px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); color: #fff1e2; backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2); font: 600 12px var(--f-ui); letter-spacing: .1em; text-transform: uppercase; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .8); transition: border-color .2s, background .2s, transform .2s var(--ease), color .2s; }
.rbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rbtn[hidden] { display: none; }
.rbtn:hover { border-color: var(--neon); color: var(--neon-hot); }
.rbtn:active { transform: scale(.96); }
.rbtn--back { justify-self: start; }
.rbtn--icon { width: 42px; padding: 0; }
.rbtn--track[aria-pressed="true"] { border-color: var(--neon); color: var(--neon-hot); box-shadow: 0 0 18px -4px rgba(255, 138, 31, .6); }
.rbtn--track span { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.rtitle { justify-self: center; display: grid; justify-items: center; gap: 2px; padding: 8px 20px 9px; border-radius: 16px; background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); text-align: center; max-width: min(46vw, 440px); animation: hud-in .8s var(--ease) both .4s; }
.rtitle__num { color: var(--neon-hot); font-size: 10px; }
.rnav { justify-self: center; display: flex; align-items: center; gap: 8px; min-width: 0; }
.rnav__btn { flex: none; align-self: center; }
.rnav__btn[hidden] { display: inline-flex; visibility: hidden; }
.rtitle__name { font: 900 22px/1 var(--f-display); font-variation-settings: "wdth" 70; text-transform: uppercase; letter-spacing: .01em; color: #fff3e6; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes hud-in { from { opacity: 0; transform: translateY(-8px); } }

.rhud--zoom { right: max(16px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); display: grid; gap: 8px; transition: transform .45s var(--ease); }

.rhint { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 15; transform: translateX(-50%); margin: 0; padding: 10px 18px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: rgba(255, 236, 220, .88); font: 500 13px var(--f-ui); white-space: nowrap; pointer-events: none; animation: hint-in .8s var(--ease) both 1.4s; transition: opacity .8s; }
.rhint.is-out { opacity: 0; }
@keyframes hint-in { from { opacity: 0; transform: translate(-50%, 10px); } }

.rpop { position: fixed; left: 0; top: 0; z-index: 30; width: min(300px, calc(100vw - 24px)); padding: 12px 14px 14px; display: grid; gap: 9px; border-radius: 16px; background: linear-gradient(170deg, rgba(40, 18, 8, .9), rgba(16, 7, 4, .94)); border: 1px solid var(--glass-line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 18px 50px -18px rgba(0, 0, 0, .95), 0 0 40px -20px rgba(255, 120, 20, .5); will-change: transform; }
.rpop[hidden] { display: none; }
.rpop.is-in { animation: pop-in .22s var(--ease) both; }
@keyframes pop-in { from { opacity: 0; scale: .94; } }
.rpop__head { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; }
.rpop__img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .9); background: #1a0c06; }
.rpop__slot { margin: 0 0 3px; color: var(--neon-hot); font-size: 10px; }
.rpop__name { margin: 0; font: 800 15px/1.2 var(--f-ui); color: #fff3e6; word-break: break-word; }
.rpop__desc { margin: 0; color: rgba(255, 232, 214, .78); font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.rpop__acts { display: flex; flex-wrap: wrap; gap: 6px; }
.rpop__acts a, .rpop__acts button { display: inline-flex; align-items: center; height: 30px; padding: 0 11px; border-radius: 9px; border: 1px solid rgba(255, 200, 150, .22); color: #fff1e2; font: 700 10px var(--f-ui); letter-spacing: .1em; text-transform: uppercase; transition: border-color .2s, background .2s; }
.rpop__acts a:hover, .rpop__acts button:hover { border-color: var(--neon); background: rgba(255, 138, 31, .1); }
.rpop__acts .is-main { color: #1c0b02; border-color: transparent; background: linear-gradient(180deg, #ffe0a8, #ffb24a 50%, #ff7a12); }

.rload { position: fixed; inset: 0; z-index: 50; display: grid; place-content: center; justify-items: center; gap: 22px; background: radial-gradient(70% 60% at 50% 60%, #2a1208, #0b0503 70%); transition: opacity .9s ease, visibility .9s; }
.rload.is-out { opacity: 0; visibility: hidden; }
.rload__door { position: relative; width: 84px; height: 124px; border-radius: 42px 42px 4px 4px; background: #120804; box-shadow: inset 0 0 0 4px #3a2112, 0 0 60px -10px rgba(255, 130, 30, .5); overflow: hidden; perspective: 400px; }
.rload__door span { position: absolute; inset: 4px; border-radius: 38px 38px 2px 2px; background: repeating-linear-gradient(90deg, #5a3218 0 2px, #7a4623 3px 18px, #4a2a14 20px); transform-origin: 0 50%; animation: door-swing 2.4s ease-in-out infinite; box-shadow: inset -8px 0 12px rgba(0, 0, 0, .35); }
.rload__door::after { content: ""; position: absolute; inset: 4px; border-radius: 38px 38px 2px 2px; background: radial-gradient(60% 50% at 30% 60%, rgba(255, 170, 70, .9), rgba(255, 110, 20, .35) 60%, transparent); z-index: -1; }
@keyframes door-swing { 0%, 100% { transform: rotateY(0); } 50% { transform: rotateY(-58deg); } }
.rload__bar { position: relative; width: min(300px, 70vw); height: 16px; padding: 3px; border-radius: 9px; background: repeating-linear-gradient(90deg, #3b2112 0 26px, #4a2a16 27px 29px, #3b2112 30px 60px), #3b2112; box-shadow: inset 0 2px 5px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 170, 90, .22), 0 10px 30px -12px rgba(0, 0, 0, .9); }
.rload__fill { position: relative; display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, #b8410c, #ff8a1f 60%, #ffd08a); box-shadow: 0 0 12px rgba(255, 138, 31, .7), 0 0 26px rgba(255, 110, 10, .35); }
.rload__fill::after { content: ""; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: radial-gradient(circle, #fff3d6, #ffb24a 45%, rgba(255, 120, 20, 0) 70%); animation: ember-pulse .9s ease-in-out infinite alternate; }
@keyframes ember-pulse { from { transform: scale(.8); opacity: .8; } to { transform: scale(1.25); opacity: 1; } }
.rload__txt { margin: 0; color: rgba(255, 220, 190, .8); letter-spacing: .24em; display: flex; gap: 10px; align-items: baseline; }
.rload__txt b { color: var(--neon-hot); font-variant-numeric: tabular-nums; min-width: 3.2em; text-align: right; }
.rload__back { height: 40px; }
.rload__back[hidden], .rload__door[hidden] { display: none; }

@media (max-width: 720px) {
  .rhud--top { grid-template-columns: auto 1fr auto; }
  .rbtn--back span, .rbtn--track span { display: none; }
  .rbtn--back, .rbtn--track { width: 42px; padding: 0; }
  .rnav { grid-column: 1 / -1; grid-row: 2; justify-self: center; gap: 8px; max-width: 100%; }
  .rnav__btn { width: 38px; height: 38px; }
  .rtitle { max-width: calc(100vw - 132px); min-width: 0; padding: 7px 14px 8px; }
  .rtitle__name { font-size: 18px; }
  .rhint { left: max(14px, env(safe-area-inset-left)); right: 72px; transform: none; font-size: 12px; white-space: normal; text-align: center; animation-name: fade-up; }
  @keyframes fade-up { from { opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) {
  .rload__door span, .rtitle, .rhint, .rpop.is-in { animation: none; }
}

.eq { display: inline-flex; align-items: flex-end; gap: 2px; width: 16px; height: 14px; }
.eq b { flex: 1; height: 30%; border-radius: 1px; background: currentColor; transition: height .3s; }
.rbtn--track.is-playing .eq b { animation: eq-bounce 1s ease-in-out infinite; }
.rbtn--track.is-playing .eq b:nth-child(2) { animation-delay: -.35s; }
.rbtn--track.is-playing .eq b:nth-child(3) { animation-delay: -.7s; }
.rbtn--track.is-playing .eq b:nth-child(4) { animation-delay: -.15s; }
@keyframes eq-bounce { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.rmusic { position: fixed; z-index: 40; top: max(64px, calc(env(safe-area-inset-top) + 58px)); right: max(16px, env(safe-area-inset-right)); width: min(330px, calc(100vw - 32px)); display: grid; grid-template-columns: 96px 1fr; gap: 12px 14px; padding: 14px; border-radius: 18px; background: linear-gradient(170deg, rgba(40, 18, 8, .92), rgba(16, 7, 4, .95)); border: 1px solid var(--glass-line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 22px 60px -20px rgba(0, 0, 0, .95), 0 0 50px -24px rgba(255, 120, 20, .55); animation: pop-in .25s var(--ease) both; }
.rmusic[hidden] { display: none; }
.rmusic__x { position: absolute; top: 6px; right: 8px; width: 30px; height: 30px; border-radius: 8px; color: rgba(255, 228, 205, .7); font-size: 18px; }
.rmusic__x:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.rmusic__cover { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .9); }
.rmusic__meta { display: grid; align-content: center; gap: 3px; min-width: 0; padding-right: 18px; }
.rmusic__album { margin: 0; color: var(--neon-hot); font-size: 9.5px; }
.rmusic__title { font: 900 20px/1.05 var(--f-display); font-variation-settings: "wdth" 72; text-transform: uppercase; color: #fff3e6; }
.rmusic__artist { color: rgba(255, 232, 214, .85); font: 600 13px var(--f-ui); }
.rmusic__note { color: rgba(255, 228, 205, .5); font: 500 11px var(--f-ui); }
.rmusic__acts { grid-column: 1 / -1; display: flex; gap: 8px; }
.rmusic__acts button { flex: 1; height: 38px; border-radius: 11px; border: 1px solid rgba(255, 200, 150, .22); color: #fff1e2; font: 700 11px var(--f-ui); letter-spacing: .1em; text-transform: uppercase; transition: border-color .2s, background .2s; }
.rmusic__acts button:hover { border-color: var(--neon); background: rgba(255, 138, 31, .1); }
.rmusic__acts .is-main { color: #1c0b02; border-color: transparent; background: linear-gradient(180deg, #ffe0a8, #ffb24a 50%, #ff7a12); }
.rmusic__acts button[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .rbtn--track.is-playing .eq b { animation: none; height: 70%; } }

.rbtn--edit { color: #ffe3b8; border-color: rgba(255, 196, 110, .38); }
.rbtn--edit.is-mine { color: #1c0b02; border-color: transparent; background: linear-gradient(180deg, #ffe0a8, #ffb24a 55%, #ff7a12); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .8), 0 0 22px -6px rgba(255, 150, 40, .8); animation: edit-glow 2.6s ease-in-out infinite; }
.rbtn--edit.is-mine:hover { color: #1c0b02; filter: brightness(1.06); }
@keyframes edit-glow { 50% { box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .8), 0 0 30px -4px rgba(255, 170, 60, .95); } }
.is-editing .rbtn--edit { color: #1c0b02; background: linear-gradient(180deg, #ffe0a8, #ffb24a 55%, #ff7a12); border-color: transparent; animation: none; }
.is-editing .rbtn--track, .is-editing .rhud--zoom { opacity: 0; pointer-events: none; }
.rhud--zoom, .rbtn--track { transition: opacity .3s, transform .45s var(--ease); }

.redit { --gold: #ffcf7a; position: fixed; z-index: 35; top: max(70px, calc(env(safe-area-inset-top) + 64px)); right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); width: min(580px, 46vw, calc(100vw - 32px)); display: grid; grid-template-rows: auto auto auto minmax(0, 1fr) auto; border-radius: 22px; overflow: hidden;
  background: radial-gradient(120% 60% at 100% 0%, rgba(255, 140, 40, .12), transparent 60%), linear-gradient(170deg, rgba(42, 19, 9, .94), rgba(14, 6, 3, .96));
  border: 1px solid rgba(255, 180, 100, .24); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 30px 80px -24px rgba(0, 0, 0, .95), 0 0 60px -30px rgba(255, 120, 20, .7), inset 0 1px 0 rgba(255, 220, 170, .08);
  opacity: 0; transform: translateX(28px) scale(.985); transition: opacity .4s ease, transform .5s var(--ease), width .55s var(--ease); }
.redit.is-all { width: calc(100vw - 2 * max(16px, env(safe-area-inset-right))); }
.redit.is-all .rgrid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.redit.is-all .redit__body { padding: 18px 22px 22px; }
.redit.is-all .ritem__name { font-size: 12.5px; }
.redit[hidden] { display: none; }
.redit.is-in { opacity: 1; transform: none; }
.redit__grab { display: none; }
.redit__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 18px 12px; }
.redit__kicker { margin: 0 0 4px; color: var(--neon-hot); font-size: 10px; }
.redit__title { margin: 0; font: 900 24px/1 var(--f-display); font-variation-settings: "wdth" 70; text-transform: uppercase; color: #fff3e6; letter-spacing: .01em; }
.redit__acct { display: block; margin-top: 6px; color: rgba(255, 228, 205, .55); font: 500 12px var(--f-ui); }
.redit__x { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; border: 1px solid rgba(255, 200, 150, .18); color: rgba(255, 232, 214, .8); transition: background .2s, border-color .2s, color .2s; }
.redit__x:hover { border-color: var(--neon); color: #fff; background: rgba(255, 138, 31, .12); }
.redit__x svg, .rgate__x svg, .redit__ghost svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.redit__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0 18px 12px; padding: 4px; border-radius: 13px; background: rgba(0, 0, 0, .32); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .5); }
.redit__tabs button { height: 34px; border-radius: 10px; color: rgba(255, 228, 205, .62); font: 700 11px var(--f-ui); letter-spacing: .1em; text-transform: uppercase; transition: background .25s, color .25s, box-shadow .25s; }
.redit__tabs button em { font-style: normal; opacity: .6; margin-left: 4px; }
.redit__tabs button[aria-selected="true"] { color: #fff3e6; background: linear-gradient(180deg, rgba(255, 150, 60, .28), rgba(255, 110, 20, .14)); box-shadow: inset 0 0 0 1px rgba(255, 170, 90, .35), 0 6px 16px -10px rgba(255, 120, 20, .9); }

.redit__rail { display: flex; gap: 8px; min-height: 92px; overflow-x: auto; padding: 2px 18px 14px; scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-x: contain; border-bottom: 1px solid rgba(255, 180, 100, .1); }
.redit__rail::-webkit-scrollbar { display: none; }
.is-all .redit__rail { display: none; }
.rspot { position: relative; flex: none; width: 68px; display: grid; justify-items: center; gap: 6px; scroll-snap-align: center; color: rgba(255, 228, 205, .66); transition: color .2s, transform .25s var(--ease); }
.rspot:hover { color: #fff3e6; transform: translateY(-2px); }
.rspot__pic { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 15px; overflow: hidden; background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 1px rgba(255, 190, 120, .16); transition: box-shadow .25s, transform .25s var(--ease); }
.rspot__pic img { width: 100%; height: 100%; object-fit: cover; }
.rspot__pic i { font: 300 26px/1 var(--f-ui); font-style: normal; color: rgba(255, 200, 150, .45); }
.rspot__name { max-width: 100%; font: 700 9.5px/1.15 var(--f-ui); letter-spacing: .06em; text-transform: uppercase; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rspot.is-on { color: var(--gold); }
.rspot.is-on .rspot__pic { box-shadow: inset 0 0 0 2px var(--gold), 0 0 22px -6px rgba(255, 170, 60, .9); transform: scale(1.04); }
.rspot.is-changed::after { content: ""; position: absolute; top: -2px; right: 2px; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle, #fff1c9, #ff9a2a 60%); box-shadow: 0 0 10px rgba(255, 150, 40, .9); }

.redit__body { overflow-y: auto; padding: 14px 18px 18px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255, 170, 90, .3) transparent; }
.redit__slothead { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 10px; }
.redit__slothead b { font: 900 17px/1 var(--f-display); font-variation-settings: "wdth" 75; text-transform: uppercase; color: #fff3e6; }
.redit__slothead span { color: rgba(255, 228, 205, .5); font: 600 11px var(--f-ui); letter-spacing: .08em; text-transform: uppercase; }
.redit__needs { margin: -2px 0 12px; padding: 8px 11px; border-radius: 10px; background: rgba(255, 138, 31, .1); border: 1px solid rgba(255, 150, 60, .22); color: rgba(255, 220, 190, .85); font: 500 12px/1.4 var(--f-ui); }
.redit__empty { margin: 30px 0; text-align: center; color: rgba(255, 228, 205, .55); font: 500 13px var(--f-ui); }
.rgroup { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 10px; font: 900 14px/1 var(--f-display); font-variation-settings: "wdth" 75; text-transform: uppercase; letter-spacing: .03em; color: #fff3e6; }
.rgroup:first-child { margin-top: 0; }
.rgroup em { font: 600 11px var(--f-ui); font-style: normal; color: rgba(255, 228, 205, .45); }

.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.ritem { position: relative; display: grid; align-content: start; gap: 5px; padding: 6px 6px 8px; border-radius: 14px; text-align: left; background: rgba(255, 255, 255, .025); box-shadow: inset 0 0 0 1px rgba(255, 190, 120, .12); transition: transform .3s var(--ease), box-shadow .3s, background .3s; }
.ritem:hover:not(:disabled) { transform: translateY(-3px); background: rgba(255, 170, 90, .06); box-shadow: inset 0 0 0 1px rgba(255, 190, 120, .3), 0 14px 26px -16px rgba(0, 0, 0, .95); }
.ritem:active:not(:disabled) { transform: translateY(-1px) scale(.98); }
.ritem__pic { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #1a0c06; }
.ritem__pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.ritem:hover .ritem__pic img { transform: scale(1.05); }
.ritem__n { position: absolute; right: 6px; bottom: 6px; padding: 3px 7px; border-radius: 999px; background: rgba(12, 5, 2, .82); border: 1px solid rgba(255, 190, 120, .3); color: #ffe3b8; font: 800 10.5px/1 var(--f-ui); letter-spacing: .04em; }
.ritem__name { font: 700 11.5px/1.2 var(--f-ui); color: #fff1e2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.4em; }
.ritem__tag { font: 600 9.5px/1.2 var(--f-ui); letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 220, 190, .5); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ritem.is-eq { background: linear-gradient(180deg, rgba(255, 190, 90, .14), rgba(255, 140, 40, .05)); box-shadow: inset 0 0 0 2px var(--gold), 0 0 24px -10px rgba(255, 170, 60, .9); }
.ritem.is-eq .ritem__tag { color: var(--gold); }
.ritem.is-eq::before { content: ""; position: absolute; z-index: 1; top: 11px; left: 11px; width: 20px; height: 20px; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c0b02' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; box-shadow: 0 2px 8px rgba(0, 0, 0, .6); animation: eq-pop .4s var(--ease) both; }
@keyframes eq-pop { from { transform: scale(0); } }
.ritem.is-locked { opacity: .42; cursor: not-allowed; }
.ritem--empty .ritem__pic { display: grid; place-items: center; background: repeating-linear-gradient(135deg, rgba(255, 190, 120, .05) 0 8px, transparent 8px 16px), #140904; box-shadow: inset 0 0 0 1px rgba(255, 190, 120, .16); }
.ritem--empty .ritem__pic i { width: 34%; aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(255, 200, 150, .4); position: relative; }
.ritem--empty .ritem__pic i::after { content: ""; position: absolute; left: 50%; top: -12%; bottom: -12%; width: 2px; margin-left: -1px; background: rgba(255, 200, 150, .4); transform: rotate(45deg); }
.ritem.is-ghost { pointer-events: none; }
.ritem.is-ghost .ritem__pic, .ritem.is-ghost .ritem__name { background: linear-gradient(90deg, rgba(255, 190, 120, .05), rgba(255, 190, 120, .13), rgba(255, 190, 120, .05)) 0 0 / 200% 100%; animation: ghost 1.3s linear infinite; border-radius: 8px; }
.ritem.is-ghost .ritem__name { height: 12px; min-height: 0; width: 70%; }
@keyframes ghost { to { background-position: -200% 0; } }

.redit__foot { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px 14px 18px; border-top: 1px solid rgba(255, 180, 100, .12); background: linear-gradient(180deg, rgba(20, 8, 4, .2), rgba(10, 4, 2, .6)); }
.redit__status { min-width: 0; color: rgba(255, 228, 205, .62); font: 600 11.5px/1.3 var(--f-ui); }
.redit__acts { display: flex; gap: 6px; flex: none; }
.redit__ghost { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 11px; border: 1px solid rgba(255, 200, 150, .2); color: #fff1e2; font: 700 10.5px var(--f-ui); letter-spacing: .08em; text-transform: uppercase; transition: border-color .2s, background .2s, opacity .2s; }
.redit__ghost:hover:not(:disabled) { border-color: var(--neon); background: rgba(255, 138, 31, .1); }
.redit__ghost:disabled { opacity: .35; }
.redit__ghost.is-warn { border-color: rgba(255, 110, 80, .45); color: #ffc2b0; }
.redit__save { position: relative; overflow: hidden; height: 38px; padding: 0 18px; border-radius: 11px; color: #1c0b02; font: 800 11px var(--f-ui); letter-spacing: .1em; text-transform: uppercase; background: linear-gradient(180deg, #ffe0a8, #ffb24a 50%, #ff7a12); box-shadow: 0 8px 20px -10px rgba(255, 120, 20, .9); transition: filter .2s, opacity .25s, transform .2s var(--ease); }
.redit__save:disabled { opacity: .38; filter: grayscale(.4); box-shadow: none; }
.redit__save.is-ready::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .6) 50%, transparent 70%); transform: translateX(-120%); animation: save-shine 2.6s ease-in-out infinite 1s; }
.redit__save:not(:disabled):hover { filter: brightness(1.08); }
.redit__save:not(:disabled):active { transform: scale(.97); }
@keyframes save-shine { 45%, 100% { transform: translateX(120%); } }
.redit.is-busy .redit__body, .redit.is-busy .redit__rail { opacity: .55; pointer-events: none; transition: opacity .3s; }
.redit.is-busy .redit__save span::after { content: ""; display: inline-block; width: 11px; height: 11px; margin-left: 8px; vertical-align: -1px; border-radius: 50%; border: 2px solid rgba(28, 11, 2, .3); border-top-color: #1c0b02; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.redit__confirm { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px 10px 18px; background: linear-gradient(180deg, rgba(40, 14, 6, .98), rgba(22, 8, 4, .98)); animation: pop-in .2s var(--ease) both; }
.redit__confirm[hidden] { display: none; }
.redit__confirm p { margin: 0; color: #fff1e2; font: 600 12.5px/1.3 var(--f-ui); }
.redit__confirm div { display: flex; gap: 6px; flex: none; }

.rgate { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: radial-gradient(60% 60% at 50% 45%, rgba(40, 16, 6, .55), rgba(6, 2, 1, .8)); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; }
.rgate[hidden] { display: none; }
.rgate.is-in { opacity: 1; }
.rgate__box { position: relative; width: min(400px, 100%); display: grid; justify-items: center; gap: 10px; padding: 28px 22px 20px; border-radius: 24px; text-align: center; background: radial-gradient(90% 50% at 50% 0%, rgba(255, 150, 50, .16), transparent 70%), linear-gradient(170deg, rgba(44, 20, 9, .97), rgba(16, 7, 4, .98)); border: 1px solid rgba(255, 180, 100, .26); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .95), 0 0 70px -30px rgba(255, 120, 20, .8); transform: translateY(10px) scale(.98); transition: transform .4s var(--ease); }
.rgate.is-in .rgate__box { transform: none; }
.rgate__x { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; color: rgba(255, 228, 205, .7); }
.rgate__x:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.rsign { margin: 2px 0 6px; font: 900 clamp(30px, 8.5vw, 40px)/.9 var(--f-display); font-variation-settings: "wdth" 62; text-transform: uppercase; letter-spacing: .02em; color: #fff1dc; text-shadow: 0 0 2px #fff, 0 0 8px #ffb35a, 0 0 20px #ff8a1f, 0 0 42px rgba(255, 128, 20, .6), 0 0 80px rgba(255, 100, 10, .4); }
.rsign span { display: inline-block; }
.rsign i { font-style: normal; animation: rsign-flicker 7s linear infinite; }
@keyframes rsign-flicker { 0%, 61%, 64%, 66%, 100% { opacity: 1; } 62%, 65% { opacity: .25; text-shadow: none; } }
.rgate__key { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe6b5, #ffb24a 45%, #c65a0c); box-shadow: 0 0 34px -4px rgba(255, 150, 40, .8), inset 0 -4px 10px rgba(120, 40, 0, .5); animation: key-float 3.2s ease-in-out infinite; }
.rgate__key svg { width: 38px; height: 38px; fill: none; stroke: #2a1003; stroke-width: 3.4; stroke-linecap: round; transform: rotate(-35deg); }
@keyframes key-float { 50% { transform: translateY(-4px) rotate(-4deg); } }
.rgate__title { margin: 6px 0 0; font: 900 26px/1 var(--f-display); font-variation-settings: "wdth" 70; text-transform: uppercase; color: #fff3e6; }
.rgate__text { margin: 0; max-width: 32ch; color: rgba(255, 232, 214, .78); font: 500 14px/1.5 var(--f-ui); }
.rgate__text b { color: var(--neon-hot); font-weight: 700; }
.rgate__list { width: 100%; display: grid; gap: 8px; margin-top: 8px; }
.rgate__row { display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 14px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 190, 120, .16); color: #fff1e2; font: 700 14px var(--f-ui); text-align: left; transition: border-color .2s, background .2s, transform .2s var(--ease); }
.rgate__row:hover { border-color: var(--neon); background: rgba(255, 138, 31, .08); transform: translateY(-1px); }
.rgate__row img { width: 32px; height: 32px; border-radius: 9px; object-fit: contain; }
.rgate__row span { flex: 1; }
.rgate__row em { font: 700 10px var(--f-ui); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--neon-hot); }
.rgate__row.is-off { opacity: .6; }
.rgate__row.is-off em { color: rgba(255, 228, 205, .6); }
.rgate__row.is-plain { justify-content: center; height: 44px; color: rgba(255, 228, 205, .7); font-size: 12px; }
.rgate__row.is-busy { pointer-events: none; opacity: .5; }
.rgate__note { margin: 2px 0 0; min-height: 1.2em; color: var(--neon-hot); font: 600 12.5px/1.4 var(--f-ui); }
.rgate__foot { margin: 0; color: rgba(255, 228, 205, .45); font: 500 11.5px/1.5 var(--f-ui); max-width: 34ch; }

.rtoast { position: fixed; z-index: 70; left: 50%; bottom: max(26px, calc(env(safe-area-inset-bottom) + 18px)); max-width: min(460px, calc(100vw - 32px)); margin: 0; padding: 12px 18px; border-radius: 14px; background: linear-gradient(170deg, rgba(44, 20, 9, .96), rgba(18, 8, 4, .97)); border: 1px solid rgba(255, 180, 100, .3); box-shadow: 0 20px 50px -18px rgba(0, 0, 0, .95); color: #fff1e2; font: 600 13px/1.4 var(--f-ui); text-align: center; opacity: 0; transform: translate(-50%, 12px); transition: opacity .3s, transform .4s var(--ease); pointer-events: none; }
.rtoast[hidden] { display: none; }
.rtoast.is-in { opacity: 1; transform: translate(-50%, 0); }
.rtoast.is-bad { border-color: rgba(255, 110, 80, .5); color: #ffd9cc; }
.is-editing .rtoast { bottom: max(26px, calc(env(safe-area-inset-bottom) + 18px)); left: calc((100vw - min(580px, 46vw)) / 2); }

.rsaved { position: fixed; z-index: 65; left: 50%; top: 22%; display: grid; justify-items: center; gap: 8px; padding: 22px 34px 20px; border-radius: 22px; text-align: center; pointer-events: none; background: radial-gradient(80% 90% at 50% 0%, rgba(255, 170, 60, .3), transparent 70%), linear-gradient(170deg, rgba(48, 22, 8, .92), rgba(18, 8, 4, .94)); border: 1px solid rgba(255, 200, 120, .45); box-shadow: 0 30px 80px -24px rgba(0, 0, 0, .95), 0 0 80px -20px rgba(255, 150, 40, .9); opacity: 0; transform: translate(-50%, 10px) scale(.94); transition: opacity .4s, transform .6s var(--ease); }
.rsaved[hidden] { display: none; }
.rsaved.is-in { opacity: 1; transform: translate(-50%, 0) scale(1); }
.rsaved b { font: 900 34px/1 var(--f-display); font-variation-settings: "wdth" 68; text-transform: uppercase; letter-spacing: .02em; background: linear-gradient(180deg, #fff6dc, #ffcf7a 45%, #ff9a2a); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 16px rgba(255, 160, 50, .6)); }
.rsaved span { max-width: 30ch; color: rgba(255, 232, 214, .85); font: 500 13.5px/1.45 var(--f-ui); }
.is-editing .rsaved { left: calc((100vw - min(580px, 46vw)) / 2); }

@media (max-width: 760px) {
  .redit { top: auto; left: 0; right: 0; bottom: 0; width: auto; height: min(62vh, 580px); border-radius: 24px 24px 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom); transform: translateY(30px); transition: opacity .35s ease, transform .5s var(--ease), height .45s var(--ease); }
  .redit.is-in { transform: none; }
  .redit.is-mini { height: calc(186px + env(safe-area-inset-bottom)); }
  .redit.is-all { width: auto; height: calc(100vh - max(70px, env(safe-area-inset-top) + 64px)); height: calc(100dvh - max(70px, env(safe-area-inset-top) + 64px)); }
  .redit.is-all .rgrid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
  .redit.is-all .redit__body { padding: 12px 16px 16px; }
  .redit.is-mini .redit__body, .redit.is-mini .redit__tabs { display: none; }
  .redit { grid-template-rows: auto auto auto auto minmax(0, 1fr) auto; }
  .redit.is-mini { grid-template-rows: auto auto auto auto; }
  .redit.is-mini.is-all .redit__rail { display: flex; }
  .redit__grab { display: grid; place-items: center; height: 22px; margin-bottom: -8px; touch-action: none; }
  .redit__grab i { width: 44px; height: 5px; border-radius: 3px; background: rgba(255, 210, 170, .35); }
  .redit__head { padding: 8px 16px 10px; }
  .redit__title { font-size: 20px; }
  .redit__acct { display: none; }
  .redit__x { width: 34px; height: 34px; }
  .redit__tabs { margin: 0 16px 10px; }
  .redit__rail { padding: 2px 16px 12px; }
  .rspot { width: 62px; }
  .rspot__pic { width: 52px; height: 52px; border-radius: 13px; }
  .redit__body { padding: 12px 16px 16px; }
  .rgrid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
  .redit__rail { min-height: 84px; }
  .ritem__name { font-size: 11px; }
  .redit__foot { padding: 10px 12px 12px 16px; }
  .redit__status { font-size: 11px; }
  .redit__ghost { height: 38px; padding: 0 10px; }
  .redit__ghost#editUndo span { display: none; }
  .redit__save { padding: 0 14px; }
  .is-editing .rtoast, .is-editing .rsaved { left: 50%; }
  .is-editing .rtoast { bottom: auto; top: max(76px, calc(env(safe-area-inset-top) + 66px)); }
  .rsaved { top: 16%; padding: 18px 24px 16px; }
  .rsaved b { font-size: 28px; }
  .rbtn--edit span { display: none; }
  .rbtn--edit { width: 42px; padding: 0; }
  .is-editing .rhint { bottom: auto; top: max(120px, calc(env(safe-area-inset-top) + 112px)); }
}
@media (max-width: 380px) {
  .redit__ghost#editOrig { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .redit, .rgate__box, .rsaved, .rtoast { transition: opacity .2s; transform: none; }
  .rbtn--edit.is-mine, .rgate__key, .rsign i, .redit__save.is-ready::after, .ritem.is-ghost .ritem__pic, .ritem.is-ghost .ritem__name { animation: none; }
}
.rgate__box { background: radial-gradient(90% 55% at 50% 0%, rgba(255, 120, 20, .2), transparent 70%), linear-gradient(172deg, #1d0e07, #0c0503 80%); border: 1px solid rgba(255, 150, 60, .32); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .95), 0 0 80px -30px rgba(255, 120, 20, .9), inset 0 1px 0 rgba(255, 210, 160, .08); padding: 30px 22px 20px; overflow: hidden; }
.rgate__box::before { content: ""; position: absolute; left: 12%; right: 12%; top: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, #ffb35a 30%, #fff1dc 50%, #ffb35a 70%, transparent); box-shadow: 0 0 12px #ff8a1f, 0 0 26px rgba(255, 128, 20, .7); }
.rgate__title { margin: 0; font: 800 17px/1.2 var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 236, 215, .95); }
.rgate__text { font-size: 13.5px; color: rgba(255, 228, 205, .7); }
.rgate__row { height: 60px; gap: 14px; border-radius: 16px; background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01)); border-color: rgba(255, 170, 90, .16); font-size: 15px; }
.rgate__row img { width: 38px; height: 38px; padding: 5px; border-radius: 11px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.rgate__row em { padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255, 170, 90, .4); background: rgba(255, 138, 31, .08); letter-spacing: .14em; }
.rgate__row:hover em { background: rgba(255, 138, 31, .2); color: #fff1dc; }
.rgate__row.is-off em { border-color: rgba(255, 228, 205, .2); background: none; }
.rgate__note { color: rgba(255, 196, 130, .9); font-weight: 500; }

.rquip { position: fixed; left: 0; top: 0; z-index: 28; margin: 0; pointer-events: none; will-change: transform; }
.rquip[hidden] { display: none; }
.rquip { font: 800 14px/1.25 var(--f-ui); color: #1c0b02; white-space: normal; text-align: center; width: max-content; max-width: min(320px, calc(100vw - 28px)); }
.rquip.is-in { animation: quip-life 2.3s var(--ease) both; }
.rquip { padding: 9px 14px; border-radius: 14px; background: linear-gradient(180deg, #fff6e4, #ffe0a8); box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .9), 0 0 24px -6px rgba(255, 170, 60, .7); translate: -50% -100%; }
.rquip::after { content: ""; position: absolute; left: calc(50% + var(--tail, 0px)); bottom: -6px; width: 12px; height: 12px; margin-left: -6px; background: #ffe0a8; transform: rotate(45deg); border-radius: 2px; }
.rquip.is-under { translate: -50% 0; }
.rquip.is-under::after { bottom: auto; top: -6px; background: #fff6e4; }
@keyframes quip-life { 0% { opacity: 0; scale: .6; margin-top: 8px; } 12% { opacity: 1; scale: 1.06; margin-top: 0; } 20% { scale: 1; } 80% { opacity: 1; margin-top: -10px; } 100% { opacity: 0; margin-top: -22px; } }
@media (prefers-reduced-motion: reduce) { .rquip.is-in { animation: none; } }

.rpop.is-text .rpop__head { grid-template-columns: minmax(0, 1fr); }
.rpop.is-text .rpop__img { display: none; }
