/* Shared ChibiTales opening screen for catalog entries and browser game builds. */
.ct-intro-page {margin:0;background:#160e22}
.ct-intro {
  box-sizing:border-box;
  display:grid;
  justify-items:center;
  align-content:center;
  gap:clamp(8px,2vh,19px);
  min-height:100vh;
  min-height:100dvh;
  padding:clamp(16px,4vw,40px);
  text-align:center;
  overflow:hidden;
  color:#f7edf9;
  font-family:system-ui,sans-serif;
  background:radial-gradient(ellipse at 50% 38%,#4c2059 0%,#22152d 46%,#110d1a 80%);
}
.ct-intro__wordmark {
  margin:0;
  color:#f9ebf5;
  font-size:clamp(2.7rem,10vw,6.6rem);
  font-weight:950;
  letter-spacing:-.075em;
  line-height:.98;
  text-shadow:0 .045em 0 #973a69,0 .095em .21em #110919;
}
.ct-intro__wordmark span {color:#ff70a3}
.ct-intro__game,.ct-intro__status,.ct-intro__access {margin:0}
.ct-intro__game {
  color:#e9d8eb;
  font-size:clamp(1rem,3vw,1.35rem);
  font-weight:720;
}
.ct-intro__meter {
  position:relative;
  box-sizing:border-box;
  width:min(70vw,335px);
  padding:5px;
  margin:clamp(10px,2vh,24px) 10px 0 0;
  border:2px solid #f29ac5;
  border-radius:8px;
  background:#24152d;
  box-shadow:0 0 18px #e16caa4d;
}
.ct-intro__meter::after {
  position:absolute;
  inset:calc(28% - 1px) auto calc(28% - 1px) 100%;
  content:"";
  width:8px;
  border:2px solid #f29ac5;
  border-left:0;
  border-radius:0 4px 4px 0;
  background:#f29ac566;
}
.ct-intro__battery {
  display:block;
  width:100%;
  height:clamp(15px,4vh,27px);
  appearance:none;
  border:0;
  border-radius:3px;
  background:#281d32;
  overflow:hidden;
}
.ct-intro__battery::-webkit-progress-bar {background:#281d32}
.ct-intro__battery::-webkit-progress-value {
  background:repeating-linear-gradient(90deg,#91fae2 0 15px,#458d86 15px 19px);
}
.ct-intro__battery::-moz-progress-bar {
  background:repeating-linear-gradient(90deg,#91fae2 0 15px,#458d86 15px 19px);
}
.ct-intro__battery:indeterminate {
  background:repeating-linear-gradient(90deg,#795174 0 15px,#32243b 15px 19px);
}
.ct-intro__battery:indeterminate::-webkit-progress-bar {
  background:repeating-linear-gradient(90deg,#b2f2df 0 15px,#355c60 15px 19px);
  background-size:76px 100%;
  animation:ct-boot-pulse 2.1s linear infinite;
}
.ct-intro__battery:indeterminate::-moz-progress-bar {
  background:repeating-linear-gradient(90deg,#b2f2df 0 15px,#355c60 15px 19px);
  background-size:76px 100%;
  animation:ct-boot-pulse 2.1s linear infinite;
}
.ct-intro__status {color:#efcfeb;font-size:.95rem}
.ct-intro__mascot {
  display:block;
  width:clamp(65px,21vh,140px);
  height:auto;
  aspect-ratio:1;
  border-radius:50%;
  object-fit:contain;
  background:#281c32;
  border:2px solid #c069a0;
  box-shadow:0 0 19px #f477b64d;
  animation:ct-boot-coin 3.2s ease-in-out infinite;
}
.ct-intro__links {
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:.65em 1.1em;
}
.ct-intro__links a {
  color:#f8d8ed;
  text-underline-offset:3px;
  font-weight:620;
}
.ct-intro :is(a,button):focus-visible {
  outline:3px solid #a4ffe9;
  outline-offset:4px;
  border-radius:3px;
}
.ct-intro__access {color:#d1bccf;font-size:.84rem}
@keyframes ct-boot-pulse {to {background-position:76px 0}}
@keyframes ct-boot-coin {
  0%,100% {transform:perspective(300px) rotateY(0deg)}
  50% {transform:perspective(300px) rotateY(180deg)}
}
@media(prefers-reduced-motion:reduce) {
  .ct-intro__mascot {animation:none}
  .ct-intro__battery:indeterminate::-webkit-progress-bar {animation:none}
  .ct-intro__battery:indeterminate::-moz-progress-bar {animation:none}
}
.ct-intro[data-ct-reduce=true] .ct-intro__mascot {animation:none}
.ct-intro[data-ct-reduce=true] .ct-intro__battery:indeterminate::-webkit-progress-bar {animation:none}
.ct-intro[data-ct-reduce=true] .ct-intro__battery:indeterminate::-moz-progress-bar {animation:none}

.ct-play-access__title { margin: .4rem 0; font-size: 1.5rem; }
.ct-play-access { width: min(100%, 31rem); margin-inline: auto; }
.ct-play-access__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .65rem; margin: 1rem 0; }
.ct-play-access__actions form { margin: 0; }
.ct-play-access .ct-play-access__button {
  display: inline-block;
  padding: .7rem 1rem;
  border: 1px solid #ad76b9;
  border-radius: .65rem;
  background: #f8ddfc;
  color: #321b40;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}
.ct-play-access__help { font-size: .9rem; }
.ct-play-access__help a { text-decoration: underline; text-underline-offset: .18em; }
.ct-play-access :is(a, button):focus-visible { outline: 3px solid #dfa441; outline-offset: 3px; }
