/* /public/css/base.css
   Based on /public/css/index.css design system
*/

/* =========================
   Design Tokens (Light)
   ========================= */
:root{
  color-scheme: light;
  --bg-page:#e5e7eb;
  --bg-header:rgba(255,255,255,.96);
  --bg-footer:#f9fafb;
  --bg-card:#ffffff;
  --border-soft:#d1d5db;
  --text-main:#0f172a;
  --text-sub:#4b5563;
  --accent:#4f46e5;
  --accent-hover:#4338ca;
  --bg: var(--bg-page);
  --card: var(--bg-card);
  --text: var(--text-main);
  --muted: var(--text-sub);
  --border: var(--border-soft);
  --container: 1200px;
  --gutter: 16px;
  --radius-card: 16px;
  --radius-pill: 999px;
  --shadow-card: 0 4px 12px rgba(0,0,0,.03);
  --focus-ring: 0 0 0 3px rgba(99,102,241,.15);
  --focus: 0 0 0 3px rgba(79,70,229,.25);
  --shadow-1: 0 6px 18px rgba(0,0,0,.10);
  --shadow-2: 0 18px 50px rgba(0,0,0,.12);
  --shadow: var(--shadow-1);
  --accent-2: #7c3aed;
  --danger: #ef4444;
}

/* =========================
   Dark Theme Tokens
   - 既存の変数名を上書きする方式（管理しやすい）
   ========================= */
:root[data-theme="dark"]{
  color-scheme: dark;
  --bg-page:#0b1220;
  --bg-header: rgba(15,23,42,.78);
  --bg-footer:#0b1220;
  --bg-card: rgba(255,255,255,.06);
  --border-soft: rgba(255,255,255,.12);
  --text-main: rgba(255,255,255,.92);
  --text-sub: rgba(255,255,255,.65);
  --bg: var(--bg-page);
  --card: var(--bg-card);
  --text: var(--text-main);
  --muted: var(--text-sub);
  --border: var(--border-soft);
  --shadow: var(--shadow-1);
  --accent:#818cf8;
  --accent-2: #a78bfa;
  --accent-hover:#6366f1;
  --shadow-card: 0 12px 36px rgba(0,0,0,.35);
  --focus-ring: 0 0 0 3px rgba(129,140,248,.22);
    --danger: #fb7185;
}

/* =========================
  Reset & Base
   ========================= */
*, *::before, *::after {
  box-sizing: border-box; /* はみ出し防止の最重要設定 */
}

html, body{
  margin:0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background:var(--bg-page);
  color:var(--text-main);
  max-width:100%;
  overflow-x: visible;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s, color 0.2s;
}

a:hover{ text-decoration: underline; }

img{ max-width:100%; height:auto; display:block; }

.muted{ color: var(--text-sub); }

/* レイアウト */

.site-main {
  min-height: calc(100vh - 250px);
  width: 100%;
  position: relative;
}

.page-root {
  max-width: 1200px;
  margin: 32px auto 48px;
  padding: 0 16px;
}

/* ===== ヘッダー ===== */
.site-header {
  position: -webkit-sticky; /* Safari対策 */
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-soft);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* ロゴ周り */
.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
}

.site-logo-main {
  font-size: 20px;
  font-weight: 900; /* 太く強調 */
  letter-spacing: 0.02em;
  font-family: "Segoe UI", Roboto, sans-serif; 
}

/* ナビゲーション */
.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-sub);
    border-radius: 12px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.site-nav-item:hover {
  background: #f3f4f6;
  color: var(--text-main);
    background: rgba(15,23,42,.06);
  border-color: var(--border-soft);
  color: var(--text-main);
  text-decoration: none;
}

.site-nav-item.is-active {
  background: var(--text-main);
  color: #ffffff;
}

.site-nav a{
  padding:4px 10px;
  border-radius:999px;
}

/* アクティブ状態：.card-tag と同じ感じ */
.site-nav a.is-active{
  background:#eff6ff;  /* .card-tag と同じ */
  color:#1d4ed8;
  border-radius:999px;
  font-weight:600;
}

.site-nav-icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
  min-width: 20px;
  flex: 0 0 20px;
  line-height: 1;
  text-align: center;
}
:root[data-theme="dark"] .site-nav-item:hover{
  background: rgba(255,255,255,.06);
}

