/* ==========================================================================
   DREAM LOTTERY SUITE - Premium CSS Style Sheet (Extended)
   ========================================================================== */

:root {
  --bg-color: #0c0d11;
  --panel-bg: rgba(22, 24, 33, 0.55);
  --panel-border: rgba(255, 255, 255, 0.08);
  --accent-gold: linear-gradient(135deg, #ffe066 0%, #f5af19 50%, #e65c00 100%);
  --accent-purple: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
  --accent-prestige: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
  --text-primary: #ffffff;
  --text-secondary: #9ea4b8;
  --gold-color: #f5af19;
  --purple-color: #9d4edd;
  --green-color: #00e676;
  --red-color: #ff1744;
  --cyan-color: #00e5ff;
  --blue-color: #2979ff;
  --shadow-glow: 0 10px 40px 0 rgba(0, 0, 0, 0.45);
  --glass-blur: blur(20px);
  --font-family: 'Outfit', 'Noto Sans JP', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-family);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px;
}

/* 背景グラデーションオーブ */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  opacity: 0.22;
  pointer-events: none;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--gold-color) 0%, transparent 70%);
  top: -10%;
  left: -10%;
}

.orb-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--purple-color) 0%, transparent 70%);
  bottom: -10%;
  right: -10%;
}

.orb-3 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--cyan-color) 0%, transparent 70%);
  top: 30%;
  left: 45%;
  transform: translate(-50%, -50%);
}

/* ガラスモーフィズム汎用クラス */
.glass {
  background: var(--panel-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow-glow);
  border-radius: 20px;
}

/* アプリ全体のコンテナ */
.app-container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeIn 0.8s ease-out;
}

/* ヘッダー */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo i {
  font-size: 2.2rem;
}

.logo h1 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 2px;
}

.logo h1 span {
  background: var(--accent-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gold-glow {
  text-shadow: 0 0 15px rgba(245, 175, 25, 0.6);
  color: var(--gold-color);
}

.stats-panel {
  display: flex;
  gap: 15px;
}

.stat-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 8px 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.02);
}

.stat-item .value {
  font-size: 1.1rem;
}

