/* Avalon Prime — site public (inscription, classement, téléchargement) */
:root {
  --bg: #0a0308;
  --surface: rgba(20, 7, 14, .78);
  --surface-2: rgba(10, 3, 8, .72);
  --border: rgba(255, 140, 160, .16);
  --border-strong: rgba(242, 196, 81, .45);
  --text: #f6e9ec;
  --muted: #c3a7ae;
  --gold-1: #fff1b8;
  --gold-2: #f2c451;
  --gold-3: #c9862a;
  --crimson: #e8405a;
  --crimson-soft: rgba(232, 64, 90, .16);
  --ok: #4ade80;
  --err: #fb7185;
  --radius: 14px;
  --serif: "Cinzel", "Trajan Pro", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, rgba(8, 2, 6, .55) 0%, rgba(8, 2, 6, .35) 40%, rgba(8, 2, 6, .82) 100%),
    url("/img/fond.svg");
  background-size: cover, cover;
  background-position: center, center;
  background-attachment: fixed, fixed;
}

/* Darker scene behind forms so the card reads clearly, like a spotlight. */
body.page-auth {
  background-image:
    radial-gradient(ellipse at 50% 45%, rgba(8, 2, 6, .55) 0%, rgba(8, 2, 6, .35) 55%, rgba(8, 2, 6, .7) 100%),
    url("/img/fond.svg");
}

a { color: var(--gold-2); text-decoration: none; }
a:hover { color: var(--gold-1); text-decoration: underline; }

/* ---------------------------------------------------------------- header */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 10px 24px;
  background: linear-gradient(180deg, rgba(10, 3, 8, .92), rgba(10, 3, 8, .7));
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  color: var(--text);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: .04em;
}
.brand:hover { color: var(--gold-1); text-decoration: none; }
.brand img { width: 36px; height: 36px; filter: drop-shadow(0 2px 6px rgba(232, 64, 90, .45)); }

.nav { display: flex; gap: 4px; }
.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: .95rem;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .06); text-decoration: none; }
.nav a.active { color: var(--gold-1); background: rgba(242, 196, 81, .12); }

.actions { display: flex; align-items: center; gap: 10px; justify-self: end; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, .3);
  white-space: nowrap;
}
.status i { width: 8px; height: 8px; border-radius: 50%; }
.status.on { color: #bbf7d0; }
.status.on i { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.status.off { color: #fecdd3; }
.status.off i { background: var(--err); box-shadow: 0 0 8px var(--err); }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: 700 .95rem/1.2 var(--sans);
  cursor: pointer;
  white-space: nowrap;
  transition: filter .15s, transform .15s, background .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible, .nav a:focus-visible, .tabs a:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; }

.btn-gold {
  color: #2a1404;
  background: linear-gradient(180deg, var(--gold-1) 0%, var(--gold-2) 45%, var(--gold-3) 100%);
  border-color: #8e5814;
  box-shadow: 0 4px 18px rgba(242, 196, 81, .25), inset 0 1px 0 rgba(255, 255, 255, .55);
}
.btn-gold:hover { color: #2a1404; filter: brightness(1.08); }

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .22);
}
.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, .1); }

.btn-lg { padding: 13px 26px; font-size: 1.05rem; border-radius: 12px; }
.btn-block { display: flex; width: 100%; }

/* ---------------------------------------------------------------- layout */

main {
  flex: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 16px 48px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
}
.panel + .panel { margin-top: 24px; }

.section-title {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--gold-2);
  letter-spacing: .03em;
}

/* ---------------------------------------------------------------- home */

.hero {
  text-align: center;
  padding: 7vh 0 9vh;
}
.kicker {
  margin: 0;
  color: var(--crimson);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(232, 64, 90, .6);
}
.logo-title {
  margin: 6px 0 10px;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 8vw, 5.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: .05em;
  background: linear-gradient(180deg, #fffbe8 0%, var(--gold-1) 30%, var(--gold-2) 60%, var(--gold-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 0 #3a1408) drop-shadow(0 0 26px rgba(232, 64, 90, .55));
}
.tagline {
  max-width: 560px;
  margin: 0 auto 28px;
  color: #ecd3d8;
  font-size: 1.1rem;
  font-style: italic;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .8);
}
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature {
  padding: 20px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid rgba(255, 255, 255, .06);
  transition: border-color .2s, transform .2s;
}
.feature:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.feature-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--gold-2);
  background: linear-gradient(180deg, rgba(232, 64, 90, .25), rgba(232, 64, 90, .08));
  border: 1px solid rgba(232, 64, 90, .35);
}
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { margin: 14px 0 6px; font-size: 1.05rem; color: var(--text); }
.feature p { margin: 0; color: var(--muted); font-size: .93rem; }

