/* フロッグパズル固有スタイル */

.fp-settings {
  max-width: min(100%, 520px);
  margin: 4px auto 14px;
  text-align: center;
}

.fp-settings .field-label {
  margin-bottom: 8px;
}

.option-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.option-tab {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 48px;
  padding: 8px 6px;
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--md-sys-shape-corner-medium);
  background: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.04s ease;
}

.option-tab small {
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.75;
}

.option-tab:hover {
  background: var(--md-sys-color-primary-container);
}

.option-tab:active {
  transform: translateY(1px);
}

.option-tab.is-active {
  background: var(--md-sys-color-primary);
  border-color: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
}

.option-tab:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--md-sys-color-primary) 70%, white);
  outline-offset: 2px;
}

.game-panel {
  margin-top: 20px;
}

.fp-mode-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* チャレンジ：ステージ選択（盤面より目立たせない） */

.fp-stage {
  max-width: min(100%, 480px);
  margin: 0 auto 12px;
}

.fp-stage-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.fp-stage-nav__btn {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 10px 12px;
  white-space: nowrap;
}

.fp-stage-nav__info {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  text-align: center;
}

.fp-stage-nav__title {
  color: var(--md-sys-color-on-surface);
  font-size: 1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  white-space: nowrap;
}

.fp-stage-nav__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.fp-level,
.fp-cleared {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}

.fp-level--easy {
  color: #0b6b8f;
  background: rgba(63, 196, 255, 0.14);
  border: 1px solid rgba(63, 196, 255, 0.45);
}

.fp-level--normal {
  color: #2449a8;
  background: rgba(79, 124, 255, 0.12);
  border: 1px solid rgba(79, 124, 255, 0.45);
}

.fp-level--hard {
  color: #6d28d9;
  background: rgba(167, 139, 250, 0.14);
  border: 1px solid rgba(167, 139, 250, 0.55);
}

.fp-level--expert {
  color: #b0175f;
  background: rgba(255, 95, 168, 0.12);
  border: 1px solid rgba(255, 95, 168, 0.5);
}

.fp-cleared {
  color: #047857;
  background: rgba(52, 211, 153, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.5);
}

.fp-stage-list {
  margin-top: 8px;
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--md-sys-shape-corner-medium);
  background: var(--md-sys-color-surface);
}

.fp-stage-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  color: var(--md-sys-color-on-surface);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.fp-stage-list summary:focus-visible {
  outline: 3px solid rgba(63, 196, 255, 0.85);
  outline-offset: 2px;
}

.fp-stage-list__count {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.fp-stage-list__grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 6px;
  padding: 0 10px 10px;
}

.fp-stage-btn {
  appearance: none;
  position: relative;
  min-width: 0;
  min-height: 40px;
  padding: 0;
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: 8px;
  background: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}

.fp-stage-btn:hover {
  background: var(--md-sys-color-primary-container);
}

.fp-stage-btn:focus-visible {
  outline: 3px solid rgba(63, 196, 255, 0.85);
  outline-offset: 1px;
}

.fp-stage-btn.is-cleared {
  border-color: rgba(52, 211, 153, 0.6);
  background: rgba(52, 211, 153, 0.12);
  color: #047857;
}

.fp-stage-btn.is-cleared::after {
  content: "✓";
  position: absolute;
  top: 1px;
  right: 3px;
  font-size: 0.6rem;
  line-height: 1;
}

.fp-stage-btn.is-current {
  border-color: rgba(63, 196, 255, 0.8);
  box-shadow: 0 0 0 1px rgba(63, 196, 255, 0.45), 0 0 10px rgba(63, 196, 255, 0.25);
}

