:root {
  --bg: #07111d;
  --surface: #0b1724;
  --surface2: #101e2d;
  --line: #1b2d3e;
  --muted: #8a9bac;
  --text: #edf4f8;
  --green: #10b981;
  --green-bright: #28e6a4;
  --blue: #42a5ff;
  --red: #ff5b64;
  --font: 'DM Sans', sans-serif;
  --display: 'Space Grotesk', sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
}
button,
input,
select {
  font: inherit;
}
button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-decoration: none;
}
.shell {
  width: min(1180px, calc(100% - 64px));
  margin: auto;
}
.topline {
  height: 30px;
  background: #091521;
  border-bottom: 1px solid #142434;
  color: #8192a2;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.live-pulse,
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  background: var(--green);
  box-shadow: 0 0 12px #10b98188;
}
.topline-divider {
  color: #31465a;
}
/* Header, navigation, and shared controls */
.site-header {
  height: 76px;
  border-bottom: 1px solid #142434;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(32px, calc((100vw - 1180px) / 2));
  gap: 36px;
  background: #07111def;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 700 19px var(--display);
  letter-spacing: -0.06em;
  white-space: nowrap;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid #1d7359;
  color: var(--green-bright);
  border-radius: 9px;
  font: 700 14px var(--display);
  position: relative;
}
.brand-mark span {
  font-size: 8px;
  position: absolute;
  right: 4px;
  top: 1px;
}
.brand-dot {
  color: #7890a4;
}
.main-nav {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
  color: #9cadbb;
  font-size: 12px;
}
.main-nav a {
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
}
.main-nav a:hover,
.main-nav a.active {
  color: white;
}
.main-nav a.active:after {
  content: '';
  height: 2px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--green);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.button {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 15px;
  color: var(--text);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: 0.18s ease;
  white-space: nowrap;
}
.button:hover {
  transform: translateY(-1px);
}
.button-primary {
  background: var(--green);
  color: #04130e;
}
.button-primary:hover {
  background: #2dd9a1;
  box-shadow: 0 7px 24px #10b98135;
}
.button-primary span {
  margin-left: 13px;
  font-size: 15px;
}
.button-ghost {
  border-color: #263b4d;
  background: #0b1724;
}
.button-ghost:hover {
  border-color: #456078;
  background: #102031;
}
.balance-pill {
  border: 1px solid #22513f;
  background: #0c211d;
  border-radius: 8px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}
