/* ─── BattleNest Brand v3 (D1a Pop Sticker) ───
   Direction: ライト層向けのポップ立体感、公式から距離。
   Colors:  Red #FF4B6E / Blue #3FB5E8 / Yellow #FFCB3D / Plum #3A2A50 on cream-sky bg
   Fonts:   Outfit (logo/英) / Zen Kaku Gothic New (日本語) / Plus Jakarta Sans (UI英)
   Deco:    厚み4pxのソリッド影、角丸14px、太め2pxボーダー(border=影色プラム)
*/
:root {
  /* Surface */
  --bg:           linear-gradient(180deg, #FFF1F4 0%, #EAF6FD 100%);
  --bg-solid:     #FAF0F3;             /* グラデが効かない場面の代替 */
  --bg-2:         #FFFFFF;
  --bg-3:         #FFF5F6;             /* セクションでうっすら桃を入れたい時 */
  --surface:      #FFFFFF;

  /* Text */
  --text:         #2B1F3A;             /* deep plum (黒すぎない柔らかい本文) */
  --text-dim:     #5A4970;
  --muted:        #8278A0;

  /* Brand colors */
  --accent:       #FF4B6E;             /* RED (主役/CTA) */
  --accent-2:     #FF7892;             /* RED-L */
  --blue:         #3FB5E8;             /* BLUE (相手側/サブCTA) */
  --blue-2:       #6FC9EE;             /* BLUE-L */
  --yellow:       #FFCB3D;             /* YELLOW (賞・トロフィー差し色) */
  --yellow-2:     #FFE38A;

  /* Outlines / shadows */
  --border:       #3A2A50;             /* deep plum border (太め2pxで使う) */
  --border-soft:  rgba(58,42,80,0.12);
  --border-strong: #3A2A50;            /* alias used by some admin pages */
  --line:         #06c755;             /* LINE green (公式色) */
  --shadow-solid: 0 4px 0 #3A2A50;     /* 立体ボタンの厚み影 */
  --shadow-soft:  0 10px 24px rgba(58,42,80,0.18);
  --shadow-card:  0 6px 16px rgba(58,42,80,0.10);

  /* Geometry */
  --radius-card:  14px;
  --radius-btn:   999px;
  --radius-input: 10px;
  --border-w:     2px;

  /* Fonts */
  --font-logo:    'Outfit', sans-serif;
  --font-en:      'Plus Jakarta Sans', sans-serif;
  --font-jp:      'Zen Kaku Gothic New', sans-serif;
  --font-body:    'Zen Kaku Gothic New', 'Plus Jakarta Sans', sans-serif;
  --font-num:     'Outfit', sans-serif;
}

/* ─── Logo utilities ─── */
.bn-logo {
  font-family: var(--font-logo);
  font-weight: 900;
  letter-spacing: -0.01em;
}
.bn-logo .battle { color: var(--accent); }
.bn-logo .nest   { color: var(--blue); }
.bn-logo .x      { color: var(--yellow); font-size: 0.7em; margin: 0 4px; vertical-align: middle; font-weight: 900; }

.bn-num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* ─── Buttons (D1a 立体ボタン) ─── */
.bn-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  background: var(--accent); color: #fff;
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius-btn);
  box-shadow: var(--shadow-solid);
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 14px;
  padding: 12px 22px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.bn-btn:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--border); }
.bn-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--border); }
.bn-btn.blue   { background: var(--blue); }
.bn-btn.yellow { background: var(--yellow); color: var(--text); }
.bn-btn.ghost  { background: #fff; color: var(--accent); }
.bn-btn.ghost.blue { color: var(--blue); border-color: var(--blue); box-shadow: 0 4px 0 var(--blue); }
.bn-btn.sm     { padding: 8px 16px; font-size: 12px; }
.bn-btn.lg     { padding: 14px 28px; font-size: 16px; }

/* ─── Cards ─── */
.bn-card {
  background: var(--surface);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-solid);
  padding: 18px;
}
.bn-card.soft {
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
}

/* ─── Badges ─── */
.bn-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(255,75,110,0.12); color: var(--accent);
  font-family: var(--font-logo); font-weight: 800; font-size: 11px;
  letter-spacing: 0.05em;
}
.bn-badge.blue   { background: rgba(63,181,232,0.14); color: var(--blue); }
.bn-badge.yellow { background: rgba(255,203,61,0.20); color: #7A5A00; }

/* ─── Inputs ─── */
.bn-input, .bn-select, .bn-textarea {
  background: #fff;
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius-input);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  box-shadow: inset 0 2px 0 rgba(58,42,80,0.06);
}
.bn-input:focus, .bn-select:focus, .bn-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: inset 0 2px 0 rgba(58,42,80,0.06), 0 0 0 3px rgba(255,75,110,0.18);
}

/* ─── Icon defaults (Lucide-style line icons) ─── */
.bn-icon, .bn-icon-host svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: inline-block;
  vertical-align: middle;
}
.bn-icon { width: 28px; height: 28px; }
.bn-icon.sm { width: 18px; height: 18px; stroke-width: 2.25; }
.bn-icon.lg { width: 40px; height: 40px; stroke-width: 1.75; }
.bn-icon-circle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 14px;
  background: rgba(255,75,110,0.12);
  border: 2px solid var(--border);
  color: var(--accent);
  margin-bottom: 14px;
  box-shadow: var(--shadow-solid);
}
.bn-icon-circle .bn-icon, .bn-icon-circle svg { width: 28px; height: 28px; }
