*{
  box-sizing:border-box;
}

html,body{
  margin:0;
  min-height:100%;
  background:#02040a;
  color:#4fc3ff;
  font-family:
    "Cascadia Code",
    "IBM Plex Mono",
    "Fira Code",
    "Consolas",
    monospace;
}

body{
  padding:40px 20px 120px;
  overflow-y:auto;
  background:
    radial-gradient(circle at 50% -20%, #0b1d3a, #02040a 60%),
    repeating-linear-gradient(
      0deg,
      rgba(79,195,255,.05) 0px,
      rgba(79,195,255,.05) 1px,
      transparent 1px,
      transparent 4px
    );
  position:relative;
}

.terminal{
  position:relative;
  width:720px;
  max-width:100%;
  margin:auto;
  padding:70px 28px 32px;
  border:1px solid rgba(79,195,255,.4);
  background:rgba(2,6,15,.85);
  box-shadow:
    0 0 10px rgba(79,195,255,.4),
    0 0 40px rgba(79,195,255,.15) inset;
  transition:opacity .4s ease;
}

.terminal-header{
  position:absolute;
  top:14px;
  left:18px;
  right:18px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:11px;
  letter-spacing:.2em;
  opacity:.7;
}

.header-left{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}

.logo img{
  height:42px;
  opacity:.9;
  display:block;
  filter:drop-shadow(0 0 6px rgba(79,195,255,.35));
}

.header-title{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

#console{
  line-height:2;
  font-size:15px;
  letter-spacing:.04em;
  text-shadow:
    0 0 6px rgba(79,195,255,.9),
    0 0 14px rgba(79,195,255,.4);
}

.line{
  opacity:0;
  transform:translateY(6px);
  animation:fade .35s forwards;
  margin-bottom:6px;
}

@keyframes fade{
  to{
    opacity:1;
    transform:none;
  }
}

.status{
  display:flex;
  gap:12px;
  align-items:center;
}

.spinner{
  width:1ch;
}

.input-label{
  margin-top:18px;
  margin-bottom:8px;
}

.input-box{
  display:inline-block;
  border:1px solid #4fc3ff;
  padding:6px 8px;
  width:200px;
  box-shadow:0 0 8px rgba(79,195,255,.3) inset;
}

input{
  background:none;
  border:none;
  outline:none;
  color:#4fc3ff;
  font:inherit;
  width:100%;
}

input::placeholder{
  color:rgba(79,195,255,.55);
}

button{
  margin-top:14px;
  padding:8px 14px;
  background:none;
  border:1px solid #4fc3ff;
  color:#4fc3ff;
  cursor:pointer;
  font:inherit;
  letter-spacing:.1em;
  transition:.2s;
}

button:hover{
  background:#4fc3ff;
  color:#02040a;
  box-shadow:0 0 10px #4fc3ff;
}

button:disabled{
  opacity:.45;
  cursor:default;
  background:none;
  color:#4fc3ff;
  box-shadow:none;
}

.warning{
  margin-top:8px;
  font-size:13px;
  color:#9edfff;
  opacity:.9;
  min-height:1.8em;
}

.button-wrap{
  margin-top:20px;
}

.site-footer{
  width:720px;
  max-width:calc(100% - 40px);
  margin:42px auto 0;
  text-align:center;
  color:rgba(79,195,255,.85);
  opacity:0;
  transform:translateY(12px);
  pointer-events:none;
  transition:opacity .6s ease, transform .6s ease;
}

.site-footer.show{
  opacity:1;
  transform:none;
}

.page-number{
  text-align:right;
  margin-bottom:14px;
  font-size:13px;
  letter-spacing:.18em;
  opacity:.65;
  text-shadow:
    0 0 3px rgba(79,195,255,.45),
    0 0 6px rgba(79,195,255,.25);
}

.footer-line{
  width:100%;
  height:1px;
  background:rgba(79,195,255,.45);
  box-shadow:0 0 8px rgba(79,195,255,.25);
  margin:0 auto 18px;
}

.copyright{
  font-size:14px;
  letter-spacing:.18em;
  margin-bottom:10px;
  opacity:.7;
  text-shadow:
    0 0 3px rgba(79,195,255,.35);
}

.disclaimer{
  font-size:12px;
  line-height:1.9;
  opacity:.6;
  letter-spacing:.05em;
}

/* 起動中はUIを隠す */
body.booting .terminal{
  opacity:0;
  pointer-events:none;
}

body.booting .site-footer{
  opacity:0;
  pointer-events:none;
}

/* 分裂ロゴ演出 */
.intro-visual{
  position:fixed;
  inset:0;
  z-index:9999;
  background:#02040a;
  overflow:hidden;
  opacity:1;
  transition:opacity .8s ease, visibility .8s ease;
}

.intro-img{
  position:absolute;
  top:50%;
  left:50%;
  opacity:0;
  transition:
    opacity .35s ease,
    transform 1.5s ease;
  filter:
    drop-shadow(0 0 12px rgba(79,195,255,.75))
    drop-shadow(0 0 32px rgba(79,195,255,.28));
}

/* 初期位置：中央に寄せて配置 */
.imgA{
  width:120px;
  transform:translate(calc(-50% - 36px), -50%);
}

.imgC{
  width:160px;
  transform:translate(-50%, -50%);
}

.imgB{
  width:120px;
  transform:translate(calc(-50% + 36px), -50%);
}

/* 表示 */
.intro-visual.show .intro-img{
  opacity:1;
}

/* move後：中央から外へ開く */
.intro-visual.move .imgA{
  transform:translate(calc(-50% - 180px), -50%);
}

.intro-visual.move .imgC{
  transform:translate(-50%, -50%);
}

.intro-visual.move .imgB{
  transform:translate(calc(-50% + 180px), -50%);
}

/* 消える */
.intro-visual.hide{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}