.balance-pill small {
  font-size: 8px;
  letter-spacing: 0.1em;
  color: #81a997;
}
.coin-icon {
  color: var(--green-bright);
}
[hidden] {
  display: none !important;
}
.hero {
  min-height: 490px;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  align-items: center;
  gap: 40px;
  padding-top: 48px;
  padding-bottom: 55px;
}
.hero-copy {
  position: relative;
  z-index: 1;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 0.17em;
  color: #94a8b9;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow-line {
  width: 20px;
  height: 1px;
  background: var(--green);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font: 600 clamp(42px, 5.2vw, 68px) / 1.08 var(--display);
  letter-spacing: -0.065em;
  margin: 23px 0 17px;
}
h1 span,
.how-copy h2 span {
  color: var(--green-bright);
}
.hero-copy > p {
  font-size: 14px;
  color: #9bacb9;
  max-width: 380px;
  line-height: 1.8;
  margin-bottom: 26px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
}
.hero-foot {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 36px;
  color: #91a0ad;
  font-size: 10px;
}
.hero-foot > span:first-child {
  color: #cbd8df;
}
.hero-foot-sep {
  height: 13px;
  width: 1px;
  background: #334555;
}
.hero-visual {
  height: 365px;
  position: relative;
  isolation: isolate;
  background: radial-gradient(
    ellipse at 50% 52%,
    #163a3c 0%,
    #10202d 34%,
    #0b1724 67%,
    transparent 75%
  );
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: linear-gradient(#3b607a26 1px, transparent 1px),
    linear-gradient(90deg, #3b607a26 1px, transparent 1px);
  background-size: 35px 35px;
  mask-image: radial-gradient(ellipse, #000, transparent 75%);
}
.hero-orbit {
  position: absolute;
  border: 1px solid #2d587055;
  border-radius: 50%;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%) rotate(-18deg);
  width: 360px;
  height: 190px;
}
.orbit-b {
  width: 440px;
  height: 260px;
  transform: translate(-50%, -50%) rotate(38deg);
  border-color: #10b98126;
}
.hero-image-wrap {
  position: absolute;
  inset: 30px 9px 40px;
  display: grid;
  place-items: center;
  transform: rotate(-7deg);
}
.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: contrast(1.12) saturate(0.82) drop-shadow(0 18px 25px #0008);
  mask-image: radial-gradient(ellipse at center, #000 38%, #000c 61%, transparent 77%);
}
.hero-tag {
  position: absolute;
  right: 3px;
  top: 24px;
  border: 1px solid #31465a;
  background: #0a1723cc;
  border-radius: 5px;
  padding: 7px 10px;
  font-size: 8px;
  letter-spacing: 0.12em;
  color: #c5d0d8;
}
.rarity-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e04d4d;
  margin-right: 6px;
}
.tag-divider {
  color: #5f7282;
  margin: 0 4px;
}
.hero-card {
  position: absolute;
  bottom: 22px;
  left: 21px;
  right: 19px;
  border: 1px solid #314657;
  background: #0a1622ef;
  border-radius: 9px;
  padding: 13px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 12px 34px #0004;
}
.label {
  display: block;
  color: #8799a8;
  font-size: 8px;
  letter-spacing: 0.14em;
  font-weight: 700;
}
.hero-card strong {
  font: 600 27px var(--display);
  letter-spacing: -0.04em;
}
.hero-card strong span {
  color: #b3c3cc;
  font-size: 16px;
  margin-left: 2px;
}
.hero-live {
  text-align: right;
  color: var(--green-bright);
  font-size: 9px;
  line-height: 1.6;
  font-weight: 700;
}
.hero-live .status-dot {
  margin-right: 5px;
  width: 6px;
  height: 6px;
}
.hero-live small {
  color: #8c9ba7;
  font-weight: 500;
}
.visual-index {
  position: absolute;
  right: 9px;
  bottom: 3px;
  font: 600 9px var(--display);
  color: #bdccd5;
}
.visual-index span {
  color: #607382;
}
.hero-bottom-mark {
  position: absolute;
  left: 0;
  bottom: 18px;
  color: #314454;
  font: 600 8px var(--display);
  letter-spacing: 0.18em;
}
.hero-bottom-mark span {
  color: var(--green);
  padding: 0 5px;
}
/* Auction list and cards */
.auction-section {
  padding-top: 47px;
  padding-bottom: 58px;
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 23px;
}
.section-heading h2 {
  font: 600 27px var(--display);
  letter-spacing: -0.045em;
  margin: 8px 0 0;
}
.section-tools {
  display: flex;
  gap: 9px;
}
.search-box {
  height: 36px;
  width: 205px;
  border: 1px solid #25384a;
  background: #0a1622;
  border-radius: 7px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 7px;
  color: #708392;
}
.search-box > span {
  font-size: 19px;
}
.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: white;
  background: none;
  font-size: 11px;
}
.search-box input::placeholder {
  color: #6f8291;
}
.section-tools select {
  background: #0a1622;
  border: 1px solid #25384a;
  color: #b8c4cc;
  border-radius: 7px;
  padding: 0 10px;
  font-size: 11px;
  outline-color: var(--green);
}
.auction-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}
.loading-state {
  grid-column: 1/-1;
  padding: 60px;
  text-align: center;
  color: #8fa2b0;
}
.loading-dots {
  display: inline-block;
  margin-left: 10px;
  letter-spacing: 3px;
  color: var(--green);
  animation: fade 1.2s infinite;
}
@keyframes fade {
  50% {
    opacity: 0.3;
  }
}
.auction-card {
  min-width: 0;
  border: 1px solid #1b2d3e;
  background: linear-gradient(145deg, #101e2d, #0b1724 67%);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  cursor: pointer;
}
.auction-card:hover {
  transform: translateY(-3px);
  border-color: #2d765d;
}
.card-art {
  height: 158px;
  position: relative;
  background: radial-gradient(ellipse at 48% 60%, #23413e, #122332 46%, #0c1824 77%);
  overflow: hidden;
}
.card-art:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #0b1724 0%, transparent 46%);
}
.card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.66;
  mix-blend-mode: screen;
  filter: contrast(1.1) saturate(0.8);
  transition: transform 0.35s;
}
.auction-card:hover .card-art img {
  transform: scale(1.05);
}
.card-rarity {
  position: absolute;
  top: 11px;
  left: 11px;
  z-index: 1;
  border: 1px solid #3d5160;
  background: #091621d9;
  border-radius: 4px;
  padding: 4px 7px;
  color: #d4dee4;
  font-size: 8px;
  letter-spacing: 0.09em;
}
.card-live {
  position: absolute;
  z-index: 1;
  right: 11px;
  top: 12px;
  color: #8fa2ad;
  font-size: 8px;
}
.card-live .status-dot {
  margin-right: 5px;
}
.card-info {
  position: relative;
  padding: 13px 13px 14px;
}
.weapon-name {
  font: 600 15px var(--display);
  letter-spacing: -0.025em;
  margin: 0 0 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.weapon-type {
  font-size: 10px;
  color: #8799a6;
}
.card-rule {
  height: 1px;
  background: #1e3040;
  margin: 12px 0;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: end;
}
.card-meta .label {
  font-size: 7px;
}
.card-price {
  font: 600 20px var(--display);
  letter-spacing: -0.04em;
}
.card-price small {
  font-size: 11px;
  color: #b4c2cb;
}
.card-timer {
  text-align: right;
  color: var(--green-bright);
  font: 600 12px var(--display);
  font-variant-numeric: tabular-nums;
}
.card-timer-label {
  display: block;
  color: #778a97;
  font: 600 7px var(--font);
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}
.card-timer.ended {
  color: #86939c;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 13px;
}
.bid-count {
  font-size: 9px;
  color: #8293a0;
}
.card-link {
  font-weight: 700;
  color: var(--green-bright);
  font-size: 10px;
}
.card-link span {
  margin-left: 5px;
}
.section-bottom {
  border-top: 1px solid #182939;
  margin-top: 21px;
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  color: #8495a2;
  font-size: 9px;
}
.section-bottom .status-dot {
  width: 6px;
  height: 6px;
  margin-right: 6px;
}
.section-bottom-right {
  color: #677b89;
}
.how-section {
  border-top: 1px solid #152738;
  border-bottom: 1px solid #152738;
  background: linear-gradient(105deg, #0a1723, #0b1a26 55%, #0a1723);
}
.how-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 95px;
  padding-top: 65px;
  padding-bottom: 68px;
}
.how-copy h2 {
  font: 600 40px/1.12 var(--display);
  letter-spacing: -0.06em;
  margin: 18px 0;
}
.how-copy > p {
  color: #9aabb7;
  line-height: 1.85;
  max-width: 390px;
  font-size: 12px;
}
.text-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--green-bright);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 12px;
}
.text-link span {
  margin-left: 8px;
}
.steps {
  border-top: 1px solid #263947;
}
.step {
  display: grid;
  grid-template-columns: 42px 1fr 35px;
  gap: 14px;
  align-items: center;
  padding: 17px 4px;
  border-bottom: 1px solid #263947;
}
.step-number {
  font: 600 11px var(--display);
  color: var(--green);
}
.step h3 {
  font: 600 14px var(--display);
  margin: 0 0 3px;
}
.step p {
  font-size: 10px;
  color: #91a1ac;
  margin: 0;
}
.step-icon {
  font-size: 19px;
  color: #7c94a2;
  text-align: right;
}
.rounds-section {
  padding-top: 61px;
  padding-bottom: 68px;
}
.rounds-section .section-heading {
  align-items: flex-end;
}
.rounds-intro {
  max-width: 440px;
  color: #94a5b1;
  font-size: 11px;
  line-height: 1.8;
  margin: 0 0 2px;
}
.round-table-wrap {
  border: 1px solid #203243;
  border-radius: 9px;
  overflow: auto;
}
.round-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 520px;
}
.round-table th {
  text-align: left;
  background: #0d1a27;
  padding: 12px 16px;
  font-size: 8px;
  letter-spacing: 0.12em;
  color: #8295a4;
}
.round-table td {
  padding: 11px 16px;
  border-top: 1px solid #192b3a;
  font-size: 11px;
  color: #c5d0d8;
}
.round-table tbody tr.current {
  background: #0e231f;
}
.round-table tbody tr.current td:first-child {
  color: var(--green-bright);
}
.round-table tbody tr:last-child td:first-child {
  font-weight: 700;
}
.round-number {
  font: 600 11px var(--display);
}
.round-time {
  color: #e2ebef !important;
  font-variant-numeric: tabular-nums;
}
.round-duration {
  color: #a9bac4 !important;
}
.round-status {
  font-size: 9px;
  color: #748793;
}
.round-status.active {
  color: var(--green-bright);
}
.round-status .status-dot {
  margin-right: 6px;
  width: 5px;
  height: 5px;
}
.hard-close-note {
  margin-top: 15px;
  border: 1px solid #1f3443;
  background: #0b1824;
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 13px;
}
.hard-close-note > span:first-child {
  color: var(--blue);
  font-size: 20px;
}
.hard-close-note p {
  font-size: 10px;
  color: #91a2ad;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}
.hard-close-note strong {
  color: #e7edf1;
  font-size: 11px;
}
.mongolia-time {
  color: #7290a3;
  font-size: 9px;
  white-space: nowrap;
}
.site-footer {
  border-top: 1px solid #172938;
}
.footer-inner {
  min-height: 79px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #718391;
  font-size: 9px;
}
.footer-inner .brand {
  color: #dbe4e9;
  font-size: 15px;
}
.footer-inner .brand-mark {
  width: 27px;
  height: 27px;
}
.dialog {
  width: min(440px, calc(100% - 28px));
  max-height: 88vh;
  overflow: auto;
  background: #0c1926;
  color: var(--text);
  border: 1px solid #2b4051;
  border-radius: 14px;
  padding: 25px;
  box-shadow: 0 30px 100px #000b;
}
.dialog::backdrop {
  background: #030810c9;
  backdrop-filter: blur(5px);
}
.wide-dialog {
  width: min(850px, calc(100% - 28px));
}
.auction-dialog {
  width: min(780px, calc(100% - 28px));
}
.dialog-close-row {
  display: flex;
  justify-content: flex-end;
  margin: -12px -12px 4px;
}
.icon-button {
  width: 31px;
  height: 31px;
  border: 1px solid #2a3e4e;
  color: #b1c0ca;
  background: #10202d;
  border-radius: 7px;
  font-size: 19px;
  cursor: pointer;
}
.dialog h2 {
  font: 600 25px var(--display);
  letter-spacing: -0.045em;
  margin: 7px 0 4px;
}
.dialog-intro {
  color: #94a4b0;
  font-size: 11px;
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: 10px;
  color: #bac6ce;
  font-weight: 600;
  margin: 13px 0 6px;
}
.form-input {
  width: 100%;
  padding: 11px 12px;
  background: #08131e;
  border: 1px solid #263a4b;
  border-radius: 7px;
  color: white;
  outline-color: var(--green);
  font-size: 12px;
}
.form-help {
  display: block;
  margin-top: 5px;
  color: #8799a5;
  font-size: 10px;
  line-height: 1.55;
}
.form-actions {
  display: flex;
  gap: 9px;
  margin-top: 18px;
}
.form-actions > * {
  flex: 1;
}
.form-switch {
  color: var(--green-bright);
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 10px;
  margin-top: 14px;
}
.terms-consent {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-top: 16px;
  color: #aebbc4;
  font-size: 11px;
  line-height: 1.65;
}
.terms-consent input {
  flex: 0 0 auto;
  margin-top: 3px;
  accent-color: var(--green);
}
.terms-consent a { color: var(--green-bright); }
.demo-note {
  margin-top: 16px;
  padding: 11px;
  border: 1px solid #263c4d;
  background: #0a1621;
  border-radius: 7px;
  color: #8fa1ad;
  font-size: 10px;
  line-height: 1.7;
}
.demo-note strong {
  color: #c3d0d7;
}
.auction-presence-note {
  margin: 8px 0 14px;
  color: #91a2ad;
  font-size: 10px;
  line-height: 1.6;
}
.profile-trade-help {
  display: block;
  margin: 5px 0 12px;
  line-height: 1.6;
}
.profile-trade-help a,
.admin-steam-link {
  color: #2dd9a1;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.profile-detail-steam strong {
  overflow-wrap: anywhere;
}
.auction-detail-grid {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 24px;
}
.detail-art {
  min-height: 250px;
  background: radial-gradient(ellipse at center, #23443e, #0f2030 70%);
  border: 1px solid #24394a;
  border-radius: 9px;
  overflow: hidden;
}
.detail-art img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  opacity: 0.8;
  mix-blend-mode: screen;
}
.detail-rarity {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--green-bright);
}
.detail-price {
  font: 600 34px var(--display);
  letter-spacing: -0.05em;
  margin: 15px 0;
}
.detail-price small {
  font-size: 16px;
  color: #9aabb5;
}
.detail-state {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0;
}
.detail-state div {
  padding: 10px;
  border: 1px solid #263947;
  background: #0a1621;
  border-radius: 7px;
}
.detail-state span {
  display: block;
  color: #8194a1;
  font-size: 8px;
  letter-spacing: 0.08em;
}
.detail-state strong {
  font: 600 12px var(--display);
  font-variant-numeric: tabular-nums;
}
.quantity-select {
  display: flex;
  gap: 8px;
  margin: 7px 0 11px;
}
.quantity-option {
  flex: 1;
  padding: 9px;
  border: 1px solid #2b4050;
  background: #101f2c;
  color: #c2cdd4;
  border-radius: 7px;
  cursor: pointer;
}
.quantity-option.selected {
  border-color: var(--green);
  background: #0d2a22;
  color: var(--green-bright);
}
.detail-bids {
  margin-top: 20px;
}
.detail-bids h3,
.admin-pane h3 {
  font: 600 13px var(--display);
  margin-bottom: 8px;
}
.bid-row {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-top: 1px solid #1b2c3a;
  color: #aebbc4;
  font-size: 10px;
}
.bid-row strong {
  color: #e6edf0;
}
.table-scroll {
  overflow: auto;
  max-height: 340px;
  border: 1px solid #223546;
  border-radius: 8px;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
}
.data-table th,
.data-table td {
  text-align: left;
  border-bottom: 1px solid #1e3040;
  padding: 9px 11px;
  font-size: 10px;
  white-space: nowrap;
}
.data-table th {
  position: sticky;
  top: 0;
  background: #11202d;
  color: #93a5b0;
  font-size: 8px;
  letter-spacing: 0.1em;
}
.data-table td {
  color: #c2cdd4;
}
.admin-tabs {
  display: flex;
  gap: 7px;
  margin: 17px 0;
}
.admin-tab {
  border: 1px solid #2a3e4f;
  background: #0a1722;
  color: #aabbc5;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 10px;
  cursor: pointer;
}
.admin-tab.active {
  color: var(--green-bright);
  border-color: #287456;
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin: 15px 0;
}
.stat-tile {
  border: 1px solid #233747;
  border-radius: 8px;
  padding: 12px;
  background: #0a1621;
}
.stat-tile span {
  display: block;
  color: #91a3af;
  font-size: 9px;
}
.stat-tile strong {
  font: 600 23px var(--display);
}
.toast-region {
  position: fixed;
  z-index: 30;
  bottom: 18px;
  right: 18px;
  display: grid;
  gap: 8px;
}
.toast {
  background: #142635;
  border: 1px solid #365067;
  color: #eff5f7;
  padding: 12px 15px;
  border-radius: 8px;
  box-shadow: 0 10px 30px #0007;
  font-size: 11px;
  max-width: 330px;
}
.toast.error {
  border-color: #854448;
}
.empty-state {
  padding: 28px;
  text-align: center;
  color: #91a2ad;
  font-size: 11px;
}
.muted {
  color: #8395a2;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--green-bright);
  font-size: 9px;
}
.mobile-nav-toggle {
  display: none;
}
@media (max-width: 980px) {
  .site-header {
    padding: 0 24px;
    gap: 20px;
  }
  .main-nav {
    gap: 18px;
  }
  .header-actions {
    gap: 6px;
  }
  .button {
    padding: 9px 11px;
  }
  .hero {
    gap: 20px;
  }
  .auction-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-art {
    height: 190px;
  }
  .how-inner {
    gap: 48px;
  }
  .rounds-section .section-heading {
    align-items: flex-start;
    gap: 20px;
  }
  .rounds-intro {
    max-width: 350px;
  }
}
@media (max-width: 680px) {
  .shell {
    width: calc(100% - 36px);
  }
  .topline {
    font-size: 8px;
  }
  .site-header {
    height: 64px;
    padding: 0 18px;
    gap: 10px;
  }
  .brand {
    font-size: 17px;
  }
  .main-nav {
    display: none;
  }
  .header-actions {
    margin-left: auto;
  }
  .header-actions .button-ghost {
    display: none;
  }
  .button {
    padding: 9px 10px;
    font-size: 10px;
  }
  .balance-pill {
    padding: 6px 7px;
    font-size: 11px;
  }
  .balance-pill small {
    font-size: 7px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 2px;
    padding-top: 42px;
    padding-bottom: 48px;
    min-height: 0;
  }
  .hero-copy {
    padding-top: 5px;
  }
  .hero h1 {
    font-size: 46px;
    margin: 18px 0 12px;
  }
  .hero-copy > p {
    font-size: 12px;
    max-width: 330px;
  }
  .hero-foot {
    margin-top: 23px;
  }
  .hero-visual {
    height: 270px;
    margin-top: 5px;
  }
  .hero-image-wrap {
    inset: 13px 5px 31px;
  }
  .hero-card {
    bottom: 15px;
    left: 15px;
    right: 15px;
  }
  .hero-bottom-mark {
    bottom: 13px;
  }
  .auction-section {
    padding-top: 37px;
    padding-bottom: 42px;
  }
  .section-heading {
    display: block;
  }
  .section-heading h2 {
    font-size: 24px;
  }
  .section-tools {
    margin-top: 15px;
  }
  .search-box {
    flex: 1;
    width: auto;
  }
  .section-tools select {
    max-width: 126px;
  }
  .auction-grid {
    gap: 10px;
  }
  .card-art {
    height: 124px;
  }
  .card-info {
    padding: 10px;
  }
  .weapon-name {
    font-size: 12px;
  }
  .card-price {
    font-size: 17px;
  }
  .card-timer {
    font-size: 10px;
  }
  .card-footer {
    margin-top: 10px;
  }
  .section-bottom {
    font-size: 8px;
    gap: 12px;
  }
  .section-bottom-right {
    max-width: 140px;
    text-align: right;
  }
  .how-inner {
    grid-template-columns: 1fr;
    gap: 27px;
    padding-top: 43px;
    padding-bottom: 44px;
  }
  .how-copy h2 {
    font-size: 34px;
  }
  .rounds-section {
    padding-top: 44px;
    padding-bottom: 46px;
  }
  .rounds-section .section-heading {
    display: block;
  }
  .rounds-intro {
    margin-top: 13px;
  }
  .round-table th,
  .round-table td {
    padding: 10px 12px;
  }
  .mongolia-time {
    display: none;
  }
  .footer-inner {
    min-height: 85px;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 0;
  }
  .footer-inner > span:nth-child(2) {
    order: 3;
    width: 100%;
  }
  .auction-detail-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .detail-art,
  .detail-art img {
    min-height: 180px;
    height: 180px;
  }
  .dialog {
    padding: 20px;
  }
  .dialog h2 {
    font-size: 22px;
  }
  .admin-stats {
    gap: 6px;
  }
  .stat-tile {
    padding: 9px;
  }
  .stat-tile strong {
    font-size: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Dedicated auction page and entry preview */
.preview-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--surface2);
  border-radius: 9px;
  margin: 18px 0;
}
.preview-card img {
  width: 150px;
  height: 112px;
  object-fit: cover;
  border-radius: 6px;
}
.preview-card strong {
  display: block;
  font: 600 23px var(--display);
  margin: 5px 0;
}
.preview-card p {
  color: var(--muted);
  font-size: 10px;
  margin: 0;
}
.auction-page {
  padding-top: 34px;
  padding-bottom: 64px;
  min-height: calc(100vh - 185px);
}
.back-link {
  display: inline-block;
  color: var(--green-bright);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 22px;
}
.auction-page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.auction-page-heading h1 {
  font-size: clamp(32px, 4vw, 48px);
  margin: 12px 0 6px;
}
.auction-page-heading .dialog-intro {
  margin: 0;
}
.auction-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: 20px;
  align-items: start;
}
.page-art {
  height: 300px;
}
.page-art img {
  height: 100%;
  object-fit: cover;
}
.page-panel {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, var(--surface2), var(--surface));
  border-radius: 10px;
}
.page-panel h2 {
  font: 600 19px var(--display);
  margin: 0 0 14px;
}
.page-panel .section-heading {
  margin-bottom: 12px;
}
.page-panel .section-heading h2 {
  margin-bottom: 0;
}
.page-round {
  color: var(--green-bright);
  font-size: 12px;
  font-weight: 700;
}
.round-data-table {
  min-width: 590px;
}
.bid-history-list {
  max-height: 650px;
  overflow: auto;
}
.bid-history-list .bid-row {
  padding: 10px 2px;
  font-size: 11px;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 10px;
}
.pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.bid-panel {
  position: sticky;
  top: 126px;
  margin-top: 0;
}
.bid-panel .detail-price {
  font-size: 38px;
  margin: 10px 0 16px;
}
.bid-panel .detail-state {
  grid-template-columns: 1fr 1fr;
}
.bid-panel .detail-state strong {
  display: block;
  margin-top: 4px;
}
.bid-panel .quantity-select {
  margin-top: 9px;
}
@media (max-width: 850px) {
  .auction-page-grid {
    grid-template-columns: 1fr;
  }
  .bid-panel {
    position: static;
    grid-row: 1;
  }
  .page-art {
    height: 250px;
  }
}
@media (max-width: 680px) {
  .auction-page {
    padding-top: 22px;
  }
  .auction-page-heading {
    align-items: flex-start;
    gap: 12px;
  }
  .auction-page-heading h1 {
    font-size: 30px;
  }
  .auction-page-grid {
    gap: 4px;
  }
  .bid-panel {
    padding: 14px;
  }
  .page-art {
    height: 190px;
  }
  .page-panel {
    padding: 13px;
    margin-top: 13px;
  }
  .pagination {
    font-size: 9px;
  }
  .pagination .admin-tab {
    padding: 8px;
  }
  .preview-card {
    grid-template-columns: 95px 1fr;
    gap: 11px;
  }
  .preview-card img {
    width: 95px;
    height: 84px;
  }
}

