@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Dela+Gothic+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Galindo&display=swap');


/* エレメント */
:root {
    --color-main: #000000;
    --color-navy: #153d6f;
    --color-light-navy: #006a97;
    --color-green: #095b1e;
    --color-lighter-green: #e6fac8;
    --color-light-green: #b6e485;
    --color-light-blue: #aae1fa;
    --color-orange: #ff3200;
    --color-yellow: #ffe600;
    --color-beige: #f0ebe1;
}

p {
    margin: 0;
}

h2 {
    color: var(--color-main);
    margin: 0;
    padding-left: 0;
}

h2::before {
    content: normal;
}

h3 {
    margin: 0;
    background-color: transparent;
    border-left: none;
    padding: 0;
    color: inherit;
}

/* 既存スタイルの打消と上書き */
body #dMWrapper {
    margin-bottom: 0;
}

body #dMain {
    max-width: none;
}

div#dMain:after {
    display: none;
}

#dMainColumn #aMainContents {
    font-family: "Noto Sans JP", sans-serif;
    color: var(--color-main);
    font-weight: 400;
    padding-top: 0;
    padding-bottom: 0;

}


/* ユーティリティクラス */
.palmtop-visible {
    display: none;
}
@media (max-width: 768px) {
    .palmtop-visible {
        display: block;
    }
}
@media (max-width: 768px) {
    .laptop-visible {
        display: none;
    }
}


/* ビジエネエンドレスすごろくゲーム */
.sugoroku-game {
  position: relative;
  isolation: isolate;
  background-color: #e4f1f2;
  transition: background-color 0.8s ease;
  font-size: 1.125rem;
  --play-board-bg: #1a2744;
  --play-path-cell: #3d5a8c;
  --play-accent: #f4b942;
  --play-text: #e8eef8;
  --play-muted: #8fa3c4;
  --play-btn-text-on-accent: #1a1a1a;
  --play-btn-gradient-bottom: #d99a28;
  --play-fs-start: 0.625rem;
  --play-fs-cell: 0.8125rem;
  --play-fs-cell-label: 0.875rem;
  --play-fs-xs: 0.9375rem;
  --play-fs-sm: 1.025rem;
  --play-fs-md: 1.0625rem;
  --play-fs-body: 1.125rem;
  --play-fs-base: 1.1875rem;
  --play-fs-lg: 1.25rem;
  --play-fs-xl: 1.4375rem;
  --play-fs-2xl: 1.6rem;
  --play-fs-3xl: 2.0625rem;
  --play-fs-title: 1.6875rem;
  --play-fs-die: 1.375rem;
  --play-fs-popup-desc: 15px;
  --play-dice-popup-bg: #fff097;
  --play-dice-popup-radius: 16px;
  --play-dice-popup-shadow: 0 0 5px rgba(0, 0, 0, 0.45);
  --play-modal-backdrop: rgba(205, 239, 242, 0.85);
  --play-modal-panel-bg: #fff097;
  --play-modal-panel-padding: 40px;
  --play-modal-panel-max-height: 760px;
  --play-modal-text-color: #3c3c3c;
  --play-modal-key-color: #3c3c3c;
  --play-modal-panel-offset-y: 150px;
  --play-modal-backdrop-duration: 0.36s;
  --play-modal-pop-in-duration: 0.6s;
  --play-modal-pop-in-easing: cubic-bezier(0.22, 1.2, 0.36, 1);
  margin-left: calc(-1 * var(--main-column-padding-x));
  margin-right: calc(-1 * var(--main-column-padding-x));
  @media screen and (max-width: 768px) {
    --play-modal-panel-padding: 40px 20px;
    --play-modal-panel-max-height: 90vh;
  }
}

.sugoroku-game.sugoroku-game__play-popup-open,
.sugoroku-game.sugoroku-game__play-loading-open {
  overflow: hidden;
}

.sugoroku-game__header {
    position: relative;
    min-height: 260px;
    @media screen and (max-width: 768px) {
      min-height: 35.897vw;
    }
}

.sugoroku-game__header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 307px;
    background-image: radial-gradient(circle, #afcbea 1px, transparent 1px);
    background-size: 7px 7px;
    background-repeat: repeat;
    pointer-events: none;
    @media screen and (max-width: 768px) {
      height: 35.897vw;
    }
}

.sugoroku-game__header__title {
    padding-top: 40px;
    max-width: 780px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    text-align: center;
    @media screen and (max-width: 768px) {
      padding-top: 7.6923vw;
      width: 87.179vw;
    }
}

.sugoroku-game__header__campaign {
    position: absolute;
    top: 40px;
    right: 0;
    z-index: 1;
    width: 197px;
    height: auto;
    transition: transform 0.2s ease;
    @media screen and (max-width: 768px) {
      display: none;
    }
}

.sugoroku-game__header__campaign:hover {
    transform: translateX(8px);
}

.sugoroku-game__content {
    position: relative;
    z-index: 1;
    padding: 0 20px 60px;
    @media screen and (max-width: 768px) {
      padding: 0 0 10vw;
    }
}

.sugoroku-game__footer {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    aspect-ratio: 2254 / 374;
    padding: 0 20px 0;
    box-sizing: border-box;
    background-image: url("/member_assets/images/page/member/p/campaign/sugoroku/game/footer_bg.png");
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    @media screen and (max-width: 768px) {
      padding: 5vw 2.5vw 40vw;
      background-size: contain;
    }
}

