/* Mriya cabinet — new look (22.11.2026): the familiar cabinet layout (dark menu on the left, account and gold on top)
   in the style of the new mriya.pw: cream glass cards, orange buttons, Oswald headings, Inter text.
   Loaded after cabinet.css on pages rendered with layout2.php (body.ui2); it re-themes the shared components. */
@font-face { font-family: Inter; src: url("../v2/fonts/Inter-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url("../v2/fonts/Inter-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: Inter; src: url("../v2/fonts/Inter-Bold.woff2") format("woff2"); font-weight: 700 800; font-display: swap; }
@font-face { font-family: Oswald; src: url("../v2/fonts/Oswald-SemiBold.woff2") format("woff2"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: Oswald; src: url("../v2/fonts/Oswald-Bold.woff2") format("woff2"); font-weight: 700 900; font-display: swap; }

.ui2 {
  --parch: #faf4e7; --parch-hi: #fffcf6; --parch-lo: #f3e6cc;
  --ink: #352d24; --ink-2: #40362a; --ink-3: #5b4126; --muted: #817466;
  --gold: #f4a94e; --gold-deep: #a5652a; --wine: #b5481f; --royal: #c8641f;
  --line: #e7d7bd; --dash: 1px solid #eee0c8;
  --card: linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(252, 243, 226, 0.96));
  --frame: linear-gradient(#f0dcbc, #f0dcbc);
  --display: Oswald, "Arial Narrow", sans-serif; --sc: Inter, system-ui, sans-serif; --text: Inter, system-ui, sans-serif;
  --side-w: 250px; --top-h: 68px;
  --orange: linear-gradient(180deg, #f7b25e 0%, #e27a2c 100%);
  --dark: #17120d;
}

/* ---------- page ---------- */
body.ui2 {
  display: block; min-height: 100vh;
  background: var(--dark) url("../v2/img/backdrop.webp") center top / cover fixed;
  color: var(--ink); font: 15px/1.55 var(--text); font-variant-numeric: lining-nums;
}
.ui2 a { color: var(--gold-deep); }
.ui2 a:hover { color: var(--royal); }
.ui2 h1, .ui2 h2, .ui2 h3 { font-family: var(--display); color: var(--ink-2); }
.ui2 :focus-visible { outline: 3px solid #f4a94e; outline-offset: 2px; }
.ui2 input[type=radio], .ui2 input[type=checkbox] { accent-color: #e27a2c; }
.ui2 .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- left menu ---------- */
.side {
  position: fixed; z-index: 40; top: 0; bottom: 0; left: 0; width: var(--side-w);
  display: flex; flex-direction: column; padding: 14px 14px 16px;
  background: linear-gradient(180deg, rgba(26, 20, 13, 0.94), rgba(18, 14, 9, 0.97));
  border-right: 1px solid rgba(255, 205, 140, 0.08);
  overflow-y: auto; scrollbar-width: thin; scrollbar-color: #5a4630 transparent;
}
.side-brand { display: block; padding: 2px 4px 8px; }
.side-brand img { width: 190px; height: auto; margin: 0 auto; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.5)); }
.side-nav { display: grid; gap: 2px; }
.side-nav hr { border: 0; border-top: 1px solid rgba(255, 220, 170, 0.1); margin: 9px 10px; }
.side-nav a {
  display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 6px 12px;
  border-radius: 12px; color: #e9dbc4; text-decoration: none; font-weight: 600; font-size: 14.5px; line-height: 1.2;
  transition: background 0.15s, color 0.15s;
}
.side-nav a:hover { background: rgba(255, 186, 100, 0.08); color: #fff4e2; }
.side-nav a[aria-current] {
  background: linear-gradient(90deg, rgba(247, 178, 94, 0.24), rgba(247, 178, 94, 0.04));
  box-shadow: inset 3px 0 0 #f4a94e; color: #ffd9a3;
}
.ico { width: 30px; height: 30px; flex: none; fill: url(#ig); stroke: #3b2410; stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45)); }
.ico .d { fill: none; stroke: #3b2410; stroke-width: 1.7; }
/* the painted icon set (public/assets/v2/ic) */
img.ico-img { width: 32px; height: 32px; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5)); }
.side-nav a:hover img.ico-img, .side-nav a[aria-current] img.ico-img { filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5)) brightness(1.12); }
.card-ic img.ico-img { width: 30px; height: 30px; }
.hist-ic img.ico-img { width: 26px; height: 26px; }
.top-out img { width: 26px; height: 26px; object-fit: contain; }
.side-help { margin-top: auto; padding: 18px 10px 0; color: #a8957a; font-size: 13px; }
.side-help p { margin: 0 0 8px; }
.side-help div { display: flex; gap: 8px; }
.side-help a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 210, 150, 0.14); color: #e9dbc4; }
.side-help a:hover { color: #ffd9a3; background: rgba(255, 186, 100, 0.12); }
.side-help svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.side-shade { display: none; }

/* ---------- top bar ---------- */
.top {
  position: fixed; z-index: 30; top: 0; right: 0; left: var(--side-w); height: var(--top-h);
  display: flex; align-items: center; gap: 12px; padding: 0 26px;
  background: linear-gradient(180deg, rgba(18, 14, 9, 0.9), rgba(18, 14, 9, 0.6));
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 205, 140, 0.07);
}
.ui2 .top a { text-decoration: none; }
.top-burger, .top-emblem { display: none; }
.top-acc { display: grid; line-height: 1.2; padding-right: 10px; }
.ui2 .top-acc { color: #fff2dc; }
.top-acc strong { color: #fff2dc; font-size: 15px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-acc small { color: #a8957a; font-size: 12px; }
.ui2 .top-gold, .ui2 .top-bon {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
  border-radius: 12px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 210, 150, 0.16);
  color: #e9dbc4; font-size: 14px; white-space: nowrap;
}
.top-gold b { color: #ffd27a; } .top-bon b { color: #f3e3c6; }
.ui2 .top-gold:hover, .ui2 .top-bon:hover { border-color: rgba(255, 190, 110, 0.5); color: #fff; }
.coin { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff1c2, #f4b450 45%, #b06a1c 100%); box-shadow: inset 0 0 0 1.5px rgba(120, 66, 10, 0.6); }
.ui2 .top-plus {
  display: grid; place-items: center; width: 40px; height: 40px; margin-left: -6px; border-radius: 12px;
  background: var(--orange); box-shadow: 0 4px 12px rgba(190, 96, 24, 0.4), inset 0 1px 0 rgba(255, 236, 206, 0.8); color: #fff;
}
.top-plus svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.top-plus:hover { filter: brightness(1.08); }
.top-gap { flex: 1; }
.ui2 .top-site { display: inline-flex; align-items: center; gap: 6px; color: #d8c6aa; font-size: 14px; font-weight: 600; white-space: nowrap; }
.ui2 .top-site:hover { color: #fff; }
.top-site svg, .top-out svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.top-out { margin: 0 0 0 6px; }
.top-out button { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(255, 210, 150, 0.16); background: rgba(255, 255, 255, 0.05); color: #d8c6aa; cursor: pointer; }
.top-out button:hover { color: #fff; border-color: rgba(255, 190, 110, 0.5); }

/* ---------- content sheet ---------- */
.ui2 .main { width: auto; margin: 0 0 0 var(--side-w); padding: calc(var(--top-h) + 18px) 26px 34px; display: block; }
.sheet {
  max-width: 1260px; margin: 0 auto; min-height: calc(100vh - var(--top-h) - 52px);
  padding: 28px 32px 40px; border-radius: 26px;
  background: linear-gradient(180deg, #fffcf6, #faf4e7);
  border: 1px solid rgba(255, 226, 180, 0.9);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 #fff;
}
.ui2 .page-title { font: 700 30px/1.15 var(--display); text-transform: uppercase; letter-spacing: 0.02em; color: var(--ink); margin: 0 0 18px; }
.ui2 .block { margin-top: 28px; }
.ui2 .block h2 { font: 600 21px/1.2 var(--display); text-transform: uppercase; letter-spacing: 0.02em; color: var(--ink-2); }
.ui2 .block h2 small { font: 400 14px var(--text); text-transform: none; letter-spacing: 0; }
.ui2 .block h3 { font: 600 15px var(--text); text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.ui2 .hint { font-size: 14px; }
.ui2 .note { border: 1px solid #eedcbe; background: #fff8ec; border-radius: 14px; color: var(--ink-2); }
.ui2 .note-good { border-color: #b9d99b; background: #f1f9e6; color: #2c5112; }
.ui2 .note-bad { border-color: #efb4a4; background: #fdeee8; color: #8a2412; }
.ui2 .pos { color: #2e7d32; font-weight: 700; } .ui2 .neg { color: #b8241a; font-weight: 700; }

/* cards: every old gold-frame box gets the new glass card */
.ui2 .frame, .ui2 .lots, .ui2 .goods, .ui2 .achs, .ui2 .rank, .ui2 .roster-row, .ui2 .donate-form, .ui2 .gate-form, .ui2 .tier, .ui2 .refbox, .ui2 .goldbox,
.ui2 .chart, .ui2 .stats, .ui2 .chat-log, .ui2 .buy, .ui2 .bag-pick, .ui2 .top-set, .ui2 .mk-card, .ui2 .mk-deal, .ui2 .mk-how, .card {
  border: 1px solid #f0dcbc; border-radius: 20px;
  background: var(--card);
  box-shadow: 0 10px 30px rgba(110, 70, 20, 0.08), inset 0 1px 0 #fff;
}
.ui2 .gate-form::before, .ui2 .gate-form::after, .ui2 .tier::before, .ui2 .tier::after, .ui2 .goldbox::before, .ui2 .goldbox::after, .ui2 .refbox::before, .ui2 .refbox::after { display: none; }
.ui2 .band { display: none; }

/* buttons and fields like mriya.pw */
.ui2 .btn {
  min-height: 42px; padding: 0 18px; border: 1px solid #efcf9f; border-radius: 12px;
  background: linear-gradient(180deg, #fffaf1, #fdecd2); box-shadow: inset 0 1px 0 #fff, 0 2px 6px rgba(150, 90, 20, 0.08);
  color: #6a4313; font: 600 14.5px/1 var(--text); letter-spacing: 0; text-shadow: none;
}
.ui2 .btn:hover { color: #3d2408; border-color: #e7b26a; background: linear-gradient(180deg, #fff7ea, #fbe0b8); }
.ui2 .btn-rye, .ui2 .btn.btn-rye {
  border: 0; border-radius: 12px; padding: 0 22px; background: var(--orange); color: #fff; font-weight: 700;
  box-shadow: 0 6px 16px rgba(190, 96, 24, 0.32), inset 0 1px 0 rgba(255, 236, 206, 0.8);
}
.ui2 .btn-rye:hover { color: #fff; filter: brightness(1.06); }
.ui2 .btn-sm { min-height: 36px; padding: 0 14px; font-size: 13.5px; }
.ui2 .btn-glass { border: 1px solid rgba(255, 255, 255, 0.55); background: rgba(255, 255, 255, 0.22); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: none; }
.ui2 .btn-glass:hover { background: rgba(255, 255, 255, 0.34); color: #fff; }
.ui2 .btn[disabled] { opacity: 0.5; }
.ui2 input:not([type=hidden]):not([type=radio]):not([type=checkbox]):not([type=file]), .ui2 select, .ui2 textarea {
  min-height: 44px; padding: 0 14px; border: 1px solid #ead8ba; border-radius: 12px; background: #fffdf8; color: var(--ink);
  box-shadow: inset 0 1px 2px rgba(90, 55, 10, 0.06); font: 15px var(--text);
}
.ui2 textarea { padding: 10px 14px; }
.ui2 input::placeholder, .ui2 textarea::placeholder { color: #ad9b84; }
.ui2 input:focus, .ui2 select:focus, .ui2 textarea:focus { border-color: #e7a75a; box-shadow: 0 0 0 3px rgba(244, 169, 78, 0.22); outline: none; }
.ui2 .tbl th { font: 600 12.5px var(--text); text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid #ead8ba; }
.ui2 .tbl td { border-bottom: 1px solid #f1e5d1; font-size: 14.5px; }
.ui2 .seg a { font-family: var(--text); }

/* ---------- Головна ---------- */
.pg-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 18px; margin-bottom: 18px; }
.pg-head .page-title { margin: 0; }
.pg-acc { margin: 0; color: var(--muted); font-size: 14px; }
.pg-acc strong { color: var(--ink); }
.hero-banner {
  position: relative; overflow: hidden; display: flex; align-items: flex-end; min-height: 270px; margin-bottom: 22px;
  padding: 28px 30px; border-radius: 22px; color: #fff;
  background: linear-gradient(90deg, rgba(30, 18, 6, 0.78) 0%, rgba(30, 18, 6, 0.35) 55%, rgba(30, 18, 6, 0.05) 100%), url("../v2/img/hero.webp") center 30% / cover;
  box-shadow: 0 16px 40px rgba(70, 38, 6, 0.25);
}
.hb-text { max-width: 560px; }
.hb-kicker { margin: 0 0 6px; color: #ffd9a3; font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.08em; }
.hero-banner h2 { margin: 0 0 8px; color: #fff; font: 700 38px/1.05 var(--display); text-transform: uppercase; letter-spacing: 0.01em; text-shadow: 0 3px 14px rgba(0, 0, 0, 0.5); }
.hero-banner p { margin: 0; color: #f6eadb; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5); }
.hb-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hb-online { position: absolute; top: 18px; right: 20px; margin: 0; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: rgba(20, 12, 4, 0.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: 13.5px; }
.hb-online .dot { width: 9px; height: 9px; border-radius: 50%; background: #9a8a75; }
.hb-online .dot.is-on { background: #6fd34f; box-shadow: 0 0 0 4px rgba(111, 211, 79, 0.2); }
.card { padding: 20px 22px; margin-bottom: 20px; }
.card .hint { margin: 0 0 12px; }
.card-h { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: -2px 0 14px; padding-bottom: 14px; border-bottom: 1px solid #f0e2cb; }
.card-h h2 { margin: 0; flex: 1; min-width: 0; font: 600 19px/1.2 var(--display); text-transform: uppercase; letter-spacing: 0.02em; color: var(--ink); }
.card-ic { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 50%; background: radial-gradient(circle at 40% 30%, #3e2f20, #1f170f); box-shadow: 0 0 0 3px #f3e1c2, 0 4px 10px rgba(60, 30, 5, 0.25); }
.card-ic .ico { width: 24px; height: 24px; }
.card-more { font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }
.cards2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.tile { display: grid; align-content: start; gap: 2px; padding: 14px 16px; border-radius: 14px; background: #f7ecd8; border: 1px solid #f0e0c4; }
.tile b { font: 700 26px/1.1 var(--display); color: var(--ink); }
.tile b.pos { color: #3f8a20; }
.tile span { color: var(--muted); font-size: 13.5px; }
.tile .chip { justify-self: start; margin-top: 6px; padding: 3px 10px; border-radius: 999px; background: #fbe3bd; color: #6a4313; font: 600 12.5px var(--text); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.ui2 .promo-form { max-width: none; grid-template-columns: minmax(0, 1fr) auto; margin-bottom: 10px; }
.ref-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; }
.ref-grid .promo-form input { text-transform: none; letter-spacing: 0; }
.ref-lbl { display: block; margin: 0 0 6px; color: var(--muted); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.ref-grid .tiles { margin-bottom: 6px; }
.ladder { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; margin: 34px 0 12px; padding: 0; }
.ladder li { position: relative; display: grid; justify-items: center; gap: 4px; text-align: center; }
.ladder i { display: block; width: 100%; height: 8px; border-radius: 99px; background: #efe0c6; margin-bottom: 6px; }
.ladder li.is-done i, .ladder li.is-cur i { background: linear-gradient(90deg, #f7b25e, #e27a2c); }
.ladder b { padding: 2px 10px; border-radius: 999px; border: 1px solid #ead8ba; font: 700 13px var(--text); color: var(--ink-3); background: #fffaf2; }
.ladder li.is-cur b { background: #2a2017; border-color: #2a2017; color: #ffd27a; }
.ladder span { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.ladder small { font-size: 12px; color: var(--muted); }
.ladder .ld-now { position: absolute; top: -28px; padding: 2px 9px; border-radius: 7px; background: #2a2017; color: #ffd27a; font: 700 11.5px var(--text); }
.kv { margin: 0; display: grid; gap: 8px; }
.kv div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; }
.kv dt { color: var(--muted); font-size: 14px; }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.main-pick select { width: 100%; margin-bottom: 10px; }

/* ---------- shared bits of the inner pages ---------- */
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #fbe3bd; color: #6a4313; font: 600 12.5px/1.4 var(--text); font-style: normal; white-space: nowrap; }
.tag-good { background: #e3f3d3; color: #2c5112; } .tag-bad { background: #fbe1d8; color: #8a2412; }
.ui2 .card .icon-form { max-width: none; margin-bottom: 12px; }
.ui2 .card .icon-form .btn { justify-self: start; }
.ui2 input[type=file] { max-width: 100%; font: 14px var(--text); color: var(--muted); }
.ui2 input[type=file]::file-selector-button { margin-right: 10px; min-height: 38px; padding: 0 14px; border: 1px solid #efcf9f; border-radius: 10px; background: linear-gradient(180deg, #fffaf1, #fdecd2); color: #6a4313; font: 600 14px var(--text); cursor: pointer; }
.card-price { color: var(--gold-deep); font-weight: 700; font-size: 14px; white-space: nowrap; }
.sub-title { margin: 30px 0 14px; font: 600 22px/1.2 var(--display); text-transform: uppercase; letter-spacing: 0.02em; color: var(--ink); }
.pg-head .seg { flex: none; }
.stack-form { display: grid; gap: 12px; margin-bottom: 12px; }
.stack-form label { display: grid; gap: 5px; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.stack-form small { color: var(--muted); font-weight: 400; font-size: 12.5px; }
.stack-form .btn { justify-self: start; }
.mail-verify { margin-bottom: 14px; }
.tbl-wrap { overflow-x: auto; margin-bottom: 10px; }
.card .rank { padding: 0; border: 0; background: none; box-shadow: none; }
.ui2 .chat { grid-template-columns: minmax(0, 1fr); }
.ui2 .chat-send { grid-template-columns: minmax(0, 1fr) auto; }
.ui2 .chat-send input, .ui2 .chat-send textarea { min-width: 0; width: 100%; }

/* Персонажі */
.hcards { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 14px; }
.hcard { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 14px; align-items: center; padding: 16px 18px; border-radius: 20px;
  border: 1px solid #f0dcbc; background: var(--card); box-shadow: 0 10px 30px rgba(110, 70, 20, 0.08), inset 0 1px 0 #fff; }
.hcard.is-sel { border-color: #f0b468; box-shadow: 0 0 0 2px rgba(244, 169, 78, 0.55), 0 10px 30px rgba(110, 70, 20, 0.12); }
.hcard-face { width: 64px; height: 64px; border-radius: 50%; box-shadow: 0 0 0 2px #fff4dc, 0 0 0 4px #c8862f; }
.hcard-id { display: grid; gap: 2px; min-width: 0; }
.hcard-id p { margin: 0; }
.hcard-name strong { font-size: 19px; font-weight: 800; color: var(--ink); overflow-wrap: anywhere; }
.hcard-name .tag { margin-left: 4px; vertical-align: 2px; }
.hcard-meta { color: var(--muted); font-size: 14px; }
.hcard .state { font-size: 13.5px; }
.hcard-acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; border-top: 1px solid #f0e2cb; }
.hcard-acts form { margin: 0; }

/* Клановий розділ */
.guild-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.guild-badge { display: grid; place-items: center; width: 72px; height: 72px; flex: none; border-radius: 18px; background: radial-gradient(circle at 40% 30%, #3e2f20, #1f170f); box-shadow: 0 0 0 3px #f3e1c2, 0 6px 16px rgba(60, 35, 10, 0.3); }
.guild-badge img { width: 48px; height: 48px; image-rendering: pixelated; border-radius: 6px; }
.guild-badge span { font: 700 34px var(--display); color: #ffd27a; }
.guild-id { flex: 1; min-width: 180px; }
.guild-id h2 { margin: 0; font: 700 28px/1.1 var(--display); text-transform: uppercase; color: var(--ink); overflow-wrap: anywhere; }
.guild-id p { margin: 4px 0 0; color: var(--muted); }
.guild-stats { display: flex; gap: 10px; margin: 0; }
.guild-stats div { min-width: 96px; padding: 10px 14px; border-radius: 14px; background: #f7ecd8; border: 1px solid #f0e0c4; text-align: center; }
.guild-stats dt { color: var(--muted); font-size: 12.5px; }
.guild-stats dd { margin: 0; font: 700 24px/1.1 var(--display); color: var(--ink); }
.card-h .clan-ico { margin-left: auto; }

/* Історія дій */
.hist { list-style: none; margin: 0 0 12px; padding: 6px 20px 10px; }
.hist-day { padding: 14px 0 6px; color: var(--muted); font: 700 12.5px var(--text); text-transform: uppercase; letter-spacing: 0.06em; }
.hist-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid #f1e5d1; }
.hist-day + .hist-row { border-top: 0; }
.hist-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: radial-gradient(circle at 40% 30%, #3e2f20, #1f170f); }
.hist-ic .ico { width: 22px; height: 22px; }
.hist-txt { display: grid; min-width: 0; }
.hist-txt strong { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.hist-txt small { color: var(--muted); font-size: 12.5px; }
.hist-sum { font: 700 17px var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Поповнення: packs + cart */
.perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 20px; }
.perk { display: grid; gap: 2px; margin: 0; padding: 12px 16px; border-radius: 16px; background: #f7ecd8; border: 1px solid #f0e0c4; }
.perk span { color: var(--muted); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.perk b { color: var(--ink); font-size: 15px; }
.perk small { color: var(--muted); font-size: 13px; }
.perk-hot { background: linear-gradient(180deg, #fff1d6, #fddcaa); border-color: #f3c27e; }
.shop2 { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; margin-bottom: 20px; }
.gpacks { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.pack { position: relative; display: grid; justify-items: center; gap: 2px; padding: 18px 12px 14px; border-radius: 20px; text-align: center;
  border: 1px solid #f0dcbc; background: var(--card); box-shadow: 0 10px 30px rgba(110, 70, 20, 0.08), inset 0 1px 0 #fff; transition: box-shadow 0.15s, border-color 0.15s; }
.pack:hover { border-color: #ecc58c; }
.pack.is-in { border-color: #f0b468; box-shadow: 0 0 0 2px rgba(244, 169, 78, 0.55), 0 10px 30px rgba(110, 70, 20, 0.12); }
.pack-coins { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 6px; border-radius: 50%; background: radial-gradient(circle at 40% 30%, #3e2f20, #1f170f); box-shadow: 0 0 0 3px #f3e1c2, 0 6px 14px rgba(60, 35, 10, 0.28); }
.pack-coins .ico { width: 38px; height: 38px; }
.pack-badge { position: absolute; top: 10px; left: 10px; padding: 2px 8px; border-radius: 7px; background: #b5481f; color: #fff; font: 700 11px/1.5 var(--text); font-style: normal; text-transform: uppercase; letter-spacing: 0.06em; }
.pack-bonus span { color: var(--muted); font-weight: 600; }
.pack-top { background: linear-gradient(180deg, #2c2118, #1c150e); border-color: #4a3826; }
.pack-top .pack-gold, .pack-top .pack-price { color: #ffd27a; }
.pack-top .pack-gold small { color: #c9b291; }
.pack-top .pack-bonus { color: #9be27a; }
.pack-top .pack-badge { background: linear-gradient(180deg, #f7b25e, #e27a2c); }
.pack-top .qty { background: rgba(255, 255, 255, 0.08); border-color: #5a4630; }
.pack-top .qty output { color: #ffd27a; }
.pack-big .pack-coins { box-shadow: 0 0 0 3px #f6c77f, 0 0 18px rgba(244, 169, 78, 0.55); }
.pack-gold { margin: 0; font: 700 26px/1.1 var(--display); color: var(--ink); }
.pack-gold small { display: block; font: 600 12.5px var(--text); color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.pack-bonus { margin: 4px 0 0; min-height: 20px; color: #3f8a20; font-weight: 700; font-size: 13px; }
.pack-price { margin: 2px 0 10px; color: var(--gold-deep); font-weight: 800; font-size: 17px; }
.pack-act { display: grid; justify-items: center; min-height: 38px; }
.qty { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border-radius: 12px; background: #f7ecd8; border: 1px solid #f0d6ad; }
.qty[hidden] { display: none; }
.qty-b { width: 32px; height: 32px; border: 0; border-radius: 9px; background: var(--orange); color: #fff; font: 700 18px/1 var(--text); cursor: pointer; }
.qty-b:hover { filter: brightness(1.06); }
.qty output { min-width: 30px; text-align: center; font-weight: 800; color: var(--ink); }
.cart { position: sticky; top: calc(var(--top-h) + 16px); margin: 0; }
.cart-clear { margin-left: auto; border: 0; background: none; color: var(--muted); font: 600 13px var(--text); cursor: pointer; text-decoration: underline; }
.cart-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.cart-list li { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.cart-list span { flex: 1; min-width: 0; }
.cart-list b { white-space: nowrap; }
.cart-x { border: 0; background: none; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
.cart-own { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-bottom: 14px; }
.ui2 .cart-own input { min-height: 38px; }
.cart-sum { margin: 0 0 14px; padding: 12px 0 0; border-top: 1px solid #f0e2cb; display: grid; gap: 6px; }
.cart-sum div { display: flex; justify-content: space-between; gap: 10px; }
.cart-sum dt { color: var(--muted); font-size: 14px; }
.cart-sum dd { margin: 0; font-weight: 700; color: var(--ink); white-space: nowrap; }
.cart-sum .is-bonus dd { color: #3f8a20; }
.cart-sum .is-total { padding-top: 8px; border-top: 1px dashed #ead8ba; }
.cart-sum .is-total dd { font: 700 22px var(--display); }
.cart-sum .is-pay dd { color: var(--gold-deep); font-size: 17px; }
.ui2 .cart .donate-ways { margin: 0 0 12px; padding: 0; border: 0; display: grid; gap: 6px; }
.ui2 .cart .donate-ways legend { padding: 0; margin-bottom: 6px; color: var(--muted); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.ui2 .cart .donate-ways label { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; border: 1px solid #f0e0c4; background: #fffaf2; font-weight: 600; font-size: 14px; cursor: pointer; }
.ui2 .cart .donate-ways label:has(input:checked) { border-color: #f0b468; background: #fff1dc; }
.ui2 .cart .donate-ways small { margin-left: auto; color: var(--muted); font-weight: 400; }
.cart-go { width: 100%; }
.cart-bar { display: none; }
@media (max-width: 1100px) {
  .ui2 .cart-bar:not([hidden]) { position: fixed; z-index: 25; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 12px 16px; border-radius: 16px; background: rgba(26, 20, 13, 0.94); color: #f3e3c6; text-decoration: none; font-size: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .cart-bar b { color: #ffd27a; }
  .cart-bar-go { padding: 8px 12px; border-radius: 11px; background: var(--orange); color: #fff; font-weight: 700; white-space: nowrap; }
  .cart-bar-go b { color: #fff; }
  .ui2 .shop2.cart-seen .cart-bar:not([hidden]) { display: none; }
}
.cart .donate-err { margin: 10px 0 0; color: #8a2412; font-size: 13.5px; }
.cart > .hint { margin: 12px 0 0; }

/* ---------- login / register in the new look ---------- */
body.ui2.is-guest { background: var(--dark) url("../v2/img/hero.webp") center / cover fixed; }
.ui2.is-guest .main { margin: 0; padding: 32px 16px; min-height: 100vh; display: grid; place-items: center; }
.ui2.is-guest .sheet { max-width: 460px; min-height: 0; width: 100%; padding: 26px 26px 22px; background: rgba(255, 251, 243, 0.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ui2 .gate { width: 100%; }
.ui2 .gate h1 { font: 700 28px var(--display); text-transform: uppercase; }
.ui2 .gate-form { border: 0; background: none; box-shadow: none; padding: 6px 0 0; }

/* ---------- phone / small screens: the menu slides in from the left ---------- */
@media (max-width: 1100px) {
  .ui2 .top-bon { display: none; }
  .shop2 { grid-template-columns: minmax(0, 1fr); }
  .cart { position: static; }
}
@media (max-width: 900px) {
  .side { transform: translateX(-100%); transition: transform 0.22s ease; box-shadow: 10px 0 40px rgba(0, 0, 0, 0.5); }
  #nav-open:checked ~ .side { transform: none; }
  #nav-open:checked ~ .side-shade { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(0, 0, 0, 0.5); }
  .top { left: 0; padding: 0 12px; gap: 8px; }
  .top-burger { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #f3e3c6; cursor: pointer; }
  .top-burger svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .top-emblem { display: block; } .top-emblem img { width: 38px; height: 38px; }
  .ui2 .top-site { display: none; }
  .ui2 .main { margin-left: 0; padding: calc(var(--top-h) + 10px) 10px 24px; }
  .sheet { padding: 20px 16px 28px; border-radius: 20px; }
}
@media (max-width: 760px) {
  .cards2, .ref-grid { grid-template-columns: minmax(0, 1fr); }
  .top-acc { display: none; }
  .hero-banner { min-height: 240px; padding: 22px 18px; }
  .hero-banner h2 { font-size: 28px; }
  .hero-banner { flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 14px; }
  .hb-online { position: static; order: -1; margin-bottom: auto; }
  .ladder { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 30px; }
  .kv div { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hcards { grid-template-columns: minmax(0, 1fr); }
  .guild-stats { width: 100%; } .guild-stats div { flex: 1; min-width: 0; padding: 8px 6px; }
  .hist { padding: 4px 14px 8px; }
  .gpacks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pack { padding: 14px 8px 12px; } .pack-gold { font-size: 22px; } .pack-coins { width: 52px; height: 52px; } .pack-coins .ico { width: 30px; height: 30px; }
  .ui2 .page-title { font-size: 25px; }
}
@media (max-width: 420px) {
  .top-gold { padding: 0 10px; } .top-gold > span:last-child { font-size: 13px; }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .ladder { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* anchors (#gold, #send) stop below the fixed top bar */
.ui2 [id] { scroll-margin-top: calc(var(--top-h) + 16px); }
