@charset "utf-8";

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  color: #3a271a;
  font-family:
    "Hiragino Kaku Gothic ProN",
    "Hiragino Sans",
    "Yu Gothic",
    "YuGothic",
    sans-serif;
  background:
    radial-gradient(
      circle at 50% 10%,
      #fff9e8 0,
      #fff4d4 35%,
      #ffe8bf 100%
    );
}

button {
  font-family: inherit;
}

.sp-only {
  display: none;
}
.roulette-page {
  position: relative;
  min-height: 100vh;
  padding: 60px 20px 80px;
  overflow: hidden;
}
.roulette-page::before,
.roulette-page::after {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  content: "";
  filter: blur(10px);
  pointer-events: none;
}

.roulette-page::before {
  top: -250px;
  left: -200px;
  background: rgba(255, 160, 80, 0.15);
}

.roulette-page::after {
  right: -220px;
  bottom: -260px;
  background: rgba(255, 70, 70, 0.13);
}

.roulette-section {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  margin-inline: auto;
  text-align: center;
}

.roulette-heading {
  margin-bottom: 40px;
}

.roulette-heading-sub {
  display: inline-block;
  margin-bottom: 8px;
  color: #e95a32;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.roulette-heading h1 {
  margin: 0;
  color: #3a271a;
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.05em;
}

.roulette-heading h1::after {
  display: block;
  width: 55px;
  height: 5px;
  margin: 15px auto 17px;
  border-radius: 100px;
  background: #f15b3a;
  content: "";
}

.roulette-heading p {
  margin: 0;
  color: #765847;
  font-size: clamp(0.95rem, 2vw, 1.08rem);
  font-weight: 600;
  line-height: 1.8;
}

.roulette-area {
  position: relative;
  display: grid;
  place-items: center;
  width: min(78vw, 500px);
  aspect-ratio: 1;
  margin: 20px auto 50px;
}

.roulette-glow {
  position: absolute;
  inset: 7%;
  border-radius: 50%;
  background: rgba(255, 187, 67, 0.42);
  filter: blur(45px);
  animation: glowPulse 2.3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.95);
  }

  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.roulette-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: clamp(10px, 2.5vw, 16px);
  border: clamp(7px, 1.8vw, 12px) solid #fff;
  border-radius: 50%;
  background:
    linear-gradient(
      145deg,
      #ffcb57 0%,
      #f08b26 48%,
      #c95717 100%
    );
  box-shadow:
    0 25px 45px rgba(114, 62, 19, 0.22),
    0 10px 15px rgba(114, 62, 19, 0.14),
    inset 0 0 0 3px rgba(130, 63, 12, 0.25);
}

.roulette-frame::before {
  position: absolute;
  z-index: 5;
  inset: 5px;
  border: 5px dotted rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
.roulette {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 5px solid #fff;
  border-radius: 50%;

  background:
    conic-gradient(
      from -45deg,

      #f55b49 0deg 90deg,

      #ffd665 90deg 180deg,

      #f55b49 180deg 270deg,

      #ffd665 270deg 360deg
    );

  box-shadow:
    inset 0 0 25px rgba(98, 47, 8, 0.18);

  will-change: transform;
}
.roulette::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: 50%;
  content: "";

  background:
    linear-gradient(
      45deg,
      transparent 49.2%,
      rgba(255,255,255,0.85) 49.5%,
      rgba(255,255,255,0.85) 50.5%,
      transparent 50.8%
    ),
    linear-gradient(
      -45deg,
      transparent 49.2%,
      rgba(255,255,255,0.85) 49.5%,
      rgba(255,255,255,0.85) 50.5%,
      transparent 50.8%
    );
}
.roulette::after {
  position: absolute;
  z-index: 4;
  top: 4%;
  left: 16%;
  width: 45%;
  height: 25%;
  border-radius: 50%;
  content: "";

  background:
    radial-gradient(
      ellipse,
      rgba(255,255,255,0.25),
      transparent 70%
    );

  transform: rotate(-25deg);
  pointer-events: none;
}

.roulette-label {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 38%;
  color: #fff;
  text-shadow:
    0 2px 2px rgba(91, 40, 0, 0.15);
}

.roulette-label--0 {
  color: #9a4a15;
  text-shadow: none;
}

.roulette-price {
  display: flex;
  align-items: baseline;
  line-height: 1;
}

