/* ─── MINIGAME FOREST SEAMLESS FRIENDLY HEADER (NO BORDER / NO NEON) ─── */
body {
  padding-top: 0 !important;
}

.site-slim-header {
  width: 100% !important;
  background: transparent;
  border: none !important;
  box-shadow: none !important;
  position: relative;
  z-index: 1000;
  margin: 0 0 8px 0 !important;
  padding: 0 !important;
  flex-shrink: 0;
}

.site-slim-header-inner {
  width: 100%;
  max-width: 1040px;
  height: 52px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-slim-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none !important;
  color: #f8fafc;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 800;
  font-size: 0.96rem;
  letter-spacing: 0.01em;
  line-height: 1;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.site-slim-brand:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.site-slim-logo {
  width: 24px !important;
  height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  border-radius: 7px;
  object-fit: contain;
  display: block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.site-slim-name {
  color: #f8fafc;
  background: none;
  -webkit-text-fill-color: #f8fafc;
  font-weight: 800;
}

.site-slim-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: #cbd5e1;
  text-decoration: none !important;
  padding: 6px 14px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: none;
  line-height: 1.25;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.site-slim-back:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.44);
  color: #ffffff;
}

.site-slim-back:active {
  background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 640px) {
  .site-slim-header-inner {
    height: 48px;
    padding: 0 14px;
  }
  .site-slim-brand {
    font-size: 0.9rem;
    gap: 8px;
  }
  .site-slim-logo {
    width: 22px !important;
    height: 22px !important;
  }
  .site-slim-back {
    font-size: 0.75rem;
    padding: 5px 12px;
  }
}

/* ─── CLEAN UNIFIED GAME TITLE (NO GRADIENT / NO AI NEON) ─── */
.game-page-title,
.title-group h1,
h1.game-title {
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: #f8fafc !important;
  color: #f8fafc !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28) !important;
  filter: none !important;
  letter-spacing: -0.015em !important;
}

.game-page-title span,
.title-group h1 span,
h1.game-title span {
  background: none !important;
  -webkit-text-fill-color: #94a3b8 !important;
  color: #94a3b8 !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  white-space: nowrap !important;
  display: inline-block !important;
}

.game-page-title::after,
h1.game-title::after {
  content: '';
  display: block;
  width: 38px;
  height: 3px;
  margin: 8px auto 2px;
  border-radius: 99px;
  background: #34d399;
  opacity: 0.92;
}

.side-panel .game-page-title::after {
  margin: 8px 0 2px;
}

@media (max-width: 900px) {
  .side-panel .game-page-title::after {
    margin: 8px auto 2px;
  }
}

.title-group h1::after {
  content: '';
  display: block;
  width: 38px;
  height: 3px;
  margin: 7px 0 3px;
  border-radius: 99px;
  background: #34d399;
  opacity: 0.92;
}

/* ─── UNIFIED BOTTOM "EXPLORE MORE GAMES" BUTTON ─── */
.back-to-top-wrap {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  margin: 20px auto 32px !important;
  padding: 0 16px !important;
}

.back-to-top-btn,
.back-to-top-btn:visited,
.back-to-top-btn:active {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 44px !important;
  padding: 10px 28px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
  font-family: 'Noto Sans JP', sans-serif !important;
  font-size: 0.88rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.03em !important;
  text-decoration: none !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.24) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  touch-action: manipulation !important;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.16s ease, box-shadow 0.18s ease !important;
}

.back-to-top-btn:hover {
  background: rgba(52, 211, 153, 0.14) !important;
  border-color: rgba(52, 211, 153, 0.48) !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32) !important;
}

/* ─── MONOCHROME FINE-LINE SVG ICONS (UNIFIED ACROSS ALL 25 GAMES) ─── */
.mg-has-ico {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
}

.mg-ico {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  color: currentColor;
  opacity: 0.88;
}