.stat-item .label {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* ナビゲーション */
.main-nav {
  display: flex;
  padding: 8px;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-btn {
  flex: 1;
  min-width: 120px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.nav-btn.active {
  background: rgba(255, 255, 255, 0.09);
  color: var(--gold-color);
  box-shadow: 0 0 15px rgba(245, 175, 25, 0.15);
  border: 1px solid rgba(245, 175, 25, 0.2);
}

.btn-nav-prestige.active {
  color: var(--red-color) !important;
  border-color: rgba(255, 23, 68, 0.3) !important;
  box-shadow: 0 0 15px rgba(255, 23, 68, 0.15) !important;
}

/* コンテンツ */
.content-area {
  min-height: 520px;
}

.tab-content {
  display: none;
  animation: slideUp 0.5s ease-out;
}

.tab-content.active {
  display: block;
}

/* ゲームの基本レイアウト */
.game-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 20px;
}

@media (max-width: 900px) {
  .game-layout {
    grid-template-columns: 1fr;
  }
}

.game-control {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.game-control h2 {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.description {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

.price-tag {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-val {
  color: var(--gold-color);
}

/* 配当表 */
.scratch-payouts h3 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 6px;
}

.scratch-payouts ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scratch-payouts li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

/* ゲーム画面 */
.game-screen {
  min-height: 480px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 30px;
}

/* スクラッチカード */
.scratch-card-wrapper {
  position: relative;
  width: 360px;
  height: 360px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border: 2px solid rgba(255,255,255,0.1);
  user-select: none;
}

#scratch-canvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  cursor: pointer;
}

.scratch-underlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, #1e202b 0%, #0f1015 100%);
  z-index: 5;
}

.scratch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  width: 100%;
  height: 100%;
  padding: 10px;
  gap: 10px;
}

.scratch-cell {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.2rem;
  color: var(--text-secondary);
}

.scratch-cell.match-highlight {
  background: rgba(245, 175, 25, 0.15);
  border: 2px solid var(--gold-color);
  animation: pulseGold 1.5s infinite;
}

/* ボタン */
.btn {
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.btn-primary {
  background: var(--accent-gold);
  color: #000000;
  box-shadow: 0 4px 15px rgba(245, 175, 25, 0.3);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 175, 25, 0.5);
}

.btn-primary:disabled {
  background: #2e303d;
  color: #65697a;
  box-shadow: none;
  cursor: not-allowed;
}

.btn-danger {
  background: var(--accent-prestige);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 75, 43, 0.3);
}

.btn-danger:hover:not(:disabled) {
  box-shadow: 0 6px 20px rgba(255, 75, 43, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-large {
  padding: 16px 24px;
  font-size: 1.1rem;
  width: 100%;
}

.btn-action {
  padding: 12px 18px;
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: white;
}

.btn-action:hover:not(:disabled) {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
}

/* 当選結果オーバーレイ */
.game-result-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(12, 13, 17, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  animation: fadeIn 0.3s ease-out;
}

.result-box {
  background: radial-gradient(circle, #1d202d 0%, #0d0f15 100%);
  border: 2px solid var(--gold-color);
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 0 40px rgba(245, 175, 25, 0.3);
  max-width: 320px;
  width: 90%;
  animation: zoomIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.result-box h3 {
  font-size: 2rem;
  margin-bottom: 15px;
  background: var(--accent-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
}

.result-box p {
  color: var(--text-primary);
  font-size: 1.2rem;
  margin-bottom: 25px;
  white-space: pre-line;
}

.hidden {
  display: none !important;
}

/* ナンバーズ3 */
.number-selector {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.digit-selector {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.digit-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.digit-buttons {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.digit-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.05);
  color: white;
  border-radius: 8px;
  padding: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.digit-btn:hover {
  background: rgba(255,255,255,0.12);
}

.digit-btn.selected {
  background: var(--accent-gold);
  color: #000;
  font-weight: 800;
  box-shadow: 0 0 10px rgba(245, 175, 25, 0.3);
}

.selection-display {
  font-size: 1.15rem;
  text-align: center;
  background: rgba(0,0,0,0.2);
  padding: 10px;
  border-radius: 10px;
  font-weight: 700;
}

#selected-numbers {
  color: var(--gold-color);
  margin-left: 8px;
  letter-spacing: 4px;
}

/* 抽選機 */
.loto-machine-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loto-machine {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loto-dome {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  border: 6px solid rgba(255,255,255,0.12);
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.01) 100%);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(255,255,255,0.1);
}

.bouncing-balls-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.bouncing-ball {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff 0%, var(--gold-color) 70%);
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 900;
  color: #000;
}

.loto-pipe {
  width: 30px;
  height: 40px;
  background: linear-gradient(90deg, #222 0%, #555 50%, #222 100%);
  border: 1px solid rgba(255,255,255,0.15);
}

.drawn-balls {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.drawn-ball {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 2px dashed rgba(255,255,255,0.12);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold-color);
  transition: all 0.3s;
}

.drawn-ball.active {
  border-style: solid;
  border-color: var(--gold-color);
  background: radial-gradient(circle at 30% 30%, #fff 0%, var(--gold-color) 80%);
  color: #000;
  box-shadow: 0 0 15px rgba(245, 175, 25, 0.4);
}

/* ガラポン */
.gacha-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.wheel-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.garapon-wheel {
  width: 230px;
  height: 230px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border: 8px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1);
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
}

.garapon-wheel::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(245, 175, 25, 0.2);
  top: -2px;
  left: -2px;
}

.garapon-handle {
  width: 60px;
  height: 12px;
  background: #999;
  border-radius: 6px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: 0% 50%;
  transform: rotate(0deg) translate(0, -50%);
  z-index: 10;
}

.garapon-handle::after {
  content: '';
  width: 20px;
  height: 20px;
  background: var(--gold-color);
  border-radius: 50%;
  position: absolute;
  right: -10px;
  top: -4px;
}

.exit-tray {
  width: 80px;
  height: 40px;
  border-radius: 0 0 20px 20px;
  border: 4px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.3);
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.tray-ball {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  animation: dropBall 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* ルーレット (新規ゲーム) */
.roulette-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.roulette-wheel-wrapper {
  position: relative;
  width: 280px;
  height: 280px;
}

.roulette-pointer {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2.2rem;
  color: var(--gold-color);
  z-index: 20;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5));
}

.roulette-wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 8px solid #222;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6), 0 0 0 2px rgba(255,255,255,0.05);
  background: conic-gradient(
    #ff1744 0deg 72deg,    /* LOSE (Red) */
    #f5af19 72deg 144deg,  /* WIN (Gold) */
    #ff1744 144deg 216deg, /* LOSE (Red) */
    #00e676 216deg 288deg, /* BIG WIN (Green) */
    #2979ff 288deg 340deg, /* MEGA WIN (Blue) */
    #00e5ff 340deg 360deg  /* JACKPOT (Cyan) */
  );
  position: relative;
  transition: transform 4s cubic-bezier(0.15, 0.85, 0.35, 1);
}

.roulette-inner {
  position: absolute;
  top: 15%;
  left: 15%;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, #252836 0%, #151722 100%);
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.1);
  box-shadow: inset 0 0 15px rgba(0,0,0,0.6);
  z-index: 5;
}

.roulette-inner::after {
  content: 'GOLD SPIN';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-secondary);
}

/* セクターインジケータ色 */
.sector-indicator {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  vertical-align: middle;
}
.color-jackpot { background: #00e5ff; }
.color-mega { background: #2979ff; }
.color-big { background: #00e676; }
.color-win { background: #f5af19; }
.color-lose { background: #ff1744; }

/* 転生レイアウト */
.prestige-layout {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  border: 1px solid rgba(255, 75, 43, 0.15);
  box-shadow: 0 10px 40px rgba(255, 75, 43, 0.05);
}

.prestige-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.prestige-header h2 {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 1px;
}

.prestige-condition-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 15px;
  display: flex;
  gap: 40px;
  margin: 10px 0;
  max-width: 500px;
  width: 100%;
  justify-content: center;
}

.cond-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.95rem;
}

.cond-item span:last-child {
  font-size: 1.3rem;
  font-weight: 800;
}

.prestige-upgrades-section {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 30px;
}

.prestige-upgrades-section h3 {
  font-size: 1.25rem;
  margin-bottom: 20px;
  text-align: center;
}

.prestige-card {
  border: 1px solid rgba(0, 229, 255, 0.1) !important;
  box-shadow: 0 8px 32px 0 rgba(0, 229, 255, 0.05) !important;
}

.prestige-card:hover {
  border-color: rgba(0, 229, 255, 0.3) !important;
  box-shadow: 0 8px 32px 0 rgba(0, 229, 255, 0.1) !important;
}

.prestige-card .upgrade-cost {
  color: var(--cyan-color);
}

/* ガラポン カラー玉 */
.gold-ball { background: radial-gradient(circle at 30% 30%, #fff 0%, #ffd700 70%, #b8860b 100%); }
.silver-ball { background: radial-gradient(circle at 30% 30%, #fff 0%, #c0c0c0 70%, #808080 100%); }
.bronze-ball { background: radial-gradient(circle at 30% 30%, #fff 0%, #cd7f32 70%, #8b4513 100%); }
.blue-ball { background: radial-gradient(circle at 30% 30%, #fff 0%, #1e90ff 70%, #00008b 100%); }
.white-ball { background: radial-gradient(circle at 30% 30%, #fff 0%, #e0e0e0 70%, #a0a0a0 100%); }

.ball-indicator {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  vertical-align: middle;
}

/* ショップ */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.shop-card {
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 15px;
  transition: all 0.3s;
}

.shop-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.15);
}

.shop-icon {
  font-size: 2.5rem;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.shop-desc {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.5;
  flex-grow: 1;
}

.shop-status {
  font-size: 0.85rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 8px 12px;
  border-radius: 8px;
  width: 100%;
}

.upgrade-cost {
  color: var(--gold-color);
  margin-left: 5px;
}

/* 色＆ユーティリティ */
.gold { color: var(--gold-color); }
.purple { color: #bb86fc; }
.green { color: var(--green-color); }
.red { color: var(--red-color); }
.cyan { color: var(--cyan-color); }
.blue { color: var(--blue-color); }
.gray { color: #888; }
.yellow { color: #ffeb3b; }

/* アニメーション */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulseGold {
  0% { box-shadow: 0 0 0 0 rgba(245, 175, 25, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(245, 175, 25, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 175, 25, 0); }
}

/* ==========================================================================
   5つの新規ゲーム専用スタイル・アニメーション
   ========================================================================== */

/* コインタス */
.cointoss-container {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.coin-wrapper {
  width: 140px;
  height: 140px;
  position: relative;
}

.coin {
  width: 100%;
  height: 100%;
  position: absolute;
  transform-style: preserve-3d;
  transform: rotateY(0deg);
}

.coin-face {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  backface-visibility: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.2rem;
  font-weight: 900;
  border: 4px solid var(--gold-color);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 0 15px rgba(245,175,25,0.3);
}

.coin-front {
  background: radial-gradient(circle at 30% 30%, #ffffff 0%, var(--gold-color) 75%, #b8860b 100%);
  color: #12141d;
  text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}

.coin-back {
  background: radial-gradient(circle at 30% 30%, #ffffff 0%, #d4af37 75%, #8a6d1c 100%);
  color: #12141d;
  text-shadow: 0 1px 2px rgba(255,255,255,0.8);
  transform: rotateY(180deg);
}

.coin-guess-selector {
  display: flex;
  gap: 12px;
}

.coin-guess-selector .btn {
  flex: 1;
}

.streak-panel {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 15px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
}

.streak-item {
  display: flex;
  justify-content: space-between;
}

/* 運命の宝箱 */
.chests-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.chests-wrapper {
  display: flex;
  gap: 25px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.chest-box {
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.03);
  border: 2px dashed rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chest-box.locked .chest-lid {
  width: 52px;
  height: 20px;
  background: linear-gradient(135deg, #ffd700 0%, #d49a17 100%);
  border-radius: 6px 6px 0 0;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 -2px 10px rgba(245,175,25,0.3);
}

.chest-box.locked .chest-body {
  width: 52px;
  height: 30px;
  background: linear-gradient(135deg, #8b4513 0%, #5c2c0c 100%);
  border-radius: 0 0 6px 6px;
  border: 1px solid rgba(255,255,255,0.1);
  margin-top: 2px;
}

.chest-box.locked:hover {
  transform: translateY(-8px) scale(1.05);
  border-color: var(--gold-color);
  box-shadow: 0 10px 30px rgba(245,175,25,0.15);
}

.chest-box.locked:hover .chest-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(245, 175, 25, 0.4);
  opacity: 1;
}

.chest-box.open {
  border-style: solid;
  border-color: var(--green-color);
  background: rgba(0, 230, 118, 0.05);
  box-shadow: 0 10px 30px rgba(0, 230, 118, 0.1);
  transform: scale(1.1);
}

.chest-box.open .chest-lid,
.chest-box.open .chest-body {
  display: none;
}

.chest-box.open.revealed-other {
  border-color: rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.01);
  opacity: 0.35;
  transform: scale(0.9);
}

.chest-content {
  font-size: 2.8rem;
  animation: popSymbol 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* ドリームスロット */
.slot-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.slot-machine-frame {
  width: 320px;
  padding: 20px;
  background: linear-gradient(135deg, #2b2f3d 0%, #12131b 100%);
  border: 6px solid var(--gold-color);
  border-radius: 24px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.6), inset 0 0 20px rgba(245,175,25,0.3);
  position: relative;
}

.slot-reels-container {
  display: flex;
  gap: 12px;
  background: #08090d;
  padding: 10px;
  border-radius: 14px;
  overflow: hidden;
  height: 120px;
  border: 2px solid rgba(255,255,255,0.05);
}

.slot-reel {
  flex: 1;
  height: 100px;
  overflow: hidden;
  position: relative;
  background: #0f1118;
  border-radius: 8px;
  box-shadow: inset 0 8px 15px rgba(0,0,0,0.8);
}

.reel-strip {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.slot-symbol {
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.4rem;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5));
}

.slot-payline {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 23, 68, 0.4);
  z-index: 10;
  box-shadow: 0 0 8px rgba(255, 23, 68, 0.8);
  transform: translateY(-50%);
  pointer-events: none;
}

/* ハイ＆ロー */
.highlow-selectors {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.highlow-selectors .btn {
  width: 100%;
}

.cards-layout {
  display: flex;
  gap: 30px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.card-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.card-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.playing-card {
  width: 125px;
  height: 180px;
  border-radius: 14px;
  background: #11131a;
  border: 2px solid;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.5);
  user-select: none;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s;
}

.playing-card.neon-red {
  border-color: #ff1744;
  color: #ff1744;
  box-shadow: 0 0 15px rgba(255, 23, 68, 0.25), inset 0 0 10px rgba(255, 23, 68, 0.1);
}

.playing-card.neon-blue {
  border-color: #2979ff;
  color: #2979ff;
  box-shadow: 0 0 15px rgba(41, 121, 255, 0.25), inset 0 0 10px rgba(41, 121, 255, 0.1);
}

.card-corner {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
}

.card-corner.top-left {
  text-align: left;
  align-self: flex-start;
}

.card-corner.bottom-right {
  text-align: right;
  align-self: flex-end;
  transform: rotate(180deg);
}

.card-center {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 800;
}

.playing-card.card-back {
  border-color: rgba(255,255,255,0.12);
  background: #191c26;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-back-pattern {
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 18%, transparent 18%), radial-gradient(rgba(255, 255, 255, 0.06) 18%, transparent 18%);
  background-size: 10px 10px;
  background-position: 0 0, 5px 5px;
}

/* ビンゴロト */
.bingo-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.bingo-layout-wrapper {
  display: flex;
  gap: 25px;
  align-items: stretch;
  flex-wrap: wrap;
  justify-content: center;
}

.bingo-board-wrapper {
  background: rgba(0,0,0,0.22);
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.05);
}

.bingo-board {
  display: grid;
  grid-template-columns: repeat(3, 76px);
  grid-template-rows: repeat(3, 76px);
  gap: 8px;
}

.bingo-cell {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-secondary);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  user-select: none;
}

.bingo-cell.matched {
  background: rgba(0, 229, 255, 0.08);
  border-color: var(--cyan-color);
  color: #ffffff;
  text-shadow: 0 0 8px rgba(0,229,255,0.5);
  box-shadow: inset 0 0 10px rgba(0,229,255,0.15);
}

.bingo-cell.bingo-line-flash {
  background: rgba(245, 175, 25, 0.22);
  border-color: var(--gold-color);
  color: #ffffff;
  text-shadow: 0 0 12px rgba(245,175,25,0.8);
  animation: pulseGold 1.5s infinite;
}

.bingo-draw-side {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
}

.bingo-draw-machine {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  min-height: 180px;
}

.bingo-drawn-header {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 6px;
}

.bingo-drawn-balls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  align-content: flex-start;
}

.bingo-drawn-ball {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  border: 1px dashed rgba(255,255,255,0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all 0.3s;
}

.bingo-drawn-ball.hit {
  background: radial-gradient(circle at 30% 30%, #ffffff 0%, var(--cyan-color) 75%, #008ba3 100%);
  color: #12141d;
  border-style: solid;
  border-color: var(--cyan-color);
  box-shadow: 0 0 10px rgba(0,229,255,0.4);
}

/* アニメーション */
@keyframes popSymbol {
  0% { transform: scale(0.3); opacity: 0; }
  85% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   Google AdSense Sponsored Containers (Lottery Suite)
   ========================================================================== */
.lottery-ad-section {
  width: 100%;
  margin-top: 10px;
}

.lottery-ad-section .ad-slot-card {
  position: relative;
  width: 100%;
  min-height: 80px;
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid rgba(245, 175, 25, 0.6);
  background: rgba(18, 20, 32, 0.7);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 15px rgba(245, 175, 25, 0.15);
  box-sizing: border-box;
}

.lottery-ad-section .ad-label {
  position: absolute;
  top: 7px;
  left: 12px;
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  z-index: 2;
  pointer-events: none;
}

.lottery-ad-section ins.adsbygoogle {
  display: block;
  position: relative;
  width: 100%;
  min-height: 80px;
  z-index: 2;
}

.lottery-ad-section .ad-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  z-index: 1;
  pointer-events: none;
}

.lottery-ad-section .ad-placeholder i {
  font-size: 1.6rem;
  color: var(--gold-color);
  filter: drop-shadow(0 0 8px rgba(245, 175, 25, 0.6));
}

.lottery-ad-section .ad-placeholder .ad-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.lottery-ad-section .ad-placeholder .ad-dimension {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.lottery-ad-section .ad-slot-card:has(ins[data-ad-status="filled"]) .ad-placeholder {
  display: none !important;
}

/* ==========================================================================
   Mobile Responsive Layouts for Smartphones (<= 768px & <= 480px)
   携帯での表示崩れ・サイズオーバーを完全解消
   ========================================================================== */
@media screen and (max-width: 768px) {
  body {
    padding: 10px 8px;
    display: block;
  }

  .app-container {
    max-width: 100%;
    gap: 12px;
  }

  /* Header Compact Redesign */
  .main-header {
    flex-direction: column;
    padding: 12px 14px;
    gap: 12px;
    border-radius: 14px;
  }

  .logo {
    gap: 10px;
  }

  .logo i {
    font-size: 1.6rem;
  }

  .logo h1 {
    font-size: 1.35rem;
    letter-spacing: 1px;
  }

  .stats-panel {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    gap: 8px;
  }

  .stat-item {
    padding: 6px 10px;
    font-size: 0.8rem;
    justify-content: center;
  }

  .stat-item .value {
    font-size: 0.92rem;
  }

  /* Swipeable Mobile Navigation Tab Bar */
  .main-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 6px;
    gap: 6px;
    border-radius: 14px;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-btn {
    flex: 0 0 auto;
    min-width: auto;
    padding: 10px 14px;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  /* Game Layout & Screens */
  .game-layout {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .game-control {
    padding: 16px 14px;
    border-radius: 14px;
    gap: 14px;
  }

  .game-control h2 {
    font-size: 1.2rem;
  }

  .description {
    font-size: 0.82rem;
    line-height: 1.5;
  }

  .game-screen {
    padding: 16px 10px;
    min-height: auto;
    border-radius: 14px;
  }

  /* Scratch Card Mobile Responsive Fit */
  .scratch-card-wrapper {
    width: 100% !important;
    max-width: 320px !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    margin: 0 auto;
  }

  #scratch-canvas {
    width: 100% !important;
    height: 100% !important;
  }

  .scratch-cell {
    font-size: 1.6rem;
  }

  /* Numbers 3 Mobile Scaling */
  .digit-buttons {
    gap: 4px;
  }

  .digit-btn {
    padding: 8px 4px;
    font-size: 0.85rem;
  }

  .loto-dome {
    width: 200px;
    height: 200px;
  }

  /* Gacha Machine Mobile */
  .gacha-machine {
    width: 200px;
    height: 200px;
  }

  /* Slot Machine Mobile */
  .slot-machine-wrapper {
    width: 100%;
    max-width: 320px;
  }

  .reel {
    height: 120px;
    font-size: 2rem;
  }

  /* Bingo Board Mobile Fit */
  .bingo-layout-wrapper {
    gap: 14px;
  }

  .bingo-board {
    grid-template-columns: repeat(3, 64px);
    grid-template-rows: repeat(3, 64px);
    gap: 6px;
  }

  .bingo-cell {
    font-size: 1.25rem;
  }

  .bingo-draw-side {
    min-width: 100%;
  }

  /* High & Low Card Mobile */
  .card-container {
    gap: 12px;
  }

  .playing-card {
    width: 95px;
    height: 140px;
  }

  .card-center {
    font-size: 1.2rem;
  }

  .card-corner {
    font-size: 0.85rem;
  }

  /* Coin Toss Mobile */
  .coin {
    width: 120px;
    height: 120px;
  }

  /* Chests Grid Mobile */
  .chests-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  /* Shop Grid Mobile */
  .shop-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Roulette Table Mobile */
  .roulette-board-layout {
    overflow-x: auto;
    padding-bottom: 8px;
  }
}

/* ==========================================================================
   公式説明書（Lottery User Manual & Guide Modal）
   ========================================================================== */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-btn {
  background: rgba(0, 243, 255, 0.1);
  border: 1px solid rgba(0, 243, 255, 0.4);
  color: #00f3ff;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
}

.lang-btn:hover {
  background: rgba(0, 243, 255, 0.25);
  border-color: #00f3ff;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
  transform: translateY(-1px);
}

.btn-header-action {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-header-action:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.btn-guide-open {
  background: linear-gradient(135deg, rgba(245, 175, 25, 0.2) 0%, rgba(255, 75, 43, 0.2) 100%);
  border: 1px solid rgba(245, 175, 25, 0.5);
  color: var(--gold-color);
  box-shadow: 0 0 12px rgba(245, 175, 25, 0.2);
}

.btn-guide-open:hover {
  background: linear-gradient(135deg, rgba(245, 175, 25, 0.35) 0%, rgba(255, 75, 43, 0.35) 100%);
  border-color: var(--gold-color);
  box-shadow: 0 0 18px rgba(245, 175, 25, 0.4);
  color: #fff;
}

.guide-container {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 10px 0 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ヘッダーバナー */
.guide-header-banner {
  text-align: center;
  padding: 30px 20px;
  background: radial-gradient(circle at center, rgba(245, 175, 25, 0.12) 0%, rgba(18, 20, 32, 0.6) 70%);
  border: 1px solid rgba(245, 175, 25, 0.3);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 0 25px rgba(245, 175, 25, 0.08);
}

.guide-tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 2px;
  border-radius: 20px;
  background: rgba(245, 175, 25, 0.2);
  color: var(--gold-color);
  border: 1px solid rgba(245, 175, 25, 0.4);
  margin-bottom: 12px;
}

.guide-header-banner h2 {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 1px;
  background: var(--accent-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.guide-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
}

/* クイックナビ */
.guide-quick-nav {
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(18, 20, 32, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guide-nav-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.guide-anchor-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.guide-chip {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.guide-chip:hover {
  background: rgba(245, 175, 25, 0.15);
  border-color: rgba(245, 175, 25, 0.5);
  color: var(--gold-color);
  transform: translateY(-2px);
}

/* セクション共通 */
.guide-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.guide-section-title {
  font-size: 1.35rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  border-left: 4px solid var(--gold-color);
  padding-left: 12px;
}

.guide-section-title i {
  color: var(--gold-color);
}

/* フローチャート */
.flow-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.flow-step-card {
  padding: 20px;
  border-radius: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.3s ease;
}

.flow-step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 175, 25, 0.4);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.step-num {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 1.8rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.08);
  font-family: monospace;
}

.step-icon {
  font-size: 2rem;
  color: var(--gold-color);
  margin-bottom: 4px;
}

.flow-step-card h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}

.flow-step-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 各くじカードグリッド */
.guide-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.guide-game-card {
  padding: 24px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.guide-game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-color), transparent);
  opacity: 0.5;
}

.guide-game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 175, 25, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.guide-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.game-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(245, 175, 25, 0.12);
  border: 1px solid rgba(245, 175, 25, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--gold-color);
  flex-shrink: 0;
}

.guide-card-header h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.game-meta-pills {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.meta-pill {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}

.guide-card-body {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guide-card-body p {
  margin: 0;
}

.guide-card-body strong {
  color: #fff;
}

/* ミニ配当表 */
.payout-table-mini {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.payout-table-mini th,
.payout-table-mini td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.payout-table-mini th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.75rem;
}

.payout-table-mini tr:last-child td {
  border-bottom: none;
}

/* 攻略テクニックカード */
.guide-tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.tip-card {
  padding: 20px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid rgba(0, 229, 255, 0.2);
  background: radial-gradient(circle at top left, rgba(0, 229, 255, 0.05) 0%, rgba(18, 20, 32, 0.6) 100%);
}

.tip-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1rem;
  color: var(--cyan-color);
}

.tip-card p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

/* FAQアコーディオン */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border-radius: 14px;
  background: rgba(18, 20, 32, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-item[open] {
  border-color: rgba(245, 175, 25, 0.35);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.faq-q {
  padding: 14px 18px;
  font-weight: 700;
  font-size: 0.92rem;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  user-select: none;
}

.faq-q::-webkit-details-marker {
  display: none;
}

.faq-q::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--gold-color);
  font-weight: 300;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-q::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-a {
  padding: 0 18px 16px;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.faq-a strong {
  color: var(--gold-color);
}

/* ==========================================================================
   説明書ポップアップモーダル（Guide Modal Overlay）
   ========================================================================== */
.guide-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(8, 10, 16, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
  animation: fadeIn 0.25s ease-out;
}

.guide-modal-overlay.active {
  display: flex !important;
}

.guide-modal-container {
  width: 100%;
  max-width: 900px;
  max-height: 85vh;
  background: #11131c;
  border: 1px solid rgba(245, 175, 25, 0.4);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(245, 175, 25, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: zoomIn 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.guide-modal-header {
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.guide-modal-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gold-color);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(255, 23, 68, 0.3);
  border-color: #ff1744;
  color: #fff;
  transform: rotate(90deg);
}

.guide-modal-body {
  padding: 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  color: var(--text-primary);
}

/* スマホ表示対応 */
@media screen and (max-width: 768px) {
  .guide-container {
    padding: 6px 0 20px;
    gap: 20px;
  }

  .guide-header-banner {
    padding: 20px 14px;
  }

  .guide-header-banner h2 {
    font-size: 1.45rem;
  }

  .guide-subtitle {
    font-size: 0.82rem;
  }

  .guide-games-grid {
    grid-template-columns: 1fr;
  }

  .guide-game-card {
    padding: 16px;
  }

  .guide-modal-container {
    max-height: 92vh;
    padding: 0;
  }

  .guide-modal-header {
    padding: 14px 16px;
  }

  .guide-modal-body {
    padding: 16px 12px;
  }
}
