/* RISEx テーマ（黒 × ブランドグリーン #03de82、rise.trade 本番CSSから抽出） */
:root {
  --bg-color: #0c0e12;
  --card-bg: rgba(18, 22, 28, 0.72);
  --accent-color: #03de82;
  --accent-dim: #03ca76;
  --accent-soft: #8bf0c6;
  --text-primary: #ececed;
  --text-secondary: #9aa1ab;
  --success: #35e59b;
  --danger: #ff6467;
  --warning: #fac515;
  --border-color: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(3, 222, 130, 0.16);
  --accent-glow: rgba(3, 222, 130, 0.35);
  --font-mono: "SFMono-Regular", ui-monospace, "Roboto Mono", Menlo, Consolas, monospace;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ヒーローセクション（TxFlowキャンペーンページ風） */
.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 48px 40px;
  margin-bottom: 30px;
  background:
    radial-gradient(ellipse 60% 80% at 85% 20%, rgba(3, 222, 130, 0.08), transparent 70%),
    linear-gradient(135deg, rgba(18, 22, 28, 0.9), rgba(12, 14, 18, 0.95));
}

/* ヒーロー右側のロゴアート */
.hero-art {
  position: absolute;
  top: 50%;
  right: -6%;
  width: 60%;
  transform: translateY(-50%) rotate(-6deg);
  opacity: 0.06;
  pointer-events: none;
  user-select: none;
}

.hero-logo {
  height: 30px;
  display: block;
  margin-bottom: 24px;
}

.hero-badge {
  display: inline-block;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: rgba(3, 222, 130, 0.08);
  color: var(--accent-soft);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  padding: 6px 16px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 14px;
}

.hero h1 .hero-accent {
  color: var(--accent-color);
  text-shadow: 0 0 28px var(--accent-glow);
}

.hero .subtitle {
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 28px;
}

/* カード群とCTAを同じ幅に揃えるためのラッパー（幅はカード群にフィット） */
.hero-entry {
  display: inline-flex;
  flex-direction: column;
  max-width: 100%;
}

