/* かるわか GAMES — ゲームセンター風テーマ(style.cssの後に読み込んで上書きする) */
:root {
  --font-pixel: "DotGothic16", "Hiragino Sans", "Yu Gothic", monospace;
  --bg: #f4efff;
  --bg-elevated: #ffffff;
  --text: #1d1240;
  --text-muted: #5d5486;
  --border: #cfc4f0;
  --accent: #e0238a;
  --accent-soft: #ffe3f2;
  --star: #ff9f1c;
  --ink: #1d1240;
  --shadow: 4px 4px 0 var(--ink);
  --radius: 12px;
  --neon-pink: #ff3ea5;
  --neon-cyan: #18d5ff;
  --neon-yellow: #ffe14d;
  --neon-green: #39ff88;
  --cab-edge: #1d1240;
  --screen: #120a2e;
  --marquee: linear-gradient(90deg, #ff3ea5, #ffe14d, #18d5ff, #ff3ea5);
}

[data-theme="dark"] {
  --bg: #0a0620;
  --bg-elevated: #160d38;
  --text: #f3ecff;
  --text-muted: #a99bd6;
  --border: #3a2a7c;
  --accent: #ff4fb0;
  --accent-soft: #2c1650;
  --star: #ffd23f;
  --ink: #4b36a0;
  --shadow: 0 6px 22px rgba(255, 62, 165, 0.14);
  --cab-edge: #4b36a0;
  --screen: #07031a;
}

body {
  background:
    radial-gradient(rgba(29, 18, 64, 0.07) 1px, transparent 1px) 0 0 / 18px 18px,
    radial-gradient(circle at 15% 0, #ffe3f2 0, transparent 38%),
    radial-gradient(circle at 92% 8%, #d9f6ff 0, transparent 34%),
    var(--bg);
  background-attachment: fixed;
}
[data-theme="dark"] body {
  background:
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 18px 18px,
    radial-gradient(900px 480px at 50% -8%, rgba(255, 62, 165, 0.2), transparent 62%),
    radial-gradient(800px 460px at 100% 28%, rgba(24, 213, 255, 0.11), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

/* ===== ヘッダー: ネオン看板 + 電球 ===== */
.site-header {
  background: linear-gradient(180deg, #1b0c48, #0e0630);
  border-bottom: none;
  box-shadow: 0 4px 26px rgba(255, 62, 165, 0.4);
  color: #fff;
}
.site-header::after {
  content: "";
  display: block;
  height: 10px;
  background:
    radial-gradient(circle at 5px 5px, var(--neon-yellow) 2.6px, transparent 3.4px) 0 0 / 20px 10px repeat-x,
    radial-gradient(circle at 15px 5px, var(--neon-pink) 2.6px, transparent 3.4px) 0 0 / 20px 10px repeat-x;
  animation: bulbChase 1.1s steps(1) infinite;
}
@keyframes bulbChase {
  50% { background-position: 10px 0, 10px 0; }
}
.logo {
  font-family: var(--font-pixel);
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #fff;
  text-shadow: 0 0 5px #fff, 0 0 14px var(--neon-pink), 0 0 30px var(--neon-pink);
}
.logo-sub {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--neon-cyan);
  border: 1px solid var(--neon-cyan);
  border-radius: 4px;
  padding: 1px 6px;
  text-shadow: 0 0 6px var(--neon-cyan);
  box-shadow: 0 0 8px rgba(24, 213, 255, 0.45);
  white-space: nowrap;
}
.icon-btn {
  background: #1d1050;
  color: #fff;
  border: 2px solid var(--neon-cyan);
  box-shadow: 0 0 8px rgba(24, 213, 255, 0.4);
}
.icon-btn:hover { background: #2a1a70; }

/* ===== 統計: LEDパネル ===== */
.stat-tile {
  background: var(--screen);
  border: 2px solid var(--cab-edge);
  border-radius: 8px;
  box-shadow: var(--shadow), inset 0 0 14px rgba(24, 213, 255, 0.16);
}
.stat-num {
  font-family: var(--font-pixel);
  font-weight: 400;
  color: var(--neon-green);
  text-shadow: 0 0 8px rgba(57, 255, 136, 0.7);
}
.stat-key { color: #9fb6d8; letter-spacing: 0.06em; }

.today-banner {
  border: 2px solid var(--cab-edge);
  border-radius: 10px;
}

/* ===== ツールバー: フロア案内 ===== */
.search-input,
.sort-select {
  border: 2px solid var(--cab-edge);
  border-radius: 8px;
}
.search-input:focus { box-shadow: 0 0 0 3px rgba(255, 62, 165, 0.35); }

.tag-filter { counter-reset: floor; gap: 8px; }
.tag-chip {
  font-family: var(--font-pixel);
  background: var(--screen);
  color: var(--neon-cyan);
  border: 2px solid var(--cab-edge);
  border-radius: 6px;
  padding: 5px 11px 5px 8px;
  letter-spacing: 0.04em;
  text-shadow: 0 0 6px rgba(24, 213, 255, 0.55);
}
.tag-chip::before {
  content: "ALL";
  margin-right: 6px;
  font-size: 0.68rem;
  color: var(--neon-yellow);
  text-shadow: 0 0 6px rgba(255, 225, 77, 0.7);
}
.tag-chip:not([data-tag="all"])::before {
  counter-increment: floor;
  content: counter(floor) "F";
}
.tag-chip:hover { border-color: var(--neon-pink); color: #fff; }
.tag-chip.active {
  background: var(--neon-pink);
  border-color: #ffd0ea;
  color: #fff;
  box-shadow: 0 0 14px rgba(255, 62, 165, 0.75);
}
.tag-chip.active::before { color: #fff; text-shadow: none; }
.tag-mode-btn { border-radius: 6px; border-width: 2px; font-family: var(--font-pixel); }

.result-count { font-family: var(--font-pixel); letter-spacing: 0.06em; }

/* ===== モーダル・フッター ===== */
.rp-dialog { border: 3px solid var(--cab-edge); }
.rp-caption { font-family: var(--font-pixel); letter-spacing: 0.08em; }
.site-footer { font-size: 0.78rem; }

/* ===== 自己紹介カード ===== */
.profile-card {
  position: relative;
  margin: 0 0 18px;
  padding: 16px 18px 14px;
  background: var(--bg-elevated);
  border: 3px solid var(--cab-edge);
  border-left: 8px solid var(--neon-pink);
  border-radius: 12px;
  box-shadow: var(--shadow);
  font-size: 0.88rem;
  line-height: 1.7;
}
.profile-label {
  margin: 0 0 2px;
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.profile-name {
  margin: 0 0 8px;
  font-family: var(--font-pixel);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}
.profile-role {
  margin-left: 8px;
  padding: 1px 8px;
  vertical-align: middle;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--neon-cyan);
  background: var(--screen);
  border: 1px solid var(--cab-edge);
  border-radius: 4px;
}
.profile-list { margin: 0 0 8px; padding-left: 1.2em; }
.profile-list li + li { margin-top: 3px; }
.profile-count {
  margin: 0 0 6px;
  font-family: var(--font-pixel);
  color: var(--accent);
  letter-spacing: 0.04em;
}
.profile-count:empty { display: none; }
.profile-foot { margin: 0; color: var(--text-muted); }
.profile-foot a { color: var(--accent); font-weight: 700; }

@media (max-width: 700px) {
  .toolbar-right { flex-wrap: wrap; width: 100%; margin-left: 0; gap: 10px; }
  .toolbar-right .sort-select { flex: 1 1 150px; min-width: 0; }
}

@media (max-width: 560px) {
  .header-inner { padding: 14px 12px; }
  .header-controls { gap: 6px; }
  .icon-btn { width: 34px; height: 34px; font-size: 1rem; }
  .logo { font-size: 1.1rem; gap: 4px; letter-spacing: 0.04em; }
  .logo-sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header::after { animation: none; }
}
