

/* 中央コンテンツを整える場合（任意） */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}









body {
  font-family: 'Segoe UI', sans-serif;
  background: radial-gradient(ellipse at center, #1a1a2e 0%, #000000 100%), url('stars.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #e0e0f0;
  text-align: center;
  padding: 2em;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('magic-circle.png') no-repeat center center;
  background-size: 60%;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, #ffffff22 2px, transparent 2px);
  background-size: 50px 50px;
  animation: twinkle 5s linear infinite;
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}

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

h1 {
  font-size: 2em;
  margin-bottom: 0.5em;
  color: #ffd700;
  text-shadow: 0 0 10px #ffd700;
  position: relative;
  z-index: 1;
}

#bag {
  width: 100%;
  height: calc(100vh * 0.5);
  background: url('bag.png') no-repeat center center;
  background-size: contain;
  margin: auto;
  position: relative;
  filter: drop-shadow(0 0 10px #ffffff44);
  z-index: 1;
}
@media (max-width: 768px) {
#bag {
  width: 100%;
  height: calc(100vh * 0.5);
  background: url('bag.png') no-repeat center center;
  background-size: contain;
  margin: auto;
  position: relative;
  filter: drop-shadow(0 0 10px #ffffff44);
  z-index: 1;
  }
}
#shuffler {
	font-size: 3em;
	position: absolute;
	top: 180px;
	left: calc(100% / 2);
	transform: translateX(-50%);
	color: #ffffff;
	text-shadow: 0 0 15px #66ffff;
}


.shuffling {
  animation: spinZoom 1.5s ease-in-out;
}

.reveal {
  animation: popIn 0.6s ease-out;
}

@keyframes spinZoom {
  0% {
    transform: translateX(-50%) scale(1) rotate(0deg);
    filter: blur(0px);
  }
  50% {
    transform: translateX(-50%) scale(1.6) rotate(180deg);
    filter: blur(2px);
  }
  100% {
    transform: translateX(-50%) scale(1) rotate(360deg);
    filter: blur(0px);
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.2) rotate(0deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(360deg);
  }
}

button {
  padding: 0.8em 2em;
  font-size: 1.2em;
  margin: 1.5em auto;
  cursor: pointer;
  background: #222;
  color: #fff;
  border: 2px solid #ffd700;
  border-radius: 8px;
  box-shadow: 0 0 10px #ffd70088;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

button:hover {
  background: #ffd700;
  color: #000;
  box-shadow: 0 0 15px #ffd700;
}

.result {
  margin-top: 2em;
  padding: 1.5em;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  box-shadow: 0 0 15px #6666ff44;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  color: #eee;
  backdrop-filter: blur(5px);
  position: relative;
  z-index: 1;
}

.rune-symbol {
  font-size: 4em;
  color: #66ffff;
  text-shadow: 0 0 12px #66ffff;
}
/* ▼ シェアボタン */
#share-buttons {
  margin-top: 3em;
  text-align: center;
}
#share-buttons p {
  color: #0ff;
  font-size: 1.1em;
  text-shadow: 0 0 6px #0ff, 0 0 12px #007777;
}
#share-buttons a {
  display: inline-block;
  margin: 0 10px;
  padding: 10px;
  border-radius: 50%;
  background-color: rgba(0, 255, 255, 0.1);
  box-shadow: 0 0 10px #00ffff66, 0 0 15px #00cccc66;
  transition: transform 0.3s, box-shadow 0.3s;
}
#share-buttons a:hover {
  transform: scale(1.2);
  box-shadow: 0 0 14px #00ffffcc, 0 0 24px #00ccccaa;
}
#share-buttons img {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 6px #00ffffaa);
}

/* ▼ ココナラボタン */
.coconala-button-wrapper {
  margin: 2em 0;
  text-align: center;
}
.coconala-button {
  display: inline-block;
  padding: 0.8em 1.5em;
  background: rgba(0, 255, 255, 0.1);
  color: #00ffff;
  font-size: 1.1em;
  font-weight: bold;
  border: 1px solid #00ffffaa;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 0 12px #00ffff66, 0 0 20px #00777744;
  position: relative;
  transition: all 0.3s ease;
}
.coconala-button:hover {
  background: rgba(0, 255, 255, 0.2);
  box-shadow: 0 0 18px #00ffffaa, 0 0 30px #00cccc88;
  transform: scale(1.05);
}
.pr-label {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #000;
  color: #00ffff;
  border: 1px solid #00ffff99;
  font-size: 0.6em;
  padding: 2px 6px;
  border-radius: 6px;
  box-shadow: 0 0 6px #00ffff88;
  font-weight: bold;
}
