/* LIQUID ROHAN - Exchange Market
   Shares the palette and type scale of style.css so the market reads as part
   of the site rather than a bolted-on shop. */

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.market-main { padding: 46px 0 90px; }

/* --- Hero ---------------------------------------------------------------- */
.market-hero {
  position: relative; display: grid; align-items: end; gap: 34px;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
  padding: 38px 40px;
  border: 1px solid var(--line); border-radius: 4px;
  background:
    radial-gradient(120% 160% at 8% 0%, #79e6b414, transparent 58%),
    radial-gradient(90% 120% at 100% 100%, #edc57410, transparent 60%),
    linear-gradient(160deg, #0d1c21, #081216 70%);
  overflow: hidden;
}
.market-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(#ffffff05 1px, transparent 1px);
  background-size: 100% 34px; opacity: .5;
}
.market-hero--compact { padding: 30px 34px; }
.market-hero--compact { grid-template-columns: minmax(0, 1fr); }
.market-hero-copy { position: relative; z-index: 1; max-width: 640px; }
.market-hero h1 {
  margin: 10px 0 12px; font-size: clamp(30px, 4vw, 46px); font-weight: 800;
  letter-spacing: -.02em;
}
.market-hero h1 span { color: var(--accent); }
.market-hero p { margin: 0; color: var(--muted); max-width: 58ch; }
.market-hero-stats { position: relative; z-index: 1; display: flex; gap: 10px; flex-wrap: wrap; }
.market-hero-side {
  position: relative; z-index: 1; display: flex; flex-direction: column;
  gap: 12px; width: 100%;
}
.market-steps {
  display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; list-style: none;
  border: 1px solid #2b4a4f; border-radius: 3px; background: #06101499;
}
.market-steps li {
  display: flex; align-items: baseline; gap: 9px; padding: 9px 14px;
  font-size: 0.875rem; color: #9ab6b0; border-top: 1px solid #1c3a3e;
}
.market-steps li:first-child { border-top: 0; }
.market-steps li span { color: #4f7f74; font-size: 0.8rem; letter-spacing: .1em; }
.market-steps li b { color: #eaf5ee; font-weight: 700; }
.market-stat {
  min-width: 118px; padding: 12px 16px; border: 1px solid #2b4a4f; border-radius: 3px;
  background: #061014cc;
}
.market-stat span { display: block; font-size: 0.875rem; letter-spacing: .14em; color: #7ba39b; }
.market-stat strong { display: block; margin-top: 4px; font-size: 1.06rem; letter-spacing: .02em; }
.market-stat strong.is-gold { color: var(--gold); }

/* --- Tabs ---------------------------------------------------------------- */
.market-tabs {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 22px 0 18px;
  padding: 6px; border: 1px solid var(--line-soft); border-radius: 3px;
  background: #08141899;
}
.market-tabs a {
  display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px;
  border-radius: 2px; font-size: 0.875rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; color: #a8bdbd;
  border: 1px solid transparent; transition: color .18s, background .18s, border-color .18s;
}
.market-tabs a:hover { color: var(--accent); background: #0e2226; }
.market-tabs a.is-active {
  color: #071014; background: linear-gradient(180deg, #a7f0cd, #64d3a1);
  border-color: #b9f5d8; box-shadow: 0 4px 18px #79e6b42e;
}
.tab-rune { font-size: 0.875rem; opacity: .9; }

.market-subtabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.market-subtabs a {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  border: 1px solid var(--line); border-radius: 999px; font-size: 0.875rem;
  color: #a8bdbd; background: #0a161a;
}
.market-subtabs a span {
  padding: 1px 7px; border-radius: 999px; background: #162b30;
  font-size: 0.875rem; color: #8fb7ae;
}
.market-subtabs a:hover { border-color: var(--accent); color: var(--accent); }
.market-subtabs a.is-active { border-color: var(--gold); color: var(--gold); }
.market-subtabs a.is-active span { background: #2c2415; color: var(--gold); }

/* --- Filters ------------------------------------------------------------- */
.market-filters {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px;
  padding: 18px; margin-bottom: 16px; border: 1px solid var(--line);
  border-radius: 4px; background: linear-gradient(180deg, #0c1a1f, #091317);
}
.market-search { display: flex; flex: 1 1 320px; gap: 10px; }
.market-search input {
  flex: 1 1 auto; min-width: 0; min-height: 46px; padding: 0 15px; border: 1px solid var(--line);
  border-radius: 2px; background: #061014; color: var(--text);
}
.market-search input::placeholder { color: #6d8788; }
.market-search input:focus, .market-price input:focus, .market-sort select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px #79e6b41f;
}
.market-price, .market-sort { display: flex; align-items: center; gap: 8px; }
.market-price label, .market-sort label {
  font-size: 0.875rem; letter-spacing: .1em; text-transform: uppercase; color: #7ba39b;
}
.market-price input, .market-sort select {
  width: 108px; min-height: 46px; padding: 0 12px; border: 1px solid var(--line);
  border-radius: 2px; background: #061014; color: var(--text);
}
.market-sort select { width: auto; min-width: 168px; }
.market-price span { color: #5c777a; }

.market-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.pill {
  padding: 8px 15px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 0.875rem; color: #9fb6b6; background: #081215; transition: all .18s;
}
.pill:hover { color: var(--accent); border-color: #3f7a6c; background: #0c1d20; }
.pill.is-active {
  color: #06110f; border-color: #a9f2cf;
  background: linear-gradient(180deg, #a9efcd, #6bd6a5);
  font-weight: 700;
}

/* --- Cards --------------------------------------------------------------- */
.market-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(302px, 1fr));
}
.market-card {
  position: relative; display: flex; gap: 14px; padding: 16px;
  border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
  background: linear-gradient(165deg, #0d1c21, #08111585);
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.market-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(90% 70% at 0% 0%, #79e6b40f, transparent 60%);
}
.market-card:hover {
  transform: translateY(-3px); border-color: #3d7a6b;
  box-shadow: 0 12px 30px #04100e80, 0 0 0 1px #79e6b41f;
}
.market-card-art {
  position: relative; display: grid; place-items: center; flex: 0 0 70px;
  width: 70px; height: 70px; border: 1px solid #2b464c; border-radius: 3px;
  background: radial-gradient(circle at 50% 35%, #16302f, #060f12 75%);
}
.market-card-art img { width: 60px; height: 60px; image-rendering: pixelated; }
.market-card-art--char img { width: 72px; height: 72px; image-rendering: auto; }
.market-card-rune { font-size: 1.6rem; color: #4d7d74; }
.market-card-rank {
  position: absolute; right: -1px; bottom: -1px; padding: 1px 6px;
  border-radius: 2px 0 0 0; background: #1b2f1f; color: var(--accent);
  font-size: 0.875rem; font-weight: 700; border-top: 1px solid #2f5c46;
}
.market-card-body { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 3px; }
.market-card-cat {
  font-size: 0.875rem; letter-spacing: .12em; text-transform: uppercase; color: #6f9a91;
}
.market-card-name {
  font-size: 1rem; font-weight: 700; color: #eaf5ee; line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.market-card-desc {
  font-size: 0.875rem; color: #90a8a8; line-height: 1.5;
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.market-card-desc em { color: #5d7a7a; }
.market-card-foot {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 8px; margin-top: auto; padding-top: 8px; flex-wrap: nowrap; min-width: 0;
}
.market-price-tag {
  font-size: 1.06rem; font-weight: 800; color: var(--gold);
  letter-spacing: .01em; white-space: nowrap;
}
.market-price-tag small { font-size: 0.875rem; font-weight: 600; color: #b3924f; }
.market-time {
  font-size: 0.8125rem; color: #7ea39a; font-style: normal;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.market-time--soon { color: #f0b45f; }
.market-time--expired { color: #e2796f; }
.market-card-seller { font-size: 0.875rem; color: #5f7d7c; }
.market-card-buy { margin-top: 10px; }

/* Category tints: the art frame and the eyebrow carry the family colour so
   long grids can be scanned without reading every label. */
.market-card--40 .market-card-art { border-color: #6d5a2c; background: radial-gradient(circle at 50% 35%, #2c2413, #060f12 75%); }
.market-card--40 .market-card-cat { color: #c9a55c; }
.market-card--41 .market-card-art { border-color: #3c5a75; background: radial-gradient(circle at 50% 35%, #18293a, #060f12 75%); }
.market-card--41 .market-card-cat { color: #82a9cb; }
.market-card--42 .market-card-art { border-color: #5a4478; background: radial-gradient(circle at 50% 35%, #251a35, #060f12 75%); }
.market-card--42 .market-card-cat { color: #a98fd1; }
.market-card--43 .market-card-art { border-color: #3f6b48; background: radial-gradient(circle at 50% 35%, #14291b, #060f12 75%); }
.market-card--43 .market-card-cat { color: #86c795; }
.market-card--44 .market-card-art { border-color: #6a5b3f; background: radial-gradient(circle at 50% 35%, #2a2418, #060f12 75%); }
.market-card--44 .market-card-cat { color: #bda77e; }
.market-card--45 .market-card-art { border-color: #7a4257; background: radial-gradient(circle at 50% 35%, #301a24, #060f12 75%); }
.market-card--45 .market-card-cat { color: #d68aa5; }
.market-card--47 .market-card-art { border-color: #356b6b; background: radial-gradient(circle at 50% 35%, #142b2b, #060f12 75%); }
.market-card--47 .market-card-cat { color: #7cc6c6; }
.market-card--61 .market-card-art { border-color: #6b4a2e; background: radial-gradient(circle at 50% 35%, #2b1e13, #060f12 75%); }
.market-card--61 .market-card-cat { color: #c99a66; }
.market-card--62 .market-card-art { border-color: #5a6b34; background: radial-gradient(circle at 50% 35%, #232b14, #060f12 75%); }
.market-card--62 .market-card-cat { color: #b3c97a; }
.market-card--67 .market-card-art { border-color: #75415f; background: radial-gradient(circle at 50% 35%, #2d1a26, #060f12 75%); }
.market-card--67 .market-card-cat { color: #cf8fb6; }
.market-card--72 .market-card-art { border-color: #44507a; background: radial-gradient(circle at 50% 35%, #1b2033, #060f12 75%); }
.market-card--72 .market-card-cat { color: #93a0d6; }
.market-card--73 .market-card-art { border-color: #2f6a63; background: radial-gradient(circle at 50% 35%, #132a28, #060f12 75%); }
.market-card--73 .market-card-cat { color: #77c4b8; }
.market-card--78 .market-card-art { border-color: #4f6070; background: radial-gradient(circle at 50% 35%, #1a232a, #060f12 75%); }
.market-card--78 .market-card-cat { color: #9db2c2; }

/* --- Empty states -------------------------------------------------------- */
.market-empty {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 10px; padding: 64px 24px; border: 1px dashed #2b474d; border-radius: 4px;
  background: #08121699;
}
.market-empty-rune { font-size: 2rem; color: #3f6c63; }
.market-empty h2 { margin: 0; font-size: 1.5rem; }
.market-empty p { margin: 0 0 8px; color: var(--muted); max-width: 52ch; }

/* --- Pager --------------------------------------------------------------- */
.market-pager {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line-soft);
}
.pager-btn {
  padding: 9px 16px; border: 1px solid var(--line); border-radius: 2px;
  font-size: 0.875rem; color: #cfe3dd; background: #0814186b;
}
.pager-btn:hover { border-color: var(--accent); color: var(--accent); }
.pager-state { font-size: 0.875rem; color: #87a3a0; }
.pager-state strong { color: #e8f3ee; }

/* --- Detail -------------------------------------------------------------- */
.market-detail {
  display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start; margin-top: 4px;
}
.market-detail-main {
  padding: 26px; border: 1px solid var(--line); border-radius: 4px;
  background: linear-gradient(170deg, #0d1c21, #08111585);
}
.market-detail-head { display: flex; gap: 20px; align-items: center; }
.market-detail-icon {
  display: grid; place-items: center; width: 116px; height: 116px; flex: 0 0 116px;
  border: 1px solid #325258; border-radius: 4px;
  background: radial-gradient(circle at 50% 35%, #1a3a38, #06100f 75%);
}
.market-detail-icon img { width: 96px; height: 96px; image-rendering: pixelated; }
.market-detail-icon span { font-size: 2.4rem; color: #4d7d74; }
.market-detail-title { margin: 6px 0 6px; font-size: clamp(24px, 3vw, 34px); font-weight: 800; }
.market-detail-meta { margin: 0; color: var(--muted); font-size: 0.875rem; }
.market-lot-id { white-space: nowrap; color: #6f8f8a; margin-left: 2px; }
.market-dash { color: #6f8f8a; }
.market-detail-meta strong { color: #d7e9e2; }
.market-detail-desc, .market-detail-items { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.market-detail-desc h2, .market-detail-items h2 {
  font-size: 0.875rem; letter-spacing: .16em; text-transform: uppercase;
  color: #7ba39b; margin: 0 0 10px;
}
.market-detail-desc p { margin: 0; color: #c3d6d1; white-space: pre-wrap; }

.market-item-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.market-item-row {
  display: flex; gap: 12px; align-items: center; padding: 10px 12px;
  border: 1px solid var(--line-soft); border-radius: 3px; background: #06101473;
}
.market-item-icon {
  display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px;
  border: 1px solid #26424a; border-radius: 2px; background: #0a191d;
}
.market-item-icon img { width: 40px; height: 40px; image-rendering: pixelated; }
.market-item-icon span { color: #47706a; }
.market-item-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.market-item-info strong { color: #e3efe9; }
.market-item-info strong em { color: var(--accent); font-style: normal; }
.market-item-info small { color: #7c9899; font-size: 0.875rem; }

.market-detail-side { position: sticky; top: 108px; }
.market-buy-box {
  padding: 22px; border: 1px solid #335254; border-radius: 4px;
  background: linear-gradient(180deg, #102327, #081216);
  box-shadow: 0 16px 40px #030b0c80;
}
.market-buy-label { font-size: 0.875rem; letter-spacing: .18em; color: #7ba39b; }
.market-buy-price { font-size: 2.1rem; font-weight: 800; color: var(--gold); line-height: 1.15; margin-top: 2px; }
.market-buy-price small { font-size: 0.875rem; color: #b3924f; }
.market-buy-balance { margin: 6px 0 16px; font-size: 0.875rem; color: #8fadab; }
.market-buy-balance strong { color: #d8ebe4; }
.market-buy-btn { width: 100%; }
.market-buy-note { margin: 0 0 12px; font-size: 0.875rem; color: #a9c2bd; }
.market-buy-note--warn { color: #f0b45f; }
.market-buy-note a { color: var(--accent); text-decoration: underline; }
.market-buy-fine { margin: 10px 0 0; font-size: 0.875rem; color: #6d8a8a; }
.market-buy-btn:disabled,
.market-buy-btn[disabled],
.market-sell-form button:disabled {
  background: linear-gradient(180deg, #263231, #1a2525);
  border-color: #33504f; color: #7f9a96; box-shadow: none;
}
.market-buy-btn:disabled:hover,
.market-sell-form button:disabled:hover {
  background: linear-gradient(180deg, #263231, #1a2525);
}

.market-facts { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.market-facts div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 0.875rem; }
.market-facts dt { color: #7ba39b; margin: 0; }
.market-facts dd { margin: 0; color: #d3e5df; text-align: right; }

/* --- Sell desk ----------------------------------------------------------- */
.market-sell-list { display: flex; flex-direction: column; gap: 14px; }
.market-sell-card {
  padding: 18px; border: 1px solid var(--line); border-radius: 4px;
  background: linear-gradient(170deg, #0c1a1f, #08111485);
}
.market-sell-head { display: flex; gap: 14px; align-items: center; }
.market-sell-icon {
  display: grid; place-items: center; width: 64px; height: 64px; flex: 0 0 64px;
  border: 1px solid #2b464c; border-radius: 3px;
  background: radial-gradient(circle at 50% 35%, #16302f, #060f12 75%);
}
.market-sell-icon img { width: 56px; height: 56px; image-rendering: pixelated; }
.market-sell-icon span { color: #4d7d74; font-size: 1.5rem; }
.market-sell-name { margin: 2px 0 2px; font-size: 1.19rem; font-weight: 700; }
.market-sell-name em { color: var(--accent); font-style: normal; }
.market-sell-head small { color: #75908f; font-size: 0.875rem; }

.market-sell-form {
  display: grid; gap: 12px; margin-top: 16px;
  grid-template-columns: 180px 150px 1fr auto; align-items: end;
}
.market-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.market-field label {
  font-size: 0.875rem; letter-spacing: .1em; text-transform: uppercase; color: #7ba39b;
}
.market-field label span { letter-spacing: 0; text-transform: none; color: #5d7a7a; }
.market-field input, .market-field select {
  min-height: 44px; padding: 0 12px; border: 1px solid var(--line);
  border-radius: 2px; background: #061014; color: var(--text); width: 100%;
}
.market-field input:focus, .market-field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px #79e6b41f;
}
.market-field--action { justify-content: flex-end; }
.market-field--action .button { min-height: 44px; }

/* --- My listings rows ---------------------------------------------------- */
.market-rows { display: flex; flex-direction: column; gap: 10px; }
.market-row {
  display: grid; gap: 14px; align-items: center; padding: 14px 16px;
  grid-template-columns: 60px minmax(0, 1fr) 160px auto;
  border: 1px solid var(--line); border-radius: 4px;
  background: linear-gradient(170deg, #0c1a1f, #08111485);
}
.market-row-icon {
  display: grid; place-items: center; width: 60px; height: 60px;
  border: 1px solid #2b464c; border-radius: 3px;
  background: radial-gradient(circle at 50% 35%, #16302f, #060f12 75%);
}
.market-row-icon img { width: 48px; height: 48px; image-rendering: pixelated; }
.market-row-icon span { color: #4d7d74; font-size: 1.3rem; }
.market-row-name { margin: 2px 0 3px; font-size: 1.06rem; font-weight: 700; }
.market-row-name em { color: var(--accent); font-style: normal; }
.market-row-main small { color: #7e9997; }
.market-row-price { text-align: right; }
.market-row-price span { display: block; font-size: 1.06rem; font-weight: 800; color: var(--gold); }
.market-row-price small { font-size: 0.875rem; color: #b3924f; }
.market-row-price em { display: block; font-size: 0.875rem; color: #7ea39a; font-style: normal; margin-top: 2px; }
.market-row-actions { display: flex; gap: 8px; justify-content: flex-end; }
.market-row-actions form { margin: 0; }
.market-row-state { font-size: 0.875rem; color: #7ba39b; }

.market-danger { border-color: #6d3833; color: #f0a99f; }
.market-danger:hover { border-color: #d4695c; color: #ffd3cc; background: #2a1412; }
.market-danger-solid { background: linear-gradient(180deg, #e08a7c, #b1503f); border-color: #f0b6aa; color: #1c0b08; }

/* --- Dialogs ------------------------------------------------------------- */
.market-dialog {
  max-width: 460px; padding: 26px; border: 1px solid #3a5f5c; border-radius: 4px;
  background: linear-gradient(170deg, #0f2226, #070f12); color: var(--text);
  box-shadow: 0 30px 80px #000000a6;
}
.market-dialog::backdrop { background: #030a0ccc; backdrop-filter: blur(3px); }
.market-dialog h2 { margin: 0 0 10px; font-size: 1.31rem; }
.market-dialog p { margin: 0 0 10px; color: #b9cfc9; }
.market-dialog strong { color: #eaf6f0; }
.market-dialog-fine { font-size: 0.875rem; color: #7ea39a; }
.market-dialog-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.market-dialog-actions .button { min-height: 44px; padding: 10px 18px; }

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 1020px) {
  .market-hero { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .market-detail { grid-template-columns: minmax(0, 1fr); }
  .market-detail-side { position: static; }
  .market-sell-form { grid-template-columns: 1fr 1fr; }
  .market-field--action { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .market-hero { padding: 24px; }
  .market-hero-stats { width: 100%; }
  .market-stat { flex: 1 1 120px; }
  .market-row { grid-template-columns: 52px minmax(0, 1fr); }
  .market-row-price, .market-row-actions { grid-column: 2; text-align: left; justify-content: flex-start; }
  .market-detail-head { flex-direction: row; align-items: flex-start; gap: 14px; }
  .market-detail-icon { width: 84px; height: 84px; flex: 0 0 84px; }
  .market-detail-icon img { width: 72px; height: 72px; }
  .market-sell-form { grid-template-columns: 1fr; }
  /* Stacked filter form: every row keeps its natural height. The base
     `flex: 1 1 320px` becomes a height once the container turns into a
     column, which used to stretch the search box to 320px tall. */
  .market-filters { flex-direction: column; align-items: stretch; gap: 14px; }
  .market-search { flex: 0 0 auto; width: 100%; }
  .market-search button { flex: 0 0 auto; }
  .market-price, .market-sort { flex-wrap: wrap; justify-content: flex-start; gap: 10px; }
  .market-price input { flex: 1 1 96px; width: auto; min-width: 0; }
  .market-sort select { flex: 1 1 140px; min-width: 0; }
  .market-sort button { flex: 1 1 100%; }

  /* Tabs become a swipeable strip instead of four stacked rows. */
  .market-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .market-tabs::-webkit-scrollbar { display: none; }
  .market-tabs a { flex: 0 0 auto; padding: 10px 15px; }
}

/* ============================================================================
   PLAYER HOME (/home)
   The Exchange Market is the landing surface after login. Nothing here
   changes the market pages; it is an additive layer.
   ============================================================================ */
.home-main { padding: 34px 0 80px; }

/* --- Hero ---------------------------------------------------------------- */
.home-hero {
  position: relative; display: grid; gap: 28px; align-items: end;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 30px 34px; border: 1px solid var(--line); border-radius: 4px;
  background:
    radial-gradient(120% 160% at 6% 0%, #79e6b414, transparent 58%),
    radial-gradient(90% 120% at 100% 100%, #edc57410, transparent 60%),
    linear-gradient(160deg, #0d1c21, #081216 70%);
  overflow: hidden;
}
.home-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(#ffffff05 1px, transparent 1px);
  background-size: 100% 34px; opacity: .5;
}
.home-hero-copy { position: relative; z-index: 1; }
.home-hero h1 { margin: 8px 0 10px; font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; letter-spacing: -.02em; }
.home-hero h1 span { color: var(--accent); }
.home-hero p { margin: 0; max-width: 62ch; color: var(--muted); }

.home-balance {
  position: relative; z-index: 1; min-width: 210px; padding: 18px 22px;
  border: 1px solid #2b4a4f; border-radius: 3px; background: #061014aa;
  display: grid; gap: 2px; text-align: right;
}
.home-balance-label { font-size: .72rem; letter-spacing: .18em; color: var(--muted); }
.home-balance strong { font-size: clamp(26px, 3vw, 34px); font-weight: 800; color: var(--gold); line-height: 1.05; }
.home-balance small { font-size: .7rem; letter-spacing: .2em; color: #7cb698; }
.home-balance-link { margin-top: 8px; font-size: .8rem; font-weight: 700; color: var(--accent); }

/* --- Bar: tabs + account actions ---------------------------------------- */
.home-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; margin: 18px 0 22px; padding: 10px 12px;
  border: 1px solid var(--line-soft); border-radius: 4px; background: #0a151a;
}
.home-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.home-tab {
  padding: 9px 16px; border-radius: 2px; border: 1px solid transparent;
  font-size: .82rem; font-weight: 700; letter-spacing: .04em; color: #9fb4b6;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}
.home-tab:hover { color: var(--text); background: #13252b; }
.home-tab.is-active {
  color: #061014; background: linear-gradient(180deg, #8ff0c6, var(--accent));
  border-color: #b9f7dd; box-shadow: 0 0 18px #79e6b433;
}

.home-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.home-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px;
  border: 1px solid var(--line); border-radius: 2px; background: #0f1d23;
  color: #cfe0dd; font-size: .78rem; font-weight: 650; letter-spacing: .02em;
  transition: border-color .18s ease, color .18s ease, background .18s ease, transform .18s ease;
}
.home-btn:hover { border-color: #4c7d78; color: var(--accent); background: #12252b; transform: translateY(-1px); }
.home-btn--wide { justify-content: center; width: 100%; }

/* --- Settings gear + moving account panel -------------------------------- */
.account-gear { position: relative; }
.gear-btn {
  display: grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid var(--line); border-radius: 50%; background: #0f1d23;
  color: #afc4c2; transition: color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.gear-btn svg { transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.account-gear:hover .gear-btn,
.account-gear:focus-within .gear-btn,
.account-gear.is-open .gear-btn {
  color: var(--accent); border-color: #4c7d78;
  box-shadow: 0 0 0 3px #79e6b414, 0 0 18px #79e6b433;
}
.account-gear:hover .gear-btn svg,
.account-gear:focus-within .gear-btn svg,
.account-gear.is-open .gear-btn svg { transform: rotate(120deg); }

.account-panel {
  position: absolute; right: 0; top: 100%; z-index: 40; width: 290px;
  padding-top: 10px; opacity: 0; pointer-events: none;
  transform: translateY(-10px);
  transition: opacity .26s ease, transform .32s cubic-bezier(.2,.7,.2,1);
}
.account-gear:hover .account-panel,
.account-gear:focus-within .account-panel,
.account-gear.is-open .account-panel { opacity: 1; transform: translateY(0); pointer-events: auto; }

.account-panel-inner {
  padding: 18px; border: 1px solid #2b4a4f; border-radius: 4px;
  background: linear-gradient(170deg, #0e1e24, #081216 80%);
  box-shadow: 0 24px 50px #00000080;
}
/* Each line slides in a beat after the one above it: the "moving" account. */
.account-panel-inner > * {
  opacity: 0; transform: translateX(14px);
  transition: opacity .3s ease, transform .34s cubic-bezier(.2,.7,.2,1);
}
.account-gear:hover .account-panel-inner > *,
.account-gear:focus-within .account-panel-inner > *,
.account-gear.is-open .account-panel-inner > * { opacity: 1; transform: translateX(0); }
.account-panel-inner > *:nth-child(1) { transition-delay: .04s; }
.account-panel-inner > *:nth-child(2) { transition-delay: .08s; }
.account-panel-inner > *:nth-child(3) { transition-delay: .12s; }
.account-panel-inner > *:nth-child(4) { transition-delay: .16s; }
.account-panel-inner > *:nth-child(5) { transition-delay: .20s; }

.account-kicker { font-size: .68rem; font-weight: 700; letter-spacing: .2em; color: #7cb698; }
.account-name { display: block; margin-top: 4px; font-size: 1.05rem; color: var(--text); }
.account-points { margin: 2px 0 12px; color: var(--gold); font-weight: 800; font-size: 1.2rem; }
.account-points small { font-size: .68rem; letter-spacing: .16em; color: #7cb698; }
.account-links { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 1px; }
.account-links a {
  display: block; padding: 8px 10px; border-radius: 2px; font-size: .82rem;
  color: #c2d4d2; border: 1px solid transparent;
}
.account-links a:hover { color: var(--accent); background: #12252b; border-color: var(--line-soft); }
.account-logout { margin: 0; }

/* --- Flash messages ------------------------------------------------------ */
.home-flash {
  margin: 0 0 16px; padding: 11px 15px; border-radius: 3px;
  border: 1px solid var(--line); font-size: .86rem;
}
.home-flash--ok { border-color: #2f6b57; background: #79e6b412; color: #bff3da; }
.home-flash--bad { border-color: #7a3b3b; background: #e06a6a12; color: #f3c9c9; }

/* --- Search / filters ---------------------------------------------------- */
.home-search {
  display: flex; align-items: end; gap: 10px; flex-wrap: wrap;
  margin: 0 0 14px; padding: 12px; border: 1px solid var(--line-soft);
  border-radius: 3px; background: #0a151a;
}
.home-search input[type="search"] {
  flex: 1 1 240px; min-width: 0; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 2px; background: #061014; color: var(--text);
}
.home-sort { display: flex; align-items: center; gap: 8px; }
.home-sort label { font-size: .72rem; letter-spacing: .16em; color: var(--muted); }
.home-sort select {
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 2px;
  background: #061014; color: var(--text);
}
.home-pills { margin-bottom: 18px; }
.home-count { margin: 0 0 14px; font-size: .78rem; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }

/* --- Character cards ----------------------------------------------------- */
.char-grid {
  display: grid; gap: 14px; margin-bottom: 24px;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
}
.char-card {
  display: flex; flex-direction: column; gap: 0; overflow: hidden;
  border: 1px solid var(--line); border-radius: 4px;
  background: linear-gradient(168deg, #0e1e24, #081216 78%);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.char-card:hover { border-color: #4c7d78; transform: translateY(-2px); box-shadow: 0 18px 34px #00000059; }
.char-card-art {
  position: relative; display: grid; place-items: center; padding: 16px 0 6px;
  background: radial-gradient(80% 90% at 50% 0%, #79e6b414, transparent 70%);
}
.char-card-art img { display: block; filter: drop-shadow(0 6px 14px #00000080); }
.char-card-rune { font-size: 2rem; color: #33575c; }
.char-card-level {
  position: absolute; top: 8px; right: 10px; padding: 2px 7px;
  border: 1px solid #2b4a4f; border-radius: 2px; background: #061014cc;
  font-size: .68rem; font-weight: 700; letter-spacing: .08em; color: var(--gold);
}
.char-card-body { display: flex; flex-direction: column; gap: 5px; padding: 10px 14px 14px; }
.char-card-race { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: #7cb698; }
.char-card-name { margin: 0; font-size: 1.02rem; font-weight: 800; color: var(--text); }
.char-card-desc { margin: 0; font-size: .78rem; color: var(--muted); min-height: 1.2em; }
.char-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.char-card-seller { font-size: .72rem; color: #6f8f8a; }
.char-card-own { font-size: .72rem; color: var(--gold); font-weight: 700; }
.char-card-buy, .char-cancel-form, .char-unseal-form { margin: 6px 0 0; }
.char-card-buy button, .char-cancel-form button, .char-unseal-form button { width: 100%; }

.char-sell-form { display: grid; gap: 6px; margin: 6px 0 0; }
.char-sell-form input {
  width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 2px;
  background: #061014; color: var(--text); font-size: .82rem;
}
.char-sell-actions { display: flex; gap: 6px; }

/* --- Two-column cards ---------------------------------------------------- */
.home-columns { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-bottom: 20px; }
.home-card {
  padding: 20px 22px; border: 1px solid var(--line); border-radius: 4px;
  background: linear-gradient(168deg, #0d1b21, #081216 80%);
}
.home-card h2 { margin: 6px 0 8px; font-size: 1.18rem; font-weight: 800; letter-spacing: -.01em; }
.home-card p { margin: 0 0 14px; color: var(--muted); font-size: .86rem; }
.home-card .card-index { font-size: .7rem; }

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 860px) {
  .home-hero { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; }
  .home-balance { text-align: left; }
  .home-bar { flex-direction: column; align-items: stretch; }
  .home-actions { justify-content: flex-start; }
  .account-panel { right: auto; left: 0; width: min(290px, 84vw); }
}
@media (max-width: 560px) {
  .home-main { padding: 20px 0 60px; }
  .home-tab { padding: 8px 12px; }
  .home-btn { font-size: .74rem; padding: 7px 10px; }
  .char-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

/* --- Your sealed characters ----------------------------------------------
   The desk that was missing: a character appears here the moment it is sealed
   in game, with a price box. Listed characters show Cancel sale, which unseals
   the character back onto the account. */
.sealed-panel {
  margin: 30px 0 8px; padding: 24px;
  border: 1px solid var(--line); border-radius: 4px;
  background:
    radial-gradient(110% 140% at 0% 0%, #79e6b40d, transparent 60%),
    linear-gradient(160deg, #0b1a1f, #081216 70%);
}
.sealed-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 16px;
}
.sealed-head h2 { margin: 6px 0 0; font-size: 1.35rem; letter-spacing: -.01em; }
.sealed-head--browse { margin: 34px 0 14px; }
.sealed-count {
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px; white-space: nowrap;
}
.sealed-none {
  border: 1px dashed #1d3a3c; border-radius: 4px; padding: 22px;
  color: var(--muted);
}
.sealed-none p { margin: 0; max-width: 70ch; }
.sealed-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.sealed-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 16px; border: 1px solid #163034; border-radius: 4px;
  background: linear-gradient(160deg, #0c1d21, #091418);
}
.sealed-card--listed { border-color: #23515457; background: linear-gradient(160deg, #0d2422, #091a18); }
.sealed-card--locked { opacity: 0.86; border-style: dashed; }
.sealed-top { display: flex; align-items: center; gap: 12px; }
.sealed-id { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.sealed-meta { font-size: 0.8rem; color: #5f7d7c; }
.sealed-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.sealed-form .market-field { flex: 1 1 110px; }
.sealed-form .market-field--desc, .sealed-field--desc { flex: 1 1 100%; }
.sealed-form .button { flex: 0 0 auto; }
.sealed-secondary { margin-top: -4px; }
.sealed-listed-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sealed-hint { margin: 0; font-size: 0.82rem; color: #5f7d7c; }
.badge--sealed, .badge--listed, .badge--locked {
  display: inline-block; font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 4px 9px; border-radius: 999px;
  border: 1px solid #2a4d4d; color: #9fd9c9; white-space: nowrap;
}
.badge--listed { border-color: #3c5f2f; color: #c6e6a4; }
.badge--locked { border-color: #5b3b3b; color: #d8a7a7; }

@media (max-width: 720px) {
  .sealed-panel { padding: 16px; }
  .sealed-grid { grid-template-columns: 1fr; }
  .sealed-form .market-field { flex: 1 1 100%; }
  .sealed-form .button { width: 100%; }
}


/* --- Item stats tooltip (2026-11-11) ----------------------------------------
   Shown when the mouse is over an item image. Positioned by market.js. */
.item-tip-src { display: none !important; }
[data-item-tip] { cursor: help; }
.item-tip {
  position: fixed; z-index: 9999; left: -9999px; top: -9999px;
  width: max-content; max-width: 300px; padding: 12px 14px;
  border: 1px solid #3d6f62; border-radius: 4px;
  background: linear-gradient(170deg, #0f2228f5, #071114f7);
  box-shadow: 0 14px 34px #000a, 0 0 0 1px #79e6b41a inset;
  color: #cfe2dc; font-size: 0.875rem; line-height: 1.45;
  pointer-events: none; opacity: 0; transform: translateY(4px);
  transition: opacity .12s ease, transform .12s ease;
}
.item-tip.is-visible { opacity: 1; transform: none; }
.item-tip > span { display: block; }
.item-tip-head strong { color: #f4fbf7; font-size: 0.95rem; }
.item-tip-head em { color: var(--accent, #79e6b4); font-style: normal; font-weight: 700; margin-left: 4px; }
.item-tip-cat { color: #6f9a91; font-size: 0.75rem; letter-spacing: .12em; text-transform: uppercase; margin: 2px 0 8px; }
.item-tip-stats { border-top: 1px solid #23413f; padding-top: 7px; }
.item-tip-row { display: flex; justify-content: space-between; gap: 18px; }
.item-tip-row b { color: #90EE90; font-weight: 700; white-space: nowrap; }
.item-tip-row--flag span { color: #e9c77b; }
.item-tip-row--info b { color: #cfe2dc; }
.item-tip-none { color: #7d9a96; font-style: italic; border-top: 1px solid #23413f; padding-top: 7px; }
.item-tip-req { color: #9fb3b0; margin-top: 6px; font-size: 0.8125rem; }
.item-tip-extra { color: #b9a46f; margin-top: 6px; font-size: 0.8125rem; border-top: 1px dashed #2c4643; padding-top: 6px; }
@media (prefers-reduced-motion: reduce) { .item-tip { transition: none; } }

/* Stats listed under each item on the item page */
.market-item-stats { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 6px; }
.market-item-stat {
  padding: 1px 7px; border: 1px solid #24433f; border-radius: 2px;
  background: #0b1a1d; color: #a9c2bd; font-size: 0.8125rem;
}
.market-item-stat b { color: #8ff0bf; }

/* Sell card: inventory state */
.char-card-clean { display: inline-block; margin: 4px 0 2px; color: #79e6b4; font-size: 0.8125rem; }
.char-card-block {
  margin: 6px 0 4px; padding: 7px 9px; border-left: 3px solid #e2796f; border-radius: 2px;
  background: #2a12108c; color: #f2c3bd; font-size: 0.8125rem; line-height: 1.45;
}
.char-card--blocked .char-sell-form input { opacity: .55; }
.char-sell-form button[disabled] { opacity: .45; cursor: not-allowed; }

/* --- Live search state (2026-11-11) -------------------------------------- */
.market-results { transition: opacity .15s ease; }
.market-results.is-loading { opacity: .55; }

/* --- Account pop-up: Change password / Login protection ------------------
   Centred by <dialog>.showModal(); scales and fades in, fades out on close. */
.account-modal {
  width: min(920px, calc(100vw - 24px)); max-height: 86vh; padding: 0;
  border: 1px solid #3d6f62; border-radius: 6px; color: #dcebe5;
  background: linear-gradient(160deg, #10242a, #081317);
  box-shadow: 0 30px 80px #000c, 0 0 0 1px #79e6b414 inset;
  overflow: hidden;
}
/* Extra-wide for Offline Farming */
.account-modal.account-modal--wide {
  width: min(980px, calc(100vw - 16px));
}
.account-modal[open] { animation: lq-modal-in .26s cubic-bezier(.2, .9, .3, 1.15) both; }
.account-modal.is-closing { animation: lq-modal-out .2s ease-in both; }
.account-modal::backdrop { background: #02080acc; backdrop-filter: blur(3px); }
.account-modal[open]::backdrop { animation: lq-fade-in .26s ease both; }
.account-modal.is-closing::backdrop { animation: lq-fade-out .2s ease both; }
@keyframes lq-modal-in { from { opacity: 0; transform: translateY(18px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes lq-modal-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(10px) scale(.97); } }
@keyframes lq-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes lq-fade-out { from { opacity: 1; } to { opacity: 0; } }
.account-modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px 12px 22px; border-bottom: 1px solid #1f3a3a;
}
.account-modal-head h2 { margin: 0; font-size: 0.8125rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.account-modal-x {
  display: grid; place-items: center; width: 34px; height: 34px; padding: 0;
  border: 1px solid #2b4a49; border-radius: 50%; background: #0b1a1e; color: #b9d0ca; cursor: pointer;
  transition: transform .2s, border-color .2s, color .2s;
}
.account-modal-x:hover, .account-modal-x:focus-visible { transform: rotate(90deg); border-color: var(--accent); color: var(--accent); }
.account-modal-body { position: relative; min-height: 220px; }
.account-modal-frame {
  display: block; width: 100%; height: 420px; border: 0; background: transparent;
  opacity: 0; transition: opacity .2s ease, height .22s ease;
}
.account-modal.is-ready .account-modal-frame { opacity: 1; }
.account-modal-loading { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; transition: opacity .2s; }
.account-modal.is-ready .account-modal-loading { opacity: 0; }
.account-modal-loading span {
  width: 30px; height: 30px; border: 2px solid #23413f; border-top-color: var(--accent);
  border-radius: 50%; animation: lq-spin .8s linear infinite;
}
@keyframes lq-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .account-modal[open], .account-modal.is-closing,
  .account-modal[open]::backdrop, .account-modal.is-closing::backdrop { animation: none; }
  .account-modal-frame, .account-modal-x { transition: none; }
}

/* Admin: cancel a listing (market-item.php, admin-market.php) */
.market-admin-box{margin-top:14px;padding:16px 18px;border:1px dashed #d36a6a88;background:#1a0f12cc;display:flex;flex-direction:column;gap:8px}
.market-admin-box .market-buy-label{color:#e59b9b}
.market-admin-box p{margin:0;font-size:.85rem;color:#c9b3b3;line-height:1.5}
.market-admin-box input[type=text]{height:40px;padding:0 10px;border:1px solid #5a3a3e;background:#0b0809;color:#f0e5e5;font:inherit;font-size:.9rem}
.market-admin-box .button{width:100%;justify-content:center;border-color:#d36a6a;color:#f2b0b0}
.market-admin-box a{font-size:.82rem;color:#e59b9b}
.admin-em-search{margin:18px 0}
.admin-em-search label{display:block;margin-bottom:8px;font-weight:700}
.admin-em-row{display:flex;gap:8px}
.admin-em-row input{flex:1;height:46px;padding:0 12px;border:1px solid #3c5b60;background:#060f16;color:#f0f5ee;font:inherit}
.admin-em-h{margin:22px 0 10px;font-size:1.1rem}
.admin-em-h span{margin-left:6px;padding:1px 8px;border:1px solid #2a4549;font-size:.8rem;color:#9fb3b8}
.admin-em-empty{color:#9fb3b8}
.admin-em-list{display:flex;flex-direction:column;gap:8px}
.admin-em-card{display:grid;grid-template-columns:auto 1fr minmax(260px,340px);align-items:center;gap:14px;padding:12px 14px;border:1px solid #2a4549;background:#071016e6}
.admin-em-icon{display:grid;place-items:center;width:52px;height:52px;border:1px solid #2a4549;background:#0b161c}
.admin-em-info{display:flex;flex-direction:column;gap:2px;min-width:0}
.admin-em-info a{color:#e0eddf;text-decoration:none}
.admin-em-info small{color:#9fb3b8}
.admin-em-note{font-style:italic;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.admin-em-cancel{display:flex;gap:6px}
.admin-em-cancel input[type=text]{flex:1;min-width:0;height:40px;padding:0 10px;border:1px solid #3c5b60;background:#060f16;color:#f0f5ee;font:inherit;font-size:.85rem}
.admin-em-btn{border-color:#d36a6a!important;color:#f2b0b0!important;white-space:nowrap}
.admin-em-log{margin-top:28px}
@media (max-width:760px){.admin-em-card{grid-template-columns:auto 1fr}.admin-em-cancel{grid-column:1/-1}}

/* Admin login PIN page */
.admin-pin-actions{display:flex;flex-wrap:wrap;gap:14px;margin:18px 0 8px}
.admin-pin-actions form{display:flex;flex-wrap:wrap;align-items:center;gap:8px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.08);border-radius:12px;padding:12px 14px}
.admin-pin-actions input[type=text]{width:190px;padding:9px 11px;border-radius:9px;border:1px solid rgba(255,255,255,.14);background:rgba(0,0,0,.25);color:#fff;letter-spacing:.3em;text-align:center}
.admin-pin-actions small{flex-basis:100%;color:#9aa4b2;font-size:.78rem}

/* ===== Live Streamers ===== */
.live-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#ff3b4e;box-shadow:0 0 0 0 rgba(255,59,78,.6);animation:livePulse 1.6s infinite;vertical-align:middle}
@keyframes livePulse{0%{box-shadow:0 0 0 0 rgba(255,59,78,.55)}70%{box-shadow:0 0 0 6px rgba(255,59,78,0)}100%{box-shadow:0 0 0 0 rgba(255,59,78,0)}}
.live-band{margin:0 0 16px;border:1px solid var(--line);border-radius:6px;background:linear-gradient(180deg,#0b1a1e,#081215);padding:14px 16px}
.live-band-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.live-band-head h2{margin:0;font-size:.95rem;letter-spacing:.14em;color:var(--gold);display:flex;align-items:center;gap:8px}
.live-band-all{color:var(--accent);font-size:.82rem;text-decoration:none;white-space:nowrap}
.live-band-all:hover{text-decoration:underline}
.live-band-row{display:flex;gap:12px;overflow-x:auto;padding-bottom:4px;scrollbar-width:thin}
.live-card{flex:0 0 230px;border:1px solid var(--line-soft);border-radius:6px;background:#0a171b;overflow:hidden;position:relative;display:flex;flex-direction:column}
.live-card-badge{position:absolute;top:8px;left:8px;z-index:2;display:inline-flex;align-items:center;gap:5px;font-size:.66rem;font-weight:700;letter-spacing:.08em;padding:3px 7px;border-radius:3px;background:#c81e2b;color:#fff}
.live-card-badge .live-dot{background:#fff;animation:none;box-shadow:none;width:6px;height:6px}
.live-card-watch{position:relative;display:block;height:96px;background:radial-gradient(circle at 50% 45%,#13303a,#0a171b);text-decoration:none}
.live-card-badge--facebook{background:#1877f2}
.live-card-badge--tiktok{background:#111;border:1px solid #25f4ee}
.live-card-play{position:absolute;inset:0;margin:auto;width:40px;height:40px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:rgba(0,0,0,.45);border:1px solid rgba(255,255,255,.5);color:#fff;font-size:.85rem}
.live-card-watch:hover .live-card-play{background:rgba(0,0,0,.65);border-color:#fff}
.live-card-body{padding:10px 12px;display:flex;flex-direction:column;gap:3px}
.live-card-name{color:var(--text);font-size:.95rem;line-height:1.2}
.live-card-plat{color:var(--muted);font-size:.72rem;text-transform:uppercase;letter-spacing:.06em}
.live-card-title{color:var(--muted);font-size:.78rem;margin:2px 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.live-card-code{display:flex;align-items:center;gap:6px;margin-top:6px;padding:6px 8px;border:1px solid var(--line-soft);border-radius:4px;background:#061013}
.live-card-code-label{font-size:.62rem;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}
.live-card-code-val{font-weight:700;color:var(--gold);letter-spacing:.04em}
.live-copy{margin-left:auto;cursor:pointer;font-size:.72rem;padding:3px 9px;border:1px solid var(--line);border-radius:4px;background:#0d2024;color:var(--accent)}
.live-copy:hover{border-color:var(--accent)}
.live-card-topup{margin-top:8px;font-size:.8rem;color:var(--accent);text-decoration:none}
.live-card-topup:hover{text-decoration:underline}

/* Live page grid */
.live-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px;margin-top:8px}
.live-big{border:1px solid var(--line);border-radius:8px;background:#0a171b;overflow:hidden;display:flex;flex-direction:column}
.live-big-thumb{position:relative;display:block;height:150px;background:radial-gradient(circle at 50% 40%,#16343f,#0a171b);text-decoration:none}
.live-big-thumb--facebook{background:radial-gradient(circle at 50% 40%,#12325f,#0a171b)}
.live-big-thumb--tiktok{background:radial-gradient(circle at 50% 40%,#2a1030,#0a171b)}
.live-big-thumb .live-card-play{width:54px;height:54px;font-size:1.1rem}
.live-big-body{padding:14px;display:flex;flex-direction:column;gap:4px}
.live-big-top{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.live-big-title{color:var(--muted);font-size:.85rem;margin:4px 0}

/* Streamer go-live panel */
.live-now-panel{border:1px solid #c81e2b55;border-radius:6px;background:#160d10;padding:14px;margin-bottom:8px}
.live-now-head{margin:0 0 6px;font-size:1rem;color:var(--text)}
.live-now-title{margin:0 0 6px;color:var(--muted)}
.live-now-meta{margin:0 0 6px;font-size:.88rem}
.live-verified{color:#49d17e;font-weight:700}
.live-pending{color:var(--gold)}
.live-platforms{margin-bottom:10px}
@media (max-width:640px){.live-card{flex-basis:76vw}}