.hero-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.stat-card {
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: rgba(12, 14, 18, 0.65);
  padding: 14px 20px;
  min-width: 180px;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.stat-value {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
}

.stat-value .stat-unit {
  color: var(--accent-color);
  font-size: 0.85rem;
  font-weight: 700;
  margin-left: 4px;
}

.stat-note {
  color: var(--text-secondary);
  font-size: 0.7rem;
  margin-top: 2px;
}

.hero-cta {
  position: relative;
  display: block;
  background: linear-gradient(135deg, #2af59d, var(--accent-color) 55%, var(--accent-dim));
  color: #0c0e12;
  border-radius: 14px;
  padding: 20px 56px;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
  transition: box-shadow 0.2s, transform 0.15s;
  box-shadow: 0 0 32px rgba(3, 222, 130, 0.45), 0 8px 24px rgba(0, 0, 0, 0.35);
  animation: cta-pulse 2.4s ease-in-out infinite;
}

@keyframes cta-pulse {
  0%, 100% {
    box-shadow: 0 0 24px rgba(3, 222, 130, 0.35), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
  50% {
    box-shadow: 0 0 48px rgba(3, 222, 130, 0.6), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

.hero-cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 56px rgba(3, 222, 130, 0.7), 0 10px 28px rgba(0, 0, 0, 0.4);
  animation: none;
}

.hero-cta:active {
  transform: scale(0.98);
}

/* セクション間に置くCTA（大会規約の上など） */
.section-cta {
  margin-bottom: 30px;
}

.hero-cta .cta-main {
  display: block;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.hero-cta .cta-note {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  opacity: 0.8;
  margin-top: 2px;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
  position: relative;
}

/* 言語切り替えボタン（フローティング） */
.lang-toggle {
  position: fixed;
  top: 16px;
  right: 20px;
  background: rgba(18, 22, 28, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 0.2s;
  z-index: 100;
}

.lang-toggle:hover {
  background: rgba(3, 222, 130, 0.1);
  color: var(--text-primary);
}

/* バナープレースホルダ（画像が用意でき次第 .banner-thumb に差し替え） */
.banner-placeholder {
  width: 100%;
  max-width: 450px;
  height: 150px;
  margin: 16px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--glass-border);
  border-radius: 8px;
  background: rgba(3, 222, 130, 0.03);
  color: var(--text-secondary);
  font-size: 0.85rem;
}


.dashboard-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  margin-bottom: 30px;
}

.controls {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
}

input[type="text"] {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 16px;
  color: #fff;
  font-size: 1rem;
  transition: border-color 0.2s;
}

input[type="text"]:focus {
  border-color: var(--accent-color);
  outline: none;
}

button {
  background: var(--accent-color);
  color: #0c0e12;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s, box-shadow 0.2s;
}

button:hover {
  opacity: 0.9;
  box-shadow: 0 0 16px var(--accent-glow);
}

button:active {
  transform: scale(0.98);
}

.leaderboard-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.leaderboard-table th {
  text-align: left;
  padding: 12px 16px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.leaderboard-table tr {
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.2s, background 0.2s;
}

.leaderboard-table tr:hover {
  background: rgba(3, 222, 130, 0.05);
  transform: translateX(4px);
}

.leaderboard-table td {
  padding: 16px;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.leaderboard-table td:first-child {
  border-left: 1px solid var(--border-color);
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  font-weight: bold;
  color: var(--accent-color);
}

.leaderboard-table td:last-child {
  border-right: 1px solid var(--border-color);
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

.roi-positive { color: var(--success); }
.roi-negative { color: var(--danger); }
/* 最低入金額（200 USDC）未達のTrader/Capitalセル。ROI/PnLの赤字と混同しないようグレーにする */
.baseline-warn { color: var(--text-secondary); }

/* 最低入金額（200 USDC）未達の行。背景と枠色（黄色）でも表現する */
.leaderboard-table tr.deposit-warn {
  background: rgba(250, 197, 21, 0.05);
}

.leaderboard-table tr.deposit-warn:hover {
  background: rgba(250, 197, 21, 0.1);
}

.leaderboard-table tr.deposit-warn td {
  border-color: rgba(250, 197, 21, 0.4);
}

.blind-message {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.9;
  white-space: pre-line;
}

/* 入賞圏ハイライト */
.leaderboard-table tr.rank-prize {
  background: rgba(3, 222, 130, 0.07);
}

.leaderboard-table tr.rank-prize:hover {
  background: rgba(3, 222, 130, 0.12);
}

.leaderboard-table tr.rank-prize td:first-child {
  border-left: 2px solid var(--accent-color);
}

/* ページネーションタブ */
.page-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.page-tab {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 0.2s;
}

.page-tab:hover {
  background: rgba(3, 222, 130, 0.08);
}

.page-tab--active {
  border-color: var(--accent-color);
  color: var(--accent-color);
  background: rgba(3, 222, 130, 0.12);
}

/* ランキングソート切替タブ（ROI / Volume） */
.sort-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.sort-tabs-label {
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin-right: 4px;
}

.sort-tab {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  border-radius: 6px;
  padding: 5px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 0.2s;
}

.sort-tab:hover {
  background: rgba(3, 222, 130, 0.08);
}

.sort-tab--active {
  border-color: var(--accent-color);
  color: var(--accent-color);
  background: rgba(3, 222, 130, 0.12);
}

/* 入賞圏のリワード額表示（Rank列内） */
.prize-amount {
  margin-top: 2px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--accent-color);
  white-space: nowrap;
}

.wagyu-mark {
  font-size: 0.9em;
  cursor: help;
}

/* ソート対象列のヘッダ強調 */
.leaderboard-table th.th-sorted {
  color: var(--accent-color);
}

/* ボリューム条件達成バッジ */
.qualify-badge {
  font-size: 0.8em;
  vertical-align: middle;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 16px;
}

.status-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.status {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.refresh-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.refresh-btn:hover {
  background: rgba(3, 222, 130, 0.1);
  color: var(--text-primary);
  box-shadow: none;
}

/* Info / Rules */
.info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 8px 0;
}

.info-list li {
  padding: 4px 0;
  color: var(--text-primary);
}

.info-list li::before {
  content: "・";
  color: var(--accent-color);
}

.info-list a {
  color: var(--accent-color);
  text-decoration: none;
}

.info-list a:hover {
  text-decoration: underline;
}

.info-note {
  color: var(--warning);
  font-size: 0.85rem;
  margin-top: 4px;
}

.rules-section {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.rules-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rules-list li {
  padding: 3px 0;
  line-height: 1.5;
}

.rules-list li::before {
  content: "・";
  color: var(--text-secondary);
}

.rules-list a {
  color: var(--accent-color);
  text-decoration: underline;
}

.rules-list a:hover {
  color: var(--accent-soft);
}

/* Reward Table */
.tier-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.tier-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 0.2s;
}

/* タブ内のリワードプール総額（補助表示） */
.tier-tab-pool {
  font-size: 0.7rem;
  font-weight: 600;
  opacity: 0.8;
}

.tier-tab:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ティア色（RISExパレット）: 75M以上=グリーン, 50M以上=ティール, 25M以上=イエロー, 25M未満=パープル */
.tier-tab--green  { border-color: #03de82; color: #03de82; }
.tier-tab--teal   { border-color: #2ed3b7; color: #2ed3b7; }
.tier-tab--yellow { border-color: #fac515; color: #fac515; }
.tier-tab--purple { border-color: #7a5af8; color: #a08dfa; }

.tier-tab--green:hover  { background: rgba(3, 222, 130, 0.1); }
.tier-tab--teal:hover   { background: rgba(46, 211, 183, 0.1); }
.tier-tab--yellow:hover { background: rgba(250, 197, 21, 0.1); }
.tier-tab--purple:hover { background: rgba(122, 90, 248, 0.1); }

.tier-tab--green.tier-tab--active  { background: rgba(3, 222, 130, 0.15); }
.tier-tab--teal.tier-tab--active   { background: rgba(46, 211, 183, 0.15); }
.tier-tab--yellow.tier-tab--active { background: rgba(250, 197, 21, 0.15); }
.tier-tab--purple.tier-tab--active { background: rgba(122, 90, 248, 0.15); }

.tier-tab--green.tier-tab--selected  { background: rgba(3, 222, 130, 0.3); color: #fff; }
.tier-tab--teal.tier-tab--selected   { background: rgba(46, 211, 183, 0.3); color: #fff; }
.tier-tab--yellow.tier-tab--selected { background: rgba(250, 197, 21, 0.3); color: #fff; }
.tier-tab--purple.tier-tab--selected { background: rgba(122, 90, 248, 0.3); color: #fff; }

.reward-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.reward-col h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.reward-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.reward-table th {
  text-align: left;
  padding: 6px 10px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--glass-border);
}

.reward-table td {
  padding: 6px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.reward-table td:first-child {
  color: var(--accent-color);
  font-weight: 600;
  width: 50px;
}

/* Banner */
.banner-thumb {
  width: 100%;
  max-width: 450px;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.banner-thumb:hover {
  opacity: 0.85;
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.modal-overlay.active {
  display: flex;
}

.modal-image {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
}

/* ヒーロー右上の大会ポスター（クリックで拡大） */
.hero-poster {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 240px;
  max-width: 28%;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.hero-poster:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

/* エントリーフォームモーダル */
.entry-modal-overlay {
  cursor: default;
  padding: 20px;
}

.entry-dialog {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  background: #12161c;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 28px 26px;
  box-shadow: 0 0 40px rgba(3, 222, 130, 0.12);
}

.entry-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}

.entry-close:hover {
  color: var(--text-primary);
}

.entry-field {
  margin-bottom: 18px;
}

.entry-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.entry-field input {
  width: 100%;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.entry-field input:focus {
  border-color: var(--accent-color);
}

.entry-field input::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

.entry-note {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 6px;
}

.entry-note a {
  color: var(--accent-color);
}

.x-auth-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.x-auth-btn {
  padding: 9px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.x-auth-btn:hover {
  border-color: var(--accent-color);
  background: rgba(3, 222, 130, 0.08);
}

.x-auth-status {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.x-auth-status.verified {
  color: var(--success);
  font-weight: 600;
}

.entry-error {
  color: var(--danger);
  font-size: 0.8rem;
  margin: 0 0 12px 0;
}

.entry-submit {
  width: 100%;
  padding: 12px;
  background: var(--accent-color);
  border: none;
  border-radius: 8px;
  color: #0c0e12;
  font-size: 0.95rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}

.entry-submit:hover:not(:disabled) {
  background: var(--accent-dim);
  box-shadow: 0 0 20px var(--accent-glow);
}

.entry-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.entry-success-msg {
  color: var(--success);
  font-weight: 600;
  margin-bottom: 8px;
}

#entry-success .entry-note {
  margin-bottom: 16px;
}

/* Discordアイコン（ボタン内・インラインSVG） */
.discord-ico {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Discord連携ボタンの行（カード内・中央揃え） */
.discord-link-row {
  justify-content: center;
}

/* Discord連携ボタン（エントリーボタンと同系の緑アクセント） */
.discord-link-btn {
  padding: 10px 20px;
  background: var(--accent-color);
  border: none;
  border-radius: 8px;
  color: #0c0e12;
  font-size: 0.85rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}

.discord-link-btn:hover {
  background: var(--accent-dim);
  box-shadow: 0 0 20px var(--accent-glow);
}

/* Discord招待ボタン（ページ末尾） */
.discord-join-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 30px auto 0;
  max-width: 420px;
  padding: 14px 32px;
  background: linear-gradient(135deg, #5865f2, #4752c4);
  border-radius: 12px;
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 0 24px rgba(88, 101, 242, 0.35), 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s, box-shadow 0.2s;
}

/* カード内に置く場合の余白調整 */
.discord-join-btn--card {
  margin: 16px auto 0;
}

.discord-join-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(88, 101, 242, 0.55), 0 10px 28px rgba(0, 0, 0, 0.4);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .container {
    padding: 20px 10px;
  }

  .hero {
    padding: 32px 20px;
  }

  /* モバイルでは右上に余白がないためCTA下に通常配置 */
  .hero-poster {
    position: static;
    display: block;
    width: 100%;
    max-width: 420px;
    margin: 20px auto 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero .subtitle {
    font-size: 0.9rem;
  }

  .hero-art {
    width: 90%;
    right: -25%;
  }

  .hero-stats {
    gap: 10px;
  }

  .stat-card {
    flex: 1 1 45%;
    min-width: 140px;
    padding: 12px 14px;
  }

  .stat-value {
    font-size: 1.2rem;
  }

  /* モバイルではラッパーを全幅にし、カード群・CTAとも画面幅いっぱいに */
  .hero-entry {
    display: block;
    width: 100%;
  }

  .hero-cta {
    display: block;
    padding: 18px 24px;
  }

  .hero-cta .cta-main {
    font-size: 1.15rem;
  }

  .controls {
    flex-direction: column;
    gap: 8px;
  }

  button {
    width: 100%;
  }

  .dashboard-card {
    padding: 16px;
  }

  /* Table responsive wrapper */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -16px; /* Offset card padding */
    padding: 0 16px;
  }

  .leaderboard-table th,
  .leaderboard-table td {
    padding: 12px 10px;
    font-size: 0.85rem;
    white-space: nowrap; /* Prevent wrapping in cells */
  }

  .leaderboard-table td:first-child {
    padding-left: 16px;
  }

  .tier-tabs {
    gap: 6px;
  }

  .tier-tab {
    font-size: 0.75rem;
    padding: 6px 10px;
  }

  .reward-pair {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .reward-table th,
  .reward-table td {
    padding: 5px 8px;
    font-size: 0.8rem;
  }

  /* 順位タブ: button { width:100% } を打ち消して小さなピル型のまま横並びにする */
  .page-tab {
    width: auto;
    font-size: 0.72rem;
    padding: 4px 8px;
  }

  /* ソート切替: ラベルを1行目に、ROI/Volumeを2分割セグメント型にして
     順位タブと見た目を明確に区別する */
  .sort-tabs {
    gap: 0;
  }

  .sort-tabs-label {
    flex-basis: 100%;
    margin: 0 0 8px 0;
  }

  .sort-tab {
    width: auto;
    flex: 1;
    position: relative;
    padding: 9px 0;
    font-size: 0.85rem;
    border-radius: 0;
  }

  .sort-tab:first-of-type {
    border-radius: 8px 0 0 8px;
  }

  .sort-tab:last-of-type {
    border-radius: 0 8px 8px 0;
    margin-left: -1px; /* 境界の枠線を重ねて1本にする */
  }

  .sort-tab--active {
    z-index: 1; /* 重なった境界でもアクティブ側の枠色を前面に出す */
  }

  .lang-toggle {
    top: 10px;
    right: 12px;
    width: auto; /* モバイルの button { width: 100% } を打ち消す */
  }
}
