@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500&display=swap');

body {
  background-color: #0f0f0f;
  color: #00fff7;
  font-family: 'Orbitron', sans-serif;
  margin: 0;
  padding: 0;
}

header {
  background-color: #1a1a1a;
  padding: 10px 20px;
  border-bottom: 3px solid #0ff;
  text-align: center;
}

h1 {
  margin: 0;
  color: #0ff;
}

nav {
  margin-top: 10px;
}

nav a {
  color: #ff00ff;
  text-decoration: none;
  margin: 0 10px;
}

nav a:hover {
  color: #00ffff;
}

main {
  padding: 20px;
}

#chat-room-switch {
  margin-bottom: 20px;
  text-align: center;
}

#chat-room-switch button {
  background-color: #333;
  color: #0ff;
  border: 2px solid #0ff;
  padding: 10px 20px;
  margin: 0 5px;
  cursor: pointer;
  transition: all 0.3s;
}

#chat-room-switch button:hover {
  background-color: #0ff;
  color: #000;
}

#chat-room {
  background: #1a1a1a;
  padding: 20px;
  border: 2px solid #0ff;
  border-radius: 10px;
}

#message-input {
  width: 100%;
  height: 60px;
  background: #333;
  color: #0ff;
  border: 1px solid #0ff;
  margin-bottom: 10px;
  padding: 10px;
}

#messages {
  max-height: 400px;
  overflow-y: auto;
  background: #121212;
  border-top: 2px solid #0ff;
  padding: 10px;
}

.role-badge {
  display: inline-block;
  margin-right: 5px;
  padding: 2px 5px;
  border-radius: 3px;
  font-size: 12px;
  color: #fff;
}

.role-badge.admin {
  background-color: black;
  color: red;
}

.role-badge.moderator {
  background-color: black;
  color: lime;
}

.role-badge.approved {
  background-color: blue;
  color: white;
}

button {
  background: #333;
  color: #0ff;
  border: 1px solid #0ff;
  padding: 10px;
  cursor: pointer;
}

button:hover {
  background: #0ff;
  color: #000;
}

form {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 10px;
  max-width: 400px;
  margin: 50px auto;
  border: 2px solid #0ff;
}

form input {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  background: #333;
  border: 1px solid #0ff;
  color: #0ff;
  border-radius: 5px;
}

form button {
  width: 100%;
  background-color: #0ff;
  color: #000;
  padding: 10px;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

form button:hover {
  background-color: #00bcd4;
}

p {
  text-align: center;
}
#messages.new-message {
  animation: newMessageFlash 0.5s ease;
}

@keyframes newMessageFlash {
  0% { background-color: rgba(255, 255, 0, 0.2); }
  100% { background-color: transparent; }
}
#scroll-control {
  position: fixed; /* 必要なら位置を調整 */
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.7);
  padding: 5px 10px;
  border-radius: 5px;
  color: #fff;
  font-family: sans-serif;
}

.mention {
  color: #ff4500; /* オレンジ系 */
  font-weight: bold;
}

.reply {
  font-size: 0.8em;
  color: #888;
  margin-bottom: 5px;
}

.profile {
  max-width: 400px;
  margin: auto;
  background: #111;
  padding: 20px;
  border-radius: 10px;
  color: #fff;
}

.profile-img {
  width: 150px;                 /* プロフ画像は少し大きく */
  height: 150px;
  border-radius: 50%;
  border: 2px solid #0ff;
  background-color: #fff;       /* 白背景で明るく */
  object-fit: cover;
  box-shadow: 0 0 10px #0ff;
}


.msg-id {
  color: #ff0;
  font-size: 0.8em;
  margin-left: 5px;
}

.message {
  padding: 10px;
  margin-bottom: 10px;
  background: #1c1c1c;
  border-left: 4px solid #0ff;
  border-radius: 5px;
  transition: background 0.3s ease;
  white-space: normal; /* ✅ HTMLタグを折り返して表示 */
  overflow-wrap: break-word; /* ✅ 長い単語も折り返し */
}
/* 流れ星アニメーション*/
/*
.message::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 255, 247, 0.4) 10%, rgba(0, 0, 0, 0) 70%);
  transform: rotate(30deg);
  animation: shootingStar 2s infinite linear;
}

@keyframes shootingStar {
  0% {
    top: -30%;
    left: -30%;
  }
  100% {
    top: 130%;
    left: 130%;
  }
}
*/
.message:hover {
  background: #2c2c2c;
}