.sugoroku-game--lap-2 { background-color: #b4e1ed; }
.sugoroku-game--lap-3 { background-color: #82afd8; }
.sugoroku-game--lap-4 { background-color: #8396ba; }

.sugoroku-game--lap-2 .sugoroku-game__footer {
  background-position: center calc(100% + clamp(35px, 5vw, 80px));
}

.sugoroku-game--lap-3 .sugoroku-game__footer,
.sugoroku-game--lap-4 .sugoroku-game__footer {
  background-image: none;
}

.sugoroku-game__footer__button {
    margin: 0;
    text-align: center;
}

.sugoroku-game__footer__button__anchor {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    padding: 15px 30px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: .05em;
    color: #2d5995 !important;
    background-color: #ffc500;
    border: 3px solid #2d5995;
    border-radius: 100vw;
    text-decoration: none !important;
    box-sizing: border-box;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.sugoroku-game__footer__button__icon {
    display: block;
    flex-shrink: 0;
    width: 15px;
    height: auto;
    pointer-events: none;
    user-select: none;
    @media screen and (max-width: 768px) {
      width: 2.769vw;
    }
}

.sugoroku-game__footer__button__anchor:hover,
.sugoroku-game__footer__button__anchor:focus-visible {
    color: #2d5995 !important;
    text-decoration: none !important;
    filter: brightness(1.05);
}

.sugoroku-game__play {
    margin: 0 auto;
    padding-top: 1rem;
    @media screen and (max-width: 768px) {
      padding-top: 10vw;
    }
}
/* すごろくゲームプレイエリア */
.sugoroku-game__play {
  color: var(--play-text);
}

/* プライマリボタン（サイコロ・イベント確認など共通） */
.sugoroku-game__play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 3rem;
  padding: 0.75rem 1.1rem;
  font: inherit;
  font-size: var(--play-fs-base);
  font-weight: 600;
  line-height: 1.3;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: var(--play-btn-text-on-accent);
  background: linear-gradient(180deg, var(--play-accent) 0%, var(--play-btn-gradient-bottom) 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.sugoroku-game__play-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.32);
}

.sugoroku-game__play-btn:active:not(:disabled) {
  transform: translateY(0);
  filter: brightness(0.98);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
}

.sugoroku-game__play-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.sugoroku-game__play-btn:focus,
.sugoroku-game__play-btn:focus-visible {
  outline: none;
}

.sugoroku-game__play-btn[hidden] {
  display: none;
}

.sugoroku-game__play-btn-row .sugoroku-game__play-btn,
.sugoroku-game__play-btn-row a.sugoroku-game__play-btn,
.sugoroku-game__play-cell__actions .sugoroku-game__play-btn {
  width: 100%;
  max-width: 100%;
}

a.sugoroku-game__play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  text-align: center;
  text-decoration: none;
}

.app__title {
  font-size: var(--play-fs-title);
  font-weight: 700;
  margin: 0 0 0.85rem;
  letter-spacing: 0.02em;
  text-align: center;
}

.sugoroku-game__play-load-error {
  margin: 0 auto 1rem;
  max-width: 36rem;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  background: rgba(180, 60, 60, 0.25);
  border: 1px solid rgba(255, 120, 120, 0.45);
  color: #ffc9c9;
  font-size: var(--play-fs-base);
  text-align: center;
}

.sugoroku-game__play-main {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
  width: 100%;
}

/* プレイ開始前の半透明カバー（game-main 全体） */
.sugoroku-game__play-gate {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  box-sizing: border-box;
  background: rgba(8, 12, 22, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.sugoroku-game__play-gate[hidden] {
  display: none !important;
}

.sugoroku-game__play-gate__panel {
  width: min(100%, 22rem);
  padding: 1.35rem 1.5rem;
  text-align: center;
  border-radius: 12px;
  background: var(--play-board-bg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.sugoroku-game__play-gate__title {
  margin: 0 0 0.75rem;
  font-size: var(--play-fs-xl);
  font-weight: 700;
  color: var(--play-text);
}

.sugoroku-game__play-gate__note {
  margin: 0 0 1.1rem;
  font-size: var(--play-fs-sm);
  line-height: 1.55;
  color: var(--play-muted);
  text-align: left;
}

.sugoroku-game__play-gate__actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.sugoroku-game__play-gate__actions .sugoroku-game__play-btn {
  width: 100%;
  max-width: 100%;
}

.sugoroku-game__play-gate__demo-hint {
  margin: 0.85rem 0 0;
  font-size: var(--play-fs-xs);
  line-height: 1.45;
  color: var(--play-muted);
}

.sugoroku-game__play-hud {
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(0.35rem, 2vw, 1rem);
  align-items: stretch;
  justify-content: center;
  margin: 0;
  width: 100%;
  max-width: 100%;
}

.sugoroku-game__play-hud--center {
  width: 100%;
}

.sugoroku-game__play-hud__item {
  flex: 1 1 0%;
  min-width: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.45rem clamp(0.4rem, 2vw, 1rem);
  font-size: clamp(0.9rem, 3.15vw, var(--play-fs-base));
  line-height: 1.35;
  text-align: center;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.sugoroku-game__play-hud__item strong {
  color: var(--play-accent);
  font-variant-numeric: tabular-nums;
}

.sugoroku-game__play-board-wrap {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: min(666px, 100%);
  margin-inline: auto;
  overflow: visible;
}

/* 盤面下の背景（board.svg の背面・下揃え） */
.sugoroku-game__play-board-bg {
  position: absolute;
  left: 50%;
  bottom: 4%;
  z-index: 0;
  display: block;
  width: 118%;
  max-width: none;
  height: auto;
  transform: translateX(-50%);
  pointer-events: none;
  user-select: none;
  @media screen and (max-width: 768px) {
    width: 92.846vw;
  }
}

/* 盤面周辺の雲装飾 */
.sugoroku-game__play-board-cloud {
  position: absolute;
  z-index: 1;
  display: block;
  height: auto;
  pointer-events: none;
  user-select: none;
  animation: board-cloud-float 5.5s ease-in-out infinite;
}

.sugoroku-game--lap-2 .sugoroku-game__play-board-cloud { margin-top: 100px; }
.sugoroku-game--lap-3 .sugoroku-game__play-board-cloud { margin-top: clamp(240px, 32vw, 430px); }
.sugoroku-game--lap-4 .sugoroku-game__play-board-cloud { margin-top: clamp(340px, 45vw, 600px); }

/* 周回別の空背景。数値はデザイン調整用の仮配置。 */
.sugoroku-game__play-sky-deco,
.sugoroku-game__play-ufo {
  position: absolute;
  z-index: 1;
  display: none;
  pointer-events: none;
  user-select: none;
}

.sugoroku-game__play-sky-deco--moon {
  left: -31%;
  top: 35%;
  width: clamp(130px, 34%, 230px);
  animation: board-moon-glow 4s ease-in-out infinite;
}

.sugoroku-game__play-sky-deco--balloon {
  right: -22%;
  top: 14%;
  z-index: 3;
  width: clamp(120px, 31%, 205px);
  animation: board-balloon-float 4.5s ease-in-out infinite;
}

.sugoroku-game--lap-2 .sugoroku-game__play-sky-deco--balloon,
.sugoroku-game--lap-3 .sugoroku-game__play-sky-deco--balloon,
.sugoroku-game--lap-4 .sugoroku-game__play-sky-deco--balloon { display: block; }

.sugoroku-game--lap-2 .sugoroku-game__play-sky-deco--balloon { top: 22%; }
.sugoroku-game--lap-3 .sugoroku-game__play-sky-deco--balloon,
.sugoroku-game--lap-4 .sugoroku-game__play-sky-deco--balloon {
  top: 132%;
  right: -2%;
}

@media screen and (min-width: 769px) {
  .sugoroku-game--lap-3 .sugoroku-game__play-sky-deco--balloon,
  .sugoroku-game--lap-4 .sugoroku-game__play-sky-deco--balloon {
    top: 99%;
    right: -28%;
  }
}

.sugoroku-game--lap-3 .sugoroku-game__play-sky-deco--moon,
.sugoroku-game--lap-4 .sugoroku-game__play-sky-deco--moon { display: block; }
.sugoroku-game--lap-4 .sugoroku-game__play-sky-deco--moon { top: 86%; }

@media screen and (max-width: 768px) {
  .sugoroku-game--lap-2 .sugoroku-game__play-sky-deco--balloon {
    top: 90%;
    right: 13%;
  }

  .sugoroku-game--lap-3 .sugoroku-game__play-sky-deco--moon {
    top: 25%;
    left: 2%;
    width: min(12vw, 96px);
  }

  .sugoroku-game--lap-4 .sugoroku-game__play-sky-deco--moon {
    top: 100%;
    left: 3%;
    width: min(18vw, 80px);
  }

  .sugoroku-game--lap-4 .sugoroku-game__play-ufo {
    top: 92%;
    right: 2%;
    width: min(28vw, 110px);
  }
}

.sugoroku-game--lap-3 .sugoroku-game__play-sky-deco--star:not(.sugoroku-game__play-sky-deco--star-05):not(.sugoroku-game__play-sky-deco--star-06),
.sugoroku-game--lap-4 .sugoroku-game__play-sky-deco--star { display: block; }
.sugoroku-game__play-sky-deco--star { width: clamp(12px, 3.5%, 24px); }
.sugoroku-game__play-sky-deco--star-01 {
  left: -28%;
  top: 22%;
}
.sugoroku-game__play-sky-deco--star-02 { right: 7%; top: 25%; }
.sugoroku-game__play-sky-deco--star-03 {
  left: -28%;
  top: 66%;
  transform: rotate(15deg);
}
.sugoroku-game__play-sky-deco--star-04 { right: -24%; top: 58%; transform: rotate(15deg); }

/* 4周目：サイコロ・UFO・戻るボタン周辺の星6点 */
.sugoroku-game--lap-4 .sugoroku-game__play-sky-deco--star-01 {
  left: -25%;
  top: 22%;
 }
.sugoroku-game--lap-4 .sugoroku-game__play-sky-deco--star-02 {
  right: -5%;
    top: 39%;
 }
.sugoroku-game--lap-4 .sugoroku-game__play-sky-deco--star-03 { left: 2%; top: 135%; }
.sugoroku-game--lap-4 .sugoroku-game__play-sky-deco--star-04 { left: 10%; right: auto; top: 146%; }
.sugoroku-game--lap-4 .sugoroku-game__play-sky-deco--star-05 { right: 10%; top: 135%; }
.sugoroku-game--lap-4 .sugoroku-game__play-sky-deco--star-06 { right: 2%; top: 146%; }

@media screen and (min-width: 769px) {
  .sugoroku-game--lap-4 .sugoroku-game__play-sky-deco--star-03,
  .sugoroku-game--lap-4 .sugoroku-game__play-sky-deco--star-05 { top: 105%; }
  .sugoroku-game--lap-4 .sugoroku-game__play-sky-deco--star-04,
  .sugoroku-game--lap-4 .sugoroku-game__play-sky-deco--star-06 { top: 116%; }
  .sugoroku-game--lap-4 .sugoroku-game__play-sky-deco--star-03 { left: 15%; }
  .sugoroku-game--lap-4 .sugoroku-game__play-sky-deco--star-04 { top: 120%; left: -14%; }
  .sugoroku-game--lap-4 .sugoroku-game__play-sky-deco--star-05 { right: 11%; }
  .sugoroku-game--lap-4 .sugoroku-game__play-sky-deco--star-06 { top: 120%; right: -22%; }
}

.sugoroku-game__play-ufo {
  right: -27%;
  top: 43%;
  z-index: 3;
  width: clamp(145px, 35%, 235px);
}
.sugoroku-game--lap-4 .sugoroku-game__play-ufo { display: block; }
.sugoroku-game--lap-4 .sugoroku-game__play-ufo { z-index: -1; }
.sugoroku-game__play-ufo__body { position: relative; z-index: 2; display: block; width: 100%; height: auto; }
.sugoroku-game__play-ufo__passenger { position: absolute; z-index: 1; height: auto; }
.sugoroku-game__play-ufo__passenger--buka {
  top: 27%;
  left: 35%;
  width: 24%;
  z-index: 2;
 }
.sugoroku-game__play-ufo__passenger--bucho {
  top: 55%;
    right: 35%;
    width: 14%;
    z-index: 3;
 }

@keyframes board-balloon-float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-14px) rotate(1deg); }
}

@keyframes board-moon-glow {
  0%, 100% { filter: drop-shadow(0 0 2px rgba(255, 247, 178, 0.25)); }
  50% { filter: drop-shadow(0 0 18px rgba(255, 247, 178, 0.9)); }
}

@media (prefers-reduced-motion: reduce) {
  .sugoroku-game__play-sky-deco--balloon,
  .sugoroku-game__play-sky-deco--moon { animation: none; }
}

.sugoroku-game__play-board-cloud--left-top {
    top: 35%;
    left: -45%;
  width: 156px;
  animation-duration: 6s;
  animation-delay: 0s;
}

.sugoroku-game__play-board-cloud--left-mid {
    top: 54%;
    left: -28%;
  width: 131px;
  animation-duration: 6.5s;
  animation-delay: -2s;
}

.sugoroku-game__play-board-cloud--right-mid {
    top: 50%;
    right: -30%;
  width: 156px;
  animation-duration: 5s;
  animation-delay: -1.2s;
}

@keyframes board-cloud-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sugoroku-game__play-board-cloud {
    animation: none;
  }
}

/* 盤面左下・右下の人物装飾 */
.sugoroku-game__play-board-deco {
  position: absolute;
  bottom: 7%;
  z-index: 5;
  display: block;
  width: clamp(72px, 24%, 132px);
  height: auto;
  pointer-events: none;
  user-select: none;
  @media screen and (max-width: 768px) {
    width: 17.948vw;
    bottom: 0;
  }
}

.sugoroku-game__play-board-deco--nezumi {
  left: 0;
  transform: translateX(-60%);
  @media screen and (max-width: 768px) {
    transform: none;
  }
}

.sugoroku-game__play-board-deco--human {
  right: 0;
  transform: translateX(80%);
  @media screen and (max-width: 768px) {
    transform: none;
  }
}

.sugoroku-game--lap-4 .sugoroku-game__play-board-deco--human { display: none; }

/* 参加方法（画面右・盤面上端のアイコン位置に合わせる） */
.sugoroku-game__play-info {
  position: absolute;
  top: -45px;
  right: -25px;
  z-index: 20;
  display: block;
  width: clamp(88px, 22vw, 204px);
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  line-height: 0;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  @media screen and (max-width: 1440px) {
    top: 100px
  }
  @media screen and (max-width: 768px) {
    top: 5.5vw;
    right: -10px;
    width: 25vw;
  }
}

.sugoroku-game__play-info__icon {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.sugoroku-game__play-info--popup-open {
  pointer-events: none;
}

.sugoroku-game__play-info--popup-open .sugoroku-game__play-info__icon {
  opacity: 0;
}

.sugoroku-game__play-info--reveal-from-right .sugoroku-game__play-info__icon {
  transition: none;
  animation: sugoroku-play-info-reveal-from-right 0.28s ease forwards;
}

@keyframes sugoroku-play-info-reveal-from-right {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.sugoroku-game__play-info:hover .sugoroku-game__play-info__icon {
  transform: translateX(-5px);
}

.sugoroku-game__play-info--popup-open:hover .sugoroku-game__play-info__icon,
.sugoroku-game__play-info--reveal-from-right:hover .sugoroku-game__play-info__icon {
  transform: none;
}

/* 参加方法詳細（detail_content.png） */
.sugoroku-game__play-detail-popup {
  position: absolute;
  inset: 0;
  z-index: 1010;
  display: block;
  box-sizing: border-box;
}

.sugoroku-game__play-detail-popup[hidden] {
  display: none !important;
}

.sugoroku-game__play-detail-popup__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: var(--play-modal-backdrop, rgba(205, 239, 242, 0.85));
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.28s ease;
}

.sugoroku-game__play-detail-popup__content {
  position: absolute;
  inset: 0;
  z-index: 1;
  box-sizing: border-box;
  pointer-events: none;
}

.sugoroku-game__play-detail-popup__image {
  position: relative;
  display: block;
  width: 100%;
  max-width: 564px;
  height: auto;
  user-select: none;
}

.sugoroku-game__play-detail-popup--visible .sugoroku-game__play-detail-popup__backdrop {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .sugoroku-game__play-detail-popup__backdrop {
    transition-duration: 0.01ms;
  }

  .sugoroku-game__play-detail-popup__content__inner {
    opacity: 1;
    transform: translateY(-50%);
    transition-duration: 0.01ms;
  }

  .sugoroku-game__play-info__icon {
    transition-duration: 0.01ms;
  }

  .sugoroku-game__play-info--reveal-from-right .sugoroku-game__play-info__icon {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.sugoroku-game__play-detail-popup__content__inner {
  position: fixed;
  top: 50%;
  right: 0;
  left: auto;
  z-index: 1;
  box-sizing: border-box;
  width: min(564px, calc(100vw - 2rem));
  max-width: 564px;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(-50%) translateX(40px);
  transition: opacity 0.28s ease, transform 0.28s ease;
  
}

.sugoroku-game__play-detail-popup--visible .sugoroku-game__play-detail-popup__content__inner {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.sugoroku-game__play-detail-popup__content__inner__campaign {
  width: 194px;
  display: block;
  position: absolute;
  top: 353px;
  left: calc(50% - 37px);
  transform: translateX(-50%);
  transition: opacity 0.2s ease;
}

.sugoroku-game__play-detail-popup__content__inner__campaign img {
  display: block;
  width: 100%;
  height: auto;
}

.sugoroku-game__play-detail-popup__content__inner__campaign:hover {
  opacity: 0.75;
}

.sugoroku-game__play-detail-popup__content__inner__close {
  position: absolute;
  top: 397px;
  right: calc(50% + 12px);
  z-index: 1;
  display: block;
  margin: 0;
  padding: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  line-height: 0;
}

.sugoroku-game__play-detail-popup__content__inner__close img {
  display: block;
  width: 28px;
  height: 28px;
}

.sugoroku-game__play-detail-popup__content__inner__close:hover {
  opacity: 0.75;
}

.sugoroku-game__play-detail-popup__content__inner__close:focus-visible {
  outline: 2px solid #5d488f;
  outline-offset: 2px;
  border-radius: 4px;
}

/* 遊び方（盤面右上・サイコロボタンと対称） */
.sugoroku-game__play-info-btn {
  position: absolute;
  top: 5px;
  right: -70px;
  z-index: 20;
  display: block;
  width: clamp(96px, 34%, 224px);
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  line-height: 0;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  @media screen and (max-width: 768px) {
    top: -14vw;;
    width: 38.974vw;
    right: 1.282vw;
  }
}

.sugoroku-game__play-info-btn__icon {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
  transition: transform 0.2s ease;
}

.sugoroku-game__play-info-btn:focus,
.sugoroku-game__play-info-btn:focus-visible {
  outline: none;
}

/* サイコロを振る（盤面左上）＋周目表示 */
.sugoroku-game__play-roll-area {
  position: absolute;
  top: 0;
  left: -110px;
  /* 盤面（z-index: 2）より背面に置き、コマと高度計が重なった際はコマを前面にする */
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: clamp(96px, 24%, 162px);
  @media screen and (max-width: 768px) {
    top: -10vw;
    left: 1.282vw;
    width: 18vw;
  }
}

.sugoroku-game__play-roll-btn {
  --play-roll-deco-top: -40px;
  --play-roll-deco-left: 40px;
  position: relative;
  top: auto;
  left: auto;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  overflow: visible;
  @media screen and (max-width: 768px) {
    --play-roll-deco-top: -6vw;
    --play-roll-deco-left: 3.41vw;
  }
}

.sugoroku-game__play-lap {
  margin: 0;
  padding: 0;
  width: max-content;
  max-width: none;
  font-size: clamp(0.8125rem, 2.8vw, 15px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-align: center;
  color: #3c3c3c;
  white-space: nowrap;
  @media screen and (max-width: 768px) {
    margin-top: 2vw;
  }
}

.sugoroku-game__play-lap__label {
  color: #5d488f;
}

.sugoroku-game__play-lap strong {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.sugoroku-game__play-altimeter {
  display: block;
  width: 119%;
  max-width: 193px;
  height: auto;
  margin-top: 5px;
  pointer-events: none;
  user-select: none;
  @media screen and (max-width: 768px) {
    width: 22vw;
    max-width: none;
  }
}

.sugoroku-game__play-roll-btn:focus,
.sugoroku-game__play-roll-btn:focus-visible {
  outline: none;
}

.sugoroku-game__play-roll-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.sugoroku-game__play-roll-btn__stack {
  position: relative;
  display: block;
  width: 100%;
}

.sugoroku-game__play-roll-btn__shadow {
  max-width: 156px;
  position: absolute;
  top: 20px;
  left: 1px;
  z-index: 0;
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
  @media screen and (max-width: 768px) {
    top: 1.564vw;
    left: 0.128vw;
  }
}

.sugoroku-game__play-roll-btn__face {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
  transition: transform 0.15s ease;
}

.sugoroku-game__play-roll-btn:hover:not(:disabled) .sugoroku-game__play-roll-btn__face,
.sugoroku-game__play-roll-btn:hover:not(:disabled) .sugoroku-game__play-roll-btn__deco-set {
  transform: translateY(10px);
}

.sugoroku-game__play-roll-btn:active:not(:disabled) .sugoroku-game__play-roll-btn__face,
.sugoroku-game__play-roll-btn:active:not(:disabled) .sugoroku-game__play-roll-btn__deco-set {
  transform: translateY(20px);
}

/* サイコロボタン上の装飾（button 基準・--play-roll-deco-top / left で調整） */
.sugoroku-game__play-roll-btn__deco-set {
  position: absolute;
  top: var(--play-roll-deco-top);
  left: var(--play-roll-deco-left);
  z-index: 2;
  pointer-events: none;
  user-select: none;
  transition: transform 0.15s ease;
}

.sugoroku-game__play-roll-btn__deco {
  position: relative;
  top: auto;
  left: auto;
  display: block;
  width: 78px;
  max-width: none;
  height: auto;
  pointer-events: none;
  user-select: none;
  transform-origin: 50% 88%;
  @media screen and (max-width: 768px) {
    width: 11.282vw;
  }
}

.sugoroku-game__play-roll-btn__deco-balloon {
  --play-roll-deco-balloon-top: -12px;
  --play-roll-deco-balloon-left: calc(78px + 6px);
  position: absolute;
  top: var(--play-roll-deco-balloon-top);
  left: var(--play-roll-deco-balloon-left);
  display: none;
  width: 111px;
  max-width: none;
  height: auto;
  pointer-events: none;
  user-select: none;
  transform-origin: 8% 72%;
  @media screen and (max-width: 768px) {
    --play-roll-deco-balloon-top: -2vw;
    --play-roll-deco-balloon-left: 11.282vw;
    width: 16.1538vw;
  }
}

.sugoroku-game__play-roll-btn__deco-set--talking .sugoroku-game__play-roll-btn__deco {
  animation: roll-deco-talk 1.75s ease-in-out infinite;
}

.sugoroku-game__play-roll-btn__deco-set--talking .sugoroku-game__play-roll-btn__deco-balloon {
  display: block;
  animation: roll-deco-balloon-talk 1.75s ease-in-out infinite;
}

@keyframes roll-deco-talk {
  0% {
    transform: translateY(0) scale(1, 1);
  }

  4.29% {
    transform: translateY(-1px) scale(1.015, 0.985);
  }

  8.57% {
    transform: translateY(0) scale(1, 1);
  }

  12.86% {
    transform: translateY(-2px) scale(1.025, 0.975);
  }

  17.14% {
    transform: translateY(0) scale(1, 1);
  }

  21.43% {
    transform: translateY(-1px) scale(1.01, 0.99);
  }

  25.71% {
    transform: translateY(0) scale(1, 1);
  }

  30% {
    transform: translateY(-2px) scale(1.02, 0.98);
  }

  34.29% {
    transform: translateY(0) scale(1, 1);
  }

  38.57% {
    transform: translateY(-1px) scale(1.012, 0.988);
  }

  42.86%,
  100% {
    transform: translateY(0) scale(1, 1);
  }
}

@keyframes roll-deco-balloon-talk {
  0% {
    transform: scale(1);
  }

  4.29% {
    transform: scale(1.06);
  }

  8.57% {
    transform: scale(0.96);
  }

  12.86% {
    transform: scale(1.05);
  }

  17.14% {
    transform: scale(0.97);
  }

  21.43% {
    transform: scale(1.04);
  }

  25.71% {
    transform: scale(0.98);
  }

  30% {
    transform: scale(1.05);
  }

  34.29% {
    transform: scale(0.97);
  }

  38.57% {
    transform: scale(1.03);
  }

  42.86%,
  100% {
    transform: scale(1);
  }
}

/* サイコロ演出：ページ全体の暗転 + 盤面エリアにポップアップ */
.sugoroku-game__play-dice-visual-root {
  display: contents;
}

.sugoroku-game__play-dice-visual-root[hidden] {
  display: none !important;
}

.sugoroku-game__play-dice-backdrop {
  position: absolute;
  inset: 0;
  z-index: 980;
  background: var(--play-modal-backdrop, rgba(205, 239, 242, 0.85));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.38s ease;
}

.sugoroku-game__play-dice-visual-root.sugoroku-game__play-dice-visual-root--show .sugoroku-game__play-dice-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.sugoroku-game__play-dice-visual {
  position: absolute;
  z-index: 990;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.38s ease;
}

.sugoroku-game__play-dice-visual-root.sugoroku-game__play-dice-visual-root--show .sugoroku-game__play-dice-visual {
  opacity: 1;
  pointer-events: auto;
}

.sugoroku-game__play-dice-visual__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  width: 100%;
  height: auto;
  max-height: 100%;
  max-width: none;
  padding: var(--play-modal-panel-padding, 40px);
  box-sizing: border-box;
  overflow-y: auto;
  --play-modal-panel-bg: var(--play-dice-popup-bg, #fff097);
  --play-modal-text-color: #3c3c3c;
  --play-modal-key-color: #3c3c3c;
  background: var(--play-modal-panel-bg);
  border: 3px solid #ffffff;
  border-radius: var(--play-dice-popup-radius, 16px);
  box-shadow: var(--play-dice-popup-shadow);
  opacity: 0;
  transform: scale(0.86);
  transform-origin: center center;
  will-change: opacity, transform;
}

.sugoroku-game__play-dice-visual-root.sugoroku-game__play-dice-visual-root--show .sugoroku-game__play-dice-visual__card {
  animation: sugoroku-game-dice-modal-pop-in var(--play-modal-pop-in-duration, 0.6s) var(--play-modal-pop-in-easing, cubic-bezier(0.22, 1.2, 0.36, 1)) forwards;
}

.sugoroku-game__play-dice-visual__title {
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: "Dela Gothic One", sans-serif;
  font-size: 48px;
  font-weight: 500;
  font-style: normal;
  line-height: 1.2;
  text-align: center;
  color: var(--play-modal-text-color, #3c3c3c);
}

.sugoroku-game__play-dice-visual__main {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 0;
}

.sugoroku-game__play-dice-stage--overlay {
  flex: 0 0 auto;
  width: min(100%, 460px);
  max-width: min(460px, 88%);
  aspect-ratio: 1;
  max-height: min(460px, 100%);
  min-height: 0;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  background: var(--play-dice-popup-bg, #fff097);
}

/* 波打ち／出目で高さが変わらないようスロットを固定 */
.sugoroku-game__play-dice-result--overlay {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  height: var(--play-dice-result-height, 120px);
  min-height: var(--play-dice-result-height, 120px);
  margin: 0.15rem 0 0;
  padding: 0;
  text-align: center;
}

.sugoroku-game__play-dice-result__rolling {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0;
  min-height: 0;
}

.sugoroku-game__play-dice-result__rolling[hidden] {
  display: none !important;
}

.sugoroku-game__play-dice-result__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  animation: dice-roll-dot 0.85s ease-in-out infinite;
}

.sugoroku-game__play-dice-result__dot:nth-child(2) {
  animation-delay: 0.15s;
}

.sugoroku-game__play-dice-result__dot:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes dice-roll-dot {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.55;
  }
  50% {
    transform: translateY(-0.55rem);
    opacity: 1;
  }
}

.sugoroku-game__play-dice-result__outcome {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  font-family: "Dela Gothic One", sans-serif;
}

.sugoroku-game__play-dice-result__outcome[hidden] {
  display: none !important;
}

.sugoroku-game__play-dice-result__digit {
  display: inline-block;
  font-size: 100px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--play-modal-key-color, #3c3c3c);
  text-shadow: none;
}

.sugoroku-game__play-dice-result__digit--pop {
  animation: dice-outcome-pop 0.62s cubic-bezier(0.22, 1.35, 0.36, 1) forwards;
}

@keyframes dice-outcome-pop {
  0% {
    transform: scale(0.15) rotate(-12deg);
    opacity: 0;
    filter: blur(6px);
  }
  55% {
    transform: scale(1.14) rotate(4deg);
    opacity: 1;
    filter: blur(0);
  }
  78% {
    transform: scale(0.94) rotate(-2deg);
  }
  100% {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
}

.sugoroku-game__play-dice-result__error {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 0.5rem;
  font-size: var(--play-fs-body);
  font-weight: 600;
  color: #b42318;
}

.sugoroku-game__play-dice-result__error[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .sugoroku-game__play-dice-backdrop,
  .sugoroku-game__play-dice-visual {
    transition-duration: 0.01ms;
  }

  .sugoroku-game__play-dice-visual__card {
    animation: none !important;
  }

  .sugoroku-game__play-dice-visual-root.sugoroku-game__play-dice-visual-root--show .sugoroku-game__play-dice-visual__card {
    opacity: 1;
    transform: scale(1);
  }

  .sugoroku-game__play-btn,
  .sugoroku-game__play-info-btn__icon,
  .sugoroku-game__play-roll-btn,
  .sugoroku-game__play-roll-btn__face,
  .sugoroku-game__play-roll-btn__deco-set {
    transition-duration: 0.01ms;
  }

  .sugoroku-game__play-roll-btn__deco-set--talking .sugoroku-game__play-roll-btn__deco,
  .sugoroku-game__play-roll-btn__deco-set--talking .sugoroku-game__play-roll-btn__deco-balloon {
    animation: none;
  }

  .sugoroku-game__play-btn:hover:not(:disabled),
  .sugoroku-game__play-btn:active:not(:disabled),
  .sugoroku-game__play-btn--ghost:hover:not(:disabled),
  .sugoroku-game__play-btn--ghost:active:not(:disabled),
  .sugoroku-game__play-popup__footer > .sugoroku-game__play-btn:hover:not(:disabled),
  .sugoroku-game__play-popup__footer > .sugoroku-game__play-btn:active:not(:disabled),
  .sugoroku-game__play-article-popup .sugoroku-game__play-popup__footer .sugoroku-game__play-popup__link:hover:not(:disabled),
  .sugoroku-game__play-article-popup .sugoroku-game__play-popup__footer .sugoroku-game__play-popup__link:active:not(:disabled),
  .sugoroku-game__play-popup__dismiss.sugoroku-game__play-btn:hover:not(:disabled),
  .sugoroku-game__play-popup__dismiss.sugoroku-game__play-btn:active:not(:disabled),
  .sugoroku-game__play-info-btn:hover:not(:disabled) .sugoroku-game__play-info-btn__icon,
  .sugoroku-game__play-info-btn:active:not(:disabled) .sugoroku-game__play-info-btn__icon {
    transform: none;
  }

  .sugoroku-game__play-dice-result__dot,
  .sugoroku-game__play-dice-result__digit--pop {
    animation: none;
  }

  .sugoroku-game__play-dice-result__digit--pop {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* サイコロ操作エリア（キャンペーン応募など） */
.sugoroku-game__play-dice-area {
  position: relative;
  width: 100%;
  max-width: min(520px, 100%);
  margin-top: 0.25rem;
}

.sugoroku-game__play-user-state-toolbar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.45rem;
}

.sugoroku-game__play-user-state-toolbar .sugoroku-game__play-btn {
  width: 100%;
}

.sugoroku-game__play-btn--ghost {
  color: var(--play-muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: none;
  font-size: var(--play-fs-sm);
  font-weight: 500;
  min-height: 2.35rem;
}

.sugoroku-game__play-btn--ghost:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: none;
  color: var(--play-text);
  border-color: rgba(244, 185, 66, 0.35);
  background: rgba(255, 255, 255, 0.1);
}

.sugoroku-game__play-btn--ghost:active:not(:disabled) {
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.07);
}

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

.sugoroku-game__play-dice-stage {
  width: 100%;
  aspect-ratio: 1;
  max-height: 220px;
  margin: 0 auto;
  border-radius: 0;
  overflow: hidden;
  background: var(--play-dice-popup-bg, #fff097);
}

.sugoroku-game__play-dice-stage canvas,
#diceCanvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  background: var(--play-dice-popup-bg, #fff097) !important;
  outline: none;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.sugoroku-game__play-dice-result {
  text-align: center;
  font-size: var(--play-fs-lg);
  margin: 0;
  padding: 0 0.5rem;
  min-height: 1.5em;
  color: var(--play-text);
}

.sugoroku-game__play-board {
  position: relative;
  width: 100%;
  z-index: 2;
  /* コマ位置調整（game.js positionPawnAt が参照） */
  --play-pawn-anchor-y: 0.28;
  --play-pawn-translate-y: -72%;
  aspect-ratio: 665.53 / 739.12;
  border-radius: 0;
  overflow: visible;
  background: transparent url('/member_assets/images/page/member/p/campaign/sugoroku/game/board.svg') center / 100% 100% no-repeat;
}

/* ひし形外周の24マス（board.svg 上の中心座標に game.js で絶対配置） */
.sugoroku-game__play-board.sugoroku-game__play-board--diamond {
  box-sizing: border-box;
}

.sugoroku-game__play-board__pawn {
  position: absolute;
  width: 157px;
  height: auto;
  left: 0;
  top: 0;
  margin: 0;
  pointer-events: none;
  z-index: 15;
  will-change: left, top;
  transform: translate(-50%, var(--play-pawn-translate-y, -72%));
  @media screen and (max-width: 768px) {
    width: 22.051vw;
  }
}

/* サイコロ出目・イベント移動のときだけスライド（セーブ読込・リサイズは即時） */
.sugoroku-game__play-board__pawn.sugoroku-game__play-board__pawn--step {
  transition:
    left var(--play-pawn-step-duration, 380ms) ease-out,
    top var(--play-pawn-step-duration, 380ms) ease-out;
}

.sugoroku-game__play-board__pawn.sugoroku-game__play-board__pawn--hop {
  animation: pawnHop var(--play-pawn-hop-duration, 410ms) ease-out;
}

@keyframes pawnHop {
  0%,
  100% {
    transform: translate(-50%, var(--play-pawn-translate-y, -72%)) scale(1);
  }
  50% {
    transform: translate(-50%, calc(var(--play-pawn-translate-y, -72%) - 6%)) scale(1.04);
  }
}

/* 到着演出：コマ着地バウンス */
.sugoroku-game__play-board__pawn.sugoroku-game__play-board__pawn--arrive {
  animation: pawnArrive 0.68s cubic-bezier(0.22, 1.2, 0.36, 1);
}

@keyframes pawnArrive {
  0%,
  100% {
    transform: translate(-50%, var(--play-pawn-translate-y, -72%)) scale(1);
  }

  28% {
    transform: translate(-50%, calc(var(--play-pawn-translate-y, -72%) - 10%)) scale(1.1);
  }

  52% {
    transform: translate(-50%, calc(var(--play-pawn-translate-y, -72%) + 2%)) scale(0.97);
  }

  72% {
    transform: translate(-50%, calc(var(--play-pawn-translate-y, -72%) - 4%)) scale(1.03);
  }
}

/* 到着演出：着地マス（通常） */
.sugoroku-game__play-cell--arrived:not(.sugoroku-game__play-cell--arrived-event):not(.sugoroku-game__play-cell--arrived-popup):not(.sugoroku-game__play-cell--blank) .sugoroku-game__play-cell__disc {
  animation: playCellArriveDisc 0.68s ease-out;
}

@keyframes playCellArriveDisc {
  0%,
  100% {
    transform: scale(1);
    box-shadow: none;
    filter: brightness(1);
  }

  38% {
    transform: scale(1.08);
    box-shadow: 0 0 0 5px rgba(255, 246, 169, 0.55);
    filter: brightness(1.12);
  }
}

/* 到着演出：イベントマス */
.sugoroku-game__play-cell--arrived-event .sugoroku-game__play-cell__disc {
  animation: playCellArriveEventDisc 0.68s ease-out;
}

.sugoroku-game__play-cell--arrived-event .sugoroku-game__play-cell__disc::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 246, 169, 0.95) 0 3px, transparent 4px),
    radial-gradient(circle at 78% 28%, rgba(255, 246, 169, 0.85) 0 2px, transparent 3px),
    radial-gradient(circle at 62% 78%, rgba(255, 246, 169, 0.8) 0 2px, transparent 3px),
    radial-gradient(circle at 24% 72%, rgba(255, 246, 169, 0.75) 0 2px, transparent 3px);
  opacity: 0;
  animation: playCellArriveEventSparkle 0.68s ease-out;
}

.sugoroku-game__play-cell--arrived-event.sugoroku-game__play-cell--event-01 .sugoroku-game__play-cell__disc {
  --play-arrive-event-glow: rgba(180, 213, 236, 0.75);
}

.sugoroku-game__play-cell--arrived-event.sugoroku-game__play-cell--event-02 .sugoroku-game__play-cell__disc {
  --play-arrive-event-glow: rgba(236, 196, 232, 0.85);
}

.sugoroku-game__play-cell--arrived-event.sugoroku-game__play-cell--event-03 .sugoroku-game__play-cell__disc {
  --play-arrive-event-glow: rgba(221, 212, 227, 0.85);
}

@keyframes playCellArriveEventDisc {
  0%,
  100% {
    transform: scale(1);
    box-shadow: none;
    filter: brightness(1);
  }

  38% {
    transform: scale(1.12);
    box-shadow:
      0 0 0 5px var(--play-arrive-event-glow, rgba(206, 214, 239, 0.65)),
      0 0 16px rgba(255, 246, 169, 0.55);
    filter: brightness(1.15);
  }
}

@keyframes playCellArriveEventSparkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.85) rotate(0deg);
  }

  40% {
    opacity: 1;
    transform: scale(1.05) rotate(8deg);
  }

  70% {
    opacity: 0.45;
    transform: scale(1.15) rotate(14deg);
  }
}

/* 到着演出：ポップアップマス */
.sugoroku-game__play-cell--arrived-popup .sugoroku-game__play-cell__disc {
  animation: playCellArrivePopupDisc 0.68s ease-out;
}

.sugoroku-game__play-cell--arrived-popup .sugoroku-game__play-cell__disc::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  pointer-events: none;
  border: 2px solid rgba(118, 178, 24, 0.35);
  opacity: 0;
  animation: playCellArrivePopupRing 0.68s ease-out;
}

@keyframes playCellArrivePopupDisc {
  0%,
  100% {
    transform: scale(1);
    box-shadow: none;
    filter: brightness(1);
  }

  38% {
    transform: scale(1.1);
    box-shadow:
      0 0 0 5px rgba(118, 178, 24, 0.28),
      0 0 14px rgba(204, 237, 177, 0.75);
    filter: brightness(1.14);
  }
}

@keyframes playCellArrivePopupRing {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.78);
  }

  35% {
    opacity: 1;
    transform: scale(1);
  }

  72% {
    opacity: 0;
    transform: scale(1.22);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sugoroku-game__play-board__pawn.sugoroku-game__play-board__pawn--arrive,
  .sugoroku-game__play-cell--arrived .sugoroku-game__play-cell__disc,
  .sugoroku-game__play-cell--arrived .sugoroku-game__play-cell__disc::after {
    animation-duration: 0.01ms !important;
  }
}

.sugoroku-game__play-cell {
  position: relative;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  overflow: visible;
}

.sugoroku-game__play-board--diamond .sugoroku-game__play-cell--path {
  position: absolute;
  z-index: 2;
}

/* 上面（disc）中心を SVG マス中心に合わせる + マスごとの微調整（--cell-offset-x/y） */
.sugoroku-game__play-board--diamond .sugoroku-game__play-cell--path {
  transform: translate(
    calc(-50% + var(--cell-offset-x, 0%)),
    calc(var(--space-token-size, 71px) * -0.5 + var(--cell-offset-y, 0%))
  );
}

/* スタート・イベント・ポップアップマス（上面 71px + 側面 SVG） */
.sugoroku-game__play-cell--path:not(.sugoroku-game__play-cell--blank) .sugoroku-game__play-cell__space {
  --space-token-size: 71px;
  --space-cylinder-ratio: 0.529;
}

/* 空マス：盤面 SVG の黄色マスに合わせた非表示アンカー（コマ位置 = 他マスと同じ disc 基準） */
.sugoroku-game__play-cell--blank .sugoroku-game__play-cell__space {
  visibility: hidden;
}

/* スタート・イベント・ポップアップ（円柱トークン） */
.sugoroku-game__play-cell__space {
  --space-edge: #8c8377;
  --space-disc-fill: #ccedb1;
  --space-token-size: 71px;
  --space-cylinder-ratio: 0.529;
  position: relative;
  width: var(--space-token-size);
  height: calc(var(--space-token-size) * 0.5 + var(--space-token-size) * var(--space-cylinder-ratio));
  margin: 0 auto;
  pointer-events: none;
}

/* 下面・側面（space_cylinder.svg：上面フラット＋下が半楕円） */
.sugoroku-game__play-cell__cylinder {
  position: absolute;
  left: 50%;
  top: 33px;
  z-index: 0;
  display: block;
  width: var(--space-token-size);
  height: auto;
  transform: translateX(-50%);
  /* display: none; */
}

.sugoroku-game__play-cell__disc {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--space-token-size);
  height: var(--space-token-size);
  box-sizing: border-box;
  border: 3px solid var(--space-edge);
  border-radius: 50%;
  background-color: var(--space-disc-fill);
}

.sugoroku-game__play-cell__icon {
  display: block;
  width: min(calc(88% + 8px), calc(100%));
  height: min(calc(88% + 8px), calc(100%));
  object-fit: contain;
  pointer-events: none;
}

.sugoroku-game__play-cell--start .sugoroku-game__play-cell__disc {
  --space-disc-fill: #e8dff0;
}

.sugoroku-game__play-cell--popup-01 .sugoroku-game__play-cell__disc {
  --space-disc-fill: #ccedb1;
}

.sugoroku-game__play-cell--popup-02 .sugoroku-game__play-cell__disc {
  --space-disc-fill: #fcded4;
}

.sugoroku-game__play-cell--popup-03 .sugoroku-game__play-cell__disc {
  --space-disc-fill: #ecc8df;
}

.sugoroku-game__play-cell--popup-04 .sugoroku-game__play-cell__disc {
  --space-disc-fill: #cfeaf3;
}

.sugoroku-game__play-cell--popup-05 .sugoroku-game__play-cell__disc {
  --space-disc-fill: #fdefbf;
}

.sugoroku-game__play-cell--popup-06 .sugoroku-game__play-cell__disc {
  --space-disc-fill: #bce8da;
}

.sugoroku-game__play-cell--event-01 .sugoroku-game__play-cell__disc {
  --space-disc-fill: #ced6ef;
}

.sugoroku-game__play-cell--event-02 .sugoroku-game__play-cell__disc {
  --space-disc-fill: #ecc4e8;
}

.sugoroku-game__play-cell--event-03 .sugoroku-game__play-cell__disc {
  --space-disc-fill: #ddd4e3;
}

.sugoroku-game__play-cell--path {
  background: none;
}

.sugoroku-game__play-cell--center {
  z-index: 5;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  text-align: center;
  padding: clamp(0.55rem, 2.5vw, 0.85rem) clamp(0.65rem, 3vw, 1rem);
  font-size: var(--play-fs-base);
  line-height: 1.55;
  color: var(--play-text);
  overflow: visible;
  min-width: 0;
  box-sizing: border-box;
  pointer-events: auto;
}

/* ひし形盤の幾何中心に配置（grid 2/12 だと上下左右がずれる） */
.sugoroku-game__play-board--diamond .sugoroku-game__play-cell--center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 70%;
  max-width: calc(100% - 1.5rem);
  max-height: calc(100% - 1.5rem);
}

.sugoroku-game__play-cell--center .sugoroku-game__play-cell__message {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 0;
}

.sugoroku-game__play-current-position {
  flex: 0 0 auto;
  width: 100%;
  margin-top: 3.75rem;
  text-align: center;
}

.sugoroku-game__play-current-position__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: #5d488f;
}

