/* Pixel-world interface. This layer only changes presentation. */
:root{--ink:#0b1220;--panel:#141f30;--panel-2:#1d2d3e;--paper:#efeadd;--muted:#a5b4b1;--line:rgba(191,204,193,.19);--acid:#e7bd74;--orange:#d98269;--violet:#88b6aa}
html{background:#0b1220}body{background:#0b1220;color:var(--paper)}
body:before{content:'';position:fixed;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(180deg,rgba(9,16,29,.4),rgba(9,16,29,.85) 70%,#0b1220),url('/rucoy-world-background.webp?v=1') center top / cover no-repeat}
.noise{display:none}.site-shell{overflow:hidden}.site-header{height:76px;padding:0 clamp(20px,5vw,70px);background:#0d1826eb;border-bottom:2px solid #8c805f;box-shadow:0 4px 0 #080f1b}
.brand{font-size:13px;letter-spacing:.12em}.brand i{color:#e7bd74}.brand-mark span{transform:none;background:#e7bd74}
.desktop-nav{display:flex;gap:0;margin:0 auto 0 9%;border:1px solid #637371;background:#101d2a}
.desktop-nav a{display:block;padding:11px 18px;color:#aabcb6;font:10px var(--mono);border-right:1px solid #465957;transition:background .15s,color .15s}.desktop-nav a:last-child{border:0}.desktop-nav a:hover,.desktop-nav a[aria-current=page]{background:#dec082;color:#15232b}
.header-cta{padding:10px 14px;color:#d7c8a5;border:1px solid #987e58;border-radius:0;background:#1c2d36;box-shadow:3px 3px 0 #070e16}.header-cta:hover{color:#0b1820;background:#e7bd74;transform:translate(2px,2px);box-shadow:1px 1px 0 #070e16}
.live-dot,.status-dot{border-radius:0;background:#92bfa9;box-shadow:none;animation:world-blink 2.8s steps(1,end) infinite}
/* An illustration is the stage; a compact search panel sits above it. */
.hero.section-pad{width:min(1320px,calc(100% - 10vw));max-width:none;min-height:clamp(560px,70vh,700px);padding:0;margin:38px auto 44px;display:grid;grid-template-columns:minmax(320px,420px) minmax(0,1fr);gap:0;align-items:stretch;position:relative;border:2px solid #aaa080;box-shadow:7px 7px 0 #060c14;background:linear-gradient(90deg,rgba(12,22,32,.92) 0%,rgba(12,22,32,.61) 42%,rgba(12,22,32,.10) 75%),url('/rucoy-world-background.webp?v=1') center center / cover no-repeat}
.hero:before{content:'';display:block;position:absolute;top:0;left:0;right:0;height:9px;background:repeating-linear-gradient(90deg,#dec084 0 14px,#314d51 14px 28px);z-index:2}.hero:after{content:'';display:block;position:absolute;left:0;right:0;bottom:0;height:9px;background:repeating-linear-gradient(90deg,#1f343b 0 14px,#364b47 14px 28px);z-index:2}
.hero-copy{grid-column:1;grid-row:1;align-self:center;z-index:3;margin:40px 0 40px clamp(22px,3.8vw,55px);padding:23px;background:#152434ef;border:2px solid #b7a57d;box-shadow:5px 5px 0 #071019;max-width:350px}
.hero-copy .eyebrow{font-size:9px;line-height:1.4;color:#a3c4b4;margin-bottom:19px}
.adventure-heading,.adventure-copy{display:none!important}
.search-form{max-width:none}.search-form label{display:block;color:#e3c996;font-size:10px;margin-bottom:10px}
.search-row{padding:4px;background:#e9e5d5;border:0;border-radius:0;box-shadow:none}.search-row input{color:#142331;background:transparent}.search-row button,.streak-input-row button,.guild-search-row button{min-width:46px;border-radius:0;color:#12222d;background:#e7bd74;transition:background .12s,transform .12s steps(2,end)}
.search-row button:hover,.streak-input-row button:hover,.guild-search-row button:hover{background:#8db9a8;transform:translateY(-2px)}
.search-row button svg,.streak-input-row button svg,.guild-search-row button svg{display:block;margin:auto}
.hero-visual{grid-column:2;grid-row:1;min-width:0;min-height:0;transform:none!important;margin:0!important;overflow:visible;display:flex;justify-content:center;align-items:center;padding:55px 20px;background:transparent;border:0}
.hero-visual:before,.hero-visual:after{display:none}.radar-ring,.radar-cross,.radar-glow{display:none!important}
.profile-card{position:relative;z-index:2;max-height:540px;overflow:auto;width:min(390px,100%);transform:none!important;background:#132331f2;border:2px solid #c9b384;box-shadow:6px 6px 0 #070f17}.profile-card:hover{transform:none!important;box-shadow:6px 6px 0 #070f17}
.avatar,.avatar-image{border-radius:0;image-rendering:pixelated}.avatar{background:#88b6aa;box-shadow:4px 4px 0 #e7bd74}.avatar:hover{box-shadow:5px 5px 0 #e7bd74}
.not-found-card{background:#142634ef;border:2px solid #beab82;box-shadow:6px 6px 0 #070f17}.not-found-image{image-rendering:pixelated}
.kill-feed-section{width:min(1080px,90%);margin:0 auto 48px}.kill-log{width:100%;background:#142433;border:2px solid #7d8c7b;box-shadow:5px 5px 0 #070e15}.kill-log-head{background:#243a42;color:#e3c996}
/* Secondary pages retain all live data and controls, restyled as game panels. */
.streak-main,.guilds-main{max-width:1260px;margin:0 auto}
.streak-intro,.guilds-hero{position:relative;padding:clamp(27px,4vw,48px)!important;margin-bottom:26px;background:linear-gradient(90deg,rgba(17,31,45,.97),rgba(17,31,45,.76)),url('/rucoy-world-background.webp?v=1') center 42% / cover!important;border:2px solid #9e967c;box-shadow:6px 6px 0 #070f18}
.streak-intro h1,.guilds-hero h1{color:#f0e8d4;letter-spacing:-.045em!important}.streak-intro h1 em,.guilds-hero h1 span{color:#e7bd74}.streak-lead,.guilds-hero p{color:#bdc8bd}.streak-overline,.streak-kicker{color:#e0b881}
.streak-dashboard{gap:18px!important}.streak-side-card{order:-1}
.streak-main-card,.streak-side-card,.streak-board-section,.guild-detail-card,.guild-directory{background:#142433f5!important;border:2px solid #72877d!important;border-radius:0!important;box-shadow:5px 5px 0 #070f18!important}
.streak-board-section,.guild-directory{margin-top:22px}
.streak-progress{border-radius:0!important;background:#0a1620}.streak-progress span{border-radius:0!important;background:#e7bd74!important}
.streak-flame-wrap,.rank-insignia{filter:none!important}.streak-flame{filter:none!important;animation:world-flame 1.8s steps(2,end) infinite;transform-origin:center bottom}
.guild-search-row,.streak-input-row,.guild-sort-toggle,.guild-sort-options,.guild-member-sort,.guild-load-more button{border-radius:0!important}
.guild-search-row,.streak-input-row{box-shadow:4px 4px 0 #09131c}
.streak-table th,.guild-table th,.guild-member-table th{background:#233b40;color:#e3c996}
.streak-table tbody tr:hover,.guild-table tbody tr:hover,.guild-member-table tbody tr:hover{background:rgba(231,189,116,.08)}
.site-footer{background:#0d1826ed;border-top:2px solid #756e5b}.profile-meta #profile-title{text-shadow:none!important}
@keyframes world-blink{0%,78%,100%{opacity:1}79%,90%{opacity:.35}}@keyframes world-flame{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
@media(max-width:800px){.site-header{height:70px;padding:0 5%}.hero.section-pad{width:calc(100% - 28px);min-height:470px;margin:20px auto 34px;display:flex;flex-direction:column;justify-content:flex-start;background-position:62% center;box-shadow:4px 4px 0 #060c14}.hero-copy{width:calc(100% - 36px);max-width:none;margin:34px 18px 0;padding:17px;align-self:auto}.hero-copy .eyebrow{margin-bottom:13px}.hero-visual{flex:1;width:100%;min-height:260px;padding:20px 16px 30px;transform:none!important}.profile-card{max-height:380px;width:100%}.streak-dashboard{display:flex;flex-direction:column}.streak-side-card{order:0}.streak-main-card{order:1}.streak-intro,.guilds-hero{padding:24px 20px!important}.streak-board-section,.guild-directory{box-shadow:4px 4px 0 #070f18!important}}
@media(prefers-reduced-motion:reduce){.live-dot,.status-dot,.streak-flame{animation:none!important}*{scroll-behavior:auto!important}}
/* Responsive and touch refinements */
@media(max-width:900px){
  .desktop-nav{display:none!important}
  .site-header{gap:12px}
  .mobile-nav{max-width:100%;overflow-x:hidden}
}
@media(max-width:800px){
  .hero.section-pad{min-height:clamp(460px,70svh,620px)}
  .hero-copy{min-width:0}
  .search-row input,.guild-search-row input,.streak-input-row input{font-size:16px;min-width:0}
  .search-row button,.guild-search-row button,.streak-input-row button{min-width:44px;min-height:44px}
  .streak-main{padding:28px 16px 65px}.guilds-main{width:calc(100% - 32px);padding:28px 0 65px}
  .streak-main-card,.streak-side-card,.streak-board-section,.guild-detail-card,.guild-directory{min-width:0}
  .streak-table-scroll,.guild-table-scroll,.guild-member-table-wrap,.profile-stats-scroll{overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
  .streak-table{min-width:560px}
  .guild-directory-new .guild-table{min-width:650px;table-layout:auto}
  .guild-member-table{min-width:600px;table-layout:auto}
  .guild-directory-new .guild-table th:nth-child(5),.guild-directory-new .guild-table td:nth-child(5),.guild-member-table th:nth-child(3),.guild-member-table td:nth-child(3){display:table-cell}
  .streak-week-heading,.guild-detail-heading{gap:12px;flex-wrap:wrap}
}
@media(max-width:380px){
  .hero.section-pad{width:calc(100% - 22px)}
  .hero-copy{width:calc(100% - 24px);margin:28px 12px 0;padding:14px}
  .hero-copy .eyebrow{font-size:8px}
  .streak-intro h1,.guilds-hero h1{font-size:clamp(2.8rem,15vw,3.6rem)}
  .streak-main-card,.streak-side-card,.streak-board-section,.guild-detail-card{padding:16px}
}
