/* Shared look for the Raid Tools pages, matching the Pre-BiS Tracker:
   near-black stone frames with grey metal borders, gold headings, red-brown buttons with gold text. */
:root{color-scheme:dark;
--page:#0a0a0b;--frame:#4b4b4f;--frame-hi:#77777d;--frame-lo:#161618;
--surface:#121315;--titlebar-top:#2e2e31;--titlebar-bot:#131315;
--doll-light:#3b4048;--doll-dark:#111316;
--text:#ececec;--text-strong:#fff;--text-muted:#ababab;--label:#ffd100;
--btn-top:#a01a10;--btn-bot:#5c0904;--btn-line:#2a0402;--btn-text:#ffd100;--btn-hover-top:#ab1d12;
--focus-ring:#ffd100}
*{box-sizing:border-box}
html,body{margin:0}
body{background:radial-gradient(1100px 600px at 50% -240px,#25262b,var(--page));background-color:var(--page);color:var(--text);
  font:1rem/1.5 "Source Sans 3",system-ui,sans-serif;min-height:100vh}
main{max-width:760px;margin:0 auto;padding:clamp(32px,6vw,64px) max(4vw,16px)}
h1{font:800 clamp(2rem,5vw,2.875rem)/1.05 Cinzel,Georgia,serif;color:var(--label);margin:0;text-wrap:balance}
.sub{color:var(--text-muted);margin:8px 0 36px}
:focus-visible{outline:3px solid var(--focus-ring);outline-offset:3px}

/* Game-style window */
.window{position:relative;display:block;background:var(--surface);border:3px solid var(--frame);border-radius:8px;color:inherit;text-decoration:none;
  box-shadow:inset 0 0 0 1px var(--frame-lo),0 0 0 1px #000,0 16px 36px -16px #000}
.titlebar{display:flex;justify-content:center;align-items:center;min-height:34px;padding:4px 56px;border-radius:5px 5px 0 0;
  background:linear-gradient(var(--titlebar-top),var(--titlebar-bot));border-bottom:1px solid #000;
  font-weight:700;color:var(--text-strong);text-align:center}
.crest{position:absolute;left:-14px;top:-16px;width:58px;height:58px;border-radius:50%;padding:7px;background:#000;border:3px solid var(--frame-hi);
  box-shadow:0 0 0 2px #000,0 4px 10px rgba(0,0,0,.6)}
.crest img{width:100%;height:100%;object-fit:contain;display:block}
.win-body{padding:18px 20px 20px;border-radius:0 0 5px 5px;background:radial-gradient(ellipse at 50% 30%,var(--doll-light),var(--doll-dark) 80%)}
.win-body p{margin:0 0 14px}
.muted{color:var(--text-muted)}
.label{color:var(--label);font-weight:600}

/* Button look: red-brown with gold text, like the game's panel buttons */
.btn{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 18px;border-radius:6px;border:1px solid var(--btn-line);
  background:linear-gradient(var(--btn-top),var(--btn-bot));color:var(--btn-text);font-weight:700;text-decoration:none;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 1px 0 #000}
@media(hover:hover){
  a.window:hover{border-color:var(--frame-hi)}
  a.window:hover .btn,a.btn:hover{background:linear-gradient(var(--btn-hover-top),var(--btn-bot))}
}
