@charset "utf-8";

:root {
  --romi-blue: #0f47b0;
  --romi-ink: #1b1b1b;
  --romi-text: #5e6571;
  --romi-soft: #f8fbff;
  --romi-line: #d9e5f6;
  --romi-sky: #aee8ff;
  --romi-sakura: #ffd7e4;
  --romi-mint: #ccf3e8;
  --romi-gray: #d9dee8;
  --slot-card-height: 116px;
  --slot-gap: 6px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  color: var(--romi-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
  line-height: 1.7;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

body.is-result-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.roulette-page {
  --roulette-bg-offset-y: clamp(-320px, calc(-22dvh - 118px), -260px);
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  background: #eef2fb url("assets/bg_01.png") center var(--roulette-bg-offset-y) / cover no-repeat;
  overflow: hidden;
}

.roulette-floaters {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.roulette-floater {
  --floater-opacity-low: 0.22;
  position: absolute;
  display: block;
  opacity: var(--floater-opacity, 0.34);
  transform: translate3d(0, 0, 0);
  animation: gentleFloat var(--floater-duration, 12s) ease-in-out var(--floater-delay, 0s) infinite;
  will-change: transform, opacity;
}

.roulette-floater--dot {
  width: var(--floater-size, 14px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--floater-color, #ffd7e4);
}

.roulette-floater--star {
  width: var(--floater-size, 20px);
  aspect-ratio: 1;
  background: var(--floater-color, #ffe59a);
  clip-path: polygon(50% 0%, 61% 34%, 98% 35%, 68% 56%, 79% 91%, 50% 70%, 21% 91%, 32% 56%, 2% 35%, 39% 34%);
}

.roulette-floater--note {
  color: var(--floater-color, #95a8ea);
  font-size: var(--floater-size, 24px);
  font-weight: 800;
  line-height: 1;
}

.roulette-floater--note::before {
  content: "♪";
}

.roulette-floater:nth-child(1) {
  --floater-size: 22px;
  --floater-color: #ffe18a;
  --floater-opacity: 0.42;
  --floater-opacity-low: 0.3;
  --floater-y: -20px;
  --floater-duration: 9.8s;
  --floater-delay: -2.2s;
  top: 34%;
  left: 28%;
}

.roulette-floater:nth-child(2) {
  --floater-size: 12px;
  --floater-color: #f4a8bf;
  --floater-opacity: 0.38;
  --floater-opacity-low: 0.26;
  --floater-y: 17px;
  --floater-duration: 8.8s;
  --floater-delay: -5.1s;
  top: 62%;
  left: 30%;
}

.roulette-floater:nth-child(3) {
  --floater-size: 25px;
  --floater-color: #9da9eb;
  --floater-opacity: 0.3;
  --floater-opacity-low: 0.2;
  --floater-y: -22px;
  --floater-duration: 12.2s;
  --floater-delay: -7.4s;
  top: 30%;
  right: 14%;
}

.roulette-floater:nth-child(4) {
  --floater-size: 16px;
  --floater-color: #b7dcff;
  --floater-opacity: 0.4;
  --floater-opacity-low: 0.27;
  --floater-y: 15px;
  --floater-duration: 8s;
  --floater-delay: -1.6s;
  top: 18%;
  left: 15%;
}

.roulette-floater:nth-child(5) {
  --floater-size: 18px;
  --floater-color: #aee8ff;
  --floater-opacity: 0.34;
  --floater-opacity-low: 0.22;
  --floater-y: -21px;
  --floater-duration: 13s;
  --floater-delay: -9.2s;
  top: 60%;
  right: 25%;
}

.roulette-floater:nth-child(6) {
  --floater-size: 22px;
  --floater-color: #a6b5f1;
  --floater-opacity: 0.28;
  --floater-opacity-low: 0.18;
  --floater-y: 18px;
  --floater-duration: 11.2s;
  --floater-delay: -4.3s;
  top: 52%;
  left: 18%;
}

.roulette-floater:nth-child(7) {
  --floater-size: 19px;
  --floater-color: #ffe18a;
  --floater-opacity: 0.36;
  --floater-opacity-low: 0.24;
  --floater-y: -16px;
  --floater-duration: 9.4s;
  --floater-delay: -6.6s;
  top: 64%;
  right: 40%;
}

.roulette-floater:nth-child(8) {
  --floater-size: 13px;
  --floater-color: #ff9fc7;
  --floater-opacity: 0.36;
  --floater-opacity-low: 0.24;
  --floater-y: 20px;
  --floater-duration: 13.4s;
  --floater-delay: -10.8s;
  top: 24%;
  right: 5%;
}

.roulette-link {
  display: inline-flex;
  min-height: 44px;
  padding: 11px 20px;
  border: 2px solid var(--romi-blue);
  border-radius: 999px;
  color: var(--romi-blue);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.84);
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.roulette-link--store,
.roulette-link:hover {
  color: #fff;
  background: var(--romi-blue);
  border-color: transparent;
}

.roulette-link:focus-visible,
.roulette-spin:focus-visible,
.roulette-audio:focus-visible,
.roulette-save__button:focus-visible,
.roulette-share__button:focus-visible,
.roulette-page-footer a:focus-visible,
.roulette-result__close:focus-visible {
  outline: 3px solid rgba(15, 71, 176, 0.32);
  outline-offset: 3px;
}

.roulette-link:active,
.roulette-spin:active,
.roulette-audio:active,
.roulette-save__button:active,
.roulette-share__button:active {
  transform: translateY(1px);
}

.roulette-stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(300px, 840px);
  gap: 32px;
  align-items: start;
  justify-content: center;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(20px, 4vw, 44px) 0 clamp(64px, 9vw, 120px);
}

.roulette-logo {
  display: grid;
  width: min(100%, 840px);
  min-height: 134px;
  margin: 0 auto;
  place-items: center;
  transform: translateY(14px);
  transform-origin: 50% 58%;
  animation: logoBounceIn 0.72s cubic-bezier(0.2, 0.78, 0.26, 1) 0.08s both;
}

.roulette-logo__image {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(15, 71, 176, 0.12));
}

.slot-machine {
  display: grid;
  justify-items: center;
  gap: 18px;
  margin-top: clamp(36px, 9dvh, 112px);
}

.slot-frame {
  --slot-window-left: 32.3%;
  --slot-window-top: 21.36%;
  --slot-window-width: 35.58%;
  --slot-window-height: 57.8%;
  position: relative;
  width: min(100%, 560px);
  max-width: 100%;
  aspect-ratio: 1411 / 1114;
  filter: drop-shadow(0 24px 30px rgba(15, 71, 176, 0.16));
  isolation: isolate;
}

.slot-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  background: url("assets/slot_01.png") center / contain no-repeat;
  pointer-events: none;
}

.slot-frame::after {
  content: "";
  position: absolute;
  z-index: 6;
  top: 8.9%;
  left: 50%;
  width: 7.2%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 30%, rgba(255, 255, 255, 0.98) 0 12%, rgba(174, 232, 255, 0.92) 22%, rgba(68, 170, 236, 0.9) 54%, rgba(15, 71, 176, 0.18) 76%, rgba(15, 71, 176, 0) 100%);
  box-shadow:
    0 0 12px rgba(79, 191, 232, 0.42),
    0 0 28px rgba(79, 191, 232, 0.28);
  opacity: 0.76;
  transform: translateX(-50%);
  pointer-events: none;
  mix-blend-mode: screen;
  animation: lampStandby 2.8s ease-in-out infinite;
}

.slot-frame.is-started::after {
  animation: none;
}

.slot-frame.is-started:not(.is-spinning)::after {
  animation: lampStandby 2.8s ease-in-out infinite;
}

body.is-result-open .slot-frame.is-started::after {
  animation: none;
}

.slot-frame.is-spinning::after {
  opacity: 1;
  animation: lampRainbow 0.72s linear infinite;
}

@media (min-width: 901px) {
  .roulette-page {
    --roulette-bg-offset-y: clamp(-350px, calc(-24dvh - 126px), -280px);
  }

  .slot-machine {
    margin-top: clamp(12px, 4dvh, 56px);
  }

  .slot-frame {
    width: min(100%, 620px);
  }
}

.slot-window {
  position: relative;
}

.slot-window {
  position: absolute;
  z-index: 1;
  top: var(--slot-window-top);
  left: var(--slot-window-left);
  width: var(--slot-window-width);
  height: var(--slot-window-height);
  border: 0;
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(217, 228, 244, 0.72) 0%, rgba(255, 255, 255, 0.96) 22%, rgba(255, 255, 255, 0.96) 78%, rgba(217, 228, 244, 0.72) 100%);
  box-shadow:
    inset 0 10px 16px rgba(15, 71, 176, 0.12),
    inset 0 -10px 16px rgba(15, 71, 176, 0.1);
  overflow: hidden;
}

.slot-window::before,
.slot-window::after {
  content: "";
  position: absolute;
  z-index: 3;
  right: 0;
  left: 0;
  height: 24%;
  pointer-events: none;
}

.slot-window::before {
  top: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0) 100%);
}