.site-nav-item.is-active{
  /* index.cssの.card-tag風（青いピル）に統一 */
  background:#eff6ff;
  color:#1d4ed8;
  border-color: rgba(37,99,235,.20);
}

:root[data-theme="dark"] .site-nav-item.is-active{
  background: rgba(129,140,248,.16);
  color: rgba(255,255,255,.92);
  border-color: rgba(129,140,248,.22);
}

.site-nav-icon{
  display:inline-flex;
  width: 20px;
  height: 20px;
  min-width: 20px;
  flex: 0 0 20px;
  line-height: 1;
  text-align: center;
}

.site-nav-icon {
  color: currentColor;
  overflow: visible;
}

img.site-nav-icon{
  width: 20px;
  height: 20px;
  min-width: 20px;
  max-width: 20px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  transform-origin: center;
  vertical-align: middle;
}

/* Beta mobile page toolbar. It is rendered together with the beta tab bar. */
.site-mobile-page-toolbar{
  display:none;
}

.site-mobile-favorite-tools{
  display:none;
}

.site-mobile-favorite-tools-restore{
  display:none;
}

.site-nav-icon--home,
.site-nav-icon--info,
.site-nav-icon--language {
  transform: scale(1.08);
}

.site-nav-icon--tools {
  transform: scale(1.28);
}

.site-nav-icon--recruit {
  transform: scale(1.2);
}

.site-nav-icon--login,
.site-nav-icon--account {
  transform: scale(1.14);
}

.site-lang-menu {
  position: relative;
  display: inline-flex;
}

.site-lang-menu summary {
  cursor: pointer;
  list-style: none;
}

.site-lang-menu summary::-webkit-details-marker {
  display: none;
}

.site-lang-trigger::after {
  content: "▾";
  margin-left: 2px;
  font-size: 10px;
  line-height: 1;
}

.site-lang-trigger {
  padding: 4px 10px;
  border-radius: 999px;
}

.site-nav .site-lang-trigger {
  padding: 4px 10px;
  border-radius: 999px;
}

.site-lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 200;
  display: grid;
  gap: 10px;
  width: min(220px, calc(100vw - 24px));
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .14);
}

.site-lang-menu:not([open]) .site-lang-dropdown {
  display: none;
}

.site-lang-title {
  padding: 0 10px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
}

.site-lang-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.site-lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.site-lang-option:hover {
  background: #f1f5f9;
  text-decoration: none;
}

.site-lang-option.is-active {
  background: #ecfdf3;
  border-color: rgba(22, 163, 74, .22);
  color: #16a34a;
  text-decoration: none;
}

.site-lang-option.is-active::after {
  content: "✓";
  margin-left: auto;
  color: #16a34a;
  font-weight: 900;
}

.site-lang-code {
  flex: 0 0 auto;
  color: inherit;
  font-size: 13px;
  font-weight: 950;
}

.site-lang-name {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =========================
   Cards (index.css taste)
   ========================= */
.card{
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.card-header-line{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom: 10px;
}

.card-title{
  margin:0;
  font-size: 16px;
  font-weight: 700;
}

.card-tag{
  font-size: 10px;
  background:#eff6ff;
  color:#2563eb;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  border: 1px solid rgba(37,99,235,.12);
}

:root[data-theme="dark"] .card-tag{
  background: rgba(129,140,248,.16);
  color: rgba(255,255,255,.92);
  border-color: rgba(129,140,248,.22);
}

.card-desc{
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.6;
}

/* =========================
   Common Form Controls (pill)
   - index.cssの input/button を共通部品化
   ========================= */
.ui-label{
  display:block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-sub);
  margin-bottom: 6px;
}

.ui-input{
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  font-size: 16px; /* iOSズーム防止 */
  outline: none;
  background: #f9fafb;
  transition: all .2s;
  color: var(--text-main);
}

:root[data-theme="dark"] .ui-input{
  background: rgba(255,255,255,.06);
}

.ui-input:focus{
  background: #ffffff;
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
}

:root[data-theme="dark"] .ui-input:focus{
  background: rgba(255,255,255,.08);
}

.ui-btn{
  border: none;
  border-radius: var(--radius-pill);
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 800;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .2s, transform .08s, box-shadow .08s;
}

.ui-btn:hover{ opacity: .92; }
.ui-btn:active{ transform: translateY(1px); }

.ui-btn-sub{
  background: #111827;
}

:root[data-theme="dark"] .ui-btn-sub{
  background: rgba(255,255,255,.10);
  border: 1px solid var(--border-soft);
}

/* ===== フッター ===== */
/* フッターのベース色もメイン文字色に寄せる */
.site-footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--border-soft);
  padding: 16px 16px 20px;
  font-size: 13px;
  color: var(--text-main);
}

