:root {
  --bg-primary: #090b12;
  --bg-secondary: #101422;
  --bg-card: rgba(19, 24, 39, 0.78);
  --bg-card-hover: rgba(26, 33, 54, 0.92);
  --border-subtle: rgba(148, 163, 184, 0.14);
  --border-glow: rgba(145, 70, 255, 0.45);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --purple: #9146ff;
  --purple-soft: rgba(145, 70, 255, 0.16);
  --cyan: #06b6d4;
  --cyan-soft: rgba(6, 182, 212, 0.16);
  --emerald: #10b981;
  --emerald-soft: rgba(16, 185, 129, 0.16);
  --red: #ef4444;
  --red-soft: rgba(239, 68, 68, 0.16);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-glow: 0 0 32px rgba(145, 70, 255, 0.18);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

[hidden] {
  display: none !important;
}

body {
  font-family: 'Noto Sans TC', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
  color: #e2e8f0;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* 背景光暈 */
.bg-glow {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.28;
}

.bg-glow-purple {
  top: -160px;
  left: -120px;
  background: var(--purple);
}

.bg-glow-cyan {
  bottom: -180px;
  right: -120px;
  background: var(--cyan);
}

/* 導覽列 */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 11, 18, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Orbitron', 'Noto Sans TC', sans-serif;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 1.15rem;
}

.brand-badge {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  color: #fff;
  font-size: 0.82rem;
  box-shadow: 0 0 18px rgba(145, 70, 255, 0.45);
}

.brand-text .accent {
  color: var(--cyan);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-tab {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 14px;
  color: var(--text-secondary);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}

.nav-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-tab.active {
  color: #fff;
  background: var(--purple-soft);
  border-color: rgba(145, 70, 255, 0.45);
  box-shadow: 0 0 16px rgba(145, 70, 255, 0.22);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  display: block;
}

/* 按鈕系統 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 15px;
  font-size: 0.85rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple), #6d28d9);
  color: #fff;
  box-shadow: 0 8px 24px rgba(145, 70, 255, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 10px 28px rgba(145, 70, 255, 0.52);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--cyan);
  background: rgba(6, 182, 212, 0.1);
}

.btn-twitch {
  background: var(--purple);
  color: #fff;
}

.btn-twitch:hover {
  background: #7c3aed;
  box-shadow: 0 0 20px rgba(145, 70, 255, 0.45);
}

.btn-youtube {
  background: #dc2626;
  color: #fff;
}

.btn-youtube:hover {
  background: #b91c1c;
}

.btn-emerald {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
}

.btn-emerald:hover {
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
}

.live-dot,
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  display: inline-block;
}

.pulse-dot {
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(1.3); }
}

/* Hero 區塊 */
.hero {
  padding: 72px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 44px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--purple-soft);
  border: 1px solid rgba(145, 70, 255, 0.35);
  color: #d8b4fe;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2.1rem, 4.2vw, 3.35rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 18px;
}

.gradient-text {
  background: linear-gradient(90deg, #c084fc, var(--cyan), var(--emerald));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 580px;
  margin-bottom: 28px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.stat-value {
  display: block;
  font-family: 'Orbitron', 'Noto Sans TC', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* 右側實況主名片 */
.streamer-card {
  background: linear-gradient(160deg, rgba(24, 30, 50, 0.92), rgba(12, 16, 28, 0.95));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow-glow);
  position: relative;
}

.streamer-card-header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 6px;
}

.badge-purple { background: var(--purple-soft); color: #d8b4fe; }
.badge-emerald { background: var(--emerald-soft); color: #6ee7b7; }
.badge-cyan { background: var(--cyan-soft); color: #67e8f9; }
.badge-red { background: var(--red-soft); color: #fca5a5; }

.streamer-avatar-wrap {
  position: relative;
  width: 108px;
  height: 108px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
}

.streamer-avatar {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  display: grid;
  place-items: center;
  font-size: 2.3rem;
  font-weight: 900;
  color: #fff;
  z-index: 1;
}

.streamer-avatar-img {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  object-fit: cover;
  background: rgba(16, 20, 34, 0.9);
  z-index: 1;
}

.avatar-ring {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  border: 2px dashed rgba(6, 182, 212, 0.55);
}

.streamer-name {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 4px;
}

.streamer-role {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.streamer-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 22px;
}

.streamer-tags span {
  font-size: 0.78rem;
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
}

.streamer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

/* 通用區塊 */
.section {
  padding: 76px 0;
}

.section-dark {
  background: linear-gradient(180deg, rgba(16, 20, 34, 0.7), rgba(9, 11, 18, 0.9));
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  margin-bottom: 36px;
}

.row-between {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.section-kicker {
  display: inline-block;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--cyan);
  margin-bottom: 6px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  margin-bottom: 6px;
}

.section-subtitle {
  color: var(--text-secondary);
}

.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  transition: border-color var(--transition), transform var(--transition), background var(--transition);
}

/* 關於哈記：麥塊資訊 ＋ 本人資訊雙欄 ＋ 觀眾截圖相簿 */
.profile-split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.profile-block {
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.profile-block-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 16px;
}

.profile-block-head h3 {
  font-size: 1.24rem;
  font-weight: 800;
  margin: 0;
}

.mc-profile-body {
  display: flex;
  gap: 20px;
  align-items: center;
  flex: 1;
}

.mc-skin-showcase {
  flex: 0 0 156px;
  background: radial-gradient(circle at 50% 45%, rgba(16, 185, 129, 0.18), rgba(10, 14, 24, 0.85));
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.mc-skin-gif {
  width: 130px;
  height: auto;
  display: block;
  border-radius: 8px;
}

.mc-id-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(9, 11, 18, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.78rem;
}

.mc-id-pill span {
  color: var(--text-muted);
}

.mc-id-pill strong {
  color: #34d399;
  font-family: 'JetBrains Mono', monospace;
}

.mc-profile-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mc-profile-summary {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.68;
  margin: 0;
}

.profile-tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-tag {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
}

.profile-tag.tag-emerald {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

.profile-tag.tag-cyan {
  background: rgba(6, 182, 212, 0.14);
  border-color: rgba(6, 182, 212, 0.35);
  color: #67e8f9;
}

.profile-tag.tag-purple {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.38);
  color: #d8b4fe;
}

.profile-tag.tag-red {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.38);
  color: #fca5a5;
}

.profile-tag.tag-amber {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.38);
  color: #fcd34d;
}

.personal-profile-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.personal-profile-top-left {
  flex: 1;
  min-width: 0;
}

.personal-top-photo-wrap {
  flex: 0 0 auto;
  width: 216px;
  height: 142px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(168, 85, 247, 0.45);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
  background: #070a12;
}

.personal-top-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.personal-info-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.personal-info-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: rgba(10, 14, 24, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 0.9rem;
}

.personal-info-list li span {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.personal-info-list li strong {
  color: #f8fafc;
}

.marathon-highlight {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.14), rgba(239, 68, 68, 0.12));
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 12px;
  padding: 12px 15px;
  margin-bottom: 14px;
}

.marathon-badge {
  font-size: 0.78rem;
  font-weight: 800;
  color: #fcd34d;
  margin-bottom: 4px;
}

.marathon-highlight p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #e2e8f0;
}

.personal-social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.viewer-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}

.viewer-photo-card {
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 16 / 10;
  cursor: pointer;
  background: #070a12;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.viewer-photo-card:hover {
  transform: translateY(-3px);
  border-color: rgba(168, 85, 247, 0.55);
}

.viewer-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lightbox-card {
  max-width: 960px;
  width: 94vw;
}

.lightbox-body {
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.lightbox-body img {
  max-width: calc(100% - 96px);
  max-height: 74vh;
  object-fit: contain;
  border-radius: 10px;
  display: block;
}

.lightbox-nav {
  font-size: 1.35rem;
  min-width: 38px;
  height: 44px;
  display: grid;
  place-items: center;
}

@media (max-width: 900px) {
  .profile-split-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .mc-profile-body {
    flex-direction: column;
    align-items: stretch;
  }
  .mc-skin-showcase {
    flex: none;
  }
}

/* 關於哈記 */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.about-card {
  padding: 28px;
}

.about-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.icon-purple { background: var(--purple-soft); }
.icon-emerald { background: var(--emerald-soft); }
.icon-cyan { background: var(--cyan-soft); }

.about-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.about-card p {
  color: var(--text-secondary);
  font-size: 0.94rem;
}

/* 社群與官方連結 */
.community-section {
  margin-top: 48px;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.community-card {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.community-card:hover {
  border-color: var(--cyan);
  transform: translateY(-3px);
  background: var(--bg-card-hover);
}

.community-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.community-card h4 {
  font-size: 0.98rem;
  font-weight: 800;
}

.community-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

@media (max-width: 1024px) {
  .community-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .community-grid {
    grid-template-columns: 1fr;
  }
}

/* 贊助 / Donate 下拉選單 */
.donate-dropdown {
  position: relative;
}

.btn-donate {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #fff;
  border: 1px solid rgba(251, 191, 36, 0.45);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25);
}

.btn-donate:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.donate-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 245px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 250;
  background: rgba(15, 19, 32, 0.98);
  border: 1px solid rgba(251, 191, 36, 0.35);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
}

.donate-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #f8fafc;
  transition: background 0.15s ease;
}

.donate-item:hover {
  background: rgba(245, 158, 11, 0.15);
}

.donate-item-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: #fde68a;
}

