.royal-dedicated {
  --rs-ink:#020e20; --rs-panel:#051a30; --rs-line:#2476a6; --rs-gold:#ffd777; --rs-soft:#c5d8ec;
}
.royal-dedicated .royal-atmosphere { opacity:.45; }
.royal-dedicated .dashboard-header { position:relative; z-index:3; }
#royal-sections { position:relative; width:min(100%,1900px); margin-inline:auto; padding:clamp(.55rem,1.25vw,1.35rem) clamp(.7rem,2.6vw,2.8rem) 0;
  min-width:0; color:#f5f8ff; font-family:Inter,system-ui,sans-serif; }
#royal-sections *,.rs-dialog * { box-sizing:border-box; }
#royal-sections :is(h1,h2,h3,p),.rs-dialog :is(h2,h3,p) { margin:0; }
#royal-sections :is(button,input,select),.rs-dialog :is(button,input,select) { font:inherit; }
#royal-sections :focus-visible,.rs-dialog :focus-visible { outline:2px solid #82e5ff; outline-offset:2px; }
.rs-icon { width:1.18em; height:1.18em; flex:none; vertical-align:-.2em; }
.rs-hero { position:relative; display:grid; align-items:center; min-height:clamp(98px,14svh,158px); isolation:isolate; overflow:hidden;
  border:1px solid #248bbe; border-radius:1.45rem; background:radial-gradient(ellipse at 72% 112%,#105c9d 0,transparent 52%),
  linear-gradient(115deg,#0c3552,#04132a 43%,#04234d 80%,#061324); box-shadow:inset 0 0 1.2rem #2bacff24,0 .4rem 1.5rem #0006; }
.rs-hero::after { content:''; position:absolute; inset:0; pointer-events:none; z-index:-1;
  background:url('/assets/sections/ribbon.png') right center/100% 105% no-repeat; opacity:.65; }
.rs-hero-text { position:relative; z-index:1; padding:.36rem clamp(.8rem,2.7vw,3rem); }
.rs-hero h1 { font:italic 800 clamp(2rem,4.15vw,4.22rem)/1 Georgia,serif; white-space:normal; letter-spacing:-.045em;
  color:#ffe2a0; text-shadow:0 2px 0 #764608,0 0 1.4rem #e1a63248,0 3px 12px #000; }
.rs-hero h1 .rs-icon { color:#ffd36b; width:.76em; height:.76em; margin-right:.26em; }
.rs-hero p { font-size:clamp(.73rem,1.35vw,1.23rem); color:#f3f6ff; line-height:1.25; text-shadow:0 2px 8px #000; }
.rs-hero-art,.rs-hero-left { position:absolute; z-index:0; pointer-events:none; object-fit:contain; width:min(43%,570px); height:125%; right:4%; bottom:-15%; filter:drop-shadow(0 1rem .8rem #000a); }
.rs-hero-left { left:0; right:auto; width:25%; height:120%; bottom:-16%; }
.rs-hero-text .rs-crown { width:clamp(1.4rem,4.8vw,4.9rem); height:1.45rem; object-fit:contain; margin:auto; display:block; }
.rs-ribbon { position:absolute; inset:auto 0 0; height:2px; background:linear-gradient(90deg,transparent,#21a9fb,#ffdf83,#da8919,transparent); overflow:hidden; }
.rs-ribbon::after,.rs-footer::before { content:''; display:block; width:26%; height:100%; background:linear-gradient(90deg,transparent,#fff3c1,transparent); animation:rs-sweep 9s ease-in-out infinite; }
@keyframes rs-sweep { from { transform:translateX(-110%); } to { transform:translateX(490%); } }
[data-page=tournaments] .rs-hero,[data-page=rooms] .rs-hero,[data-page=ranking] .rs-hero { border-color:#c9973f; }
[data-page=tournaments] .rs-hero-text,[data-page=ranking] .rs-hero-text { text-align:center; }
[data-page=tournaments] .rs-hero-art,[data-page=ranking] .rs-hero-art { width:24%; height:115%; right:0; }
[data-page=tournaments] .rs-hero::before { content:''; position:absolute; inset:0 auto 0 0; width:26%; background:url('/assets/decorations/royal-aces.webp') center/contain no-repeat; opacity:.85; }
.rs-toolbar { display:flex; align-items:center; gap:.75rem; margin:.65rem 0; min-width:0; }
.rs-toolbar:empty,.rs-status:empty { display:none; }
[data-page=rooms] .rs-toolbar { display:grid; gap:.48rem; }
.rs-toolbar-line,.rs-tabs,.rs-card-actions,.rs-detail-meta,.rs-pager { display:flex; align-items:center; flex-wrap:wrap; gap:.45rem; }
.rs-toolbar-line { justify-content:space-between; }
.rs-tabs { flex:1 1 auto; }
.rs-tabs .rs-button { flex:1 1 auto; }
.rs-room-filters { justify-content:flex-start; }
.rs-room-filters .rs-search { margin-inline-start:auto; }
.rs-button { border:1px solid #2e87bb; border-radius:1.2rem; display:inline-flex; align-items:center; justify-content:center; gap:.38em; min-height:2.05rem;
  padding:.24rem .84rem; line-height:1.12; font-weight:720!important; color:#f5f8ff; cursor:pointer; background:linear-gradient(#113451,#061934 56%,#0a2945);
  box-shadow:inset 0 1px #abcff22c; transition:border-color .16s,box-shadow .16s,filter .16s; }
.rs-button:hover:not(:disabled) { border-color:#9fddff; box-shadow:0 0 .7rem #3ba9ff77,inset 0 1px #a7deff80; filter:brightness(1.14); }
.rs-button:disabled { opacity:.52; cursor:default; }
.rs-blue { border-color:#00bcfd; box-shadow:inset 0 0 .6rem #33acff,0 0 .55rem #0095ff55; background:linear-gradient(#159cf3,#0a55bd 46%,#001a66 56%,#07369e); }
.rs-gold { color:#241403; border-color:#ffe197; background:linear-gradient(#fff5c9,#ffce53 33%,#c48610 60%,#ffbe39); box-shadow:inset 0 0 .42rem #fff8ce,0 0 .65rem #fbbb3d62; }
.rs-gold:hover:not(:disabled) { border-color:#fff3bf; box-shadow:0 0 .75rem #fdd5749f,inset 0 0 .4rem #fff1ba; }
.rs-search,.rs-field,.rs-check { display:flex; align-items:center; gap:.4rem; font-size:.83rem; }
.rs-search { color:#cce2f6; border:1px solid #326994; border-radius:1.4rem; padding:0 .7rem; min-width:12rem; flex:0 1 27rem;
  background:linear-gradient(#071425,#081f38); }
.rs-search input { background:transparent; border:0; color:#fff; min-width:0; width:100%; min-height:2rem; outline-offset:-1px; }
.rs-field select,.rs-dialog input { color:#f5f8ff; background:#091e36; border:1px solid #407799; border-radius:.65rem; padding:.35rem .65rem; max-width:100%; }
.rs-check input { accent-color:#ddaa4a; }
.rs-status { font-size:.89rem; color:#ffdd94; padding:.35rem; }
.rs-panel { min-width:0; position:relative; border:1px solid #2b83ab; border-radius:1.03rem; padding:.65rem .78rem;
  background:radial-gradient(ellipse at 0 0,#104266 0,transparent 40%),linear-gradient(143deg,#051831,#041327 56%,#082941);
  box-shadow:inset 0 1px #9fe4ff29,0 .4rem .9rem #0005; }
.rs-panel h2 { display:flex; align-items:center; gap:.35rem; color:#ffdc87; font-size:clamp(.9rem,1.2vw,1.3rem); line-height:1.16; padding-bottom:.44rem;
  border-bottom:1px solid #1e4866; }
.rs-panel h3 { font-size:.95rem; color:#f5dab0; padding:.44rem 0 .25rem; overflow-wrap:anywhere; }
.rs-game-grid,.rs-three,.rs-tournament-layout,.rs-tournament-grid,.rs-room-layout,.rs-ranking-layout { display:grid; gap:.65rem; min-width:0; align-items:start; }
.rs-game-grid { grid-template-columns:repeat(4,minmax(0,1fr)); align-items:stretch; }
.rs-game-grid > .rs-empty,.rs-tournament-grid > .rs-empty { grid-column:1/-1; }
.rs-three { grid-template-columns:repeat(3,minmax(0,1fr)); align-items:stretch; margin-top:.75rem; }
.rs-three > .rs-panel { min-height:10.25rem; }
.rs-game-card { display:flex; align-items:center; flex-direction:column; gap:.28rem; padding:.4rem .55rem .65rem; text-align:center;
  background:radial-gradient(ellipse at 25% 0,#143f62,transparent 53%),linear-gradient(135deg,#05152d,#062640); }
.rs-game-card .rs-game-cover { width:100%; height:clamp(103px,23svh,240px); object-fit:contain; border-radius:.68rem .68rem .9rem .9rem; filter:saturate(1.03); }
.rs-game-card .rs-game-name { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); padding:0; }
.rs-description { color:#eef5ff; font-size:.96rem; line-height:1.25; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; min-height:2.4em; }
.rs-game-meta { display:flex; align-items:center; gap:.4rem; font-size:.84rem; color:#d1e5f7; flex-wrap:wrap; justify-content:center; }
.rs-game-meta span { border:1px solid #154368; border-radius:1rem; padding:.12rem .4rem; }
.rs-game-meta .rs-icon { color:#ffd273; margin-right:.18rem; }
.rs-game-card .rs-blue { width:min(88%,14.8rem); min-height:2.3rem; margin-top:.22rem; }
.rs-list-row { display:flex; align-items:center; justify-content:space-between; gap:.45rem; text-align:left; font-size:.92rem; padding:.26rem 0; min-width:0; }
.rs-list-row + .rs-list-row,.rs-list-button + .rs-list-button { border-top:1px solid #153a58; }
.rs-list-button { width:100%; justify-content:flex-start; background:none; border:0; border-bottom:1px solid #194365; border-radius:.3rem; box-shadow:none; padding:.26rem; min-height:1.85rem; text-align:start; }
.rs-duo { display:grid; gap:.1rem; min-width:0; }
.rs-duo strong,.rs-duo small { min-width:0; overflow-wrap:anywhere; }
.rs-duo small,.rs-muted { color:#b9cde2; }
.rs-mini-medal { width:1.5rem; height:1.5rem; object-fit:contain; }
.rs-game-pill,.rs-person { display:inline-flex; align-items:center; gap:.35em; font-weight:700; white-space:nowrap; }
.rs-game-pill img { width:2.35rem; height:1.32rem; object-fit:cover; border-radius:.35rem; }
.rs-diamond { display:inline-block; width:1.15em; height:1.14em; object-fit:contain; vertical-align:-.18em; margin-right:.21em; }
.rs-state { display:inline-flex; align-items:center; padding:.12rem .46rem; border-radius:1rem; font-size:.73rem; font-weight:730;
  border:1px solid #43799c; background:#082138; color:#cfeafa; white-space:nowrap; }
.rs-state[data-state=waiting],.rs-state[data-state=running],.rs-state[data-state=open] { border-color:#2a9652; color:#aef7a7; background:#0b302d; }
.rs-state[data-state=finished] { border-color:#ab863e; color:#ffe199; }
.rs-state[data-state=rejected],.rs-state[data-state=cancelled],.rs-state[data-state=closed] { color:#d3c4af; }
.rs-empty { display:grid; place-items:center; align-content:center; gap:.18rem; min-height:4rem; padding:.2rem .4rem; color:#cfdef1; text-align:center; font-size:.82rem; }
.rs-empty > img { width:4.3rem; height:2.95rem; object-fit:contain; filter:drop-shadow(0 .14rem .48rem #d2a24c45); }
.rs-game-grid>.rs-empty,.rs-tournament-grid>.rs-empty { min-height:8rem; border:1px solid #194469; border-radius:1rem; background:radial-gradient(ellipse,#12355b,transparent); }
.rs-game-grid>.rs-empty>img,.rs-tournament-grid>.rs-empty>img { width:8rem; height:5rem; }
.rs-tournament-layout { grid-template-columns:minmax(0,3.3fr) minmax(205px,1fr); margin-bottom:.65rem; }
.rs-tournament-grid { grid-template-columns:repeat(4,minmax(0,1fr)); align-items:stretch; }
.rs-tournament-card,.rs-tournament-layout .rs-panel,.rs-room-layout .rs-panel,.rs-ranking-layout .rs-panel {
  border-color:#c19248; box-shadow:inset 0 1px #fff0aa74,inset 0 -1px #edc3696b,0 .5rem 1rem #0007,0 0 .6rem #d89a2218; }
.rs-tournament-card h2 { font-size:1rem; }
.rs-tour-cover { width:100%; height:clamp(75px,15.5svh,165px); object-fit:contain; border-radius:.55rem; }
.rs-tournament-card .rs-card-actions { margin-top:.38rem; }
.rs-card-actions .rs-button { min-height:1.72rem; padding:.25rem .52rem; font-size:.81rem!important; }
.rs-side { display:grid; gap:.55rem; min-width:0; }
.rs-side .rs-panel > :not(h2) { margin-top:.28rem; }
.rs-metric { display:flex; align-items:center; justify-content:space-between; gap:.4rem; border-bottom:1px solid #154160; padding:.22rem .1rem; font-size:.88rem; color:#dbe9f8; min-width:0; }
.rs-metric > strong { text-align:right; overflow-wrap:anywhere; color:#ffe6a5; }
.rs-room-layout { grid-template-columns:minmax(0,3.2fr) minmax(190px,1fr); }
.rs-table-wrap { overflow-x:auto; scrollbar-color:#31597c #05162b; min-width:0; }
.rs-table-wrap table { border-collapse:collapse; white-space:nowrap; width:100%; font-size:.97rem; line-height:1.2; font-variant-numeric:tabular-nums; }
.rs-table-wrap th,.rs-table-wrap td { border-bottom:1px solid #245071; text-align:left; padding:.29rem .43rem; }
.rs-table-wrap th { color:#ffe49d; font-size:.84rem; background:linear-gradient(#1639555c,#061c37); }
.rs-table-wrap tbody tr:nth-child(even) { background:#0b2946ac; }
.rs-table-wrap tbody tr:hover,.rs-current { background:#144269!important; }
.rs-current td { border-top:1px solid #e4b053; border-bottom:1px solid #e4b053; }
.rs-current td:first-child { border-left:1px solid #e4b053; }
.rs-current td:last-child { border-right:1px solid #e4b053; }
.rs-table-wrap .rs-button { padding:.19rem .54rem; min-height:1.72rem; font-size:.88rem!important; white-space:nowrap; }
.rs-button.rs-text-button,.rs-button.rs-star { background:none; box-shadow:none; border-color:transparent; color:#f4f9ff; text-align:left; }
.rs-button.rs-text-button:hover { text-decoration:underline; box-shadow:none; }
.rs-button.rs-star { color:#ffdb78; font-size:1rem!important; padding:.05rem .36rem; }
.rs-button.rs-star[aria-pressed=true] path { fill:currentColor; }
.rs-ranking-filters .rs-game-pill img { width:1.35rem; height:.78rem; }
.rs-avatar { width:2rem; height:2rem; border-radius:50%; border:1px solid #e8b655; object-fit:cover; background:#071e39; }
.rs-players { display:grid; grid-template-columns:repeat(auto-fit,minmax(3.3rem,1fr)); gap:.32rem; max-height:11rem; overflow:auto; }
.rs-players>div { position:relative; display:grid; justify-items:center; align-content:start; gap:.15rem; padding:.22rem .1rem; font-size:.71rem; overflow-wrap:anywhere; }
.rs-players .rs-crown { position:absolute; top:-.09rem; width:1rem; right:20%; }
.rs-players small { color:#ffe69c; }
.rs-pager { margin-top:.36rem; justify-content:center; font-size:.81rem; color:#d5e5f1; }
.rs-pager .rs-button { min-height:1.52rem; padding:.18rem .54rem; }
.rs-ranking-layout { grid-template-columns:minmax(145px,1fr) minmax(0,3.55fr) minmax(155px,1.04fr); margin-top:.55rem; }
.rs-ranking-filters .rs-tabs { display:grid; gap:.3rem; }
.rs-ranking-filters .rs-button { justify-content:flex-start; min-height:1.53rem; padding:.19rem .53rem; font-size:.78rem!important; }
.rs-ranking-center { min-width:0; }
.rs-ranking-center td:nth-child(4) { color:#ffdc81; font-weight:800; }
.rs-ranking-center td:last-child { color:#b6eea4; font-weight:750; }
.rs-podium { display:grid; align-items:end; grid-template-columns:1fr 1.23fr 1fr; margin:auto; padding-inline:.35rem; max-width:53rem; }
.rs-podium-seat { position:relative; text-align:center; min-width:0; isolation:isolate; color:#ffdd7a; }
.rs-podium-seat[data-medal=silver] { color:#dcecff; }
.rs-podium-seat[data-medal=bronze] { color:#ffb878; }
.rs-podium-seat[data-medal=gold]::before { content:''; position:absolute; inset:-35% -12% -5%; pointer-events:none; z-index:-1; background:radial-gradient(ellipse,#cf95183d,transparent 63%); animation:rs-pulse 6s ease-in-out infinite alternate; }
@keyframes rs-pulse { from { opacity:.4; } to { opacity:1; } }
.rs-podium-player { display:grid; position:relative; justify-items:center; align-content:end; min-height:4.9rem; padding-top:.5rem; }
.rs-podium-player .rs-avatar { width:clamp(2.3rem,5vw,5.5rem); height:clamp(2.3rem,5vw,5.5rem); border:2px solid currentColor; z-index:1; }
.rs-podium-player .rs-crown { position:absolute; width:2.4rem; top:-.54rem; z-index:2; }
.rs-podium-player .rs-laurel { position:absolute; width:clamp(4rem,8.8vw,10rem); height:clamp(4.7rem,8.6vw,9.8rem); object-fit:contain; top:-.25rem; z-index:0; opacity:.94; filter:drop-shadow(0 0 .28rem currentColor); }
.rs-podium-player .rs-text-button { min-height:1.48rem; font-weight:800; padding:0 .2rem; z-index:1; max-width:100%; overflow:hidden; }
.rs-podium-player small { color:#f7ecd0; font-weight:700; }
.rs-podium-base { width:100%; height:clamp(1.3rem,3.6vw,3.2rem); object-fit:fill; display:block; }
.rs-rank-number { position:absolute; inset:auto 0 .22rem; font-weight:900; color:#071323; text-shadow:0 1px #fff9; }
.rs-rank-table { padding:.22rem .4rem .3rem; }
.rs-rank-table .rs-avatar { width:1.4rem; height:1.4rem; }
.rs-rank-table td { padding-block:.12rem; }
.rs-my-profile { display:grid; justify-items:center; gap:.2rem; }
.rs-my-profile img { width:3.5rem; height:3.5rem; border:2px solid #ffcb58; box-shadow:0 0 .8rem #c48a44; }
.rs-total { display:block; color:#ffdb77; text-align:center; font:800 2rem/1 Georgia,serif; }
.rs-total-art { width:4.4rem; height:2.6rem; object-fit:contain; margin:auto; display:block; }
.rs-footer { position:relative; height:1px; background:linear-gradient(90deg,transparent,#2a8cc3,#ffd76c,#2875a3,transparent); margin:1rem .6rem .6rem; }
.rs-footer img { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:1.3rem; height:1.3rem; }
.rs-dialog { --rs-gold:#ffd777; color:#eef6ff; background:radial-gradient(ellipse at 50% 0,#123d60,#061829 70%);
  border:1px solid #d7a54c; border-radius:1rem; max-width:min(90vw,950px); min-width:min(88vw,440px); max-height:86svh; overflow:auto;
  box-shadow:0 1rem 4rem #000c,inset 0 0 .8rem #26a2df33; padding:1rem; }
.rs-dialog::backdrop { background:#03101ac9; backdrop-filter:blur(3px); }
.rs-dialog header { display:flex; justify-content:space-between; align-items:center; gap:.5rem; border-bottom:1px solid #664c31; padding-bottom:.5rem; }
.rs-dialog h2 { color:#fee09b; font:700 1.45rem Georgia,serif; }
.rs-dialog h3 { padding:.54rem 0 .28rem; color:#ffdf9c; }
.rs-dialog-content { padding-top:.65rem; }
.rs-dialog form,.rs-choice-grid { display:flex; gap:.55rem; flex-wrap:wrap; align-items:center; }
.rs-choice-grid > button { flex:1 1 42%; }
.rs-choice-grid span { display:grid; justify-items:center; }
.rs-choice-grid span img { width:min(31vw,13rem); height:6rem; object-fit:cover; border-radius:.55rem; margin-bottom:.2rem; }
.rs-preline { white-space:pre-wrap; overflow-wrap:anywhere; }
.rs-profile-modal { display:grid; gap:.35rem; }
.rs-profile-modal>.rs-avatar { width:5rem; height:5rem; }
.rs-error { color:#ffca9e; }
@media (min-width:1200px) and (max-height:840px) {
  #royal-sections { padding-top:.55rem; }
  .rs-hero { min-height:90px; }
  .rs-hero h1 { font-size:clamp(2rem,3.8vw,3.5rem); }
  .rs-toolbar { margin:.43rem 0; }
  .rs-game-card .rs-game-cover { height:22svh; }
  .rs-tournament-card .rs-tour-cover { height:14svh; }
  .rs-panel { padding:.42rem .55rem; }
  .rs-table-wrap th,.rs-table-wrap td { padding-block:.16rem; }
  .rs-podium-player .rs-avatar { width:3rem; height:3rem; }
  .rs-podium-base { height:2rem; }
}
@media (max-width:1130px) {
  .rs-tournament-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .rs-tournament-layout { grid-template-columns:minmax(0,3fr) minmax(170px,1fr); }
}
@media (max-width:760px) {
  #royal-sections { padding-inline:.55rem; }
  .rs-toolbar { display:grid; }
  .rs-toolbar-line { gap:.28rem; }
  .rs-toolbar-line>.rs-search { flex-basis:100%; margin:0; }
  .rs-hero-art,.rs-hero-left,[data-page=tournaments] .rs-hero::before { opacity:.46; }
  .rs-hero p { max-width:85%; }
  [data-page=tournaments] .rs-hero p,[data-page=ranking] .rs-hero p { margin:auto; }
  .rs-game-grid,.rs-tournament-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .rs-tournament-layout,.rs-room-layout,.rs-ranking-layout,.rs-three { grid-template-columns:minmax(0,1fr); }
  .rs-ranking-filters .rs-tabs { display:flex; }
  .rs-tournament-layout>.rs-side { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .rs-three > .rs-panel { min-height:0; }
  .rs-rank-table .rs-person .rs-avatar { display:none; }
  .rs-search { min-width:0; }
}
.royal-dedicated:is([data-effects=off],[data-interface-motion=off],[data-performance=on]) .rs-ribbon::after,
.royal-dedicated:is([data-effects=off],[data-interface-motion=off],[data-performance=on]) .rs-footer::before,
.royal-dedicated:is([data-effects=off],[data-interface-motion=off],[data-performance=on]) .rs-podium-seat[data-medal=gold]::before { animation:none; }
@media (prefers-reduced-motion:reduce) {
  .rs-ribbon::after,.rs-footer::before,.rs-podium-seat[data-medal=gold]::before { animation:none; }
  .rs-button { transition:none; }
}