.roulette-price strong {
  font-size: clamp(1.75rem, 7.2vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.05em;
}

.roulette-price {
  font-size: clamp(0.75rem, 2.7vw, 1.25rem);
  font-weight: 900;
}

.roulette-coupon {
  margin-top: 4px;
  font-size: clamp(0.65rem, 2.1vw, 0.95rem);
  font-weight: 800;
}
.roulette-label--top {
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
}
.roulette-label--right {
  top: 50%;
  right: 6%;
  transform:
    translateY(-50%)
    rotate(90deg);
}
.roulette-label--bottom {
  bottom: 8%;
  left: 50%;
  transform:
    translateX(-50%)
    rotate(180deg);
}
.roulette-label--left {
  top: 50%;
  left: 6%;
  transform:
    translateY(-50%)
    rotate(-90deg);
}
.roulette-center {
  position: absolute;
  z-index: 10;
  top: 50%;
  left: 50%;

  display: grid;
  place-items: center;

  width: 28%;
  aspect-ratio: 1;

  border: clamp(5px, 1.5vw, 9px) solid #fff;
  border-radius: 50%;

  background:
    linear-gradient(
      145deg,
      #ffbd48,
      #e75a23
    );

  box-shadow:
    0 7px 12px rgba(87, 32, 0, 0.25),
    inset 0 3px 5px rgba(255,255,255,0.35);

  transform: translate(-50%, -50%);
}

.roulette-center span {
  color: #fff;
  font-size: clamp(0.55rem, 2vw, 0.95rem);
  font-weight: 900;
  letter-spacing: 0.06em;
}

.roulette-pointer {
  position: absolute;
  z-index: 20;
  top: -5%;
  left: 50%;

  width: 11%;
  aspect-ratio: 0.85;

  transform: translateX(-50%);
  transform-origin: 50% 5%;
}

.pointer-inner {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      145deg,
      #3d251b,
      #1e120d
    );

  clip-path:
    polygon(
      50% 100%,
      8% 20%,
      22% 4%,
      50% 0,
      78% 4%,
      92% 20%
    );

  filter:
    drop-shadow(
      0 5px 4px rgba(63, 30, 12, 0.25)
    );
}

.roulette-pointer.is-spinning {
  animation:
    pointerShake 0.16s ease-in-out infinite alternate;
}

@keyframes pointerShake {
  from {
    transform:
      translateX(-50%)
      rotate(-7deg);
  }

  to {
    transform:
      translateX(-50%)
      rotate(7deg);
  }
}

.roulette-button {
  position: relative;
  width: min(100%, 330px);
  min-height: 76px;
  padding: 15px 40px;
  overflow: hidden;

  border: 4px solid #fff;
  border-radius: 100px;

  color: #fff;

  background:
    linear-gradient(
      180deg,
      #ff7053 0%,
      #ee4e32 55%,
      #d33d25 100%
    );

  box-shadow:
    0 9px 0 #a32c1d,
    0 16px 24px rgba(163, 44, 29, 0.26);

  cursor: pointer;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.roulette-button:hover {
  filter: brightness(1.05);
  transform: translateY(-3px);
  box-shadow:
    0 12px 0 #a32c1d,
    0 20px 30px rgba(163, 44, 29, 0.3);
}

.roulette-button:active {
  transform: translateY(5px);
  box-shadow:
    0 4px 0 #a32c1d,
    0 8px 14px rgba(163, 44, 29, 0.22);
}

.roulette-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  filter: grayscale(0.45);
  transform: none;
  box-shadow:
    0 5px 0 #888,
    0 8px 15px rgba(0, 0, 0, 0.12);
}
.roulette-button:disabled:hover {
  transform: none;
  filter: grayscale(0.45);
}
.roulette-button-text {
  position: relative;
  z-index: 2;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 900;
  letter-spacing: 0.1em;
}

.roulette-button-shine {
  position: absolute;
  z-index: 1;
  top: -30%;
  left: -70%;

  width: 40%;
  height: 160%;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255,255,255,0.65),
      transparent
    );

  transform: skewX(-25deg);
  animation: buttonShine 2.8s ease-in-out infinite;
}

@keyframes buttonShine {
  0%,
  55% {
    left: -70%;
  }

  80%,
  100% {
    left: 140%;
  }
}


.roulette-note {
  margin-top: 24px;
  color: #8c6e5b;
  font-size: 0.85rem;
  font-weight: 600;
}

.result-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;

  display: grid;
  place-items: center;

  padding: 20px;

  visibility: hidden;
  opacity: 0;

  transition:
    opacity 0.4s ease,
    visibility 0.4s ease;
}

.result-modal.is-show {
  visibility: visible;
  opacity: 1;
}

.result-modal-bg {
  position: absolute;
  inset: 0;

  background:
    rgba(40, 21, 12, 0.68);

  backdrop-filter: blur(8px);
}


