body {
  margin: 0;
  padding: 0;
  background: linear-gradient(to top, #001022 0%, #001533 80%, #000000 100%);
  background-attachment: fixed;
  position: relative;
  height: 100vh;
  color: white;
  font-family: 'Courier New', monospace;
}

.bg-gif-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: url('WME2.gif') no-repeat center center;
  background-size: cover;
  opacity: 0.2;
  pointer-events: none;
  z-index: 1;
}

.container {
  max-width: 800px;
  margin: 40px auto;
  background-color: rgba(0, 0, 0, 0.7);
  border: 3px double #00ffff;
  padding: 20px;
  box-shadow: 0 0 15px #00ffff;
  position: relative;
  z-index: 10;
}

.logo-container {
  text-align: center;
  margin-bottom: 20px;
}

.logo-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.logo {
  position: relative;
  z-index: 10;
  max-width: 100%;
  width: 80%;
  height: auto;
  user-select: none;
  display: block;
}

.gif-left, .gif-right {
  position: relative;
  width: 80px;
  height: auto;
  user-select: none;
  z-index: 15;
}

.gif-left {
  margin-right: 10px;
}

.gif-right {
  margin-left: 10px;
}

.gif-back {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 5;
  pointer-events: none;
  user-select: none;
}


h1 {
  font-family: 'Times New Roman', serif;
  color: yellow;
  text-align: center;
  text-shadow: 2px 2px red;
  margin-bottom: 10px;
}

marquee {
  font-size: 20px;
  color: #00ffff;
  font-weight: bold;
  margin-bottom: 20px;
}

.intro {
  font-size: 16px;
  text-align: center;
  margin-bottom: 30px;
}

.special-thanks {
  text-align: center;
  margin-bottom: 15px;
}

.special-thanks img {
  max-width: 400px;
  width: 80%;
  height: auto;
  user-select: none;
  display: inline-block;
}

.thankyou-box {
  position: relative;
  background-color: #111;
  border: 2px dotted #ff00ff;
  padding: 50px;
  margin: 20px;
  overflow: hidden;
  z-index: 1;
}

.thankyou-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('glitter-ball-10892_128.gif');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.2;
  z-index: 0;
}

@keyframes retro-glow {
  0%, 100% {
    color: #00ff00;
    text-shadow: 1px 1px #ff00ff, 0 0 5px #00ff00, 0 0 10px #ff00ff;
    transform: translateX(0);
  }
  25% {
    color: #ff00ff;
    text-shadow: 1px 1px #00ff00, 0 0 5px #ff00ff, 0 0 10px #00ff00;
    transform: translateX(-10px);
  }
  50% {
    color: #00ffff;
    text-shadow: 1px 1px #ff00ff, 0 0 5px #00ffff, 0 0 10px #ff00ff;
    transform: translateX(10px);
  }
  75% {
    color: #ffff00;
    text-shadow: 1px 1px #00ff00, 0 0 5px #ffff00, 0 0 10px #00ff00;
    transform: translateX(-10px);
  }
}

.thankyou-box h2 {
  text-align: center;
  font-size: 24px;
  margin-bottom: 10px;

  animation: retro-glow 5s infinite;
}

.video-box {
  position: relative;
  background-color: transparent;
  padding: 50px;
  margin: 20px;
  z-index: 1;
  border: 2px dotted #00ffff; 
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}


.name-list {
  list-style: none;
  padding: 0;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.name-list li {
  margin: 8px 0;
  font-size: 18px;
  color: #fff;
  text-shadow: 1px 1px #00ffff;
  position: relative;
  cursor: pointer;
  outline: none;
  user-select: none;
}

.tooltip-text {
  visibility: hidden;
  opacity: 0;
  width: 280px;
  background-color: #ffffcc;
  color: #000;
  text-align: left;
  border: 1px solid #000;
  padding: 8px;
  border-radius: 3px;
  font-family: 'Arial', sans-serif;
  font-size: 14px;
  position: absolute;
  z-index: 10;
  top: 100%;
  left: 50%;
  margin-left: -140px;
  transition: opacity 0.3s;
  box-shadow: 3px 3px 5px rgba(0,0,0,0.3);
  white-space: pre-line;
  user-select: text;
  text-shadow: none !important;
}

/* ホバー時に表示（PC用） */
.tooltip:hover .tooltip-text,
.tooltip:focus .tooltip-text {
  visibility: visible;
  opacity: 1;
}
.disclaimer {
  max-width: 600px;
  margin: 20px auto 10px auto;
  font-size: 14px;
  color: #ffcccc;
  font-family: 'Arial', sans-serif;
  text-align: center;
  text-shadow: 1px 1px 2px #880000;
  user-select: none;
}

@media (max-width: 600px) {
  .tooltip-text {
    width: 90vw;
    margin-left: calc(-45vw);
    font-size: 16px;
    padding: 12px;
  }
}

.camellia-sucks-container {
  text-align: center;
  margin: 30px 0 10px 0;
}

#camelliaSucksBtn {
  background-color: #ff3366;
  color: white;
  border: 3px double #ff99aa;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  font-size: 18px;
  padding: 10px 20px;
  cursor: pointer;
  box-shadow: 0 0 10px #ff6699;
  transition: background-color 0.3s;
  user-select: none;
}

#camelliaSucksBtn:hover,
#camelliaSucksBtn:focus {
  background-color: #ff6688;
  outline: none;
}