.donate-item-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* Twitch 專區（滿版實況畫面 ＋ 右側長條聊天室） */
.twitch-full-section {
  padding: 0 0 64px;
}

.twitch-theater-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px 20px;
  background: rgba(10, 13, 22, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.twitch-theater-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #e2e8f0;
}

.twitch-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.twitch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 0;
  width: 100%;
  height: calc(100vh - 114px);
  min-height: 540px;
  max-height: 920px;
  background: #000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  align-items: stretch;
}

.twitch-layout.chat-hidden {
  grid-template-columns: 1fr;
}

.twitch-layout.chat-hidden .twitch-chat-wrap {
  display: none;
}

.twitch-player-wrap {
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding: 0;
  background: #000;
}

.twitch-chat-wrap {
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  background: #0e0e10;
}

.twitch-below-stage {
  margin-top: 28px;
}

/* 當周實況日程表（唯讀內嵌、可展開縮小） */
.schedule-panel {
  margin-bottom: 22px;
  padding: 20px 24px;
}

.schedule-panel.collapsed .mining-header {
  margin-bottom: 0;
}

.schedule-panel-body {
  margin-top: 14px;
}

.schedule-frame-wrap {
  width: 100%;
  height: 460px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #ffffff;
}

.schedule-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 720px) {
  .schedule-panel {
    padding: 16px;
  }
  .schedule-frame-wrap {
    height: 360px;
  }
}