/* Token shop and separate bid Coin balance */
.bid-balance-pill {
  border-color: #263e53;
  background: #0d1b29;
}
.bid-balance-pill .coin-icon {
  font-size: 9px;
  color: var(--blue);
}
/* Store listings */
.store-section {
  padding-top: 62px;
  padding-bottom: 62px;
  border-top: 1px solid #152738;
}
.store-section .section-heading {
  align-items: flex-end;
  gap: 20px;
}
.store-section .section-heading h2 {
  font: 600 32px var(--display);
  letter-spacing: -0.05em;
  margin: 8px 0 0;
}
.store-intro {
  max-width: 400px;
  color: var(--muted);
  font-size: 11px;
  margin: 0;
}
.store-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.store-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(145deg, #101e2d, #0b1724 70%);
}
.store-art {
  height: 170px;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at center, #1b3942, #0b1724 72%);
  overflow: hidden;
}
.store-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  mix-blend-mode: screen;
  filter: drop-shadow(0 10px 18px #0008);
}
.coin-pack-art {
  font: 700 18px var(--display);
  letter-spacing: 0.08em;
  color: #b5e8d5;
}
.coin-pack-art span {
  color: var(--green-bright);
  font-size: 45px;
  display: block;
  text-align: center;
}
.store-card-info {
  padding: 14px;
}
.store-category {
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--green-bright);
  font-weight: 700;
}
.store-card-info h3 {
  font: 600 15px var(--display);
  margin: 7px 0 4px;
}
.store-card-info p {
  min-height: 31px;
  color: var(--muted);
  font-size: 10px;
  margin: 0 0 12px;
}
.store-buy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.store-buy-row strong {
  font: 600 13px var(--display);
  white-space: nowrap;
}
.store-buy-row .button {
  font-size: 10px;
}
.store-card-info > small {
  display: block;
  font-size: 9px;
  margin-top: 9px;
}
.store-inventory {
  margin-top: 25px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 9px;
  padding: 15px;
}
.store-inventory h3 {
  font: 600 14px var(--display);
  margin: 0 0 10px;
}
.inventory-list {
  display: grid;
  gap: 8px;
}
.inventory-entry {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 10px;
}
.inventory-entry small {
  color: var(--muted);
}
@media (max-width: 850px) {
  .store-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .store-section {
    padding-top: 42px;
    padding-bottom: 42px;
  }
  .store-section .section-heading {
    display: block;
  }
  .store-intro {
    margin-top: 10px;
  }
  .store-grid {
    gap: 10px;
  }
  .store-art {
    height: 120px;
  }
  .store-card-info {
    padding: 10px;
  }
  .store-card-info h3 {
    font-size: 12px;
  }
  .store-card-info p {
    font-size: 9px;
    min-height: 38px;
  }
  .store-buy-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .store-buy-row .button {
    width: 100%;
  }
  .inventory-entry {
    flex-direction: column;
    gap: 3px;
  }
  .bid-balance-pill {
    padding: 6px 6px;
    font-size: 10px;
  }
  .bid-balance-pill small {
    font-size: 6px;
  }
  #balance-pill {
    padding: 6px 6px;
    font-size: 10px;
  }
  #balance-pill small {
    font-size: 6px;
  }
}
.wallet-trigger {
  cursor: pointer;
  color: var(--text);
}
.wallet-trigger:hover {
  border-color: var(--green-bright);
  transform: translateY(-1px);
}
.profile-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 20px;
}
.profile-summary h2 {
  margin: 7px 0 3px;
}
.profile-avatar {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #238c68;
  background: #10202d;
}
.profile-photo-editor {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 7px 14px;
  align-items: center;
  margin: 12px 0 18px;
}
.profile-photo-editor .profile-avatar {
  grid-row: span 2;
}
.profile-photo-editor small {
  grid-column: 2;
}
.profile-photo-editor label {
  width: max-content;
}
.wallet-package-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0;
}
.wallet-package {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid #234052;
  background: linear-gradient(145deg, #112333, #0a1724);
  border-radius: 10px;
  padding: 15px;
}
.wallet-package > span {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--green-bright);
  font-weight: 700;
}
.wallet-package strong {
  font: 600 23px var(--display);
}
.wallet-package small {
  color: #9bacb9;
  min-height: 30px;
}
.wallet-package .button {
  font-size: 10px;
  white-space: normal;
}
.token-info-card,
.token-exchange-card {
  border: 1px solid #23394b;
  background: #0d1b28;
  border-radius: 10px;
  padding: 17px;
  margin: 16px 0;
}
.token-info-card strong {
  font: 600 15px var(--display);
}
.token-info-card p {
  margin: 7px 0 0;
  color: #9bacb9;
  font-size: 11px;
  line-height: 1.7;
}
.token-exchange-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.token-exchange-card strong {
  display: block;
  font: 600 22px var(--display);
  margin: 7px 0;
}
.token-exchange-card strong span {
  color: var(--green-bright);
}
.token-exchange-card small {
  display: block;
  color: #92a4b1;
  font-size: 10px;
}
.token-exchange-card .button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.winner-feature {
  position: relative;
  display: grid;
  grid-template-columns: auto 100px 1fr auto;
  align-items: center;
  gap: 22px;
  overflow: hidden;
  margin: 0 0 27px;
  padding: 24px 30px;
  border: 1px solid #957d3a;
  border-radius: 14px;
  background: radial-gradient(ellipse at 0 50%, #443718 0%, #17231f 47%, #0d1924 100%);
  box-shadow: 0 16px 48px #0005;
}
.winner-crown {
  font-size: 34px;
  color: #f5d673;
  filter: drop-shadow(0 0 14px #efc34c66);
}
.winner-feature > img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #f1cc63;
  box-shadow: 0 0 0 7px #e5bc3220, 0 0 30px #dbac3e44;
}
.winner-feature-copy .eyebrow {
  color: #f0d477;
}
.winner-feature-copy h2 {
  font: 600 32px var(--display);
  margin: 6px 0;
}
.winner-feature-copy p {
  margin: 0;
  color: #bec5bf;
  font-size: 12px;
}
.winner-feature-stats {
  display: flex;
  gap: 24px;
}
.winner-feature-stats small {
  display: block;
  color: #a9a48b;
  font-size: 8px;
  letter-spacing: 0.12em;
}
.winner-feature-stats strong {
  display: block;
  margin-top: 5px;
  font: 600 19px var(--display);
  color: #fff1b7;
}
.winner-feature-stats > div + div {
  padding-left: 22px;
  border-left: 1px solid #655b37;
}
.winner-empty {
  grid-template-columns: auto 1fr;
  border-color: #304253;
  background: #101e2b;
}
.winner-empty h2 {
  margin: 6px 0;
}
.winner-empty p {
  margin: 0;
  color: #9bacb9;
}
.winner-card-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 9px 10px;
  border: 1px solid #725f2c;
  border-radius: 8px;
  background: linear-gradient(90deg, #352c17, #15221f);
}
.winner-card-mini img {
  width: 38px;
  height: 38px;
  border: 2px solid #e7c65e;
  border-radius: 50%;
  object-fit: cover;
}
.winner-card-mini span {
  display: grid;
  gap: 1px;
  flex: 1;
  min-width: 0;
}
.winner-card-mini small {
  color: #b6aa7d;
  font-size: 8px;
}
.winner-card-mini strong {
  color: #f4e3a3;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.winner-card-mini b {
  color: #f0cd67;
  font-size: 18px;
}
@media (max-width: 700px) {
  .wallet-package-grid {
    grid-template-columns: 1fr;
  }
  .wallet-package {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .wallet-package > span,
  .wallet-package small {
    grid-column: 1;
  }
  .wallet-package strong,
  .wallet-package .button {
    grid-column: 2;
    grid-row: 1;
  }
  .wallet-package .button {
    grid-row: 2;
  }
  .winner-feature {
    grid-template-columns: 52px 1fr;
    gap: 13px;
    padding: 17px;
  }
  .winner-feature > img {
    width: 58px;
    height: 58px;
  }
  .winner-feature-copy h2 {
    font-size: 24px;
  }
  .winner-feature-copy p {
    font-size: 10px;
  }
  .winner-feature-stats {
    grid-column: 2;
    gap: 18px;
  }
  .winner-feature-stats > div + div {
    padding-left: 16px;
  }
  .winner-crown {
    font-size: 26px;
  }
  .token-exchange-card {
    align-items: flex-start;
    flex-direction: column;
  }
  .profile-summary {
    gap: 12px;
  }
  .profile-avatar {
    width: 64px;
    height: 64px;
  }
}
/* User profile dashboard */
.profile-page {
  padding-top: 30px;
  padding-bottom: 70px;
  min-height: calc(100vh - 185px);
}
.profile-hero {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 8px 0 22px;
  padding: 25px 28px;
  border: 1px solid #22394a;
  border-radius: 13px;
  background: radial-gradient(ellipse at 0 0, #173a36, #0d1925 68%);
}
.profile-hero > img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border: 3px solid #2b9a72;
  border-radius: 50%;
  background: #10202d;
}
.profile-identity {
  flex: 1;
  min-width: 0;
}
.profile-identity h1 {
  font-size: 34px;
  margin: 8px 0 4px;
  overflow-wrap: anywhere;
}
.profile-identity p {
  color: #9bacb9;
  font-size: 11px;
  margin: 0;
  overflow-wrap: anywhere;
}
.profile-balance-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  margin-bottom: 22px;
}
.profile-balance {
  display: grid;
  gap: 4px;
  text-align: left;
  padding: 15px 17px;
  border: 1px solid #254052;
  border-radius: 9px;
  background: #0d1b28;
  color: var(--text);
  cursor: pointer;
}
.profile-balance:hover {
  border-color: var(--green-bright);
}
.profile-balance small {
  color: #8ba09f;
  font-size: 8px;
  letter-spacing: 0.13em;
}
.profile-balance strong {
  font: 600 22px var(--display);
}
.profile-balance span {
  font-size: 9px;
  color: var(--green-bright);
}
.profile-quick-actions {
  display: grid;
  gap: 7px;
}
.profile-tabs {
  display: flex;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid #213344;
}
.profile-tab {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #9bacb9;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.profile-tab:hover,
.profile-tab.active {
  border-color: #285841;
  background: #0d241e;
  color: #d9fff0;
}
.profile-tab b {
  display: grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  border-radius: 99px;
  background: #14352b;
  color: var(--green-bright);
  font-size: 9px;
}
.profile-tab-content {
  padding-top: 24px;
}
.profile-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 17px;
}
.profile-section-heading h2 {
  font: 600 25px var(--display);
  margin: 7px 0 4px;
}
.profile-section-heading p {
  color: #95a6b1;
  font-size: 11px;
  margin: 0;
  max-width: 560px;
}
.profile-item-count {
  color: #a9c3bb;
  font-size: 10px;
}
.my-items-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.my-item-card {
  overflow: hidden;
  border: 1px solid #203445;
  border-radius: 10px;
  background: linear-gradient(145deg, #112231, #0b1724);
  cursor: pointer;
  transition: border-color .18s ease, transform .18s ease;
}
.my-item-card:hover,
.my-item-card:focus-visible {
  border-color: var(--green-bright);
  transform: translateY(-2px);
  outline: none;
}
.my-item-image {
  height: 165px;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at center, #203a3c, #0b1724 75%);
}
.my-item-image img {
  width: 100%;
  height: 100%;
  padding: 12px;
  object-fit: contain;
  mix-blend-mode: screen;
}
.my-item-info {
  display: grid;
  gap: 6px;
  padding: 13px;
}
.item-source {
  width: max-content;
  padding: 4px 7px;
  border-radius: 4px;
  background: #12382d;
  color: #72ddb3;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.item-source.auction-source {
  background: #3a3019;
  color: #f0d478;
}
.my-item-info h3 {
  font: 600 14px var(--display);
  margin: 2px 0;
}
.my-item-info > strong {
  color: #e5f6ed;
  font: 600 13px var(--display);
}
.my-item-info > small {
  color: #91a2ad;
  font-size: 9px;
  line-height: 1.6;
}
.my-item-detail {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin: 12px 0 18px;
}
.my-item-detail > img {
  width: 150px;
  height: 132px;
  border-radius: 10px;
  object-fit: contain;
  background: radial-gradient(ellipse at center, #203a3c, #0b1724 75%);
}
.my-item-detail h2 { margin: 8px 0 4px; }
.my-item-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0;
}
.my-item-detail-grid > div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 11px;
  border: 1px solid #203545;
  border-radius: 8px;
  background: #0b1824;
}
.my-item-detail-grid small {
  color: #80939f;
  font-size: 9px;
  letter-spacing: .06em;
}
.my-item-detail-grid strong {
  overflow-wrap: anywhere;
  color: #e2edf1;
  font-size: 12px;
}
.delivery-warning {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid #8a682b;
  border-radius: 10px;
  background: linear-gradient(135deg, #2a2112, #191811);
  color: #f1dba9;
  font-size: 14px;
  line-height: 1.65;
}
.delivery-warning strong { font-size: 16px; }
.delivery-warning a { color: #fff1c9; font-size: 21px; font-weight: 700; }
.admin-results-table { min-width: 1020px; }
.admin-result-item,
.admin-result-winner { display: flex; align-items: center; gap: 9px; }
.admin-result-item img { width: 48px; height: 38px; object-fit: contain; }
.admin-result-winner img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.admin-result-winner .muted { line-height: 1.7; }
.profile-empty {
  display: grid;
  justify-items: center;
  padding: 52px 18px;
  border: 1px dashed #2a4050;
  border-radius: 10px;
  text-align: center;
}
.profile-empty > span {
  color: var(--green-bright);
  font-size: 28px;
}
.profile-empty h3 {
  margin: 8px 0 3px;
  font: 600 17px var(--display);
}
.profile-empty p {
  max-width: 380px;
  color: #94a5b1;
  font-size: 11px;
}
.profile-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.profile-details-grid > div {
  display: grid;
  gap: 4px;
  padding: 13px;
  border: 1px solid #1f3344;
  background: #0c1926;
  border-radius: 8px;
}
.profile-details-grid small {
  font-size: 8px;
  letter-spacing: 0.1em;
  color: #8ca0ad;
}
.profile-details-grid strong {
  font-size: 12px;
  overflow-wrap: anywhere;
}
@media (max-width: 760px) {
  .profile-balance-row {
    grid-template-columns: 1fr 1fr;
  }
  .profile-quick-actions {
    grid-column: 1/-1;
    display: flex;
  }
  .my-items-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .profile-hero {
    padding: 19px;
    gap: 14px;
    flex-wrap: wrap;
  }
  .profile-hero > img {
    width: 68px;
    height: 68px;
  }
  .profile-identity h1 {
    font-size: 26px;
  }
  .profile-hero > .button {
    margin-left: 82px;
  }
}
@media (max-width: 500px) {
  .profile-page {
    padding-top: 20px;
  }
  .profile-balance-row {
    gap: 7px;
  }
  .profile-balance {
    padding: 11px;
  }
  .profile-balance strong {
    font-size: 17px;
  }
  .profile-tabs {
    gap: 2px;
    overflow: auto;
  }
  .profile-tab {
    white-space: nowrap;
    padding: 9px 10px;
    font-size: 10px;
  }
  .my-items-grid {
    grid-template-columns: 1fr;
  }
  .my-item-image {
    height: 185px;
  }
  .profile-details-grid {
    grid-template-columns: 1fr;
  }
  .profile-hero > .button {
    margin-left: 0;
  }
}
/* Admin dashboard */
.admin-page {
  padding-top: 30px;
  padding-bottom: 70px;
  min-height: calc(100vh - 185px);
}
.admin-hero {
  display: flex;
  align-items: center;
  gap: 17px;
  margin: 8px 0 20px;
  padding: 23px 27px;
  border: 1px solid #284355;
  border-radius: 13px;
  background: radial-gradient(ellipse at 0 0, #173747, #0d1925 68%);
}
.admin-mark {
  display: grid;
  place-content: center;
  gap: 1px;
  width: 68px;
  height: 68px;
  border: 1px solid #347a99;
  border-radius: 13px;
  background: #0d2534;
  color: #7bc9ee;
  font: 700 23px var(--display);
  text-align: center;
}
.admin-mark span {
  font: 700 7px var(--font);
  letter-spacing: 0.12em;
}
.admin-identity {
  flex: 1;
  min-width: 0;
}
.admin-identity h1 {
  font-size: 32px;
  margin: 6px 0;
}
.admin-identity p {
  margin: 0;
  color: #96aab7;
  font-size: 11px;
}
.admin-overview-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}
.admin-overview-stat {
  display: grid;
  gap: 4px;
  padding: 15px 17px;
  border: 1px solid #1e3445;
  border-radius: 9px;
  background: linear-gradient(145deg, #102130, #0b1724);
}
.admin-overview-stat small {
  font-size: 8px;
  letter-spacing: 0.14em;
  color: #82a0ae;
}
.admin-overview-stat strong {
  font: 600 24px var(--display);
}
.admin-overview-stat span {
  color: #91a2ad;
  font-size: 9px;
}
.admin-revenue-panel {
  margin: 0 0 22px;
  padding: 16px;
  border: 1px solid #1e3445;
  border-radius: 9px;
  background: #0b1724;
}
.admin-revenue-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}
.admin-revenue-heading h2 {
  margin: 4px 0 0;
  font: 600 17px var(--display);
}
.admin-revenue-heading p,
.admin-revenue-note {
  color: #91a2ad;
  font-size: 10px;
}
.admin-revenue-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}
.admin-revenue-card {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid #21394a;
  border-radius: 7px;
  background: #102130;
}
.admin-revenue-card small {
  color: #82a0ae;
  font-size: 8px;
  letter-spacing: 0.1em;
}
.admin-revenue-card strong {
  color: #2dd9a1;
  font: 600 19px var(--display);
}
.admin-revenue-note {
  margin: 11px 0 0;
}
.admin-sales-chart-panel {
  margin-top: 17px;
  padding-top: 15px;
  border-top: 1px solid #21394a;
}
.admin-sales-chart-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.admin-sales-chart-heading h3 {
  margin: 0;
  font-size: 13px;
}
.admin-sales-chart-heading p {
  margin: 5px 0 0;
  color: #91a2ad;
  font-size: 10px;
}
.admin-sales-range-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.admin-sales-range-buttons .admin-tab.active {
  border-color: #168660;
  color: #2dd9a1;
  background: #0c211d;
}
.admin-sales-chart-legend {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 13px 0 2px;
  color: #91a2ad;
  font-size: 9px;
}
.admin-sales-chart-legend span {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: #2dd9a1;
}
.admin-sales-chart-scroll {
  overflow-x: auto;
}
.admin-sales-chart {
  display: block;
  width: 100%;
  min-width: 650px;
  height: 190px;
  overflow: visible;
}
.admin-sales-grid-line {
  stroke: #21394a;
  stroke-width: 1;
}
.admin-sales-bar {
  fill: #2dd9a1;
  opacity: 0.88;
}
.admin-sales-bar:hover {
  fill: #78f0c4;
  opacity: 1;
}
.admin-sales-axis-label {
  fill: #91a2ad;
  font-size: 10px;
}
.admin-sales-empty {
  margin: 2px 0 12px;
  color: #91a2ad;
  font-size: 10px;
}
.admin-sales-daily-details {
  border-top: 1px solid #21394a;
  padding-top: 10px;
  color: #c5d2dc;
  font-size: 11px;
}
.admin-sales-daily-details summary {
  cursor: pointer;
}
.admin-sales-table-scroll {
  max-height: 260px;
  overflow: auto;
  margin-top: 10px;
}
.admin-section-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-bottom: 13px;
  border-bottom: 1px solid #203445;
}
.admin-section-tab {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  border: 1px solid #23394b;
  border-radius: 9px;
  background: #0c1926;
  color: #a6b6c0;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.admin-section-tab > span {
  color: #6e91a4;
  font: 600 11px var(--display);
}
.admin-section-tab:hover,
.admin-section-tab.active {
  border-color: #27875f;
  background: linear-gradient(100deg, #102c25, #0d1c25);
  color: #e8fff6;
}
.admin-section-tab.active > span {
  color: var(--green-bright);
}
.admin-dashboard-panel {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid #1e3444;
  border-radius: 11px;
  background: linear-gradient(145deg, #0d1b28, #0a1622);
}
.admin-panel-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.admin-panel-heading h2 {
  font: 600 24px var(--display);
  margin: 6px 0 3px;
}
.admin-panel-heading p {
  margin: 0;
  color: #93a5b1;
  font-size: 10px;
}
.admin-dashboard-panel h3 {
  font: 600 15px var(--display);
  margin: 0 0 11px;
}
.admin-editor-form {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid #2b4656;
  border-radius: 9px;
  background: #101f2c;
}
.admin-demo-balance-form {
  display: grid;
  grid-template-columns: minmax(200px, 1.5fr) minmax(180px, 1.2fr) minmax(140px, 0.8fr) minmax(100px, 0.5fr) auto;
  align-items: center;
  gap: 10px;
  border-color: #376147;
  background: #0d211b;
}
.admin-demo-balance-form h3 {
  margin: 4px 0;
  font-size: 14px;
}
.admin-demo-balance-form p {
  margin: 0;
  font-size: 9px;
}
.admin-editor-form h3 {
  font: 600 17px var(--display);
  margin: 0 0 14px;
}
.admin-editor-form > label,
.admin-form-grid label {
  display: grid;
  gap: 6px;
  margin: 10px 0;
  color: #a7b7c0;
  font-size: 10px;
  font-weight: 700;
}
.admin-editor-form textarea {
  resize: vertical;
}
.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 13px;
}
.admin-store-layout {
  display: grid;
  grid-template-columns: minmax(270px, 0.8fr) minmax(0, 1.2fr);
  gap: 26px;
}
.admin-delivery-section {
  margin: 0 0 24px;
  padding: 15px;
  border: 1px solid #234253;
  border-radius: 9px;
  background: #0a1621;
}
.admin-delivery-heading h3 {
  margin: 0;
  font-size: 13px;
}
.admin-delivery-heading p,
.admin-delivery-instructions {
  color: #91a2ad;
  font-size: 10px;
  line-height: 1.7;
}
.admin-delivery-heading p {
  margin: 5px 0 12px;
}
.admin-delivery-table {
  min-width: 1380px;
}
.delivery-request-badge {
  color: #8ee5bd;
  font-size: 9px;
  letter-spacing: .04em;
}
.admin-delivery-status {
  min-width: 150px;
}
.admin-delivery-offer {
  min-width: 140px;
}
.admin-delivery-note {
  min-width: 170px;
}
.admin-delivery-instructions {
  margin: 12px 0 0;
}
.admin-product-list {
  display: grid;
  gap: 8px;
}
.admin-product-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border: 1px solid #203545;
  border-radius: 8px;
  background: #0b1824;
}
.admin-product-row img {
  width: 48px;
  height: 45px;
  object-fit: contain;
  background: #10212d;
  border-radius: 6px;
}
.admin-product-row > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.admin-product-row strong {
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-product-row small {
  font-size: 8px;
  color: #94a5b0;
}
.danger-tab {
  color: #ff9296 !important;
  border-color: #523137 !important;
}
.admin-user-search {
  max-width: 420px;
  margin-bottom: 14px;
}
.admin-subsection {
  margin-top: 18px;
  border-top: 1px solid #263948;
  padding-top: 14px;
}
.admin-subsection summary {
  cursor: pointer;
  color: #a9bac4;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 0 13px;
}
.admin-dashboard-panel .data-table {
  min-width: 700px;
}
.admin-dashboard-panel .table-scroll {
  margin-bottom: 12px;
}
@media (max-width: 850px) {
  .admin-store-layout {
    grid-template-columns: 1fr;
  }
  .admin-demo-balance-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-product-list {
    margin-bottom: 18px;
  }
}
@media (max-width: 680px) {
  .admin-page {
    padding-top: 20px;
  }
  .admin-demo-balance-form {
    grid-template-columns: 1fr;
  }
  .admin-hero {
    padding: 17px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .admin-mark {
    width: 52px;
    height: 52px;
  }
  .admin-identity h1 {
    font-size: 24px;
  }
  .admin-identity p {
    font-size: 9px;
  }
  .admin-hero > .button {
    margin-left: 64px;
  }
  .admin-overview-stats {
    gap: 6px;
  }
  .admin-overview-stat {
    padding: 10px;
  }
  .admin-overview-stat strong {
    font-size: 19px;
  }
  .admin-overview-stat span {
    font-size: 8px;
  }
  .admin-revenue-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-revenue-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .admin-sales-chart-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .admin-sales-chart {
    min-width: 600px;
  }
  .admin-section-tabs {
    gap: 5px;
  }
  .admin-section-tab {
    display: grid;
    gap: 5px;
    padding: 10px 8px;
    font-size: 9px;
  }
  .admin-dashboard-panel {
    padding: 13px;
  }
  .admin-panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .admin-product-row {
    grid-template-columns: 40px minmax(0, 1fr) auto;
  }
  .admin-product-row img {
    width: 40px;
  }
  .admin-product-row .danger-tab {
    grid-column: 2/4;
    justify-self: end;
  }
  .admin-form-grid {
    grid-template-columns: 1fr;
  }
  .admin-hero > .button {
    margin-left: 0;
  }
}
/* Live auction monitor */
.live-monitor-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
  padding-bottom: 17px;
  border-bottom: 1px solid #243a4b;
}
.live-monitor-heading > div {
  flex: 1;
}
.live-monitor-heading h2 {
  font: 600 22px var(--display);
  margin: 5px 0;
}
.live-monitor-pulse {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #6ae2b2;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.live-monitor-pulse .status-dot {
  width: 6px;
  height: 6px;
}
.admin-live-metrics {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 9px;
  margin-bottom: 18px;
}
.admin-live-metrics > div {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid #20394a;
  border-radius: 8px;
  background: #0b1925;
}
.admin-live-metrics small {
  color: #8aa1ae;
  font-size: 7px;
  letter-spacing: 0.11em;
}
.admin-live-metrics strong {
  font: 600 14px var(--display);
  font-variant-numeric: tabular-nums;
}
.live-filter-panel,
.live-bids-panel,
.live-viewers-panel {
  padding: 16px;
  margin: 14px 0;
  border: 1px solid #21394b;
  border-radius: 9px;
  background: #0c1a27;
}
.live-filter-head,
.live-bids-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 13px;
}
.live-filter-head h3,
.live-bids-header h3 {
  font: 600 15px var(--display);
  margin: 0 0 3px;
}
.live-filter-head p {
  margin: 0;
  color: #91a4b0;
  font-size: 9px;
}
.live-filter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 10px;
}
.live-filter-grid label {
  display: grid;
  gap: 5px;
  color: #a7b6bf;
  font-size: 8px;
  line-height: 1.4;
}
.live-filter-grid .form-input {
  min-width: 0;
  padding: 9px;
  font-size: 10px;
}
.live-search-summary {
  margin-top: 11px;
  color: #a3b3bd;
  font-size: 9px;
}
.search-highlight {
  background: #f5d663;
  color: #1d1b10;
  border-radius: 2px;
  padding: 1px 2px;
  font-weight: 800;
}
.live-bids-header {
  align-items: center;
}
.live-bids-header > span {
  font-size: 9px;
  color: #8da2ae;
}
.live-bids-table {
  min-width: 800px !important;
}
.live-bid-user {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 150px;
}
.live-bid-user img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border: 1px solid #2d745b;
  border-radius: 50%;
  background: #10212c;
}
.live-bid-user span {
  display: grid;
  gap: 2px;
}
.live-bid-user strong {
  font-size: 10px;
}
.live-bid-user small {
  font-size: 8px;
  color: #8fa2ad;
}
.live-empty {
  padding: 22px;
  text-align: center;
  border: 1px dashed #354a59;
  border-radius: 7px;
  color: #aab7bf;
  font-size: 10px;
}
.live-user-profile {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #3c5a64;
  border-radius: 10px;
  background: linear-gradient(145deg, #11222d, #0c1925);
}
.live-user-profile-heading {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 14px;
}
.live-user-profile-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border: 1px solid #294251;
  border-radius: 8px;
  background: #0a1722;
}
.live-user-profile-card > img {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #37936d;
}
.live-user-identity {
  flex: 1;
  min-width: 0;
}
.live-user-identity h2 {
  font: 600 22px var(--display);
  margin: 0 0 4px;
}
.live-user-identity p {
  font-size: 10px;
  color: #a4b4bd;
  overflow-wrap: anywhere;
  margin: 0 0 3px;
}
.live-user-identity small {
  font-size: 8px;
  color: #849aa6;
}
.live-user-balances {
  display: grid;
  gap: 7px;
  color: #a7dfc9;
  font-size: 10px;
  font-weight: 700;
}
.live-user-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin: 12px 0;
}
.live-user-stats > div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #243c4d;
  border-radius: 7px;
  background: #0b1925;
}
.live-user-stats small {
  color: #879eab;
  font-size: 7px;
  letter-spacing: 0.12em;
}
.live-user-stats strong {
  font: 600 19px var(--display);
}
.live-user-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.live-user-columns h3 {
  font: 600 13px var(--display);
  margin: 14px 0 8px;
}
@media (max-width: 950px) {
  .live-filter-grid {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }
  .admin-live-metrics {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 650px) {
  .live-monitor-heading {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
  }
  .live-monitor-heading > div {
    min-width: 55%;
  }
  .live-monitor-pulse {
    width: 100%;
    margin-left: 2px;
  }
  .admin-live-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .live-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .live-filter-panel,
  .live-bids-panel,
  .live-viewers-panel,
  .live-user-profile {
    padding: 11px;
  }
  .live-user-profile-card {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .live-user-profile-card > img {
    width: 58px;
    height: 58px;
  }
  .live-user-identity {
    flex-basis: 65%;
  }
  .live-user-balances {
    width: 100%;
    display: flex;
    gap: 12px;
  }
  .live-user-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .live-filter-head {
    align-items: flex-start;
  }
  .live-filter-head .admin-tab {
    white-space: nowrap;
    padding: 8px;
  }
  .my-item-detail {
    grid-template-columns: 1fr;
  }
  .my-item-detail > img {
    width: 100%;
    height: 175px;
  }
  .my-item-detail-grid {
    grid-template-columns: 1fr;
  }
  .delivery-warning {
    font-size: 13px;
  }
}

/* Keep wide content inside its panel on phones and tablets. */
img, canvas, svg { max-width: 100%; }
.hero > *, .how-inner > *, .auction-page-layout > *,
.admin-store-layout > *, .profile-page > *, .admin-page > *,
.admin-dashboard-panel, .table-scroll, .round-table-wrap,
.live-filter-panel, .live-bids-panel, .live-viewers-panel { min-width: 0; }
.table-scroll, .round-table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
input, select, textarea { min-width: 0; max-width: 100%; }
.form-actions, .profile-quick-actions { flex-wrap: wrap; }
dialog { max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); overflow: auto; }
@media (max-width: 1100px) {
  .site-header { height: auto; min-height: 72px; flex-wrap: wrap; padding: 14px 20px; gap: 14px; }
  .main-nav { height: 40px; order: 3; width: 100%; justify-content: center; }
  .header-actions { margin-left: auto; flex-wrap: wrap; }
  .hero, .how-inner { grid-template-columns: minmax(0, 1fr); }
  .admin-demo-balance-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading, .admin-panel-heading { flex-wrap: wrap; }
}
@media (max-width: 680px) {
  .shell { width: calc(100% - 28px); }
  .site-header { padding: 12px 14px; }
  .header-actions { width: 100%; margin-left: 0; gap: 8px; }
  .header-actions .button-ghost { display: inline-flex; }
  #account-button { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .button { min-height: 44px; font-size: 12px; white-space: normal; }
  input, select, textarea, .form-input { font-size: 16px; }
  .hero, .auction-detail, .auction-page-layout, .how-inner,
  .admin-store-layout, .admin-demo-balance-form { grid-template-columns: minmax(0, 1fr); }
  .auction-grid, .store-grid { grid-template-columns: minmax(0, 1fr); }
  .admin-hero, .live-monitor-heading, .live-filter-head, .live-bids-header { flex-wrap: wrap; }
  .admin-live-metrics, .admin-overview-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .live-filter-grid { grid-template-columns: minmax(0, 1fr); }
  .profile-tabs, .admin-tabs, .admin-section-tabs { max-width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .profile-tabs > *, .admin-tabs > *, .admin-section-tabs > * { flex-shrink: 0; }
  .admin-dashboard-panel { padding: 14px; }
  .round-table { min-width: 0; }
  .round-table th, .round-table td { padding: 10px 7px; letter-spacing: normal; }
  .form-actions > .button { flex: 1 1 140px; }
}

/* Grid children must shrink before their scrollable tables do. */
.auction-page-grid > *, .bid-panel, .page-panel, .detail-state > * { min-width: 0; }
.detail-state strong, .detail-state span { overflow-wrap: anywhere; }
@media (max-width: 1024px) {
 .auction-page-grid { grid-template-columns: minmax(0, 1fr); }
 .bid-panel { position: static; grid-row: 1; }
}
@media (max-width: 680px) {
 .bid-panel .detail-state { grid-template-columns: minmax(0, 1fr); }
 .auction-page-heading { flex-wrap: wrap; }
 .page-art img { width: 100%; object-fit: contain; }
 .page-panel, .bid-panel { width: 100%; max-width: 100%; }
 .round-data-table { min-width: 0; }
 .round-data-table th, .round-data-table td { padding: 9px 5px; white-space: normal; }
}

/* Two auction cards per row on mobile, with content sized for narrow cards. */
@media (max-width: 680px) {
 .auction-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
 .auction-card { min-width: 0; }
 .auction-card .card-art { height: 135px; }
 .auction-card .card-info { padding: 10px 8px; }
 .auction-card .weapon-name { font-size: 13px; }
 .auction-card .weapon-type { font-size: 9px; }
 .auction-card .card-meta { flex-wrap: wrap; gap: 8px; }
 .auction-card .card-price { font-size: 19px; }
 .auction-card .card-timer { font-size: 11px; text-align: left; }
 .auction-card .card-footer { flex-wrap: wrap; gap: 6px; }
 .auction-card .card-rarity { left: 6px; top: 6px; font-size: 7px; padding: 3px 4px; }
 .auction-card .card-live { right: 6px; top: 32px; font-size: 7px; }
}

/* Vector icons render consistently without operating-system emoji fonts. */
.ui-icon { display: inline-block; width: 1em; height: 1em; flex-shrink: 0; vertical-align: -0.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.auction-grid, .store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.auction-grid > :only-child, .store-grid > :only-child { grid-column: 1 / -1; }
@media (max-width: 680px) {
 .store-grid { gap: 10px; }
 .store-card { min-width: 0; }
 .store-card h3 { overflow-wrap: anywhere; }
 .store-card .button { max-width: 100%; }
}

/* Compact mobile header: identity first, wallet and account controls below. */
[hidden] { display: none !important; }
.step-icon .ui-icon { width: 24px; height: 24px; }
.coin-icon .ui-icon { width: 16px; height: 16px; }
@media (max-width: 680px) {
 .site-header { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 14px; }
 .site-header .brand { font-size: 20px; width: fit-content; }
 .site-header .header-actions { display: flex; width: 100%; align-items: stretch; gap: 8px; margin: 0; }
 .header-actions .balance-pill { flex: 1 1 80px; justify-content: center; min-height: 42px; padding: 8px; gap: 6px; }
 .header-actions #account-button { flex: 1 1 130px; min-width: 0; min-height: 42px; padding: 10px; font-size: 13px; }
 .header-actions #history-button, .header-actions #admin-button { display: none; }
 .header-actions .balance-pill small { font-size: 9px; }
 .header-actions .balance-pill { font-size: 13px; }
 .header-actions #account-button > span { margin-left: 6px; }
 .step { grid-template-columns: 30px minmax(0, 1fr) 24px; gap: 10px; }
 .topline { font-size: 8px; letter-spacing: 0.08em; gap: 6px; }
}

/* Account navigation is a separate bar from the brand and site links. */
.account-navigation { border-bottom: 1px solid var(--line); background: #0b1724; padding: 10px max(14px, calc((100vw - 1180px) / 2)); }
.account-navigation .header-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin: 0; }
.account-navigation #account-button { order: 4; }
.account-navigation #history-button { order: 3; }
.account-navigation #admin-button { order: 5; }
.account-navigation #balance-pill { order: 1; }
.account-navigation #bid-balance-pill { order: 2; }
@media (max-width: 680px) {
 .site-header { display: flex; min-height: 64px; padding: 12px 14px; }
 .account-navigation { padding: 10px 12px; }
 .account-navigation .header-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; width: 100%; }
 .account-navigation .header-actions #history-button { display: block; }
 .account-navigation .header-actions #admin-button { display: block; grid-column: 1 / -1; }
 .account-navigation .header-actions .button, .account-navigation .header-actions .balance-pill { width: 100%; min-width: 0; min-height: 44px; padding: 8px 4px; font-size: 11px; margin: 0; }
 .account-navigation .balance-pill { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; }
 .account-navigation .balance-pill small { font-size: 8px; }
 .account-navigation #account-button > span { display: none; }
 .account-navigation .coin-icon { display: none; }
}

.account-navigation .header-actions #account-button { margin-left: auto; }
@media (max-width: 680px) {
 .account-navigation .header-actions #account-button { grid-column: 4; justify-self: end; }
}