.steps-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.steps-list strong { color: var(--text); }
.steps-list b {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--serif);
  color: #2a1404;
  background: linear-gradient(180deg, var(--gold-1), var(--gold-3));
}
.steps-list.compact { grid-template-columns: 1fr; gap: 14px; margin: 26px 0 6px; font-size: .93rem; }
.steps-list.compact b { width: 28px; height: 28px; font-size: .9rem; }

/* ---------------------------------------------------------------- auth card */

.auth {
  min-height: calc(100vh - 220px);
  display: grid;
  place-items: center;
}

.card {
  width: 100%;
  max-width: 420px;
  padding: 32px 28px 26px;
  background: rgba(14, 4, 10, .86);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .4), 0 30px 70px rgba(0, 0, 0, .65), 0 0 60px rgba(232, 64, 90, .12);
  backdrop-filter: blur(8px);
}
.card-wide { max-width: 520px; }

.card-title {
  margin: 0;
  text-align: center;
  font-family: var(--serif);
  font-size: 1.9rem;
  color: var(--gold-2);
  text-shadow: 0 0 18px rgba(242, 196, 81, .3);
}
.card-lead { margin: 6px 0 22px; text-align: center; color: var(--muted); font-size: .95rem; }
.card-foot { margin: 18px 0 0; text-align: center; color: var(--muted); font-size: .92rem; }

.form { display: grid; gap: 6px; }
.form label { margin-top: 10px; font-weight: 600; font-size: .88rem; }
.form button { margin-top: 20px; padding: 13px; font-size: 1rem; }
.opt, small, .note { color: var(--muted); font-weight: 400; font-size: .82rem; }
.note { margin: 14px 0 0; text-align: center; }