.icon-only .mg-ico,
.sound-btn .mg-ico,
.icon-btn .mg-ico {
  width: 17px;
  height: 17px;
}

.mg-lbl {
  line-height: 1.1;
}

/* ─── UNIFIED TOOLBAR & FULLSCREEN STAGE FOR EARLY GAMES ─── */
.early-arcade-stage {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.mg-toolbar {
  width: 100%;
  max-width: 560px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.mg-tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 23, 42, 0.82);
  color: #cbd5e1;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.mg-tool-btn:hover {
  background: rgba(30, 41, 59, 0.96);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

/* ─── UNIFIED FULLSCREEN STAGE (ALL 26 GAMES: PC + ANDROID + iOS SAFARI) ─── */
.early-arcade-stage:fullscreen,
.early-arcade-stage:-webkit-full-screen,
.early-arcade-stage.mg-pseudo-fullscreen,
#stageWrap:fullscreen,
#stageWrap:-webkit-full-screen,
#stageWrap.mg-pseudo-fullscreen,
#stageCard:fullscreen,
#stageCard:-webkit-full-screen,
#stageCard.mg-pseudo-fullscreen,
#arcadeStage:fullscreen,
#arcadeStage:-webkit-full-screen,
#arcadeStage.mg-pseudo-fullscreen {
  background: #111827 !important;
  width: 100vw !important;
  height: 100dvh !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  padding: max(14px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: auto !important;
  box-sizing: border-box !important;
}

.mg-pseudo-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;
}

html.mg-fs-lock,
body.mg-fs-lock {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

.mg-fs-exit-fab {
  position: fixed !important;
  top: max(10px, env(safe-area-inset-top)) !important;
  right: max(10px, env(safe-area-inset-right)) !important;
  z-index: 10020 !important;
  width: auto !important;
  max-width: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 7px 12px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  background: rgba(15, 23, 42, 0.84) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  color: #f8fafc !important;
  font-family: 'Noto Sans JP', sans-serif !important;
  font-size: 0.76rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.42) !important;
  touch-action: manipulation !important;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.14s ease !important;
}

.mg-fs-exit-fab:hover {
  background: rgba(30, 41, 59, 0.96) !important;
  border-color: rgba(52, 211, 153, 0.55) !important;
  color: #ffffff !important;
}

.mg-fs-exit-fab:active {
  transform: scale(0.95) !important;
}

.mg-fs-exit-fab .mg-ico {
  width: 14px !important;
  height: 14px !important;
  opacity: 0.95 !important;
}

.early-arcade-stage:fullscreen #wrap,
.early-arcade-stage:-webkit-full-screen #wrap,
.early-arcade-stage.mg-pseudo-fullscreen #wrap {
  max-height: calc(100dvh - 120px) !important;
}

.early-arcade-stage:fullscreen #gc,
.early-arcade-stage:-webkit-full-screen #gc,
.early-arcade-stage.mg-pseudo-fullscreen #gc {
  max-height: calc(100dvh - 165px) !important;
  width: auto !important;
  max-width: 96vw !important;
  margin: 0 auto !important;
}

#stageCard:fullscreen > *:not(.mg-fs-exit-fab),
#stageCard:-webkit-full-screen > *:not(.mg-fs-exit-fab),
#stageCard.mg-pseudo-fullscreen > *:not(.mg-fs-exit-fab) {
  max-width: min(760px, 96vw);
  width: 100%;
}

#stageCard:fullscreen .stage-wrap,
#stageCard:-webkit-full-screen .stage-wrap,
#stageCard.mg-pseudo-fullscreen .stage-wrap {
  max-height: calc(100dvh - 175px);
}

#stageCard:fullscreen .stage-wrap canvas,
#stageCard:-webkit-full-screen .stage-wrap canvas,
#stageCard.mg-pseudo-fullscreen .stage-wrap canvas {
  max-height: calc(100dvh - 180px);
}

