
body{
  margin:0;
  padding:20px;
  font-family:-apple-system,BlinkMacSystemFont,'Hiragino Sans','Yu Gothic',sans-serif;
  background:linear-gradient(#AEE8FF,#EAF8FF);
  min-height:100vh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
}
.card{
  background:#fff;
  width:clamp(320px,88vw,560px);
  max-width:560px;
  border-radius:36px;
  padding:24px;
  text-align:center;
  box-shadow:0 12px 30px rgba(0,0,0,.08);
  margin:12px 0;
}

@media (max-width:420px){
  .card{ width:calc(100% - 40px); }
}
.story{
  text-align:left;
  margin-top:16px;
}
.story p{
  margin:0 0 1em;
  color:#607d8b;
  line-height:1.8;
  font-size:18px;
}
.story p.scene-title{
  font-size:clamp(24px,5vw,32px);
  font-weight:700;
  color:#4f7b98;
  margin:1.4em 0 0.9em;
}
.raindrops{color:#9edcff;font-size:28px;}
.potamo{font-size:72px;line-height:1;}
h1{
color:#78cffa;
font-size:clamp(38px,8vw,52px);
line-height:1.15;
margin:12px 0 20px;
word-break:keep-all;
}
/* slightly smaller h1 inside cards */
.card h1{
  font-size:clamp(28px,6vw,40px);
}

/* h2 inside cards: size between h1 and p */
.card h2{
  font-size:clamp(20px,4.5vw,28px);
  line-height:1.2;
  margin:10px 0 12px;
}
.story{
  text-align:left;
  margin-top:16px;
}
.story p{
  margin:0 0 1em;
  color:#607d8b;
  line-height:1.8;
  font-size:18px;
}
.story p.scene-title{
  font-size:clamp(24px,5vw,32px);
  font-weight:700;
  color:#4f7b98;
  margin:1.4em 0 0.9em;
}
.lead{color:#6f8898;line-height:1.8;}
label{display:block;color:#78cffa;font-weight:bold;margin-top:20px;}
input{
width:90%;
padding:14px;
border-radius:999px;
border:2px solid #cfefff;
}
button{
margin-top:18px;
padding:16px 30px;
border:none;
border-radius:999px;
background:#8ADFFF;
color:white;
font-size:20px;
}
.resultCard{
margin-top:24px;
background:#f8fdff;
border:2px solid #e5f7ff;
border-radius:24px;
padding:20px;
position:relative;
}
.username{color:#78cffa;font-weight:bold;}
.fortuneBadge{
display:inline-block;
margin:12px 0;
padding:10px 22px;
background:#dff5ff;
border-radius:999px;
color:#67bee8;
font-weight:bold;
font-size:clamp(24px,6vw,32px);
}
.text,.comment{line-height:1.8;color:#607d8b;}
.footer{margin-top:20px;color:#7b97a7;font-size:14px;}
.site-logo{
width:100%;
max-width:420px;
height:auto;
display:block;
margin:0 auto 20px;
}
/* レアリティ別カード */
.resultCard.normal{
background:#f8fdff;
border:2px solid #e5f7ff;
}
.resultCard.rare{
background:linear-gradient(
90deg,
#fff8c6,
#ffe082
);
border:2px solid #ffd54f;
}
.resultCard.superRare{
background:linear-gradient(
90deg,
#e1d5ff,
#c5b3ff
);
border:2px solid #9575cd;
}
.resultCard.legendary{
background:linear-gradient(
135deg,
#ffd700,
#ffb300
);
border:2px solid #ff8f00;
color:#fff;
}
.resultCard.legendary .username,
.resultCard.legendary .text,
.resultCard.legendary .comment,
.resultCard.legendary .fortuneBadge{
color:#fff;
}
.saveButton{
margin-top:16px;
background:#7fd6ff;
}
.fortuneImage{
width:100%;
max-width:420px;
display:block;
margin:20px auto 0;
border-radius:20px;
cursor:pointer;
}

/* novel image styling */
.novel-image{
  width:100%;
  max-width:360px;
  height:auto;
  display:block;
  margin:12px auto;
  border-radius:16px;
}
