/* もじむすび — Meta Ray-Ban Display (600x600, 加算式ディスプレイ)
   純黒 #000000 はグラス上で透明になるためページ背景に使い、
   見せたい面は暗グレーにする */

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

html,
body {
  width: 600px;
  height: 600px;
  background: #000000;
  overflow: hidden;
  font-family: "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", "Noto Sans JP", sans-serif;
  color: #e8ecf2;
  user-select: none;
  -webkit-user-select: none;
}

#app {
  position: relative;
  width: 600px;
  height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.screen {
  width: 600px;
  height: 600px;
  padding: 18px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- 共通パーツ ---------- */

.panel {
  background: #10131a;
  border: 1px solid #2a2f3a;
  border-radius: 16px;
}

.hint {
  color: #8a93a5;
  font-size: 17px;
  text-align: center;
}

.accent-me { color: #7fd7ff; }
.accent-partner { color: #ffc86e; }

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

.menu-item {
  background: #10131a;
  border: 2px solid #2a2f3a;
  border-radius: 14px;
  padding: 16px 20px;
  font-size: 26px;
  text-align: center;
  color: #b9c2d0;
}

.menu-item.focus {
  background: #1a2436;
  border-color: #7fd7ff;
  color: #ffffff;
  box-shadow: 0 0 18px rgba(127, 215, 255, 0.35);
}

/* ---------- タイトル ---------- */

.logo {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: 6px;
  margin-bottom: 6px;
}

.tagline {
  font-size: 19px;
  color: #8a93a5;
  margin-bottom: 26px;
}

.today-banner {
  background: #151a24;
  border: 1px solid #3a4356;
  border-radius: 12px;
  padding: 10px 22px;
  font-size: 20px;
  margin-bottom: 20px;
  color: #d8dfea;
}

.title-hint {
  margin-top: 24px;
}

/* ---------- もじえらび ---------- */

.pick-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 10px;
}

.pick-label {
  font-size: 20px;
  color: #8a93a5;
}

.slots {
  display: flex;
  gap: 10px;
}

.slot {
  width: 52px;
  height: 52px;
  border: 2px dashed #3a4356;
  border-radius: 10px;
  background: #0d1016;
  font-size: 30px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7fd7ff;
}

.slot.filled {
  border-style: solid;
  border-color: #7fd7ff;
  background: #14202e;
}

.slots.shake {
  animation: shake 0.3s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #10131a;
  border: 1px solid #2a2f3a;
  border-radius: 14px;
  padding: 10px;
}

.grid-row {
  display: flex;
  gap: 4px;
}

.cell {
  width: 48px;
  height: 44px;
  border-radius: 8px;
  background: #171b24;
  font-size: 23px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c6cedb;
}

.cell.focus {
  background: #2a3d55;
  color: #ffffff;
  outline: 2px solid #7fd7ff;
  box-shadow: 0 0 14px rgba(127, 215, 255, 0.4);
}

.pick-actions {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.action-btn {
  background: #10131a;
  border: 2px solid #2a2f3a;
  border-radius: 12px;
  padding: 8px 22px;
  font-size: 20px;
  color: #b9c2d0;
}

.action-btn.focus {
  background: #1a2436;
  border-color: #7fd7ff;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(127, 215, 255, 0.35);
}

.action-btn.disabled {
  opacity: 0.4;
}

/* ---------- まえ・うしろ ---------- */

.side-title {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 30px;
}

.side-cards {
  display: flex;
  gap: 24px;
  margin-bottom: 30px;
}

.side-card {
  width: 240px;
  padding: 26px 18px;
  background: #10131a;
  border: 2px solid #2a2f3a;
  border-radius: 16px;
  text-align: center;
}

.side-card.focus {
  background: #1a2436;
  border-color: #7fd7ff;
  box-shadow: 0 0 18px rgba(127, 215, 255, 0.35);
}

.side-card .side-name {
  font-size: 27px;
  font-weight: 700;
  margin-bottom: 14px;
}

.side-card .side-preview {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 2px;
}

/* ---------- マッチング ---------- */

.match-status {
  font-size: 27px;
  margin-bottom: 34px;
  color: #d8dfea;
}

.match-board {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #10131a;
  border: 1px solid #2a2f3a;
  border-radius: 18px;
  padding: 34px 40px;
  margin-bottom: 36px;
}

.match-frag {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: 3px;
  min-width: 120px;
  text-align: center;
}

.match-plus {
  font-size: 34px;
  color: #5a6478;
}

.match-frag.rolling {
  opacity: 0.75;
  filter: blur(0.5px);
}

.result-word {
  font-size: 72px;
  font-weight: 800;
  letter-spacing: 6px;
  margin-bottom: 22px;
  animation: pop 0.5s ease-out;
}

@keyframes pop {
  0% { transform: scale(0.4); opacity: 0; }
  70% { transform: scale(1.12); }
  100% { transform: scale(1); opacity: 1; }
}

.match-note {
  font-size: 20px;
  color: #8a93a5;
  margin-bottom: 10px;
}

/* ---------- きろく ---------- */

.records-title {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 16px;
}

.records-list {
  width: 500px;
  height: 366px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.record-item {
  background: #10131a;
  border: 1px solid #2a2f3a;
  border-radius: 12px;
  padding: 10px 20px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.record-word {
  font-size: 30px;
  font-weight: 700;
}

.record-meta {
  font-size: 16px;
  color: #8a93a5;
  text-align: right;
}

.records-empty {
  color: #8a93a5;
  font-size: 22px;
  text-align: center;
  margin-top: 120px;
}

.records-hint {
  margin-top: 16px;
}

/* ---------- あそびかた ---------- */

.howto-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 22px;
}

.howto-body {
  width: 500px;
  background: #10131a;
  border: 1px solid #2a2f3a;
  border-radius: 16px;
  padding: 24px 28px;
  font-size: 21px;
  line-height: 1.75;
  color: #c6cedb;
  margin-bottom: 22px;
}

/* ---------- タイトルの ことばロゴ(重力アニメーション) ---------- */

.logo .lch {
  display: inline-block;
  will-change: transform;
}

.logo .me {
  color: #7fd7ff;
  text-shadow: 0 0 26px rgba(127, 215, 255, 0.45);
}

.logo .pt {
  color: #ffc86e;
  text-shadow: 0 0 26px rgba(255, 200, 110, 0.45);
}