#arcadeStage:fullscreen > .game-shell,
#arcadeStage:-webkit-full-screen > .game-shell,
#arcadeStage.mg-pseudo-fullscreen > .game-shell {
  max-width: min(1120px, 98vw);
  width: 100%;
}

/* ─── UNIFIED MODERN SLATE DESIGN FOR INFO CARDS, RELATED CARDS & STAGE SHELLS ─── */
.info-container {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.info-card {
  background: #182234 !important;
  border: 1px solid rgba(255, 255, 255, 0.085) !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.info-title {
  color: #f8fafc !important;
  font-weight: 800 !important;
  border-bottom: none !important;
  padding-bottom: 0 !important;
  padding-left: 11px !important;
  border-left: 3px solid #34d399 !important;
}

.info-text,
.info-list,
.info-list li {
  color: #cbd5e1 !important;
}

.info-text strong,
.info-text b,
.info-list strong,
.info-list b {
  color: #f8fafc !important;
}

.info-item {
  background: rgba(15, 23, 42, 0.56) !important;
  border: 1px solid rgba(255, 255, 255, 0.075) !important;
  border-radius: 12px !important;
}

.info-item-title {
  color: #f8fafc !important;
}

.info-item-desc {
  color: #cbd5e1 !important;
}

.related-card,
.rel-card {
  background: rgba(15, 23, 42, 0.62) !important;
  border: 1px solid rgba(255, 255, 255, 0.085) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}

.related-card:hover,
.rel-card:hover {
  border-color: rgba(52, 211, 153, 0.48) !important;
  background: #1e2a40 !important;
}

.related-card-name,
.rel-title {
  color: #f8fafc !important;
}

.rel-sub {
  color: #94a3b8 !important;
}

.stage-card:not(.rush):not(.state-perfect):not(.state-good):not(.state-miss) {
  background: #182234 !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
}

/* ─── REFINED MONOCHROME SHARE BAR (EARLY GAMES CLEANUP) ─── */
.share-container {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  margin: 14px auto 2px !important;
  padding: 0 16px !important;
}

.share-container .share-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  touch-action: manipulation !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  color: #cbd5e1 !important;
  box-shadow: none !important;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease !important;
}

.share-container .share-btn svg {
  width: 16px !important;
  height: 16px !important;
}

.share-container .share-btn:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.30) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: none !important;
}

.share-container .share-btn.copied,
.share-container .share-btn.copied:hover {
  background: rgba(16, 185, 129, 0.22) !important;
  border-color: rgba(52, 211, 153, 0.72) !important;
  color: #34d399 !important;
  transform: scale(1.06) !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.22) !important;
}

.mg-copy-toast {
  position: fixed;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  transform: translate(-50%, 10px);
  opacity: 0;
  pointer-events: none;
  z-index: 10050;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #f8fafc;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.mg-copy-toast .mg-ico {
  width: 15px;
  height: 15px;
  color: #34d399;
  opacity: 1;
}

.mg-copy-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ─── UNIFIED SUBTLE MODERN DARK BACKGROUND ACROSS ALL PAGES ─── */
html {
  background-color: #111827;
}

body {
  position: relative;
  isolation: isolate;
  background-color: #111827 !important;
  background-image: none !important;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: #111827;
  background-image: radial-gradient(ellipse 75% 42% at 50% -14%, rgba(16, 185, 129, 0.11), transparent 72%);
}

/* ─── MANUAL AD SLOT (BELOW GAME & EXPLORE BUTTON, NEVER ABOVE GAME) ─── */
.mg-ad-bottom-wrap {
  width: 100%;
  max-width: 780px;
  margin: 0 auto 24px;
  padding: 0 12px;
  text-align: center;
  min-height: 0;
}

.mg-ad-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #64748b;
  margin-bottom: 6px;
}

@media print {
  .mg-ad-bottom-wrap {
    display: none !important;
  }
}



