:root{
  --zoom: 1;

  --bg: #0f0f10;
  --panel: #1b1b1d;
  --panel-soft: #232326;
  --border: #333;
  --text-main: #f2f2f2;
  --text-sub: #a7a7a7;

  --accent-hero: #7fc7ff;
  --radius: 14px;

  --splash-matte: #171817;
}

/* ★スクロールバーの席を常に確保して“横幅の変動”を消す */
html{
  scrollbar-gutter: stable;
}

*{ box-sizing:border-box; }

body{
  margin: 0;
  position: relative;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text-main);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  zoom: var(--zoom);
}

/* βロック[クルチョンスラッシュもしっかり消さないとバグる] battleと同じ“薄い夜景” */
/*body::before{
  content:"";
  position: fixed;
  inset: 0;
  background-image: url("../../bg/orenoyakei.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}
*/
.page{
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 14px 64px;
  position: relative;
  z-index: 1;
}

.turn-block{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 14px 16px;
  margin-bottom: 14px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.28);
  position: relative;
  overflow: hidden;
}

.glow > *{ position: relative; z-index: 2; }

.glow::before{
  content:"";
  position:absolute;
  inset:-30% -30%;
  background: radial-gradient(closest-side, var(--glow2, rgba(255,255,255,0.03)), transparent 70%);
  transform: translate(-18%, 22%);
  pointer-events:none;
  z-index: 1;
}
.glow::after{
  content:"";
  position:absolute;
  inset:-40% -40%;
  background: radial-gradient(closest-side, var(--glow, rgba(127,199,255,0.10)), transparent 70%);
  transform: translate(35%, -15%);
  pointer-events:none;
  z-index: 1;
}

.glow-blue   { --glow: rgba(127,199,255,0.14); --glow2: rgba(127,199,255,0.06); }
.glow-cyan   { --glow: rgba(140,235,255,0.12); --glow2: rgba(140,235,255,0.05); }
.glow-gold   { --glow: rgba(255,220,150,0.12); --glow2: rgba(255,220,150,0.05); }
.glow-purple { --glow: rgba(185,140,255,0.12); --glow2: rgba(185,140,255,0.05); }
.glow-red    { --glow: rgba(255,121,121,0.11); --glow2: rgba(255,121,121,0.04); }
.glow-green  { --glow: rgba(140,255,200,0.10); --glow2: rgba(140,255,200,0.04); }

.hero{ text-align: center; }
.hero__meta{
  position:absolute;
  top: 12px;
  right: 12px;
  display:flex;
  gap:10px;
  align-items:center;
  z-index: 3;
}
.hero__sub{
  margin-top: 12px;
  color: var(--text-sub);
  line-height: 1.45;
  font-size: 0.95rem;
}

.logoWrap{
  width: min(920px, 100%);
  margin: 2px auto 0;
  padding: 12px 14px;
  background: rgba(0,0,0,0.18);
  border: 1px solid #2f2f32;
  border-radius: 16px;
}
.logo{
  width: 100%;
  height: auto;
  display:block;
  filter: none;
}
 /*.logo.is-hidden{ opacity: 0; }*//*βロック*/

.block-head{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:10px;
  margin-bottom: 10px;
}
.block-title{
  font-weight: 700;
  color: var(--text-sub);
  font-size: 0.98rem;
  letter-spacing: .04em;
}

.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 920px){
  .split{ grid-template-columns: 1fr; }
  .hero__meta{ position: static; justify-content: center; margin-bottom: 10px; }
}

.stats-row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 520px){
  .stats-row{ grid-template-columns: 1fr; }
}

.soft-card{
  background: var(--panel-soft);
  border-radius: 12px;
  padding: 12px;
  border: 1px solid #2f2f32;
}

.big-num{
  font-weight: 900;
  font-size: 2.0rem;
  letter-spacing: .02em;
}

.lead{ line-height: 1.7; }

.small{
  color: var(--text-sub);
  font-size: 0.88rem;
  line-height: 1.35;
}

.cta-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom: 10px;
}

.form{ display:grid; gap:10px; }
.field{ display:grid; gap:6px; }
.field span{ color: var(--text-sub); font-size: 0.9rem; }

.input{
  background: #101012;
  border: 1px solid #3a3a3a;
  color: var(--text-main);
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
}

.btn{
  background: #101012;
  border: 1px solid #3a3a3a;
  color: var(--text-main);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}
.btn:hover{ filter: brightness(1.07); }
.btn:active{ transform: translateY(1px); }
.btn.primary{
  border-color: rgba(127,199,255,0.55);
  box-shadow: 0 0 0 1px rgba(127,199,255,0.12) inset;
}

.tabs{ display:flex; gap:10px; flex-wrap:wrap; margin: 6px 0 10px; }
.tab{
  background: transparent;
  border: 1px solid #3a3a3a;
  color: var(--text-main);
  border-radius: 999px;
  padding: 8px 12px;
  cursor:pointer;
}
.tab.is-active{
  border-color: rgba(127,199,255,0.55);
  box-shadow: 0 0 0 1px rgba(127,199,255,0.12) inset;
}

.tabPanel{ display:none; }
.tabPanel.is-active{ display:block; }

.badge{
  display:inline-block;
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--text-sub);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.85rem;
}
.badge.beta{
  border-color: rgba(255, 220, 150, 0.35);
  color: rgba(255, 220, 150, 0.95);
}
.chip{
  display:inline-block;
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--text-sub);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.85rem;
  background: rgba(0,0,0,0.18);
}

.links{ display:flex; gap:12px; flex-wrap:wrap; margin-top: 8px; }
.link{ color: var(--accent-hero); text-decoration: underline; }

/* ===== スプラッシュ ===== */
/* overflow をいじらない（スクロールバーの出現/消滅で座標が動くのを防ぐ） */

#splash{
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;

  /* ★裏のクリック/操作をブロック */
  pointer-events: all;
}

#splash .splash-matte{
  position: absolute;
  inset: 0;
  background: var(--splash-matte);
}

#splash .splash-logo-move{
  position: absolute;
  left: 0;
  top: 0;
  width: 10px;
  height: 10px;
  overflow: visible;
  transform: translate(0px, 0px);
  transform-origin: top left;
}

#splash .splash-logo-scale{
  width: 100%;
  height: 100%;
  transform: scale(1);
  transform-origin: top left;
}

#splash .splash-logo-scale > img{
  width: 100%;
  height: 100%;
  display: block;
  filter: none;
  background: transparent;
  object-fit: fill;
}
