/* RONWMA SIX THEMES — v1.0.0 — loaded AFTER original PHP site CSS.
   No database/session/auth behavior is modified. */
:root,
:root[data-ronw-theme="pastel"] {
  color-scheme:light;
  --bg:#f5edff;--bg2:#ffeef9;--panel:rgba(255,251,255,.94);--panel-solid:#fffafd;
  --fg:#362648;--muted:#715f86;--line:#dec9ee;--violet:#a06ae8;--violet-deep:#7139bc;
  --violet-soft:#f0e3ff;--pink:#f6a5ce;--pink-soft:#ffe5f3;--gold:#d7a750;--gold-soft:#fff1d0;
  --shadow:0 13px 32px rgba(113,57,188,.13);
  --r-body-bg:linear-gradient(155deg,#fff2fb,#f7f0ff 48%,#e9e8ff);
  --r-nav:rgba(255,252,255,.92);--r-text:#362648;--r-card:#fffafd;
  --r-edge:#dbc3ef;--r-strong:#7139bc;--r-input:#fff;--r-float:#fffafd;
  --r-glow:rgba(192,120,235,.21);--r-highlight:linear-gradient(120deg,#a271e4,#d68fde,#f5b5d0);
  --r-banner:linear-gradient(125deg,rgba(243,218,254,.9),rgba(253,238,254,.85));
  --r-bg-filter:saturate(1.06);
}
:root[data-ronw-theme="sky"] {
  color-scheme:light;
  --bg:#eff8ff;--bg2:#e0efff;--panel:rgba(251,254,255,.95);--panel-solid:#fff;
  --fg:#173c5c;--muted:#53768e;--line:#b4d8f4;--violet:#4b9fe2;--violet-deep:#206ca9;
  --violet-soft:#e0f3ff;--pink:#8ccbf8;--pink-soft:#e5f8ff;--gold:#d7a64e;--gold-soft:#fff2d8;
  --shadow:0 12px 30px rgba(41,125,188,.12);--r-body-bg:linear-gradient(140deg,#ecfaff,#dcedff 50%,#f5faff);
  --r-nav:rgba(250,253,255,.94);--r-text:#173c5c;--r-card:#fff;--r-edge:#aed4f1;
  --r-strong:#206ca9;--r-input:#fff;--r-float:#fcfeff;--r-glow:rgba(79,168,242,.18);
  --r-highlight:linear-gradient(120deg,#51a2e7,#69d3ec,#a2b9ff);
  --r-banner:linear-gradient(125deg,#d9f3ff,#edf8ff);--r-bg-filter:hue-rotate(12deg) saturate(1.10);
}
:root[data-ronw-theme="gold"] {
  color-scheme:light;
  --bg:#fff8e8;--bg2:#f7edd4;--panel:rgba(255,252,244,.95);--panel-solid:#fffcf5;
  --fg:#5a351c;--muted:#806d53;--line:#e4c98e;--violet:#c5913a;--violet-deep:#96621f;
  --violet-soft:#fff0cf;--pink:#e0b88e;--pink-soft:#fff0dc;--gold:#b88018;--gold-soft:#fff3cc;
  --shadow:0 12px 26px rgba(137,89,37,.14);--r-body-bg:linear-gradient(145deg,#fff9e8,#f2e3c4 53%,#fff8e4);
  --r-nav:rgba(255,251,242,.94);--r-text:#5a351c;--r-card:#fffcf5;--r-edge:#ddc187;
  --r-strong:#96621f;--r-input:#fffef9;--r-float:#fffcf5;--r-glow:rgba(205,155,64,.20);
  --r-highlight:linear-gradient(120deg,#b77628,#dfa748,#f5d98e);
  --r-banner:linear-gradient(125deg,#fff3cf,#fffae9);--r-bg-filter:sepia(.20) saturate(1.13);
}
:root[data-ronw-theme="crimson"] {
  color-scheme:light;
  --bg:#fff1ef;--bg2:#ffe1de;--panel:rgba(255,251,249,.95);--panel-solid:#fffaf8;
  --fg:#5c2028;--muted:#88666b;--line:#eab8b8;--violet:#d64d64;--violet-deep:#a42c47;
  --violet-soft:#ffe1e5;--pink:#ee8490;--pink-soft:#ffeced;--gold:#d5a04b;--gold-soft:#fff1d2;
  --shadow:0 13px 30px rgba(174,58,79,.13);--r-body-bg:linear-gradient(145deg,#fff1ee,#fbd9dc 50%,#fff5ec);
  --r-nav:rgba(255,248,249,.95);--r-text:#5c2028;--r-card:#fffaf8;--r-edge:#eab8b8;
  --r-strong:#a42c47;--r-input:#fffafa;--r-float:#fff8f8;--r-glow:rgba(219,93,111,.21);
  --r-highlight:linear-gradient(120deg,#b82e4e,#e76171,#ef9c81);
  --r-banner:linear-gradient(125deg,#ffe0e5,#fff4e8);--r-bg-filter:hue-rotate(-29deg) saturate(1.15);
}
:root[data-ronw-theme="green"] {
  color-scheme:light;
  --bg:#eff9ef;--bg2:#e2f4e7;--panel:rgba(250,255,251,.95);--panel-solid:#fbfffb;
  --fg:#254532;--muted:#5b7a65;--line:#b7dbc3;--violet:#45a679;--violet-deep:#2b7957;
  --violet-soft:#daf4e4;--pink:#9fdac3;--pink-soft:#e8f9ed;--gold:#bba252;--gold-soft:#fff3ce;
  --shadow:0 12px 28px rgba(45,139,95,.12);--r-body-bg:linear-gradient(140deg,#f4fff5,#dff4e7 50%,#f3fffb);
  --r-nav:rgba(248,255,250,.94);--r-text:#254532;--r-card:#fbfffb;--r-edge:#b8dbc4;
  --r-strong:#2b7957;--r-input:#fff;--r-float:#fbfffb;--r-glow:rgba(84,182,126,.17);
  --r-highlight:linear-gradient(120deg,#35896a,#5bcb93,#b4db89);
  --r-banner:linear-gradient(125deg,#e2f6df,#f3fff0);--r-bg-filter:hue-rotate(34deg) saturate(1.04);
}
:root[data-ronw-theme="cyber"] {
  color-scheme:dark;
  --bg:#0c102a;--bg2:#161839;--panel:rgba(21,27,62,.92);--panel-solid:#1a2450;
  --fg:#f4f2ff;--muted:#b9b7da;--line:#50508f;--violet:#ab64ff;--violet-deep:#d4a0ff;
  --violet-soft:#2b2658;--pink:#f56bd5;--pink-soft:#41255f;--gold:#f6bb60;--gold-soft:#473850;
  --ok:#81e6ad;--ok-bg:#17493f;--warn:#f2cd78;--warn-bg:#534321;--err:#ffa5b3;--err-bg:#53243b;
  --shadow:0 15px 34px rgba(0,4,22,.42);--r-body-bg:linear-gradient(145deg,#090e26,#17183c 55%,#21113d);
  --r-nav:rgba(16,19,50,.96);--r-text:#f4f2ff;--r-card:#1a2450;--r-edge:#4e5296;
  --r-strong:#debdff;--r-input:#1e2952;--r-float:#131a3a;--r-glow:rgba(205,69,252,.24);
  --r-highlight:linear-gradient(120deg,#5c42f6,#ba4cff,#24c8ed);
  --r-banner:linear-gradient(125deg,#211d53,#311c50);--r-bg-filter:brightness(.57) saturate(1.45) hue-rotate(28deg);
}
/* Common look throughout existing PHP routes; no layout or functional form changes. */
body {color:var(--fg);background:var(--r-body-bg);background-attachment:fixed}
.sky {background:
  radial-gradient(ellipse 600px 380px at 12% -4%,var(--r-glow),transparent 75%),
  radial-gradient(ellipse 640px 460px at 95% 5%,var(--r-glow),transparent 75%),
  radial-gradient(ellipse 650px 500px at 50% 100%,var(--r-glow),transparent 75%)}
.top {background:var(--r-nav);border-bottom:1px solid var(--r-edge);box-shadow:0 3px 20px var(--r-glow)}
.brand,.nav a,.foot,.who {color:var(--r-text)}
.nav a:hover,.nav a:focus-visible {background:var(--violet-soft);color:var(--r-strong)}
.nav a[href="/dashboard"] {font-weight:700}
.main {max-width:1320px}
h1,h2 {color:var(--r-strong)}
.panel,.stat,.act,.quick a,.char-row,.empty,.slot {background:var(--r-card);color:var(--r-text);border-color:var(--r-edge);box-shadow:var(--shadow)}
.panel {border-radius:20px;overflow:visible}
.panel::before {background:var(--r-highlight)}
.stat b,.page-head h1,.eyebrow {color:var(--r-strong)}
input,select,textarea {background:var(--r-input);border:1px solid var(--r-edge);color:var(--r-text)}
input:focus-visible,select:focus-visible,textarea:focus-visible,button:focus-visible,a:focus-visible {outline:3px solid var(--violet);outline-offset:2px}
.btn {background:var(--r-highlight);border:1px solid var(--r-edge);box-shadow:0 6px 15px var(--r-glow);color:#fff}
.btn-ghost,.btn-google {background:var(--r-float);color:var(--r-text);border-color:var(--r-edge)}
.btn-google .g{color:#4285f4}
.chip,.bar {background:var(--violet-soft);color:var(--r-text);border-color:var(--r-edge)}
.tbl th,.tbl td,.rowline{border-color:var(--r-edge)}
.state,.pill{border-color:var(--r-edge)}
.mascot {opacity:.78}
.foot{border-color:var(--r-edge)}
.auth-card {background:var(--r-nav)}
.auth-card h1 {text-align:center;font-size:clamp(30px,4vw,42px)}
.auth-card .form {max-width:none}
.auth-card .form .btn{justify-content:center}
.auth-grid {max-width:640px;margin:0 auto;display:block}
.auth-grid .info-card {display:none}
body[data-ronw-route="/login" .top,body[data-ronw-route="/register"] .top {background:var(--r-nav)}
body[data-ronw-route="/login"] .main,body[data-ronw-route="/register"] .main{padding-top:clamp(40px,8vh,96px);min-height:calc(100vh - 160px)}
body[data-ronw-route="/login"::before,body[data-ronw-route="/register"]::before{
  content:"";position:fixed;inset:55px 0 0;z-index:-1;pointer-events:none;
  background:linear-gradient(90deg,var(--bg),transparent 40%,var(--bg)),url('/assets/ronw-theme/img/guild-hero.webp') center top/cover no-repeat;
  opacity:.45;filter:var(--r-bg-filter)
}
/* Private-data-free welcome gateway (original public home content is suppressed by template wrapper). */
body[data-ronw-route="/"] {background:#d9e6f8}
body[data-ronw-route="/"] .top,body[data-ronw-route="/"] .foot,
body[data-ronw-route="/"] .mascot{display:none}
body[data-ronw-route="/"] .main {max-width:none;padding:0;display:block}
body[data-ronw-route="/"] .sky {display:none}
.ronw-welcome {min-height:100vh;min-height:100dvh;position:relative}
.ronw-welcome__hero {position:relative;min-height:100vh;min-height:100dvh;
  background:linear-gradient(0deg,rgba(31,21,57,.14),transparent 35%),url('/assets/ronw-theme/img/home-bg.webp') center center/cover no-repeat;
  display:flex;align-items:end;justify-content:center;padding:25px 15px max(5vh,35px);filter:none}
.ronw-welcome__hero::before {content:"";position:absolute;inset:0;pointer-events:none;background:transparent}
.ronw-welcome__entry {position:relative;display:grid;justify-items:center;gap:12px;padding:15px 24px 20px;background:rgba(255,251,255,.85);
  border:2px solid var(--gold);border-radius:28px;box-shadow:0 14px 50px rgba(42,21,79,.25);backdrop-filter:blur(8px);max-width:min(500px,92vw)}
.ronw-welcome__sub{margin:0;font:700 clamp(17px,2vw,23px)/1.2 var(--display);color:var(--violet-deep);text-align:center}
.ronw-welcome__button{display:inline-flex;justify-content:center;gap:16px;align-items:center;min-width:min(350px,80vw);padding:14px 30px;
  background:var(--r-highlight);border:2px solid var(--gold);border-radius:60px;color:#fff;text-decoration:none;
  font:800 clamp(20px,3vw,30px)/1.3 var(--display);text-shadow:0 1px 2px #443;box-shadow:0 8px 22px var(--r-glow)}
.ronw-welcome__button:hover{filter:brightness(1.08);transform:translateY(-2px)}
/* Theme picker with accessible button and modal dialog. Hidden on pure Welcome page. */
.ronw-theme-launch{position:fixed;right:18px;bottom:20px;z-index:90;display:flex;align-items:center;gap:8px;background:var(--r-highlight);color:#fff;
 border:2px solid var(--gold);border-radius:24px;padding:10px 16px;font:700 14px/1.2 var(--body);box-shadow:0 6px 26px var(--r-glow);cursor:pointer}
.ronw-theme-overlay{position:fixed;inset:0;z-index:100;display:none;background:rgba(12,10,37,.59);align-items:center;justify-content:center;padding:16px}
.ronw-theme-overlay[aria-hidden="false"] {display:flex}
.ronw-theme-dialog{width:min(660px,100%);max-height:min(760px,94vh);overflow:auto;background:var(--r-float);color:var(--r-text);border:2px solid var(--gold);
 border-radius:24px;box-shadow:0 25px 80px rgba(0,0,0,.28);padding:24px}
.ronw-theme-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.ronw-theme-head h2{margin:0;color:var(--r-strong)}
.ronw-theme-close{border:1px solid var(--r-edge);background:var(--r-card);color:var(--r-text);font:700 21px var(--body);border-radius:12px;width:38px;height:38px;cursor:pointer}
.ronw-theme-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:14px}
.ronw-theme-choice{display:grid;gap:7px;text-align:left;background:var(--r-card);border:2px solid var(--r-edge);border-radius:15px;padding:10px;cursor:pointer;color:var(--r-text);font:600 14px var(--body)}
.ronw-theme-choice[aria-pressed="true"]{border-color:var(--violet);box-shadow:0 0 0 3px var(--r-glow)}
.ronw-theme-swatch{height:54px;border-radius:10px;border:1px solid #ffffff77;display:block}
.ronw-theme-help{font-size:12px;color:var(--muted);margin-top:12px}
body[data-ronw-route="/"] .ronw-theme-launch{display:none}
:root[data-ronw-theme="cyber"] .auth-card,:root[data-ronw-theme="cyber"] .panel {backdrop-filter:blur(4px)}
:root[data-ronw-theme="cyber"] .ronw-welcome__entry{background:rgba(17,20,51,.88)}
:root[data-ronw-theme="cyber"] .ronw-welcome__hero:before{background:rgba(10,9,31,.25)}
@media(max-width:700px){
 .ronw-theme-choices{grid-template-columns:repeat(2,minmax(0,1fr))}
 .ronw-theme-dialog{padding:16px}
 .ronw-theme-launch{right:10px;bottom:10px;font-size:13px}
 .ronw-welcome__hero{background-image:linear-gradient(0deg,rgba(31,21,57,.22),transparent 55%),url('/assets/ronw-theme/img/home-bg-m.webp');background-position:center center}
 .ronw-welcome__entry{padding:12px 16px 18px}
}
@media (prefers-reduced-motion:reduce){.ronw-welcome__button{transform:none!important}}
