/* /wiki/css.css
   Fresh styling that still matches your site's 'Forge ring' vibe
*/

:root{
  --bg0:#0a090b;
  --bg1:#141214;
  --panel:#1f1d20;
  --panel2:#252329;
  --border:rgba(255,255,255,.10);
  --border2:rgba(255,255,255,.14);
  --text:#f5f3f0;
  --muted:#b4a8a0;
  --accent:#f3b25c;
  --accent2:#f87c3b;

  --radius:16px;
  --radius2:22px;
  --shadow: 0 18px 42px rgba(0,0,0,.55);
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.is-hidden { display: none !important; }
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:
    radial-gradient(circle at 50% 30%, #2c221f 0, #150f0d 55%, #050404 100%),
    radial-gradient(circle at top, #383033 0, #141214 45%, #0a090b 100%);
}

/* Accessibility */
.skip-link{
  position:absolute;
  left:-999px;
  top:8px;
  padding:10px 12px;
  background:#111;
  border:1px solid var(--border2);
  border-radius:10px;
  color:var(--text);
  z-index:9999;
}
.skip-link:focus{ left:10px; }

/* Top bar */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(to bottom, rgba(10,9,11,.92), rgba(10,9,11,.70));
  backdrop-filter: blur(10px);
}

.brand{ display:flex; align-items:center; gap:10px; }
.brand-badge{
  width: 38px; height: 38px; border-radius: 14px;
  background: radial-gradient(circle at 30% 25%, rgba(243,178,92,.42), rgba(248,124,59,.20), rgba(0,0,0,.05));
  border: 1px solid rgba(243,178,92,.35);
  box-shadow: 0 0 22px rgba(243,178,92,.12) inset;
}
.brand-title{
  font-weight:800;
  letter-spacing:.04em;
  color: var(--accent);
}
.brand-subtitle{ font-size: 12px; color: var(--muted); }

.topnav{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:flex-end;
}
.topnav-link{
  text-decoration:none;
  color: var(--muted);
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255,255,255,.03);
  font-size: 13px;
}
.topnav-link:hover{
  color: var(--accent);
  border-color: rgba(243,178,92,.45);
  background: rgba(243,178,92,.08);
}
.topnav-link.is-active{
  color: var(--accent);
  border-color: rgba(243,178,92,.55);
  background: linear-gradient(135deg, rgba(243,178,92,.12), rgba(248,124,59,.08));
}

/* Page layout — FULL WIDTH on desktop */
.page{
  width:100%;
  padding: 16px;
}

/* Hero */
.hero{
  border:1px solid var(--border);
  border-radius: var(--radius2);
  background: linear-gradient(135deg, rgba(31,29,32,.72), rgba(37,35,41,.58));
  box-shadow: var(--shadow);
}
.hero-inner{
  padding: 18px 18px 16px;
}
.hero h1{
  margin: 0 0 8px;
  letter-spacing: .02em;
}
.hero-lead{
  margin: 0 0 14px;
  color: rgba(245,243,240,.92);
  max-width: 980px;
}
.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  text-decoration:none;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 12px;
  border: 1px solid rgba(0,0,0,.6);
  box-shadow: 0 4px 0 rgba(0,0,0,.55);
}
.btn-primary{
  color:#1a120a;
  background: linear-gradient(to bottom, var(--accent), #eaa24b);
  border-color: rgba(0,0,0,.75);
}
.btn-primary:hover{ filter: brightness(1.06); }
.btn-ghost{
  color: var(--text);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border2);
  box-shadow: none;
}
.btn-ghost:hover{
  border-color: rgba(243,178,92,.40);
  color: var(--accent);
}

/* Tabs container */
.tabs-shell{
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  background: rgba(0,0,0,.20);
  box-shadow: var(--shadow);
}

/* Tabs (radio + labels) */
.tabs-root{
  padding: 12px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}
.tabs-root { position: relative; }

/* hide radios without pushing them off-page */
.tab-radio{
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  /* keep it at the top of the tab container so focusing it doesn't scroll */
  top: 0;
  left: 0;
}
.tab-btn{
  cursor:pointer;
  user-select:none;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
  letter-spacing:.08em;
  text-transform: uppercase;
}
.tab-btn:hover{
  border-color: rgba(243,178,92,.35);
  color: var(--accent);
}

.tabs-panels{
  width:100%;
  padding: 12px;
  border-top: 1px solid var(--border);
}

/* Panels default hidden */
.panel{ display:none; }

/* Checked panel rules */
#tab-ores:checked ~ .tabs-panels .panel-ores{ display:block; }
#tab-weapons:checked ~ .tabs-panels .panel-weapons{ display:block; }
#tab-armors:checked ~ .tabs-panels .panel-armors{ display:block; }
#tab-forging:checked ~ .tabs-panels .panel-forging{ display:block; }
#tab-progression:checked ~ .tabs-panels .panel-progression{ display:block; }

/* Active tab highlight */
#tab-ores:checked + .tab-btn,
#tab-weapons:checked + .tab-btn,
#tab-armors:checked + .tab-btn,
#tab-forging:checked + .tab-btn,
#tab-progression:checked + .tab-btn{
  color: var(--accent);
  border-color: rgba(243,178,92,.55);
  background: linear-gradient(135deg, rgba(243,178,92,.12), rgba(248,124,59,.08));
  box-shadow: 0 0 0 2px rgba(243,178,92,.10) inset;
}

/* Panel layout */
.panel-head{
  display:flex;
  gap:12px;
  align-items:flex-start;
  justify-content:space-between;
  flex-wrap:wrap;
  margin-bottom: 12px;
}
.panel-head h2{ margin:0 0 4px; }
.muted{ color: var(--muted); }
.small{ font-size: 12px; }

