/* 📌 apps/ttttopple/css/ttttopple.css */
/* 📄 TTTTOPPLE 専用の上書きCSS。共通デザイン（style.css / card.css / support.css）はそのまま使い、配色と小さなゲーム演出だけを足す。 */

/* 🌷 #10 Theme Colors */
/* 🍀 サイト共通の明るい背景は維持し、アクセントだけアプリのアンティークゴールドに寄せる。 */
:root {
  --bg: #fbf7f0;
  --surface: #f3ede3;
  --card: #ffffff;
  --text: #2a241c;
  --accent: #8a6424;
  --line: #e0d4c0;
  --shadow-soft: 0 10px 28px rgba(60, 44, 18, 0.1);

  --ttt-plate: #16130f;
  --ttt-gold: #d8b36a;
  --ttt-gold-deep: #a47a34;
}

.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.button--secondary {
  background: rgba(255, 255, 255, 0.72);
}

.button--disabled {
  cursor: default;
  opacity: 0.88;
}

/* 🌷 #20 Accent Bar */
/* 🍀 Iromizu の色バーと同じ構造。TTTTOPPLE は駒と盤の色（金・黒・白・木目）で4本並べる。 */
.ttt-splash {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, 1fr);
  margin: 18px 0 0;
}

.ttt-splash span {
  display: block;
  height: 10px;
  border-radius: 999px;
}

.ttt-splash span:nth-child(1) {
  background: var(--ttt-gold);
}

.ttt-splash span:nth-child(2) {
  background: var(--ttt-plate);
}

.ttt-splash span:nth-child(3) {
  background: #e9e3d8;
  box-shadow: inset 0 0 0 1px var(--line);
}

.ttt-splash span:nth-child(4) {
  background: #7a4a26;
}

/* 🌷 #30 Feature / Rule Cards */
/* 🍀 Iromizu と同じカード表現。ルール概要はここに並べる。 */
.feature-grid,
.faq-grid {
  display: grid;
  gap: var(--space-16);
}

.feature-card,
.faq-card {
  padding: var(--space-16);
  border: 1px solid var(--line);
  border-radius: var(--radius-20);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.feature-card__title,
.faq-card__title {
  margin: 0 0 var(--space-8);
  color: var(--text);
  font-size: var(--font-sub);
  line-height: 1.45;
  font-weight: 700;
}

.feature-card__text,
.faq-card__text {
  margin: 0;
  color: rgba(42, 36, 28, 0.78);
  font-size: var(--font-body);
  line-height: 1.8;
}

.note-list {
  margin: 0;
  padding-left: 1.25em;
  color: rgba(42, 36, 28, 0.78);
  line-height: 1.8;
}

.note-list li + li {
  margin-top: 8px;
}

/* 🌷 #35 Legal Pages */
/* 🍀 規約ページ内の小見出し（「ユーザー名」「Epic Online Services」など）。セクション見出しより一段控えめにする。 */
.legal-subtitle {
  margin: var(--space-16) 0 var(--space-8);
  color: var(--text);
  font-size: var(--font-body);
  line-height: 1.6;
  font-weight: 700;
}

.support-block .note-list {
  margin: var(--space-8) 0;
  list-style: disc;
}

.support-block .note-list li + li {
  margin-top: 4px;
}

/* 🌷 #50 Carousel Tweaks */
/* 🍀 縦横比は共通CSSの 1284×2778 のまま使い、暗い画像に合わせて背景だけ揃える。 */
.carousel__item img {
  background: var(--ttt-plate);
  border-color: var(--line);
}

.footer__links {
  flex-wrap: wrap;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
