/* E-計算！ Sports フィギュアスケートの得点計算（sports/figure.html）だけの見た目 */
.fig-pick { display: grid; gap: 4px 0; margin: 8px 0 0; }
.fig-lbl { font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.fig-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; }
.fig-row select { flex: 1 1 9em; min-width: 0; max-width: 100%; padding: 8px 10px; font: inherit; font-size: 14px; color: var(--ink); background: var(--page); border: 1px solid var(--line-strong); border-radius: 9px; }
.fig-row select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.fig-checks { margin: 8px 0 0; flex-wrap: wrap; }
.fig-wide input[type="text"] { text-align: left; }
.fig-els td:nth-child(2) { text-align: left; }
/* 要素の表は説明の行を折り返して、点の列が画面の外に出ないようにする */
table.data.fig-els { white-space: normal; }
.fig-els td { vertical-align: top; }
.fig-els td:nth-child(3), .fig-els td:nth-child(5) { white-space: nowrap; }
.fig-els td:nth-child(4) { min-width: 6.5em; }
.fig-els td:nth-child(2) { min-width: 9em; }
/* スマホ：番号の列と、基礎点・GOE の説明の行を省いて、点の列まで画面に入れる */
@media (max-width: 520px) {
  table.data.fig-els th, table.data.fig-els td, table.data.fig-pcs th, table.data.fig-pcs td { padding: 6px 5px; }
  .fig-els th:first-child, .fig-els td:first-child { display: none; }
  .fig-els td:nth-child(2) { min-width: 0; }
  .fig-els td:nth-child(4) { min-width: 0; }
  .fig-els td:nth-child(3) .fig-sub, .fig-els td:nth-child(4) .fig-sub, .fig-pcs .fig-sub { display: none; }
  .fig-pcs th:nth-child(3), .fig-pcs td:nth-child(3) { display: none; }
  table.data.fig-pcs th { white-space: normal; }
}
.fig-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13.5px; overflow-wrap: anywhere; }
.fig-sub { display: block; font-size: 12px; color: var(--muted); font-weight: 400; line-height: 1.5; }
@media (max-width: 520px) {
  .fig-row select { flex-basis: 100%; }
}
/* かんたん計算：選んだ要素の並び */
.fig-ez { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; counter-reset: ez; }
.fig-ez > li { counter-increment: ez; padding: 9px 10px 10px; border-radius: var(--r); background: color-mix(in srgb, var(--grid) 28%, transparent); }
.fig-ez-top { display: flex; align-items: baseline; gap: 8px; }
.fig-ez-top::before { content: counter(ez); min-width: 1.4em; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.fig-ez-name { flex: 1; min-width: 0; font-size: 14px; line-height: 1.45; }
.fig-ez-name b { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; margin-right: 6px; }
.fig-ez-name small { display: block; color: var(--muted); font-size: 12px; }
.fig-ez-pts { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fig-ez-del { appearance: none; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 18px; line-height: 1; padding: 2px 6px; cursor: pointer; border-radius: 6px; }
.fig-ez-del:hover, .fig-ez-del:focus-visible { color: var(--accent); outline: 2px solid var(--accent); outline-offset: 1px; }
.fig-ez-ctl { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 7px 0 0 1.9em; align-items: center; }
.fig-ez-ctl select { min-width: 0; font: inherit; font-size: 13.5px; padding: 5px 6px; border: 1px solid var(--grid); border-radius: 8px; background: var(--surface, #fff); color: var(--ink); max-width: 100%; }
.fig-ez-ctl label { font-size: 13.5px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.fig-ez-ctl .fig-ez-goe { font-weight: 700; }
.fig-ez-hint { margin: 5px 0 0 1.9em; font-size: 12px; color: var(--muted); line-height: 1.6; }
.fig-ez-hint:empty { display: none; }
@media (max-width: 520px) { .fig-ez-ctl { margin-left: 0; } .fig-ez-hint { margin-left: 0; } }
/* iOS は 16px より小さい入力欄で拡大するので、スマホでは 16px */
@media (max-width: 560px) { .fig-ez-ctl select, #ezPcs { font-size: 16px; } }
.fig-ez-total { margin: 10px 0 0; padding: 9px 12px; border-radius: var(--r); background: var(--accent-soft); font-size: 14px; line-height: 1.6; }
.fig-ez-total b { font-size: 20px; font-variant-numeric: tabular-nums; }
.fig-ez-total a { margin-left: 6px; white-space: nowrap; }
