/* RefonixPW forum style: child of prosilver, same look as the main site */
@import url("../../prosilver/theme/stylesheet.css");

:root {
  --navy: #060d1b; --page: #07122a; --panel: #0e2042; --panel-2: #0a1730;
  --bar-1: #2a4f94; --bar-2: #15305f;
  --gold: #e2b857; --gold-l: #f6e0a0; --gold-d: #8a6f2c; --gold-dd: #5a4113;
  --text: #d9dde6; --muted: #93a0b8; --link: #8fd0ff; --ok: #6fd28a; --bad: #e0685f; --line: #1d3566;
  --display: "Philosopher", Georgia, "Times New Roman", serif;
  --body: Tahoma, Verdana, "DejaVu Sans", sans-serif;
}

html { height: auto; }
body#phpbb {
  margin: 0; padding: 0;
  background: #050a16 url("/assets/tile.svg");
  color: var(--text);
  font: 13px / 1.55 var(--body);
}
body#phpbb a { color: var(--link); }
body#phpbb a:hover { color: var(--gold-l); }

/* ---------- site chrome (same as the main site) ---------- */
.topline { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 10px; padding: 6px 12px 7px; background: linear-gradient(#1d3b70, #0b1a36); border-bottom: 2px solid var(--gold-d); box-shadow: 0 2px 10px rgba(0,0,0,.6); font: 700 15px / 1.2 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-l); }
.topline__num { font-size: 26px; color: #fff; text-shadow: 0 0 12px rgba(255,200,100,.85), 0 2px 0 #000; }
.topline__sep { color: var(--gold-d); }
.topline__state { font-size: 13px; letter-spacing: .04em; }
.led { display: inline-block; width: 11px; height: 11px; margin-right: 7px; border-radius: 50%; background: #6d778a; box-shadow: inset 0 0 0 1px rgba(0,0,0,.5); vertical-align: -1px; }
body.is-up .led { background: var(--ok); box-shadow: 0 0 8px var(--ok), inset 0 0 0 1px rgba(0,0,0,.4); animation: rxpulse 2.4s ease-in-out infinite; }
body.is-down .led { background: var(--bad); box-shadow: 0 0 8px var(--bad), inset 0 0 0 1px rgba(0,0,0,.4); }
@keyframes rxpulse { 50% { opacity: .45; } }

#rx-page { width: 1000px; max-width: 100%; margin: 0 auto; background: var(--page); border-left: 2px solid var(--gold-d); border-right: 2px solid var(--gold-d); box-shadow: 0 0 0 1px #000, 0 0 44px rgba(0,0,0,.85); }
.rx-head { position: relative; height: 150px; background: #0a1c3e url("/assets/banner.svg") center / cover no-repeat; border-bottom: 3px solid var(--gold-d); }
.rx-logo { position: absolute; left: 28px; top: 26px; display: flex; align-items: center; gap: 14px; text-decoration: none; }
.rx-logo img { width: 96px; height: 96px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.75)); }
.rx-logo__name { display: block; font: 700 46px / 1 var(--display); background: linear-gradient(#fff3c4, #e2b857 55%, #a97a22); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-stroke: 1px rgba(60,38,4,.55); filter: drop-shadow(0 3px 6px rgba(0,0,0,.85)); }
.rx-logo__tag { display: block; margin-top: 8px; font: 700 16px / 1.2 var(--display); letter-spacing: .12em; text-transform: uppercase; color: #d3e4f8; text-shadow: 0 2px 6px #000; }
.rx-menu { display: flex; background: linear-gradient(#1d3b70, #0b1a36); border-bottom: 2px solid var(--gold-d); }
body#phpbb .rx-menu a { flex: 1; padding: 12px 6px; text-align: center; text-decoration: none; font: 700 15px / 1.2 var(--display); letter-spacing: .05em; text-transform: uppercase; color: var(--gold-l); border-right: 1px solid #040b1a; box-shadow: inset -1px 0 0 rgba(255,255,255,.08), inset 0 1px 0 rgba(255,255,255,.14); }
body#phpbb .rx-menu a:last-child { border-right: 0; }
body#phpbb .rx-menu a:hover, body#phpbb .rx-menu a.is-here { color: #2b1c04; background: linear-gradient(#f8e3a0, #dcab40 52%, #b4852a); text-shadow: 0 1px 0 rgba(255,244,196,.6); }
.rx-divider { display: block; margin: 4px auto 0; max-width: 90%; height: auto; }
.rx-foot { padding: 10px 14px 22px; text-align: center; font-size: 11px; color: var(--muted); }
.rx-foot p { margin: 2px 0; }
.rx-foot__links { margin-bottom: 6px !important; }

/* ---------- forum body ---------- */
#wrap.wrap { width: auto; max-width: none; min-width: 0; margin: 0; padding: 14px; background: transparent; border: 0; border-radius: 0; box-shadow: none; color: var(--text); }
.headerbar { background: transparent; border: 0; box-shadow: none; padding: 0 0 8px; margin: 0; color: var(--text); }
.headerbar .site-description, .headerbar #site-description { display: none; }
.headerbar .inner::after, .headerbar .inner { min-height: 0; }
.search-header { float: right; margin: 0; background: #040a17; border: 1px solid var(--gold-d); border-radius: 3px; box-shadow: inset 0 0 0 1px #000; }
.search-box .inputbox, .search-box .inputbox:hover { background: #040a17; color: var(--text); border: 0; }
.search-box .button-search, .search-box .button-search-end { background: linear-gradient(#f8e3a0, #dcab40 52%, #b4852a); border: 0; color: #2b1c04; }

.navbar { background: linear-gradient(var(--bar-1), var(--bar-2)); border: 1px solid var(--gold-d); border-radius: 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.18); padding: 3px 10px; color: var(--text); }
.navbar ul.linklist > li, .navbar .linklist a, .navbar a { color: var(--gold-l); }
.navbar a:hover { color: #fff; }
ul.linklist .dropdown, .dropdown-container .dropdown { color: var(--text); }
.breadcrumbs .crumb a, .breadcrumbs .crumb:before { color: var(--gold-l); }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; color: var(--gold-l); border-bottom-color: var(--line); }
h2.forum-title, h2.topic-title, h2.pagetitle { font: 700 24px / 1.2 var(--display); color: var(--gold-l); margin-top: 14px; }
h2 a, h3 a { color: var(--gold-l); }
p, .content { color: var(--text); }
hr { border-color: var(--line); background: transparent; }

.forabg, .forumbg { background: linear-gradient(var(--bar-1), var(--bar-2)); border: 1px solid var(--gold-d); border-radius: 0; box-shadow: inset 0 0 0 1px #000, 0 3px 10px rgba(0,0,0,.5); margin-bottom: 14px; padding: 0 0 2px; }
ul.topiclist li.header dt, ul.topiclist li.header dd, ul.topiclist li.header { color: var(--gold-l); text-shadow: 0 1px 0 #000; }
ul.topiclist li.header dt a, li.header a { color: var(--gold-l); }
li.header dt, li.header dd { font: 700 13px / 1.4 var(--display); letter-spacing: .08em; text-transform: uppercase; }
ul.topiclist dl { border-color: var(--line); }
ul.topiclist li.row, ul.topiclist.forums li.row, ul.topiclist.topics li.row { background: var(--panel-2); border-top: 1px dashed var(--line); border-bottom: 0; color: var(--text); box-shadow: none; }
ul.topiclist li.row.bg1, li.row:nth-child(even) { background: var(--panel); }
li.row:hover, ul.topiclist li.row dl:hover { background: #12294f; }
li.row dt, li.row dd, li.row .topic-poster, li.row .lastpost { color: var(--text); }
li.row a.forumtitle, li.row a.topictitle, a.forumtitle, a.topictitle { font: 700 16px / 1.3 var(--display); color: var(--gold-l); }
li.row a.forumtitle:hover, a.topictitle:hover { color: #fff; }
dd.posts, dd.topics, dd.views, dd.lastpost, dd.redirect, dd.moderation, dd.time, dd.info { border-left-color: var(--line); color: var(--muted); }
.row .list-inner .forum-image, .row-item { background-image: none; }
.topiclist .row-item { background-color: transparent; }
.row-item dt, .row-item dd { color: var(--text); }
.forum_read dt, .topic_read dt, .forum_unread dt { background-image: none; }
.row-item .icon, .icon:before { color: var(--gold); }
.row-item dt .list-inner { padding-left: 6px; }
.topic_read, .forum_read { color: var(--muted); }

.panel, .rules, .stat-block, .jumpbox, .pagination li a, .action-bar .button { color: var(--text); }
.panel { background: linear-gradient(#10244a, var(--panel-2)); border: 1px solid var(--gold-d); border-radius: 0; box-shadow: inset 0 0 0 1px #000, inset 0 0 0 2px #17305f; margin-bottom: 14px; color: var(--text); }
.panel .inner, .panel .content { color: var(--text); }
.rules { background: #1b2a4a; border: 1px solid var(--gold-d); color: var(--text); }
.stat-block h3, .stat-block strong { color: var(--gold-l); }
.stat-block, .stat-block p { color: var(--text); }
.stat-block h3 { border-bottom: 1px dashed var(--line); }

.post, .post.bg1, .post.bg2 { background: var(--panel-2); border: 1px solid var(--gold-d); border-radius: 0; box-shadow: inset 0 0 0 1px #000; margin-bottom: 10px; color: var(--text); }
.post.bg2 { background: var(--panel); }
.postbody, .postbody .content, .postbody h3, .postbody h3 a { color: var(--text); }
.postbody h3 a { color: var(--gold-l); font: 700 17px / 1.3 var(--display); }
.postprofile { border-left-color: var(--line); color: var(--muted); }
.postprofile dd, .postprofile dt, .postprofile strong { color: var(--muted); }
.postprofile .username, .username, .username-coloured { color: var(--gold-l); }
.postbody .author, .author { color: var(--muted); }
.signature, .postbody .notice { border-top-color: var(--line); color: var(--muted); }
.back2top .top { color: var(--gold-l); }
blockquote { background: #040a17; border: 1px solid var(--line); color: var(--text); }
blockquote cite, blockquote cite > span { color: var(--gold-l); }
.codebox { background: #040a17; border-color: var(--line); }
.codebox p { color: var(--gold-l); border-bottom-color: var(--line); }
.codebox code { color: #cfe3ff; background: transparent; }
.attachbox, .attach-image { background: #040a17; border-color: var(--line); }

.pagination li a, .pagination li span { background: #040a17; border: 1px solid var(--gold-dd); color: var(--gold-l); border-radius: 0; box-shadow: none; }
.pagination li.active span, .pagination li a:hover { background: linear-gradient(#f8e3a0, #dcab40 52%, #b4852a); color: #2b1c04; border-color: var(--gold-dd); }

/* buttons and form controls */
a.button1, input.button1, input.button3, a.button2, input.button2, .button, .action-bar .button, a.button:visited {
  font: 700 13px / 1.25 var(--display);
  letter-spacing: .04em; text-transform: uppercase;
  color: #2b1c04 !important;
  background: linear-gradient(#f8e3a0, #dcab40 52%, #b4852a);
  border: 1px solid var(--gold-dd); border-radius: 3px;
  box-shadow: inset 0 1px 0 #fff6cf, inset 0 -2px 0 #94681b, 0 2px 4px rgba(0,0,0,.6);
  text-shadow: 0 1px 0 rgba(255,244,196,.6);
}
a.button1:hover, input.button1:hover, a.button2:hover, input.button2:hover, .button:hover { color: #2b1c04 !important; filter: brightness(1.1); border-color: var(--gold-dd); }
.button .icon, .button-secondary { color: #2b1c04; }
input.button2, a.button2, .button-secondary { color: #fff !important; background: linear-gradient(#4f89d6, #2a5aa0 52%, #1b3f78); border-color: #0b1d3e; text-shadow: 0 1px 0 #0b1d3e; box-shadow: inset 0 1px 0 #a5c9f4, inset 0 -2px 0 #153463, 0 2px 4px rgba(0,0,0,.6); }
input.inputbox, textarea.inputbox, select, input.post, textarea.post, .inputbox, input[type=text], input[type=password], input[type=email], input[type=search], textarea, select {
  background: #040a17; color: var(--text); border: 1px solid var(--gold-d); border-radius: 2px; box-shadow: inset 0 1px 3px rgba(0,0,0,.6);
}
input.inputbox:focus, textarea:focus, select:focus { border-color: var(--gold); outline: 0; }
fieldset, fieldset dl, fieldset dt label, label { color: var(--text); }
fieldset dl:hover dt label { color: var(--gold-l); }
dl.details dt, dl.details dd { color: var(--text); }
dd label { color: var(--text); }
.error, .errorbox p, .errorbox, p.error, #error { color: #ffb3ac; }
.errorbox { background: #3a1417; border-color: var(--bad); }
.successbox { background: #11331f; border-color: var(--ok); }
.dropdown .pointer, .dropdown .pointer-inner { border-color: transparent; }
.dropdown, .dropdown-extended .dropdown-contents { background: var(--panel-2); border: 1px solid var(--gold-d); color: var(--text); }
.dropdown li, .dropdown a { color: var(--link); border-color: var(--line); }
.dropdown-extended ul li:hover { background: #12294f; }
.dropdown-extended .header { color: var(--gold-l); border-bottom-color: var(--line); background: var(--panel); }
.tabs .tab > a, .tabs-container .tab > a { background: linear-gradient(var(--bar-1), var(--bar-2)); border: 1px solid var(--gold-d); color: var(--gold-l); }
.tabs .activetab > a, .tabs .activetab > a:hover { background: var(--panel-2); color: #fff; border-bottom-color: var(--panel-2); }
.cp-main .panel, .cp-menu { background: transparent; }
.cp-menu a, .cp-menu li { color: var(--link); }
.table1 thead th, table.table1 thead th { background: linear-gradient(var(--bar-1), var(--bar-2)); color: var(--gold-l); border-color: var(--gold-d); }
table.table1 tbody tr, table.table1 td { background: var(--panel-2); color: var(--text); border-color: var(--line); }
table.table1 tbody tr:hover { background: #12294f; }
.jumpbox .dropdown-select, .jumpbox { color: var(--text); }
.copyright { color: var(--muted); padding: 10px 0 0; }
.copyright a { color: var(--link); }
.page-footer .navbar { margin-top: 10px; }
p.rules, .sitename, .site-description { color: var(--muted); }
.phpbb_alert { background: var(--panel-2); border: 1px solid var(--gold); color: var(--text); }
.darken { background: #000; }
.content p.rules, .rules .inner, ul.forums, .rowbg { color: var(--text); }
div.rowbg, .row-new { background: transparent; }
li.header dd { text-align: center; }
.polls dl { border-color: var(--line); }
.resultbar, .pollbar1, .pollbar2 { background: #040a17; }
.pollbar1, .pollbar2, .pollbar3, .pollbar4, .pollbar5 { background: var(--gold); border-color: var(--gold-d); }

/* ---------- phones ---------- */
@media (max-width: 1020px) { #rx-page { border-left: 0; border-right: 0; } }
@media (max-width: 820px) {
  #wrap.wrap { padding: 10px; }
  .rx-menu { flex-wrap: wrap; }
  body#phpbb .rx-menu a { flex: 1 1 33%; border-bottom: 1px solid #040b1a; }
  .rx-head { height: auto; padding: 14px; }
  .rx-logo { position: static; }
  .rx-logo img { width: 64px; height: 64px; }
  .rx-logo__name { font-size: 34px; }
  .rx-logo__tag { font-size: 12px; }
  .search-header { float: none; }
}
@media (prefers-reduced-motion: reduce) { body.is-up .led { animation: none; } }

/* ---------- higher specificity fixes ---------- */
body#phpbb li.row a.forumtitle, body#phpbb li.row a.topictitle, body#phpbb a.forumtitle, body#phpbb a.topictitle { font: 700 16px / 1.3 var(--display); color: var(--gold-l); }
body#phpbb a.forumtitle:hover, body#phpbb a.topictitle:hover { color: #fff; }
body#phpbb .navbar a, body#phpbb .navbar .linklist a, body#phpbb .breadcrumbs .crumb a { color: var(--gold-l); }
body#phpbb .navbar a:hover { color: #fff; }
body#phpbb h2 a, body#phpbb h3 a, body#phpbb li.header a, body#phpbb .postbody h3 a { color: var(--gold-l); }
body#phpbb input.inputbox, body#phpbb textarea.inputbox, body#phpbb select, body#phpbb input.post, body#phpbb textarea.post,
body#phpbb input[type=text], body#phpbb input[type=password], body#phpbb input[type=email], body#phpbb input[type=search], body#phpbb textarea {
  background: #040a17; color: var(--text); border: 1px solid var(--gold-d);
}
body#phpbb .username, body#phpbb .username-coloured { color: var(--gold-l); }
body#phpbb li.row, body#phpbb li.row dd, body#phpbb li.row dt { color: var(--text); }
body#phpbb ul.topiclist li.header, body#phpbb ul.topiclist li.header dt, body#phpbb ul.topiclist li.header dd { color: var(--gold-l); }
body#phpbb .copyright, body#phpbb .copyright a { color: var(--muted); }
body#phpbb .copyright a:hover { color: var(--gold-l); }
body#phpbb .forabg ul.topiclist li.row:first-of-type, body#phpbb .forumbg ul.topiclist li.row:first-of-type { border-top: 1px solid var(--gold-dd); }
body#phpbb .postprofile dd, body#phpbb .postprofile dt, body#phpbb .postprofile strong { color: var(--muted); }
body#phpbb .postprofile .username { color: var(--gold-l); }

/* ---------- v4 chrome: counter tiles, language switch, motion ---------- */
.counter { display: inline-flex; gap: 3px; vertical-align: middle; font-family: var(--display); font-weight: 700; }
.counter .dg { position: relative; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; color: var(--gold-l); background: linear-gradient(#0b1530 0 49%, #050b1b 51% 100%); border: 1px solid var(--gold-dd); border-radius: 3px; box-shadow: inset 0 0 0 1px #000, inset 0 1px 0 rgba(255,255,255,.08), 0 1px 0 rgba(0,0,0,.6); }
.counter .dg::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0,0,0,.75); }
.counter .dg b { font-weight: 700; font-variant-numeric: tabular-nums; }
.counter .dg.is-pad { color: #5b6a8b; }
.counter .dg.tick b { animation: rxroll .5s cubic-bezier(.2,.8,.3,1); }
@keyframes rxroll { from { transform: translateY(-85%); opacity: 0; } to { transform: none; opacity: 1; } }
.counter--sm .dg { width: 17px; height: 24px; font-size: 18px; }
.topline { position: relative; padding-left: 150px; padding-right: 150px; }
.lang { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
.lang select { appearance: none; -webkit-appearance: none; max-width: 132px; padding: 4px 24px 4px 9px; font: 700 12px / 1.2 var(--body); color: var(--gold-l); background: #040a17 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23e2b857'/%3E%3C/svg%3E") no-repeat right 8px center; border: 1px solid var(--gold-d); border-radius: 3px; cursor: pointer; }
.lang select option { background: #0b1a36; color: #eee; }
.rx-head { overflow: hidden; }
.rx-head::before { content: ""; position: absolute; inset: -4%; background: inherit; animation: rxdrift 38s ease-in-out infinite alternate; z-index: 0; }
@keyframes rxdrift { from { transform: scale(1.03) translate3d(-1.2%, 0, 0); } to { transform: scale(1.1) translate3d(1.2%, -1.4%, 0); } }
.rx-sparks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.rx-logo { z-index: 2; }
.rx-logo__img { animation: rxbob 6s ease-in-out infinite; }
@keyframes rxbob { 50% { transform: translateY(-4px); } }
body#phpbb .rx-menu a { position: relative; overflow: hidden; }
body#phpbb .rx-menu a::after { content: ""; position: absolute; inset: 0 auto 0 -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); transition: left .6s; }
body#phpbb .rx-menu a:hover::after { left: 120%; }
@media (max-width: 820px) { .topline { padding: 6px 12px 38px; } .lang { top: auto; bottom: 6px; right: 50%; transform: translateX(50%); } .rx-sparks { display: none; } }
@media (prefers-reduced-motion: reduce) { .rx-head::before, .rx-logo__img { animation: none; } .counter .dg.tick b { animation: none; } }
