/* Rebirth Classic: portal inspirada no visual 7.6, com arte e identidade 100% nossas. */
:root {
  --night: #15110d;
  --wood: #21170f;
  --wood-light: #3a2918;
  --copper: #7a4f25;
  --gold: #e1b85a;
  --gold-light: #f5dda0;
  --gold-dark: #9d742f;
  --paper: #efe1bd;
  --paper-light: #fbf2d4;
  --paper-dark: #d7c18f;
  --ink: #30220f;
  --red: #8d291b;
  --green: #4f752e;
  --green-dark: #2e481d;
  --link: #5d3b16;
  --serif: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: Verdana, Tahoma, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background:
    linear-gradient(rgba(16,12,8,.78), rgba(16,12,8,.78)),
    repeating-linear-gradient(90deg, #251a10 0, #251a10 38px, #1d160f 39px, #1d160f 76px);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font: 13px/1.45 var(--sans);
  background:
    radial-gradient(circle at 50% 18%, rgba(120,89,48,.22), transparent 38rem),
    repeating-linear-gradient(0deg, transparent 0, transparent 31px, rgba(255,255,255,.018) 32px);
}

a { color: var(--link); }
a:hover { color: var(--red); }

img.sprite {
  image-rendering: pixelated;
  width: 32px;
  height: 32px;
  object-fit: contain;
  vertical-align: middle;
}

.page {
  width: min(1180px, calc(100% - 24px));
  margin: 12px auto 28px;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.55));
}

