:root{
  --bg:#07070b;
  --bg-soft:#0d0d14;
  --surface:rgba(14,14,22,0.72);
  --surface-strong:rgba(18,18,28,0.90);
  --surface-glass:rgba(12,12,20,0.52);
  --text:#f7f3ee;
  --muted:#d8d1c8;
  --line:rgba(255,255,255,0.12);
  --line-strong:rgba(255,255,255,0.20);
  --shadow:0 24px 70px rgba(0,0,0,0.46);
  --shadow-strong:0 36px 100px rgba(0,0,0,0.62);
  --radius:24px;
  --radius-lg:32px;
  --max:1240px;

  --badboy:#d71e2e;
  --badgirl:#ef4ea9;
  --prince:#d6a449;
  --princess:#efbfd8;

  --accent:var(--badboy);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
html,body{margin:0;padding:0}
body{
  font-family:Georgia,"Times New Roman","Times",serif;
  color:var(--text);
  background:
    radial-gradient(circle at top, rgba(255,255,255,0.03), transparent 28%),
    linear-gradient(180deg, #09090d 0%, #07070b 100%);
  line-height:1.55;
  letter-spacing:.005em;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
button,input,textarea,select{font:inherit}

.page{
  position:relative;
  min-height:100vh;
  overflow:hidden;
}
.hero-bg{
  position:absolute;
  inset:0;
  background-position:center center;
  background-size:cover;
  background-repeat:no-repeat;
  transform:scale(1.04);
  filter:saturate(1.05);
}
.hero-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(4,4,8,0.18) 0%, rgba(4,4,8,0.48) 28%, rgba(4,4,8,0.82) 68%, rgba(4,4,8,0.96) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.66) 0%, rgba(0,0,0,0.22) 42%, rgba(0,0,0,0.62) 100%),
    radial-gradient(circle at 20% 12%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 32%);
}

.shell{
  position:relative;
  z-index:2;
  max-width:var(--max);
  margin:0 auto;
  padding:28px 20px 80px;
}

.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin-bottom:54px;
  padding:14px 18px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(8,8,14,0.40);
  backdrop-filter:blur(14px);
  box-shadow:0 10px 30px rgba(0,0,0,0.16);
}
.brand{
  font-size:1rem;
  font-weight:700;
  letter-spacing:.16em;
  text-transform:uppercase;
}
.switcher{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.switcher a{
  padding:8px 14px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(255,255,255,0.04);
  font-size:.88rem;
  transition:background .18s ease, transform .18s ease, border-color .18s ease;
}
.switcher a:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,0.08);
}
.switcher a.active{
  border-color:currentColor;
  box-shadow:0 0 0 1px currentColor inset;
  background:color-mix(in srgb, var(--accent) 14%, rgba(255,255,255,0.03));
}

.hero{
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr);
  gap:30px;
  align-items:end;
  min-height:74vh;
}
.hero-copy{
  max-width:780px;
  padding-bottom:10px;
}
.eyebrow{
  margin:0 0 14px;
  font-size:.88rem;
  letter-spacing:.28em;
  text-transform:uppercase;
  color:#ece2d7;
}
h1{
  margin:0 0 14px;
  font-size:clamp(3rem, 6.3vw, 6.2rem);
  line-height:.94;
  letter-spacing:-.02em;
  text-shadow:0 8px 30px rgba(0,0,0,0.46);
  font-weight:700;
}
.sub{
  margin:0 0 24px;
  max-width:670px;
  font-size:clamp(1.02rem, 1.8vw, 1.22rem);
  color:#f0e8df;
  text-shadow:0 4px 18px rgba(0,0,0,0.35);
}
.cta-row{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin:0 0 22px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:54px;
  padding:0 24px;
  border-radius:999px;
  border:1px solid transparent;
  font-weight:700;
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.btn:hover{transform:translateY(-1px)}
.btn-primary{
  color:#111;
  background:var(--accent);
  box-shadow:0 16px 34px color-mix(in srgb, var(--accent) 36%, transparent);
}
.btn-secondary{
  color:#fff;
  border-color:var(--line);
  background:rgba(255,255,255,0.05);
}
.btn-secondary:hover{
  background:rgba(255,255,255,0.09);
  border-color:var(--line-strong);
}

.hero-card{
  background:var(--surface-glass);
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow);
  backdrop-filter:blur(16px);
  padding:24px;
}
.hero-card h2{
  margin:0 0 10px;
  font-size:1.26rem;
  line-height:1.3;
}
.hero-card p{
  margin:0 0 14px;
  color:var(--muted);
}
.stat{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:11px 0;
  border-top:1px solid var(--line);
  font-size:.96rem;
}
.stat strong{
  font-weight:700;
  text-align:right;
}