#messages::-webkit-scrollbar {
  width: 8px;
}

#messages::-webkit-scrollbar-thumb {
  background: #0ff;
  border-radius: 4px;
}

#messages::-webkit-scrollbar-track {
  background: #333;
}

.chat-user-icon {
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
}

.chat-icon-img {
  width: 48px;                /* 大きくして見やすく！ */
  height: 48px;
  border-radius: 50%;
  border: 2px solid #0ff;     /* より明るい枠線 */
  background-color: #fff;     /* 白背景を入れて暗くならない！ */
  object-fit: cover;          /* 画像を枠にフィットさせる */
  padding: 2px;               /* 内側に余白をつける */
}


.search-user {
  display: flex;
  align-items: center;
  padding: 5px;
  background: #1c1c1c;
  border-bottom: 1px solid #333;
}

.search-user img {
  width: 32px;
  height: 32px;
  margin-right: 10px;
  border-radius: 50%;
  border: 1px solid #0ff;
}

/* 基本設定 */
body {
  font-family: 'Orbitron', sans-serif;
  margin: 0;
  padding: 0;
  transition: background-color 0.3s, color 0.3s;
}

/* ライトモード */
body.light-mode {
  background-color: #f4f4f4;
  color: #333;
}

body.light-mode header {
  background-color: #fff;
  color: #333;
  border-bottom: 3px solid #ff6600;
}

body.light-mode h1 {
  color: #ff6600;
}

body.light-mode nav a {
  color: #1a73e8;
}

body.light-mode nav a:hover {
  color: #ff6600;
}

body.light-mode #chat-room-switch button {
  background-color: #fff;
  color: #1a73e8;
  border: 2px solid #1a73e8;
}

body.light-mode #chat-room-switch button:hover {
  background-color: #1a73e8;
  color: #fff;
}

body.light-mode #chat-room {
  background: #fff;
  border: 2px solid #ff6600;
  color: #333;
}

body.light-mode #message-input {
  background: #e9e9e9;
  color: #333;
  border: 1px solid #ff6600;
}

body.light-mode #messages {
  background: #f1f1f1;
  color: #333;
}

body.light-mode .msg-id {
  color: #ff6600;
  font-size: 0.8em;
  margin-left: 5px;
}

/* ライトモードの個々のメッセージ */
body.light-mode .message {
  padding: 10px;
  margin-bottom: 10px;
  background: #f1f1f1;
  color: #000;  /* 文字を黒に変更 */
  border-left: 4px solid #0ff;
  border-radius: 5px;
  transition: background 0.3s ease;
}

body.light-mode .message:hover {
  background: #e0e0e0;  /* マウスオーバー時に背景をさらに明るく */
}

body.light-mode button {
  background: #1a73e8;
  color: #fff;
  border: none;
}

body.light-mode button:hover {
  background: #ff6600;
}

body.light-mode form {
  background: #fff;
  border: 2px solid #ff6600;
}

body.light-mode .role-badge.admin {
  background-color: #ff6600;
  color: white;
}

body.light-mode .role-badge.moderator {
  background-color: #1a73e8;
  color: white;
}

body.light-mode .role-badge.approved {
  background-color: #28a745;
  color: white;
}

body.light-mode #scroll-control {
  background: rgba(255, 255, 255, 0.7);
  color: #333;
}

/* ダークモード */
body.dark-mode {
  background-color: #0f0f0f;
  color: #00fff7;
}

body.dark-mode header {
  background-color: #1a1a1a;
  color: #0ff;
  border-bottom: 3px solid #0ff;
}

body.dark-mode h1 {
  color: #0ff;
}

body.dark-mode nav a {
  color: #ff00ff;
}

body.dark-mode nav a:hover {
  color: #00ffff;
}