input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(0, 0, 0, .55);
  color: var(--text);
  font: 400 1rem var(--sans);
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder { color: #7d6268; }
input:focus { outline: none; border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(242, 196, 81, .2); }

.msg { padding: 12px 14px; border-radius: 10px; margin: 0 0 14px; font-size: .93rem; }
.msg.ok { background: rgba(74, 222, 128, .1); border: 1px solid rgba(74, 222, 128, .5); color: #bbf7d0; }
.msg.err { background: rgba(251, 113, 133, .1); border: 1px solid rgba(251, 113, 133, .5); color: #fecdd3; }

.dl-meta { margin: 10px 0 0; text-align: center; color: var(--muted); font-size: .85rem; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------------------------------------------------------------- ranking */

.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.tabs a {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12);
  color: var(--muted);
  font-weight: 600;
  font-size: .9rem;
}
.tabs a:hover { color: var(--text); text-decoration: none; border-color: rgba(255, 255, 255, .3); }
.tabs a.active { color: #2a1404; background: linear-gradient(180deg, var(--gold-1), var(--gold-2)); border-color: transparent; }

.table-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .06); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { padding: 11px 14px; text-align: left; white-space: nowrap; }
thead th {
  background: rgba(0, 0, 0, .45);
  color: var(--muted);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
tbody tr { border-top: 1px solid rgba(255, 255, 255, .05); }
tbody tr:nth-child(even) { background: rgba(255, 255, 255, .02); }
tbody tr:hover { background: rgba(242, 196, 81, .06); }
.c-num { text-align: right; font-variant-numeric: tabular-nums; }
.c-rank { width: 56px; }
.c-rank span {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: 700;
  font-size: .85rem;
  color: var(--muted);
}
.c-name { font-weight: 700; color: var(--text); }
.hero { color: var(--crimson); font-weight: 700; font-size: .85em; }
tr.top1 .c-rank span { color: #2a1404; background: linear-gradient(180deg, #fff1b8, #e0a93a); }
tr.top2 .c-rank span { color: #1c1c22; background: linear-gradient(180deg, #f4f6ff, #9da2b6); }
tr.top3 .c-rank span { color: #2a1404; background: linear-gradient(180deg, #f3c69a, #a8642e); }
tr.top1 .c-name { color: var(--gold-1); }

.empty { margin: 8px 0; padding: 36px 16px; text-align: center; color: var(--muted); border: 1px dashed rgba(255, 255, 255, .14); border-radius: 10px; }

/* ---------------------------------------------------------------- footer */

.foot { padding: 18px 16px; text-align: center; color: #8f7379; font-size: .8rem; border-top: 1px solid rgba(255, 255, 255, .05); background: rgba(6, 2, 4, .6); }
.foot p { margin: 0; }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps-list { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .topbar { grid-template-columns: 1fr auto; padding: 10px 16px; gap: 10px; }
  .nav { grid-column: 1 / -1; grid-row: 2; justify-content: center; }
  .actions .btn-ghost, .status { display: none; }
  .brand { font-size: 1.1rem; }
  .panel { padding: 20px 16px; }
  .features { grid-template-columns: 1fr; }
  .c-extra { display: none; }
  body { background-attachment: scroll, scroll; }
}

/* ---------------------------------------------------------------- login + player area */

.btn-user svg { flex: none; }
.btn-user span { max-width: 140px; overflow: hidden; text-overflow: ellipsis; }

.form .check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
}
.form .check input { width: 18px; height: 18px; padding: 0; accent-color: var(--gold-2); }

.muted { color: var(--muted); }

.account-head {
  display: flex;
  align-items: center;
  gap: 20px;
}
.avatar {
  flex: none;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font: 700 2rem var(--serif);
  color: #2a1404;
  background: linear-gradient(180deg, var(--gold-1), var(--gold-3));
  box-shadow: 0 0 0 3px rgba(10, 3, 8, .9), 0 0 0 5px rgba(232, 64, 90, .6), 0 0 30px rgba(232, 64, 90, .35);
}
.account-id { flex: 1; min-width: 0; }
.account-id .kicker { text-align: left; }
.account-id h1 {
  margin: 2px 0 4px;
  font-family: var(--serif);
  font-size: 1.9rem;
  color: var(--text);
  overflow-wrap: anywhere;
}
.account-id p { margin: 0; font-size: .92rem; }
.badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  font: 700 .72rem var(--sans);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fecdd3;
  background: var(--crimson-soft);
  border: 1px solid rgba(232, 64, 90, .5);
}
.logout { flex: none; }

.flash { margin-top: 20px; }
.flash .msg { margin: 0; }

.penalties { border-color: rgba(251, 113, 133, .45); }
.penalties .section-title { color: var(--err); }
.penalties ul { margin: 0; padding-left: 20px; display: grid; gap: 10px; }

.chars {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 16px;
}
.char {
  padding: 18px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid rgba(255, 255, 255, .07);
  transition: border-color .2s, transform .2s;
}
.char:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.char header { display: flex; align-items: center; gap: 12px; }
.char-icon {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--gold-2);
  background: linear-gradient(180deg, rgba(232, 64, 90, .28), rgba(232, 64, 90, .08));
  border: 1px solid rgba(232, 64, 90, .4);
}
.char-icon svg { width: 26px; height: 26px; }
.char header > div:nth-child(2) { flex: 1; min-width: 0; }
.char h3 { margin: 0; font-size: 1.1rem; overflow-wrap: anywhere; }
.char header p { margin: 2px 0 0; color: var(--muted); font-size: .85rem; }
.lvl {
  flex: none;
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 700;
  font-size: .88rem;
  color: var(--gold-1);
  background: rgba(242, 196, 81, .1);
  border: 1px solid rgba(242, 196, 81, .3);
}
.char dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px 0 12px;
}
.char dl div { min-width: 0; padding: 8px 10px; border-radius: 8px; background: rgba(255, 255, 255, .03); }
.char dt { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.char dd { margin: 2px 0 0; font-weight: 700; font-size: .95rem; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.char-map { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--muted); font-size: .88rem; }
.char-map svg { color: var(--crimson); }

.settings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
  align-items: start;
}
.settings .panel + .panel { margin-top: 0; }
.settings .section-title { font-size: 1.3rem; }
.settings .note { text-align: left; }

@media (max-width: 760px) {
  .account-head { flex-wrap: wrap; }
  .logout { width: 100%; }
  .logout .btn { width: 100%; }
  .settings { grid-template-columns: 1fr; }
  .char dl { grid-template-columns: repeat(2, 1fr); }
  .btn-user span { max-width: 90px; }
}

/* ---------------------------------------------------------------- password reset */

.form-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.form-row .check { margin-top: 0; }
.forgot { font-size: .88rem; }
.msg.info { background: rgba(242, 196, 81, .08); border: 1px solid rgba(242, 196, 81, .4); color: var(--gold-1); }
input.readonly { color: var(--muted); background: rgba(255, 255, 255, .04); cursor: default; }
.staff { margin-top: 24px; border-color: rgba(232, 64, 90, .35); }
.staff .section-title { font-size: 1.3rem; }
.staff > p { margin: 0 0 14px; }
.staff label { display: block; margin: 4px 0 6px; font-weight: 600; font-size: .88rem; }
.link-box { margin-bottom: 14px; font-family: Consolas, "Courier New", monospace; font-size: .82rem; color: var(--gold-1); border-color: rgba(242, 196, 81, .45); }
.form-inline { display: flex; gap: 10px; flex-wrap: wrap; }
.form-inline input { flex: 1 1 220px; width: auto; }
.form-inline .btn { flex: none; }

/* ---------------------------------------------------------------- shop */

.shop-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.shop-intro { flex: 1 1 420px; }
.shop-intro .kicker { text-align: left; }
.shop-intro h1 { margin: 2px 0 6px; font-family: var(--serif); font-size: 2rem; color: var(--gold-2); }
.shop-intro p { margin: 0; }
.shop-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wallet {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: 12px;
  color: var(--gold-1); background: rgba(242, 196, 81, .1); border: 1px solid rgba(242, 196, 81, .45);
  box-shadow: 0 0 24px rgba(242, 196, 81, .12);
}
.wallet svg { width: 22px; height: 22px; }
.wallet b { font-size: 1.3rem; }

.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.shop-item {
  --rar: rgba(255, 255, 255, .08);
  display: flex; flex-direction: column; gap: 10px;
  padding: 18px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--rar);
  transition: transform .2s, border-color .2s;
}
.shop-item:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.shop-top { display: flex; align-items: center; gap: 12px; }
.shop-icon {
  flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px;
  color: var(--gold-2); background: linear-gradient(180deg, rgba(242, 196, 81, .2), rgba(242, 196, 81, .05));
  border: 1px solid rgba(242, 196, 81, .35);
}
.shop-icon svg { width: 26px; height: 26px; }
.shop-name { min-width: 0; }
.shop-name h3 { margin: 0; font-size: 1.05rem; overflow-wrap: anywhere; }
.shop-name p { margin: 2px 0 0; color: var(--muted); font-size: .85rem; }
.shop-desc { margin: 0; color: var(--muted); font-size: .9rem; }
.shop-buy { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, .06); }
.price { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-1); font-size: 1.15rem; }
.price small { font-size: .72rem; font-weight: 600; color: var(--muted); }
.buy-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
select {
  padding: 9px 10px; border-radius: 10px; max-width: 170px;
  border: 1px solid rgba(255, 255, 255, .12); background: rgba(0, 0, 0, .55); color: var(--text); font: 400 .9rem var(--sans);
}
select:focus { outline: none; border-color: var(--gold-2); }
.btn[disabled] { filter: grayscale(.8) brightness(.7); cursor: not-allowed; transform: none; }
.small { font-size: .85rem; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags:empty { display: none; }
.tag { padding: 2px 9px; border-radius: 999px; font-size: .75rem; font-weight: 700; color: var(--text); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); }
.tag-up { color: #bfdbfe; border-color: rgba(147, 197, 253, .45); background: rgba(147, 197, 253, .1); }
.tag-rare { color: #fde68a; border-color: rgba(253, 230, 138, .45); background: rgba(253, 230, 138, .08); }
.tag-rare.r7, .tag-rare.r8 { color: #fecdd3; border-color: rgba(232, 64, 90, .6); background: rgba(232, 64, 90, .14); }
.shop-item.r5, .shop-item.r6 { --rar: rgba(253, 230, 138, .3); }
.shop-item.r7, .shop-item.r8 { --rar: rgba(232, 64, 90, .45); }

td.plus { color: var(--ok); font-weight: 700; }
td.minus { color: var(--err); font-weight: 700; }

/* admin */
.staff-shop { float: right; margin-left: 12px; }
.admin-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; margin-top: 24px; align-items: start; }
.admin-grid .panel + .panel { margin-top: 0; }
.admin-grid .section-title, .shop-help .section-title { font-size: 1.3rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.form-grid label { display: block; margin-top: 0; }
.form-grid label input { margin-top: 6px; }
.form-grid .span2 { grid-column: 1 / -1; }
.form-grid button { margin-top: 8px; }
.admin-table td { vertical-align: middle; white-space: normal; }
.inline-form { display: flex; gap: 6px; align-items: center; }
.inline-form input { width: 110px; padding: 7px 10px; font-size: .9rem; }
.btn-sm { padding: 6px 12px; font-size: .82rem; border-radius: 8px; }
.btn-danger { color: #fecdd3; background: rgba(232, 64, 90, .12); border-color: rgba(232, 64, 90, .5); }
.btn-danger:hover { color: #fff; background: rgba(232, 64, 90, .3); }
tr.hidden-item td { opacity: .55; }
tr.hidden-item td:nth-child(5) { opacity: 1; }

@media (max-width: 900px) {
  .admin-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .staff-shop { float: none; margin: 0 0 12px; }
}

/* item icons */
.shop-icon img { width: 36px; height: 36px; image-rendering: pixelated; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .6)); }
.admin-item { display: flex; align-items: center; gap: 10px; }
.mini-icon { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 8px; color: var(--gold-2); background: rgba(242, 196, 81, .08); border: 1px solid rgba(242, 196, 81, .25); }
.mini-icon img { width: 36px; height: 36px; image-rendering: pixelated; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