.fp-stage__records {
  margin: 8px 0 0;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.8rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

/* チャレンジ：ゴール配置のプレビュー（盤面より小さく） */

.fp-goal {
  max-width: min(100%, 420px);
  margin: 0 auto 10px;
  text-align: center;
}

.fp-goal__label {
  margin: 0 0 4px;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.fp-goal__board {
  --fp-cells: 7;
  --fp-right: #45d8ff;
  --fp-right-dark: #0b5f86;
  --fp-left: #ff5fa8;
  --fp-left-dark: #9a1f5c;
  display: grid;
  grid-template-columns: repeat(var(--fp-cells), minmax(0, 1fr));
  gap: 3px;
  width: 100%;
  max-width: calc(var(--fp-cells) * 38px);
  margin: 0 auto;
  padding: 5px;
  border: 1px dashed rgba(96, 154, 214, 0.5);
  border-radius: var(--md-sys-shape-corner-medium);
  background: linear-gradient(160deg, #16264a 0%, #101c38 100%);
}

.fp-goal__cell {
  position: relative;
  min-width: 0;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(120, 160, 210, 0.2);
  border-radius: 5px;
  background: #1a2540;
}

.fp-goal__cell--empty {
  background: #222d45;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.35);
}

.fp-goal__frog {
  position: absolute;
  inset: 0;
  padding: 6%;
}

.fp-goal__note {
  max-width: min(100%, 480px);
  margin: 6px auto 0;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.8rem;
  line-height: 1.5;
}

.fp-result {
  margin-bottom: 14px;
  padding: 16px 18px;
  border-radius: var(--md-sys-shape-corner-medium);
  text-align: center;
  border: 1px solid color-mix(in srgb, #3fc4ff 40%, var(--md-sys-color-outline-variant));
  background:
    radial-gradient(circle at 50% 0%, rgba(63, 196, 255, 0.18), transparent 70%),
    color-mix(in srgb, #101c38 8%, var(--md-sys-color-surface));
  box-shadow: 0 0 24px rgba(63, 196, 255, 0.12);
  animation: fp-result-in 200ms ease-out;
}

.fp-result__title {
  margin: 0;
  font-family: "Outfit", "Noto Sans JP", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #1a6fb8;
  text-shadow: 0 0 18px rgba(63, 196, 255, 0.35);
}

.fp-result__lead {
  margin: 4px 0 0;
  color: var(--md-sys-color-on-surface);
  font-size: 1rem;
  font-weight: 700;
}

.fp-result.is-perfect .fp-result__lead {
  color: #c2185b;
}

.fp-result__detail {
  margin: 6px 0 0;
  color: var(--md-sys-color-on-surface);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.6;
}

.fp-result__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.fp-result__actions .btn {
  min-width: 9rem;
}

@keyframes fp-result-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* 盤面 */

.fp-board-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: min(100%, 560px);
  margin: 0 auto 10px;
}

.fp-board {
  --fp-cells: 7;
  --fp-gap: 6px;
  --fp-right: #45d8ff;
  --fp-right-dark: #0b5f86;
  --fp-left: #ff5fa8;
  --fp-left-dark: #9a1f5c;
  --fp-hint: #ffd166;
  display: grid;
  grid-template-columns: repeat(var(--fp-cells), minmax(0, 1fr));
  gap: var(--fp-gap);
  width: 100%;
  max-width: calc(var(--fp-cells) * 76px);
  padding: 12px 10px;
  border: 1px solid rgba(96, 154, 214, 0.35);
  border-radius: var(--md-sys-shape-corner-large);
  background:
    radial-gradient(circle at 12% 0%, rgba(63, 196, 255, 0.16), transparent 60%),
    radial-gradient(circle at 88% 100%, rgba(255, 95, 168, 0.14), transparent 60%),
    linear-gradient(160deg, #16264a 0%, #101c38 55%, #0d1730 100%);
  box-shadow: 0 14px 34px rgba(28, 52, 96, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  user-select: none;
  -webkit-user-select: none;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.fp-cell {
  position: relative;
  min-width: 0;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(120, 160, 210, 0.22);
  border-radius: clamp(6px, 1.6vw, 10px);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.04), transparent 55%),
    #1a2540;
}

.fp-cell--empty {
  background: #222d45;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.35);
}

.fp-cell.is-hint-target {
  border: 2px dashed var(--fp-hint);
}

.fp-frog {
  appearance: none;
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 6%;
  border: 2px solid transparent;
  border-radius: inherit;
  background: transparent;
  cursor: default;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.fp-frog--right {
  --fp-body: var(--fp-right);
  --fp-body-dark: var(--fp-right-dark);
}

.fp-frog--left {
  --fp-body: var(--fp-left);
  --fp-body-dark: var(--fp-left-dark);
}

.fp-frog.is-movable {
  border-color: color-mix(in srgb, var(--fp-body) 55%, transparent);
  box-shadow: 0 0 10px color-mix(in srgb, var(--fp-body) 35%, transparent);
  cursor: pointer;
}

.fp-frog.is-movable:hover {
  border-color: var(--fp-body);
  box-shadow: 0 0 14px color-mix(in srgb, var(--fp-body) 55%, transparent);
}

.fp-frog.is-hint {
  border-color: var(--fp-hint);
  box-shadow: 0 0 14px rgba(255, 209, 102, 0.6);
  animation: fp-hint-pulse 1.2s ease-in-out 2;
}

.fp-frog:focus-visible {
  z-index: 1;
  outline: 3px solid #ffffff;
  outline-offset: 1px;
}

.fp-frog-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.fp-frog--left .fp-frog-svg {
  transform: scaleX(-1);
}

.fp-frog__leg {
  fill: var(--fp-body-dark);
}

.fp-frog__body {
  fill: var(--fp-body);
  stroke: var(--fp-body-dark);
  stroke-width: 3;
}

.fp-frog__arrow {
  fill: none;
  stroke: var(--fp-body-dark);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fp-frog__eye {
  fill: #ffffff;
  stroke: var(--fp-body-dark);
  stroke-width: 2.5;
}

.fp-frog__pupil {
  fill: #0d1730;
}

@keyframes fp-hint-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(255, 209, 102, 0.4); }
  50% { box-shadow: 0 0 18px rgba(255, 209, 102, 0.85); }
}

/* クリア演出 */
.fp-board.is-cleared {
  border-color: rgba(120, 235, 255, 0.6);
  box-shadow: 0 14px 34px rgba(28, 52, 96, 0.24), 0 0 26px rgba(69, 216, 255, 0.28);
}

.fp-board.is-cleared .fp-frog {
  animation: fp-cheer 520ms ease-out var(--fp-cheer-delay, 0ms) both;
}

@keyframes fp-cheer {
  0% { transform: translateY(0); }
  40% { transform: translateY(-18%); }
  100% { transform: translateY(0); }
}

.fp-message {
  min-height: 1.6em;
  max-width: min(100%, 520px);
  margin: 4px auto 12px;
  color: var(--md-sys-color-on-surface);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
}

.fp-message--hint {
  color: #8a5a00;
}

.fp-message--warn {
  color: #b3261e;
}

.fp-controls {
  justify-content: center;
}

.fp-guide {
  max-width: min(100%, 480px);
  margin: 14px auto 0;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.875rem;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 480px) {
  .option-tabs {
    gap: 8px;
  }

  .option-tab {
    min-height: 44px;
    padding: 7px 4px;
    font-size: 0.8rem;
  }

  .fp-board-wrap {
    width: calc(100% + 32px);
    max-width: calc(100% + 32px);
    margin-inline: -16px;
  }

  .fp-board {
    --fp-gap: 4px;
    padding: 10px 5px;
  }

  .fp-board[data-cells="8"],
  .fp-board[data-cells="9"] {
    --fp-gap: 2px;
    padding-inline: 4px;
  }

  .fp-stage-nav__btn {
    padding: 10px;
    font-size: 0.8125rem;
  }

  .fp-stage-nav__title {
    font-size: 0.9rem;
  }

  .fp-stage-list__grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .fp-stage-btn {
    min-height: 44px;
  }

  .fp-goal__board {
    width: 72%;
  }

  /* 9マスでも押しやすいよう縦方向に高さを確保する */
  .fp-cell {
    aspect-ratio: 3 / 4;
  }

  .fp-board[data-cells="9"] .fp-cell {
    aspect-ratio: 2 / 3;
  }

  .fp-frog {
    padding: 3%;
  }

  .fp-result__actions .btn {
    min-width: 0;
    flex: 1 1 100%;
  }

  .fp-controls .btn {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fp-board,
  .fp-result,
  .fp-frog.is-hint,
  .fp-board.is-cleared .fp-frog {
    animation: none;
    transition: none;
  }
}

/* 共通の背景・HUD・アイコンボタンは game-screen.css を使用する。
   ステージ選択と横一列の盤面の配置だけをゲーム固有で調整する。 */
html.gs-playing .game-panel {
  --md-sys-color-on-surface: var(--play-text);
  --md-sys-color-on-surface-variant: var(--play-text-muted);
  --md-sys-color-outline-variant: var(--play-border);
  --md-sys-color-surface: var(--play-hud-bg);
  --md-sys-color-primary-container: var(--play-btn-hover);
  display: grid;
  grid-template-columns: 44px minmax(0, 506px);
  grid-template-rows: auto auto auto auto auto;
  grid-template-areas:
    "bar mode"
    "difficulty difficulty"
    "status status"
    "stage stage"
    "play play";
  column-gap: 10px;
  justify-content: center;
  align-content: start;
}
html.gs-playing .game-panel > .gs-bar { grid-area: bar; }
html.gs-playing .fp-settings {
  grid-area: mode;
  justify-self: stretch;
  width: 100%;
  margin: 0 0 10px;
}
html.gs-playing #classic-settings {
  grid-area: difficulty;
  justify-self: center;
  width: min(100%, 560px);
}
html.gs-playing .fp-settings .field-label,
html.gs-playing .fp-guide {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
html.gs-playing .option-tabs {
  gap: 6px;
}

html.gs-playing .option-tab {
  flex-direction: row;
  gap: 4px;
  min-height: 44px;
  padding: 4px 6px;
  border-color: var(--play-border);
  background: var(--play-hud-bg);
  color: var(--play-text);
  font-size: .8125rem;
}

html.gs-playing .option-tab small {
  font-size: .6875rem;
}

@media (hover: hover) {
  html.gs-playing .option-tab:hover {
    border-color: color-mix(in srgb, var(--play-accent) 55%, var(--play-border));
    background: var(--play-btn-hover);
  }
}

html.gs-playing .option-tab.is-active {
  border-color: var(--play-accent);
  background: color-mix(in srgb, var(--play-accent) 18%, var(--play-hud-bg));
  color: var(--play-accent);
}

html.gs-playing .option-tab:focus-visible {
  outline: 2px solid var(--play-accent);
  outline-offset: 2px;
}


html.gs-playing .gs-hud { grid-area: status; }
html.gs-playing .fp-stage { grid-area: stage; width: 100%; max-width: 560px; }
/* 一覧は通常フローの高さを変えず、盤面の手前に開く。 */
html.gs-playing .fp-stage-list {
  position: relative;
}
html.gs-playing .fp-stage-list__grid {
  position: absolute;
  top: 100%;
  inset-inline: -1px;
  z-index: 2;
  max-height: min(300px, 50dvh);
  overflow-y: auto;
  padding: 10px;
  border: 1px solid var(--play-border);
  border-radius: 0 0 var(--md-sys-shape-corner-medium) var(--md-sys-shape-corner-medium);
  background: var(--play-hud-bg);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .35);
}
html.gs-playing .fp-result {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  max-width: 560px;
  height: fit-content;
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  margin: auto;
  background: var(--play-hud-bg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .45);
}
html.gs-playing .fp-result__title { color: #a8f0ff; }
html.gs-playing .fp-result.is-perfect .fp-result__lead { color: #ff8ec2; }
html.gs-playing .fp-goal { width: 100%; }
html.gs-playing .fp-board-wrap {
  width: 100%;
  max-width: 560px;
  margin: 0 auto 10px;
}
html.gs-playing .fp-board { border-color: var(--play-border); box-shadow: 0 16px 38px rgba(0, 0, 0, .45); }
html.gs-playing .fp-message {
  flex: none;
  width: 100%;
  max-width: 560px;
  height: 3.2em;
  overflow-y: auto;
}
/* 案内がない間も同じ高さを確保して、操作ボタンを動かさない。 */
html.gs-playing .fp-message:not(.fp-message--warn):not(.fp-message--hint) {
  opacity: 0;
  pointer-events: none;
}
@media (max-width: 480px) {
  html.gs-playing .fp-message { height: 4.8em; }
}
html.gs-playing .fp-message--warn { color: #ffaaa5; }
html.gs-playing .fp-message--hint { color: #ffd166; }
html.gs-playing .game-panel .game-controls {
  width: 100%;
  max-width: 560px;
  justify-self: center;
  justify-content: center;
  gap: 12px;
  margin: 0;
}
html.gs-playing .fp-controls .gs-icon-btn { flex: none; padding: 0; min-width: 44px; }
html.gs-playing .fp-stage-nav__btn,
html.gs-playing .fp-result__actions .btn--secondary {
  border: 1px solid var(--play-border);
  background: var(--play-hud-bg);
  color: var(--play-text);
  box-shadow: none;
}
html.gs-playing .fp-level--easy, html.gs-playing .fp-cleared,
html.gs-playing .fp-stage-btn.is-cleared { color: #6ee7b7; }
html.gs-playing .fp-level--normal { color: #9bb9ff; }
html.gs-playing .fp-level--hard { color: #c4b5fd; }
html.gs-playing .fp-level--expert { color: #ff8ec2; }
html.gs-playing .fp-mode-tabs .option-tab { flex-direction: column; gap: 0; }

/* ゴール・盤面・操作をまとめ、ステータスのすぐ下に置く。 */
html.gs-playing .fp-play-area {
  position: relative;
  grid-area: play;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 560px;
  justify-self: center;
  min-width: 0;
  padding-block: 10px;
}

/* 広く高さのある画面では、まとまりを保ったまま余白を広げる。 */
@media (min-width: 768px) and (min-height: 600px) {
  html.gs-playing .game-panel {
    /* ブロック崩しのプレイ画面と同じ幅を基準にする。 */
    --fp-play-width: 640px;
    grid-template-columns: 44px minmax(0, calc(var(--fp-play-width) - 54px));
    padding-top: max(clamp(24px, 5vh, 56px), env(safe-area-inset-top));
  }

  html.gs-playing .gs-hud,
  html.gs-playing .fp-stage,
  html.gs-playing #classic-settings,
  html.gs-playing .fp-play-area,
  html.gs-playing .fp-board-wrap,
  html.gs-playing .fp-result,
  html.gs-playing .game-panel .game-controls {
    max-width: var(--fp-play-width);
  }

  html.gs-playing #classic-settings {
    width: 100%;
  }

  html.gs-playing .fp-settings {
    max-width: 100%;
  }

  html.gs-playing .fp-board {
    max-width: calc(var(--fp-cells) * 88px);
  }

  html.gs-playing .game-panel > .gs-bar,
  html.gs-playing .fp-settings {
    margin-bottom: 28px;
  }

  html.gs-playing .gs-hud {
    margin-bottom: 24px;
  }

  html.gs-playing .fp-stage {
    margin-bottom: 24px;
  }

  html.gs-playing .fp-play-area {
    padding-block: 20px;
  }

  html.gs-playing .fp-goal {
    margin-bottom: 28px;
  }

  html.gs-playing .fp-board-wrap {
    margin-bottom: 24px;
  }
}

/* 横一列の盤面を収めるため、低い横画面では設定・情報を左に置く。 */
@media (orientation: landscape) and (max-height: 500px) {
  html.gs-playing .game-panel {
    grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
    grid-template-rows: auto auto auto auto 1fr;
    grid-template-areas:
      "bar play"
      "mode play"
      "difficulty play"
      "status play"
      "stage play";
    column-gap: 16px;
  }

  html.gs-playing .fp-settings {
    justify-self: stretch;
    width: 100%;
  }

  html.gs-playing .fp-mode-tabs .option-tab {
    flex-direction: column;
    gap: 0;
  }

  html.gs-playing .fp-play-area {
    align-self: center;
  }

  html.gs-playing .fp-stage {
    align-self: start;
  }

  html.gs-playing .fp-stage-list__grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
