/* ========================================================
   Silent Stack · H5
   Aesthetic: noir poker lounge — deep obsidian + antique gold
   ======================================================== */

:root {
  --bg-0: #07090a;
  --bg-1: #0d1113;
  --bg-2: #13191c;
  --bg-3: #1a2226;
  --line: rgba(202, 166, 90, 0.18);
  --line-strong: rgba(202, 166, 90, 0.38);

  --gold-1: #f7e6b0;
  --gold-2: #e6c578;
  --gold-3: #caa65a;
  --gold-4: #8a6a2e;
  --gold-5: #5e4418;

  --ink-0: #0b0f0e;
  --ink-1: #13191c;
  --text-0: #f2ecdc;
  --text-1: #d6ccb3;
  --text-2: #a79a79;
  --text-3: #75694f;
  --text-4: #524a38;

  --chip-red: #b23a3a;
  --chip-blue: #2f6fb0;
  --chip-green: #3a7f4b;

  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;

  --shadow-1: 0 8px 28px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0,0,0,.4);
  --shadow-gold: 0 10px 30px rgba(202,166,90,.15), 0 2px 6px rgba(0,0,0,.5);

  --font-cn: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --font-serif: var(--font-cn);
  --font-display: var(--font-cn);

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
html, body, #app { height: 100%; }

body {
  font-family: var(--font-cn);
  color: var(--text-1);
  background:
    radial-gradient(1200px 800px at 50% -10%, rgba(202,166,90,.08), transparent 60%),
    radial-gradient(900px 600px at 10% 100%, rgba(202,166,90,.05), transparent 60%),
    linear-gradient(180deg, #07090a 0%, #0a0d0e 50%, #07090a 100%);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt";
}

button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }
a { color: var(--gold-2); text-decoration: none; }
a:hover { color: var(--gold-1); }

h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--text-0); margin: 0; }

/* ============ Page system ============ */
.app {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  background: transparent;
}
.page {
  display: none;
  min-height: 100vh;
  padding-bottom: calc(72px + var(--safe-bottom));
}
.page.active { display: block; }

/* ============ LOGIN ============ */
.page-login {
  padding: 0 28px;
  position: relative;
  overflow: hidden;
}
.login-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.grain {
  position: absolute;
  inset: -50%;
  background-image:
    radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    radial-gradient(rgba(202,166,90,.04) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1px 2px;
  opacity: .6;
  mix-blend-mode: overlay;
  animation: grainShift 7s steps(6) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0,0); }
  100% { transform: translate(-3px, 2px); }
}
.glow {
  position: absolute;
  width: 460px; height: 460px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
}
.glow-1 {
  top: -120px; left: -120px;
  background: radial-gradient(circle, rgba(202,166,90,.45), transparent 60%);
}
.glow-2 {
  bottom: -160px; right: -120px;
  background: radial-gradient(circle, rgba(178,58,58,.28), transparent 60%);
}

.chip {
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  top: 90px; left: 50%;
  transform: translateX(-50%);
  background:
    repeating-conic-gradient(from 0deg, #1a2226 0deg 20deg, #caa65a 20deg 30deg, #1a2226 30deg 60deg, #caa65a 60deg 70deg);
  box-shadow:
    0 30px 80px rgba(0,0,0,.6),
    inset 0 0 0 6px #0b0f0e,
    inset 0 0 0 14px rgba(202,166,90,.25),
    0 0 0 2px rgba(202,166,90,.35);
  animation: float 6s ease-in-out infinite;
}
.chip-inner {
  position: absolute;
  inset: 34px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #3a454b, #0b0f0e 70%),
    #0b0f0e;
  display: grid; place-items: center;
  border: 2px solid rgba(202,166,90,.45);
  box-shadow: inset 0 4px 20px rgba(0,0,0,.6);
}
.chip-inner span {
  font-family: var(--font-display);
  font-size: 72px;
  color: var(--gold-1);
  text-shadow:
    0 0 18px rgba(202,166,90,.7),
    0 2px 0 rgba(0,0,0,.6);
}
@keyframes float {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

.login-header {
  position: relative;
  z-index: 1;
  padding-top: 150px;
  text-align: center;
}
.brand { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.brand-logo {
  width: 140px;
  height: 140px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.52));
}
.brand-title {
  font-size: 28px;
  letter-spacing: 6px;
  color: var(--text-0);
  font-weight: 700;
}
.brand-sub {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 8px;
  color: var(--gold-3);
  margin: 0;
}
.login-lead {
  margin-top: 22px;
  color: var(--text-2);
  font-size: 14px;
  letter-spacing: 2px;
}

.login-tabs {
  position: relative;
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px;
  height: 48px;
  backdrop-filter: blur(8px);
}
.login-tab {
  background: transparent;
  border: 0;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
  border-radius: 10px;
  z-index: 1;
  transition: color .25s ease;
}
.login-tab.active { color: var(--ink-0); }
.login-tab-indicator {
  position: absolute;
  top: 4px; left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  background: linear-gradient(180deg, var(--gold-1), var(--gold-3));
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(202,166,90,.3);
  transition: transform .3s cubic-bezier(.4,.0,.2,1);
}
.login-tabs[data-active="sms"] .login-tab-indicator { transform: translateX(100%); }

.login-card {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  padding: 24px 20px 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(26,34,38,.85), rgba(13,17,19,.85));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(202,166,90,.12);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 13px;
  color: var(--text-2);
  letter-spacing: 1px;
  font-weight: 500;
}
.field-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(7,9,10,.6);
  border-radius: var(--radius-md);
  padding: 0 14px;
  height: 52px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field-control:focus-within {
  border-color: var(--gold-3);
  box-shadow: 0 0 0 3px rgba(202,166,90,.12);
}
.field-control input {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--text-0);
  font-size: 17px;
  outline: none;
  letter-spacing: 1px;
}
.field-control input::placeholder { color: var(--text-3); letter-spacing: 0; }
.field-control.pwd { padding-right: 6px; }

.toggle-pwd {
  background: transparent;
  border: 0;
  color: var(--gold-3);
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 6px;
  transition: color .2s, background .2s;
}
.toggle-pwd:hover { color: var(--gold-1); background: rgba(202,166,90,.08); }

.agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.55;
  margin-top: 2px;
  user-select: none;
}
.checkbox {
  padding: 0;
  width: 18px; height: 18px;
  border: 1.5px solid var(--text-3);
  border-radius: 4px;
  display: inline-grid;
  place-items: center;
  margin-top: 2px;
  flex-shrink: 0;
  transition: all .2s ease;
  background: transparent;
}
.checkbox.checked {
  background: linear-gradient(180deg, var(--gold-2), var(--gold-4));
  border-color: var(--gold-3);
  box-shadow: 0 2px 6px rgba(202,166,90,.35);
}
.check-icon {
  width: 10px; height: 10px;
  opacity: 0;
  transition: opacity .2s;
}
.checkbox.checked .check-icon { opacity: 1; }
.check-icon::after {
  content: "";
  display: block;
  width: 10px; height: 6px;
  border-left: 2px solid #0b0f0e;
  border-bottom: 2px solid #0b0f0e;
  transform: rotate(-45deg) translate(1px, -1px);
}
.agree p { margin: 0; }
.agree .link { color: var(--gold-2); }

.btn-primary {
  height: 52px;
  border: 0;
  border-radius: var(--radius-md);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--ink-0);
  background: linear-gradient(180deg, var(--gold-1) 0%, var(--gold-2) 40%, var(--gold-3) 100%);
  box-shadow:
    0 8px 22px rgba(202,166,90,.3),
    inset 0 1px 0 rgba(255,255,255,.4),
    inset 0 -2px 0 rgba(94,68,24,.4);
  transition: transform .15s, box-shadow .2s, filter .2s;
  margin-top: 4px;
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.05);
}
.btn-primary:active:not(:disabled) {
  transform: translateY(1px);
  filter: brightness(.95);
}
.btn-primary:disabled {
  background: linear-gradient(180deg, #3a4246, #283034);
  color: #6a7276;
  box-shadow: inset 0 2px 6px rgba(0,0,0,.35);
  letter-spacing: 4px;
}

.login-foot {
  position: absolute;
  bottom: calc(20px + env(safe-area-inset-bottom));
  left: 0; right: 0;
  text-align: center;
  font-size: 11px;
  color: var(--text-4);
  letter-spacing: 2px;
}

/* ============ MAIN APP ============ */
.page-main { padding: 0 0 72px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(12px + var(--safe-top)) 20px 12px;
  background: linear-gradient(180deg, rgba(7,9,10,.95) 60%, rgba(7,9,10,0));
  backdrop-filter: blur(12px);
}
.topbar-title {
  font-size: 19px;
  letter-spacing: 4px;
  color: var(--text-0);
  font-family: var(--font-serif);
  font-weight: 700;
}
.icon-btn {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  color: var(--text-1);
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid; place-items: center;
  transition: all .2s;
}
.icon-btn:hover { color: var(--gold-2); border-color: var(--line-strong); }

.main-scroll {
  padding: 0 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tab-page { display: none; flex-direction: column; gap: 16px; }
.tab-page.active { display: flex; animation: fadeUp .4s ease both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Map card ---------- */
.map-card {
  background: linear-gradient(180deg, #13191c, #0d1113);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(202,166,90,.08);
}
.map-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.chip-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: radial-gradient(circle, #ffd27a, #caa65a);
  box-shadow: 0 0 10px rgba(202,166,90,.6);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.85); }
}
.map-title {
  font-size: 15px; color: var(--text-0); font-weight: 600; letter-spacing: 1px;
}
.map-meta {
  margin-left: auto;
  font-size: 12px; color: var(--text-3);
  font-family: var(--font-display);
  letter-spacing: 1px;
}
.map-stage {
  position: relative;
  height: 280px;
  background:
    radial-gradient(ellipse at 50% 55%, rgba(202,166,90,.18) 0%, rgba(202,166,90,.04) 45%, transparent 70%),
    linear-gradient(180deg, #1a2226 0%, #0f1417 100%);
}
.map-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.city {
  position: absolute;
  transform: translate(-50%, -100%);
  display: flex; flex-direction: column; align-items: center;
  gap: 4px;
}
.pin {
  width: 28px; height: 28px;
  border-radius: 50% 50% 50% 0;
  background: linear-gradient(180deg, #4cb3ff, #1a6ab0);
  border: 2px solid #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.5), 0 0 0 3px rgba(202,166,90,.25);
  transform: rotate(-45deg);
  display: grid; place-items: center;
  position: relative;
}
.pin span {
  transform: rotate(45deg);
  color: #fff; font-size: 12px; font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
}
.city em {
  font-style: normal;
  font-size: 11px;
  color: var(--text-1);
  background: rgba(13,17,19,.8);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--line);
  white-space: nowrap;
}
.city.hot .pin {
  width: 40px; height: 40px;
  background: linear-gradient(180deg, #ff7a4c, #c83f1a);
  box-shadow: 0 6px 18px rgba(200,63,26,.55), 0 0 0 3px rgba(202,166,90,.3);
  animation: hotPulse 2s ease-in-out infinite;
}
.city.hot .pin span { font-size: 14px; }
@keyframes hotPulse {
  0%,100% { transform: rotate(-45deg) scale(1); }
  50% { transform: rotate(-45deg) scale(1.08); }
}
.map-foot {
  padding: 8px 16px;
  font-size: 11px; color: var(--text-3);
  display: flex; justify-content: flex-end;
  border-top: 1px solid var(--line);
  background: rgba(7,9,10,.6);
}

/* ---------- Seg tabs ---------- */
.seg-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px;
  gap: 2px;
}
.seg-tab {
  background: transparent;
  border: 0;
  color: var(--text-2);
  font-size: 14px;
  height: 40px;
  border-radius: 10px;
  transition: all .25s ease;
  font-weight: 500;
}
.seg-tab.active {
  background: linear-gradient(180deg, rgba(202,166,90,.28), rgba(202,166,90,.12));
  color: var(--gold-1);
  box-shadow: inset 0 0 0 1px rgba(202,166,90,.35);
}

/* ---------- Match list ---------- */
.match-list { display: flex; flex-direction: column; gap: 12px; }
.match-card {
  background: linear-gradient(180deg, #13191c, #0d1113);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: stretch;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}
.match-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-3), transparent);
  opacity: .4;
}
.match-card:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.match-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 22px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #1e282d, #0f1417);
  border: 1px solid var(--line);
}
.match-icon.live { color: #ff7a4c; }
.match-icon.shop { color: #3fb0a0; }

.match-body { flex: 1; min-width: 0; }
.match-title {
  font-size: 16px;
  color: var(--text-0);
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.match-status {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 500;
  letter-spacing: 1px;
  font-family: var(--font-display);
}
.match-status.live { background: rgba(255,122,76,.15); color: #ff9870; }
.match-status.live::before { content: "● "; animation: blink 1.2s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }
.match-status.shop { background: rgba(63,176,160,.15); color: #5fd3c0; }

.match-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-2);
}
.match-meta span { display: inline-flex; align-items: center; gap: 4px; }
.match-meta .ico { opacity: .8; }

/* ---------- Rank ---------- */
.my-rank-card {
  background: linear-gradient(180deg, #13191c, #0d1113);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(202,166,90,.1);
}
.mr-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 12px;
}
.mr-head h2 { font-size: 17px; letter-spacing: 2px; }
.mr-update { font-size: 11px; color: var(--text-3); font-family: var(--font-display); }
.mr-stats { display: flex; align-items: center; gap: 16px; }
.mr-stat { flex: 1; text-align: center; }
.mr-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 38px;
  color: var(--gold-1);
  line-height: 1;
  text-shadow: 0 0 20px rgba(202,166,90,.3);
}
.mr-stat b .plus { font-size: 22px; vertical-align: top; }
.mr-stat span { font-size: 12px; color: var(--text-2); letter-spacing: 2px; }
.mr-divider {
  width: 1px; height: 40px;
  background: linear-gradient(180deg, transparent, var(--line-strong), transparent);
}

.filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.filter {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(180deg, #13191c, #0d1113);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
}
.filter:hover { border-color: var(--line-strong); }
.filter-label { color: var(--text-2); flex: 0 0 auto; }
.filter-value { color: var(--gold-2); flex: 1; text-align: right; font-weight: 500; }
.filter svg { color: var(--text-3); flex-shrink: 0; }

.rank-list { display: flex; flex-direction: column; gap: 10px; }
.rank-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  transition: transform .2s;
}
.rank-item:hover { transform: translateX(2px); }
.rank-item .rk-bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.rank-item[data-rank="4"],
.rank-item[data-rank="5"],
.rank-item[data-rank="6"] {
  background: linear-gradient(180deg, #13191c, #0d1113);
  border: 1px solid var(--line);
}
.rk-num {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  background: rgba(0,0,0,.3);
  color: var(--gold-1);
}
.rank-item.rk-top .rk-num {
  width: 40px; height: 40px;
  font-size: 20px;
  border-radius: 12px;
}
.rank-item.rk-1 .rk-num {
  background: linear-gradient(135deg, #ffe89a 0%, #d4a126 100%);
  color: #3a2100;
  box-shadow: 0 2px 10px rgba(212,161,38,.5);
}
.rank-item.rk-2 .rk-num {
  background: linear-gradient(135deg, #e8e8e8 0%, #9a9a9a 100%);
  color: #1f1f1f;
  box-shadow: 0 2px 10px rgba(160,160,160,.45);
}
.rank-item.rk-3 .rk-num {
  background: linear-gradient(135deg, #ffc080 0%, #c0712a 100%);
  color: #3a1d00;
  box-shadow: 0 2px 10px rgba(192,113,42,.5);
}
.rk-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3a4246, #1a1e20);
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  font-size: 20px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.rk-body { flex: 1; min-width: 0; position: relative; z-index: 1; }
.rk-name {
  font-size: 15px; color: var(--text-0); font-weight: 600; letter-spacing: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rk-title {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5px;
  border-radius: 999px;
  line-height: 1.4;
  width: fit-content;
  border: 1px solid transparent;
  white-space: nowrap;
}

/* Title color variants */
.rk-title.t-gold {
  background: linear-gradient(135deg, #ffe89a 0%, #d4a126 100%);
  color: #3a2100;
  border-color: #c9871f;
  box-shadow: 0 2px 8px rgba(212,161,38,.4);
}
.rk-title.t-silver {
  background: linear-gradient(135deg, #e8e8e8 0%, #9a9a9a 100%);
  color: #1f1f1f;
  border-color: #7a7a7a;
  box-shadow: 0 2px 8px rgba(160,160,160,.35);
}
.rk-title.t-bronze {
  background: linear-gradient(135deg, #ffc080 0%, #c0712a 100%);
  color: #3a1d00;
  border-color: #a85f1e;
  box-shadow: 0 2px 8px rgba(192,113,42,.4);
}
.rk-title.t-purple {
  background: linear-gradient(135deg, #e8c9ff 0%, #9c60d6 100%);
  color: #2a1340;
  border-color: #7a43b3;
  box-shadow: 0 2px 8px rgba(156,96,214,.35);
}
.rk-title.t-blue {
  background: linear-gradient(135deg, #9cd8ff 0%, #2563eb 100%);
  color: #0a2a42;
  border-color: #1b4fb8;
  box-shadow: 0 2px 8px rgba(37,99,235,.35);
}
.rk-title.t-green {
  background: linear-gradient(135deg, #a6f0c6 0%, #16a373 100%);
  color: #0a2e1f;
  border-color: #10805c;
  box-shadow: 0 2px 8px rgba(22,163,115,.35);
}
.rk-title.t-orange {
  background: linear-gradient(135deg, #ffc38a 0%, #f05742 100%);
  color: #3a1010;
  border-color: #c94330;
  box-shadow: 0 2px 8px rgba(240,87,66,.35);
}
.rk-title.t-gray {
  background: linear-gradient(135deg, #c0c8cc 0%, #6a7276 100%);
  color: #1a1e20;
  border-color: #525a5e;
  box-shadow: 0 2px 8px rgba(106,114,118,.3);
}
.rk-title.t-default {
  background: linear-gradient(135deg, #c0c8cc 0%, #6a7276 100%);
  color: #1a1e20;
  border-color: #525a5e;
}
.rk-tags {
  display: flex; gap: 10px;
  font-size: 12px; color: var(--text-2);
  margin-top: 6px;
  flex-wrap: wrap;
}
.rk-tags span { opacity: .9; }

/* Top-3 special card styles */
.rank-item.rk-top {
  border-width: 1.5px;
  box-shadow: 0 6px 18px rgba(0,0,0,.45);
}
.rank-item.rk-1 {
  background: radial-gradient(circle at 20% 30%, #3a2a0e 0%, #1a110a 55%, #0a0705 100%);
  border: 1.5px solid #f0c060;
}
.rank-item.rk-2 {
  background: radial-gradient(circle at 20% 30%, #2a2a2a 0%, #141414 55%, #070707 100%);
  border: 1.5px solid #c9c9c9;
}
.rank-item.rk-3 {
  background: radial-gradient(circle at 20% 30%, #2e1a07 0%, #18100a 55%, #0a0705 100%);
  border: 1.5px solid #c98a50;
}
.rk-score {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--gold-1);
  font-weight: 700;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  text-shadow: 0 0 12px rgba(202,166,90,.4);
}

/* ---------- Record ---------- */
.record-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: linear-gradient(180deg, #13191c, #0d1113);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 12px;
}
.rs-item {
  text-align: center;
  position: relative;
}
.rs-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line), transparent);
}
.rs-item b {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--gold-1);
  line-height: 1;
  text-shadow: 0 0 14px rgba(202,166,90,.3);
}
.rs-item span { font-size: 12px; color: var(--text-2); margin-top: 6px; display: block; letter-spacing: 1px; }

.agreement-card {
  background: linear-gradient(180deg, #13191c, #0d1113);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.agree-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(202,166,90,.1);
  color: var(--gold-2);
  display: grid; place-items: center;
  margin-bottom: 6px;
  border: 1px solid var(--line-strong);
}
.agreement-card p {
  margin: 0; font-size: 14px; color: var(--text-1); line-height: 1.6;
}
.agree-btn { margin-top: 14px; width: 200px; }

/* ---------- Me ---------- */
.profile-card {
  background: linear-gradient(180deg, #13191c, #0d1113);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  text-align: center;
  overflow: hidden;
}
.profile-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 120px;
  background: radial-gradient(ellipse at 50% 0%, rgba(202,166,90,.2), transparent 70%);
  pointer-events: none;
}
.profile-top {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.p-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  color: var(--text-1);
  display: grid; place-items: center;
  transition: all .2s;
}
.p-icon:hover { color: var(--gold-2); border-color: var(--line-strong); }

.avatar-lg {
  width: 96px; height: 96px;
  margin: 20px auto 10px;
  position: relative;
  z-index: 1;
}
.avatar-edit { display: block; padding: 0; border: 0; background: transparent; cursor: pointer; }
.avatar-edit-mark {
  position: absolute; right: -8px; bottom: -4px; z-index: 2;
  padding: 3px 7px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: #171d20; color: var(--gold-2); font-size: 10px;
}
.avatar-options { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
.avatar-option {
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%;
  background: #151b1e; color: var(--gold-1); font-size: 22px;
}
.avatar-option.selected { border-color: var(--gold-2); box-shadow: 0 0 0 2px rgba(202,166,90,.18); }
.avatar-image, .rk-avatar-image { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; border-radius: 50%; object-fit: cover; }
.avatar-chip { overflow: hidden; }
.rk-user-titles { display: flex; flex-wrap: wrap; gap: 4px; }
.rk-user-titles:empty { display: none; }
.rk-user-titles .rk-title { margin-right: 0; max-width: 100%; overflow-wrap: anywhere; }
.ann-marquee-link { border: 0; background: transparent; color: inherit; font: inherit; padding: 0; cursor: pointer; }
.ann-marquee-track:hover .ann-marquee-inner,
.ann-marquee-track:active .ann-marquee-inner,
.ann-marquee-track:focus-within .ann-marquee-inner { animation-play-state: paused; }
.avatar-upload-btn {
  display: inline-flex; align-items: center; justify-content: center; margin-top: 12px;
  padding: 9px 18px; border: 1px solid var(--gold-3); border-radius: 12px;
  background: rgba(202,166,90,.08); color: var(--gold-1); font-size: 13px; cursor: pointer;
}
.avatar-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.avatar-upload-help { margin: 8px 0 0; color: var(--text-4); font-size: 11px; }
.avatar-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--gold-3), var(--gold-5), var(--gold-2), var(--gold-4), var(--gold-3));
  animation: spin 8s linear infinite;
  filter: drop-shadow(0 4px 12px rgba(202,166,90,.3));
}
@keyframes spin { to { transform: rotate(360deg); } }
.avatar-chip {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #3a4246, #0b0f0e 70%);
  border: 3px solid #0b0f0e;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 38px;
  color: var(--gold-1);
  text-shadow: 0 0 10px rgba(202,166,90,.5);
}
.profile-name {
  font-size: 22px;
  letter-spacing: 2px;
  margin-top: 12px;
  position: relative; z-index: 1;
}
.profile-id {
  color: var(--text-3);
  font-size: 13px;
  margin: 4px 0 0;
  letter-spacing: 1px;
  position: relative; z-index: 1;
}

.title-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  position: relative; z-index: 1;
}
.title-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  letter-spacing: .5px;
  white-space: nowrap;
  line-height: 1;
  border: 1px solid transparent;
}
.title-badge svg { display: inline-block; }
.title-badge.t-gold {
  color: #422800;
  background: linear-gradient(135deg, #ffd779 0%, #e0a532 100%);
  border-color: #c9871f;
  box-shadow: 0 2px 8px rgba(224,165,50,.35), inset 0 1px 0 rgba(255,255,255,.35);
}
.title-badge.t-crown {
  color: #2a1340;
  background: linear-gradient(135deg, #e8c9ff 0%, #9c60d6 100%);
  border-color: #7a43b3;
  box-shadow: 0 2px 8px rgba(156,96,214,.35), inset 0 1px 0 rgba(255,255,255,.35);
}
.title-badge.t-blaze {
  color: #3a1010;
  background: linear-gradient(135deg, #ffc38a 0%, #f05742 100%);
  border-color: #c94330;
  box-shadow: 0 2px 8px rgba(240,87,66,.35), inset 0 1px 0 rgba(255,255,255,.35);
}
.title-badge.t-emerald {
  color: #0a2e1f;
  background: linear-gradient(135deg, #a6f0c6 0%, #16a373 100%);
  border-color: #10805c;
  box-shadow: 0 2px 8px rgba(22,163,115,.35), inset 0 1px 0 rgba(255,255,255,.35);
}
.title-badge.t-ocean {
  color: #0a2a42;
  background: linear-gradient(135deg, #9cd8ff 0%, #2563eb 100%);
  border-color: #1b4fb8;
  box-shadow: 0 2px 8px rgba(37,99,235,.35), inset 0 1px 0 rgba(255,255,255,.35);
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: linear-gradient(180deg, #13191c, #0d1113);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 12px;
}
.ps-item { text-align: center; position: relative; }
.ps-item:not(:last-child)::after {
  content: "";
  position: absolute; right: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line), transparent);
}
.ps-item b {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--gold-1);
  line-height: 1;
}
.ps-item span { font-size: 12px; color: var(--text-2); margin-top: 6px; display: block; letter-spacing: 1px; }

.asset-card {
  background: linear-gradient(180deg, #13191c, #0d1113);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.asset-head {
  display: flex; justify-content: space-between; align-items: center;
}
.asset-head h3 { font-size: 16px; letter-spacing: 2px; }
.asset-link { color: var(--gold-3); font-size: 13px; cursor: pointer; }
.asset-link:hover { color: var(--gold-1); }
.asset-body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.asset-item {
  text-align: center;
  padding: 12px 8px;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.asset-label {
  display: block;
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 6px;
  letter-spacing: 1px;
}
.asset-value {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--gold-1);
  line-height: 1;
}
.recharge-btn { width: 100%; }

.me-list {
  background: linear-gradient(180deg, #13191c, #0d1113);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.me-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  font-size: 14px;
  color: var(--text-1);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: all .2s;
  letter-spacing: 1px;
}
.me-item:last-child { border-bottom: 0; }
.me-item:hover { background: rgba(202,166,90,.05); color: var(--gold-1); padding-left: 22px; }
.me-item i { font-style: normal; color: var(--text-3); }

/* ---------- Tabbar ---------- */
.tabbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: 520px;
  margin: 0 auto;
  height: calc(72px + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: linear-gradient(180deg, rgba(7,9,10,.85), rgba(7,9,10,.98));
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  z-index: 30;
  backdrop-filter: blur(14px);
}
.tab-btn {
  background: transparent;
  border: 0;
  color: var(--text-3);
  font-size: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: color .25s, transform .2s;
  letter-spacing: 1px;
  position: relative;
}
.tab-btn svg { transition: all .25s; }
.tab-btn.active {
  color: var(--gold-2);
}
.tab-btn.active svg {
  filter: drop-shadow(0 2px 6px rgba(202,166,90,.4));
  transform: translateY(-2px);
}
.tab-btn.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-3), transparent);
  border-radius: 2px;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(13,17,19,.95);
  border: 1px solid var(--line-strong);
  color: var(--text-0);
  padding: 14px 22px;
  border-radius: var(--radius-md);
  font-size: 14px;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  box-shadow: var(--shadow-gold);
  backdrop-filter: blur(10px);
  max-width: 80%;
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, -60%);
}

/* Scrollbar (desktop preview) */
.main-scroll::-webkit-scrollbar { width: 0; }

/* Small helpers */
.hide { display: none !important; }

/* ============ Sub page (overlay page) ============ */
.sub-page {
  position: fixed;
  inset: 0;
  max-width: 520px;
  margin: 0 auto;
  background: linear-gradient(180deg, #0a0d0e 0%, #07090a 100%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,.0,.2,1), visibility .35s;
  box-shadow: -20px 0 60px rgba(0,0,0,.5);
  visibility: hidden;
}
.sub-page.active {
  transform: translateX(0) !important;
  visibility: visible;
}
.sub-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(12px + var(--safe-top)) 16px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(13,17,19,.95);
  backdrop-filter: blur(12px);
}
.sub-title {
  flex: 1;
  text-align: center;
  font-size: 17px;
  letter-spacing: 2px;
  color: var(--text-0);
  font-family: var(--font-serif);
}
.sub-right {
  font-size: 13px;
  color: var(--gold-2);
  min-width: 40px;
  text-align: right;
  cursor: pointer;
}
.sub-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  -webkit-overflow-scrolling: touch;
}
.sub-content::-webkit-scrollbar { width: 0; }

/* ============ Modal ============ */
.modal-root {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-root.active { display: flex; animation: fadeIn .25s ease; }
.modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(4px);
}
.modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  max-height: 85vh;
  overflow-y: auto;
  background: linear-gradient(180deg, #13191c, #0d1113);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 22px 20px;
  box-shadow: 0 30px 80px rgba(0,0,0,.75), 0 0 0 1px rgba(202,166,90,.15);
  animation: popIn .25s cubic-bezier(.4,.0,.2,1);
}
@keyframes popIn {
  from { opacity: 0; transform: scale(.92); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-title {
  font-size: 18px;
  color: var(--text-0);
  font-family: var(--font-serif);
  margin: 0 0 6px;
  letter-spacing: 2px;
  text-align: center;
}
.modal-sub {
  text-align: center;
  color: var(--text-2);
  font-size: 13px;
  margin: 0 0 18px;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px; height: 32px;
  background: transparent;
  border: 0;
  color: var(--text-3);
  font-size: 20px;
  cursor: pointer;
  border-radius: 50%;
  transition: all .2s;
  display: grid; place-items: center;
}
.modal-close:hover { color: var(--gold-2); background: rgba(202,166,90,.1); }

/* Detail modal */
.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.detail-row:last-child { border-bottom: 0; }
.detail-row .k { color: var(--text-2); }
.detail-row .v { color: var(--text-0); font-weight: 500; text-align: right; }
.detail-section { margin: 14px 0 6px; }
.detail-section-title {
  font-size: 13px;
  color: var(--gold-3);
  letter-spacing: 2px;
  margin-bottom: 8px;
  font-weight: 600;
}
.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

/* Match card interactive */
.match-card { cursor: pointer; }
.match-card .match-arrow {
  color: var(--text-3);
  font-size: 18px;
  align-self: center;
  padding-left: 6px;
  transition: transform .2s, color .2s;
}
.match-card:hover .match-arrow { color: var(--gold-2); transform: translateX(4px); }

/* Result badge */
.result-win { color: #5fd38a; }
.result-lose { color: #d35f5f; }
.result-win-bg { background: rgba(95,211,138,.15); color: #5fd38a; }
.result-lose-bg { background: rgba(211,95,95,.15); color: #d35f5f; }

/* ============ Filter picker sheet ============ */
.filter-root {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.filter-root.active { display: flex; animation: fadeIn .2s ease; }
.filter-mask {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(3px);
}
.filter-sheet {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: linear-gradient(180deg, #13191c, #0d1113);
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  border-top: 1px solid var(--line-strong);
  max-height: 75vh;
  display: flex;
  flex-direction: column;
  animation: slideUp .3s cubic-bezier(.4,.0,.2,1);
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.filter-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.filter-sheet-head::before {
  content: "";
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 36px; height: 3px;
  background: var(--text-3);
  border-radius: 2px;
  opacity: .5;
}
.filter-sheet-cancel,
.filter-sheet-ok {
  background: transparent;
  border: 0;
  font-size: 15px;
  padding: 6px 10px;
  border-radius: 8px;
}
.filter-sheet-cancel { color: var(--text-2); }
.filter-sheet-ok { color: var(--gold-2); font-weight: 600; }
.filter-sheet-title {
  font-size: 16px;
  color: var(--text-0);
  font-family: var(--font-serif);
  letter-spacing: 2px;
  font-weight: 600;
}
.filter-sheet-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 16px 16px;
}
.filter-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 12px;
  border-radius: 10px;
  font-size: 15px;
  color: var(--text-1);
  cursor: pointer;
  transition: all .2s;
  border: 1px solid transparent;
}
.filter-option + .filter-option { margin-top: 4px; }
.filter-option:hover { background: rgba(202,166,90,.06); color: var(--text-0); }
.filter-option.selected {
  background: rgba(202,166,90,.12);
  color: var(--gold-1);
  border-color: rgba(202,166,90,.35);
  font-weight: 500;
}
.filter-option.selected::after {
  content: "✓";
  color: var(--gold-2);
  font-weight: 700;
}

/* ============ Empty state ============ */
.empty-state {
  text-align: center;
  padding: 50px 24px;
  background: linear-gradient(180deg, #13191c, #0d1113);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.empty-icon {
  font-size: 56px;
  margin-bottom: 14px;
  filter: grayscale(.4);
}
.empty-title {
  font-size: 17px;
  color: var(--text-0);
  margin: 0 0 6px;
  letter-spacing: 2px;
  font-weight: 600;
}
.empty-desc {
  font-size: 13px;
  color: var(--text-3);
  margin: 0 0 20px;
  line-height: 1.6;
}
.empty-btn {
  display: inline-block;
  min-width: 180px;
}

/* ============ Record list ============ */
.record-list { display: flex; flex-direction: column; gap: 12px; }
.record-card {
  background: linear-gradient(180deg, #13191c, #0d1113);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: center;
  transition: all .2s;
  cursor: pointer;
}
.record-card:hover { border-color: var(--line-strong); transform: translateX(2px); }
.record-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 72px;
  padding-right: 14px;
  border-right: 1px solid var(--line);
}
.record-date {
  font-size: 15px;
  color: var(--text-3);
  letter-spacing: 1.5px;
  white-space: nowrap;
}
.record-result {
  min-width: 42px;
  text-align: center;
  font-size: 15px;
  padding: 5px 8px;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: 1px;
}
.record-body { flex: 1; min-width: 0; }
.record-title {
  font-size: 18px;
  color: var(--text-0);
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: .5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.record-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.25;
}
.record-side {
  min-width: 78px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}
.record-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 5px 9px;
  border: 1px solid rgba(202,166,90,.45);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(202,166,90,.2), rgba(202,166,90,.06));
  color: var(--gold-1);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.record-score {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  flex-shrink: 0;
  letter-spacing: .5px;
  min-width: 70px;
  text-align: right;
}

/* ============ Scroll-indicator for map ============ */
.city { cursor: pointer; transition: transform .2s; }
.city:hover { transform: translate(-50%, -100%) scale(1.08); }

/* ============ Form inside modal ============ */
.modal-form { display: flex; flex-direction: column; gap: 14px; }
.modal-form .field label { font-size: 13px; }
.modal-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}
.modal-btn {
  height: 44px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.02);
  color: var(--text-1);
  border-radius: 10px;
  font-size: 14px;
  transition: all .2s;
}
.modal-btn:hover { color: var(--gold-2); border-color: var(--gold-3); background: rgba(202,166,90,.08); }
.modal-btn.primary {
  background: linear-gradient(180deg, var(--gold-1), var(--gold-3));
  color: var(--ink-0);
  border: 0;
  font-weight: 600;
}
.modal-btn.primary:hover { filter: brightness(1.05); color: var(--ink-0); }

/* ============ Sub-page content blocks ============ */
.sub-block {
  background: linear-gradient(180deg, #13191c, #0d1113);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 14px;
}
.sub-block-title {
  font-size: 15px;
  color: var(--gold-2);
  letter-spacing: 2px;
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sub-block-title::before {
  content: "";
  width: 3px; height: 14px;
  background: linear-gradient(180deg, var(--gold-2), var(--gold-4));
  border-radius: 2px;
}
.sub-block p {
  margin: 0 0 8px;
  line-height: 1.8;
  font-size: 14px;
  color: var(--text-1);
}
.sub-block p:last-child { margin-bottom: 0; }
.sub-block ol, .sub-block ul {
  margin: 0; padding-left: 20px;
  line-height: 1.8;
  font-size: 14px;
  color: var(--text-1);
}
.sub-block ol li, .sub-block ul li { margin-bottom: 6px; }

/* Profile form */
.profile-form { display: flex; flex-direction: column; gap: 14px; }

/* Rank tiers (for rank-desc page) */
.rank-tier {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #13191c, #0d1113);
  margin-bottom: 8px;
}
.rank-tier-badge {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
  color: #0b0f0e;
}
.rank-tier-1 .rank-tier-badge { background: linear-gradient(180deg, #f7e6b0, #caa65a); }
.rank-tier-2 .rank-tier-badge { background: linear-gradient(180deg, #e0e0e0, #a8a8a8); }
.rank-tier-3 .rank-tier-badge { background: linear-gradient(180deg, #d0905a, #8a5a30); }
.rank-tier-4 .rank-tier-badge { background: linear-gradient(180deg, #5a6a74, #3a454b); color: var(--text-0); }
.rank-tier-info { flex: 1; }
.rank-tier-name {
  font-size: 15px;
  color: var(--text-0);
  font-weight: 600;
  margin-bottom: 4px;
}
.rank-tier-range {
  font-size: 12px;
  color: var(--text-2);
  letter-spacing: 1px;
}

/* Invite page */
.invite-code-box {
  background: linear-gradient(180deg, rgba(202,166,90,.15), rgba(202,166,90,.05));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  margin-bottom: 16px;
}
.invite-label {
  font-size: 13px;
  color: var(--text-2);
  letter-spacing: 2px;
  margin-bottom: 10px;
}
.invite-code {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--gold-1);
  letter-spacing: 6px;
  font-weight: 700;
  text-shadow: 0 0 20px rgba(202,166,90,.4);
  margin: 0 0 14px;
}
.invite-link {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.invite-link input {
  flex: 1;
  background: rgba(7,9,10,.6);
  border: 1px solid var(--line);
  color: var(--text-2);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-family: inherit;
  outline: none;
}
.invite-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.invite-step {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--line);
}
.invite-step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-2), var(--gold-4));
  color: var(--ink-0);
  display: grid; place-items: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.invite-step-body { flex: 1; }
.invite-step-title {
  font-size: 14px;
  color: var(--text-0);
  font-weight: 600;
  margin-bottom: 4px;
}
.invite-step-desc {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.6;
}

/* Settings toggles */
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--text-1);
}
.setting-row:last-child { border-bottom: 0; }
.setting-row-label { display: flex; align-items: center; gap: 10px; }
.setting-row-label svg { color: var(--gold-3); opacity: .8; }
.toggle-switch {
  width: 48px; height: 28px;
  background: #2a3338;
  border-radius: 14px;
  position: relative;
  transition: background .25s;
  cursor: pointer;
  border: 0;
  padding: 0;
}
.toggle-switch.on { background: linear-gradient(180deg, var(--gold-3), var(--gold-4)); }
.toggle-switch::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
  transition: transform .25s;
}
.toggle-switch.on::after { transform: translateX(20px); }
.setting-value { color: var(--text-3); font-size: 13px; }

/* Recharge page */
.recharge-packages {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.recharge-assets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.recharge-assets > div {
  padding: 18px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #1a2226, #0d1113);
  text-align: center;
}
.recharge-assets span { display: block; color: var(--text-2); font-size: 12px; }
.recharge-assets strong { display: block; margin-top: 6px; color: var(--gold-1); font-size: 20px; }
.recharge-pkg {
  background: linear-gradient(180deg, #1a2226, #0d1113);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 10px;
  text-align: center;
  cursor: pointer;
  transition: all .25s;
  position: relative;
}
.recharge-pkg.is-disabled { opacity: .45; cursor: not-allowed; filter: grayscale(.5); }
.recharge-name {
  min-height: 40px;
  display: grid;
  place-items: center;
  color: var(--text-0);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}
.recharge-pkg.active {
  border-color: var(--gold-3);
  background: linear-gradient(180deg, rgba(202,166,90,.2), rgba(202,166,90,.05));
  box-shadow: 0 0 0 1px rgba(202,166,90,.4);
}
.recharge-pkg.active::after {
  content: "✓";
  position: absolute;
  top: 6px; right: 8px;
  color: var(--gold-2);
  font-weight: 700;
}
.recharge-amount {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--gold-1);
  font-weight: 700;
  margin-bottom: 4px;
}
.recharge-unit {
  font-size: 12px;
  color: var(--text-2);
}
.recharge-desc {
  min-height: 32px;
  margin-top: 8px;
  color: var(--text-3);
  font-size: 11px;
  line-height: 1.45;
}
.recharge-limit { margin-top: 9px; color: var(--gold-3); font-size: 10px; }
.recharge-loading { padding: 32px 16px; color: var(--text-3); text-align: center; }

/* Seat registration */
.seat-loading { padding: 42px 16px; color: var(--text-3); text-align: center; }
.seat-card,.seat-payment {
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #151b1e, #0d1113);
}
.seat-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.seat-card-head span { display: block; color: var(--text-3); font-size: 11px; }
.seat-card-head strong { display: block; margin-top: 4px; color: var(--text-0); font-size: 15px; }
.seat-card-head em { color: var(--gold-2); font-size: 11px; font-style: normal; }
.poker-seat-map { position: relative; height: 290px; margin: 12px 0 4px; }
.poker-table {
  position: absolute;
  inset: 42px 38px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 5px solid #67442f;
  border-radius: 48%;
  color: rgba(255,255,255,.18);
  background: radial-gradient(circle at 50% 42%, #146036, #06331e 68%, #032416);
  box-shadow: inset 0 0 45px rgba(0,0,0,.52), 0 12px 30px rgba(0,0,0,.32);
}
.poker-table span { font-size: 44px; line-height: 1; }
.poker-table b { margin-top: 4px; color: rgba(255,226,156,.35); font-size: 11px; letter-spacing: .22em; }
.seat-choice {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  align-content: center;
  width: 44px;
  height: 44px;
  padding: 3px;
  border: 1px solid #4a5053;
  border-radius: 50%;
  color: #fff;
  background: #202426;
  font-size: 15px;
  font-weight: 700;
  transform: translate(-50%,-50%);
  box-shadow: 0 5px 15px rgba(0,0,0,.36);
}
.seat-choice:not(:disabled):hover,.seat-choice.is-selected { border-color: var(--gold-2); color: var(--gold-1); box-shadow: 0 0 0 2px rgba(202,166,90,.25),0 0 20px rgba(202,166,90,.26); }
.seat-choice.is-occupied { width: 68px; height: 48px; border-radius: 13px; color: #b9b2ad; background: #17191a; cursor: not-allowed; }
.seat-choice.is-mine { border-color: #55c58b; color: #71dda3; background: #12271c; opacity: 1; }
.seat-number { line-height: 1; }
.seat-nickname { display: block; overflow: hidden; width: 58px; margin-top: 3px; color: #eee7de; font-size: 9px; font-weight: 600; line-height: 1.1; white-space: nowrap; text-overflow: ellipsis; }
.seat-choice.is-mine .seat-nickname { color: #9aebbd; }
.seat-selected { margin: 0; color: var(--text-2); font-size: 13px; text-align: center; }
.seat-payment h3 { margin: 0 0 13px; color: var(--gold-2); font-size: 17px; }
.seat-payment-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(202,166,90,.06); }
.seat-payment-option strong,.seat-payment-option span { display: block; }
.seat-payment-option strong { color: var(--text-0); font-size: 15px; }
.seat-payment-option span { margin-top: 5px; color: var(--text-3); font-size: 11px; }
.seat-payment-option em { color: #6ed89c; font-size: 11px; font-style: normal; white-space: nowrap; }
.seat-payment-option.is-insufficient em { color: #f0786d; }
.seat-package-link { margin-top: 12px; padding: 0; border: 0; color: var(--gold-2); background: transparent; font: 600 13px inherit; }
.seat-confirm { width: 100%; }
.seat-confirm:disabled { opacity: .42; cursor: not-allowed; }
.recharge-bonus {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--chip-red), #d36b3a);
  color: #fff;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 0 0 8px 8px;
  letter-spacing: 1px;
}

/* Transaction history */
.tx-list { display: flex; flex-direction: column; gap: 10px; }
.tx-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
}
.tx-left { display: flex; flex-direction: column; gap: 4px; }
.tx-title { color: var(--text-0); font-weight: 500; }
.tx-date { font-size: 11px; color: var(--text-3); }
.tx-amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
}
.tx-amount.plus { color: #5fd38a; }
.tx-amount.minus { color: #d35f5f; }

/* Shop page */
.shop-card {
  background: linear-gradient(180deg, #13191c, #0d1113);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 14px;
}
.shop-head {
  display: flex;
  gap: 14px;
  margin-bottom: 12px;
}
.shop-logo {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2a3338, #0f1417);
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  font-size: 26px;
  flex-shrink: 0;
}
.shop-name {
  font-size: 16px;
  color: var(--text-0);
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: 1px;
}
.shop-rating { font-size: 12px; color: var(--gold-2); letter-spacing: 1px; }
.shop-rating .stars { color: var(--gold-2); letter-spacing: 2px; }
.shop-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  color: var(--text-2);
}
.shop-info span { display: flex; gap: 8px; }
.shop-info .k { color: var(--text-3); min-width: 58px; }

/* Help section */
.help-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.help-item:last-child { border-bottom: 0; }
.help-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  color: var(--text-1);
  transition: color .2s;
}
.help-item:hover .help-q { color: var(--gold-2); }
.help-q i { font-style: normal; color: var(--text-3); transition: transform .2s; }
.help-item.open .help-q i { transform: rotate(90deg); color: var(--gold-2); }
.help-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, margin-top .3s ease;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.8;
}
.help-item.open .help-a {
  max-height: 300px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

/* Responsive */
@media (min-width: 520px) {
  .app { box-shadow: 0 0 80px rgba(0,0,0,.5); }
}
@media (max-height: 700px) {
  .login-header { padding-top: 100px; }
}

/* Safe scroll behavior */
.page-main { position: relative; }

/* ============ Announcement marquee (plaza top) ============ */
.ann-marquee {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 14px 4px;
  padding: 8px 10px;
  background: linear-gradient(90deg, rgba(202,166,90,.18), rgba(202,166,90,.04));
  border: 1px solid rgba(202,166,90,.35);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  height: 36px;
  box-sizing: border-box;
}
.ann-marquee-icon {
  color: var(--gold-2);
  font-size: 14px;
  flex-shrink: 0;
}
.ann-marquee-track {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  height: 20px;
  display: flex;
  align-items: center;
}
.ann-marquee-inner {
  display: inline-flex;
  gap: 48px;
  animation: ann-scroll 36s linear infinite;
  color: var(--text-1);
  font-size: 12px;
  letter-spacing: .5px;
}
.ann-marquee-inner span { flex-shrink: 0; }
.ann-marquee-inner strong {
  color: var(--gold-2);
  font-weight: 600;
  margin-right: 4px;
  letter-spacing: 1px;
}
@keyframes ann-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ann-marquee-close {
  flex-shrink: 0;
  width: 20px; height: 20px;
  background: transparent;
  border: 0;
  color: var(--text-3);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: color .2s;
}
.ann-marquee-close:hover { color: var(--gold-2); }

/* ============ Announcement modal ============ */
.ann-root {
  position: fixed;
  inset: 0;
  max-width: 520px;
  margin: 0 auto;
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}
.ann-root.active { display: flex; animation: ann-fade .25s ease; }
.ann-mask {
  position: absolute;
  inset: 0;
  background: rgba(4,5,6,.78);
  backdrop-filter: blur(6px);
}
.ann-dialog {
  position: relative;
  width: 100%;
  max-width: 380px;
  max-height: 86vh;
  background: linear-gradient(180deg, #101518 0%, #07090a 100%);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,.75), 0 0 0 1px rgba(202,166,90,.2);
  animation: ann-pop .28s cubic-bezier(.34,1.56,.64,1);
}
.ann-dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(202,166,90,.12), transparent);
  flex-shrink: 0;
}
.ann-dialog-title {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--gold-2);
  font-weight: 600;
  letter-spacing: 2px;
}
.ann-close-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--text-2);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: grid; place-items: center;
  transition: all .2s;
}
.ann-close-btn:hover {
  color: var(--gold-2);
  border-color: var(--gold-3);
}
.ann-dialog-body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.ann-cover {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--line);
}
.ann-cover-placeholder {
  height: 140px;
  background: linear-gradient(135deg, #1a2226, #0d1113);
  display: grid;
  place-items: center;
  color: var(--gold-2);
  font-size: 36px;
  border-bottom: 1px solid var(--line);
}
.ann-body-wrap {
  padding: 16px;
}
.ann-tag {
  display: inline-block;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 10px;
  letter-spacing: 1px;
  margin-bottom: 10px;
  font-weight: 600;
}
.ann-tag.red { background: rgba(211,95,95,.2); color: #e57d7d; border: 1px solid rgba(211,95,95,.35); }
.ann-tag.gold { background: rgba(202,166,90,.18); color: var(--gold-2); border: 1px solid rgba(202,166,90,.4); }
.ann-tag.blue { background: rgba(94,150,214,.18); color: #7eb2e5; border: 1px solid rgba(94,150,214,.4); }
.ann-dialog h3 {
  margin: 0 0 12px;
  font-size: 17px;
  color: var(--text-0);
  font-weight: 600;
  letter-spacing: 1px;
  font-family: var(--font-serif);
}
.ann-dialog .ann-body p {
  margin: 0 0 8px;
  line-height: 1.8;
  font-size: 13px;
  color: var(--text-1);
}
.ann-meta {
  display: flex;
  gap: 14px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 11px;
  color: var(--text-3);
}
.ann-dialog-foot {
  flex-shrink: 0;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--line);
  background: rgba(0,0,0,.25);
}
.ann-no-remind {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-2);
  cursor: pointer;
  user-select: none;
  margin-bottom: 12px;
}
.ann-no-remind input {
  width: 14px; height: 14px;
  accent-color: var(--gold-3);
  cursor: pointer;
}
.ann-foot-btns {
  display: flex;
  gap: 10px;
}
.ann-foot-btns button { flex: 1; height: 40px; font-size: 14px; }

@keyframes ann-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes ann-pop {
  from { transform: scale(.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ============ Announcement center list ============ */
.ann-list { display: flex; flex-direction: column; gap: 12px; }
.ann-list-item {
  background: linear-gradient(180deg, #13191c, #0d1113);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  gap: 12px;
  cursor: pointer;
  transition: all .2s;
  position: relative;
}
.ann-list-item:hover {
  border-color: var(--gold-3);
  transform: translateY(-1px);
}
.ann-list-cover {
  width: 88px; height: 64px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: #000;
}
.ann-list-cover-fallback {
  width: 88px; height: 64px;
  border-radius: 10px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #2a3338, #0f1417);
  display: grid; place-items: center;
  color: var(--gold-2);
  font-size: 24px;
}
.ann-list-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.ann-list-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}
.ann-list-title {
  font-size: 15px;
  color: var(--text-0);
  font-weight: 600;
  margin: 0;
  letter-spacing: 1px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ann-list-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-3);
}
.ann-list-date { letter-spacing: 1px; }
.ann-read-badge {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--chip-red);
  margin-left: 6px;
}
.ann-read-badge.read { background: var(--text-3); opacity: .4; }

/* Announcement admin panel (for admin user) */
.ann-admin-tools {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.ann-admin-tools .btn-ghost,
.ann-admin-tools .btn-primary {
  flex: 1;
  height: 38px;
  font-size: 13px;
}
.ann-admin-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.ann-admin-form .field label {
  font-size: 13px;
  letter-spacing: 1px;
}
.ann-admin-form textarea {
  min-height: 100px;
  resize: vertical;
}
.ann-tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ann-tag-row .chip {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  font-size: 12px;
  cursor: pointer;
  background: transparent;
  color: var(--text-2);
  transition: all .2s;
}
.ann-tag-row .chip.active {
  background: rgba(202,166,90,.2);
  color: var(--gold-2);
  border-color: var(--gold-3);
}
.ann-list-actions {
  display: flex;
  gap: 6px;
}
.ann-list-actions button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-3);
  border-radius: 6px;
  font-size: 11px;
  padding: 3px 8px;
  cursor: pointer;
  transition: all .2s;
}
.ann-list-actions button:hover {
  color: var(--gold-2);
  border-color: var(--gold-3);
}
.ann-list-actions button.danger:hover {
  color: #e57d7d;
  border-color: #d35f5f;
}
