/* Game1 base (Cut style) */
:root{
  --game-cursor: url('../img/EnemyState1.png') 16 16;
}
html, body{ height:100%; }
body{
  margin:0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  background:#070a14;
  color:#fff;
  overflow-x:hidden;
  cursor: var(--game-cursor), auto;
}

a,
button,
[role="button"],
input[type="button"],
input[type="submit"],
label,
select,
summary{
  cursor: var(--game-cursor), pointer;
}

.page{ width:100%; }
.section{
  min-height: 110vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 40px 16px;
}

.wrap{ width:min(980px, 100%); }

.card{
  position:relative;
  width:100%;
  height:min(78vh, 720px);
  border-radius:26px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.08);
  overflow:hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
}

/* items are positioned by inline left/top percentage */
.item{
  position:absolute;
  transform: translate(-50%, -50%);
  opacity: 0;
}

/* block placeholder */
.block{
  width:min(38vw, 360px);
  height:min(38vw, 360px);
  border-radius: 22px;
  background: rgba(120,160,255,.65);
}

/* text styles */
.text{
  display:inline-block;
  line-height:1.1;
  font-weight:900;
  text-shadow: 0 10px 30px rgba(0,0,0,.55);
  opacity:0;
  transform: translateY(16px);
}
.text.big{
  font-size: clamp(30px, 5vw, 56px);
  padding: 12px 18px;
  border-radius: 18px;
  background: linear-gradient(90deg, #ff2aa5, #ffb300);
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.45));
}
.text.mid{
  font-size: clamp(18px, 3.2vw, 30px);
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(0,0,0,.22);
  border:1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Play state: re-trigger by toggling .play on .cut */
.cut.play .item{ opacity:1; }
.cut.play .slide-left{ animation: slideInLeft .75s cubic-bezier(.2,.8,.2,1) both; }
.cut.play .slide-right{ animation: slideInRight .75s cubic-bezier(.2,.8,.2,1) both; }
.cut.play .text{ animation: floatIn .85s cubic-bezier(.2,.8,.2,1) both; }

/* basic animations */
@keyframes slideInLeft{
  from{ opacity:0; transform: translate(calc(-50% - 60px), -50%); }
  to{ opacity:1; transform: translate(-50%, -50%); }
}
@keyframes slideInRight{
  from{ opacity:0; transform: translate(calc(-50% + 60px), -50%); }
  to{ opacity:1; transform: translate(-50%, -50%); }
}
@keyframes floatIn{
  from{ opacity:0; transform: translateY(16px); }
  to{ opacity:1; transform: translateY(0); }
}

/* ===== Cut00 Hero ===== */
.cut-hero{
  background: radial-gradient(1200px 600px at 30% 25%, rgba(120,160,255,.18), transparent 55%),
              radial-gradient(900px 520px at 70% 60%, rgba(255,60,170,.12), transparent 55%),
              linear-gradient(180deg, rgba(8,10,22,.88), rgba(6,8,18,.96));
}

.hero-bg{
  position:absolute;
  inset:-40%;
  background:
    radial-gradient(circle at 30% 30%, rgba(80,200,255,.22), transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(255,80,190,.18), transparent 42%),
    conic-gradient(from 90deg, rgba(255,255,255,.10), transparent 35%, rgba(255,255,255,.08), transparent 75%);
  filter: blur(18px);
  opacity:.7;
  animation: heroSweep 10s linear infinite;
}

@keyframes heroSweep{
  0%{ transform: translate(-4%, -2%) rotate(0deg); }
  100%{ transform: translate(4%, 2%) rotate(360deg); }
}

.hero-img{
  width:min(44vw, 520px);
  height:auto;
  display:block;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.55));
}

.hero-img-left{ width:min(38vw, 460px); }
.hero-img-right{ width:min(44vw, 520px); }

/* placeholder for missing hero images */
.hero-ph{
  width:min(40vw, 460px);
  height:min(54vw, 520px);
  background: rgba(120,255,210,.22);
  border:1px solid rgba(255,255,255,.10);
}

/* Logo pop-in uses text float animation + extra glow */
.logo-img{
  width:min(62vw, 520px);
  height:auto;
  display:block;
  filter: drop-shadow(0 18px 28px rgba(0,0,0,.55));
  opacity:0;
  transform: translateY(16px) scale(.92);
}
.cut.play .logo-img{
  animation: logoPop .9s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes logoPop{
  from{ opacity:0; transform: translateY(16px) scale(.92); }
  to{ opacity:1; transform: translateY(0) scale(1); }
}

/* tiny breathing on heroes after entrance */
.cut.play .hero-left .hero-img{ animation: slideInLeft .75s cubic-bezier(.2,.8,.2,1) both, breathe 3.6s ease-in-out .9s infinite; }
.cut.play .hero-right .hero-img{ animation: slideInRight .75s cubic-bezier(.2,.8,.2,1) both, breathe 3.6s ease-in-out .9s infinite; }
@keyframes breathe{
  0%,100%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(0,-4px) scale(1.012); }
}

@media (max-width: 720px){
  .card{ height: min(82vh, 720px); }
  .hero-img-left{ width:min(56vw, 420px); }
  .hero-img-right{ width:min(62vw, 460px); }
  .logo-img{ width:min(78vw, 520px); }
}

/* ===== Cut00 composition tweaks (two chars on right, maid over miko) ===== */
.cut00 .hero-miko{ z-index: 2; }
.cut00 .hero-maid{ z-index: 3; }

.cut00 .hero-img-miko{
  width: min(46vw, 520px);
  /* push image to the right so only side face shows */
  transform: translateX(22%);
  opacity: .95;
}
.cut00 .hero-img-maid{
  width: min(54vw, 600px);
}

.cut00 .hero-survival .text.big{
  background: linear-gradient(90deg, #ffb300, #ff2aa5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-img-br{
  width: min(46vw, 420px);
}

/* mobile fine tune */
@media (max-width: 720px){
  .cut00 .hero-img-miko{ width: min(68vw, 520px); transform: translateX(28%); }
  .cut00 .hero-img-maid{ width: min(74vw, 600px); }
  .logo-img-br{ width: min(64vw, 420px); }
}