.slot-window::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.16) 0%, rgba(0, 0, 0, 0) 100%);
}

.slot-reel {
  display: grid;
  gap: var(--slot-gap);
  padding: 0;
  transform: translateY(0);
}

.slot-reel.is-spinning {
  transition: transform 4.8s cubic-bezier(0.08, 0.72, 0.1, 1);
}

.slot-reel.is-previewing {
  animation: previewReel 18s linear infinite;
}

.slot-frame.is-previewing:not(.is-started) .slot-card {
  background: transparent;
}

.slot-frame.is-previewing:not(.is-started) .slot-card__image img {
  filter: brightness(0) saturate(0) opacity(0.28);
}

.slot-card {
  display: grid;
  height: var(--slot-card-height);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: none;
  overflow: hidden;
  place-items: center;
}

.slot-card__image {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
  place-items: center;
}

.slot-card__image img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  max-width: none;
  height: calc(var(--slot-card-height) * 1.7);
  object-fit: contain;
  object-position: center center;
  transform: translate(-50%, -50%);
}

.slot-highlight {
  display: none;
}

.slot-pin {
  display: none;
}

.slot-pin::before,
.slot-pin span {
  content: "";
  position: absolute;
  border-radius: 50% 50% 50% 0;
  transform: rotate(225deg);
}