.twitch-player-wrap iframe,
.twitch-chat-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.twitch-notice {
  margin-top: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: rgba(145, 70, 255, 0.12);
  border: 1px solid rgba(145, 70, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.twitch-notice p {
  font-size: 0.9rem;
  color: #e9d5ff;
}

/* 實況互動挖礦面板 */
.mining-panel {
  margin-top: 22px;
  padding: 24px;
  border-color: rgba(16, 185, 129, 0.3);
}

.mining-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.mining-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 8px 0 4px;
}

.mining-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.mining-panel.collapsed .mining-header {
  margin-bottom: 0;
}

.mining-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.mining-stat-box {
  background: rgba(9, 11, 18, 0.72);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  text-align: center;
  min-width: 92px;
}

.mining-stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.mining-stat-box strong {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.15rem;
  color: var(--emerald);
}

.mining-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.mining-btn {
  min-width: 168px;
  padding: 13px 22px;
  font-size: 1rem;
}

.mining-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.pickaxe-icon {
  display: inline-block;
  transition: transform 0.2s ease;
}

.mining-btn.swinging .pickaxe-icon {
  animation: swingPickaxe 0.45s ease;
}

@keyframes swingPickaxe {
  0% { transform: rotate(0deg); }
  35% { transform: rotate(-45deg) scale(1.15); }
  70% { transform: rotate(25deg); }
  100% { transform: rotate(0deg); }
}

.mining-result-banner {
  flex: 1;
  min-width: 240px;
  min-height: 48px;
  background: rgba(9, 11, 18, 0.78);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.result-placeholder {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.inventory-section {
  border-top: 1px solid var(--border-subtle);
  padding-top: 18px;
}

.inventory-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  font-weight: 700;
  font-size: 0.95rem;
}

.inventory-hint {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
  gap: 12px;
}

.inv-slot {
  position: relative;
  background: rgba(9, 11, 18, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 14px 10px 12px;
  text-align: center;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.inv-slot.unlocked:hover {
  transform: translateY(-3px);
}

.inv-slot.locked {
  opacity: 0.42;
}

.inv-slot.rarity-common.unlocked { border-color: rgba(148, 163, 184, 0.4); }
.inv-slot.rarity-uncommon.unlocked { border-color: rgba(52, 211, 153, 0.45); }
.inv-slot.rarity-rare.unlocked { border-color: rgba(250, 204, 21, 0.55); box-shadow: 0 0 14px rgba(250, 204, 21, 0.12); }
.inv-slot.rarity-epic.unlocked { border-color: rgba(34, 211, 238, 0.65); box-shadow: 0 0 16px rgba(34, 211, 238, 0.18); }
.inv-slot.rarity-legendary.unlocked { border-color: rgba(192, 132, 252, 0.8); box-shadow: 0 0 20px rgba(192, 132, 252, 0.28); }

.inv-slot.just-dropped {
  animation: dropFlash 0.6s ease;
}

@keyframes dropFlash {
  0% { transform: scale(1); }
  45% { transform: scale(1.08); box-shadow: 0 0 24px rgba(16, 185, 129, 0.55); }
  100% { transform: scale(1); }
}

.inv-count {
  position: absolute;
  top: 7px;
  right: 8px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 7px;
  border-radius: 999px;
}

.inv-icon {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 6px;
}

.inv-img-wrap {
  width: 48px;
  height: 48px;
  margin: 0 auto 8px;
  display: grid;
  place-items: center;
  position: relative;
}

.inv-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.inv-slot.enchanted .inv-img {
  filter: drop-shadow(0 0 8px rgba(192, 132, 252, 0.85));
}

.result-item-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  image-rendering: pixelated;
}

.inv-name {
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.inv-rarity {
  font-size: 0.72rem;
  font-weight: 700;
}

/* Mix It Up 玩家查詢與 RPG 狀態列 */
.player-lookup-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 14px;
  margin-bottom: 18px;
  background: rgba(9, 11, 18, 0.75);
  border: 1px solid rgba(145, 70, 255, 0.3);
  border-radius: var(--radius-sm);
}

.lookup-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #e9d5ff;
}

.lookup-input {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: rgba(16, 20, 34, 0.95);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
}

.lookup-input:focus {
  outline: none;
  border-color: var(--purple);
}

.lookup-status {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.lookup-status.error {
  color: #fca5a5;
}

.lookup-status.success {
  color: #6ee7b7;
}

.auth-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}

.auth-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--purple);
  object-fit: cover;
}