@keyframes rainbowGlow {
  0%   { color: #ff0000; }
  14%  { color: #ff7f00; }
  28%  { color: #ffff00; }
  42%  { color: #00ff00; }
  56%  { color: #0000ff; }
  70%  { color: #4b0082; }
  84%  { color: #8b00ff; }
  100% { color: #ff0000; }
}

.name-list li.rainbow {
  animation: rainbowGlow 3s linear infinite;
  text-shadow:
    0 0 5px currentColor,
    0 0 10px currentColor,
    0 0 20px currentColor,
    0 0 40px currentColor;
}

#takeMachineBtn {
  position: fixed;
  bottom: 80px;
  left: 20px;
  z-index: 9999;
  background-color: #000000cc;
  color: #00ffff;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  font-size: 18px;
  border: 2px double #00ffff;
  padding: 12px 16px 10px 16px;
  cursor: pointer;
  box-shadow: 0 0 15px #00ffff;
  border-radius: 8px;
  user-select: none;
  transition: background-color 0.3s, color 0.3s;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#takeMachineBtn:hover,
#takeMachineBtn:focus {
  background-color: #002244;
  color: #ff00ff;
  outline: none;
}

.take-machine-img {
  max-width: 150px;
  height: auto;
  margin-bottom: 5px;
  pointer-events: none;
  user-select: none;
}


.links {
  text-align: center;
  margin: 30px 0 10px 0;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  font-size: 16px;
  color: #00ffff;
  text-shadow: 1px 1px 0 #ff00ff;
  user-select: none;
}

.links a {
  color: #00ffff;
  text-decoration: none;
  padding: 3px 8px;
  border: 2px double #ff00ff;
  background-color: black;
  box-shadow: 0 0 10px #ff00ff;
  transition: background-color 0.3s, color 0.3s;
}

.links a:hover,
.links a:focus {
  color: #ff00ff;
  background-color: #000022;
  outline: none;
}

#bgmToggleBtn {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 9999;
  background-color: #000000cc;
  color: #00ffff;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  font-size: 18px;
  border: 2px double #ff00ff;
  padding: 10px 16px;
  cursor: pointer;
  box-shadow: 0 0 15px #ff00ff;
  border-radius: 8px;
  user-select: none;
  transition: background-color 0.3s, color 0.3s;
}

#bgmToggleBtn:hover,
#bgmToggleBtn:focus {
  background-color: #220022cc;
  color: #ff00ff;
  outline: none;
}

#wmpGif {
  position: fixed;
  right: 20px;
  bottom: 150px;
  width: 240px;
  z-index: 10000;
  opacity: 0;
  transition: opacity 2.0s ease;
  pointer-events: none;
}
#wmpGif.show {
  opacity: 1;
}

#bgm-container {
  position: relative;
}

/* ボタンが左右に揺れて傾くアニメーション */
@keyframes calculateShake {
  0%, 100% { transform: rotate(0deg) translateX(0); }
  20% { transform: rotate(-6deg) translateX(-3px); }
  40% { transform: rotate(6deg) translateX(3px); }
  60% { transform: rotate(-4deg) translateX(-2px); }
  80% { transform: rotate(4deg) translateX(2px); }
}

/* ピョンと飛ぶアニメーション */
@keyframes jumpPop {
  0%   { transform: translateY(0) scale(1); }
  30%  { transform: translateY(-15px) scale(1.1); }
  100% { transform: translateY(0) scale(1); }
}

/* アニメーション用クラス */
.calculate-anim {
  animation: calculateShake 0.5s linear infinite;
}

.jump-anim {
  animation: jumpPop 0.4s ease-out;
}

#hotTakePopup {
  position: fixed;
  bottom: 300px;
  left: 20px;
  max-width: 320px;
  background: rgba(0,0,0,0.85);
  color: #00ffff;
  border: 2px solid #ff00ff;
  padding: 14px 18px;
  font-size: 16px;
  font-family: 'Courier New', monospace;
  border-radius: 10px;
  z-index: 9999;
  display: none;
  text-align: left;
  box-shadow: 0 0 15px #ff00ff;
  line-height: 1.4;
  animation: spin-in 0.6s ease-out;
  white-space: pre-wrap;
}

@keyframes spin-in {
  0% {
    transform: rotate(0deg) scale(0.5);
    opacity: 0;
  }
  50% {
    transform: rotate(180deg) scale(1.1);
    opacity: 1;
  }
  100% {
    transform: rotate(360deg) scale(1);
    opacity: 1;
  }
}

.pill-emoji {
  position: absolute;
  font-size: 24px;
  pointer-events: none;
  animation: pill-fall var(--duration, 1.5s) ease-out forwards;
  transform: translate(0, 0) rotate(0deg);
  animation-timing-function: ease-out;
  z-index: 9999;
}

@keyframes pill-fall {
  0% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(var(--x, 0px), var(--y, 200px)) rotate(var(--spin, 360deg));
  }
}

.hot-emoji {
  position: absolute;
  font-size: 14px;
  font-weight: bold;
  color: #ff4444;
  font-family: 'Courier New', monospace;
  pointer-events: none;
  animation: hot-fall var(--duration, 1.5s) ease-out forwards;
  transform: translate(0, 0) rotate(0deg);
  animation-timing-function: ease-out;
  text-shadow: 0 0 3px #ff0000, 0 0 6px #ff00ff;
  z-index: 9999;
}

@keyframes hot-fall {
  0% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(var(--x, 0px), var(--y, 200px)) rotate(var(--spin, 360deg));
  }
}