.slot-pin::before {
  top: 6px;
  left: 3px;
  width: 40px;
  height: 40px;
  background: #fff;
}

.slot-pin span {
  top: 10px;
  left: 7px;
  width: 32px;
  height: 32px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.54) 0%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(135deg, #ffd7e4 0%, #f4a8bf 100%);
}

.slot-pin span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(15, 71, 176, 0.08);
  transform: translate(-50%, -50%);
}

.slot-start-cover {
  position: absolute;
  z-index: 5;
  inset: 0;
  display: flex;
  padding: clamp(14px, 2.6vw, 18px);
  color: #fff;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0) 44%),
    linear-gradient(135deg, rgba(15, 71, 176, 0.86) 0%, rgba(114, 205, 238, 0.72) 56%, rgba(255, 215, 228, 0.82) 100%);
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
}

.slot-start-cover::before,
.slot-start-cover::after {
  content: "";
  position: absolute;
  z-index: 1;
  right: 0;
  left: 0;
  height: 24%;
  pointer-events: none;
}

.slot-start-cover::before {
  top: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0) 100%);
}

.slot-start-cover::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.16) 0%, rgba(0, 0, 0, 0) 100%);
}

.slot-frame.is-started .slot-start-cover {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.slot-start-cover__label {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  max-width: 100%;
  padding: clamp(8px, 1.4vw, 12px);
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  white-space: normal;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  text-shadow:
    0 4px 0 rgba(15, 71, 176, 0.28),
    0 10px 28px rgba(27, 27, 27, 0.2);
}

.slot-start-cover__label span {
  display: block;
  width: 100%;
}

.slot-lights {
  display: none;
}

.slot-lights span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.52);
}

.slot-frame.is-spinning .slot-lights span {
  animation: lightBlink 0.42s ease-in-out infinite alternate;
}

.slot-frame.is-spinning .slot-lights span:nth-child(2n) {
  animation-delay: 0.18s;
}

.roulette-spin {
  position: relative;
  display: inline-flex;
  overflow: hidden;
  width: min(100%, 360px);
  min-height: 64px;
  padding: 12px 28px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 800;
  background: linear-gradient(135deg, #0f47b0 0%, #4fbfe8 100%);
  box-shadow: 0 12px 24px rgba(15, 71, 176, 0.24);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  animation: spinButtonPulse 2.8s ease-in-out infinite;
}

.roulette-spin::before {
  content: "";
  position: absolute;
  inset: -30% auto -30% -45%;
  width: 42%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.74) 50%, rgba(255, 255, 255, 0) 100%);
  opacity: 0.72;
  transform: skewX(-22deg) translateX(0);
  animation: spinButtonShine 3.4s ease-in-out infinite;
  pointer-events: none;
}

