/* lg_site.css - look of the web pages (index.php, account.php, character.php).  Palette: dark stone + gold, like the game. */
:root { --bg:#0d0b10; --panel:#17141c; --panel2:#201b27; --line:#6b5420; --gold:#e8c35a; --gold2:#b8962e; --txt:#ece6d6; --mut:#a79f8c; --ok:#6fd48a; --bad:#ff7a7a; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.lgSite { margin: 0; min-height: 100vh; color: var(--txt); font: 16px/1.55 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  background: linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.85)), url('https://static.vecteezy.com/system/resources/previews/009/169/459/non_2x/panorama-of-foggy-sunset-with-mountain-and-river-from-hill-top-vector.jpg') no-repeat center center fixed; background-size: cover; }
body.lgSite a { color: var(--gold); }
body.lgSite::-webkit-scrollbar { width: 12px; } body.lgSite::-webkit-scrollbar-track { background: #151118; } body.lgSite::-webkit-scrollbar-thumb { background: #4a3d1c; border-radius: 8px; }
.lgHero { text-align: center; padding: 22px 12px 8px; }
.lgHero img { height: 92px; width: auto; max-width: 92%; filter: drop-shadow(0 4px 14px rgba(232,195,90,.25)); }
.lgPage { width: min(1100px, 100% - 24px); margin: 0 auto 40px; }
.lgCard, .cartao { background: linear-gradient(160deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin: 0 0 22px; box-shadow: 0 8px 28px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.04); }
.lgCard h2, .cartao h2 { margin: 0 0 12px; font: 400 22px 'Orbitron', 'Segoe UI', sans-serif; letter-spacing: .06em; color: var(--gold); text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.lgCard h2::after, .cartao h2::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
/* nav */
#lgNav { position: sticky; top: 0; z-index: 1000; background: rgba(13,11,16,.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); box-shadow: 0 4px 18px rgba(0,0,0,.5); font-family: 'Segoe UI', system-ui, sans-serif; }
#lgNav .in { width: min(1100px, 100% - 16px); margin: 0 auto; display: flex; align-items: center; gap: 4px; padding: 6px 0; }
#lgNav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; background: none; overflow: visible; }
#lgNav li { float: none; }
#lgNav a { display: block; padding: 8px 13px; border-radius: 8px; color: #d9d0b8; text-decoration: none; font-size: 15px; font-weight: 600; border: 1px solid transparent; transition: .15s; }
#lgNav a:hover { background: #2a2330; color: #fff; border-color: #3f3550; }
#lgNav a.active { background: linear-gradient(#3a2e12, #2a2010); color: #ffe9a8; border-color: var(--gold2); }
#lgNavBtn { display: none; margin-left: auto; background: #2a2330; color: var(--gold); border: 1px solid var(--line); border-radius: 8px; font-size: 22px; padding: 4px 12px; cursor: pointer; }
#lgNavTitle { display: none; font: 400 16px 'Orbitron', sans-serif; color: var(--gold); letter-spacing: .08em; }
@media (max-width: 1000px) {
  #lgNavTitle { display: block; } #lgNavBtn { display: block; }
  #lgNav .in { flex-wrap: wrap; }
  #lgNav ul { display: none; flex-direction: column; width: 100%; padding: 6px 0 4px; }
  #lgNav.open ul { display: flex; }
  #lgNav a { padding: 12px 14px; }
}
/* forms */
.lgAuth { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 22px; }
.lgAuth .lgCard { margin: 0; }
@media (max-width: 760px) { .lgAuth { grid-template-columns: 1fr; gap: 14px; } }
body.lgSite form { background: none; border: none; padding: 0; margin: 0; display: block; white-space: normal; }
.lgField { display: block; margin: 0 0 12px; }
.lgField span { display: block; font-size: 13px; color: var(--mut); margin: 0 0 4px; letter-spacing: .04em; text-transform: uppercase; }
body.lgSite input[type=text], body.lgSite input[type=password], body.lgSite input[type=email] { width: 100%; background: #0e0c12; color: #fff; border: 1px solid #4a3d1c; border-radius: 8px; padding: 11px 12px; font-size: 16px; outline: none; }
body.lgSite input[type=text]:focus, body.lgSite input[type=password]:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232,195,90,.18); }
.radio-group { display: flex; gap: 18px; margin: 0 0 12px; }
.radio-group label { display: flex; align-items: center; gap: 6px; font-size: 15px; margin: 0; cursor: pointer; }
body.lgSite input[type=radio] { accent-color: var(--gold); }
body.lgSite button, .lgBtn { background: linear-gradient(#e8c35a, #b8962e); color: #1c1608; border: 0; border-radius: 9px; padding: 11px 20px; font-weight: 800; font-size: 16px; cursor: pointer; letter-spacing: .02em; transition: .15s; }
body.lgSite button:hover, .lgBtn:hover { filter: brightness(1.12); transform: translateY(-1px); background: linear-gradient(#e8c35a, #b8962e); color: #1c1608; }
.lgAuth button { width: 100%; }
.g-recaptcha { margin: 0 0 12px; transform-origin: left top; }
.notice { background: #2a1d10; border: 1px solid var(--gold2); color: #ffe9a8; border-radius: 10px; padding: 12px 16px; margin: 0 0 18px; text-align: center; font-weight: 600; }
.lgLinks { text-align: center; margin: 0 0 22px; color: var(--mut); font-size: 14px; }
.lgLinks a { margin: 0 8px; }
/* content */
.cartao { font-size: 16px; }
.cartao img.medieval-frame, #cartaoId img { max-width: 100%; height: auto; }
.cartao ul.news { list-style: none; margin: 0; padding: 0; }
.cartao ul.news li { float: none; position: relative; padding: 9px 12px 9px 34px; margin: 0 0 6px; background: rgba(255,255,255,.03); border-left: 3px solid var(--gold2); border-radius: 0 8px 8px 0; }
.cartao ul.news li::before { content: '\2726'; position: absolute; left: 11px; top: 9px; color: var(--gold); }
.cartao ul.news li.pin { background: rgba(232,195,90,.09); border-left-color: var(--gold); }
.medieval-frame { border: 6px solid #7d6432; border-radius: 12px; box-shadow: 0 0 18px rgba(125,100,50,.45); background: #111; display: block; margin: 14px auto; }
.lgVideo { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; border: 2px solid var(--line); background: #000; }
.lgVideo iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* tables */
.rankTabs { text-align: center; margin: 0 0 12px; }
body.lgSite button.rankTab { background: #241e2c; color: #d9d0b8; border: 1px solid #3f3550; padding: 9px 16px; margin: 0 4px 6px; border-radius: 8px; font-size: 15px; font-weight: 700; }
body.lgSite button.rankTab.sel { background: linear-gradient(#e8c35a, #b8962e); color: #1c1608; border-color: var(--gold); }
#t01, #t02, #t03, table.lgTable { width: 100%; border-collapse: collapse; margin: 0 auto; background: transparent; color: var(--txt); font-weight: 600; }
#t01 th, #t02 th, #t03 th, table.lgTable th { text-align: left; padding: 10px 12px; background: #2a2010; color: var(--gold); border: 0; border-bottom: 1px solid var(--gold2); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
#t01 td, #t02 td, #t03 td, table.lgTable td { padding: 10px 12px; border: 0; border-bottom: 1px solid rgba(255,255,255,.07); }
#t01 tr:hover td, #t02 tr:hover td, #t03 tr:hover td { background: rgba(232,195,90,.06); }
.charSearch { display: flex; gap: 8px; max-width: 520px; margin: 0 auto 16px; }
.charSearch input[type=text] { flex: 1; }
.lgFoot { text-align: center; color: var(--mut); font-size: 14px; padding: 8px 12px 30px; }
.lgFoot a { color: var(--mut); text-decoration: none; }
#backToTopBtn { display: none; position: fixed; bottom: 24px; right: 22px; z-index: 9999; border: 1px solid var(--line); background: #241e2c; color: var(--gold); width: 46px; height: 46px; border-radius: 50%; font-size: 22px; padding: 0; cursor: pointer; }
.donate { text-align: center; margin: 0 0 18px; }
@media (max-width: 700px) {
  .lgHero img { height: 70px; } .lgCard, .cartao { padding: 14px 14px; border-radius: 12px; }
  .cartao { font-size: 15px; overflow-wrap: anywhere; } #t01 th, #t02 th, #t03 th, #t01 td, #t02 td, #t03 td { padding: 8px 6px; font-size: 14px; }
  .charSearch { flex-direction: column; }
}

/* the older pages (account.php, character.php) keep their own markup: it just takes the same look */
body.lgSite { padding: 0 !important; font-family: 'Segoe UI', system-ui, sans-serif !important; color: var(--txt); }
body.lgSite .wrap { width: min(780px, 100% - 24px); max-width: none; margin: 0 auto 40px; }
body.lgSite .card, body.lgSite .box, body.lgSite section.card { background: linear-gradient(160deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 28px rgba(0,0,0,.5); }
body.lgSite h1 { font: 400 28px 'Orbitron', 'Segoe UI', sans-serif; color: var(--gold); letter-spacing: .05em; }
body.lgSite .wrap form { display: flex; }
body.lgSite .wrap input[type=text] { width: auto; flex: 1; }
body.lgSite th { color: var(--gold); }