/* PC 幅は 1200px に統一 */
.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--text-main);  /* ここもメイン文字色 */
}

.site-footer-brand{
  font-weight:700;
}

.site-footer-text {
  line-height: 1.6;
  color: var(--text-main);
}

/* 注意書き：背景なしで文字だけ濃く */
.site-footer-notice {
  margin: 6px 0 8px;
  font-size: 12px;
  line-height: 1.6;
  color: #111827;   /* さらに一段階濃い */
  background: none;
  border-radius: 0;
  padding: 0;
}


.site-footer-notice a{
  color:inherit;
  text-decoration:underline;
}
.site-footer-notice a:hover{
  text-decoration:none;
}

.site-footer-links{
  display:flex;
  flex-wrap:wrap;
  gap:6px 16px;
}

.site-footer-links a{
  font-size:12px;
  font-weight:500;
  color:var(--text-main);
}

.site-footer-links a:hover{
  color:var(--accent);
  text-decoration:underline;
}

/* コピーライトもコントラスト強めに */
.site-footer-copy {
  margin-top: 4px;
  font-size: 12px;
  color: #111827;   /* #6b7280 → より濃い色に */
}

:root[data-theme="dark"] .site-footer-copy{
  color: var(--text-sub);
}

/* スマホ時の余白調整 */
@media (max-width: 640px){
  /* ヘッダー：少しコンパクト＆折り返しやすく */
  .site-header-inner{
    padding:8px 12px;
    flex-wrap:wrap;
    gap:8px;
  }

  .site-logo{
    font-size:18px;
  }

  .site-nav{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    font-size:12px;
  }

  .site-nav a{
    padding:3px 8px;
  }

  /* フッター（さっきのやつと合わせる） */
  .site-footer-inner{
    padding:12px 20px 16px;
  }

  /* メインコンテンツ左右の余白を少し増やす */
  .page-root{
  max-width:1200px;
  margin:24px auto 40px;
  padding:0 16px;
  }
}

/* =========================================
   レスポンシブ (スマホ・タブレット)
   ========================================= */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr; /* 縦並び */
  }
}

@media (max-width: 768px) {
  /* ヘッダー: 2段組にして見切れ防止 */
  .site-header-inner {
    height: auto;
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 12px;
  }

  /* ナビゲーション: ボタン風に並べる */
  .site-nav {
    width: 100%;
    justify-content: space-between; 
    overflow-x: visible;
    padding-bottom: 2px;
  }

  .site-nav-item {
    flex: 1;
    justify-content: center;
    white-space: nowrap;
    background: #f9fafb;
    font-size: 12px;
    padding: 8px 4px;
    border-radius: 6px;
  }

  .site-lang-menu {
    flex: 1;
  }

  .site-lang-trigger {
    width: 100%;
    justify-content: center;
  }
  
  .site-nav-label {
    font-size: 11px;
  }

  /* フッター: 縦積みレイアウト */
  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

    .site-footer-left {
    max-width: 100%;
  }

  .site-footer-right {
    min-width: 100%;
  }

  .site-footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .page-root {
    margin: 20px auto 32px;
    padding: 0 12px;
  }

  .card {
    padding: 16px 12px;
  }

  /* ここから追加：入力＋ボタンの横はみ出し防止 */
  .search-input-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .search-input-row input {
    width: 100%;
  }

  .search-input-row button {
    width: 100%;
    text-align: center;
  }

  .hero-title-main {
    font-size: 22px;
  }
}

.player-badges{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-left:8px;
}

.bs-badge-btn {
  width: 24px;   /* 少し大きくしても見やすいです */
  height: 24px;
  padding: 0;
  border: none;           /* 枠線を削除 */
  background: transparent; /* 背景を透明に */
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  /* デフォルトの色 */
  color: #1d4ed8;
  font-size: 18px; /* アイコンサイズ */
  transition: transform 0.1s, color 0.2s;
}

.bs-badge-btn:hover {
  transform: scale(1.1);
  filter: brightness(1.1);
}