.roulette-spin::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.54);
  pointer-events: none;
}

.roulette-spin:not(:disabled) {
  text-shadow: 0 2px 8px rgba(15, 71, 176, 0.22);
}

.roulette-spin:hover {
  box-shadow:
    0 18px 34px rgba(15, 71, 176, 0.34),
    0 0 26px rgba(79, 191, 232, 0.3);
  transform: translateY(-2px) scale(1.015);
}

.roulette-spin:disabled {
  opacity: 0.7;
  cursor: wait;
  animation: none;
}

.roulette-spin:disabled::before {
  animation: none;
  opacity: 0;
}

.roulette-status {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin: 6px 0 8px;
  color: var(--romi-text);
  font-family: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
}

.roulette-store-cta {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 2px;
}

.roulette-store-cta .roulette-link {
  width: min(100%, 360px);
}

.roulette-result-modal {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  padding: clamp(18px, 4vw, 40px);
  overflow-y: auto;
  place-items: center;
}

.roulette-result-modal[hidden] {
  display: none;
}

.roulette-result-modal__backdrop {
  position: fixed;
  z-index: 0;
  inset: 0;
  border: 0;
  background:
    linear-gradient(135deg, rgba(174, 232, 255, 0.24) 0%, rgba(255, 215, 228, 0.24) 100%),
    rgba(15, 71, 176, 0.2);
  cursor: pointer;
}

.roulette-confetti {
  position: fixed;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.roulette-result {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  width: min(100%, 780px);
  max-height: min(760px, calc(100dvh - 40px));
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.94) 100%);
  box-shadow:
    0 28px 58px rgba(15, 71, 176, 0.18),
    0 10px 22px rgba(255, 215, 228, 0.2);
  overflow: auto;
}

.roulette-result[hidden] {
  display: none;
}

.roulette-result.is-revealed {
  animation: resultIn 0.42s ease both;
}

