/* ==========================================================================
   やさしいソリティア v2 追加スタイル（シニア向けの見やすさ改善）
   ========================================================================== */

/* ==========================================================================
   TOP画面（初めての人でも迷わないように）
   ========================================================================== */
#top-screen {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: linear-gradient(180deg, #0d4a26 0%, #072a15 100%);
}

.top-inner {
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.top-title {
  font-size: 30px;
  font-weight: 900;
  color: #ffd214;
  margin: 0 0 6px;
  line-height: 1.3;
}

.top-catch {
  font-size: 17px;
  color: #eaf7ee;
  margin: 0 0 18px;
}

.top-status {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 0 0 18px;
  line-height: 1.5;
}

.top-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}

.top-main-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 84px;
  border: none;
  border-radius: 16px;
  background: #ffd214;
  color: #1b1b1b;
  font-size: 23px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.35);
}

.top-main-btn:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}

.top-main-btn.top-sub-main {
  min-height: 68px;
  font-size: 19px;
  background: #eaf7ee;
  color: #0b3d1f;
}

.top-btn-icon {
  font-size: 26px;
}

.top-streak {
  font-size: 16px;
  color: #ffe98a;
  margin: 0 0 14px;
}

.top-small-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.top-small-btn {
  min-height: 46px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-height: 640px) {
  .top-title { font-size: 25px; }
  .top-main-btn { min-height: 70px; font-size: 20px; }
  .top-main-btn.top-sub-main { min-height: 58px; font-size: 17px; }
  .top-catch, .top-status { margin-bottom: 12px; }
}

/* --- 下の4つのボタンを 2×2 の大きなボタンに（押しまちがい防止） --- */
.action-footer {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  margin-top: 12px !important;
}

.footer-button {
  flex: 1 1 calc(50% - 12px) !important;
  min-width: calc(50% - 12px) !important;
  height: 68px !important;
  flex-direction: row !important;
  gap: 8px !important;
  font-size: 18px !important;
  white-space: nowrap !important;
}

.btn-icon {
  font-size: 24px !important;
}

.btn-label {
  font-size: 18px !important;
  font-weight: 900 !important;
}

/* 「そろえる」をもっと目立たせる */
#auto-btn {
  outline: 3px solid rgba(255, 255, 255, 0.35);
  outline-offset: -3px;
}

/* れんしゅうで「このボタンを押して」と知らせるとき */
.btn-attention {
  animation: attentionPulse 1s ease-in-out infinite alternate;
  outline: 4px solid #00ff66 !important;
  outline-offset: 2px;
}

@keyframes attentionPulse {
  from { transform: scale(1); }
  to { transform: scale(1.04); }
}

/* --- ヘッダーの文字が折り返さないように --- */
.logo {
  font-size: 15px !important;
  white-space: nowrap;
}

.icon-button {
  white-space: nowrap;
  font-size: 12px !important;
  padding: 8px 9px !important;
}

.game-header {
  gap: 6px;
}

/* --- 「ここにおけます」のみどりのわくを 必ず見えるように
       （.card は overflow:hidden なので outline を使う） --- */
.card.targetable {
  outline: 5px dashed #00c853 !important;
  outline-offset: -2px;
  z-index: 80;
}

.card-slot.targetable {
  outline: 5px dashed #00c853 !important;
  outline-offset: -2px;
}

.card.selected {
  outline: 5px solid #ffd214 !important;
  outline-offset: -2px;
}

/* --- カード中央の大きなマーク --- */
.card-center-suit {
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.card-num {
  font-size: 24px !important;
}

.card-top-suit {
  font-size: 17px !important;
}

/* --- あいている列を「おける場所」として分かりやすく --- */
.tableau-column.targetable {
  outline: 4.5px dashed #008f39;
  outline-offset: -2px;
  background-color: rgba(0, 255, 100, 0.18) !important;
}

.tableau-column {
  min-height: 120px;
  cursor: pointer;
}

/* --- 案内バーを大きく読みやすく --- */
.guide-bar {
  padding: 12px 14px !important;
  border: 2px solid #7fb3ff;
}

.guide-bar span {
  font-size: 18px !important;
  line-height: 1.5 !important;
}

.toast-bar span {
  font-size: 17px !important;
}

.date-text {
  font-size: 17px !important;
}

/* --- カレンダーの日付 --- */
.calendar-day-num {
  font-size: 13px;
  opacity: 0.9;
}

/* --- モーダルのボタンも大きめに --- */
.modal-button {
  min-height: 56px;
  font-size: 18px !important;
}

/* --- ちいさな画面でもボタンがつぶれないように --- */
@media (max-width: 360px) {
  .footer-button { height: 62px !important; font-size: 16px !important; }
  .btn-label { font-size: 16px !important; }
}