body.dark-mode #chat-room-switch button {
  background-color: #333;
  color: #0ff;
  border: 2px solid #0ff;
}

body.dark-mode #chat-room-switch button:hover {
  background-color: #0ff;
  color: #000;
}

body.dark-mode #chat-room {
  background: #1a1a1a;
  padding: 20px;
  border: 2px solid #0ff;
  border-radius: 10px;
}

body.dark-mode #message-input {
  background: #333;
  color: #0ff;
  border: 1px solid #0ff;
}

body.dark-mode #messages {
  background: #121212;
  color: #fff;
}

body.dark-mode button {
  background: #333;
  color: #0ff;
  border: 1px solid #0ff;
}

body.dark-mode button:hover {
  background: #0ff;
  color: #000;
}

body.dark-mode form {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 10px;
  max-width: 400px;
  margin: 50px auto;
  border: 2px solid #0ff;
}

body.dark-mode .role-badge.admin {
  background-color: black;
  color: red;
}

body.dark-mode .role-badge.moderator {
  background-color: black;
  color: lime;
}

body.dark-mode .role-badge.approved {
  background-color: blue;
  color: white;
}

body.dark-mode #scroll-control {
  background: rgba(0,0,0,0.7);
  color: #fff;
}

/* レスポンシブデザイン */
/* 画面幅が600px以下（スマホ）なら適用 */
@media screen and (max-width: 600px) {
  body {
    font-size: 16px; /* 文字を大きく */
  }

  header {
    text-align: center;
    padding: 10px 0;
  }

  #chat-room-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
  }

  #chat-room-switch button {
    flex: 1;
    min-width: 45%;
    padding: 8px;
    font-size: 14px;
  }

  #messages {
    height: 70vh; /* 高さを固定 */
    overflow-y: auto;
  }

  #message-input {
    width: 100%;
    font-size: 16px;
  }

  button, input[type="file"] {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    font-size: 16px;
  }

  .profile img {
    width: 80px;
    height: 80px;
  }
}

/* ボタンを小さくする */
.message-actions {
  display: flex;
  gap: 5px; /* ボタン間の余白 */
  margin-top: 5px;
}

.message-actions button {
  padding: 5px 8px;
  font-size: 12px;
  border-radius: 5px;
  border: 1px solid #ccc;
  background-color: #f8f8f8;
  cursor: pointer;
}

/* スマホ画面（600px以下）の場合、ボタンを横並び */
@media screen and (max-width: 600px) {
  .message-actions {
    flex-wrap: nowrap; /* 折り返し禁止 */
    justify-content: space-around;
  }

  .message-actions button {
    flex: 1; /* 均等幅 */
    min-width: 30%;
  }
}

/* スクロールバー */
#messages::-webkit-scrollbar {
  width: 8px;
}

#messages::-webkit-scrollbar-thumb {
  background: #0ff;
  border-radius: 4px;
}

#messages::-webkit-scrollbar-track {
  background: #333;
}

/* トグルボックスコンテナ*/
#theme-toggle-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

#theme-toggle-container label {
  margin-right: 10px;
}

#theme-toggle-container #scroll-control {
  margin-left: 10px;
}

/* 大感謝祭の背景アニメーション */
body.festival-active {
  background: linear-gradient(135deg, #FFD700, #FF8C00, #FFD700);
  background-size: 400% 400%;
  animation: glowingFestival 10s ease infinite;
}

@keyframes glowingFestival {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* フェスティバル用のバナー */
.festival-banner {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(255, 215, 0, 0.95);
  color: #000;
  text-align: center;
  padding: 10px;
  font-size: 18px;
  font-weight: bold;
  z-index: 1000;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.7);
}
/* 大感謝祭プログレスバー*/

#thanks-progress {
  max-width: 400px;
  margin: 20px auto;
  text-align: center;
  color: #00f;
}

.progress-container {
  width: 100%;
  background-color: #ddd;
  border-radius: 10px;
  overflow: hidden;
  height: 20px;
}

.progress-bar {
  height: 100%;
  background-color: #0ff;
  width: 0%;
  transition: width 0.5s ease;
}

