: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;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text-main);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  zoom: var(--zoom);
}


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;
  width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 14px 0;
  display: flex;
  flex-direction: column;
  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;
}
#auth-notice{
  display: none;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(127,199,255,0.28);
  background: rgba(127,199,255,0.10);
  color: #eaf5ff;
}
#auth-notice.is-active{
  display: block;
}
#auth-notice.is-error{
  border-color: rgba(255,121,121,0.34);
  background: rgba(255,121,121,0.12);
  color: #ffe9e9;
}

.cta-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom: 10px;
}

.form{ display:grid; gap:10px; }
.auth-google-wrap{
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}
.auth-link-inline{
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  color: #d8e7ff;
  font-size: 0.92rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.auth-link-inline:hover{
  color: #ffffff;
}
#google-link-form{
  margin-top: 12px;
}
.auth-sub-actions{
  margin-top: 10px;
}
.auth-sub-actions a{
  color: #d8e7ff;
  text-underline-offset: 3px;
}
.auth-sub-actions a:hover{
  color: #ffffff;
}
#forgot-box,
#resend-box{
  margin-top: 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;
}
.google-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  background: #ffffff;
  color: #1f1f1f;
  border-color: rgba(255,255,255,0.72);
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}
.google-btn::before{
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23FFC107' d='M43.611 20.083H42V20H24v8h11.303C33.654 32.657 29.244 36 24 36c-6.627 0-12-5.373-12-12S17.373 12 24 12c3.059 0 5.842 1.154 7.961 3.039l5.657-5.657C34.053 6.053 29.277 4 24 4 12.955 4 4 12.955 4 24s8.955 20 20 20 20-8.955 20-20c0-1.341-.138-2.651-.389-3.917z'/%3E%3Cpath fill='%23FF3D00' d='M6.306 14.691l6.571 4.819C14.655 15.108 18.961 12 24 12c3.059 0 5.842 1.154 7.961 3.039l5.657-5.657C34.053 6.053 29.277 4 24 4c-7.682 0-14.327 4.337-17.694 10.691z'/%3E%3Cpath fill='%234CAF50' d='M24 44c5.176 0 9.86-1.977 13.409-5.192l-6.19-5.238C29.143 35.091 26.715 36 24 36c-5.223 0-9.62-3.317-11.283-7.946l-6.522 5.025C9.53 39.556 16.227 44 24 44z'/%3E%3Cpath fill='%231976D2' d='M43.611 20.083H42V20H24v8h11.303c-.793 2.242-2.231 4.166-4.085 5.571l.003-.002 6.19 5.238C37.17 38.589 44 34 44 24c0-1.341-.138-2.651-.389-3.917z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.google-btn:hover{
  background: #f7f7f7;
  filter: none;
}
.auth-google-wrap .google-btn,
#google-link-form .google-btn{
  width: 100%;
}

.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;
}
