/* R&R Velen — our own frame and art for the Velen theme (Witcher-style: cold steel, old gold, dried blood).
   Replaces the upstream theme's image frame with CSS. Loaded last by the theme's headerinclude. */
:root {
  --v-bg: #0b0a09;
  --v-stone: #15120f;
  --v-stone2: #1c1814;
  --v-line: #3a3026;
  --v-gold: #c8a25a;
  --v-gold-hi: #ecd08e;
  --v-steel: #b9c0c8;
  --v-blood: #8c1c13;
  --v-text: #cfc6b6;
  --v-muted: #8d8475;
}
@font-face { font-family: "Open Sans"; src: url("fonts/OpenSans-Bold.ttf") format("truetype"); font-weight: 700; }

body {
  background: var(--v-bg);
  color: var(--v-text);
  font-family: "Open Sans", Arial, sans-serif;
  position: relative;
}
body::before { /* Velen at dusk (Emir's Witcher 3 screenshot), fixed behind the page and darkened */
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(11,10,9,.05) 0%, rgba(11,10,9,.5) 80%),
    linear-gradient(180deg, rgba(11,10,9,.1) 0%, rgba(11,10,9,.35) 100%),
    url("velen-bg.webp") center center / cover no-repeat;
}
a:link, a:visited { color: var(--v-gold); }
a:hover, a:active { color: var(--v-gold-hi); }
table, .post_body { color: var(--v-text); }
.smalltext { color: var(--v-muted); }

/* user bar */
#panel {
  width: 1024px; max-width: 100%; height: auto; box-sizing: border-box; padding: 6px 18px; margin: 0 auto;
  background: linear-gradient(180deg, rgba(21,18,15,.92), rgba(11,10,9,.92));
  border: 1px solid var(--v-line); border-top: 0; border-radius: 0 0 8px 8px;
  text-shadow: none; color: var(--v-steel); font-family: "Open Sans", Arial, sans-serif; font-size: 12px; line-height: 1.8;
}
#panel .upper, #panel .lower { background: none; border: 0; color: inherit; padding: 2px 0; }
#panel .wrapper { width: auto; }
#panel ul.menu { margin: 0; padding: 0; position: static; }
#panel ul.menu li { display: inline-block; margin: 0 10px 0 0; text-shadow: none; font-family: inherit; }
#panel input.textbox { padding: 3px 6px; }

/* banner */
#header { width: 1024px; max-width: 100%; height: auto; margin: 22px auto 0; }
#header .logo img {
  display: block; width: 100%; height: auto; border: 1px solid var(--v-line); border-radius: 6px 6px 0 0;
  box-shadow: 0 20px 60px rgba(0,0,0,.7);
}

/* menu bar replaces the stone-gargoyle frame */
#container_top {
  width: 1024px; max-width: 100%; height: auto; margin: 0 auto; box-sizing: border-box;
  background: linear-gradient(180deg, #2a221b, #15110e);
  border: 1px solid var(--v-line); border-top: 2px solid var(--v-gold); border-bottom: 1px solid #000;
  box-shadow: inset 0 1px 0 rgba(236,208,142,.15);
}
#container_top .menu ul { position: static; top: 0; padding: 10px 8px; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 6px; }
#container_top .menu li { display: inline-block; padding: 0; text-shadow: none; }
#container_top .menu a {
  display: inline-block; padding: 7px 14px; border-radius: 4px; letter-spacing: .6px;
  font-family: "Metamorphous", Georgia, serif; font-size: 14px; color: var(--v-gold) !important;
}
#container_top .menu a:hover { background: rgba(200,162,90,.1); color: var(--v-gold-hi) !important; }
#container_top .rpk-badge { color: #fff !important; padding-left: 0; }
#container_inside_top { display: none; }

/* page body: dark stone slab */
#container {
  width: 1024px; max-width: 100%; box-sizing: border-box; padding: 18px 26px 26px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.02), transparent 120px),
    repeating-linear-gradient(45deg, rgba(255,255,255,.012) 0 2px, transparent 2px 6px),
    var(--v-stone);
  border-left: 1px solid var(--v-line); border-right: 1px solid var(--v-line);
  box-shadow: 0 0 80px rgba(0,0,0,.8);
}
#container_foot {
  width: 1024px; max-width: 100%; height: 10px; margin: 0 auto; box-sizing: border-box;
  background: linear-gradient(180deg, #15110e, #2a221b);
  border: 1px solid var(--v-line); border-top: 0; border-bottom: 2px solid var(--v-gold); border-radius: 0 0 8px 8px;
}
#copyright { width: 1024px; max-width: 100%; box-sizing: border-box; padding: 14px; color: var(--v-muted); }
#opt_select { margin: 10px auto 0; }

