/* RYU v6.4.0: authenticated-member shelf backdrops, never public shelves or book effects.
   Scoped to #ryu-personal-root ONLY; base geometry and all interactions are preserved. */
/* A: walnut inlay with quiet gold glow. No width/height, position, transform or stacking modifications. */
#ryu-personal-root[data-ryu-shelf-theme=royal-walnut] .ryu-personal-grid .bookcase-frame {
 background:linear-gradient(105deg,#2b1c12,#573923 40%,#352015 82%,#241911);
 border-color:#50341e;box-shadow:0 25px 42px #0009,inset 0 0 0 1px #aa814e,inset 0 0 24px #100a08;
}
#ryu-personal-root[data-ryu-shelf-theme=royal-walnut] .ryu-personal-grid .bookcase-frame .shelf-unit,
#ryu-personal-root[data-ryu-shelf-theme=royal-walnut] .ryu-personal-grid .bookcase-frame.ryu-spotlight-active .shelf-unit.ryu-shelf-lit {
 background:radial-gradient(ellipse at 50% 84%,#cb955019,transparent 68%),repeating-linear-gradient(90deg,#0000000a 0px,#ffffff08 7px,#0000000b 17px),linear-gradient(135deg,#3d2619 0%,#59402a 45%,#392218 100%);
}
/* B: midnight navy archive with bronze light reflections. */
#ryu-personal-root[data-ryu-shelf-theme=midnight-archive] .ryu-personal-grid .bookcase-frame {
 background:linear-gradient(110deg,#101924,#283747 48%,#111b25);
 border-color:#283140;box-shadow:0 25px 42px #000b,inset 0 0 0 1px #997d55,inset 0 0 22px #080c12;
}
#ryu-personal-root[data-ryu-shelf-theme=midnight-archive] .ryu-personal-grid .bookcase-frame .shelf-unit,
#ryu-personal-root[data-ryu-shelf-theme=midnight-archive] .ryu-personal-grid .bookcase-frame.ryu-spotlight-active .shelf-unit.ryu-shelf-lit {
 background:radial-gradient(ellipse at 50% 83%,#c2a07417,transparent 72%),repeating-linear-gradient(90deg,#ffffff04 0px,#0a102008 10px,#0000000a 18px),linear-gradient(120deg,#121d2a,#293849 50%,#111d2c);
}
/* Keep shelf ledges and all spine/slot selection CSS untouched. Mobile menu must fit the viewport. */
@media(max-width:420px){#ryu-personal-root .ryu-shelf-theme-options{left:auto;right:0;transform:none;width:min(184px,calc(100vw - 34px));}}
@media(prefers-reduced-motion:reduce){#ryu-personal-root .ryu-shelf-theme-options button {transition:none}}

/* Theme selection lives exclusively in '나의 기록' > 프로필·배경 편집. */
.ryu-records-dialog .rr-shelf-backdrop-editor {border-top:1px solid #8d6e4d88;margin-top:28px;padding-top:23px}
.ryu-records-dialog .rr-shelf-backdrop-editor h4 {color:#f0d8ae;font-size:17px;margin:0 0 7px}
.ryu-records-dialog .rr-shelf-backdrop-editor p {color:#c7b293;font-size:13px;line-height:1.65}
.ryu-records-dialog .rr-shelf-backdrop-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0}
.ryu-records-dialog .rr-shelf-backdrop-option {display:flex;flex-direction:column;align-items:stretch;gap:5px;min-width:0;padding:10px;border:1px solid #897354;background:#231b1a;border-radius:9px;color:#e4d1b1;text-align:left;cursor:pointer;font:inherit}
.ryu-records-dialog .rr-shelf-backdrop-option strong {font-size:13px;font-weight:600}
.ryu-records-dialog .rr-shelf-backdrop-option small {font-size:11px;color:#b7a486}
.ryu-records-dialog .rr-shelf-backdrop-option.selected,.ryu-records-dialog .rr-shelf-backdrop-option[aria-pressed=true] {border:2px solid #eac38c;background:#3e2b23}
.ryu-records-dialog .rr-shelf-backdrop-option:focus-visible {outline:2px solid #f5d7a5;outline-offset:3px}
.ryu-records-dialog .rr-shelf-backdrop-option:disabled {opacity:.65;cursor:wait}
.ryu-records-dialog .rr-shelf-backdrop-swatch {display:block;min-height:68px;border-radius:5px;border:1px solid #9e8062;box-shadow:inset 0 0 14px #0006}
.ryu-records-dialog .rr-shelf-backdrop-classic .rr-shelf-backdrop-swatch {background:repeating-linear-gradient(90deg,#35251b 0 7px,#3c2a1c 7px 14px)}
.ryu-records-dialog .rr-shelf-backdrop-royal-walnut .rr-shelf-backdrop-swatch {background:radial-gradient(ellipse at 50% 90%,#ad82444a,transparent 65%),linear-gradient(120deg,#372016,#65452b,#241811)}
.ryu-records-dialog .rr-shelf-backdrop-midnight-archive .rr-shelf-backdrop-swatch {background:radial-gradient(ellipse at 50% 90%,#9b7d4c44,transparent 70%),linear-gradient(115deg,#0c1826,#334050,#121924)}
@media(max-width:560px){.ryu-records-dialog .rr-shelf-backdrop-grid{grid-template-columns:1fr}.ryu-records-dialog .rr-shelf-backdrop-option{display:grid;grid-template-columns:76px 1fr;align-items:center}.ryu-records-dialog .rr-shelf-backdrop-option small{grid-column:2}.ryu-records-dialog .rr-shelf-backdrop-swatch{grid-row:1 / span 2;min-height:53px}}
