/* Ogamura — site no estilo dos servidores clássicos de Tibia, no universo dos micélios */
:root {
  --night: #0d0b12; --wood: #3a2a1e; --wood2: #2a1d15; --gold: #f2c75a; --gold2: #c9952e;
  --moss: #1f3d2c; --moss2: #2f5b3e; --bio: #7affd9; --bio2: #b48cff; --pink: #ff8fa8;
  --parch: #f1e5c8; --parch2: #e6d6b0; --ink: #2a1d18; --muted: #6b5545;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font-family: Nunito, "Trebuchet MS", system-ui, sans-serif; font-size: 15px; line-height: 1.55; background: var(--night); min-height: 100vh; }
a { color: #7a3a2a; font-weight: 700; } a:hover { color: #c94d6a; }
img { max-width: 100%; display: block; }
h1, h2, h3, .logo span, .bigbtn span, .cath { font-family: MedievalSharp, Georgia, serif; font-weight: normal; }

/* fundo ilustrado + esporos luminosos */
.bg { position: fixed; inset: 0; background: url(/img/fundo.jpg) center top / cover; z-index: -2; }
.bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 0%, rgba(13,11,18,.1), rgba(13,11,18,.85) 75%), linear-gradient(transparent 60%, var(--night)); }
.spores { position: fixed; inset: 0; z-index: -1; pointer-events: none; background-image:
  radial-gradient(2px 2px at 12% 30%, var(--bio), transparent), radial-gradient(2px 2px at 82% 18%, var(--bio2), transparent),
  radial-gradient(1.5px 1.5px at 40% 70%, var(--bio), transparent), radial-gradient(2px 2px at 66% 52%, #ff9ad5, transparent),
  radial-gradient(1.5px 1.5px at 24% 86%, var(--bio2), transparent), radial-gradient(2px 2px at 92% 76%, var(--bio), transparent);
  animation: float 14s ease-in-out infinite alternate; opacity: .8; }
@keyframes float { to { transform: translateY(-40px); opacity: .45; } }

/* grade de 3 colunas */
.layout { display: grid; grid-template-columns: 210px minmax(0, 1fr) 200px; gap: 18px; max-width: 1200px; margin: 0 auto; padding: 22px 16px 10px; align-items: start; }
.left, .right { position: sticky; top: 16px; }

/* logo */
.logo { display: flex; flex-direction: column; align-items: center; text-decoration: none; padding: 14px 8px 10px; background: linear-gradient(#2a1d15ee, #1a1310ee); border: 3px solid var(--wood); outline: 2px solid #120c09; box-shadow: 0 8px 24px #000a, inset 0 0 0 2px #5a412c; }
.logo img { width: 64px; image-rendering: pixelated; filter: drop-shadow(0 0 10px #ff8fa866); }
.logo span { font-size: 32px; color: var(--gold); letter-spacing: 2px; text-shadow: 2px 2px 0 #6a2440, 0 0 14px #ff8fa855; line-height: 1.1; margin-top: 4px; }
.logo small { color: var(--bio); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; font-weight: 800; }
.ver { margin: 8px 0; text-align: center; font-size: 12px; color: #d8c8a8; background: #1a1310dd; border: 2px solid var(--wood); padding: 4px; }
.ver i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #5fe86f; box-shadow: 0 0 6px #5fe86f; margin-right: 4px; }

/* menu lateral por categorias */
.menu { display: flex; flex-direction: column; gap: 6px; }
.cat { background: linear-gradient(#2a1d15f2, #1d1410f2); border: 3px solid var(--wood); outline: 2px solid #120c09; }
.cath { width: 100%; display: flex; align-items: center; gap: 9px; background: linear-gradient(var(--moss2), var(--moss)); border: none; border-bottom: 2px solid #0e1c14; color: var(--gold); font-size: 19px; padding: 7px 10px; cursor: pointer; text-shadow: 1px 1px 0 #000; text-align: left; }
.cath svg { width: 22px; height: 22px; flex: none; filter: drop-shadow(1px 1px 0 #000); }
.cath:hover { color: #fff1b8; }
.items { display: none; padding: 4px 0 6px; }
.cat.open .items { display: block; }
.items a { display: block; color: #e6d6b0; font-weight: 700; font-size: 13.5px; text-decoration: none; padding: 4px 12px 4px 26px; position: relative; }
.items a::before { content: '›'; position: absolute; left: 13px; color: var(--muted); }
.items a:hover { color: #fff; background: #ffffff0d; }
.items a.on { color: var(--bio); } .items a.on::before { content: '✦'; left: 9px; color: var(--bio); font-size: 11px; top: 6px; }

/* caixas centrais (pergaminho com faixa de musgo) */
.box { margin-bottom: 18px; border: 3px solid var(--wood); outline: 2px solid #120c09; box-shadow: 0 10px 30px #000b; background: var(--parch); }
.box > h2 { margin: 0; font-size: 22px; color: var(--gold); padding: 6px 14px 5px; letter-spacing: 1px; background: linear-gradient(var(--moss2), var(--moss)); border-bottom: 3px solid var(--wood); text-shadow: 1px 1px 0 #000, 0 0 10px #f2c75a44; display: flex; align-items: center; gap: 10px; }
.box > h2::before { content: ''; width: 10px; height: 10px; background: var(--bio); transform: rotate(45deg); box-shadow: 0 0 8px var(--bio); flex: none; }
.box > h2 small { margin-left: auto; font-family: Nunito, sans-serif; font-size: 12px; color: #cfe8d8; letter-spacing: 0; }
.inner { padding: 14px 18px 16px; background: radial-gradient(ellipse at top, #fbf3df, var(--parch) 60%, var(--parch2)); }
.inner > :first-child { margin-top: 0; } .inner > :last-child { margin-bottom: 0; }
.inner h3 { font-size: 22px; margin: 18px 0 6px; color: #6a2440; }
.inner p, .inner li { color: #3a2a20; }
.lead { font-size: 16px; }

/* rapidinhas */
.quick { list-style: none; margin: 0; padding: 0; }
.quick li { display: grid; grid-template-columns: 92px 1fr; gap: 8px; padding: 5px 4px; border-bottom: 1px dashed #c9b48a; font-size: 14px; }
.quick li:last-child { border: none; }
.quick time { color: var(--muted); font-size: 12.5px; font-weight: 800; }

/* notícias */
.post-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; background: #5a1e30; color: #ffe6ee; padding: 5px 12px; margin: -14px -18px 14px; font-weight: 800; font-size: 14px; }
.post-h time { color: #f8b7c8; font-size: 12px; }
.banner { border: 3px solid var(--wood); margin: 0 auto 12px; box-shadow: 0 4px 0 #0002; image-rendering: pixelated; }
.banner-title { position: relative; }
.banner-title b { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); font-family: MedievalSharp, serif; font-weight: normal; font-size: clamp(22px, 4vw, 40px); color: var(--gold); text-shadow: 3px 3px 0 #2a0f1a, 0 0 18px #000; white-space: nowrap; }
.more { display: inline-block; margin-top: 6px; }

/* destaque da criatura */
.featured { display: grid; grid-template-columns: 170px 1fr; gap: 16px; align-items: center; }
.featured canvas { width: 170px; height: 170px; image-rendering: pixelated; background: radial-gradient(#2a2036, #120e18); border: 3px solid var(--wood); }
.featured h3 { margin: 0 0 4px; }

/* coluna direita: pedestal + botões grandes */
.pedestal { text-align: center; background: linear-gradient(#2a1d15f2, #1a1310f2); border: 3px solid var(--wood); outline: 2px solid #120c09; padding: 8px 8px 10px; margin-bottom: 12px; color: #e6d6b0; }
.pedestal canvas { width: 140px; height: 140px; image-rendering: pixelated; display: block; margin: 0 auto 2px; }
.pedestal b { display: block; font-family: MedievalSharp, serif; font-weight: normal; font-size: 30px; color: var(--bio); text-shadow: 0 0 10px #7affd966; line-height: 1; }
.pedestal small { font-size: 12px; }
.bigbtn { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; text-decoration: none; height: 128px; margin-bottom: 12px; border: 3px solid var(--wood); outline: 2px solid #120c09; color: #fff; box-shadow: 0 10px 24px #000a, inset 0 0 0 2px #ffffff22, inset 0 -18px 30px #0006; transition: transform .15s, filter .15s; overflow: hidden; }
.bigbtn::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, #ffffff40, transparent 60%); }
.bigbtn:hover { transform: translateY(-3px) scale(1.02); filter: brightness(1.15); color: #fff; }
.bigbtn svg { width: 36px; height: 36px; margin-bottom: 4px; filter: drop-shadow(2px 2px 0 #0008); }
.bigbtn span { font-size: 24px; line-height: 1; color: var(--gold); text-shadow: 2px 2px 0 #000; }
.bigbtn small { font-size: 11.5px; font-weight: 800; opacity: .9; margin-top: 4px; }
.bigbtn.dl { background: linear-gradient(#c94d6a, #6a1e36); }
.bigbtn.play { background: linear-gradient(#3f8a3a, #1d4a22); }
.bigbtn.beast { background: linear-gradient(#7a4fb0, #34205a); }

/* elementos utilitários */
.btn { display: inline-flex; align-items: center; gap: 8px; background: #c94d6a; color: #fff; padding: 10px 18px; text-decoration: none; border: 2px solid var(--wood); border-bottom-width: 4px; font-weight: 800; }
.btn:hover { color: #fff; filter: brightness(1.1); }
.btn.green { background: #3f7a33; } .btn.off { background: #777; pointer-events: none; }
.note { background: #fff8e6; border-left: 4px solid var(--gold2); padding: 8px 12px; font-size: 14px; margin: 12px 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.card { background: #fbf3df; border: 2px solid #c9b48a; box-shadow: 3px 3px 0 #0001; }
.card .cv { width: 100%; aspect-ratio: 1; display: block; image-rendering: pixelated; background: radial-gradient(#2a2036, #120e18); }
.card .cb { padding: 8px 10px 10px; font-size: 13px; line-height: 1.45; }
.card .cb h4 { margin: 0 0 4px; font-family: MedievalSharp, serif; font-weight: normal; font-size: 18px; color: #4a1a2a; display: flex; justify-content: space-between; gap: 6px; align-items: baseline; }
.tag { font-family: Nunito, sans-serif; font-size: 10px; padding: 1px 6px; background: #c94d6a; color: #fff; letter-spacing: 1px; white-space: nowrap; }
.tag.f { background: #5a6fa0; } .tag.g { background: #3f7a33; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; margin: 6px 0; text-align: center; }
.stats div { background: #efe0bd; padding: 3px 2px; } .stats b { display: block; font-size: 14px; } .stats small { color: var(--muted); font-size: 10px; }
.row { margin: 2px 0; } .row span { color: var(--muted); }
.res { display: inline-block; font-size: 11px; padding: 0 5px; margin: 1px 2px 1px 0; border: 1px solid; background: #fff8; }
.res.imune { color: #555; } .res.forte { color: #2a5a8a; } .res.fraco { color: #9a2a1a; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; vertical-align: middle; box-shadow: 0 0 0 1px #0003; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.filters button { font-family: inherit; font-weight: 800; background: #efe0bd; color: #5a4535; border: 2px solid #c9b48a; padding: 4px 10px; cursor: pointer; font-size: 13px; }
.filters button.on { background: var(--moss2); color: var(--gold); border-color: var(--moss); }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: #2f6a35; background: #dff3d8; border: 1px solid #8fc88a; padding: 1px 9px; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: #3fbf4f; animation: blink 1.6s infinite; } @keyframes blink { 50% { opacity: .25; } }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; background: #e6d3a8; padding: 6px 8px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .5px; color: #5a4535; }
table.t td { padding: 6px 8px; border-bottom: 1px solid #d9c59a; vertical-align: top; }
kbd { background: #fff8e6; border: 1px solid #b8a27a; border-bottom-width: 3px; padding: 0 7px; font-family: inherit; font-size: 13px; font-weight: 800; }
.el { display: grid; grid-template-columns: 8px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px dashed #c9b48a; }
.el .bar { background: var(--c); box-shadow: 0 0 8px var(--c); }
.el h4 { margin: 0; font-family: MedievalSharp, serif; font-weight: normal; font-size: 20px; color: #3a1a2a; }
.el .meta { font-size: 13px; color: var(--muted); }
.map-wrap { position: relative; max-width: 560px; margin: 0 auto 14px; border: 4px solid var(--wood); box-shadow: 0 6px 0 #0002; }
.map-wrap canvas { width: 100%; display: block; image-rendering: pixelated; }
.siblings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.siblings .card { padding: 12px; } .siblings h4 { font-size: 22px !important; }
.road li { margin: 6px 0; } .road .done { color: #2f6a35; } .road .next { color: #8a5a10; }

.foot { text-align: center; color: #b9a8a0; font-size: 13px; padding: 16px 0 34px; } .foot a { color: var(--bio); }
.mbar { display: none; }

/* celular */
@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; padding-top: 70px; }
  .left, .right { position: static; }
  .left { display: none; } body.menu-open .left { display: block; }
  .left .logo { display: none; }
  .right { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; order: -1; }
  .right .pedestal { display: none; }
  .bigbtn { height: 96px; margin: 0; } .bigbtn span { font-size: 18px; } .bigbtn svg { width: 26px; height: 26px; }
  .mbar { display: flex; position: fixed; top: 0; left: 0; right: 0; z-index: 10; height: 56px; align-items: center; justify-content: space-between; padding: 0 14px; background: linear-gradient(#2a1d15, #1a1310); border-bottom: 3px solid var(--wood); }
  .mlogo { display: flex; align-items: center; gap: 8px; color: var(--gold); font-family: MedievalSharp, serif; font-size: 24px; text-decoration: none; font-weight: normal; } .mlogo img { width: 32px; image-rendering: pixelated; }
  .mtoggle { background: var(--moss2); color: var(--gold); border: 2px solid var(--wood); font-size: 20px; padding: 2px 12px; }
  .featured { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .siblings { grid-template-columns: 1fr; }
  .quick li { grid-template-columns: 1fr; gap: 0; }
}
