/* Vòng Quay Mèo Béo — pastel cute, đồng bộ style.md (tokens.css đã nạp ở layout). */

.gacha-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px 64px;
  font-family: 'Comfortaa', 'Quicksand', system-ui, sans-serif;
  color: var(--text-main, #5c4b47);
}

/* ── Icon SVG dùng chung ── */
.gi {
  width: 1.2em; height: 1.2em;
  display: inline-block; vertical-align: -0.26em;
  flex-shrink: 0;
}
.gi.gi-mini { width: 1em; height: 1em; vertical-align: -0.16em; }

/* ── Hero ── */
.g-hero {
  position: relative;
  text-align: center;
  background: var(--bg-hero, linear-gradient(135deg, #ffd6e6 0%, #fad0c4 55%, #ffe9b3 100%));
  border-radius: var(--radius-xl, 28px);
  padding: 40px 24px 36px;
  margin-bottom: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft, 0 10px 30px rgba(250, 208, 196, 0.3));
}
/* blob trang trí mềm */
.g-hero::before, .g-hero::after {
  content: ''; position: absolute; border-radius: 50%;
  background: rgba(255, 255, 255, 0.35); filter: blur(2px);
}
.g-hero::before { width: 150px; height: 150px; top: -56px; left: -40px; }
.g-hero::after { width: 110px; height: 110px; bottom: -44px; right: -26px; }
/* icon trang trí bay lượn */
.g-deco {
  position: absolute; z-index: 1; opacity: .55;
  animation: g-float 4.5s ease-in-out infinite;
}
.g-deco.d1 { width: 30px; height: 30px; top: 24px; left: 30px; color: #fff; transform: rotate(-18deg); }
.g-deco.d2 { width: 26px; height: 26px; top: 16px; right: 56px; animation-delay: .8s; }
.g-deco.d3 { width: 22px; height: 22px; bottom: 26px; left: 64px; color: #ff9eb5; animation-delay: 1.4s; }
.g-deco.d4 { width: 24px; height: 24px; bottom: 20px; right: 36px; color: #fff; transform: rotate(14deg); animation-delay: 2s; }
@keyframes g-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-9px) rotate(8deg); } }
.g-hero-badge {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.78); color: var(--accent, #d67d63);
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 0.8rem;
  padding: 6px 16px; border-radius: 999px; backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px rgba(250, 208, 196, 0.4);
}
.g-hero h1 {
  position: relative; z-index: 2;
  font-family: 'Nunito', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.9rem, 5vw, 2.7rem);
  color: #fff;
  text-shadow: 0 2px 12px rgba(214, 125, 99, 0.4);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  text-align: left;
}
.g-hero p {
  position: relative; z-index: 2;
  max-width: 640px; margin: 0 auto; line-height: 1.6;
  color: #7a5a50;
}
.g-hero strong { color: var(--accent, #d67d63); }
/* Bố cục hero 2 cột: chữ trái + tranh đàn mèo phải */
.g-hero-inner {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap;
}
.g-hero-text { flex: 1 1 300px; max-width: 520px; text-align: left; }
.g-hero-text p { margin: 10px 0 0; max-width: 460px; }
.g-hero-art { flex: 0 1 360px; display: flex; justify-content: center; }
.g-hero-img {
  width: 100%; max-width: 360px; height: auto;
  filter: drop-shadow(0 10px 18px rgba(214, 125, 99, 0.25));
}
@media (max-width: 1000px) {
  .g-hero-inner { flex-direction: column-reverse; }
  .g-hero-text { text-align: center; }
  .g-hero-text p { margin-left: auto; margin-right: auto; }
  .g-hero-img { max-width: 260px; }
}

/* ── Card chung ── */
.g-card {
  background: #fff;
  border: 1px solid var(--border-soft, #ffe6e0);
  border-radius: var(--radius-lg, 24px);
  box-shadow: var(--shadow-card, 0 8px 24px -10px rgba(250, 208, 196, 0.6));
  padding: 24px;
  margin-bottom: 20px;
}
.g-panel-title {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Nunito', system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--accent, #d67d63);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px dashed var(--border-soft, #ffe6e0);
}
.g-panel-ico {
  width: 38px; height: 38px; padding: 7px;
  background: var(--peach-light, #fff5f2);
  border-radius: 14px; box-sizing: border-box;
}

/* ── Nút pill ── */
.g-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #fad0c4 0%, #fbc1b0 100%);
  color: var(--text-main, #5c4b47);
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 12px 26px;
  border: none;
  border-radius: var(--radius-pill, 999px);
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow-btn, 0 6px 18px rgba(250, 208, 196, 0.5));
  transition: transform .25s, box-shadow .25s;
}
.g-btn:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-pop, 0 10px 22px rgba(250, 208, 196, 0.7));
}
.g-btn:disabled { opacity: .55; cursor: not-allowed; }
/* Nút phụ (ghost) — dùng cho Nhật ký / Xếp hạng */
.g-btn.ghost {
  background: #fff; color: var(--accent, #d67d63);
  border: 1.5px solid var(--border-soft, #ffe6e0); box-shadow: none;
}
.g-btn.ghost:hover:not(:disabled) {
  background: var(--peach-light, #fff5f2); border-color: var(--border-peach, #fbc1b0);
  box-shadow: var(--shadow-btn, 0 6px 18px rgba(250, 208, 196, 0.5));
}

/* ── Banner khách chơi thử ── */
.g-guest-banner {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: linear-gradient(135deg, #ffd6e6 0%, #fff5f2 100%);
}
.g-guest-ava {
  width: 56px; height: 56px; flex-shrink: 0;
  display: grid; place-items: center;
  background: #fff; border-radius: 50%;
  box-shadow: 0 4px 12px rgba(250, 208, 196, 0.45);
}
.g-guest-ava .gi { width: 38px; height: 38px; }
.g-guest-text { flex: 1; min-width: 220px; line-height: 1.5; }
.g-guest-text strong { color: var(--accent, #d67d63); display: block; }
.g-guest-text span { color: var(--text-muted, #8a7772); font-size: 0.92rem; }
.g-guest-banner .g-btn { flex-shrink: 0; }

/* ── Thanh điều khiển: trạng thái + hành động ── */
.g-control {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--border-soft, #ffe6e0);
  border-radius: var(--radius-lg, 24px);
  box-shadow: var(--shadow-card, 0 8px 24px -10px rgba(250, 208, 196, 0.6));
  padding: 14px 18px;
  margin-bottom: 18px;
}
.g-stats { display: flex; flex-wrap: wrap; gap: 10px; flex: 1; }
.g-control-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.g-control-actions .g-btn { padding: 10px 18px; font-size: 0.9rem; }
.g-stat {
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--peach-light, #fff5f2);
  border: 1px solid var(--border-soft, #ffe6e0);
  border-radius: var(--radius-pill, 999px);
  padding: 8px 20px 8px 8px;
}
.g-stat-ico {
  width: 42px; height: 42px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--chip, #fff); border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}
.g-stat-ico .gi { width: 26px; height: 26px; }
.g-stat-num {
  display: block;
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 1.25rem;
  color: var(--accent, #d67d63); line-height: 1.1;
}
.g-stat-lbl { font-size: 0.72rem; color: var(--text-muted, #8a7772); }

/* ── Chọn hộp ── */
.g-box-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  -webkit-overflow-scrolling: touch;
}
.g-box {
  flex: 1 0 150px;
  min-width: 150px;
  cursor: pointer;
  text-align: center;
  font-family: 'Comfortaa', sans-serif;
  color: var(--text-main, #5c4b47);
  background: var(--cream, #fffcfb);
  border: 1px solid var(--border-soft, #ffe6e0);
  border-top: 5px solid var(--bc, #b8e0c8);
  border-radius: var(--radius-md, 18px);
  padding: 16px 12px;
  transition: transform .2s, box-shadow .2s;
}
.g-box:hover { transform: translateY(-3px); box-shadow: var(--shadow-card, 0 8px 24px -10px rgba(250, 208, 196, 0.6)); }
.g-box.active {
  box-shadow: 0 0 0 3px var(--bc, #b8e0c8), var(--shadow-card, 0 8px 24px -10px rgba(250, 208, 196, 0.6));
  transform: translateY(-3px);
}
.g-box-badge {
  width: 84px; height: 84px; margin: 0 auto 8px;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 38%, #ffffff 0%, #fff5f1 100%);
  border: 2px solid var(--bc, #ffe6e0);
  border-radius: 50%;
  box-shadow: inset 0 -4px 10px rgba(250, 208, 196, 0.25);
}
.g-box-img { display: block; width: 56px; height: 56px; object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(250, 208, 196, 0.5)); }
.g-box-name { display: block; font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 0.95rem; margin: 4px 0; }
.g-box-cost { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 0.85rem; color: var(--accent, #d67d63); }
.g-box-desc { margin: 12px 2px 0; color: var(--text-muted, #8a7772); line-height: 1.5; min-height: 1.5em; }

.g-rates-toggle {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 12px;
  background: var(--peach-light, #fff5f2);
  border: 1px solid var(--border-soft, #ffe6e0);
  color: var(--accent, #d67d63);
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 0.88rem;
  border-radius: var(--radius-pill, 999px);
  padding: 9px 18px; cursor: pointer;
  transition: background .2s;
}
.g-rates-toggle:hover { background: #ffe6e0; }
.g-rates { margin-top: 14px; }
.g-rates[hidden] { display: none; }
.g-rate-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; margin-bottom: 6px;
  background: var(--cream, #fffcfb);
  border: 1px solid #fff5f2;
  border-left: 5px solid var(--r, #b8e0c8);
  border-radius: 12px;
}
.g-rate-img { width: 30px; height: 30px; object-fit: contain; flex-shrink: 0; }
.g-rate-name { flex: 1; font-size: 0.88rem; display: flex; flex-direction: column; }
.g-rate-tier { font-size: 0.68rem; color: var(--text-muted, #8a7772); }
.g-rate-pct { font-family: 'Nunito', sans-serif; font-weight: 800; color: var(--accent, #d67d63); white-space: nowrap; }

/* ── Máy mở hộp: băng chuyền kiểu CSGO ── */
.g-machine { text-align: center; position: relative; }
/* Nút bật/tắt âm thanh */
.g-sound-toggle {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: var(--peach-light, #fff5f2); border: 1px solid var(--border-soft, #ffe6e0);
  box-shadow: var(--shadow-btn, 0 6px 18px rgba(250, 208, 196, 0.5));
  transition: transform .2s, background .2s;
}
.g-sound-toggle:hover { transform: scale(1.08); background: #ffe6e0; }
.g-sound-toggle .gi { width: 22px; height: 22px; vertical-align: 0; }
.g-sound-toggle.muted { background: #f3eef7; }
.g-reel {
  position: relative;
  height: 150px;
  margin: 4px 0 16px;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(255, 233, 179, 0.35), transparent 60%),
    linear-gradient(135deg, #fffcfb 0%, #fff5f2 100%);
  border: 2px dashed var(--border-soft, #ffe6e0);
  border-radius: var(--radius-lg, 24px);
  overflow: hidden;
}
/* Kim chỉ giữa + tam giác trên/dưới */
.g-reel-marker {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 3px; transform: translateX(-50%);
  background: var(--accent, #d67d63);
  z-index: 6; border-radius: 3px;
  box-shadow: 0 0 10px rgba(214, 125, 99, 0.6);
}
.g-reel-marker::before, .g-reel-marker::after {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%);
  border-left: 8px solid transparent; border-right: 8px solid transparent;
}
.g-reel-marker::before { top: -1px; border-top: 10px solid var(--accent, #d67d63); }
.g-reel-marker::after { bottom: -1px; border-bottom: 10px solid var(--accent, #d67d63); }
/* Mờ 2 mép cho cảm giác chiều sâu */
.g-reel-fade { position: absolute; top: 0; bottom: 0; width: 64px; z-index: 3; pointer-events: none; }
.g-reel-fade.left  { left: 0;  background: linear-gradient(90deg, #fff7f5, transparent); }
.g-reel-fade.right { right: 0; background: linear-gradient(270deg, #fff7f5, transparent); }
.g-reel-track {
  position: absolute; top: 0; left: 0; height: 100%;
  display: flex; align-items: center;
  z-index: 2; will-change: transform;
}
/* QUAN TRỌNG: width 110 + margin 5*2 = 120 (CELL trong index.js) — không đổi kích thước! */
.g-reel-cell {
  width: 110px; height: 110px; flex: 0 0 110px;
  margin: 0 5px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
  background: #fff;
  border: 1px solid var(--border-soft, #ffe6e0);
  border-bottom: 5px solid var(--rc, #b8e0c8);
  border-radius: var(--radius-md, 18px);
}
.g-reel-cell .e { width: 64px; height: 64px; object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(92, 75, 71, 0.18)); }
.g-reel-cell .n { font-size: 0.64rem; color: var(--text-muted, #8a7772); max-width: 100px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-reel.win .g-reel-cell.is-win {
  box-shadow: 0 0 0 3px var(--glow, #ffe9b3), 0 0 22px var(--glow, #ffe9b3);
  animation: g-pop .5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes g-pop {
  0% { transform: scale(0.85); }
  60% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

/* ── Hào quang khi mở trúng cấp cao (epic/legendary) ── */
.g-reel-halo {
  position: absolute; left: 50%; top: 50%; width: 0; height: 0;
  transform: translate(-50%, -50%);
  display: none; z-index: 4; pointer-events: none;
}
.g-reel-halo.r-epic, .g-reel-halo.r-legendary, .g-reel-halo.r-divine { display: block; }
/* vầng sáng quanh vật phẩm (rỗng giữa để không che hình) */
.g-reel-halo::before {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 210px; height: 210px; transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, transparent 0 38px, var(--halo, #ffe9b3) 58px, transparent 78px);
  opacity: .85; animation: halo-pulse 1.1s ease-in-out infinite;
}
.g-reel-halo .rays {
  display: none; position: absolute; left: 50%; top: 50%;
  width: 300px; height: 300px; transform: translate(-50%, -50%);
  background: repeating-conic-gradient(var(--halo, #ffe9b3) 0deg 6deg, transparent 6deg 20deg);
  -webkit-mask: radial-gradient(circle, transparent 44px, #000 50px, #000 118px, transparent 138px);
          mask: radial-gradient(circle, transparent 44px, #000 50px, #000 118px, transparent 138px);
  opacity: .5;
}
.g-reel-halo.r-epic .rays, .g-reel-halo.r-legendary .rays, .g-reel-halo.r-divine .rays {
  display: block; animation: halo-spin 7s linear infinite;
}
.g-reel-halo.r-legendary .rays { width: 360px; height: 360px; opacity: .72; animation-duration: 5s; }
.g-reel-halo.r-legendary::before {
  width: 250px; height: 250px;
  background: radial-gradient(circle, transparent 0 42px, var(--halo, #ffe9b3) 62px, transparent 92px);
}
/* Vô Cực — hào quang lớn nhất, xoay nhanh, sáng nhất */
.g-reel-halo.r-divine .rays { width: 420px; height: 420px; opacity: .85; animation-duration: 3.5s; }
.g-reel-halo.r-divine::before {
  width: 290px; height: 290px;
  background: radial-gradient(circle, transparent 0 44px, var(--halo, #ff9ec7) 66px, transparent 104px);
  animation-duration: .8s;
}
@keyframes halo-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes halo-pulse { 0%, 100% { opacity: .5; } 50% { opacity: .95; } }
.g-result {
  min-height: 2.6em;
  line-height: 1.5;
  margin: 0 0 16px;
  font-weight: 600;
}
.g-result strong { color: var(--accent, #d67d63); }
.g-spin { font-size: 1.05rem; padding: 14px 34px; }
.g-spin .gi { width: 1.3em; height: 1.3em; }

/* ── Nhật ký ── */
.g-log-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 320px;
  overflow-y: auto;
}
.g-log-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--cream, #fffcfb);
  border: 1px solid #fff5f2;
  margin-bottom: 8px;
  font-size: 0.88rem;
  line-height: 1.45;
}
.g-log-msg { flex: 1; }
.g-log-x { font-family: 'Nunito', sans-serif; font-weight: 800; white-space: nowrap; }
.g-log-x.plus { color: #1e6b42; }
.g-log-x.minus { color: #b03b3b; }

/* ── Kho đồ ── */
.g-inv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}
.g-inv-item {
  position: relative;
  display: flex; flex-direction: column;
  border: 1px solid var(--border-soft, #ffe6e0);
  border-top: 4px solid var(--r, #b8e0c8);
  border-radius: var(--radius-md, 18px);
  background: var(--cream, #fffcfb);
  padding: 14px 12px;
  text-align: center;
}
.g-inv-badge {
  width: 72px; height: 72px; margin: 0 auto 6px;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 38%, #ffffff 0%, #fff6f2 100%);
  border: 2px solid var(--r, #ffe6e0);
  border-radius: 50%;
}
.g-inv-img { width: 48px; height: 48px; object-fit: contain; }
.g-inv-name {
  font-weight: 700; font-size: 0.9rem; margin: 4px 0 2px;
  line-height: 1.2; min-height: 2.4em; /* luôn chừa 2 dòng -> các ô bằng nhau */
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.g-inv-rarity { font-size: 0.72rem; color: var(--text-muted, #8a7772); }
.g-inv-qty {
  position: absolute; top: 8px; right: 8px;
  background: var(--accent, #d67d63); color: #fff;
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 0.72rem;
  border-radius: 999px; padding: 2px 9px; z-index: 1;
}
.g-inv-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: auto; padding-top: 10px; }
.g-mini {
  font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 0.78rem;
  border: none; border-radius: 999px; padding: 8px 6px; cursor: pointer;
  transition: transform .2s, filter .2s;
}
.g-mini.auc { grid-column: 1 / -1; } /* "Đấu giá" full-width ở hàng dưới */
.g-mini:hover { transform: translateY(-2px); filter: brightness(0.97); }
.g-mini.sell { background: #b8e0c8; color: #1e6b42; }
.g-mini.gift { background: #ffd6e6; color: #b34a6b; }
.g-empty { color: var(--text-muted, #8a7772); text-align: center; padding: 8px; }

/* ── Mời bạn ── */
.g-invite-row { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.g-invite-row input {
  flex: 1; min-width: 200px;
  border: 1px solid var(--border-soft, #ffe6e0);
  border-radius: var(--radius-sm, 16px);
  background: var(--input-bg, #fffaf9);
  padding: 12px 16px;
  font-family: inherit; color: var(--text-main, #5c4b47);
}

/* ── Luật chơi + trưng bày ── */
.g-rules-list { margin: 0 0 8px; padding: 0; list-style: none; }
.g-rules-list li {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 10px; line-height: 1.55;
}
.g-rule-ico {
  width: 34px; height: 34px; padding: 6px; flex-shrink: 0;
  background: var(--peach-light, #fff5f2);
  border-radius: 12px; box-sizing: border-box;
}
.g-rules-list strong { color: var(--accent, #d67d63); }
.g-showcase-title {
  font-family: 'Nunito', sans-serif; font-weight: 800;
  color: var(--accent-soft, #e59882); margin: 22px 0 14px;
}
.g-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px;
}
.g-show-item {
  position: relative;
  border: 1px solid var(--border-soft, #ffe6e0);
  border-top: 4px solid var(--r, #b8e0c8);
  border-radius: var(--radius-md, 18px);
  background: var(--cream, #fffcfb);
  padding: 22px 10px 14px;
  text-align: center;
}
/* viền sáng nhẹ cho cấp cao trong bộ sưu tập */
.g-show-item.r-epic, .g-show-item.r-legendary, .g-show-item.r-divine {
  box-shadow: 0 0 0 2px var(--r), 0 6px 16px -8px var(--r);
}
.g-show-item.r-divine { box-shadow: 0 0 0 2px var(--r), 0 0 18px -2px var(--r); }
.g-show-tier {
  position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 0.6rem;
  background: var(--r, #b8e0c8); color: #5c4b47;
  padding: 1px 9px; border-radius: 999px; white-space: nowrap; z-index: 1;
}
.g-show-badge {
  width: 64px; height: 64px; margin: 6px auto 2px;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 38%, #ffffff 0%, #fff6f2 100%);
  border: 2px solid var(--r, #ffe6e0);
  border-radius: 50%;
}
.g-show-img { width: 42px; height: 42px; object-fit: contain; }
.g-show-name { font-weight: 700; font-size: 0.88rem; margin: 6px 0 2px; }
.g-show-sell { display: inline-flex; align-items: center; gap: 4px; font-size: 0.8rem; margin-top: 4px; color: var(--accent, #d67d63); font-weight: 700; }
.g-credit { text-align: center; font-size: 0.72rem; color: var(--text-muted, #8a7772); margin: 18px 0 0; }
.g-credit a { color: var(--accent, #d67d63); }

/* ── Modal (tặng đồ / nhật ký / xếp hạng) ── */
.g-modal {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(92, 75, 71, 0.4);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  padding: 20px;
  animation: g-fade .2s ease;
}
@keyframes g-fade { from { opacity: 0; } to { opacity: 1; } }
.g-modal[hidden] { display: none; }
.g-modal-box {
  position: relative;
  width: min(100%, 380px);
  background: #fff;
  border-radius: var(--radius-xl, 28px);
  box-shadow: 0 20px 50px rgba(92, 75, 71, 0.25);
  padding: 26px 24px;
  animation: g-modal-in .28s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.g-modal-box.lg { width: min(100%, 660px); max-height: 86vh; overflow-y: auto; }
@keyframes g-modal-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
.g-modal-title {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 1.2rem;
  color: var(--accent, #d67d63); margin: 0 0 16px; padding-right: 36px;
  padding-bottom: 12px; border-bottom: 2px dashed var(--border-soft, #ffe6e0);
}
.g-modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; border: none; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--peach-light, #fff5f2); color: var(--accent, #d67d63);
  cursor: pointer;
}
.g-modal-close .gi { width: 18px; height: 18px; vertical-align: 0; }
.g-field { display: block; font-family: 'Nunito', sans-serif; font-weight: 700;
  font-size: 0.86rem; color: var(--accent, #d67d63); margin-bottom: 14px; }
.g-field input {
  display: block; width: 100%; box-sizing: border-box; margin-top: 6px;
  border: 1px solid var(--border-soft, #ffe6e0);
  border-radius: var(--radius-sm, 16px);
  background: var(--input-bg, #fffaf9);
  padding: 12px 16px; font-family: 'Comfortaa', sans-serif;
  color: var(--text-main, #5c4b47);
}
.g-gift-submit { width: 100%; margin-top: 4px; }

/* ── Toast ── */
.g-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  z-index: 10001;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border-soft, #ffe6e0);
  box-shadow: var(--shadow-soft, 0 10px 30px rgba(250, 208, 196, 0.3));
  border-radius: var(--radius-pill, 999px);
  padding: 12px 22px;
  font-weight: 700; color: var(--text-main, #5c4b47);
  max-width: 90vw; text-align: center;
  animation: g-toast-in .3s ease;
}
.g-toast[hidden] { display: none; }
.g-toast.error { border-color: #f1b0a6; color: #b03b3b; }
@keyframes g-toast-in {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ── Bảng xếp hạng ── */
.g-lb-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.g-lb-board {
  min-width: 0; /* cho phép cột co lại để tên dài ellipsis, không phá vỡ grid 2 cột */
  background: var(--cream, #fffcfb);
  border: 1px solid var(--border-soft, #ffe6e0);
  border-radius: var(--radius-md, 18px);
  padding: 14px 14px 8px;
}
.g-lb-title {
  display: flex; align-items: center; gap: 7px;
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 0.98rem;
  color: var(--accent, #d67d63); margin: 0 0 10px;
}
.g-lb-empty { color: var(--text-muted, #8a7772); font-size: 0.85rem; padding: 4px 0 8px; }
.g-lb-list { list-style: none; margin: 0; padding: 0; }
.g-lb-row {
  display: flex; align-items: center; gap: 9px;
  padding: 6px 8px; margin-bottom: 4px; border-radius: 12px;
}
.g-lb-row.top { background: #fff; box-shadow: var(--shadow-card, 0 8px 24px -10px rgba(250, 208, 196, 0.6)); }
.g-lb-rank {
  width: 26px; text-align: center; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 0.85rem; color: var(--text-muted, #8a7772);
}
.g-lb-medal { width: 24px; height: 24px; }
.g-lb-medal.m1 { color: #ffcf5c; }
.g-lb-medal.m2 { color: #cfd4da; }
.g-lb-medal.m3 { color: #e0a06a; }
.g-lb-ava {
  width: 28px; height: 28px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--border-soft, #ffe6e0); flex-shrink: 0;
}
.g-lb-name { flex: 1; min-width: 0; font-size: 0.86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-lb-val {
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 0.82rem;
  color: var(--accent, #d67d63); white-space: nowrap;
}

/* Nhật ký trong modal: để modal cuộn, không cuộn lồng */
.g-modal-box .g-log-list { max-height: none; }

/* ── Mobile ── */
@media (max-width: 1000px) {
  .g-lb-grid { grid-template-columns: 1fr; }
  .g-control { justify-content: center; }
  .g-stats { justify-content: center; }
  .g-control-actions { width: 100%; }
  .g-control-actions .g-btn { flex: 1; }
}

/* ── Điện thoại: tận dụng tối đa bề ngang (giảm padding, lấp đầy, nhiều cột hơn) ── */
@media (max-width: 600px) {
  .gacha-wrap { padding: 14px 8px 48px; }
  .g-card { padding: 16px 12px; border-radius: 20px; }
  .g-hero { padding: 24px 14px 22px; }
  .g-hero-img { max-width: 220px; }

  /* Modal gần kín màn hình */
  .g-modal { padding: 10px; }
  .g-modal-box, .g-modal-box.lg { width: 100%; padding: 22px 16px; border-radius: 22px; }

  /* Thanh điều khiển: 3 chip + các nút lấp đầy bề ngang */
  .g-stats { width: 100%; gap: 8px; }
  .g-stat { flex: 1; min-width: 0; padding: 8px 8px; gap: 8px; justify-content: center; }
  .g-stat-ico { width: 38px; height: 38px; }
  .g-stat-num { font-size: 1.1rem; }
  .g-control-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .g-control-actions .g-btn { padding: 10px 6px; }
  .g-control-actions .g-btn:nth-child(5) { grid-column: 1 / -1; } /* nút thứ 5 full-width */

  /* Bộ sưu tập: 3 cột cho dày & dùng hết bề ngang */
  .g-showcase { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .g-show-item { padding: 16px 5px 12px; border-radius: 16px; }
  .g-show-badge { width: 52px; height: 52px; margin-top: 4px; }
  .g-show-img { width: 34px; height: 34px; }
  .g-show-name { font-size: 0.78rem; }
  .g-show-sell { font-size: 0.72rem; }
  .g-show-tier { font-size: 0.54rem; padding: 1px 7px; }

  /* Kho đồ: 2 cột (cần chỗ cho 3 nút) nhưng gọn hơn */
  .g-inv-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .g-inv-item { padding: 12px 10px; }

  /* Hộp chọn: rộng hơn chút để lướt */
  .g-box { flex-basis: 132px; min-width: 132px; }

  /* Đấu giá / chọn nhà / feed: dùng hết bề ngang */
  .g-raid-list { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .g-auc-card { padding: 10px; gap: 10px; }
  .g-lb-board { padding: 12px 10px 6px; }
}

/* ── Nút điểm danh: chấm báo khi có thể điểm danh ── */
.g-checkin { position: relative; }
.g-checkin.claimable::after {
  content: ''; position: absolute; top: -3px; right: -3px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #ff7fa5; border: 2px solid #fff;
  animation: g-ci-ping 1.2s ease-in-out infinite;
}
@keyframes g-ci-ping { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.3); } }

/* ── Viền sáng giật toàn màn hình (theo độ hiếm) ── */
.g-screen-fx {
  position: fixed; inset: 0; z-index: 10002; pointer-events: none;
  box-shadow: inset 0 0 0 5px var(--fx, #ffcf5c), inset 0 0 60px 14px var(--fx, #ffcf5c);
  opacity: 0;
}
.g-screen-fx[hidden] { display: none; }
.g-screen-fx.on { animation: fx-strobe .5s ease-in-out infinite; }
@keyframes fx-strobe { 0%, 100% { opacity: .12; } 50% { opacity: .72; } }
.g-screen-fx.r-epic.on {
  animation-duration: .3s;
  box-shadow: inset 0 0 0 7px var(--fx), inset 0 0 80px 18px var(--fx);
}
.g-screen-fx.r-legendary.on {
  animation: fx-strobe .2s steps(2, jump-none) infinite;
  box-shadow: inset 0 0 0 9px var(--fx), inset 0 0 100px 22px var(--fx);
}
.g-screen-fx.r-divine.on {
  animation: fx-strobe .13s steps(2, jump-none) infinite;
  box-shadow: inset 0 0 0 12px var(--fx), inset 0 0 140px 30px var(--fx);
}

/* ── Modal phần thưởng ── */
.g-reward .g-modal-box { width: min(100%, 360px); text-align: center; overflow: visible; }
.g-reward-box { padding-top: 30px; }
.g-reward.shake .g-reward-box { animation: g-shake .34s ease-in-out 0s 4; }
@keyframes g-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.g-reward-tier {
  position: relative; z-index: 2;
  display: inline-block; font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 0.72rem;
  background: var(--rc, #b8e0c8); color: #5c4b47;
  padding: 3px 14px; border-radius: 999px; margin-bottom: 8px;
}
.g-reward-badge {
  position: relative; z-index: 2;
  width: 132px; height: 132px; margin: 6px auto 14px;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 38%, #fff 0%, #fff6f2 100%);
  border: 3px solid var(--rc, #ffe6e0); border-radius: 50%;
  animation: g-reward-pop .5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.g-reward-badge img { position: relative; z-index: 1; width: 92px; height: 92px; object-fit: contain;
  filter: drop-shadow(0 3px 5px rgba(92, 75, 71, 0.18)); }
@keyframes g-reward-pop { 0% { transform: scale(0.4); opacity: 0; } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
.g-reward-name { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 1.3rem; color: var(--accent, #d67d63); margin: 0 0 6px; }
.g-reward-sub { color: var(--text-muted, #8a7772); margin: 0 0 18px; line-height: 1.5; }
.g-reward-sub strong { color: var(--accent, #d67d63); }
.g-reward-ok { width: 100%; }
/* Hào quang sau vật phẩm (epic+) — tái dùng halo-pulse / halo-spin */
/* hào quang căn giữa NGAY trên vật phẩm (đặt trong .g-reward-badge) */
.g-reward-halo {
  position: absolute; left: 50%; top: 50%; width: 0; height: 0;
  transform: translate(-50%, -50%); z-index: 0; pointer-events: none; display: none;
}
.g-reward-halo.r-epic, .g-reward-halo.r-legendary, .g-reward-halo.r-divine { display: block; }
.g-reward-halo::before {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 220px; height: 220px; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, transparent 0 48px, var(--halo, #ffe9b3) 68px, transparent 98px);
  opacity: .8; animation: halo-pulse 1.1s ease-in-out infinite;
}
.g-reward-halo .rays {
  display: none; position: absolute; left: 50%; top: 50%;
  width: 300px; height: 300px; transform: translate(-50%, -50%);
  background: repeating-conic-gradient(var(--halo, #ffe9b3) 0deg 6deg, transparent 6deg 20deg);
  -webkit-mask: radial-gradient(circle, transparent 52px, #000 58px, #000 130px, transparent 150px);
          mask: radial-gradient(circle, transparent 52px, #000 58px, #000 130px, transparent 150px);
  opacity: .5;
}
.g-reward-halo.r-epic .rays, .g-reward-halo.r-legendary .rays, .g-reward-halo.r-divine .rays {
  display: block; animation: halo-spin 7s linear infinite;
}
.g-reward-halo.r-legendary .rays { animation-duration: 5s; opacity: .7; }
.g-reward-halo.r-divine .rays { animation-duration: 3.5s; opacity: .85; }

/* ── Bảng điểm danh ── */
.g-ci-streak { text-align: center; margin: 0 0 14px; }
.g-ci-streak strong { color: var(--accent, #d67d63); font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 1.05rem; }
.g-ci-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 10px; margin-bottom: 14px; }
.g-ci-day {
  position: relative; text-align: center; padding: 12px 6px 10px;
  border-radius: 16px; background: var(--cream, #fffcfb);
  border: 1px solid var(--border-soft, #ffe6e0);
}
.g-ci-day .d { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 0.72rem; color: var(--text-muted, #8a7772); }
.g-ci-day .xu { display: flex; align-items: center; justify-content: center; gap: 3px;
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 0.95rem; color: var(--accent, #d67d63); margin-top: 4px; }
.g-ci-day.done { background: #e8f6ee; border-color: #bfe6cf; }
.g-ci-check {
  position: absolute; top: 5px; right: 5px;
  width: 16px; height: 16px; padding: 2px; box-sizing: border-box;
  background: #7fc8a0; color: #fff; border-radius: 50%;
}
.g-ci-day.today {
  border: 2px solid var(--accent-soft, #e59882);
  animation: g-ci-pulse 1.4s ease-in-out infinite;
}
.g-ci-day.locked { opacity: .65; }
@keyframes g-ci-pulse { 0%, 100% { box-shadow: 0 0 0 2px #ffe6e0; } 50% { box-shadow: 0 0 0 5px #ffd9c9; } }
.g-ci-note { text-align: center; font-size: 0.8rem; color: var(--text-muted, #8a7772); margin: 0 0 16px; line-height: 1.5; }
.g-ci-claim { width: 100%; }

/* ── Modal bán số lượng lớn ── */
.g-sell-total { text-align: center; font-size: 0.95rem; margin: 2px 0 16px; }
.g-sell-total strong { color: var(--accent, #d67d63); font-family: 'Nunito', sans-serif; font-weight: 800; }
.g-sell-actions { display: flex; gap: 10px; }
.g-sell-actions .g-btn { flex: 1; }

/* ── BXH: thanh mở rộng + hạng của tôi ── */
.g-lb-toolbar { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.g-lb-row.me { background: var(--peach-light, #fff5f2); box-shadow: 0 0 0 2px var(--border-peach, #fbc1b0); }
.g-lb-me {
  margin-top: 8px; padding: 8px 10px; border-radius: 12px;
  background: var(--peach-light, #fff5f2); border: 1px dashed var(--border-soft, #ffe6e0);
  font-size: 0.78rem; color: var(--text-muted, #8a7772); text-align: center; line-height: 1.45;
}
.g-lb-me strong { color: var(--accent, #d67d63); font-family: 'Nunito', sans-serif; font-weight: 800; }

/* ── Chọn nhà để cướp (5 nhà) ── */
.g-raid-note { text-align: center; color: var(--text-muted, #8a7772); font-size: 0.88rem; margin: 0 0 16px; line-height: 1.5; }
.g-raid-note strong { color: var(--accent, #d67d63); }
.g-raid-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.g-raid-house {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 16px 10px 12px; cursor: pointer;
  font-family: 'Comfortaa', sans-serif; color: var(--text-main, #5c4b47);
  background: var(--cream, #fffcfb);
  border: 1px solid var(--border-soft, #ffe6e0); border-radius: var(--radius-md, 18px);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.g-raid-house:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card, 0 8px 24px -10px rgba(250, 208, 196, 0.6));
  border-color: var(--border-peach, #fbc1b0);
}
.g-raid-house:disabled { opacity: .5; cursor: not-allowed; }
.g-raid-ava { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border-soft, #ffe6e0); }
.g-raid-name { font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 0.9rem; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-raid-xu { display: inline-flex; align-items: center; gap: 3px; font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 0.85rem; color: var(--accent, #d67d63); }
.g-raid-go { margin-top: 2px; font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 0.76rem; background: var(--pastel-pink, #ffd6e6); color: #b34a6b; padding: 4px 14px; border-radius: 999px; }

/* ── Nhà đấu giá ── */
.g-mini.auc { background: #e3d4f0; color: #6a4fa0; }
.g-btn-mini { padding: 8px 18px; font-size: 0.85rem; }
.g-auc-note { color: var(--text-muted, #8a7772); font-size: 0.85rem; margin: 0 0 16px; line-height: 1.5; }
.g-auc-note strong { color: var(--accent, #d67d63); }
.g-auc-list { display: flex; flex-direction: column; gap: 12px; }
.g-auc-card {
  display: flex; gap: 14px; align-items: center;
  padding: 12px 14px; background: var(--cream, #fffcfb);
  border: 1px solid var(--border-soft, #ffe6e0); border-left: 5px solid var(--r, #b8e0c8);
  border-radius: var(--radius-md, 18px);
}
.g-auc-badge {
  width: 64px; height: 64px; flex-shrink: 0;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 38%, #fff 0%, #fff6f2 100%);
  border: 2px solid var(--r, #ffe6e0); border-radius: 50%;
}
.g-auc-badge img { width: 44px; height: 44px; object-fit: contain; }
.g-auc-info { flex: 1; min-width: 0; }
.g-auc-name { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 0.95rem; }
.g-auc-price { font-size: 0.9rem; margin-top: 2px; }
.g-auc-price strong { color: var(--accent, #d67d63); font-family: 'Nunito', sans-serif; font-weight: 800; }
.g-auc-meta { font-size: 0.76rem; color: var(--text-muted, #8a7772); margin: 4px 0 8px; }
.g-auc-bid { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.g-auc-bid-input {
  width: 92px; padding: 8px 12px;
  border: 1px solid var(--border-soft, #ffe6e0); border-radius: 12px;
  background: var(--input-bg, #fffaf9); font-family: inherit; color: var(--text-main, #5c4b47);
}
.g-auc-high { width: 100%; font-size: 0.78rem; font-weight: 700; color: #1e6b42; }
.g-auc-mine { font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 0.82rem; color: var(--text-muted, #8a7772); }
.g-mini2 {
  border: none; border-radius: 999px; padding: 5px 14px; cursor: pointer;
  font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 0.78rem;
  background: #ffd6e6; color: #b34a6b;
}
.g-field select {
  display: block; width: 100%; box-sizing: border-box; margin-top: 6px;
  border: 1px solid var(--border-soft, #ffe6e0); border-radius: var(--radius-sm, 16px);
  background: var(--input-bg, #fffaf9); padding: 12px 16px;
  font-family: 'Comfortaa', sans-serif; color: var(--text-main, #5c4b47);
}

/* ── Cấp Tối Thượng (mythic) — hào quang + viền màn hình mạnh nhất ── */
.g-reel-halo.r-mythic, .g-reward-halo.r-mythic { display: block; }
.g-reel-halo.r-mythic .rays, .g-reward-halo.r-mythic .rays { display: block; animation: halo-spin 3s linear infinite; opacity: .9; }
.g-reel-halo.r-mythic .rays { width: 460px; height: 460px; }
.g-reel-halo.r-mythic::before {
  width: 320px; height: 320px;
  background: radial-gradient(circle, transparent 0 46px, var(--halo, #9b6bff) 70px, transparent 112px);
  animation-duration: .7s;
}
.g-reward-halo.r-mythic .rays { animation-duration: 3s; opacity: .9; }
.g-screen-fx.r-mythic.on {
  animation: fx-strobe .1s steps(2, jump-none) infinite;
  box-shadow: inset 0 0 0 14px var(--fx), inset 0 0 170px 38px var(--fx);
}
/* phần thưởng SECRET */
.g-reward.secret .g-reward-tier { box-shadow: 0 0 0 2px #fff, 0 0 14px var(--rc, #9b6bff); }
.g-reward.secret .g-reward-name { color: #8a5cff; }
/* chữ + nút luôn nổi trên tia hào quang */
.g-reward-tier, .g-reward-name, .g-reward-sub, .g-reward-ok { position: relative; z-index: 4; }

/* ── Showcase: ô "vật phẩm bí mật" ── */
.g-show-secret { border-top-color: #9b6bff; }
.g-show-secret .g-show-tier { background: #9b6bff; color: #fff; }
.g-show-secret .g-show-badge { border-color: #c3a8ff; background: radial-gradient(circle at 50% 38%, #f3eeff 0%, #e7dcff 100%); }
.g-secret-q { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 1.9rem; color: #9b6bff; }
.g-show-secret .g-show-sell { color: #8a5cff; }

/* ── Tin hiếm (kênh log toàn server) ── */
.g-feed-note { color: var(--text-muted, #8a7772); font-size: 0.85rem; margin: 0 0 16px; line-height: 1.5; }
.g-feed-note strong { color: var(--accent, #d67d63); }
.g-feed-list { display: flex; flex-direction: column; gap: 10px; }
.g-feed-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; background: var(--cream, #fffcfb);
  border: 1px solid var(--border-soft, #ffe6e0); border-left: 5px solid var(--r, #ffe9b3);
  border-radius: 14px;
}
.g-feed-row.secret { background: linear-gradient(135deg, #f3eeff, #fff); border-left-color: #9b6bff; box-shadow: 0 0 0 1px #e0d2f2; }
.g-feed-badge {
  width: 48px; height: 48px; flex-shrink: 0; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 38%, #fff 0%, #fff6f2 100%);
  border: 2px solid var(--r, #ffe6e0); border-radius: 50%;
}
.g-feed-badge img { width: 34px; height: 34px; object-fit: contain; }
.g-feed-text { flex: 1; min-width: 0; }
.g-feed-main { font-size: 0.9rem; line-height: 1.4; }
.g-feed-main strong { color: var(--text-main, #5c4b47); }
.g-feed-secret { color: #8a5cff; font-weight: 800; font-family: 'Nunito', sans-serif; }
.g-feed-meta { font-size: 0.74rem; color: var(--text-muted, #8a7772); margin-top: 3px; display: flex; align-items: center; gap: 6px; }
.g-feed-tier { color: #5c4b47; font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 0.66rem; padding: 1px 8px; border-radius: 999px; }
@media (max-width: 1000px) {
  .g-hero h1 {
    text-align: center;
  }
}