.player-rpg-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.rpg-box {
  background: rgba(9, 11, 18, 0.72);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.rpg-box-title {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 8px;
}

.rpg-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rpg-pill {
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

/* 圖形化 RPG 狀態 HUD（等級、血量條、經驗條、裝備格） */
.rpg-hud {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rpg-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.rpg-level-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.5);
  color: #6ee7b7;
  font-family: 'Orbitron', 'Noto Sans TC', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}

.rpg-badge-count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.14);
  border: 1px solid rgba(250, 204, 21, 0.4);
  color: #fde047;
  font-size: 0.82rem;
  font-weight: 700;
}

.rpg-bar-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rpg-bar-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.rpg-bar-track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.rpg-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

.rpg-bar-hp {
  background: linear-gradient(90deg, #dc2626, #f87171);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.5);
}

.rpg-bar-xp {
  background: linear-gradient(90deg, #16a34a, #4ade80);
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.5);
}

.rpg-bar-xp-ticks {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    transparent,
    transparent calc(10% - 1px),
    rgba(9, 11, 18, 0.45) calc(10% - 1px),
    rgba(9, 11, 18, 0.45) 10%
  );
  pointer-events: none;
}

.equip-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(6, 182, 212, 0.35);
  font-size: 0.82rem;
  font-weight: 700;
}

.equip-pill-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  image-rendering: pixelated;
}

/* 遊戲互動指令按鈕列 */
.rpg-actions-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  padding: 12px 14px;
  background: rgba(9, 11, 18, 0.72);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.rpg-actions-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cyan);
  margin-right: 4px;
}

.rpg-action-btn:disabled,
.rpg-modal-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.equip-pill.clickable {
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition);
}

.equip-pill.clickable:hover {
  border-color: #f87171;
  transform: translateY(-2px);
}

.inv-equip-btn {
  margin-top: 6px;
  width: 100%;
  padding: 3px 6px;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 6px;
  border: 1px solid rgba(6, 182, 212, 0.45);
  background: rgba(6, 182, 212, 0.14);
  color: #67e8f9;
  cursor: pointer;
  font-family: inherit;
}

.inv-equip-btn:hover {
  background: rgba(6, 182, 212, 0.3);
}

.modal-wide {
  width: min(860px, 100%);
  max-height: 84vh;
  display: flex;
  flex-direction: column;
}

.modal-wide .modal-body {
  overflow-y: auto;
  padding-right: 4px;
}

.modal-status-msg {
  font-size: 0.88rem;
  margin-bottom: 12px;
  min-height: 20px;
  color: #6ee7b7;
}

.rpg-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 12px;
}