/* === アナウンス用のラベル & 全体枠 === */
/*
.announcement-label {
  background-color: #ffd700;
  color: #000;
  padding: 3px 8px;
  border-radius: 5px;
  font-weight: bold;
  margin-right: 10px;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
}

.message.announcement-message {
  background: linear-gradient(90deg, #fffacd, #ffe4b5);
  border-left: 5px solid #ffd700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
  color: #333;
  font-weight: bold;
}*/

/* === アナウンスラベル（共通）=== */
/* === アナウンス & 広告メッセージ（共通部分）=== */
.announcement-label, .ad-label {
  padding: 3px 8px;
  border-radius: 5px;
  font-weight: bold;
  margin-right: 10px;
}

.message.announcement-message, .message.ad-message {
  background-size: 300% 300%;
  animation: waveAnimation 3s infinite linear;
  border-left: 5px solid;
  font-weight: bold;
}

/* === ライトモード === */
body.light-mode .announcement-label {
  background-color: #ffd700;
  color: #000;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
}

body.light-mode .ad-label {
  background-color: #ff5722;
  color: #fff;
  box-shadow: 0 0 8px rgba(255, 87, 34, 0.6);
}

body.light-mode .message.announcement-message {
  background: linear-gradient(-45deg, rgba(255, 250, 205, 0.8), rgba(255, 228, 181, 0.8), rgba(255, 250, 205, 0.8));
  border-left-color: #ffd700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
  color: #333;
  animation: waveAnimation 3s infinite linear;
}

body.light-mode .message.ad-message {
  background: linear-gradient(-45deg, rgba(255, 224, 178, 0.8), rgba(255, 204, 188, 0.8), rgba(255, 224, 178, 0.8));
  border-left-color: #ff5722;
  box-shadow: 0 0 8px rgba(255, 87, 34, 0.5);
  color: #333;
  animation: waveAnimation 3s infinite linear;
}

/* === ダークモード === */
body.dark-mode .announcement-label {
  background-color: #ffa500;
  color: #fff;
  box-shadow: 0 0 10px rgba(255, 165, 0, 0.7);
}

body.dark-mode .ad-label {
  background-color: #ff4500;
  color: #fff;
  box-shadow: 0 0 10px rgba(255, 69, 0, 0.7);
}

body.dark-mode .message.announcement-message {
  background: linear-gradient(-45deg, rgba(255, 235, 153, 0.8), rgba(255, 204, 102, 0.8), rgba(255, 235, 153, 0.8));
  border-left-color: #ffa500;
  box-shadow: 0 0 10px rgba(255, 165, 0, 0.8);
  color: #333;
  animation: waveAnimation 3s infinite linear;
}

body.dark-mode .message.ad-message {
  background: linear-gradient(-45deg, rgba(255, 140, 102, 0.8), rgba(255, 87, 51, 0.8), rgba(255, 140, 102, 0.8));
  border-left-color: #ff4500;
  box-shadow: 0 0 10px rgba(255, 69, 0, 0.8);
  color: #fff;
  animation: waveAnimation 3s infinite linear;
}