.result-card {
  position: relative;
  z-index: 2;

  width: min(100%, 520px);
  padding: clamp(40px, 8vw, 65px) 25px 35px;

  overflow: hidden;

  border: 6px solid #fff;
  border-radius: 34px;

  background:
    linear-gradient(
      150deg,
      #fffdf6,
      #fff0cb
    );

  box-shadow:
    0 30px 80px rgba(44, 17, 2, 0.4);

  text-align: center;

  transform:
    scale(0.6)
    translateY(60px);

  opacity: 0;
}

.result-modal.is-show .result-card {
  animation:
    resultPop 0.8s
    cubic-bezier(.17,.89,.32,1.35)
    forwards;
}

@keyframes resultPop {
  0% {
    opacity: 0;
    transform:
      scale(0.5)
      translateY(70px);
  }

  70% {
    opacity: 1;
    transform:
      scale(1.06)
      translateY(-4px);
  }

  100% {
    opacity: 1;
    transform:
      scale(1)
      translateY(0);
  }
}

.result-label {
  display: inline-block;
  margin-bottom: 13px;

  color: #ef5637;

  font-size: clamp(0.7rem, 2vw, 0.85rem);
  font-weight: 900;
  letter-spacing: 0.14em;
}
.result-card h2 {
  margin: 0 0 15px;

  color: #df432a;

  font-size: clamp(1.6rem, 5vw, 2.5rem);
  font-weight: 900;
}
.result-text {
  margin: 0 0 10px;

  color: #6e4a37;

  font-size: clamp(1rem, 3vw, 1.3rem);
  font-weight: 700;
}
.result-coupon {
  width: min(100%, 330px);
  margin: 20px auto;
  padding: 20px;

  border: 3px dashed #f3b138;
  border-radius: 20px;

  background: #fff;

  box-shadow:
    0 8px 20px rgba(171, 91, 13, 0.1);
}
.result-coupon-price {
  display: flex;
  justify-content: center;
  align-items: baseline;

  color: #ed4b31;
}
.result-coupon-price strong {
  font-size: clamp(3.5rem, 13vw, 5.8rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.06em;
}
.result-coupon-price span {
  margin-left: 5px;

  font-size: clamp(1.2rem, 4vw, 1.8rem);
  font-weight: 900;
}
.result-coupon-text {
  display: block;
  margin-top: 3px;

  color: #4d3021;

  font-size: clamp(1.15rem, 3.5vw, 1.5rem);
  font-weight: 900;
}
.result-message {
  margin: 15px 0 25px;

  color: #4f3527;

  font-size: clamp(1.05rem, 3vw, 1.3rem);
  font-weight: 800;
}
.result-close {
  width: min(100%, 270px);
  padding: 15px 20px;

  border: 0;
  border-radius: 100px;

  color: #fff;

  background:
    linear-gradient(
      180deg,
      #ff6f51,
      #e6442d
    );

  font-size: 1rem;
  font-weight: 800;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.result-close:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}
.result-decoration {
  position: absolute;

  color: #ffbc42;

  font-weight: 900;

  animation:
    decorationFloat
    2.2s ease-in-out infinite;
}
.result-decoration--01 {
  top: 7%;
  left: 7%;
  font-size: 2rem;
}
.result-decoration--02 {
  top: 13%;
  right: 7%;
  font-size: 1.5rem;
  animation-delay: -0.7s;
}
.result-decoration--03 {
  bottom: 15%;
  left: 7%;
  color: #f15c42;
  font-size: 1rem;
  animation-delay: -1.2s;
}
.result-decoration--04 {
  right: 8%;
  bottom: 21%;
  color: #ffcb48;
  font-size: 0.8rem;
  animation-delay: -0.4s;
}

@keyframes decorationFloat {
  0%,
  100% {
    transform:
      translateY(0)
      rotate(0);
  }

  50% {
    transform:
      translateY(-8px)
      rotate(15deg);
  }
}

.confetti-container {
  position: fixed;
  z-index: 1100;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.confetti {
  position: absolute;
  top: -30px;

  width: 10px;
  height: 18px;

  border-radius: 2px;

  animation:
    confettiFall
    linear forwards;
}

@keyframes confettiFall {
  0% {
    opacity: 1;

    transform:
      translate3d(0, -20px, 0)
      rotate(0deg);
  }

  100% {
    opacity: 0.9;

    transform:
      translate3d(
        var(--drift),
        110vh,
        0
      )
      rotate(var(--rotate));
  }
}

@media (max-width: 600px) {

  .roulette-page {
    padding:
      45px 15px
      70px;
  }

  .roulette-heading {
    margin-bottom: 35px;
  }

  .sp-only {
    display: block;
  }

  .roulette-area {
    width: min(88vw, 430px);
    margin-bottom: 42px;
  }

  .roulette-button {
    min-height: 67px;
  }

  .result-card {
    border-width: 4px;
    border-radius: 25px;
  }

}

@media (
  prefers-reduced-motion: reduce
) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

}