/* =====================================================================
   style.css — ホワイトノイズ（集中・睡眠）ツール固有の微調整のみ。
   共通スタイルは /_shared/shirugear.css に任せる。ダーク対応は
   .sg-dark / prefers-color-scheme の両方を見て変数を利用する。
   ===================================================================== */

/* 補助ラベルを入力直下に詰める */
.sg-field .sg-help {
  margin-top: var(--sg-space-1);
}

/* プレイヤーカード */
.wn-player {
  text-align: center;
}
.wn-status {
  margin: 0 0 var(--sg-space-4);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--sg-muted, #777);
}

/* 大きな再生ボタン */
.wn-play-wrap {
  display: flex;
  justify-content: center;
}
.wn-play {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  color: #fff;
  background: var(--sg-primary, #3b5bdb);
  box-shadow: 0 8px 24px rgba(59, 91, 219, 0.35);
  transition: transform 0.08s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.wn-play:hover {
  background: #33509c;
}
.wn-play:active {
  transform: scale(0.97);
}
.wn-play:focus-visible {
  outline: 3px solid var(--sg-primary, #3b5bdb);
  outline-offset: 3px;
}
.wn-play.is-playing {
  background: #c23b3b;
  box-shadow: 0 8px 24px rgba(194, 59, 59, 0.35);
}
.wn-play.is-playing:hover {
  background: #a63232;
}
.wn-play__icon {
  font-size: 3rem;
  line-height: 1;
}
.wn-play__text {
  font-size: 1rem;
  font-weight: 700;
}

/* オフタイマーの残り時間 */
.wn-timer-remain {
  margin: var(--sg-space-4) 0 0;
  min-height: 1.4em;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  color: var(--sg-muted, #777);
}

/* ノイズ種別の選択カード（even-spacing の .es-types を踏襲） */
.wn-types {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: var(--sg-space-2);
}
.wn-types label {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--sg-border, #e5e7eb);
  border-radius: var(--sg-radius, 8px);
  cursor: pointer;
  user-select: none;
}
.wn-types input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.wn-types label:has(input:checked) {
  border-color: var(--sg-primary, #3b5bdb);
  background: rgba(59, 91, 219, 0.08);
}
.wn-types__title {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
}
.wn-types label:has(input:checked) .wn-types__title {
  color: var(--sg-primary, #3b5bdb);
}
.wn-types__desc {
  display: block;
  margin-top: 2px;
  font-size: 0.8rem;
  color: var(--sg-muted, #777);
}

/* 音量スライダー */
.wn-volume-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: var(--sg-space-2);
}
.wn-volume {
  flex: 1 1 auto;
  width: 100%;
}
.wn-volume-val {
  flex: 0 0 auto;
  min-width: 3.2em;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

/* オフタイマーの選択（横並びのチップ） */
.wn-timer-types {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--sg-space-2);
}
.wn-timer-types label {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--sg-border, #e5e7eb);
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
  font-size: 0.9rem;
}
.wn-timer-types input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.wn-timer-types label:has(input:checked) {
  border-color: var(--sg-primary, #3b5bdb);
  background: rgba(59, 91, 219, 0.08);
  color: var(--sg-primary, #3b5bdb);
  font-weight: 700;
}

/* 画面スリープ防止のチェックボックス */
.wn-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 0.95rem;
  line-height: 1.5;
}
.wn-check input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
}
