/* MTG コアゲームサマリーシート用カスタムCSS */
:root {
  --mtg-bg-dark: #1a1a1d;
  --mtg-bg-card: #25252a;
  --mtg-border-gold: #c5a059;
  --mtg-border-silver: #a0a0a0;
  --mtg-text-main: #e0e0e0;
  --mtg-text-gold: #e5c07b;
  --mtg-text-muted: #a0a0a0;
  --mtg-accent-glow: rgba(197, 160, 89, 0.3);
  
  /* MTG 5 Colors */
  --mtg-white: #f8e7b9;
  --mtg-blue: #aae0fa;
  --mtg-black: #cbc2bf;
  --mtg-red: #f9aa8f;
  --mtg-green: #9bd3ae;
  --mtg-colorless: #ccc2c0;
}

/* メインコンテナ */
.mtg-container {
  background-color: var(--mtg-bg-dark);
  color: var(--mtg-text-main);
  border: 4px double var(--mtg-border-gold);
  padding: 20px;
  max-width: 900px;
  margin: 0 auto;
  font-family: "Noto Sans JP", sans-serif;
  position: relative;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* ヘッダー */
.mtg-header {
  text-align: center;
  border-bottom: 2px solid var(--mtg-border-gold);
  margin-bottom: 20px;
  padding-bottom: 10px;
}
.mtg-title {
  font-size: 2.5em;
  color: var(--mtg-text-gold);
  font-family: serif;
  text-shadow: 2px 2px 4px #000;
  margin: 0;
  letter-spacing: 2px;
}
.mtg-subtitle {
  color: var(--mtg-text-muted);
  font-size: 1em;
  letter-spacing: 3px;
}

/* グリッドレイアウト用 */
.mtg-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}
.mtg-col-12 { width: 100%; }
.mtg-col-6 { width: 48%; }
.mtg-col-8 { width: 65%; }
.mtg-col-4 { width: 32%; }

@media (max-width: 768px) {
  .mtg-col-6, .mtg-col-8, .mtg-col-4 { width: 100%; }
}

/* カード共通スタイル */
.mtg-card {
  background: var(--mtg-bg-card);
  border: 1px solid var(--mtg-border-silver);
  border-radius: 6px;
  padding: 15px;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
  margin-bottom: 15px;
}
.mtg-card-title {
  color: var(--mtg-text-gold);
  border-bottom: 1px solid var(--mtg-border-silver);
  padding-bottom: 5px;
  margin-bottom: 10px;
  font-family: serif;
  font-weight: bold;
}
.mtg-card-title::before {
  content: "✦ ";
  color: var(--mtg-border-gold);
}

/* ステータスボックス */
.mtg-status-area {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}
.mtg-stat-box {
  flex: 1;
  background: linear-gradient(135deg, #2a2a30, #1f1f22);
  border: 2px solid var(--mtg-border-gold);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}
.mtg-stat-label {
  font-size: 0.7em;
  color: var(--mtg-text-muted);
}
.mtg-stat-value {
  font-size: 2em;
  font-weight: bold;
  color: var(--mtg-text-main);
  text-shadow: 0 0 10px var(--mtg-accent-glow);
  font-family: serif;
}

/* カラーゲージ */
.mtg-color-area {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 15px;
  border-top: 1px solid var(--mtg-border-gold);
  border-bottom: 1px solid var(--mtg-border-gold);
  margin: 15px 0;
  background: rgba(255,255,255,0.03);
}
.mtg-mana {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  border: 2px solid rgba(255,255,255,0.2);
  color: #333;
  font-family: serif;
}
.mana-w { background: radial-gradient(circle, #fff, var(--mtg-white)); }
.mana-u { background: radial-gradient(circle, #d0f0ff, var(--mtg-blue)); }
.mana-b { background: radial-gradient(circle, #e0e0e0, var(--mtg-black)); }
.mana-r { background: radial-gradient(circle, #ffccc0, var(--mtg-red)); }
.mana-g { background: radial-gradient(circle, #c0e8c0, var(--mtg-green)); }
.mana-c { background: radial-gradient(circle, #e0e0e0, var(--mtg-colorless)); }

/* テーブル調整 */
.mtg-card table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
  color: var(--mtg-text-main);
}
.mtg-card th {
  background: transparent;
  color: var(--mtg-text-gold);
  border-bottom: 1px solid #444;
  text-align: left;
}
.mtg-card td {
  border-bottom: 1px solid #333;
  padding: 5px;
}

/* キーワードタグ */
.mtg-tag {
  background: rgba(255,255,255,0.05);
  padding: 5px 10px;
  border-radius: 4px;
  margin-bottom: 5px;
  font-size: 0.9em;
}
.mtg-tag-name {
  color: #7abaff;
  font-weight: bold;
  margin-right: 8px;
}

/* @wikiのテーブルスタイル上書き */
.mtg-container .atwiki_table {
    background-color: transparent !important;
    border: none !important;
}
.mtg-container .atwiki_tr_odd, .mtg-container .atwiki_tr_even {
    background-color: transparent !important;
}
    