/* ▼ 追加: バッジの種類ごとの色設定 (type-〇〇) ▼ */
/* 公式認定 (official) -> 青 */
.bs-badge-btn.type-official { color: #3b82f6; }

/* 認証済み (verified) -> 緑 */
.bs-badge-btn.type-verified { color: #10b981; }

/* 開発者 (dev) -> 紫/インディゴ */
.bs-badge-btn.type-dev { color: #6366f1; }

/* 運営者 (operator) -> オレンジ */
.bs-badge-btn.type-operator { color: #f59e0b; }

/* テスター (tester) -> ピンク */
.bs-badge-btn.type-tester { color: #ec4899; }

/* eSports (esports) -> 紫 */
.bs-badge-btn.type-esports { color: #8b5cf6; }

.bs-badge-btn i{
  font-size:18px;
  line-height:1;
}

/* ===== Simple Modal ===== */
.bs-modal-backdrop{
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0,0,0,.45);
  z-index: 9999;
}

.bs-modal{
  width: min(420px, 100%);
  background: #fff;
  color: #111;
  border-radius: 14px;
  padding: 14px 14px 12px;
  box-shadow: 0 18px 50px rgba(0,0,0,.25);
}

.bs-modal__title{
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 8px;
}

.bs-modal__body{
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  color: rgba(0,0,0,.85);
}

body.bs-modal-open{
  overflow: hidden;
}

/* =========================================
   MODAL
   ========================================= */
  
/* モーダル背景 */
.bs-modal-backdrop {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  /* 開始時: 0.15秒でフェードイン */
  animation: modalFadeIn 0.15s ease-out forwards;
}

/* ▼ 終了時: クラスが付いたらフェードアウト */
.bs-modal-backdrop.is-closing {
  animation: modalFadeOut 0.15s ease-in forwards;
  pointer-events: none; /* 閉じる最中はクリック禁止 */
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* モーダル本体 */
.bs-modal {
  background: #ffffff;
  width: 90%;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  overflow: hidden;
  animation: modalSlideUp 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* ▼ 終了時: 本体も少し下に下がりながら消える */
.bs-modal-backdrop.is-closing .bs-modal {
  animation: modalSlideDown 0.15s ease-in forwards;
}

@keyframes modalSlideUp {
  0% { opacity: 0; transform: translateY(15px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes modalSlideDown {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(10px); }
}

/* タイトルエリア */
.bs-modal__title {
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  background: #f8fafc;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 本文エリア */
.bs-modal__body {
  padding: 20px;
  font-size: 14px;
  line-height: 1.6;
  color: #334155;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.bs-modal__body::-webkit-scrollbar {
  width: 6px;
}
.bs-modal__body::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 4px;
}
.bs-modal__body::-webkit-scrollbar-track {
  background: transparent;
}

/* リンクのスタイル */
.bs-modal__body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}
.bs-modal__body a:hover {
  color: var(--accent-hover);
  text-decoration-thickness: 2px;
}

/* スマホ調整 */
@media (max-width: 480px) {
  .bs-modal { width: 92%; }
  .bs-modal__title { padding: 14px 16px; }
  .bs-modal__body { padding: 16px; }
}

/* ================================
   Legal pages (Privacy / Terms)
   ================================ */

.legal-section{
  max-width: min(1200px, calc(var(--container) - (var(--gutter) * 2)));
  margin: 24px auto 48px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.legal-section h1{
  margin: 0 0 10px;
  font-size: 26px;
  letter-spacing: -0.01em;
}

.legal-section > p:first-of-type{
  margin-top: 0;
  color: var(--text-muted);
}

.legal-section > p strong{
  color: var(--text);
}

.legal-section h2{
  margin: 26px 0 10px;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
  font-size: 18px;
}

.legal-section h3{
  margin: 18px 0 8px;
  font-size: 15px;
  color: var(--text);
}

.legal-section p,
.legal-section li{
  font-size: 14px;
  line-height: 1.9;
  color: var(--text);
}

.legal-section ul,
.legal-section ol{
  padding-left: 1.25em;
  margin: 10px 0 16px;
}

.legal-section li{
  margin: 6px 0;
}

/* legal内だけ、リンクは常時下線で見やすく */
.legal-section a{
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.legal-section a:hover{
  text-decoration-thickness: 2px;
}

/* コード・引用（規約でも使える） */
.legal-section code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
               "Liberation Mono", "Courier New", monospace;
  font-size: 0.95em;
  background: var(--bg-card-hover);
  padding: 0.12em 0.35em;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
}

.legal-section blockquote{
  margin: 14px 0;
  padding: 12px 14px;
  background: var(--bg-card-hover);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--accent);
  border-radius: 14px;
  color: var(--text-muted);
}

.legal-section hr{
  border: 0;
  border-top: 1px solid var(--border-soft);
  margin: 18px 0;
}

/* 表（必要になったとき用：利用規約/特商法などにも使える） */
.legal-section .legal-table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 12px 0 18px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  overflow: hidden;
}
.legal-section .legal-table th,
.legal-section .legal-table td{
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-soft);
  text-align: left;
  font-size: 13px;
}
.legal-section .legal-table tr:last-child th,
.legal-section .legal-table tr:last-child td{
  border-bottom: 0;
}
.legal-section .legal-table th{
  background: var(--bg-card-hover);
  color: var(--text-muted);
  font-weight: 800;
}

/* 見出しへ飛んだ時にヘッダーで隠れないように */
.legal-section :target{
  scroll-margin-top: 88px;
}

/* スマホ最適化 */
@media (max-width: 640px){
  .legal-section{
    margin: 16px var(--gutter) 32px;
    padding: 20px 16px;
  }
  .legal-section h1{ font-size: 22px; }
  .legal-section h2{ font-size: 16px; }
}

.admin-shortcut-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, .35);
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.admin-shortcut-btn:hover {
  border-color: rgba(37, 99, 235, .55);
  background: #dbeafe;
  text-decoration: none;
}
@font-face{
  font-family:"BSInfoNameLatin";
  src:url("/fonts/lilitaone.ttf") format("truetype");
  font-style:normal;
  font-weight:400;
  font-display:swap;
}
@font-face{
  font-family:"BSInfoNameJP";
  src:url("/fonts/NotoSansJP-Medium.ttf") format("truetype");
  font-style:normal;
  font-weight:500;
  font-display:swap;
}
.name-color-verify-preview{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  flex:1 1 0;
  width:100%;
  min-width:0;
  height:112px;
  box-sizing:border-box;
  padding:10px 14px 14px;
  border-radius:14px;
  background:#1554bd url("/images/ui/name_color_back.webp") center/cover no-repeat;
  overflow:hidden;
}
.name-color-verification-guide,
.verification-pending-guide,
.verification-method-guide img,
.player-tag-guide{
  display:block;
  width:100%;
  height:auto;
  border-radius:12px;
}
.verification-pending-guide,
.verification-method-guide{
  margin:0 0 14px;
}
.verification-method-guide img[hidden]{
  display:none;
}
.player-tag-guide{
  margin-top:10px;
}
.password-visibility-toggle{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-top:7px;
  color:#475569;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
}
.registration-consent{
  margin-top:12px;
  color:#475569;
  font-size:12px;
  line-height:1.7;
}
.registration-consent a{
  color:#1d4ed8;
  font-weight:800;
  text-decoration:underline;
  text-underline-offset:2px;
}
.oauth-provider-icon{
  display:inline-block;
  width:1.1em;
  height:1.1em;
  flex:0 0 1.1em;
  overflow:visible;
  vertical-align:-.16em;
}
.verification-help{
  margin:8px 0 14px;
}
.player-tag-help{
  margin-top:3px;
}
.verification-help > summary{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:#1d4ed8;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
  list-style:none;
}
.verification-help > summary::-webkit-details-marker{display:none}
.verification-help > summary::before{
  content:"＋";
  font-weight:900;
}
.verification-help[open] > summary::before{content:"－"}
.verification-help > img,
.verification-help > [data-verification-guide]{
  margin-top:10px;
}
.avatar-box.name-color-avatar-box{
  display:block;
  width:100%;
  padding:0;
  border:0;
  border-radius:14px;
  background:transparent;
  overflow:hidden;
}
.name-color-verify-name{
  --verify-name-color:#fff;
  position:relative;
  display:inline-block;
  font-family:"BSInfoNameLatin","BSInfoNameJP",sans-serif;
  font-size:clamp(28px,5vw,48px);
  font-weight:400;
  line-height:1.08;
  letter-spacing:-.045em;
  white-space:nowrap;
  max-width:100%;
}
.name-color-verify-name::before{
  content:attr(data-name-color-value);
  position:absolute;
  inset:0 auto auto 0;
  z-index:0;
  color:#050505;
  -webkit-text-stroke-color:#050505;
  -webkit-text-stroke-width:clamp(3px,.09em,5px);
  paint-order:stroke fill;
  filter:drop-shadow(0 3px 0 #050505);
}
.name-color-verify-name > span{
  position:relative;
  z-index:1;
  color:var(--verify-name-color);
}
.name-color-verify-name.is-gradient .name-color-text{
  color:transparent;
  display:inline;
  background-image:var(--verify-name-gradient);
  background-size:300% 100%;
  background-position:0 50%;
  background-clip:text;
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  animation:name-color-gradient-flow 9s linear infinite alternate;
}
.name-color-verify-name .name-color-emoji{
  color:initial;
  background:none;
  background-clip:border-box;
  -webkit-background-clip:border-box;
  -webkit-text-fill-color:currentColor;
  animation:none;
}
@keyframes name-color-gradient-flow{
  from{background-position:0 50%}
  to{background-position:100% 50%}
}
.name-color-pass-toggle{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:9px;
}
.name-color-pass-toggle button{
  border:1px solid rgba(255,255,255,.38);
  border-radius:999px;
  padding:5px 9px;
  background:rgba(0,0,0,.18);
  color:#fff;
  font:inherit;
  font-size:11px;
  font-weight:800;
  cursor:pointer;
}
.name-color-pass-toggle button.is-active{
  border-color:#fff;
  background:#fff;
  color:#174ea6;
}
.verification-method-field{
  display:flex;
  flex-wrap:wrap;
  gap:10px 18px;
  min-width:0;
  margin:12px 0;
  padding:10px 12px;
  border:1px solid rgba(148,163,184,.45);
  border-radius:12px;
}
.verification-method-field legend{
  padding:0 5px;
  font-size:12px;
  font-weight:900;
}
.verification-method-field label{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
}
@media (max-width:560px){
  .name-color-verify-name{font-size:clamp(24px,10vw,38px)}
}

/* Account beta UI: shared mobile bottom navigation.
   The class is emitted by site_chrome.php only for signed-in new-UI users. */
@media (max-width:900px){
  .site-header.site-header--beta-mobile{
    position:fixed !important;
    inset:auto 0 0 !important;
    z-index:500;
    display:block !important;
    visibility:visible;
    padding-bottom:env(safe-area-inset-bottom);
    border-top:1px solid #f2f4f7;
    border-bottom:0;
    background:#fff;
    -webkit-backdrop-filter:none;
    backdrop-filter:none;
  }
  .site-header--beta-mobile ~ .site-main{
    padding-bottom:calc(72px + env(safe-area-inset-bottom)) !important;
  }
  .site-header--beta-mobile.has-mobile-favorites ~ .site-main{
    padding-bottom:calc(180px + env(safe-area-inset-bottom)) !important;
  }
  .site-mobile-favorite-tools{
    position:fixed;
    left:10px;
    right:10px;
    bottom:calc(78px + env(safe-area-inset-bottom));
    z-index:499;
    display:block;
    pointer-events:none;
    transform:translateY(0);
    opacity:1;
    visibility:visible;
    transition:transform .22s ease, opacity .18s ease, visibility 0s linear 0s;
  }
  .site-mobile-favorite-tools[hidden]{
    display:none !important;
  }
  .site-mobile-favorite-tools.is-collapsed{
    transform:translateY(calc(100% + 90px + env(safe-area-inset-bottom)));
    opacity:0;
    visibility:hidden;
    transition:transform .22s ease, opacity .18s ease, visibility 0s linear .22s;
  }
  .site-mobile-favorite-tools-list{
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:8px;
    max-width:520px;
    margin:0 auto;
    padding:7px;
    border:1px solid rgba(148,163,184,.24);
    border-radius:18px;
    background:rgba(255,255,255,.94);
    box-shadow:0 12px 28px rgba(15,23,42,.16);
    -webkit-backdrop-filter:blur(12px);
    backdrop-filter:blur(12px);
    pointer-events:auto;
  }
  .site-mobile-favorite-tools-dismiss{
    position:absolute;
    top:-23px;
    right:max(8px, calc((100% - 520px) / 2 + 8px));
    z-index:2;
    display:grid;
    place-items:center;
    width:38px;
    height:24px;
    padding:0;
    border:1px solid rgba(148,163,184,.34);
    border-bottom:0;
    border-radius:10px 10px 0 0;
    background:rgba(255,255,255,.98);
    color:#334155;
    box-shadow:none;
    pointer-events:auto;
    cursor:pointer;
    -webkit-tap-highlight-color:transparent;
  }
  .site-mobile-favorite-tools-dismiss:focus-visible{
    outline:2px solid #2563eb;
    outline-offset:2px;
  }
  .site-mobile-favorite-tools-dismiss svg{
    width:17px;
    height:17px;
    fill:none;
    stroke:currentColor;
    stroke-width:2.2;
    stroke-linecap:round;
    stroke-linejoin:round;
  }
  .site-mobile-favorite-tool{
    min-width:0;
    display:flex;
    align-items:center;
    gap:7px;
    min-height:42px;
    padding:6px 8px;
    border-radius:12px;
    color:#0f172a;
    background:#f8fafc;
    text-decoration:none;
    font-size:11px;
    font-weight:850;
    line-height:1.12;
  }
  .site-mobile-favorite-tool:hover{
    background:#eaf2ff;
    text-decoration:none;
  }
  .site-mobile-favorite-tool img{
    width:26px;
    height:26px;
    flex:0 0 26px;
    object-fit:contain;
  }
  .site-mobile-favorite-tool span{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
  }
  .site-mobile-favorite-tools-restore{
    position:fixed;
    right:max(8px, env(safe-area-inset-right));
    bottom:calc(72px + env(safe-area-inset-bottom));
    z-index:520;
    width:38px;
    height:24px;
    display:grid;
    place-items:center;
    padding:0;
    border:1px solid rgba(148,163,184,.34);
    border-bottom:0;
    border-radius:11px 11px 0 0;
    background:rgba(255,255,255,.96);
    color:#334155;
    box-shadow:none;
    cursor:pointer;
    -webkit-tap-highlight-color:transparent;
  }
  .site-mobile-favorite-tools-restore[hidden]{
    display:none !important;
  }
  .site-mobile-favorite-tools-restore:hover{
    color:#2563eb;
    background:#fff;
  }
  .site-mobile-favorite-tools-restore:focus-visible{
    outline:2px solid #2563eb;
    outline-offset:2px;
  }
  .site-mobile-favorite-tools-restore svg{
    width:20px;
    height:20px;
    fill:none;
    stroke:currentColor;
    stroke-width:2.2;
    stroke-linecap:round;
    stroke-linejoin:round;
  }
  .site-mobile-page-toolbar{
    position:relative;
    z-index:490;
    display:grid;
    height:60px;
    grid-template-columns:58px minmax(0, 1fr) 58px;
    align-items:center;
    background:#fff;
    border-bottom:1px solid #d1d5db;
    box-sizing:border-box;
  }
  .site-mobile-page-toolbar .settings-page-back,
  .site-mobile-page-toolbar .settings-page-forward{
    width:42px;
    height:42px;
    display:grid;
    place-items:center;
    padding:0;
    border:0;
    border-radius:50%;
    background:transparent;
    color:#1d1b20;
    cursor:pointer;
  }
  .site-mobile-page-toolbar .settings-page-back{
    grid-column:1;
    margin-left:8px;
  }
  .site-mobile-page-toolbar .settings-page-forward{
    grid-column:3;
    margin-right:8px;
  }
  .site-mobile-page-toolbar .settings-page-forward[hidden]{
    display:none !important;
  }
  .site-mobile-page-toolbar .settings-page-back:hover,
  .site-mobile-page-toolbar .settings-page-forward:hover{
    background:#f3f4f6;
  }
  .site-mobile-page-toolbar .settings-page-back:active,
  .site-mobile-page-toolbar .settings-page-forward:active{
    background:#e5e7eb;
  }
  .site-mobile-page-toolbar .settings-page-back svg,
  .site-mobile-page-toolbar .settings-page-forward svg{
    width:26px;
    height:26px;
    fill:none;
    stroke:currentColor;
    stroke-width:2;
    stroke-linecap:round;
    stroke-linejoin:round;
  }
  .site-mobile-page-toolbar .settings-page-toolbar-title{
    grid-column:2;
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    text-align:center;
    font-size:17px;
    line-height:1.2;
    font-weight:700;
  }
  .site-header--beta-mobile .site-header-inner{
    display:block;
    width:100%;
    max-width:none;
    height:72px;
    padding:4px;
    box-sizing:border-box;
  }
  .site-header--beta-mobile .site-logo{
    display:none;
  }
  .site-header--beta-mobile .site-nav{
    display:grid;
    grid-template-columns:repeat(5, minmax(0, 1fr)) 50px;
    gap:0;
    width:100%;
    height:100%;
    padding:0;
    overflow:visible;
  }
  .site-header--beta-mobile .site-nav-item,
  .site-header--beta-mobile .site-nav .site-lang-trigger{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:4px;
    width:100%;
    height:100%;
    min-width:0;
    padding:8px 0;
    border:0;
    border-radius:8px;
    background:transparent;
    color:#98a2b3;
    box-sizing:border-box;
  }
  .site-header--beta-mobile .site-nav-item.is-active,
  .site-header--beta-mobile .site-nav a.is-active{
    border-radius:8px;
    background:#eaf2ff;
    color:#087cf0;
  }
  .site-header--beta-mobile .site-nav-icon,
  .site-header--beta-mobile img.site-nav-icon{
    width:24px;
    height:24px;
    min-width:24px;
    max-width:24px;
    transform:none;
  }
  .site-header--beta-mobile .site-nav-label{
    font-size:14px;
    font-weight:500;
    line-height:20px;
    white-space:nowrap;
  }
  .site-header--beta-mobile .site-nav-label[data-mobile-label]{
    font-size:0;
  }
  .site-header--beta-mobile .site-nav-label[data-mobile-label]::after{
    content:attr(data-mobile-label);
    font-size:14px;
  }
  .site-header--beta-mobile .site-lang-menu{
    width:100%;
    height:100%;
  }
  .site-header--beta-mobile .site-lang-trigger::after{
    display:none;
  }
  .site-header--beta-mobile .site-lang-dropdown{
    top:auto;
    right:0;
    bottom:calc(100% + 8px);
  }
  :root[data-theme="dark"] .site-header.site-header--beta-mobile{
    border-color:#3f444e;
    background:#24272e;
  }
  :root[data-theme="dark"] .site-mobile-favorite-tools-list{
    border-color:#3f444e;
    background:rgba(36,39,46,.94);
    box-shadow:0 12px 28px rgba(0,0,0,.32);
  }
  :root[data-theme="dark"] .site-mobile-favorite-tools-dismiss{
    border-color:#3f444e;
    background:rgba(36,39,46,.98);
    color:#f4f4f5;
    box-shadow:none;
  }
  :root[data-theme="dark"] .site-mobile-favorite-tool{
    color:#f4f4f5;
    background:rgba(255,255,255,.07);
  }
  :root[data-theme="dark"] .site-mobile-favorite-tool:hover{
    background:rgba(129,140,248,.16);
  }
  :root[data-theme="dark"] .site-mobile-favorite-tools-restore{
    border-color:#3f444e;
    background:rgba(36,39,46,.96);
    color:#f4f4f5;
    box-shadow:none;
  }
  :root[data-theme="dark"] .site-mobile-favorite-tools-restore:hover{
    background:#343944;
    color:#8dc2ff;
  }
  :root[data-theme="dark"] .site-mobile-page-toolbar{
    border-color:#3f444e;
    background:#24272e;
    color:#f4f4f5;
  }
  :root[data-theme="dark"] .site-mobile-page-toolbar .settings-page-back,
  :root[data-theme="dark"] .site-mobile-page-toolbar .settings-page-forward{
    color:#f4f4f5;
  }
  :root[data-theme="dark"] .site-mobile-page-toolbar .settings-page-back:hover,
  :root[data-theme="dark"] .site-mobile-page-toolbar .settings-page-forward:hover{
    background:#343944;
  }
  :root[data-theme="dark"] .site-header--beta-mobile .site-nav-item,
  :root[data-theme="dark"] .site-header--beta-mobile .site-nav .site-lang-trigger{
    color:#aeb4be;
  }
  :root[data-theme="dark"] .site-header--beta-mobile .site-nav-item.is-active,
  :root[data-theme="dark"] .site-header--beta-mobile .site-nav a.is-active{
    background:#343944;
    color:#8dc2ff;
  }
}

@media (max-width:900px) and (prefers-reduced-motion:reduce){
  .site-mobile-favorite-tools{
    transition:none;
  }
}
