/* こころ花火 — Meta Ray-Ban Display (600x600, additive display) */

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 600px;
  height: 600px;
  overflow: hidden;
  background: #000000; /* 加算式ディスプレイでは透明 — 現実の夜空に花火が浮かぶ */
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
  color: #FFFFFF;
  user-select: none;
}

#app { width: 600px; height: 600px; position: relative; }

.screen {
  position: absolute;
  inset: 0;
  padding: 8px;
}

.hidden { display: none !important; }

/* ============ タイトル ============ */
#title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.title-hero { text-align: center; }

.title-logo {
  font-size: 58px;
  font-weight: 800;
  letter-spacing: 8px;
  background: linear-gradient(180deg, #FFF7C4 0%, #FFC94D 45%, #FF7A59 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 32px rgba(255, 180, 80, 0.3);
}

.title-sub {
  margin-top: 10px;
  font-size: 15px;
  letter-spacing: 5px;
  color: #B0B3B8;
}

.title-menu {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 380px;
}

.title-best {
  font-size: 14px;
  color: #E4E6EB;
  background: #0a0a0f;
  border-radius: 16px;
  padding: 6px 18px;
}

/* ============ ボタン共通 ============ */
.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 62px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: #14161c;
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  opacity: 0.85;
  transition:
    transform 300ms cubic-bezier(0.6, 0, 0.4, 1),
    opacity 300ms cubic-bezier(0.4, 0.04, 0.5, 1),
    box-shadow 300ms cubic-bezier(0.4, 0.04, 0.5, 1);
}

.menu-btn:focus {
  outline: none;
  opacity: 1;
  transform: scale(0.95);
  border-color: #00E5FF;
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.55), 0 0 24px rgba(0, 229, 255, 0.3);
}

.btn-icon { font-size: 22px; }

/* ============ あそびかた ============ */
#howto { display: flex; flex-direction: column; gap: 14px; }

.header { padding: 14px 8px 0; text-align: center; }
.header h1 { font-size: 28px; font-weight: 800; }

.howto-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 6px 16px;
}

.howto-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #0f1117;
  border-radius: 16px;
  padding: 13px 16px;
}

.howto-key {
  flex: 0 0 118px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #00E5FF;
  background: rgba(0, 229, 255, 0.12);
  border-radius: 12px;
  padding: 8px 6px;
}

.howto-text { font-size: 15px; line-height: 1.55; color: #E4E6EB; }
.howto-text-full { font-size: 15px; line-height: 1.6; color: #FFD97A; }

.nav-bar { padding: 4px 100px 12px; }

/* ============ 調合画面 ============ */
#craft {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 24px 8px;
}

.shell-meter {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #0d0f15;
  border-radius: 18px;
  padding: 10px 18px;
}

.shell-label {
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 700;
  color: #FFD97A;
}

.shell-dots {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.shell-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #22242c;
}

.shell-dot.filled {
  box-shadow: 0 0 10px currentColor;
  background: currentColor;
}

.question-card {
  background: #10121a;
  border-radius: 20px;
  padding: 18px 22px;
  min-height: 108px;
}

.question-no {
  font-size: 13px;
  font-weight: 700;
  color: #00E5FF;
  margin-bottom: 8px;
}

.question-text {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.45;
}

.option-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 11px;
  justify-content: center;
}

.option-btn {
  min-height: 58px;
  font-size: 17px;
  justify-content: flex-start;
  padding: 0 22px;
  gap: 14px;
}

.option-mark {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex: 0 0 auto;
  box-shadow: 0 0 8px currentColor;
  background: currentColor;
}

.launch-btn {
  border-color: rgba(255, 217, 122, 0.5);
  color: #FFE8A3;
}

.launch-btn:disabled {
  opacity: 0.35;
  color: #B0B3B8;
  border-color: rgba(255, 255, 255, 0.1);
}

/* ============ 夜空 ============ */
#sky-screen { padding: 0; }

#sky {
  position: absolute;
  inset: 0;
  background: #000000; /* 透明 — 花火の光だけが現実に浮かぶ */
}

/* ============ オーバーレイ ============ */
.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
}

.overlay-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 440px;
  background: rgba(14, 16, 24, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  padding: 24px 30px;
}

.result-caption { font-size: 14px; color: #B0B3B8; letter-spacing: 2px; }

.result-type {
  font-size: 27px;
  font-weight: 800;
  text-align: center;
  line-height: 1.35;
  color: #FFE8A3;
  text-shadow: 0 0 20px rgba(255, 200, 90, 0.35);
}

.result-desc {
  font-size: 15px;
  line-height: 1.65;
  color: #E4E6EB;
  text-align: center;
}

.result-hanabi {
  font-size: 16px;
  font-weight: 700;
  color: #7CF7D4;
  background: rgba(124, 247, 212, 0.08);
  border-radius: 14px;
  padding: 8px 18px;
  text-align: center;
}

.result-new {
  font-size: 15px;
  font-weight: 700;
  color: #FF9DEB;
}

.result-panel { max-height: 560px; }

.result-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

#emblem { width: 200px; height: 200px; }

.result-nav {
  display: flex;
  gap: 12px;
  width: 100%;
}

.result-btn { min-height: 54px; font-size: 16px; }

.result-btn-sub {
  min-height: 44px;
  font-size: 14px;
  opacity: 0.6;
}

.result-dots {
  font-size: 12px;
  letter-spacing: 6px;
  color: #B0B3B8;
  margin-top: 2px;
}
