/* Phase 5C — Royal Heritage cinematic UI. Additive styling: no rule-engine changes. */
:root{--rh-deep:#041b17;--rh-emerald:#0a3228;--rh-gold:#eac580;--rh-border:#967948}
[hidden]{display:none!important}
.royal-home-5c{background:radial-gradient(circle at 60% -20%,#1e604b 0%,transparent 45%),#041b17}
.royal-home-5c .site-header{position:relative;z-index:12;background:#031c17f2}.royal-home-5c .nav{max-width:1600px}.royal-home-5c .navlinks a{white-space:nowrap}
.royal-home-5c .rh-home-main{max-width:1700px;padding:0 22px 80px}
.rh-hero{position:relative;margin:0 auto 20px;border:1px solid #94733f;min-height:580px;overflow:hidden;background:linear-gradient(90deg,#041914,#09352b);box-shadow:0 20px 75px #0009;isolation:isolate}
.rh-hero-scene{position:absolute;inset:0;overflow:hidden;background:radial-gradient(ellipse at 68% 30%,#49735b80,#062019 75%)}
.rh-hero-scene:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#041813 0%,#041813e8 26%,#04181370 53%,transparent 95%),linear-gradient(0deg,#051913 0%,transparent 27%);pointer-events:none}
.rh-art{position:absolute;right:0;bottom:0;width:76%;height:100%;display:flex;align-items:end;justify-content:center;gap:0;opacity:.98}
.rh-player{height:104%;width:48%;position:relative;overflow:hidden;filter:drop-shadow(0 8px 22px #000e)}.rh-player img{width:100%;height:100%;object-fit:cover;object-position:center top;mask-image:linear-gradient(to bottom,black 72%,transparent 99%)}
.rh-player-left{transform:translate(8%,9%) rotate(-2deg);border-right:1px solid #d0a76270}.rh-player-right{transform:translate(-5%,9%) rotate(2deg)}.rh-player-right img{filter:brightness(.86)}
.rh-clash{z-index:1;position:absolute;top:32%;left:66%;transform:translate(-50%,-50%);color:#f4dba8;font:900 clamp(46px,7vw,100px) Georgia,serif;text-shadow:0 5px 16px #000,0 0 16px #e1b963}
.rh-hero-copy{position:relative;z-index:3;max-width:610px;padding:86px 48px 170px}.rh-hero-copy h1{font:700 clamp(43px,5.7vw,78px)/1.06 Georgia,serif;margin:25px 0;color:#fff6e4;text-shadow:0 3px 8px #0007}.rh-hero-copy h1 em{font-style:normal;color:#f4d48b}.rh-hero-copy p{max-width:510px;line-height:1.65;font-size:clamp(15px,1.5vw,19px);color:#e2e9df}
.rh-hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:29px}.rh-hero-actions .btn{font-size:15px}.rh-hero-caption{display:flex;gap:20px;margin-top:36px;color:#e3c688;font-size:12px;font-weight:800;letter-spacing:1px;flex-wrap:wrap}
.rh-slider-arrow{position:absolute;top:45%;z-index:5;width:43px;height:43px;padding:0;background:#071d19ad;border:1px solid var(--rh-gold);color:#fce9be;border-radius:50%;font-size:18px;display:grid;place-items:center}.rh-prev{left:9px}.rh-next{right:9px}
.rh-slider-bottom{position:absolute;z-index:4;right:24px;bottom:20px;width:min(710px,65%);display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.rh-thumb{position:relative;display:block;min-height:85px;overflow:hidden;border-radius:9px;border:1px solid #a68651;background:#0b3028;color:#fff0cb;padding:0;font-size:12px;transition:transform .18s,border-color .18s}.rh-thumb.active{border:3px solid #f4cf84;box-shadow:0 0 0 2px #392c14,0 0 20px #e7b962aa}.rh-thumb img{height:64px;width:100%;object-fit:cover;object-position:center 20%;display:block}.rh-thumb span:last-child{position:absolute;bottom:0;inset-inline:0;background:#001d17cc;padding:5px 2px;text-align:center}.rh-thumb-board{display:grid;place-items:center;height:85px;font-size:43px;color:#deb66e;background:repeating-conic-gradient(#14352e 0 25%,#816443 0 50%) 50%/32px 32px}.rh-thumb:focus-visible{outline:3px solid #eac580}
.rh-showcase-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:20px}.rh-feature{min-width:0;background:linear-gradient(150deg,#0a382d,#061e19);border:1px solid #82653b;border-radius:14px;overflow:hidden;padding:13px 14px 17px;box-shadow:0 15px 35px #0005}.rh-feature-head{display:flex;align-items:center;justify-content:space-between;gap:8px;font:700 18px Georgia,serif;color:#f3d998;min-height:40px}.rh-feature-head a,.rh-soon{font:600 12px system-ui;color:#e9bd77;text-decoration:none;white-space:nowrap}.rh-feature-visual{height:170px;border:1px solid #6b5734;border-radius:10px;overflow:hidden;margin:10px 0;background:#0c231d}.rh-feature h2{font:700 21px Georgia,serif;color:#f6dba2;margin:14px 0 8px}.rh-feature p{font-size:13px;line-height:1.55;min-height:60px;color:#ccd8c9}.rh-outline-link,.rh-muted-cta{display:inline-block;color:#f3d69b;text-decoration:none;border:1px solid #bc9155;border-radius:9px;padding:10px 13px;font-size:12px;font-weight:700}.rh-muted-cta{opacity:.65}.rh-duel{display:flex;align-items:stretch;justify-content:center;position:relative}.rh-duel img{width:50%;object-fit:cover;object-position:50% 20%}.rh-duel strong{position:absolute;top:35%;left:50%;transform:translate(-50%,-50%);font:900 40px Georgia,serif;text-shadow:0 3px 12px #000;color:#f7d992}.rh-avatar-preview{display:flex}.rh-avatar-preview img{width:50%;object-fit:cover;object-position:top}.rh-academy-art{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;color:#dec083;background:radial-gradient(circle,#366347,#0a201a)}.rh-academy-art span:first-child{font-size:80px}.rh-academy-art span:last-child{font-size:10px;letter-spacing:2px}.rh-board-preview{display:grid;place-items:center}.rh-board-mini{height:100%;aspect-ratio:1;display:grid;grid-template-columns:repeat(8,1fr);border:5px ridge #bf9455;box-shadow:0 0 24px #000b;transform:perspective(600px) rotateX(17deg)}.rh-board-mini>span{display:grid;place-items:center}.rh-board-mini>.light{background:#e9cca1}.rh-board-mini>.dark{background:#765037}.rh-board-mini i{display:block;width:77%;aspect-ratio:1;border-radius:50%;box-shadow:inset 0 3px 3px #fff5,0 3px 3px #0009}.rh-board-mini i.red{background:#b43c4c;border:2px solid #f28c9b}.rh-board-mini i.black{background:#182c29;border:2px solid #d0a75d}
.rh-modal-open{overflow:hidden}.rh-video-modal{position:fixed;inset:0;z-index:100;background:#000d;display:grid;place-items:center;padding:20px}.rh-video-content{position:relative;width:min(900px,100%);background:#07231d;border:1px solid #b28e51;border-radius:16px;padding:25px;text-align:center}.rh-video-content h2{font:700 30px Georgia,serif;color:#f2cd7d}.rh-video-content video{display:block;width:100%;max-height:65vh;background:#03120e}.rh-video-content p{font-size:12px;color:#d1d5c4}.rh-video-close{position:absolute;top:10px;right:10px;background:#0c3026;color:#f5d99a;border:1px solid #b28e51;padding:6px 11px}
/* Profile pages: preserve all existing IDs, history and account logic. */
body:has(.rh-profile-shell) .account-shell{max-width:1400px}.rh-profile-shell{display:grid;grid-template-columns:220px minmax(0,1fr);gap:22px;align-items:start}.rh-profile-nav{background:#082b23;border:1px solid #987443;border-radius:16px;padding:14px;position:sticky;top:20px;display:flex;flex-direction:column;gap:7px}.rh-nav-btn{border-radius:10px;background:transparent;border:1px solid transparent;color:#e5d9c4;text-align:left;font-size:14px;padding:14px 12px}.rh-nav-btn:hover,.rh-nav-btn.selected{background:linear-gradient(105deg,#dbac5c,#f5d795);color:#10271f;border-color:#f0cf88}.rh-profile-main{min-width:0}.rh-profile-main>.profile-panel{margin:0 0 18px;box-shadow:0 16px 32px #0004}.rh-profile-main>.profile-panel h2{color:#edd198}.rh-profile-main>.profile-panel:not([hidden]){animation:rhEnter .2s ease-out}@keyframes rhEnter{from{opacity:.4;transform:translateY(5px)}to{opacity:1;transform:none}}
/* Game session facelift: visuals only, no change to timers or move logic. */
.rh-game-session{background:radial-gradient(circle at 75% 4%,#1a5443,transparent 39%),repeating-linear-gradient(45deg,#ffffff04 0 2px,transparent 2px 110px),#041c16}.rh-game-session main{max-width:1430px}.rh-game-session .page-title{color:#f5ddb2;text-shadow:0 2px 14px #0008}.rh-game-session .game-layout{gap:24px}.rh-game-session .panel,.rh-game-session .royal-score{box-shadow:0 16px 35px #0006;border-color:#977a47!important}.rh-game-session #board{border:13px ridge #bc9153;border-radius:12px;box-shadow:0 26px 65px #000c,0 0 0 3px #44351e}.rh-game-session #board .light{background:linear-gradient(135deg,#f2dcb0,#d9b57d)}.rh-game-session #board .dark{background:linear-gradient(135deg,#755036,#593726)}.rh-game-session #board .piece{box-shadow:inset 0 4px 5px #fff5,inset 0 -7px 9px #0006,0 6px 8px #000a;transform:translateY(-2px)}.rh-game-session #board .red{background:radial-gradient(circle at 34% 22%,#e87582,#9d273d 75%);border:4px ridge #f08d91}.rh-game-session #board .black{background:radial-gradient(circle at 34% 22%,#52605c,#12201e 80%);border:4px ridge #d1b474}.rh-game-session .game-board-wrap{max-width:760px}
@media(max-width:1080px){.rh-showcase-grid{grid-template-columns:repeat(2,1fr)}.rh-hero-copy{padding-inline:30px}.rh-hero{min-height:540px}.rh-art{width:85%}.rh-slider-bottom{width:min(600px,67%)}}
@media(max-width:760px){.rh-profile-shell{grid-template-columns:1fr}.rh-profile-nav{position:static;display:flex;flex-direction:row;flex-wrap:wrap;gap:7px}.rh-nav-btn{flex:1 1 auto;min-width:120px;padding:10px;font-size:12px;text-align:center}.rh-hero{min-height:630px}.rh-hero-copy{padding:40px 28px 210px;max-width:100%}.rh-hero-copy h1{max-width:550px}.rh-art{width:100%;height:60%;opacity:.55}.rh-slider-bottom{width:calc(100% - 32px);left:16px;right:16px;bottom:15px}.rh-hero-scene:after{background:linear-gradient(180deg,#031712d0,transparent 48%,#031712b8 90%)}}
@media(max-width:530px){.rh-showcase-grid{grid-template-columns:1fr}.rh-hero{min-height:660px}.rh-hero-copy{padding:42px 18px 190px}.rh-hero-actions .btn{width:100%;text-align:center}.rh-slider-bottom{gap:5px}.rh-thumb{min-height:68px;font-size:10px}.rh-thumb img{height:58px}.rh-thumb-board{height:68px}.rh-thumb span:last-child{font-size:9px}.rh-slider-arrow{width:32px;height:32px;top:62%}.rh-hero-caption{display:none}.rh-game-session #board{border-width:6px}}
@media(prefers-reduced-motion:reduce){.rh-profile-main>.profile-panel:not([hidden]){animation:none}}