.section{
  margin-top:42px;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
}
.card{
  position:relative;
  overflow:hidden;
  background:var(--surface-strong);
  border:1px solid var(--line);
  border-radius:22px;
  box-shadow:var(--shadow);
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover{
  transform:translateY(-3px);
  box-shadow:var(--shadow-strong);
  border-color:color-mix(in srgb, var(--accent) 34%, var(--line));
}
.card .image{
  min-height:260px;
  background-position:center center;
  background-size:cover;
  background-repeat:no-repeat;
}
.card .copy{
  padding:20px 18px 20px;
}
.card h3{
  margin:0 0 8px;
  font-size:1.16rem;
  line-height:1.2;
}
.card p{
  margin:0;
  color:var(--muted);
  font-size:.98rem;
  line-height:1.65;
}

.feature-band{
  position:relative;
  margin-top:42px;
  min-height:420px;
  border-radius:30px;
  overflow:hidden;
  border:1px solid var(--line);
  box-shadow:var(--shadow-strong);
  background:#0d0d14;
}
.feature-band-bg{
  position:absolute;
  inset:0;
  background-position:center center;
  background-size:cover;
  background-repeat:no-repeat;
  transform:scale(1.02);
}
.feature-band-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(6,6,10,0.84) 0%, rgba(6,6,10,0.50) 45%, rgba(6,6,10,0.78) 100%),
    linear-gradient(180deg, rgba(6,6,10,0.08) 0%, rgba(6,6,10,0.42) 100%);
}
.feature-band-copy{
  position:relative;
  z-index:2;
  max-width:650px;
  padding:48px 34px;
}
.feature-band-copy .eyebrow{
  margin-bottom:12px;
}
.feature-band-copy h2{
  margin:0 0 12px;
  font-size:clamp(2rem,4vw,3.6rem);
  line-height:.95;
}
.feature-band-copy p{
  margin:0;
  color:#efe6dc;
  font-size:1.06rem;
  max-width:560px;
  line-height:1.7;
}

.duo{
  margin-top:42px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}
.panel{
  overflow:hidden;
  border-radius:24px;
  border:1px solid var(--line);
  background:var(--surface-strong);
  box-shadow:var(--shadow);
}
.panel-image{
  min-height:300px;
  background-position:center center;
  background-size:cover;
  background-repeat:no-repeat;
}
.panel-copy{
  padding:20px 18px;
}
.panel-copy h3{
  margin:0 0 8px;
  font-size:1.18rem;
  line-height:1.25;
}
.panel-copy p{
  margin:0;
  color:var(--muted);
  line-height:1.7;
}

footer{
  margin-top:42px;
  padding:22px 0 0;
  color:var(--muted);
  font-size:.95rem;
  line-height:1.7;
}

/* image crop helpers */
.image.top,
.panel-image.top,
.feature-band-bg.top{
  background-position:center top;
}

.image.portrait-top{
  min-height:320px;
  background-position:center top;
}

.panel-image.portrait-top{
  min-height:360px;
  background-position:center top;
}

.image.pair-top{
  min-height:300px;
  background-position:center top;
}

.panel-image.pair-top{
  min-height:340px;
  background-position:center top;
}

.feature-band-bg.top{
  background-position:center top;
}