/* ✅ 波のようにグラデーションが動くアニメーション */
@keyframes waveAnimation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
/* bot */
/* ✅ ボットメッセージ (ライトモード) */
body.light-mode .message.bot-message {
  background: linear-gradient(-45deg, #f0f8ff, #cce7ff, #f0f8ff);
  background-size: 300% 300%;
  animation: waveAnimation 3s infinite linear;
  border-left: 5px solid #007bff;
  padding: 8px;
  margin: 5px 0;
  font-style: italic;
  color: #333;
}

/* ✅ ボットメッセージ (ダークモード) */
body.dark-mode .message.bot-message {
  background: linear-gradient(-45deg, #1a1a2e, #16213e, #1a1a2e);
  background-size: 300% 300%;
  animation: waveAnimation 3s infinite linear;
  border-left: 5px solid #007bff;
  padding: 8px;
  margin: 5px 0;
  font-style: italic;
  color: #f0f8ff;
}

/* ✅ 波のようにグラデーションが動くアニメーション */
@keyframes waveAnimation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
/* ✅ ボットラベル */
.bot-label {
  background-color: #007bff;
  color: #fff;
  padding: 3px 8px;
  border-radius: 5px;
  font-weight: bold;
  margin-right: 10px;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.7);
}
/* chat-type style */

/* === サクラサク === */
body.light-mode .message.style-sakura {
  background: #ffe4f0;
  border: 2px dashed #ff69b4;
  color: #800040;
  animation: sakuraFade 3s ease-in-out infinite;
}

body.dark-mode .message.style-sakura {
  background: #4d0033;
  border: 2px dashed #ff69b4;
  color: #ffcce6;
  animation: sakuraFade 3s ease-in-out infinite;
}

@keyframes sakuraFade {
  0% { box-shadow: 0 0 10px #ff69b4; }
  50% { box-shadow: 0 0 20px deeppink; }
  100% { box-shadow: 0 0 10px #ff69b4; }
}

/* === HANABI ===（すでにOK） */
body.light-mode .message.style-hanabi {
  background: #fff8e1;
  color: #ff5722;
  border: 2px solid #f44336;
  animation: hanabiFlash 3s infinite;
  box-shadow: 0 0 10px #ffc107;
}

body.dark-mode .message.style-hanabi {
  background: #000;
  color: #ffff66;
  border: 2px solid #ff4444;
  animation: hanabiFlash 3s infinite;
  box-shadow: 0 0 15px red;
}

@keyframes hanabiFlash {
  0% { box-shadow: 0 0 10px red; }
  50% { box-shadow: 0 0 20px orange; }
  100% { box-shadow: 0 0 10px red; }
}

/* === ネオン === */
body.light-mode .message.style-neon {
  background: #ffffff;
  color: #008b8b;
  border: 2px solid #0ff;
  text-shadow: 0 0 5px #0ff, 0 0 10px #0ff;
}

body.dark-mode .message.style-neon {
  background: #0a0a0a;
  color: #0ff;
  border: 2px solid #0ff;
  text-shadow: 0 0 5px #0ff, 0 0 15px #0ff;
}

/* === サイバーパンク === */
body.light-mode .message.style-cyberpunk {
  background: #f0f0f0;
  border: 2px double #d0f;
  color: #a0f;
  text-shadow: 0 0 2px #d0f, 0 0 5px #d0f;
}

body.dark-mode .message.style-cyberpunk {
  background: #1a1a1a;
  border: 2px double #f0f;
  color: #f0f;
  text-shadow: 0 0 3px #f0f, 0 0 7px #f0f;
}

/* 🌿 新緑の季節 */
body.light-mode .message.style-springgreen {
  background: #e8f5e9; /* 明るい緑 */
  color: #2e7d32; /* 深緑文字 */
  border: 2px dashed #81c784;
  box-shadow: 0 0 8px #a5d6a7;
}

body.dark-mode .message.style-springgreen {
  background: #1b3c1b; /* 深い森色 */
  color: #c8e6c9; /* 明るい若葉色 */
  border: 2px dashed #66bb6a;
  box-shadow: 0 0 12px #66bb6a;
}

/* 🌻 夏色の時間 */

/* 🌻 夏色の時間（ライトモード） */
body.light-mode .message.style-summer {
  background: #fffde7;
  color: #e65100;
  border: 2px solid #ffeb3b;
  box-shadow: 0 0 10px #ffd600;
  position: relative;
  overflow: hidden;
}

body.light-mode .message.style-summer::before {
  content: "🌻";
  position: absolute;
  font-size: 80px;
  opacity: 0.1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: swaySunflower 6s ease-in-out infinite;
}

/* 🌻 夏色の時間（ダークモード） */
body.dark-mode .message.style-summer {
  background: #3e2f00;
  color: #fff59d;
  border: 2px solid #fdd835;
  box-shadow: 0 0 12px #ffeb3b;
  position: relative;
  overflow: hidden;
}

body.dark-mode .message.style-summer::before {
  content: "🌻";
  position: absolute;
  font-size: 80px;
  opacity: 0.07;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: swaySunflower 6s ease-in-out infinite;
}

/* 🌻 ゆらゆらアニメーション */

@keyframes swaySunflower {
  0%   { transform: translate(-50%, -50%) rotate(0deg); }
  25%  { transform: translate(-52%, -52%) rotate(5deg); }
  50%  { transform: translate(-50%, -50%) rotate(0deg); }
  75%  { transform: translate(-48%, -48%) rotate(-5deg); }
  100% { transform: translate(-50%, -50%) rotate(0deg); }
}

/* 🎨 パステル */
body.light-mode .message.style-pastel {
  background: linear-gradient(135deg, #ffe4e1, #e0f7fa, #fffde7);
  color: #555;
  border: 2px dotted #b2dfdb;
  box-shadow: 0 0 6px #b2dfdb;
}

body.dark-mode .message.style-pastel {
  background: linear-gradient(135deg, #4a4a4a, #5c6bc0, #6a1b9a);
  color: #f8bbd0;
  border: 2px dotted #ba68c8;
  box-shadow: 0 0 10px #ba68c8;
}

/* 🥳 Emoji スタイル - ライトモード */
body.light-mode .message.style-emoji {
  background: repeating-linear-gradient(
    45deg,
    #fff3e0,
    #fff3e0 20px,
    #ffe0b2 20px,
    #ffe0b2 40px
  );
  color: #4e342e;
  border: 10px solid #ffb74d;
  box-shadow: 0 0 12px #ffcc80;
  position: relative;
  overflow: hidden;
}

body.light-mode .message.style-emoji::after {
  content: "🥳";
  position: absolute;
  font-size: 60px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.2;
  pointer-events: none;
  animation: emojiCycle 6s infinite ease-in-out;
}

/* 🌙 Emoji スタイル - ダークモード */
body.dark-mode .message.style-emoji {
  background: repeating-linear-gradient(
    45deg,
    #2c1f00,
    #2c1f00 20px,
    #3e2a0a 20px,
    #3e2a0a 40px
  );
  color: #ffe0b2;
  border: 10px solid #ffa726;
  box-shadow: 0 0 15px #ff9800;
  position: relative;
  overflow: hidden;
}

body.dark-mode .message.style-emoji::after {
  content: "🥳";
  position: absolute;
  font-size: 60px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.1;
  pointer-events: none;
  animation: emojiCycle 6s infinite ease-in-out;
}

/* 🎉 絵文字切り替えアニメーション */
@keyframes emojiCycle {
  0%   { content: "🥳"; transform: translate(-50%, -50%) rotate(0deg); }
  20%  { content: "🤩"; transform: translate(-48%, -52%) rotate(10deg); }
  40%  { content: "😎"; transform: translate(-52%, -48%) rotate(-10deg); }
  60%  { content: "😁"; transform: translate(-50%, -50%) rotate(5deg); }
  80%  { content: "🤣"; transform: translate(-50%, -50%) rotate(-5deg); }
  100% { content: "🥳"; transform: translate(-50%, -50%) rotate(0deg); }
}

/* 🌟 Star スタイル - ライトモード */
body.light-mode .message.style-star {
  background: #fffbea;
  color: #ffa000;
  border: 2px solid #ffc107;
  box-shadow: 0 0 10px #ffca28;
  position: relative;
  overflow: hidden;
  font-family: 'Monoton', cursive;
}

body.light-mode .message.style-star::before {
  content: "⭐︎   ⭐︎   ⭐︎   ⭐︎   ⭐︎   ⭐︎";
  position: absolute;
  font-size: 60px;
  line-height: 1.2;
  white-space: pre;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.3;
  pointer-events: none;
}

/* 🌟 Star スタイル - ダークモード */
body.dark-mode .message.style-star {
  background: #1c1400;
  color: #ffd740;
  border: 2px solid #ffb300;
  box-shadow: 0 0 12px #ffc107;
  position: relative;
  overflow: hidden;
  font-family: 'Monoton', cursive;
}

body.dark-mode .message.style-star::before {
  content: "⭐︎   ⭐︎   ⭐︎   ⭐︎   ⭐︎   ⭐︎";
  position: absolute;
  font-size: 60px;
  line-height: 1.2;
  white-space: pre;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.25;
  pointer-events: none;
}