.sugoroku-game__play-current-position__value {
  margin: 0.2rem 0 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: #5d488f;
}

.sugoroku-game__play-cell--center .sugoroku-game__play-cell__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  text-align: center;
}

.sugoroku-game__play-message-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 3.75rem 0 0;
}

.sugoroku-game__play-message-visual__image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  user-select: none;
  pointer-events: none;
}

.sugoroku-game__play-message-visual--start .sugoroku-game__play-message-visual__image {
  width: 250px;
}

.sugoroku-game__play-message-visual--more .sugoroku-game__play-message-visual__image {
  max-width: 309px;
  width: 100%;
}

.sugoroku-game__play-message-visual--limit .sugoroku-game__play-message-visual__image {
  width: 273px;
}

.sugoroku-game__play-cell--center .sugoroku-game__play-remaining-dice {
  flex: 0 0 auto;
  width: 100%;
  margin-top: auto;
  padding-top: 0.65rem;
  padding-bottom: 30px;
  text-align: center;
}

.sugoroku-game__play-remaining-dice__divider {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  margin: 0 0 1.2rem;
}

.sugoroku-game__play-remaining-dice__divider > span {
  flex: 0 0 auto;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background-color: #5d488f;
}

.sugoroku-game__play-remaining-dice__label {
  display: block;
  font-size: clamp(0.75rem, 2.4vw, 13px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: #5d488f;
}

.sugoroku-game__play-remaining-dice__count {
  margin: 0.5rem 0 0;
  font-size: clamp(0.875rem, 3vw, 18px);
  font-weight: 500;
  line-height: 1.35;
  color: #3c3c3c;
}

.sugoroku-game__play-remaining-dice__count strong {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #3c3c3c;
}

.sugoroku-game__play-cell--center .sugoroku-game__play-cell__body p {
  margin: 0.35rem 0;
  width: 100%;
  text-align: center;
}

.sugoroku-game__play-cell--center .sugoroku-game__play-cell__roll-hint {
  margin: 0.65rem 0 0;
  font-size: var(--play-fs-body);
  line-height: 1.5;
  color: #3c3c3c;
  text-align: center;
  width: 100%;
}

.sugoroku-game__play-cell--center .sugoroku-game__play-cell__roll-hint--muted {
  color: var(--play-muted);
  font-size: var(--play-fs-md);
}

.sugoroku-game__play-cell--center .sugoroku-game__play-cell__roll-hint--week-ended {
  color: var(--play-accent);
  font-weight: 600;
}

/* 週次／記事リンク由来のサイコロ付与ポップアップ */
.sugoroku-game__play-dice-grant-popup__panel {
  text-align: center;
}

.sugoroku-game__play-dice-grant-popup__count {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 0 2.85rem;
  font-family: "Dela Gothic One", sans-serif;
  font-size: clamp(2rem, 8vw, 62px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--play-modal-key-color, #3c3c3c);
  font-variant-numeric: tabular-nums;
}

.sugoroku-game__play-dice-grant-popup__count-dice {
  display: block;
  width: auto;
  max-width: 80px;
  height: auto;
  flex-shrink: 0;
}

.sugoroku-game__play-dice-grant-popup__count-value {
  display: inline-block;
  margin-left: 0.5rem;
  vertical-align: middle;
  line-height: 0;
}

.sugoroku-game__play-dice-grant-popup__count-value-image {
  display: block;
  width: 112px;
  max-width: 100%;
  height: auto;
}

@media screen and (max-width: 768px) {
  .sugoroku-game__play-dice-grant-popup__count-value-image {
    width: clamp(72px, 29.744vw, 112px);
  }
}

.sugoroku-game__play-dice-grant-popup__visual {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin: 0 0 1rem;
  min-height: 2.5rem;
}

.sugoroku-game__play-dice-grant-popup__die {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 6px;
  background: linear-gradient(145deg, #f8f8f8, #d8d8d8);
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  display: grid;
  place-items: center;
  font-size: var(--play-fs-die);
  font-weight: 700;
  color: #1a1a1a;
}

.sugoroku-game__play-dice-grant-popup__start-info {
  display: block;
  width: 100%;
  max-width: 473px;
  height: auto;
  margin: 1rem auto 0;
}

.sugoroku-game__play-dice-grant-popup__start-info img {
  display: block;
  width: 100%;
  height: auto;
}

.sugoroku-game__play-dice-grant-popup__start-info[hidden] {
  display: none !important;
}

.sugoroku-game__play-cell--center .sugoroku-game__play-cell__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 0;
  gap: 0.35rem;
  box-sizing: border-box;
}

.sugoroku-game__play-cell--center .sugoroku-game__play-cell__actions .sugoroku-game__play-btn {
  margin-top: 0;
}

.sugoroku-game__play-cell--center .sugoroku-game__play-event-hint {
  font-size: var(--play-fs-xs);
  color: var(--play-muted);
  margin: 0;
  text-align: center;
  max-width: 100%;
}


.sugoroku-game__play-btn-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* 別タブから本タブへ戻ったときの通知（ポップアップ内リンク経由後の復帰検知用） */
.sugoroku-game__play-tab-return-toast {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1100;
  max-width: min(90vw, 360px);
  padding: 0.65rem 1.1rem;
  font-size: var(--play-fs-body);
  line-height: 1.45;
  color: var(--play-text);
  background: rgba(15, 23, 41, 0.95);
  border: 1px solid rgba(244, 185, 66, 0.35);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  text-align: center;
  pointer-events: none;
}

.sugoroku-game__play-tab-return-toast[hidden] {
  display: none !important;
}

/* イベント完了後のコンテンツ案内ポップアップ */
@keyframes sugoroku-game-modal-pop-in {
  0% {
    opacity: 0;
    transform: translate(-50%, calc(-50% - var(--play-modal-panel-offset-y, 0px))) scale(0.86);
  }

  55% {
    opacity: 1;
    transform: translate(-50%, calc(-50% - var(--play-modal-panel-offset-y, 0px))) scale(1.05);
  }

  78% {
    transform: translate(-50%, calc(-50% - var(--play-modal-panel-offset-y, 0px))) scale(0.98);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, calc(-50% - var(--play-modal-panel-offset-y, 0px))) scale(1);
  }
}

@keyframes sugoroku-game-dice-modal-pop-in {
  0% {
    opacity: 0;
    transform: scale(0.86);
  }

  55% {
    opacity: 1;
    transform: scale(1.05);
  }

  78% {
    transform: scale(0.98);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.sugoroku-game__play-popup {
  position: absolute;
  inset: 0;
  z-index: 1000;
  display: block;
  box-sizing: border-box;
}

/* [hidden] は UA の display:none より .sugoroku-game__play-popup の display:grid が勝つため明示する */
.sugoroku-game__play-popup[hidden] {
  display: none !important;
}

.sugoroku-game__play-popup__backdrop {
  position: absolute;
  inset: 0;
  background: var(--play-modal-backdrop, rgba(205, 239, 242, 0.85));
  opacity: 0;
  transition: opacity var(--play-modal-backdrop-duration, 0.36s) ease;
}

.sugoroku-game__play-popup__panel {
  position: absolute;
  z-index: 1;
  width: 100%;
  max-width: 540px;
  max-height: min(90vh, var(--play-modal-panel-max-height, 760px));
  overflow-y: auto;
  margin: 0;
  padding: var(--play-modal-panel-padding, 40px);
  box-sizing: border-box;
  background: var(--play-modal-panel-bg, var(--play-dice-popup-bg, #fff097));
  border: 3px solid #ffffff;
  border-radius: var(--play-dice-popup-radius, 16px);
  box-shadow: var(--play-dice-popup-shadow);
  opacity: 0;
  will-change: opacity, transform;
  transform: translate(-50%, calc(-50% - var(--play-modal-panel-offset-y, 0px))) scale(0.86);
  transform-origin: center center;
  .sugoroku-game__play-article-popup &,
  .sugoroku-game__play-event-cell-popup & {
    --play-modal-panel-max-height: 800px;
    padding: 40px 80px;
    min-width: 680px;
    max-width: min(90vw, 680px);
  }
}

.sugoroku-game__play-popup--visible .sugoroku-game__play-popup__backdrop {
  opacity: 1;
}

.sugoroku-game__play-popup--visible .sugoroku-game__play-popup__panel {
  animation: sugoroku-game-modal-pop-in var(--play-modal-pop-in-duration, 0.6s) var(--play-modal-pop-in-easing, cubic-bezier(0.22, 1.2, 0.36, 1)) forwards;
}

@media (min-width: 769px) {
  .sugoroku-game__play-popup__panel {
    min-width: 640px;
    max-width: min(90vw, 720px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sugoroku-game__play-popup__backdrop,
  .sugoroku-game__play-popup__panel {
    transition-duration: 0.01ms;
    animation: none !important;
  }

  .sugoroku-game__play-popup--visible .sugoroku-game__play-popup__panel {
    opacity: 1;
    transform: translate(-50%, calc(-50% - var(--play-modal-panel-offset-y, 0px))) scale(1);
  }
}

.sugoroku-game__play-popup__title {
  font-family: "Dela Gothic One", sans-serif;
  font-size: var(--play-popup-title-fs, clamp(1.125rem, 4.5vw, 48px));
  font-weight: 500;
  margin: 0 0 0.85rem;
  line-height: 1.35;
  color: #3c3c3c;
  text-align: center;
  .sugoroku-game__play-event-cell-popup & {
    min-height: 60px;
    font-size: 25px;
    text-align: left;
    line-height: 1.2 !important;
    background-image: url('/member_assets/images/page/member/p/campaign/sugoroku/game/modal_event_human.png');
    background-repeat: no-repeat;
    background-size: 54px 58px;
    background-position: right center;
    @media screen and (max-width: 768px) {
      position: relative;
      z-index: 2;
      background-size: 16.923vw 18.105vw;
      background-position: center bottom;
      padding-bottom: 22.105vw;
    }
  }
}

.sugoroku-game__play-popup__desc {
  font-size: 15px;
  margin: 0;
  font-weight: 600;
  line-height: 1.65;
  letter-spacing: .1em;
  color: var(--play-modal-key-color, #3c3c3c);
  white-space: pre-line;
}

.sugoroku-game__play-popup__links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.sugoroku-game__play-popup__links .sugoroku-game__play-popup__link {
  width: 100%;
  max-width: 100%;
  min-height: 2.95rem;
  font-size: var(--play-fs-lg);
  text-decoration: none;
  text-align: center;
}

.sugoroku-game__play-popup__footer {
  display: flex;
  justify-content: center;
  margin-top: 6px;
  .sugoroku-game__play-dice-grant-popup__panel & {
    margin-top: 35px;
  }
}

.sugoroku-game__play-popup__footer[hidden] {
  display: none !important;
}

.sugoroku-game__play-popup__footer > .sugoroku-game__play-btn:not(.sugoroku-game__play-popup__dismiss) {
  width: auto;
  min-width: 14.5rem;
  min-height: 2.75rem;
  padding: 1rem 1.75rem;
  font-family: "Dela Gothic One", sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  color: #ffffff;
  background: var(--play-modal-key-color, #ef3737);
  border: none;
  border-radius: 999px;
  box-shadow: none;
  transition: opacity 0.2s ease;
}

.sugoroku-game__play-popup__footer > .sugoroku-game__play-btn:not(.sugoroku-game__play-popup__dismiss):hover:not(:disabled) {
  transform: none;
  filter: none;
  opacity: 0.75;
}

.sugoroku-game__play-popup__footer > .sugoroku-game__play-btn:not(.sugoroku-game__play-popup__dismiss):active:not(:disabled) {
  transform: none;
  filter: none;
  opacity: 0.55;
}

/* 「閉じる」専用スタイル（線の✗ + テキスト + 下線） */
.sugoroku-game__play-popup__dismiss.sugoroku-game__play-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  width: auto;
  max-width: none;
  min-height: 0;
  margin: 30px 0 0 0;
  padding: 0 0 calc(6px + 1px);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.4;
  color: #3c3c3c;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  transition: opacity 0.2s ease;
}

.sugoroku-game__play-popup__dismiss-icon {
  position: relative;
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
}

.sugoroku-game__play-popup__dismiss-icon::before,
.sugoroku-game__play-popup__dismiss-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1px;
  margin-top: -0.5px;
  margin-left: -6px;
  background: #3c3c3c;
}

.sugoroku-game__play-popup__dismiss-icon::before {
  transform: rotate(45deg);
}

.sugoroku-game__play-popup__dismiss-icon::after {
  transform: rotate(-45deg);
}

.sugoroku-game__play-popup__dismiss.sugoroku-game__play-btn::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: #000;
}

.sugoroku-game__play-popup__dismiss.sugoroku-game__play-btn:hover:not(:disabled) {
  transform: none;
  filter: none;
  color: #3c3c3c;
  background: transparent;
  box-shadow: none;
  opacity: 0.72;
}

.sugoroku-game__play-popup__dismiss.sugoroku-game__play-btn:active:not(:disabled) {
  transform: none;
  background: transparent;
  opacity: 0.55;
}

/* 静的プレビュー（ページ表示時のデザイン確認用） */
.sugoroku-game__play-article-popup--static .sugoroku-game__play-popup__backdrop,
.sugoroku-game__play-article-popup--static .sugoroku-game__play-popup__panel,
.sugoroku-game__play-event-cell-popup--static .sugoroku-game__play-popup__backdrop,
.sugoroku-game__play-event-cell-popup--static .sugoroku-game__play-popup__panel {
  opacity: 1;
  animation: none;
  transform: translate(-50%, calc(-50% - var(--play-modal-panel-offset-y, 0px))) scale(1);
}

.sugoroku-game__play-article-popup--static .sugoroku-game__play-article-popup__panel {
  --play-modal-panel-bg: #ccedb1;
  --play-modal-key-color: #76b218;
  --play-modal-text-color: #3c3c3c;
}

.sugoroku-game__play-event-cell-popup--static .sugoroku-game__play-event-cell-popup__panel {
  --play-modal-text-color: #3c3c3c;
  --play-modal-key-color: #3c3c3c;
}

#postEventPopup.sugoroku-game__play-article-popup--static .sugoroku-game__play-article-popup__panel {
  --play-modal-panel-bg: #ccedb1;
  --play-modal-key-color: #76b218;
  --play-modal-text-color: #3c3c3c;
}

/* ポップアップマス用モーダル */
#postEventPopup .sugoroku-game__play-article-popup__panel {
  padding-bottom: 20px;
}

.sugoroku-game__play-article-popup__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.sugoroku-game__play-article-popup__dice-hero {
  width: 100%;
  max-width: 277px;
  margin: 0 auto;
}

.sugoroku-game__play-article-popup__dice-hero img {
  display: block;
  width: 100%;
  max-width: 277px;
  height: auto;
  @media screen and (max-width: 768px) {
    max-width: 70.769vw;
    margin: 0 auto;
  }
}

.sugoroku-game__play-article-popup__dice-hero[hidden] {
  display: none !important;
}

.sugoroku-game__play-article-popup__deco {
  display: block;
  width: 54px;
  height: auto;
  margin: 2rem auto 0;
  @media screen and (max-width: 768px) {
    width: 16.923vw;
    margin-top: -3vw;
        position: relative;
        z-index: 1;
  }
}

.sugoroku-game__play-article-popup__tagline {
  margin: 1.75rem 0 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: .05em;
  text-align: center;
  color: var(--play-modal-key-color, #3c3c3c);
}

.sugoroku-game__play-article-popup__tagline__inner {
  position: relative;
  padding: 0 22px;
}

.sugoroku-game__play-article-popup__tagline__inner::before,
.sugoroku-game__play-article-popup__tagline__inner::after {
  content: "";
  position: absolute;
  top: 10px;
  width: 18px;
  height: 2px;
  background-color: var(--play-modal-key-color, #3c3c3c);
}

.sugoroku-game__play-article-popup__tagline__inner::before {
  left: 0;
  transform: rotate(60deg);
}
.sugoroku-game__play-article-popup__tagline__inner::after {
  right: 0;
  transform: rotate(-60deg);
}

.sugoroku-game__play-article-popup .sugoroku-game__play-popup__footer,
.sugoroku-game__play-event-cell-popup .sugoroku-game__play-popup__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.sugoroku-game__play-dice-visual__card .sugoroku-game__play-popup__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  width: 100%;
}

.sugoroku-game__play-article-popup .sugoroku-game__play-popup__footer .sugoroku-game__play-popup__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.sugoroku-game__play-article-popup__link-note {
  margin: 0;
  max-width: 100%;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--play-modal-text-color, #3c3c3c);
  @media screen and (max-width: 768px) {
    font-size: 10px;
  }
}

.sugoroku-game__play-article-popup__link-note[hidden] {
  display: none !important;
}

.sugoroku-game__play-article-popup .sugoroku-game__play-popup__footer > .sugoroku-game__play-btn:not(.sugoroku-game__play-popup__dismiss),
.sugoroku-game__play-article-popup .sugoroku-game__play-popup__footer .sugoroku-game__play-popup__link,
.sugoroku-game__play-event-cell-popup .sugoroku-game__play-popup__footer > .sugoroku-game__play-btn:not(.sugoroku-game__play-popup__dismiss),
.sugoroku-game__play-dice-visual__card .sugoroku-game__play-popup__footer > .sugoroku-game__play-btn:not(.sugoroku-game__play-popup__dismiss) {
  width: auto;
  max-width: none;
  min-width: 200px;
  min-height: 2.75rem;
  padding: 0.65rem 1.75rem;
  font-family: "Dela Gothic One", sans-serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: normal;
  text-align: center;
  text-decoration: none;
  color: #3c3c3c;
  background: #ffc500;
  border: 3px solid #fff;
  border-radius: 999px;
  box-shadow: none;
  transition: opacity 0.2s ease;
}

.sugoroku-game__play-article-popup .sugoroku-game__play-popup__footer > .sugoroku-game__play-btn:not(.sugoroku-game__play-popup__dismiss):hover:not(:disabled),
.sugoroku-game__play-article-popup .sugoroku-game__play-popup__footer .sugoroku-game__play-popup__link:hover:not(:disabled),
.sugoroku-game__play-event-cell-popup .sugoroku-game__play-popup__footer > .sugoroku-game__play-btn:not(.sugoroku-game__play-popup__dismiss):hover:not(:disabled),
.sugoroku-game__play-dice-visual__card .sugoroku-game__play-popup__footer > .sugoroku-game__play-btn:not(.sugoroku-game__play-popup__dismiss):hover:not(:disabled) {
  transform: none;
  filter: none;
  box-shadow: none;
  opacity: 0.75;
  color: #3c3c3c;
  background: #ffc500;
}

.sugoroku-game__play-article-popup .sugoroku-game__play-popup__footer > .sugoroku-game__play-btn:not(.sugoroku-game__play-popup__dismiss):active:not(:disabled),
.sugoroku-game__play-article-popup .sugoroku-game__play-popup__footer .sugoroku-game__play-popup__link:active:not(:disabled),
.sugoroku-game__play-event-cell-popup .sugoroku-game__play-popup__footer > .sugoroku-game__play-btn:not(.sugoroku-game__play-popup__dismiss):active:not(:disabled),
.sugoroku-game__play-dice-visual__card .sugoroku-game__play-popup__footer > .sugoroku-game__play-btn:not(.sugoroku-game__play-popup__dismiss):active:not(:disabled) {
  transform: none;
  filter: none;
  box-shadow: none;
  opacity: 0.55;
  color: #3c3c3c;
  background: #ffc500;
}

.sugoroku-game__play-dice-visual__card .sugoroku-game__play-popup__footer > .sugoroku-game__play-dice-advance-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
}

.sugoroku-game__play-dice-advance-btn .sugoroku-game__play-popup__dismiss-icon {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
}

.sugoroku-game__play-dice-advance-btn .sugoroku-game__play-popup__dismiss-icon::before,
.sugoroku-game__play-dice-advance-btn .sugoroku-game__play-popup__dismiss-icon::after {
  width: 17px;
  height: 2px;
  margin-top: -1px;
  margin-left: -8.5px;
}

/* イベントモーダル内だけ .sugoroku-prize__info__box 系を上書き（LP側 styles.css の共通クラスを流用） */
.sugoroku-game__play-event-cell-popup .sugoroku-prize__info__box {
  --event-popup-box-bg: var(--play-modal-key-color, #3c3c3c);
  --event-popup-box-corner: color-mix(in srgb, var(--play-modal-key-color, #3c3c3c) 82%, #ffffff);
  --corner-w: 54px;
  --corner-h: 32px;
  position: relative;
  max-width: 100%;
  margin: 0;
  padding: 15px;
  background-color: var(--event-popup-box-bg);
  background-repeat: no-repeat;
}

.sugoroku-game__play-popup__footer__dice {
    width: 100%;
    max-width: 375px;
    margin-bottom: 10px;
}

.sugoroku-game__play-event-cell-popup .sugoroku-prize__info__box::before,
.sugoroku-game__play-event-cell-popup .sugoroku-prize__info__box::after,
.sugoroku-game__play-event-cell-popup .sugoroku-prize__info__box__inner::before,
.sugoroku-game__play-event-cell-popup .sugoroku-prize__info__box__inner::after {
  content: "";
  position: absolute;
  width: var(--corner-w);
  height: var(--corner-h);
  background-color: var(--event-popup-box-corner);
}

.sugoroku-game__play-event-cell-popup .sugoroku-prize__info__box::before {
  top: -1px;
  left: -1px;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.sugoroku-game__play-event-cell-popup .sugoroku-prize__info__box::after {
  top: -1px;
  right: -1px;
  clip-path: polygon(100% 0, 100% 100%, 0 0);
}

.sugoroku-game__play-event-cell-popup .sugoroku-prize__info__box__inner::before {
  bottom: -1px;
  left: -1px;
  clip-path: polygon(0 0, 0 100%, 100% 100%);
}

.sugoroku-game__play-event-cell-popup .sugoroku-prize__info__box__inner::after {
  bottom: -1px;
  right: -1px;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.sugoroku-game__play-event-cell-popup .sugoroku-prize__info__box__inner {
  position: relative;
}

.sugoroku-game__play-event-cell-popup .sugoroku-prize__info__box__title {
  margin: 0;
  color: #ffffff;
  font-family: "Dela Gothic One", sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 24px;
  line-height: 1.5;
  text-align: center;
}

.sugoroku-game__play-event-cell-popup .sugoroku-prize__info__box__text {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.65;
  text-align: center;
  color: var(--play-modal-text-color, #3c3c3c);
}

.sugoroku-game__play-event-cell-popup .sugoroku-prize__info__box__deco {
  width: 187px;
  position: absolute;
  z-index: 1;
  top: 28px;
  right: 54px;
  transform: translate(100%, -100%);
}

.sugoroku-game__play-popup__balloon {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-top: 1.5rem;
  background-color: #fff;
  padding: 15px;
  border-radius: 10px;
  box-sizing: border-box;
}

.sugoroku-game__play-popup__balloon::before {
    content: '';
    position: absolute;
    background-image: url('/member_assets/images/page/member/p/campaign/sugoroku/game/modal_sharkfin.svg');
    background-size: contain;
    bottom: -37px;
    right: calc(50% - 70px);
    transform: scale(1, -1) translateY(100%);
    width: 24px;
    height: 21px;
    @media screen and (max-width: 768px) {
      right: 30px;
    }
}

.sugoroku-game__play-popup__balloon__image {
    text-align: center;
}

.sugoroku-game__play-popup__balloon__columns {
  display: flex;
  align-items: flex-start;
  gap: 0 15px;
}

.sugoroku-game__play-article-popup .sugoroku-game__play-popup__balloon {
  margin-top: 1.5rem;
  padding: 15px;
}

.sugoroku-game__play-article-popup .sugoroku-game__play-popup__balloon__columns__image {
  flex: 0 0 102px;
  width: 102px;
  max-width: 102px;
  min-width: 0;
}

.sugoroku-game__play-article-popup .sugoroku-game__play-popup__balloon__columns__image img {
  display: block;
  width: 100%;
  max-width: 102px;
  height: auto;
}

.sugoroku-game__play-popup__balloon__columns__image {
  min-width: 170px;
}

.sugoroku-game__play-popup__balloon__columns__text {
  flex: 1 1 auto;
  min-width: 0;
}

.sugoroku-game__play-article-popup .sugoroku-game__play-popup__balloon__column__text__paragraph {
  margin: 0;
  font-family: "Dela Gothic One", sans-serif;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.333 !important;
  text-align: left;
  color: #3c3c3c;
}

.sugoroku-game__play-popup__balloon__column__text__paragraph {
  margin: 0;
  font-size: 15px;
  letter-spacing: .05em;
  line-height: 1.9 !important;
}

/* イベントマス用モーダル（従来レイアウト） */
.sugoroku-game__play-event-cell-popup__panel {
  display: block;
}

.sugoroku-game__play-event-cell-popup__panel-body {
  position: relative;
}

/* イベント1（4マス目） */
.sugoroku-game__play-event-cell-popup__panel--event-01 {
  background-color: #b4d5ec;
  background-image: radial-gradient(circle, #c7e5f5 3px, transparent 3px);
  background-size: 24px 24px;
  background-repeat: repeat;
}

/* イベント2（12マス目） */
.sugoroku-game__play-event-cell-popup__panel--event-02 {
  background-color: #dacdd7;
  background-image: url("/member_assets/images/page/member/p/campaign/sugoroku/game/modal_event_negative.svg");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% auto;
}

/* イベント3（20マス目） */
.sugoroku-game__play-event-cell-popup__panel--event-03 {
  background-color: #d8bdd9;
  background-image: radial-gradient(circle, #e9d6e2 3px, transparent 3px);
  background-size: 24px 24px;
  background-repeat: repeat;
}

.sugoroku-game__play-event-cell-popup__panel--event-01::before,
.sugoroku-game__play-event-cell-popup__panel--event-01::after,
.sugoroku-game__play-event-cell-popup__panel--event-03::before,
.sugoroku-game__play-event-cell-popup__panel--event-03::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 74px;
  max-width: 74px;
  aspect-ratio: 73.41 / 78.31;
  background-image: url("/member_assets/images/page/member/p/campaign/sugoroku/game/modal_event_deco.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none;
}

.sugoroku-game__play-event-cell-popup__panel--event-01::before,
.sugoroku-game__play-event-cell-popup__panel--event-03::before {
  top: 10px;
  left: 10px;
}

.sugoroku-game__play-event-cell-popup__panel--event-01::after,
.sugoroku-game__play-event-cell-popup__panel--event-03::after {
  right: 10px;
  bottom: 10px;
  transform: scale(-1, -1);
}

@media (min-width: 769px) {
  /* 装飾のはみ出しで不要なスクロールバーが出ないよう、PC のイベントマスは非スクロール */
  .sugoroku-game__play-event-cell-popup .sugoroku-game__play-popup__panel {
    overflow: hidden;
  }
}

.sugoroku-game__play-event-cell-popup__panel--event-01 > .sugoroku-game__play-event-cell-popup__panel-body > *,
.sugoroku-game__play-event-cell-popup__panel--event-03 > .sugoroku-game__play-event-cell-popup__panel-body > * {
  position: relative;
  z-index: 1;
}

/* スマホ: スクロールコンテナ直下の装飾は見えている範囲に固定されるため、
   コンテンツ末尾基準の panel-body に装飾を移す */
@media screen and (max-width: 768px) {
  .sugoroku-game__play-event-cell-popup .sugoroku-game__play-event-cell-popup__panel-body {
    /* パネル padding ぶん広げ、装飾を PC と同様に端から 10px に配置 */
    margin: -40px -24px;
    padding: 40px 24px;
    box-sizing: border-box;
  }

  .sugoroku-game__play-event-cell-popup__panel--event-01::before,
  .sugoroku-game__play-event-cell-popup__panel--event-01::after,
  .sugoroku-game__play-event-cell-popup__panel--event-03::before,
  .sugoroku-game__play-event-cell-popup__panel--event-03::after {
    content: none;
  }

  .sugoroku-game__play-event-cell-popup__panel--event-01 .sugoroku-game__play-event-cell-popup__panel-body::before,
  .sugoroku-game__play-event-cell-popup__panel--event-01 .sugoroku-game__play-event-cell-popup__panel-body::after,
  .sugoroku-game__play-event-cell-popup__panel--event-03 .sugoroku-game__play-event-cell-popup__panel-body::before,
  .sugoroku-game__play-event-cell-popup__panel--event-03 .sugoroku-game__play-event-cell-popup__panel-body::after {
    content: "";
    position: absolute;
    z-index: 0;
    width: 74px;
    max-width: 74px;
    aspect-ratio: 73.41 / 78.31;
    background-image: url("/member_assets/images/page/member/p/campaign/sugoroku/game/modal_event_deco.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
  }

  .sugoroku-game__play-event-cell-popup__panel--event-01 .sugoroku-game__play-event-cell-popup__panel-body::before,
  .sugoroku-game__play-event-cell-popup__panel--event-03 .sugoroku-game__play-event-cell-popup__panel-body::before {
    top: 10px;
    left: 10px;
  }

  .sugoroku-game__play-event-cell-popup__panel--event-01 .sugoroku-game__play-event-cell-popup__panel-body::after,
  .sugoroku-game__play-event-cell-popup__panel--event-03 .sugoroku-game__play-event-cell-popup__panel-body::after {
    right: 10px;
    bottom: 10px;
    transform: scale(-1, -1);
  }
}


.sugoroku-game__play-event-cell-popup .sugoroku-game__play-popup__footer {
  margin-top: 35px;
}

.sugoroku-game__play-event-cell-popup .sugoroku-game__play-popup__balloon {
  margin-top: 30px;
  padding: 30px 20px 35px;
  @media screen and (max-width: 768px) {
    margin-top: -5vw;
  }
}

.sugoroku-game__play-event-cell-popup .sugoroku-game__play-popup__balloon::before {
  top: -19px;
  bottom: auto;
  right: 24px;
  left: auto;
  transform: none;
  @media screen and (max-width: 768px) {
    left: 50%;
    transform: translateX(calc(-50% - 15vw)) scale(-1, 1);
  }
}

.sugoroku-game__play-event-cell-popup .sugoroku-game__play-popup__balloon__image {
  text-align: center;
}

.sugoroku-game__play-event-cell-popup .sugoroku-game__play-popup__balloon__image img {
  display: inline-block;
  width: 100%;
  max-width: 265px; /* JS で YY ごとに上書き（01:265 / 02:285 / 03:282 / 04:303） */
  height: auto;
}

.sugoroku-game__play-event-cell-popup__mas {
  margin: 0 0 0.5rem;
  font-size: var(--play-fs-sm);
  font-weight: 600;
  text-align: center;
  color: var(--play-modal-text-color, #3c3c3c);
}

.sugoroku-game__play-event-cell-popup__hint {
  margin: 0.85rem 0 0;
  font-size: var(--play-fs-popup-desc, 15px);
  line-height: 1.65;
  text-align: center;
  color: var(--play-modal-text-color, #3c3c3c);
  opacity: 0.85;
}

.sugoroku-game__play-dice-grant-popup .sugoroku-game__play-popup__panel {
  --play-modal-panel-bg: #ffe9d8;
  --play-modal-text-color: #3c3c3c;
  --play-modal-key-color: #ef3737;
}

.sugoroku-game__play-dice-grant-popup .sugoroku-game__play-popup__footer > .sugoroku-game__play-dice-grant-dismiss-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
}

.sugoroku-game__play-dice-grant-dismiss-btn .sugoroku-game__play-popup__dismiss-icon {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
}

.sugoroku-game__play-dice-grant-dismiss-btn .sugoroku-game__play-popup__dismiss-icon::before,
.sugoroku-game__play-dice-grant-dismiss-btn .sugoroku-game__play-popup__dismiss-icon::after {
  width: 17px;
  height: 2px;
  margin-top: -1px;
  margin-left: -8.5px;
  background: #ffffff;
}

#noDicePopup .sugoroku-game__play-popup__panel {
  --play-modal-panel-bg: #ffe9d8;
  --play-modal-text-color: #3c3c3c;
  --play-modal-key-color: #3c3c3c;
}

.sugoroku-game__play-board--lap-flash {
  animation: lapFlash 0.9s ease;
}

@keyframes lapFlash {
  0%,
  100% {
    filter: none;
  }
  40% {
    filter: drop-shadow(0 0 12px rgba(244, 185, 66, 0.95));
  }
}

.sugoroku-game__play-user-state-toolbar--single {
  grid-template-columns: 1fr;
}

/* データ読み込み／保存プレースホルダ（モーダルと同系統の見た目・盤面中央配置） */
.sugoroku-game__play-loading {
  position: absolute;
  inset: 0;
  z-index: 2000;
  display: block;
  box-sizing: border-box;
  pointer-events: none;
}

.sugoroku-game__play-loading[hidden] {
  display: none !important;
}

/* user-state 読み込み・保存中は画面全体を覆い、リンク誤タップを防ぐ */
.sugoroku-game__play-loading--viewport {
  position: fixed;
  inset: 0;
  z-index: 10050;
}

html.sugoroku-user-state-io-active,
html.sugoroku-user-state-io-active body {
  overflow: hidden;
}

.sugoroku-game__play-loading__backdrop {
  position: absolute;
  inset: 0;
  background: var(--play-modal-backdrop, rgba(205, 239, 242, 0.85));
  pointer-events: auto;
}

.sugoroku-game__play-loading__panel {
  position: absolute;
  z-index: 1;
  width: min(92vw, 380px);
  max-width: min(92vw, 380px);
  padding: var(--play-modal-panel-padding, 40px);
  box-sizing: border-box;
  text-align: center;
  background: var(--play-modal-panel-bg, var(--play-dice-popup-bg, #fff097));
  border: 3px solid #ffffff;
  border-radius: var(--play-dice-popup-radius, 16px);
  box-shadow: var(--play-dice-popup-shadow);
  transform: translate(-50%, -50%);
  transform-origin: center center;
  pointer-events: auto;
}

.sugoroku-game__play-loading__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 1rem;
}

.sugoroku-game__play-loading__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--play-accent);
  animation: dice-roll-dot 0.85s ease-in-out infinite;
}

.sugoroku-game__play-loading__dot:nth-child(2) {
  animation-delay: 0.15s;
}

.sugoroku-game__play-loading__dot:nth-child(3) {
  animation-delay: 0.3s;
}

.sugoroku-game__play-loading__label {
  margin: 0;
  font-size: var(--play-fs-base);
  font-weight: 700;
  color: var(--play-modal-text-color, #3c3c3c);
  line-height: 1.55;
}

@keyframes sugoroku-game-modal-pop-in-mobile {
  0% {
    opacity: 0;
    transform: translate(-50%, calc(-50% - var(--play-modal-panel-offset-y, 0px))) scale(0.86);
  }

  55% {
    opacity: 1;
    transform: translate(-50%, calc(-50% - var(--play-modal-panel-offset-y, 0px))) scale(1.05);
  }

  78% {
    transform: translate(-50%, calc(-50% - var(--play-modal-panel-offset-y, 0px))) scale(0.98);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, calc(-50% - var(--play-modal-panel-offset-y, 0px))) scale(1);
  }
}

@media screen and (max-width: 768px) {
  .sugoroku-game {
    font-size: clamp(13px, 2.308vw, 18px);
    --play-dice-result-height: 88px;
    --play-fs-start: 0.556em;
    --play-fs-cell: 0.722em;
    --play-fs-cell-label: 0.778em;
    --play-fs-xs: 0.833em;
    --play-fs-sm: 0.911em;
    --play-fs-md: 0.944em;
    --play-fs-body: 1em;
    --play-fs-base: 1.056em;
    --play-fs-lg: 1.111em;
    --play-fs-xl: 1.278em;
    --play-fs-2xl: 1.422em;
    --play-fs-3xl: 1.833em;
    --play-fs-title: 1.5em;
    --play-fs-die: 1.222em;
    --play-fs-popup-desc: 0.833em;
    --play-fs-modal-display: 2.667em;
    --play-fs-dice-digit: 4.2em;
    --play-fs-modal-event-title: 1.889em;
    --play-fs-modal-box-title: 1.333em;
    --play-fs-modal-box-text: 0.889em;
    --play-fs-modal-btn: 1em;
    --play-fs-modal-btn-accent: 1.222em;
    --play-fs-modal-tagline: 0.778em;
  }

  .sugoroku-game__play-hud__item {
    font-size: var(--play-fs-base);
  }

  .sugoroku-game__play-lap {
    font-size: max(11px, 0.833em);
  }

  .sugoroku-game__play-board-wrap {
    width: min(92.846vw, 666px);
    margin-inline: auto;
    container-type: inline-size;
    container-name: play-board;
  }

  .sugoroku-game__play-board {
    --space-token-size: calc(100cqw * 71 / 665.53);
  }

  .sugoroku-game__play-cell--path:not(.sugoroku-game__play-cell--blank) .sugoroku-game__play-cell__space,
  .sugoroku-game__play-cell__space {
    --space-token-size: inherit;
  }

  .sugoroku-game__play-cell__cylinder {
    top: calc(var(--space-token-size) * 33 / 71);
  }

  .sugoroku-game__play-cell__disc {
    border-width: max(1px, calc(var(--space-token-size) * 3 / 71));
  }

  .sugoroku-game__play-current-position {
    margin-top: calc(100cqw * 25 / 665.53);
  }

  .sugoroku-game__play-current-position__label,
  .sugoroku-game__play-remaining-dice__label {
    font-size: max(10px, 0.684em);
  }

  .sugoroku-game__play-current-position__value {
    margin-top: -0.25vw;
    font-size: max(10px, 0.684em);
  }

  .sugoroku-game__play-message-visual {
    margin-top: calc(100cqw * 60 / 665.53);
  }

  .sugoroku-game__play-message-visual--start .sugoroku-game__play-message-visual__image {
    width: min(100%, calc(100cqw * 250 / 665.53));
  }

  .sugoroku-game__play-message-visual--more .sugoroku-game__play-message-visual__image {
    max-width: min(100%, calc(100cqw * 309 / 665.53));
  }

  .sugoroku-game__play-message-visual--limit .sugoroku-game__play-message-visual__image {
    width: min(100%, calc(100cqw * 273 / 665.53));
  }

  .sugoroku-game__play-cell--center .sugoroku-game__play-remaining-dice {
    padding-top: calc(100cqw * 10.4 / 665.53);
    padding-bottom: calc(100cqw * 30 / 665.53);
  }

  .sugoroku-game__play-remaining-dice__divider {
    gap: calc(100cqw * 9 / 665.53);
    margin-bottom: calc(100cqw * 19.2 / 665.53);
  }

  .sugoroku-game__play-remaining-dice__divider > span {
    width: max(2px, calc(100cqw * 3 / 665.53));
    height: max(2px, calc(100cqw * 3 / 665.53));
  }

  .sugoroku-game__play-remaining-dice__count {
    margin-top: calc(100cqw * 8 / 665.53);
    font-size: max(12px, 0.947em);
  }

  .sugoroku-game__play-dice-visual__title {
    font-size: var(--play-fs-modal-display);
  }

  .sugoroku-game__play-dice-result__digit {
    font-size: var(--play-fs-dice-digit);
  }

  .sugoroku-game__play-dice-stage--overlay {
    width: min(100%, 220px);
    max-width: min(220px, 58vw);
    aspect-ratio: 5 / 4;
    max-height: min(176px, 46vw, 24vh);
  }

  .sugoroku-game__play-dice-result--overlay {
    margin-top: 0.1rem;
  }

  .sugoroku-game__play-dice-result__dot {
    width: 11px;
    height: 11px;
  }

  .sugoroku-game__play-dice-grant-popup__count {
    font-size: clamp(2.667em, 8vw, 3.444em);
  }

  .sugoroku-game__play-dice-grant-popup__start-info {
    max-width: none;
  }

  .sugoroku-game__play-popup__title {
    font-size: 8.2051vw;
    line-height: 1.25em !important;
  }

  .sugoroku-game__play-event-cell-popup .sugoroku-game__play-popup__title {
    font-size: var(--play-fs-modal-event-title);
  }

  .sugoroku-game__play-popup__footer > .sugoroku-game__play-btn:not(.sugoroku-game__play-popup__dismiss) {
    font-size: var(--play-fs-modal-btn);
  }

  .sugoroku-game__play-popup__dismiss.sugoroku-game__play-btn {
    font-size: var(--play-fs-popup-desc);
  }

  .sugoroku-game__play-article-popup__tagline {
    font-size: var(--play-fs-modal-tagline);
  }

  .sugoroku-game__play-article-popup .sugoroku-game__play-popup__footer > .sugoroku-game__play-btn:not(.sugoroku-game__play-popup__dismiss),
  .sugoroku-game__play-article-popup .sugoroku-game__play-popup__footer .sugoroku-game__play-popup__link,
  .sugoroku-game__play-event-cell-popup .sugoroku-game__play-popup__footer > .sugoroku-game__play-btn:not(.sugoroku-game__play-popup__dismiss),
  .sugoroku-game__play-dice-visual__card .sugoroku-game__play-popup__footer > .sugoroku-game__play-btn:not(.sugoroku-game__play-popup__dismiss) {
    font-size: var(--play-fs-modal-btn-accent);
  }

  .sugoroku-game__play-event-cell-popup .sugoroku-prize__info__box__title,
  .sugoroku-game__play-article-popup .sugoroku-game__play-popup__balloon__column__text__paragraph {
    font-size: var(--play-fs-modal-box-title);
  }

  .sugoroku-game__play-event-cell-popup .sugoroku-prize__info__box__text {
    font-size: var(--play-fs-modal-box-text);
  }

  .sugoroku-game__play-popup__balloon__column__text__paragraph {
    font-size: var(--play-fs-popup-desc);
  }

  .sugoroku-game__play-event-cell-popup__hint {
    font-size: var(--play-fs-popup-desc);
  }

  .sugoroku-game__footer__button__anchor {
    font-size: 3.846vw;
    padding: 2.5vw 3.846vw;
  }

  .sugoroku-game__play-popup__panel {
    left: 50% !important;
    right: auto;
    width: calc(100% - 20px);
    min-width: 0;
    max-width: none;
    transform: translate(-50%, calc(-50% - var(--play-modal-panel-offset-y, 0px))) scale(0.86);
  }

  .sugoroku-game__play-popup--visible .sugoroku-game__play-popup__panel {
    animation: sugoroku-game-modal-pop-in-mobile var(--play-modal-pop-in-duration, 0.6s) var(--play-modal-pop-in-easing, cubic-bezier(0.22, 1.2, 0.36, 1)) forwards;
  }

  .sugoroku-game__play-article-popup .sugoroku-game__play-popup__panel,
  .sugoroku-game__play-event-cell-popup .sugoroku-game__play-popup__panel {
    --play-modal-panel-max-height: 90vh;
    min-width: 0;
    max-width: none;
    padding: 40px 24px;
  }

  .sugoroku-game__play-article-popup--static .sugoroku-game__play-popup__panel,
  .sugoroku-game__play-event-cell-popup--static .sugoroku-game__play-popup__panel {
    transform: translate(-50%, calc(-50% - var(--play-modal-panel-offset-y, 0px))) scale(1);
  }

  .sugoroku-game__play-dice-visual {
    padding-inline: 10px;
    box-sizing: border-box;
  }

  .sugoroku-game__play-dice-visual__card {
    width: 100%;
    max-width: none;
    gap: 0.25rem;
    padding: 28px 20px;
  }

  .sugoroku-game__play-detail-popup__content__inner {
    top: auto;
    bottom: 0;
    right: 0;
    left: auto;
    width: min(564px, 100vw);
    max-width: none;
    max-height: 90vh;
    transform: translateX(40px);
    container-type: inline-size;
    container-name: play-detail-popup;
  }

  .sugoroku-game__play-detail-popup--visible .sugoroku-game__play-detail-popup__content__inner {
    transform: translateX(0);
  }

  @media (prefers-reduced-motion: reduce) {
    .sugoroku-game__play-detail-popup__content__inner,
    .sugoroku-game__play-detail-popup--visible .sugoroku-game__play-detail-popup__content__inner {
      transform: none;
    }
  }

  .sugoroku-game__play-detail-popup__image {
    max-width: none;
  }

  .sugoroku-game__play-detail-popup__content__inner__campaign {
    width: calc(100cqw * 194 / 564);
    top: calc(100cqw * 353 / 564);
    left: calc(50% - 100cqw * 37 / 564);
  }

  .sugoroku-game__play-detail-popup__content__inner__close {
    top: calc(100cqw * 397 / 564);
    right: calc(50% + 100cqw * 12 / 564);
    padding: calc(100cqw * 8 / 564);
  }

  .sugoroku-game__play-detail-popup__content__inner__close img {
    width: calc(100cqw * 28 / 564);
    height: auto;
  }

  .sugoroku-game__play-popup__balloon__columns {
    flex-direction: column;
    gap: 15px 0;
  }

  .sugoroku-game__play-popup__balloon__columns__text {
    order: 1;
  }

  .sugoroku-game__play-popup__balloon__columns__image {
    order: 2;
    min-width: 0;
    width: 100%;
    max-width: none;
  }

  .sugoroku-game__play-article-popup .sugoroku-game__play-popup__balloon {
    padding: 25px;
  }

  .sugoroku-game__play-article-popup .sugoroku-game__play-popup__balloon__columns__image {
    flex: none;
    width: 100%;
    max-width: none;
  }

  .sugoroku-game__play-article-popup .sugoroku-game__play-popup__balloon__columns__image img {
    max-width: none;
    margin-inline: auto;
  }

  @media (prefers-reduced-motion: reduce) {
    .sugoroku-game__play-popup--visible .sugoroku-game__play-popup__panel {
      transform: translate(-50%, calc(-50% - var(--play-modal-panel-offset-y, 0px))) scale(1);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .sugoroku-game__play-loading__dot {
    animation: none;
    opacity: 0.75;
  }
}