/* boxes */
.tborder { background: #0e0c0a; border: 1px solid var(--v-line); border-radius: 4px; }
.thead {
  background: linear-gradient(180deg, #3a1b14 0%, #1f0f0b 100%);
  border-bottom: 1px solid var(--v-blood);
  color: var(--v-gold-hi); text-shadow: 0 1px 2px #000; font-family: "Metamorphous", Georgia, serif;
}
.thead .smalltext, .thead div.smalltext { font-family: "Open Sans", Arial, sans-serif; color: var(--v-muted); text-shadow: none; }
.tcat { background: var(--v-stone2); color: var(--v-muted); border-bottom: 1px solid #000; }
.trow1 { background: #13100d; border-bottom: 1px solid #0a0908; }
.trow2 { background: #171310; border-bottom: 1px solid #0a0908; }
.trow1, .trow2 { color: var(--v-text); }
.tfoot { background: var(--v-stone2); }
.bottommenu { background: #0e0c0a; border-color: var(--v-line); }

/* buttons */
.button, a.button:link, a.button:visited, input.button, .pagination a, .pagination .pagination_current, .postbit_buttons > a:link, .postbit_buttons > a:visited {
  background: linear-gradient(180deg, #4a1e16, #2a110d) !important; color: var(--v-gold-hi) !important;
  border: 1px solid #5c2a1d !important; border-radius: 3px; text-shadow: 0 1px 1px #000;
}
.button:hover, a.button:hover, input.button:hover, .pagination a:hover, .postbit_buttons > a:hover {
  background: linear-gradient(180deg, #5e261b, #34150f) !important; border-color: var(--v-gold) !important; color: #fff !important;
}
.pagination .pagination_current { background: var(--v-gold) !important; color: #1a120b !important; }

/* forms */
input.textbox, input[type="text"], input[type="number"], input[type="password"], input[type="email"], textarea, select { background: #0b0a09; color: var(--v-text); border-color: var(--v-line); }
input.textbox:focus, textarea:focus, select:focus { border-color: var(--v-gold); outline: none; }

/* posts */
.post .post_author { background: var(--v-stone2); border-color: var(--v-line); }
.post .post_head, .post .post_body { border-color: #0a0908; }
.post_controls { background: transparent; }
blockquote, .codeblock { background: rgba(255,255,255,.04); color: var(--v-text); border: 1px solid var(--v-line); border-left: 3px solid var(--v-blood); }
blockquote cite, .codeblock .title { color: var(--v-gold); border-color: var(--v-line); }
.popup_menu { background: var(--v-stone2); border: 1px solid var(--v-line); }
.popup_menu .popup_item { color: var(--v-text); }
.popup_menu .popup_item:hover { background: #2a221b; opacity: 1; }
.pm_alert, .red_alert { background: #2b1410; color: #f3d9cf; border-color: var(--v-blood); }

/* Karakter page */
.rpk-msg { background: #1b2416; border: 1px solid #3f5a30; color: #dfe9cf; border-radius: 4px; }
.rpk-changed { background: #4a3a17 !important; }
.rpk-stats th { color: var(--v-gold); font-family: "Metamorphous", Georgia, serif; font-weight: normal; }
.rpk-stats td { color: var(--v-text); }
.rpk-stats td[id^="rpk-final-"] { color: var(--v-gold-hi); font-weight: 700; }

@media (max-width: 1060px) {
  #panel, #header, #container_top, #container, #container_foot, #copyright { width: auto; margin-left: 8px; margin-right: 8px; }
}
.bottommenu ul.bottom_links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; font-size: 12px; }
.bottommenu ul.bottom_links li { display: inline-block; }

/* Emhyr (left) and Radovid (right) guarding the banner, like statues on a gate */
#header { position: relative; }
#header .logo { position: relative; z-index: 1; display: block; }
.rr-fig {
  position: absolute; bottom: -48px; height: 330px; width: auto; z-index: 2; pointer-events: none;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,.85)) brightness(.95);
}
.rr-fig-left { left: -175px; }
.rr-fig-right { right: -175px; }
@media (max-width: 1400px) { .rr-fig { height: 300px; bottom: -44px; } .rr-fig-left { left: -120px; } .rr-fig-right { right: -120px; } }
@media (max-width: 1260px) { .rr-fig { height: 250px; bottom: -40px; } .rr-fig-left { left: -70px; } .rr-fig-right { right: -70px; } }
@media (max-width: 1140px) { .rr-fig { display: none; } }

/* banner title, written in HTML over velen-banner.webp so it stays sharp */
@font-face { font-family: "Cinzel"; src: url("fonts/Cinzel.ttf") format("truetype"); font-weight: 400 900; }
#header .logo { position: relative; text-decoration: none; }
.rr-title {
  position: absolute; left: 0; right: 0; bottom: 8%; display: flex; flex-direction: column; align-items: center;
  pointer-events: none; text-align: center; line-height: 1;
}
.rr-title-main {
  font-family: "Cinzel", "Metamorphous", Georgia, serif; font-weight: 700; font-size: clamp(22px, 3.4vw, 40px); letter-spacing: 3px;
  color: #ecd08e; text-shadow: 0 2px 0 #3a2a12, 0 0 18px rgba(0,0,0,.95), 0 0 40px rgba(0,0,0,.8);
  background: linear-gradient(180deg, #fff1c4 0%, #e0b860 55%, #a87a2c 100%); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; filter: drop-shadow(0 3px 6px rgba(0,0,0,.9));
}
.rr-title-sub {
  margin-top: 6px; font-family: "Cinzel", Georgia, serif; font-weight: 600; font-size: clamp(11px, 1.4vw, 16px);
  letter-spacing: 10px; color: #d9cfbd; text-shadow: 0 0 10px #000, 0 1px 2px #000;
}
