/* Гиганты Пандоры — сайт игры (15.10.2026). Стиль интерфейса игры: тёмные стальные панели, янтарный акцент #f5a833. */
:root {
  --bg: #0a0c0f;
  --bg2: #0f1216;
  --panel: #13171c;
  --panel2: #191e25;
  --line: #262d36;
  --line2: #333c47;
  --text: #e8e4da;
  --muted: #98a1ab;
  --dim: #6c7580;
  --amber: #f5a833;
  --amber2: #ffc663;
  --amber-bg: rgba(245, 168, 51, .1);
  --red: #e0533d;
  --green: #79c24f;
  --blue: #55a8e0;
  --violet: #b98cf0;
  --radius: 10px;
  --head: "Russo One", "Arial Black", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--body); }
body { min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--amber2); text-decoration: none; }
a:hover { color: #fff; }
img { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 400; letter-spacing: .02em; margin: 0 0 .6em; line-height: 1.2; }
h1 { font-size: clamp(26px, 4vw, 40px); }
h2 { font-size: clamp(21px, 2.6vw, 28px); }
h3 { font-size: 18px; }
h4 { font-size: 15px; color: var(--amber); text-transform: uppercase; letter-spacing: .08em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.amber { color: var(--amber); }
.red { color: var(--red); }
.green { color: var(--green); }
.nowrap { white-space: nowrap; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* ---------------------------------------------------------------- шапка */
.top { position: sticky; top: 0; z-index: 50; background: rgba(10, 12, 15, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 22px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); flex: none; }
.brand img { width: 40px; height: 40px; }
.brand b { font: 18px var(--head); letter-spacing: .03em; }
.brand b span { color: var(--amber); }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { color: var(--muted); padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 14px; }
.nav a:hover { color: var(--text); background: var(--panel); }
.nav a.on { color: var(--amber); background: var(--amber-bg); }
.top .acts { display: flex; gap: 8px; align-items: center; }
.burger { display: none; background: none; border: 1px solid var(--line2); color: var(--text); border-radius: 8px;
  width: 40px; height: 38px; font-size: 18px; cursor: pointer; }
@media (max-width: 980px) {
  .burger { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg2); flex-direction: column;
    padding: 10px 16px 16px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .top .acts .btn.dl { display: none; }
}

/* ---------------------------------------------------------------- кнопки, поля */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line2);
  background: var(--panel2); color: var(--text); padding: 9px 16px; border-radius: 9px; font: 600 14px var(--body);
  cursor: pointer; transition: .15s; white-space: nowrap; }
.btn:hover { border-color: var(--amber); color: #fff; }
.btn.amber { background: linear-gradient(180deg, #ffb94a, #e8941c); color: #1b1408; border-color: #ffb94a; }
.btn.amber:hover { filter: brightness(1.08); color: #000; }
.btn.big { padding: 13px 24px; font-size: 16px; border-radius: 11px; }
.btn.small { padding: 5px 10px; font-size: 13px; }
.btn.ghost { background: transparent; }
.btn:disabled { opacity: .5; cursor: default; }
input, select { background: var(--bg2); border: 1px solid var(--line2); color: var(--text); border-radius: 9px;
  padding: 9px 12px; font: 14px var(--body); min-width: 0; }
input:focus, select:focus { outline: none; border-color: var(--amber); }
label { font-size: 13px; color: var(--muted); display: block; margin-bottom: 4px; }

/* ---------------------------------------------------------------- главная */
.hero { position: relative; min-height: 520px; display: flex; align-items: flex-end; overflow: hidden;
  border-bottom: 1px solid var(--line); }
.hero .bg { position: absolute; inset: 0; background: center 30% / cover no-repeat; }
.hero .bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 12, 15, .25) 0%, rgba(10, 12, 15, .55) 55%, var(--bg) 100%),
              linear-gradient(90deg, rgba(10, 12, 15, .85) 0%, rgba(10, 12, 15, 0) 65%); }
.hero .wrap { position: relative; padding-top: 80px; padding-bottom: 56px; }
.hero .logo { width: 96px; height: 96px; margin-bottom: 14px; filter: drop-shadow(0 6px 24px rgba(245, 168, 51, .35)); }
.hero h1 { font-size: clamp(34px, 6vw, 64px); margin-bottom: 10px; }
.hero h1 span { color: var(--amber); }
.hero .lead { font-size: clamp(16px, 2vw, 19px); color: #d4cfc4; max-width: 640px; margin-bottom: 24px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; }
.statbar { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: -34px 0 40px; position: relative; }
.statbar div { background: var(--panel); padding: 16px 18px; }
.statbar b { display: block; font: 26px var(--head); color: var(--amber); }
.statbar span { color: var(--muted); font-size: 13px; }

/* ---------------------------------------------------------------- общие блоки */
main { flex: 1; }
.page { padding: 32px 0 60px; }
.crumbs { color: var(--dim); font-size: 13px; margin-bottom: 12px; }
.crumbs a { color: var(--muted); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card.pad0 { padding: 0; }
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.tile { display: flex; gap: 14px; align-items: center; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px; color: var(--text); transition: .15s; }
.tile:hover { border-color: var(--amber); transform: translateY(-1px); color: var(--text); }
.tile .ic { width: 52px; height: 52px; border-radius: 12px; background: var(--amber-bg); color: var(--amber);
  display: grid; place-items: center; font-size: 26px; flex: none; }
.tile b { font: 16px var(--head); display: block; }
.tile span { color: var(--muted); font-size: 13px; }
.cols { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
.cols3 { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.side { display: grid; gap: 20px; grid-template-columns: 340px 1fr; align-items: start; }
@media (max-width: 900px) { .cols, .cols3, .side { grid-template-columns: 1fr; } }
.sec { margin-top: 36px; }
.sec > h2 { display: flex; align-items: baseline; gap: 12px; }
.sec > h2 small { font: 14px var(--body); color: var(--muted); }
.news { display: grid; gap: 12px; }
.news .n { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--amber); border-radius: 8px; padding: 14px 16px; }
.news .n time { color: var(--dim); font-size: 12px; }
.news .n b { display: block; font: 16px var(--head); margin: 2px 0 6px; }
.news .n p { margin: 0; color: #cfcac0; font-size: 14px; }
.feat { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feat .f { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.feat .f i { font-style: normal; font-size: 26px; color: var(--amber); }
.feat .f b { display: block; font: 16px var(--head); margin: 8px 0 6px; }
.feat .f p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------------------------------------------------------------- фильтры и списки */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 16px; }
.filters .grow { flex: 1; min-width: 200px; }
.filters input.num { width: 90px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tabs a, .tabs button { background: var(--panel); border: 1px solid var(--line); color: var(--muted); padding: 7px 13px;
  border-radius: 999px; font: 600 13px var(--body); cursor: pointer; }
.tabs a.on, .tabs button.on { color: #1b1408; background: var(--amber); border-color: var(--amber); }
.tabs a:hover, .tabs button:hover { color: var(--text); border-color: var(--line2); }
.tabs a.on:hover, .tabs button.on:hover { color: #000; }
.count { color: var(--dim); font-size: 13px; margin: -6px 0 10px; }
.list { display: grid; gap: 8px; }
.row { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; background: var(--panel);
  border: 1px solid var(--line); border-radius: 9px; padding: 8px 14px 8px 8px; color: var(--text); }
.row:hover { border-color: var(--amber); color: var(--text); }
.row .nm { font-weight: 600; }
.row .sub { color: var(--muted); font-size: 13px; }
.row .rt { text-align: right; font-size: 13px; color: var(--muted); }
.row .rt b { color: var(--text); font-size: 14px; }
.icon { width: 48px; height: 48px; border-radius: 8px; background: #0b0e12 center / contain no-repeat; border: 1px solid var(--line2);
  flex: none; image-rendering: auto; }
.icon.big { width: 96px; height: 96px; border-radius: 12px; }
.thumb { width: 52px; height: 52px; border-radius: 8px; background: #0b0e12 center / contain no-repeat; border: 1px solid var(--line2); }
.thumb.big { width: 220px; height: 220px; border-radius: 14px; background-color: #0d1014; }
.lvl { display: inline-block; min-width: 34px; text-align: center; font: 13px var(--head); padding: 2px 6px; border-radius: 6px;
  background: var(--panel2); border: 1px solid var(--line2); color: var(--amber2); }
.tag { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--panel2);
  border: 1px solid var(--line2); color: var(--muted); margin: 0 4px 4px 0; }
.tag.amber { color: var(--amber); border-color: rgba(245, 168, 51, .4); background: var(--amber-bg); }
.more { text-align: center; margin-top: 16px; }

/* ---------------------------------------------------------------- таблицы */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; color: var(--dim); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .06em;
  padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.r, .tbl th.r { text-align: right; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: var(--panel2); }
.scroll { overflow-x: auto; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-weight: 600; }

/* ---------------------------------------------------------------- карточка предмета/юнита */
.head { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 20px; flex-wrap: wrap; }
.head .t { flex: 1; min-width: 240px; }
.head .t h1 { margin-bottom: 6px; }
.chance { display: inline-block; min-width: 56px; text-align: right; font-weight: 700; }
.bar { height: 8px; border-radius: 99px; background: #0b0e12; border: 1px solid var(--line2); overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, #e8941c, #ffc663); }
.bar.green i { background: linear-gradient(90deg, #4f9c2f, #9ad86e); }

/* ---------------------------------------------------------------- мир */
.worldmap { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #0c0d10; }
.worldmap img { display: block; width: 100%; height: auto; }
.worldmap a.rg { position: absolute; border: 1px solid transparent; border-radius: 6px; }
.worldmap a.rg:hover, .worldmap a.rg.on { border-color: var(--amber); background: rgba(245, 168, 51, .12); }
.worldmap a.rg span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); white-space: nowrap;
  font: 12px var(--head); color: #fff; text-shadow: 0 1px 3px #000, 0 0 8px #000; pointer-events: none; }
.worldmap a.rg.fill span { color: #9fe3ff; font-size: 11px; }
.worldmap a.rg.small span { display: none; }
.worldmap a.rg.small:hover span { display: block; z-index: 2; }
@media (max-width: 700px) { .worldmap a.rg span { font-size: 9px; } .worldmap a.rg.fill span { display: none; } }
.mapimg { border-radius: var(--radius); border: 1px solid var(--line); display: block; width: 100%; background: #0c0d10; }

/* ---------------------------------------------------------------- рейтинг, достижения */
.face { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: var(--panel2); border: 1px solid var(--line2); }
.face.big { width: 120px; height: 120px; border-radius: 16px; }
.place { font: 16px var(--head); color: var(--dim); width: 34px; text-align: center; }
.place.p1 { color: #ffd34d; } .place.p2 { color: #d9dee4; } .place.p3 { color: #e09a5c; }
.achs { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.ach { display: flex; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.ach .ai { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; flex: none;
  background: #0d1014; border: 1px solid var(--line2); color: var(--dim); }
.ach.got { border-color: rgba(245, 168, 51, .55); background: linear-gradient(180deg, rgba(245, 168, 51, .08), var(--panel)); }
.ach.got .ai { color: var(--amber); border-color: rgba(245, 168, 51, .6); }
.ach b { display: block; font-family: var(--head); font-weight: 400; }
.ach p { margin: 2px 0 8px; color: var(--muted); font-size: 13px; }
.ach .bar { margin-top: 4px; }
.ach small { color: var(--dim); font-size: 12px; }

/* ---------------------------------------------------------------- кабинет */
.login { max-width: 420px; margin: 30px auto; }
.login form { display: grid; gap: 12px; }
.login .err { color: var(--red); font-size: 14px; min-height: 20px; }
.profile { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.profile .info { flex: 1; min-width: 240px; }
.profile .info h1 { margin-bottom: 4px; }
.money { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 10px; }
.money div b { font: 20px var(--head); color: var(--amber); display: block; }
.money div span { color: var(--muted); font-size: 12px; }
.slots { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); }
.slot { position: relative; aspect-ratio: 1; border-radius: 9px; background: #0b0e12 center / 80% no-repeat; border: 1px solid var(--line2); }
.slot.empty { opacity: .35; }
.slot em { position: absolute; right: 4px; bottom: 2px; font-style: normal; font-size: 12px; font-weight: 700; color: #fff;
  text-shadow: 0 1px 2px #000; }
.slot:hover { border-color: var(--amber); }
.statgrid { display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.statgrid div { background: var(--panel); padding: 12px 14px; }
.statgrid b { display: block; font: 22px var(--head); color: var(--text); }
.statgrid span { color: var(--muted); font-size: 12px; }
.admin-frame { width: 100%; height: 80vh; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }

/* ---------------------------------------------------------------- подсказка, подвал, загрузка */
.tip { position: fixed; z-index: 100; pointer-events: none; background: #0d1014; border: 1px solid var(--line2);
  border-radius: 9px; padding: 10px 12px; font-size: 13px; max-width: 300px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); display: none; }
.tip b { font-family: var(--head); font-weight: 400; display: block; margin-bottom: 4px; }
.tip div { color: var(--muted); }
.foot { border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; padding: 26px 0; margin-top: 40px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; }
.load { color: var(--muted); padding: 40px 0; text-align: center; }
.load::before { content: ""; display: block; width: 32px; height: 32px; margin: 0 auto 12px; border-radius: 50%;
  border: 3px solid var(--line2); border-top-color: var(--amber); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { color: var(--muted); padding: 30px; text-align: center; border: 1px dashed var(--line2); border-radius: var(--radius); }
.guide h3 { margin-top: 1.4em; color: var(--amber); }
.guide li { margin-bottom: .4em; }
