/* 開機：夜色中校徽亮起、標題掃光、字塊環繞，「按 Enter／A 開始」呼吸閃動 */
.screen-boot { display: grid; place-items: center; padding: 16px var(--gutter) 32px; text-align: center; overflow: hidden; }
.boot-stage { display: flex; flex-direction: column; align-items: center; }

.boot-emblem { position: relative; width: clamp(150px, 22vh, 210px); aspect-ratio: 1; margin-bottom: clamp(20px, 3.6vh, 36px); }
.boot-halo {
  position: absolute; inset: -70%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(247, 208, 84, .38), rgba(154, 114, 220, .26) 50%, transparent 74%);
  animation: halo-breathe 5s ease-in-out infinite;
}
/* 旋轉的光環 */
.boot-ring {
  position: absolute; inset: 2%; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 8%, #fff 14%, var(--yellow) 22%, transparent 34% 52%, #c7a8ff 62%, var(--purple) 70%, transparent 80% 100%);
  animation: spin 7s linear infinite;
  filter: drop-shadow(0 0 14px rgba(247, 208, 84, .6));
  -webkit-mask: radial-gradient(closest-side, transparent 86%, #000 88%);
  mask: radial-gradient(closest-side, transparent 86%, #000 88%);
}
.boot-disc {
  position: absolute; inset: 11%; border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #ffffff, #f7f1e4 62%, #e6dcc8);
  display: grid; place-items: center;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .5), 0 0 60px rgba(247, 208, 84, .35), inset 0 -8px 18px rgba(46, 35, 64, .15);
  transition: transform .5s var(--ease);
}
.boot-logo { width: 64%; height: auto; filter: drop-shadow(0 4px 8px rgba(46, 35, 64, .25)); }

/* 字塊：中文學習的小積木，圍着校徽浮動 */
.boot-block {
  position: absolute; width: 25%; aspect-ratio: 1; border-radius: 24%;
  display: grid; place-items: center;
  font-size: clamp(18px, 3vh, 26px); font-weight: 900; color: #fff;
  box-shadow: 0 14px 28px -10px rgba(0, 0, 0, .6), inset 0 -4px 0 rgba(0, 0, 0, .18), inset 0 3px 0 rgba(255, 255, 255, .35), 0 0 24px -4px currentColor;
  animation: float 5s ease-in-out infinite;
}
.boot-block.b1 { left: -46%; top: 8%; background: linear-gradient(150deg, #b18cf0, #6b4796); rotate: -12deg; }
.boot-block.b2 { right: -44%; top: -6%; background: linear-gradient(150deg, #ffe07a, #f0b429); color: var(--on-yellow); rotate: 10deg; animation-delay: -1.2s; }
.boot-block.b3 { left: -30%; bottom: -16%; background: linear-gradient(150deg, #8fdc7a, #3f9a4d); rotate: 8deg; animation-delay: -2.4s; width: 21%; }
.boot-block.b4 { right: -32%; bottom: -10%; background: linear-gradient(150deg, #ffb59b, #e66a55); rotate: -8deg; animation-delay: -3.4s; width: 21%; }

.boot-school { font-size: 14px; letter-spacing: .18em; color: var(--text-2); margin-bottom: 8px; }
.boot-title {
  position: relative;
  font-size: clamp(50px, 8vh, 88px); font-weight: 900; letter-spacing: .12em; line-height: 1.12; outline: none;
  background: linear-gradient(100deg, #fff 0%, #fff 38%, #fff6d6 46%, #ffffff 54%, #fff 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 24px rgba(154, 114, 220, .55));
  animation: title-shine 5.5s ease-in-out infinite;
}
.boot-title span {
  background: linear-gradient(120deg, #ffe58a, var(--yellow) 50%, #f3b734);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* 電源鍵：發光圓鈕 */
.power-btn {
  position: relative; margin-top: clamp(26px, 5vh, 48px);
  width: 96px; height: 96px; border-radius: 50%;
  border: 0; color: var(--on-yellow);
  background: radial-gradient(circle at 34% 28%, #fff6c4, var(--yellow) 50%, #dca22a);
  display: grid; place-items: center;
  box-shadow: 0 0 0 6px rgba(247, 208, 84, .16), 0 0 48px 6px rgba(247, 208, 84, .45), inset 0 -6px 10px rgba(120, 70, 0, .28), inset 0 4px 6px rgba(255, 255, 255, .7);
  transition: transform .25s var(--ease), box-shadow .25s, filter .25s;
}
.power-btn::before, .power-btn::after {
  content: ""; position: absolute; inset: -14px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .25); pointer-events: none;
}
.power-btn::after { border-color: rgba(247, 208, 84, .9); animation: pulse-ring 2.2s var(--ease) infinite; }
.power-btn:hover { transform: scale(1.05); filter: brightness(1.06); }
.power-btn:active { transform: scale(.95); }
.power-btn:focus-visible { outline: none; box-shadow: var(--glow-focus), 0 0 48px 6px rgba(247, 208, 84, .45); }
.power-icon svg { width: 40px; height: 40px; stroke-width: 2.4; }

/* 「按 Enter／A」呼吸閃動 */
.boot-hint { margin-top: 30px; display: inline-flex; align-items: center; gap: 10px; animation: press-start 1.8s ease-in-out infinite; }
.boot-hint kbd, .boot-hint .pad-glyph { transform: scale(1.15); }

.screen-boot.is-powering .boot-disc { transform: scale(1.08); }
.screen-boot.is-powering .power-btn { background: radial-gradient(circle at 34% 28%, #ffffff, #fff1c4 60%, var(--yellow)); }
.screen-boot.is-powering .power-icon { animation: power-press .4s var(--ease) both; }

@media (max-width: 760px) {
  .boot-school { font-size: 12px; letter-spacing: .06em; }
  .boot-emblem { width: 138px; }
  .boot-block.b1 { left: -40%; }
  .boot-block.b2 { right: -38%; }
  .boot-title { font-size: 46px; }
}