.rpg-modal-item {
  background: rgba(9, 11, 18, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rpg-modal-item-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rpg-modal-item-head img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  image-rendering: pixelated;
}

.rpg-modal-item-req {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.45;
  flex: 1;
}

.rpg-modal-item-actions {
  display: flex;
  gap: 8px;
}

.rpg-modal-item-actions .btn {
  flex: 1;
}

.inventory-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 0.78rem;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-chip:hover,
.filter-chip.active {
  background: var(--emerald-soft);
  border-color: var(--emerald);
  color: #6ee7b7;
}

@media (max-width: 720px) {
  .player-rpg-bar {
    grid-template-columns: 1fr;
  }
}

/* YouTube 專區 */
.yt-channel-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.yt-showcase {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 22px;
  align-items: start;
}

.yt-main-player {
  overflow: hidden;
}

.video-aspect {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-aspect iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.yt-now-playing {
  padding: 18px 22px;
}

.yt-now-playing h3 {
  margin: 8px 0 4px;
  font-size: 1.1rem;
}

.yt-now-playing p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.yt-playlist {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.yt-item {
  display: flex;
  gap: 14px;
  padding: 12px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  color: inherit;
  font-family: inherit;
}

.yt-item:hover,
.yt-item.active {
  border-color: var(--cyan);
  background: var(--bg-card-hover);
}

.yt-thumb {
  width: 120px;
  height: 68px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #1e293b;
}

.yt-item-info h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
  line-height: 1.35;
}

.yt-item-info span {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* 麥塊地圖下載 */
.maps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.map-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.map-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.5);
  background: var(--bg-card-hover);
}

.map-card.active {
  border-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.28), 0 12px 30px rgba(0, 0, 0, 0.35);
  background: rgba(16, 185, 129, 0.08);
}

.map-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.map-tag-chip {
  font-size: 0.74rem;
  font-weight: 700;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px 8px;
  border-radius: 6px;
}

.map-tag-chip.map-tag-players {
  color: #67e8f9;
  background: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.28);
}

.map-tag-chip.map-tag-version {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.28);
}