.roulette-result__close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(15, 71, 176, 0.12);
  border-radius: 50%;
  color: var(--romi-blue);
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
  background: #fff;
  box-shadow:
    0 8px 18px rgba(15, 71, 176, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
  cursor: pointer;
  place-items: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.roulette-result__close span {
  transform: translateY(-1px);
}

.roulette-result__close:hover {
  background: #fff;
  box-shadow:
    0 10px 22px rgba(15, 71, 176, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

.roulette-result__image {
  position: relative;
  display: grid;
  min-height: 100%;
  background: var(--result-bg, #eef8f9);
  box-shadow: inset -18px 0 30px rgba(255, 255, 255, 0.22);
  overflow: hidden;
  place-items: center;
}

.roulette-result__image::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  right: -1px;
  bottom: 0;
  width: clamp(34px, 5vw, 58px);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.84) 100%);
  pointer-events: none;
}

.roulette-result__image img {
  position: relative;
  z-index: 2;
  width: min(94%, 340px);
  filter: drop-shadow(0 16px 24px rgba(18, 36, 62, 0.12));
}

@media (min-width: 561px) {
  .roulette-result {
    align-items: stretch;
  }

  .roulette-result__image {
    position: relative;
    min-height: 100%;
    padding: clamp(30px, 6dvh, 54px) 18px 28px;
    align-self: stretch;
    place-items: start center;
  }

  .roulette-result__image img {
    position: sticky;
    top: clamp(30px, 6dvh, 54px);
    max-height: min(430px, calc(100dvh - 150px));
    object-fit: contain;
  }
}

@media (min-width: 901px) {
  .roulette-result__image {
    padding-top: clamp(84px, calc(6dvh + 54px), 108px);
  }

  .roulette-result__image img {
    top: clamp(84px, calc(6dvh + 54px), 108px);
  }
}

.roulette-result__body {
  padding: clamp(22px, 3vw, 30px);
}

.roulette-result__label {
  margin: 0;
  color: var(--romi-blue);
  font-family: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.roulette-result__name {
  margin: 4px 0 0;
  color: var(--result-color, var(--romi-blue));
  font-size: clamp(26px, 3.8vw, 32px);
  line-height: 1.25;
  letter-spacing: 0;
  text-align: center;
}

.roulette-result__name-image {
  display: block;
  width: min(100%, 360px);
  height: auto;
  margin: 0 auto;
}

.roulette-result__catch {
  margin: 8px 0 0;
  color: var(--romi-ink);
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 800;
  text-align: center;
}

.roulette-result__quote {
  position: relative;
  margin: 18px 0 0;
  padding: 16px 18px;
  border: 2px solid rgba(15, 71, 176, 0.14);
  border-radius: 16px;
  color: var(--romi-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.75;
  background: #fff;
  box-shadow:
    0 10px 20px rgba(15, 71, 176, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.roulette-result__quote-line {
  display: block;
}

.roulette-result__quote-line + .roulette-result__quote-line {
  margin-top: 6px;
}

.roulette-result__quote::before,
.roulette-result__quote::after {
  content: "";
  position: absolute;
  top: 28px;
  right: 100%;
  width: 0;
  height: 0;
  border-style: solid;
}

.roulette-result__quote::before {
  border-width: 10px 14px 10px 0;
  border-color: transparent rgba(15, 71, 176, 0.14) transparent transparent;
}

.roulette-result__quote::after {
  top: 30px;
  border-width: 8px 12px 8px 0;
  border-color: transparent #fff transparent transparent;
}

.roulette-audio {
  --audio-icon-bg: currentColor;
  --audio-icon-mark: #fff;
  display: inline-flex;
  min-height: 50px;
  margin-top: 14px;
  padding: 10px 24px 10px 18px;
  border: 2px solid var(--romi-blue);
  border-radius: 999px;
  color: var(--romi-blue);
  font-size: 15px;
  font-weight: 800;
  background: #fff;
  cursor: pointer;
  align-items: center;
  gap: 10px;
  justify-content: center;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.roulette-audio:hover:not(:disabled) {
  --audio-icon-mark: var(--romi-blue);
  color: #fff;
  background: var(--romi-blue);
}

.roulette-audio:disabled {
  opacity: 0.58;
  cursor: default;
}

.roulette-audio__icon {
  position: relative;
  display: grid;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--audio-icon-bg);
  place-items: center;
}

.roulette-audio__icon::before,
.roulette-audio__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
}

.roulette-audio__icon::before {
  width: 0;
  height: 0;
  margin-left: 2px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid var(--audio-icon-mark);
  transform: translate(-50%, -50%);
}

.roulette-audio__icon::after {
  display: none;
}

.roulette-audio.is-playing .roulette-audio__icon::before,
.roulette-audio.is-playing .roulette-audio__icon::after {
  width: 5px;
  height: 12px;
  margin: 0;
  border: 0;
  border-radius: 1px;
  background: var(--audio-icon-mark);
}

.roulette-audio.is-playing .roulette-audio__icon::before {
  transform: translate(-6.5px, -50%);
}

.roulette-audio.is-playing .roulette-audio__icon::after {
  display: block;
  transform: translate(1.5px, -50%);
}

.roulette-result__info {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--romi-line);
}

.roulette-result__info-block {
  display: grid;
  padding: 14px 16px;
  border: 1px solid var(--romi-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  gap: 8px;
}

.roulette-result__info-block h3 {
  margin: 0;
  color: var(--romi-ink);
  font-size: 15px;
  line-height: 1.4;
}

.roulette-result__info-block p {
  margin: 0;
  color: var(--romi-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.75;
  white-space: pre-line;
}

.roulette-save {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: 22px;
}

.roulette-save__text {
  margin: 0;
  color: var(--romi-text);
  font-family: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
}

.roulette-save__text span {
  display: block;
}

.roulette-save__button {
  display: inline-flex;
  width: min(100%, 300px);
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  background: linear-gradient(135deg, #ff8fbd 0%, #ff6fa7 54%, #8eb7ff 100%);
  box-shadow:
    0 10px 20px rgba(255, 111, 167, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.roulette-save__button:hover {
  opacity: 0.94;
  box-shadow:
    0 12px 24px rgba(255, 111, 167, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.roulette-share {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.roulette-share__item {
  flex: 0 1 min(250px, calc((100% - 14px) / 2));
}

.roulette-share__button {
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 5 / 1;
  color: transparent;
  white-space: nowrap;
  text-indent: 110%;
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 100%;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.roulette-share__button:hover {
  opacity: 0.88;
}

.roulette-share__button--x {
  background-image: url("../assets/renewal2024/news/img/sns_x_post.png");
}

.roulette-share__button--line {
  background-image: url("../assets/renewal2024/news/img/sns_line_share.png");
}

.roulette-share__button--facebook {
  background-image: url("../assets/renewal2024/news/img/sns_facebook_share.png");
}

.roulette-page-footer {
  display: grid;
  justify-items: center;
  gap: 6px;
  width: min(100%, 520px);
  margin: 28px auto 0;
  padding: 0;
  text-align: center;
}

.roulette-page-footer p {
  margin: 0;
  color: var(--romi-text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.roulette-page-footer a {
  display: inline;
  color: var(--romi-blue);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.roulette-page-footer a:hover {
  opacity: 0.72;
}

@keyframes resultIn {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logoBounceIn {
  0% {
    transform: translateY(20px) scale(0.98);
  }
  44% {
    transform: translateY(8px) scale(1.035);
  }
  68% {
    transform: translateY(16px) scale(0.992);
  }
  86% {
    transform: translateY(12px) scale(1.012);
  }
  100% {
    transform: translateY(14px) scale(1);
  }
}

@keyframes lightBlink {
  0% {
    background: #fff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.52);
  }
  100% {
    background: var(--romi-sky);
    box-shadow:
      0 0 0 2px rgba(255, 255, 255, 0.52),
      0 0 16px rgba(174, 232, 255, 0.9);
  }
}

@keyframes spinButtonPulse {
  0%,
  100% {
    box-shadow:
      0 12px 24px rgba(15, 71, 176, 0.24),
      0 0 0 rgba(79, 191, 232, 0);
  }
  50% {
    box-shadow:
      0 16px 30px rgba(15, 71, 176, 0.32),
      0 0 28px rgba(79, 191, 232, 0.32);
  }
}

@keyframes spinButtonShine {
  0%,
  34% {
    transform: skewX(-22deg) translateX(0);
  }
  58%,
  100% {
    transform: skewX(-22deg) translateX(420%);
  }
}

@keyframes gentleFloat {
  0%,
  100% {
    opacity: var(--floater-opacity-low, 0.22);
    transform: translate3d(0, 0, 0);
  }
  50% {
    opacity: var(--floater-opacity, 0.34);
    transform: translate3d(0, var(--floater-y, -14px), 0);
  }
}

@keyframes lampStandby {
  0%,
  100% {
    opacity: 0.56;
    box-shadow:
      0 0 8px rgba(79, 191, 232, 0.24),
      0 0 20px rgba(79, 191, 232, 0.14);
  }
  50% {
    opacity: 0.96;
    box-shadow:
      0 0 16px rgba(79, 191, 232, 0.66),
      0 0 42px rgba(79, 191, 232, 0.42),
      0 0 64px rgba(174, 232, 255, 0.28);
  }
}

@keyframes lampRainbow {
  0% {
    background:
      radial-gradient(circle at 36% 30%, rgba(255, 255, 255, 0.98) 0 12%, rgba(174, 232, 255, 0.95) 22%, rgba(68, 170, 236, 0.95) 54%, rgba(15, 71, 176, 0.2) 76%, rgba(15, 71, 176, 0) 100%);
    box-shadow: 0 0 14px rgba(68, 170, 236, 0.72), 0 0 40px rgba(68, 170, 236, 0.5);
  }
  20% {
    background:
      radial-gradient(circle at 36% 30%, rgba(255, 255, 255, 0.98) 0 12%, rgba(204, 243, 232, 0.96) 22%, rgba(53, 202, 155, 0.94) 54%, rgba(53, 202, 155, 0.2) 76%, rgba(53, 202, 155, 0) 100%);
    box-shadow: 0 0 14px rgba(53, 202, 155, 0.72), 0 0 40px rgba(53, 202, 155, 0.5);
  }
  40% {
    background:
      radial-gradient(circle at 36% 30%, rgba(255, 255, 255, 0.98) 0 12%, rgba(255, 226, 138, 0.98) 22%, rgba(255, 196, 64, 0.95) 54%, rgba(255, 196, 64, 0.2) 76%, rgba(255, 196, 64, 0) 100%);
    box-shadow: 0 0 14px rgba(255, 196, 64, 0.72), 0 0 40px rgba(255, 196, 64, 0.5);
  }
  60% {
    background:
      radial-gradient(circle at 36% 30%, rgba(255, 255, 255, 0.98) 0 12%, rgba(255, 215, 228, 0.98) 22%, rgba(255, 126, 168, 0.95) 54%, rgba(255, 126, 168, 0.2) 76%, rgba(255, 126, 168, 0) 100%);
    box-shadow: 0 0 14px rgba(255, 126, 168, 0.74), 0 0 40px rgba(255, 126, 168, 0.52);
  }
  80% {
    background:
      radial-gradient(circle at 36% 30%, rgba(255, 255, 255, 0.98) 0 12%, rgba(204, 211, 255, 0.96) 22%, rgba(122, 143, 232, 0.95) 54%, rgba(122, 143, 232, 0.2) 76%, rgba(122, 143, 232, 0) 100%);
    box-shadow: 0 0 14px rgba(122, 143, 232, 0.74), 0 0 40px rgba(122, 143, 232, 0.52);
  }
  100% {
    background:
      radial-gradient(circle at 36% 30%, rgba(255, 255, 255, 0.98) 0 12%, rgba(174, 232, 255, 0.95) 22%, rgba(68, 170, 236, 0.95) 54%, rgba(15, 71, 176, 0.2) 76%, rgba(15, 71, 176, 0) 100%);
    box-shadow: 0 0 14px rgba(68, 170, 236, 0.72), 0 0 40px rgba(68, 170, 236, 0.5);
  }
}

@keyframes previewReel {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(calc(var(--preview-reel-distance, 1000px) * -1));
  }
}

@media (max-width: 900px) {
  .roulette-stage {
    grid-template-columns: 1fr;
  }

  .roulette-stage {
    padding-top: 12px;
  }
}

@media (max-width: 560px) {
  :root {
    --slot-card-height: 86px;
    --slot-gap: 5px;
  }

  .roulette-stage {
    width: min(100% - 28px, 1120px);
    gap: 22px;
  }

  .slot-machine {
    margin-top: 18px;
  }

  .roulette-logo {
    width: min(100vw, 390px);
    min-height: 108px;
    overflow: hidden;
  }

  .roulette-logo__image {
    width: 148%;
    max-width: none;
  }

  .roulette-link {
    width: calc(100% - 48px);
  }

  .roulette-store-cta .roulette-link {
    width: calc(100% - 48px);
  }

  .slot-frame {
    width: min(100%, 400px);
  }

  .slot-card {
    padding: 0;
  }

  .slot-card__image {
    width: 100%;
    height: 100%;
  }

  .slot-card__image img {
    width: auto;
    max-width: none;
    height: calc(var(--slot-card-height) * 1.7);
  }

  .slot-start-cover {
    padding: 12px;
  }

  .slot-start-cover__label {
    max-width: 100%;
    padding: 10px 12px;
    font-size: clamp(18px, 6vw, 26px);
  }

  .roulette-spin {
    width: calc(100% - 48px);
  }

  .roulette-result-modal {
    padding: 14px;
  }

  .roulette-result {
    grid-template-columns: 1fr;
    width: min(100%, 360px);
    max-height: calc(100dvh - 28px);
    border-radius: 24px;
  }

  .roulette-result__close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    font-size: 26px;
  }

  .roulette-result__image {
    min-height: clamp(150px, 32dvh, 220px);
    box-shadow: inset 0 -18px 26px rgba(255, 255, 255, 0.2);
  }

  .roulette-result__image::after {
    top: auto;
    right: 0;
    bottom: -1px;
    left: 0;
    width: auto;
    height: 34px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.86) 100%);
  }

  .roulette-result__image img {
    width: min(78%, 250px);
  }

  .roulette-result__body {
    padding: 20px;
  }

  .roulette-result__quote {
    margin-top: 20px;
  }

  .roulette-result__quote::before,
  .roulette-result__quote::after {
    top: auto;
    right: auto;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
  }

  .roulette-result__quote::before {
    border-width: 0 10px 14px;
    border-color: transparent transparent rgba(15, 71, 176, 0.14);
  }

  .roulette-result__quote::after {
    border-width: 0 8px 12px;
    border-color: transparent transparent #fff;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .slot-reel.is-previewing {
    animation: none !important;
  }

  .slot-frame::after {
    animation: none !important;
  }

  .roulette-spin,
  .roulette-spin::before {
    animation: none !important;
  }

  .roulette-floater {
    animation: none !important;
    transform: none !important;
  }
}