/* Cards */
.card, .mini-card, .world-card{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(31,29,32,.72), rgba(37,35,41,.56));
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}
.card{ padding: 14px; }
.card h3{ margin: 0 0 10px; }
.card-head{
  display:flex;
  gap:12px;
  align-items:flex-end;
  justify-content:space-between;
  flex-wrap:wrap;
  margin-bottom: 10px;
}
.controls{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:flex-end;
}
.control{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width: 220px;
  font-size: 12px;
  color: var(--muted);
}
.control input, .control select{
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.35);
  color: var(--text);
  outline: none;
}
.control input:focus, .control select:focus{
  border-color: rgba(243,178,92,.55);
  box-shadow: 0 0 0 2px rgba(243,178,92,.12);
}

/* Tables */
.table-wrap{ width:100%; overflow:auto; border-radius: 14px; border: 1px solid rgba(255,255,255,.08); }
.table{
  width:100%;
  border-collapse: collapse;
  min-width: 900px;
}
.table th, .table td{
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  vertical-align: top;
}
.table th{
  position: sticky;
  top: 0;
  background: rgba(10,9,11,.92);
  color: rgba(245,243,240,.92);
  text-align:left;
  font-size: 12px;
  letter-spacing:.06em;
  text-transform: uppercase;
}

/* Bullets */
.bullets{ margin: 8px 0; padding-left: 18px; }
.bullets li{ margin: 6px 0; }

/* Callouts */
.callout{
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(243,178,92,.22);
  background: radial-gradient(circle at top left, rgba(243,178,92,.12), rgba(0,0,0,.16));
}
.callout.compact{ margin-top: 10px; }
.callout-title{
  font-weight: 900;
  letter-spacing:.03em;
  margin-bottom: 6px;
  color: rgba(255,230,180,.95);
}
.callout-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}
.inline-actions{ display:flex; gap:10px; flex-wrap:wrap; }

/* Two-column blocks */
.two-col{
  margin-top: 12px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.mini-card{
  padding: 12px;
}
.mini-card h4{ margin: 0 0 6px; }

/* Forging demo */
.range-demo{ margin-top: 10px; }
.range-label{ display:block; color: var(--muted); margin-bottom: 8px; }
.range-demo input[type="range"]{ width: 100%; }

.chance-row{
  margin-top: 10px;
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.chance-bar{
  flex: 1 1 260px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
  overflow:hidden;
}
.chance-fill{
  height: 100%;
  background: linear-gradient(to right, var(--accent), var(--accent2));
}
.chance-text{ min-width: 170px; }

/* Progression grid */
.world-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.world-card{
  overflow:hidden;
}
.world-title{
  padding: 12px 14px;
  font-weight: 900;
  letter-spacing:.06em;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(243,178,92,.15), rgba(248,124,59,.06));
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.world-body{ padding: 12px 14px; }
.world-body h4{ margin: 10px 0 6px; }
.world-actions{ padding: 12px 14px; border-top: 1px solid rgba(255,255,255,.08); }

/* Footer */
.footer{
  margin-top: 16px;
  padding: 14px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  background: rgba(0,0,0,.18);
  display:flex;
  gap:10px;
  justify-content:space-between;
  flex-wrap:wrap;
  color: var(--muted);
}
.footer-right a{
  color: var(--muted);
  text-decoration:none;
  margin-left: 10px;
}
.footer-right a:hover{ color: var(--accent); }

/* Noscript */
.noscript{
  margin: 12px 16px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: rgba(0,0,0,.20);
  color: var(--muted);
}

/* Responsive */
@media (max-width: 980px){
  .control{ min-width: 180px; }
  .two-col{ grid-template-columns: 1fr; }
  .world-grid{ grid-template-columns: 1fr; }
  .topbar{ position: static; }
}



/* Pills + mini lists (wiki tables) */
.pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding: 2px 10px;
  border-radius: 999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

.pill-world{
  background: linear-gradient(180deg, rgba(248,124,59,.18), rgba(248,124,59,.06));
  border-color: rgba(248,124,59,.35);
}

.pill-variant{
  background: rgba(157,108,255,.10);
  border-color: rgba(157,108,255,.35);
}

.pill-mult{
  background: rgba(76,203,255,.10);
  border-color: rgba(76,203,255,.35);
}

.mini-list{
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
}

.mini-list li{
  margin: 0;
}

.trait-desc{
  color: var(--text);
}

.trait-val{
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  margin-left: 6px;
}

/* SEO section */
.seo-section{
  margin-top: 16px;
  padding: 0 0 6px;
}
.seo-card{
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  background: linear-gradient(135deg, rgba(31,29,32,.72), rgba(37,35,41,.56));
  box-shadow: var(--shadow);
  padding: 14px;
}
.seo-links{
  margin: 10px 0 14px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.seo-link{
  text-decoration:none;
  color: var(--text);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
}
.seo-link:hover{
  border-color: rgba(243,178,92,.45);
  color: var(--accent);
  background: rgba(243,178,92,.08);
}
.seo-grid{
  margin-top: 10px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.seo-mini{
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(0,0,0,.18);
}
.faq{
  margin-top: 10px;
  display:grid;
  gap: 8px;
}
.faq details{
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  background: rgba(0,0,0,.18);
  padding: 10px 12px;
}
.faq summary{
  cursor: pointer;
  font-weight: 900;
  color: rgba(255,230,180,.95);
}
.seo-updated{
  margin-top: 12px;
  font-size: 12px;
}

@media (max-width: 980px){
  .seo-grid{ grid-template-columns: 1fr; }
}