.map-card-updated {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.map-card-footer {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.map-select-hint {
  font-size: 0.82rem;
  font-weight: 700;
  color: #34d399;
}

/* 站內地圖詳情展示區 */
.map-detail-panel {
  margin-top: 26px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.map-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.map-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.map-detail-title {
  font-size: 1.65rem;
  font-weight: 900;
  margin-bottom: 4px;
}

.map-detail-subtitle {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.map-detail-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.map-spec-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.map-spec-item {
  background: rgba(10, 14, 24, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.map-spec-item span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.map-spec-item strong {
  font-size: 0.98rem;
  color: #f8fafc;
}

.map-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.map-gallery-main {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #070a12;
  aspect-ratio: 16 / 9;
  max-height: 480px;
  width: 100%;
}

.map-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.map-gallery-counter {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(9, 11, 18, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.map-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}

.map-thumb-btn {
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: #070a12;
  cursor: pointer;
  aspect-ratio: 16 / 9;
  opacity: 0.65;
  transition: opacity 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.map-thumb-btn:hover {
  opacity: 0.95;
  transform: translateY(-2px);
}

.map-thumb-btn.active {
  opacity: 1;
  border-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.28);
}

.map-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.map-detail-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.map-detail-heading {
  font-size: 1.08rem;
  font-weight: 800;
  color: #f8fafc;
}

.map-mode-group {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px;
  border-radius: 16px;
  background: rgba(15, 20, 34, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-mode-group-title {
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1.24rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.02em;
}

.map-detail-subheading {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: #cbd5e1;
}

.map-intro-text {
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: 0.96rem;
}

.map-subcards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.map-subcard,
.map-feature-card {
  background: rgba(15, 20, 34, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
}

.map-subcard strong,
.map-feature-card strong {
  display: block;
  margin-bottom: 6px;
  color: #34d399;
  font-size: 0.95rem;
}

.map-subcard p,
.map-feature-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0;
}

.map-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.map-notice-box {
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 12px;
  padding: 16px 18px;
}

.map-notice-list {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #e2e8f0;
  font-size: 0.9rem;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .map-detail-panel {
    padding: 18px 16px;
  }
  .map-spec-strip {
    grid-template-columns: 1fr;
  }
}

.map-banner {
  height: 120px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.map-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(9, 11, 18, 0.85) 100%);
}

.map-banner > * {
  position: relative;
  z-index: 1;
}

.map-banner-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.map-version {
  background: rgba(9, 11, 18, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
}

.map-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.map-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.map-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 16px;
  flex: 1;
}

.map-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.map-meta span {
  font-size: 0.78rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: 6px;
}

.map-actions {
  display: flex;
  gap: 10px;
}

.map-actions .btn {
  flex: 1;
}

/* 頁尾 */
.footer {
  padding: 34px 0;
  border-top: 1px solid var(--border-subtle);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-visits-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 10px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #a7f3d0;
  font-size: 0.8rem;
}

.footer-visits-badge strong {
  color: #34d399;
}

.footer-note {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 6px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--cyan);
}

/* Modal 彈窗 */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 12, 0.8);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 100;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-card {
  width: min(560px, 100%);
  padding: 26px;
  border-color: var(--border-glow);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.modal-close {
  background: transparent;
  border: 0;
  color: var(--text-secondary);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

.guide-steps {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.guide-steps strong {
  color: var(--text-primary);
}

/* 最新動態：YT RSS + FB 粉專動態牆 + IG / Threads */
.social-feeds-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 20px;
  align-items: start;
}

.social-feeds-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.social-block {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.social-block-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.social-block-head h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
}

.yt-feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}

.yt-feed-card {
  display: flex;
  flex-direction: column;
  background: rgba(10, 14, 24, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.yt-feed-card:hover {
  transform: translateY(-3px);
  border-color: rgba(239, 68, 68, 0.5);
}

.yt-feed-thumb {
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.yt-feed-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.yt-feed-info {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.yt-feed-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.yt-feed-info h4 {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #f8fafc;
}

.social-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.social-meta-summary {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: #f8fafc;
}

.social-meta-note {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-muted);
  flex: 1;
}

.fb-plugin-wrap {
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  background: #ffffff;
}

.fb-plugin-wrap iframe {
  width: 100%;
  height: 620px;
  border: 0;
  display: block;
}

@media (max-width: 960px) {
  .social-feeds-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .social-meta-grid {
    grid-template-columns: 1fr;
  }
}

/* 最新動態：依日期排序的橫條清單（左側內容＋標籤，有圖片才顯示在右側） */
.feed-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.unified-feed-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feed-row-card {
  padding: 20px 22px;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 20px;
}

.feed-row-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feed-row-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.feed-row-date {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.feed-row-title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.45;
}

.feed-row-content {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
}

.feed-row-actions {
  margin-top: auto;
  padding-top: 6px;
}

.feed-row-media {
  flex: 0 0 240px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #000;
  align-self: center;
  display: block;
}

.feed-row-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 720px) {
  .feed-row-card {
    flex-direction: column;
    padding: 16px;
  }
  .feed-row-media {
    flex: none;
    width: 100%;
  }
}

/* 最新動態分頁 */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-card {
  padding: 24px 26px;
}

.news-card:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.news-date {
  font-family: 'Orbitron', 'Noto Sans TC', sans-serif;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.news-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.news-desc {
  color: var(--text-secondary);
  font-size: 0.94rem;
}

/* 依草圖設計的挖礦遊戲新版介面 */
.auth-inline .auth-user-info {
  width: auto;
  gap: 8px;
}

.mc-feedback-bar {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 12px;
}

.mc-feedback-bar .mc-feedback-line {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}

.mc-history-toggle {
  flex: 0 0 auto;
  white-space: nowrap;
}

.mc-history-drawer {
  background: rgba(10, 14, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.mc-history-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #cbd5e1;
}

.mc-history-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 195px;
  overflow-y: auto;
}

.mc-history-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid #10b981;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #e2e8f0;
}

.mc-history-item.error {
  border-left-color: #f87171;
  color: #fecaca;
}

.mc-history-time {
  flex: 0 0 auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  color: var(--text-muted);
  padding-top: 2px;
}

@media (max-width: 640px) {
  .mc-feedback-bar {
    flex-direction: column;
  }
}

.mc-feedback-line {
  background: rgba(9, 11, 18, 0.88);
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: 10px;
  padding: 10px 16px;
  margin-bottom: 14px;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.94rem;
  color: var(--text-primary);
}

.mc-six-buttons.mc-three-buttons {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mc-three-buttons .mc-action-tile {
  aspect-ratio: auto;
  min-height: 112px;
  padding: 16px 12px;
}

.mc-tile-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-align: center;
}

.mc-branch-btn.cooling-down {
  opacity: 0.45;
  filter: grayscale(0.45);
  cursor: not-allowed;
}

.mc-branch-btn.active {
  border-color: #34d399;
  background: rgba(16, 185, 129, 0.16);
}

.mc-subbranch-box {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

@media (max-width: 640px) {
  .mc-six-buttons.mc-three-buttons {
    grid-template-columns: 1fr;
  }
}

.mc-six-buttons {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.mc-action-tile {
  position: relative;
  aspect-ratio: 1 / 0.92;
  min-height: 92px;
  background: linear-gradient(160deg, rgba(26, 33, 54, 0.92), rgba(14, 18, 32, 0.96));
  border: 2px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text-primary);
  font-family: inherit;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition), opacity var(--transition);
}

.mc-action-tile:hover:not(:disabled):not(.cooling-down) {
  transform: translateY(-3px);
  border-color: var(--cyan);
  box-shadow: 0 8px 22px rgba(6, 182, 212, 0.24);
}

.mc-action-tile.branch-open {
  border-color: var(--emerald);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.32);
  background: linear-gradient(160deg, rgba(16, 48, 44, 0.92), rgba(14, 18, 32, 0.96));
}

/* 冷卻中暗色狀態 */
.mc-action-tile.cooling-down,
.mc-action-tile:disabled {
  background: rgba(8, 10, 16, 0.92);
  border-color: rgba(71, 85, 105, 0.32);
  color: #64748b;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.mc-action-tile.cooling-down .mc-tile-icon,
.mc-action-tile:disabled .mc-tile-icon {
  opacity: 0.32;
  filter: grayscale(0.85);
}

.mc-tile-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  image-rendering: pixelated;
}

.mc-tile-label {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.mc-tile-cd {
  font-family: 'Orbitron', monospace;
  font-size: 0.74rem;
  font-weight: 700;
  color: #94a3b8;
  min-height: 1em;
}

/* 分支選擇區 */
.mc-branch-drawer {
  background: rgba(9, 11, 18, 0.92);
  border: 1px solid rgba(16, 185, 129, 0.45);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.mc-branch-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.9rem;
  font-weight: 800;
  color: #6ee7b7;
}

.mc-branch-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.mc-branch-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(24, 31, 51, 0.9);
  color: var(--text-primary);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.mc-branch-btn:hover:not(:disabled) {
  border-color: var(--emerald);
  background: rgba(16, 185, 129, 0.16);
}

.mc-branch-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.mc-branch-btn img {
  width: 24px;
  height: 24px;
  image-rendering: pixelated;
}

.mc-stage-select {
  background: rgba(16, 20, 34, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 8px;
  color: var(--text-primary);
  padding: 8px 12px;
  font-family: inherit;
  font-size: 0.9rem;
}

/* 下方角色＋裝備＋方格背包大框 */
.mc-main-frame {
  background: rgba(11, 14, 24, 0.92);
  border: 2px solid rgba(148, 163, 184, 0.26);
  border-radius: 16px;
  padding: 20px;
}

.mc-top-status-area {
  display: grid;
  grid-template-columns: 1.35fr auto;
  gap: 24px;
  align-items: center;
  margin-bottom: 20px;
}

.mc-status-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mc-lv-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.mc-lv-text {
  font-family: 'Orbitron', 'Noto Sans TC', sans-serif;
  font-size: 1.7rem;
  font-weight: 900;
  color: #4ade80;
  text-shadow: 0 0 14px rgba(74, 222, 128, 0.35);
}

.mc-badge-tag {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.14);
  border: 1px solid rgba(250, 204, 21, 0.4);
  color: #fde047;
}

.mc-hearts-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
  font-size: 1.3rem;
  line-height: 1.2;
}

.mc-heart {
  display: inline-block;
  user-select: none;
}

.mc-heart.empty {
  opacity: 0.25;
  filter: grayscale(1);
}

.mc-extra-hp {
  margin-left: 8px;
  font-family: 'Orbitron', 'Noto Sans TC', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fde047;
}

.mc-exp-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mc-exp-label {
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: #86efac;
  min-width: 48px;
}

.mc-exp-track {
  position: relative;
  flex: 1;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.mc-exp-fill {
  height: 100%;
  background: linear-gradient(90deg, #16a34a, #4ade80);
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.5);
  transition: width 0.35s ease;
}

.mc-exp-num {
  font-family: 'Orbitron', monospace;
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* 右上角 3x2 固定裝備格（武器、頭、褲 ／ 工具、衣、腳） */
.mc-equip-right {
  display: grid;
  grid-template-columns: repeat(3, 64px);
  gap: 8px;
  justify-content: end;
}

.mc-equip-slot {
  width: 64px;
  height: 64px;
  background: rgba(18, 23, 38, 0.95);
  border: 2px solid rgba(148, 163, 184, 0.28);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 800;
  font-family: inherit;
  padding: 4px;
}

.mc-equip-slot.filled {
  border-color: rgba(6, 182, 212, 0.6);
  background: rgba(14, 28, 44, 0.95);
  cursor: pointer;
  color: var(--text-primary);
}

.mc-equip-slot.filled:hover {
  border-color: #f87171;
}

.mc-equip-slot img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  image-rendering: pixelated;
}

.mc-equip-slot-tag {
  position: absolute;
  bottom: 2px;
  right: 4px;
  font-size: 0.62rem;
  color: #94a3b8;
}

/* 下半部方格道具欄矩陣 */
.mc-bag-wrapper {
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}

.mc-bag-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.mc-bag-hint {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.mc-bag-grid {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 6px;
  background: rgba(6, 8, 14, 0.9);
  border: 2px solid rgba(100, 116, 139, 0.32);
  border-radius: 10px;
  padding: 8px;
}

.mc-cell {
  aspect-ratio: 1 / 1;
  background: rgba(20, 26, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 6px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.mc-cell.empty-qty {
  opacity: 0.28;
}

.mc-cell.has-qty:hover {
  border-color: var(--cyan);
  background: rgba(30, 41, 68, 0.96);
  z-index: 2;
}

.mc-cell.interactive {
  cursor: pointer;
}

.mc-cell.just-dropped {
  animation: dropFlash 0.6s ease;
}

.mc-cell img {
  width: 72%;
  height: 72%;
  max-width: 42px;
  max-height: 42px;
  object-fit: contain;
  image-rendering: pixelated;
}

.mc-cell.enchanted img {
  filter: drop-shadow(0 0 6px rgba(192, 132, 252, 0.9));
}

.mc-cell-count {
  position: absolute;
  right: 4px;
  bottom: 2px;
  font-family: 'Orbitron', monospace;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 1px 1px 2px #000;
}

.mc-cell-name {
  position: absolute;
  left: 4px;
  top: 2px;
  font-size: 0.62rem;
  color: #94a3b8;
  max-width: calc(100% - 8px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 960px) {
  .mc-six-buttons.mc-three-buttons {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mc-three-buttons .mc-action-tile {
  aspect-ratio: auto;
  min-height: 112px;
  padding: 16px 12px;
}

.mc-tile-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-align: center;
}

.mc-branch-btn.cooling-down {
  opacity: 0.45;
  filter: grayscale(0.45);
  cursor: not-allowed;
}

.mc-branch-btn.active {
  border-color: #34d399;
  background: rgba(16, 185, 129, 0.16);
}

.mc-subbranch-box {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

@media (max-width: 640px) {
  .mc-six-buttons.mc-three-buttons {
    grid-template-columns: 1fr;
  }
}

.mc-six-buttons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mc-top-status-area {
    grid-template-columns: 1fr;
  }

  .mc-equip-right {
    justify-content: start;
  }

  .mc-bag-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .mc-six-buttons.mc-three-buttons {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mc-three-buttons .mc-action-tile {
  aspect-ratio: auto;
  min-height: 112px;
  padding: 16px 12px;
}

.mc-tile-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-align: center;
}

.mc-branch-btn.cooling-down {
  opacity: 0.45;
  filter: grayscale(0.45);
  cursor: not-allowed;
}

.mc-branch-btn.active {
  border-color: #34d399;
  background: rgba(16, 185, 129, 0.16);
}

.mc-subbranch-box {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

@media (max-width: 640px) {
  .mc-six-buttons.mc-three-buttons {
    grid-template-columns: 1fr;
  }
}

.mc-six-buttons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .mc-action-tile {
    min-height: 78px;
  }

  .mc-bag-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* RWD 響應式 */
@media (max-width: 1024px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(9, 11, 18, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 14px 16px 20px;
    gap: 8px;
    display: none;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-tab {
    width: 100%;
    text-align: center;
    padding: 12px 16px;
    font-size: 1rem;
  }

  .hero-grid,
  .twitch-layout,
  .yt-showcase {
    grid-template-columns: 1fr;
  }

  .twitch-layout {
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .twitch-player-wrap {
    aspect-ratio: 16 / 9;
    height: auto;
  }

  .twitch-chat-wrap {
    height: 440px;
    min-height: 380px;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .about-grid,
  .maps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .hero {
    padding: 40px 0 36px;
  }

  .section {
    padding: 42px 0;
  }

  .hero-cta .btn {
    flex: 1 1 100%;
  }

  .about-grid,
  .maps-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .streamer-card {
    padding: 22px 18px;
  }

  .streamer-links {
    grid-template-columns: 1fr;
  }

  .mining-panel {
    padding: 18px 14px;
  }

  .mining-stats {
    width: 100%;
  }

  .mining-stat-box {
    flex: 1;
  }

  .mining-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .mining-btn,
  .mining-result-banner,
  #refreshPlayerBtn {
    width: 100%;
    min-width: 0;
  }

  .auth-user-info {
    flex-direction: column;
    align-items: flex-start;
  }

  .auth-user-info .btn {
    width: 100%;
  }

  .inventory-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .inv-slot {
    padding: 12px 6px 10px;
  }

  .inv-img-wrap {
    width: 40px;
    height: 40px;
  }

  .inv-img {
    width: 36px;
    height: 36px;
  }

  .inv-name {
    font-size: 0.78rem;
  }

  .yt-thumb {
    width: 100px;
    height: 58px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 440px) {
  .brand-text .accent {
    display: none;
  }

  .nav-actions .btn-twitch {
    padding: 7px 10px;
    font-size: 0.78rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .inventory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