.quiz-modal{
  position:fixed;
  inset:0;
  display:none;
  z-index:60;
}
.quiz-modal.open{display:block}
.quiz-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.78);
  backdrop-filter:blur(8px);
}
.quiz-panel{
  position:relative;
  z-index:2;
  max-width:920px;
  min-height:620px;
  margin:4vh auto;
  border:1px solid rgba(255,255,255,0.14);
  border-radius:30px;
  overflow:hidden;
  box-shadow:0 34px 100px rgba(0,0,0,0.62);
  background:
    linear-gradient(180deg, rgba(8,8,14,0.30) 0%, rgba(8,8,14,0.72) 44%, rgba(8,8,14,0.92) 100%),
    linear-gradient(90deg, rgba(8,8,14,0.84) 0%, rgba(8,8,14,0.50) 50%, rgba(8,8,14,0.84) 100%),
    url("https://badboy.co.jp/images/character_select_background.jpg") center center / cover no-repeat;
}
.quiz-panel::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.08), transparent 32%),
    radial-gradient(circle at bottom right, color-mix(in srgb, var(--accent) 18%, transparent), transparent 28%);
  pointer-events:none;
}
.quiz-head{
  position:relative;
  z-index:2;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:22px 24px;
  border-bottom:1px solid rgba(255,255,255,0.10);
  background:rgba(10,10,16,0.42);
  backdrop-filter:blur(10px);
}
.quiz-title{
  margin:0;
  font-size:1.22rem;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.quiz-close{
  border:0;
  background:none;
  color:#fff;
  font-size:1.6rem;
  line-height:1;
  cursor:pointer;
}
.quiz-body{
  position:relative;
  z-index:2;
  max-width:770px;
  padding:32px 28px 40px;
}
.progress{
  display:inline-block;
  margin:0 0 18px;
  padding:8px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.12);
  background:rgba(255,255,255,0.08);
  color:#f0e7dd;
  font-size:.92rem;
  line-height:1.4;
}
.question{
  margin:0 0 22px;
  font-size:clamp(1.75rem,3vw,2.45rem);
  line-height:1.14;
  text-shadow:0 4px 20px rgba(0,0,0,0.45);
}
.answers{
  display:grid;
  gap:14px;
}
.answer{
  width:100%;
  text-align:left;
  padding:18px 20px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,0.14);
  background:rgba(10,10,16,0.56);
  color:#fff;
  backdrop-filter:blur(10px);
  cursor:pointer;
  font-size:1rem;
  line-height:1.55;
  transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.answer:hover{
  transform:translateY(-1px);
  border-color:var(--accent);
  background:rgba(18,18,28,0.76);
  box-shadow:0 0 0 1px var(--accent) inset, 0 12px 26px rgba(0,0,0,0.32);
}
.result-box{
  position:relative;
  z-index:2;
  max-width:770px;
  padding:48px 28px 54px;
}
.result-box h3{
  margin:0 0 12px;
  font-size:clamp(2rem,4vw,3.2rem);
  line-height:1;
}
.result-box p{
  margin:0 0 20px;
  max-width:560px;
  color:#f0e7dd;
  font-size:1.04rem;
  line-height:1.7;
}
.result-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:54px;
  padding:0 24px;
  border-radius:999px;
  background:var(--accent);
  color:#111;
  font-weight:700;
  box-shadow:0 14px 34px color-mix(in srgb, var(--accent) 34%, transparent);
}

@media (max-width: 1080px){
  .hero{
    grid-template-columns:1fr;
    min-height:auto;
  }
  .hero-card{
    max-width:680px;
  }
  .section{
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width: 760px){
  .shell{
    padding:18px 14px 60px;
  }
  .topbar{
    flex-direction:column;
    align-items:flex-start;
    border-radius:24px;
    margin-bottom:36px;
  }
  .switcher{
    width:100%;
  }
  .section,
  .duo{
    grid-template-columns:1fr;
  }
  .card .image,
  .panel-image{
    min-height:240px;
  }
  .feature-band{
    min-height:340px;
  }
  .feature-band-copy{
    padding:28px 20px;
  }
  .quiz-panel{
    min-height:auto;
    margin:2vh 10px;
  }
  .quiz-body,
  .result-box{
    padding:24px 18px 30px;
  }
  .image.portrait-top{
    min-height:300px;
  }
  .panel-image.portrait-top{
    min-height:320px;
  }
  .image.pair-top{
    min-height:280px;
  }
  .panel-image.pair-top{
    min-height:300px;
  }
}

@media (max-width: 520px){
  h1{
    font-size:2.7rem;
  }
  .question{
    font-size:1.42rem;
    line-height:1.25;
  }
  .answer{
    padding:16px;
    font-size:.98rem;
  }
  .card .image,
  .panel-image{
    min-height:210px;
  }
  .image.portrait-top{
    min-height:260px;
  }
  .panel-image.portrait-top{
    min-height:280px;
  }
  .image.pair-top{
    min-height:240px;
  }
  .panel-image.pair-top{
    min-height:260px;
  }
}