/* ---------------------------------------------------------------- cabeçalho */
.banner {
  position: relative;
  height: 174px;
  overflow: hidden;
  border: 3px solid #51391f;
  border-bottom: 1px solid var(--gold-dark);
  border-radius: 7px 7px 0 0;
  background:
    linear-gradient(180deg, rgba(7,12,7,.05), rgba(12,9,5,.72)),
    linear-gradient(180deg, #6f8791 0, #9bab9c 33%, #4d6537 34%, #344a27 58%, #5f4a2d 59%, #342718 100%);
  box-shadow:
    inset 0 0 0 1px rgba(238,199,113,.22),
    inset 0 -28px 36px rgba(0,0,0,.38);
}

.banner::before {
  content: "";
  position: absolute;
  inset: 0 42% 0 0;
  opacity: .72;
  background:
    linear-gradient(135deg, transparent 0 45%, rgba(31,31,24,.32) 46% 47%, transparent 48%),
    repeating-linear-gradient(90deg, rgba(73,58,39,.85) 0 18px, rgba(43,36,26,.85) 19px 38px);
  -webkit-mask-image: linear-gradient(90deg, #000 65%, transparent);
  mask-image: linear-gradient(90deg, #000 65%, transparent);
}

.banner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 18px;
  background:
    repeating-linear-gradient(90deg, #4f3b24 0 14px, #382919 15px 27px);
  border-top: 1px solid rgba(240,196,104,.32);
}

.logo {
  position: absolute;
  z-index: 3;
  left: 30px;
  top: 26px;
  text-decoration: none;
}

.logo b {
  display: block;
  color: var(--gold-light);
  font: 700 58px/.88 var(--serif);
  letter-spacing: 1.5px;
  text-shadow:
    0 2px 0 #80602d,
    0 4px 0 #3c2812,
    3px 6px 8px rgba(0,0,0,.95);
  -webkit-text-stroke: 1px #503715;
}

.logo span {
  display: block;
  width: max-content;
  margin: 11px 0 0 8px;
  color: #fff4cf;
  font: italic 700 16px var(--serif);
  letter-spacing: 4px;
  text-transform: uppercase;
  text-shadow: 2px 2px 3px #000;
}

.banner .scene {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 10px;
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.banner .scene img {
  image-rendering: pixelated;
  filter: drop-shadow(4px 6px 3px rgba(0,0,0,.72));
}
.banner .scene img.x2 { width: 132px; height: 132px; }
.banner .scene img.x15 { width: 72px; height: 72px; }

/* navegação superior com aparência clássica, sem reproduzir marcas da CipSoft */
.topnav {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  min-height: 42px;
  border: 3px solid #51391f;
  border-top: 0;
  background:
    linear-gradient(180deg, #80603a 0, #4b351d 48%, #322213 49%, #2a1d12 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,238,190,.24),
    0 3px 8px rgba(0,0,0,.38);
}
.topnav a {
  display: grid;
  place-items: center;
  color: #f2dda2;
  font: 700 13px var(--serif);
  letter-spacing: .8px;
  text-decoration: none;
  text-transform: uppercase;
  border-right: 1px solid #24170d;
  border-left: 1px solid rgba(255,238,190,.12);
  text-shadow: 1px 2px 2px #160e07;
}
.topnav a:first-child { border-left: 0; }
.topnav a:last-child { border-right: 0; }
.topnav a:hover,
.topnav a.on {
  color: #fff3c5;
  background: linear-gradient(180deg, rgba(183,136,68,.72), rgba(105,70,37,.8));
  box-shadow: inset 0 -3px 0 var(--gold);
}

/* ---------------------------------------------------------------- moldura das três colunas */
.cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 10px;
  padding: 10px;
  border: 3px solid #51391f;
  border-top: 0;
  border-radius: 0 0 7px 7px;
  background:
    linear-gradient(rgba(31,23,14,.96), rgba(23,17,11,.96)),
    repeating-linear-gradient(45deg, #382718 0 2px, #2a1d12 2px 4px);
  box-shadow:
    inset 0 0 0 1px rgba(240,196,104,.2),
    inset 0 8px 16px rgba(0,0,0,.45);
}

.menu { display: none; }

.box {
  margin-bottom: 10px;
  overflow: hidden;
  border: 2px solid #4d351d;
  border-radius: 5px;
  background: var(--paper);
  box-shadow:
    inset 0 0 0 1px rgba(245,220,158,.58),
    inset 0 0 14px rgba(112,78,35,.18),
    0 3px 5px rgba(0,0,0,.62);
}

.box > h2,
.box > h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 6px 10px;
  color: var(--gold-light);
  font: 700 15px var(--serif);
  letter-spacing: .4px;
  border-bottom: 2px solid #80602f;
  background:
    linear-gradient(90deg, rgba(98,60,25,.15), transparent 65%),
    repeating-linear-gradient(90deg, #66401f 0 3px, #55341b 3px 7px);
  text-shadow: 1px 2px 2px #160e07;
}

.box > h2 { font-size: 21px; padding: 7px 12px; }
.box > h2 img.sprite,
.box > h3 img.sprite { width: 24px; height: 24px; }
.box .in { padding: 9px 10px 11px; }

/* ---------------------------------------------------------------- menu */
.menu .in { padding: 7px; }
.menu .cat {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 4px 0 3px;
  padding: 4px 6px;
  color: #392410;
  font: 700 15px var(--serif);
  text-decoration: none;
  border: 1px solid #80602f;
  border-radius: 3px;
  background:
    linear-gradient(180deg, var(--paper-light), var(--paper-dark));
  box-shadow:
    inset 0 1px 0 #fff9df,
    0 1px 2px rgba(0,0,0,.38);
}
.menu .cat:hover {
  color: var(--red);
  border-color: var(--gold-dark);
}
.menu ul {
  margin: 0 0 5px;
  padding: 0 0 0 16px;
  list-style: none;
}
.menu li a {
  display: block;
  padding: 2px 0;
  color: #4d371c;
  text-decoration: none;
}
.menu li a::before {
  content: "» ";
  color: #9a7136;
  font-weight: 700;
}
.menu li a.on,
.menu li a:hover { color: var(--red); font-weight: 700; }

/* ---------------------------------------------------------------- conteúdo */
.content > .box { min-height: 460px; }
.content .in { padding: 12px 14px 16px; }
.content h4 {
  margin: 15px 0 7px;
  color: #583619;
  font: 700 16px var(--serif);
}
.lead {
  margin-top: 0;
  color: #3a2b18;
  font: 700 14px/1.5 var(--serif);
}

/* notícias */
.news {
  margin: 0 0 12px;
  overflow: hidden;
  border: 1px solid #bea775;
  border-radius: 3px;
  background: var(--paper-light);
  box-shadow: 0 1px 2px rgba(61,42,20,.18);
}
.news .date {
  padding: 4px 10px;
  color: #fff1c4;
  font: 700 12px var(--serif);
  letter-spacing: .4px;
  background:
    linear-gradient(90deg, #7b2d1d, #4d1b12 82%, rgba(77,27,18,.3));
  border-bottom: 1px solid #8e632a;
}
.news .body {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
  padding: 9px 10px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.22), transparent),
    var(--paper);
}
.news .icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 2px solid #73552c;
  border-radius: 3px;
  background: radial-gradient(circle, #927554, #4d3925);
  box-shadow: inset 0 0 0 1px #c49c58;
}
.news h3 {
  margin: 0 0 4px;
  color: var(--ink);
  font: 700 17px var(--serif);
}
.news h3 a { color: var(--ink); text-decoration: none; }
.news h3 a:hover { color: var(--red); }
.news p { margin: 0 0 5px; }
.more::before { content: "» "; color: #9b702f; font-weight: 700; }
.byline { color: #746342; font-size: 11px; }

/* ---------------------------------------------------------------- tabelas e controles */
table.tbl,
table.grid {
  width: 100%;
  margin: 7px 0 12px;
  border: 1px solid #73552c;
  border-collapse: collapse;
  background: var(--paper-light);
}
table.tbl th,
table.grid th {
  padding: 5px 7px;
  color: var(--gold-light);
  font: 700 12px var(--sans);
  text-align: left;
  border-bottom: 1px solid #80602f;
  background: linear-gradient(#6b4523, #4b301a);
  text-shadow: 1px 1px 1px #1c1208;
}
table.tbl td,
table.grid td {
  padding: 5px 7px;
  border-top: 1px solid #cbb78a;
}
table.tbl tr:nth-child(even) td,
table.grid tr:nth-child(even) td { background: rgba(213,188,136,.26); }
table.tbl td.n,
table.tbl th.n { text-align: right; }
table.kv th { width: 38%; }

.btn,
button.btn {
  min-height: 30px;
  padding: 5px 13px;
  color: #382410;
  font: 700 13px var(--serif);
  border: 1px solid #80602f;
  border-radius: 3px;
  background:
    linear-gradient(180deg, #f7edc9, #d1ba82);
  box-shadow:
    inset 0 1px 0 #fffbed,
    0 1px 2px rgba(0,0,0,.42);
  cursor: pointer;
}
.btn:hover,
button.btn:hover {
  color: var(--red);
  border-color: #9b722f;
}
.btn.big { padding: 7px 24px; font-size: 16px; }
a.btn { display: inline-block; text-decoration: none; }

form fieldset {
  border: 1px solid #bea775;
  border-radius: 3px;
  background: rgba(255,248,222,.5);
}
form legend { color: #60401f; font: 700 14px var(--serif); }
table.form th {
  width: 38%;
  text-align: right;
  padding: 5px;
  font: 700 12px var(--sans);
}
table.form td { padding: 5px; }
input, select, textarea {
  max-width: 100%;
  padding: 5px 7px;
  color: #32230f;
  border: 1px solid #8f7449;
  border-radius: 2px;
  background: #fffaf0;
  font: 13px var(--sans);
}

/* ---------------------------------------------------------------- coluna da direita */
.status-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 0;
  border-bottom: 1px dotted #c8b27e;
}
.status-line:last-child { border-bottom: 0; }
.online-ok { color: #3f691f; font-weight: 700; }
.online-off { color: #9b2818; font-weight: 700; }
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 4px;
  border-radius: 50%;
}
.dot.on { background: #5a922d; box-shadow: 0 0 4px #79a943; }
.dot.off { background: #9a2819; box-shadow: 0 0 4px #bc553b; }
.bignum {
  text-align: center;
  color: #5a3918;
  font: 700 28px var(--serif);
}
.bignum a { color: inherit; text-decoration: none; }
.bignum small {
  display: block;
  color: #806b47;
  font: 11px var(--sans);
}
.search-form { display: flex; gap: 5px; }
.search-form input { min-width: 0; width: 100%; }
.promo {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 7px;
  align-items: center;
}
.box.lair {
  display: grid;
  height: 168px;
  place-items: center;
  background: radial-gradient(circle, #85552f, #3a2818 55%, #1e160f);
}
.box.lair img {
  width: 128px;
  height: 128px;
  image-rendering: pixelated;
  filter: drop-shadow(4px 6px 3px rgba(0,0,0,.7));
}

.side ul {
  margin: 0;
  padding: 0 0 0 14px;
}
.side li { margin: 2px 0; }
.muted { color: #776746; }
.hint {
  color: #75633f;
  font-size: 11px;
}
.alert {
  padding: 7px 9px;
  color: #772518;
  border: 1px solid #b18a61;
  background: #f1d4aa;
}
.ok {
  padding: 7px 9px;
  color: #3d611e;
  border: 1px solid #97ad6c;
  background: #e5ebc9;
}
.pager { text-align: center; margin: 8px 0; }
.pager a, .pager b { margin: 0 4px; }
.world-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.world-card {
  display: block;
  padding: 7px 9px;
  border: 1px solid #bea775;
  border-radius: 3px;
  cursor: pointer;
}
.world-card:has(input:checked) {
  border-color: #80602f;
  box-shadow: 0 0 0 1px #80602f inset;
  background: #f7edc9;
}
.world-card span,
.world-card small { display: block; }
.world-card.off { cursor: default; opacity: .55; }

footer {
  margin-top: 8px;
  padding: 10px 4px 0;
  color: #cbb991;
  font-size: 11px;
  text-align: center;
  text-shadow: 1px 1px 1px #000;
}
footer a { color: #e8c987; }

/* ---------------------------------------------------------------- responsivo */
@media (max-width: 900px) {
  .page { width: min(720px, calc(100% - 16px)); }
  .cols { grid-template-columns: 1fr; }
  .topnav { grid-template-columns: repeat(3, 1fr); }
  .topnav a { min-height: 40px; border-bottom: 1px solid #24170d; }
  .banner { height: 138px; }
  .logo b { font-size: 48px; }
  .logo span { font-size: 13px; }
  .banner .scene { right: 8px; }
  .banner .scene img.x2 { width: 96px; height: 96px; }
  .banner .scene img.x15 { width: 56px; height: 56px; }
  .side { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .side .box { margin: 0; }
}

@media (max-width: 640px) {
  .page { width: 100%; margin: 0; }
  .banner {
    height: 112px;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }
  .logo { left: 14px; top: 20px; }
  .logo b { font-size: 38px; }
  .logo span { margin-top: 7px; font-size: 10px; letter-spacing: 2px; }
  .banner .scene img.x15 { display: none; }
  .banner .scene img.x2 { width: 78px; height: 78px; }
  .cols {
    padding: 7px;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }
  .side { display: block; }
  .box.lair { display: none; }
  .world-pick { grid-template-columns: 1fr; }
  .news .body { grid-template-columns: 46px 1fr; }
  .news .icon { width: 42px; height: 42px; }
  .banner .scene { opacity: .78; }
}

.trap {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
