/* Desktop geometry stays unchanged. */
.game-description .slide[data-slide="board"].full-panel,
.game-description .slide[data-slide="formula"].full-panel,
.game-description .slide[data-slide="field"].full-panel,
.game-description .slide[data-slide="analysis"].full-panel,
.game-description .slide[data-slide="result"].full-panel {
  width: 100%; height: min(760px, calc(100dvh - 110px));
  min-height: 420px; padding: 0; overflow: hidden;
}
.game-description .slide.full-panel .media {
  width: 100%; max-width: none; height: 100%; margin: 0;
  aspect-ratio: auto; border-radius: 24px;
  border: 1px solid rgba(255,255,255,.58);
  background: linear-gradient(135deg,rgba(235,246,251,.54),rgba(255,255,255,.22));
}
.game-description .slide.full-panel .media > iframe {
  display: block; width: 100%; height: 100%; border: 0;
}
.mobile-story-title,
.mobile-story-nav { display: none; }

/* Embedded phone stories remain below the game and session progress. */
@media (max-width: 620px) {
  .game-description {
    --legend-height: min(680px, 76dvh) !important;
    box-sizing: border-box;
    width: calc(100vw - 16px);
    max-width: 100%;
    min-width: 0;
    margin-inline: auto;
    padding: 12px 8px 14px;
    gap: 9px;
    overflow: hidden;
    border-radius: 20px;
  }
  .game-description .icon-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
    gap: 4px;
    padding: 0 2px;
  }
  .game-description .icon-cell {
    position: relative;
    display: block;
    width: 100%;
    height: 5px;
    min-height: 5px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    background: rgba(42,71,82,.16);
    cursor: pointer;
  }
  .game-description .icon-cell::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: #18778a;
    transform: scaleX(0);
    transform-origin: left center;
  }
  .game-description .icon-cell.is-past::after,
  .game-description .icon-cell.active::after { transform: scaleX(1); }
  .game-description .icon-cell .icon-wrap,
  .game-description .icon-cell .icon-title,
  .game-description .icon-cell .icon-baseline { display: none; }
  .mobile-story-title {
    display: block;
    min-height: 25px;
    padding: 1px 4px 0;
    color: #26343a;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    text-align: left;
  }
  .game-description .slide.full-panel {
    display: none !important;
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: var(--legend-height) !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden;
    border-radius: 17px;
  }
  .game-description .slide.full-panel.active { display: block !important; }
  .game-description .slide.full-panel .media { border-radius: 17px; }
  .game-description .slide.full-panel .media > iframe {
    width: 100% !important;
    height: 100% !important;
  }
  .mobile-story-nav {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 4;
    display: flex;
    width: 19%;
    align-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(25,91,105,.68);
    touch-action: manipulation;
  }
  .mobile-story-nav span {
    display: flex;
    width: 30px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: rgba(244,251,253,.76);
    box-shadow: 0 3px 13px rgba(42,72,84,.12);
    font: 400 31px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .mobile-story-nav--previous {
    left: 0;
    justify-content: flex-start;
    padding-left: 5px;
  }
  .mobile-story-nav--next {
    right: 0;
    justify-content: flex-end;
    padding-right: 5px;
  }
  .mobile-story-nav:disabled {
    opacity: 0;
    pointer-events: none;
  }
}
