/* ========================================
   それ俺の肉！ - CSS
   画像は後から差し替え前提の簡易ビジュアル
   ======================================== */

:root {
  /* ベースカラー — 焼肉屋の暖かい暗い木目調 */
  --bg-primary: #140e0a;
  --bg-secondary: rgba(35, 22, 15, 0.85);
  --bg-card: #2a1810;
  --text-primary: #eee;
  --text-secondary: #aaa;
  --accent: #e94560;
  --accent-hover: #ff6b6b;

  /* 肉カテゴリカラー */
  --meat-beef: #c0392b;
  --meat-pork: #e08283;
  --meat-chicken: #f39c12;
  --meat-offal: #8e6b3e;
  --meat-rare-beef: #9b59b6;

  /* 焼き加減カラー */
  --cook-nama: #ff6666;
  --cook-raw: #ff4444;
  --cook-rare: #e74c6f;
  --cook-medium: #a0522d;
  --cook-wellDone: #5c3317;
  --cook-burnt: #222;

  /* グリッド */
  --grid-normal: #333;
  --grid-strong-fire: #ff6600;
  --grid-empty: #444;

  /* UI */
  --btn-primary: #e94560;
  --btn-secondary: #533483;
  --border-radius: 8px;

  /* 盤面サイズ（スライダーで動的変更） */
  --grid-cell-size: 90px;
}

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

body {
  font-family: 'Segoe UI', 'Hiragino Sans', 'Meiryo', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
}

/* ゲーム画面の焼肉屋背景 */
body:has(.game-container) {
  background:
    linear-gradient(180deg, rgba(10, 6, 4, 0.75) 0%, rgba(10, 6, 4, 0.6) 50%, rgba(10, 6, 4, 0.8) 100%),
    url('/assets/images/bg/yakiniku_bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hidden {
  display: none !important;
}

/* ========================================
   ロビー画面
   ======================================== */

.lobby-container {
  max-width: 480px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

.game-title {
  font-size: 2.5rem;
  margin-bottom: 8px;
  color: var(--accent);
}

.game-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.lobby-panel {
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  padding: 24px;
}

.panel-section {
  margin-bottom: 16px;
}

.panel-section h2 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.panel-section form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.panel-section input {
  padding: 10px 14px;
  border: 1px solid #444;
  border-radius: 6px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1rem;
}

.panel-section input:focus {
  outline: none;
  border-color: var(--accent);
}

.divider {
  color: var(--text-secondary);
  margin: 16px 0;
  font-size: 0.9rem;
}

/* ボタン */
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary {
  background: var(--btn-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--btn-secondary);
  color: white;
}

.btn-secondary:hover {
  background: #6c44a0;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 待機画面 */
.waiting-room {
  margin-top: 24px;
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  padding: 24px;
}

.room-id-text {
  font-family: monospace;
  font-size: 1.2rem;
  color: var(--accent);
  user-select: all;
}

.player-list {
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.player-item {
  padding: 8px 16px;
  background: var(--bg-card);
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.player-item .host-badge {
  background: var(--accent);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
}

.hint {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: 8px;
}

.error-msg {
  margin-top: 16px;
  padding: 12px;
  background: #c0392b33;
  border: 1px solid #c0392b;
  border-radius: 6px;
  color: #ff6b6b;
}

/* ========================================
   ゲーム画面
   ======================================== */

.game-container {
  display: grid;
  gap: 12px;
  padding: 12px;
  height: 100vh;
  max-width: 1200px;
  margin: 0 auto;
  /* grid-template-columns/rows/areas は JS (layout-editor.js) で動的設定 */
  /* フォールバック（JS読込前） */
  grid-template-columns: 220px 1fr 250px;
  grid-template-rows: auto 1fr 1fr auto auto auto;
  grid-template-areas:
    "header   header   header"
    "players  grill    platter"
    "players  grill    happening"
    "players  log      log"
    "actions  actions  actions"
    "hand     hand     hand";
}

/* ========================================
   カスタムレイアウトシステム（grid-area方式）
   ======================================== */

/* 各コンポーネントのgrid-area（フォールバック） */
.game-header    { grid-area: header; }
#player-panel   { grid-area: players; }
.grill-section  { grid-area: grill; }
.platter-area   { grid-area: platter; }
#happening-display { grid-area: happening; }
.log-area       { grid-area: log; }
#action-panel   { grid-area: actions; }
#hand-area      { grid-area: hand; }

/* 1列レイアウト時のプレイヤー横スクロール */
#player-panel.layout-horizontal {
  flex-direction: row;
  overflow-x: auto;
}
#player-panel.layout-horizontal .player-card {
  min-width: 160px;
  flex-shrink: 0;
}

/* 大皿2列グリッド */
.platter-grid.platter-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.platter-grid.platter-2col .platter-card {
  width: 100%;
}

/* ゲームヘッダー */
.game-header {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  background: linear-gradient(180deg, rgba(50, 30, 18, 0.95) 0%, rgba(35, 22, 15, 0.9) 100%);
  border-radius: var(--border-radius);
  border-bottom: 1px solid rgba(200, 120, 50, 0.15);
}

.round-info {
  font-size: 1rem;
}

.turn-info {
  font-size: 1rem;
  color: var(--accent);
  font-weight: bold;
}

.ap-display {
  display: flex;
  gap: 4px;
}

.ap-pip {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--accent);
}

.ap-pip.used {
  background: transparent;
}

/* プレイヤーパネル */
.player-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.player-card {
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  padding: 12px;
  border: 2px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(4px);
}

.player-card.active {
  border-color: var(--accent);
}

.player-card.self {
  border-color: #27ae60;
}

.skill-used-badge {
  background: #e74c3c;
  color: white;
  font-size: 0.6rem;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 4px;
  font-weight: bold;
}

.player-name {
  font-weight: bold;
  margin-bottom: 4px;
}

.player-mp {
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: bold;
}

.player-hand-count {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.player-plate {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

/* 各セクションの基本スタイル */
.grill-section {
  overflow: hidden;
}

.platter-area {
  overflow-y: auto;
}

.log-area {
  overflow-y: auto;
  min-height: 80px;
}

/* 網（4×4グリッド）— 焼き網風デザイン */
.grill-grid {
  display: grid;
  grid-template-columns: repeat(4, var(--grid-cell-size));
  gap: 4px;
  padding: 18px;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.5) 100%),
    url('/assets/images/bg/grill_texture.jpg');
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  border: 3px solid #5a4030;
  box-shadow:
    inset 0 0 40px rgba(255, 60, 10, 0.1),
    0 0 24px rgba(255, 60, 10, 0.08),
    0 4px 16px rgba(0,0,0,0.5);
}

.grid-cell {
  width: var(--grid-cell-size);
  height: var(--grid-cell-size);
  border: 2px solid rgba(160, 120, 80, 0.4);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  position: relative;
  background: rgba(20, 12, 6, 0.5);
  backdrop-filter: blur(1px);
}

.grid-cell:hover {
  border-color: rgba(200, 160, 100, 0.6);
  box-shadow: 0 0 8px rgba(255, 140, 50, 0.2);
}

.grid-cell.strong-fire {
  border-color: rgba(255, 100, 30, 0.6);
  background: rgba(80, 20, 5, 0.45);
  box-shadow: inset 0 0 15px rgba(255, 60, 10, 0.2);
}

.grid-cell.strong-fire::after {
  content: '🔥';
  position: absolute;
  bottom: 2px;
  right: 2px;
  font-size: 0.7rem;
  opacity: 0.7;
}

.grid-cell.owned {
  border-width: 3px;
  border-style: solid;
}

.grid-cell.highlight {
  border-color: #27ae60;
  border-style: solid;
  background: rgba(39, 174, 96, 0.1);
  animation: highlight-pulse 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(39, 174, 96, 0.4);
}

@keyframes highlight-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(39, 174, 96, 0.4); }
  50% { box-shadow: 0 0 16px rgba(39, 174, 96, 0.7), 0 0 24px rgba(39, 174, 96, 0.3); }
}

.grid-cell.disabled {
  border-color: #666;
  border-style: dashed;
  background: rgba(100, 100, 100, 0.15);
  cursor: not-allowed;
  opacity: 0.5;
}

/* 肉カード（共通） */
.meat-card {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 3px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s;
  position: relative;
  border: 2px solid rgba(255,255,255,0.15);
  overflow: hidden;
}

.meat-card:hover {
  transform: scale(1.05);
}

.meat-card .meat-name {
  font-size: calc(var(--grid-cell-size) * 0.13);
  text-shadow: 0 0 5px rgba(0,0,0,1), 0 1px 3px rgba(0,0,0,0.9), 0 0 8px rgba(0,0,0,0.7);
  background: rgba(0,0,0,0.5);
  padding: 1px 5px;
  border-radius: 3px;
  color: white;
}

.meat-card .cook-label {
  font-size: calc(var(--grid-cell-size) * 0.11);
  text-shadow: 0 0 5px rgba(0,0,0,1), 0 1px 3px rgba(0,0,0,0.9);
  background: rgba(0,0,0,0.55);
  padding: 1px 6px;
  border-radius: 3px;
  color: white;
}

.meat-card .meat-owner {
  font-size: calc(var(--grid-cell-size) * 0.09);
  text-shadow: 0 0 4px rgba(0,0,0,0.9);
  background: rgba(0,0,0,0.5);
  padding: 0 4px;
  border-radius: 2px;
  color: white;
}

.meat-card .meat-score {
  font-size: calc(var(--grid-cell-size) * 0.1);
  opacity: 0.8;
}

/* 肉カテゴリ色（フォールバック。画像がある場合は背景画像で上書き） */
.meat-card.beef { background: var(--meat-beef); color: white; }
.meat-card.pork { background: var(--meat-pork); color: white; }
.meat-card.chicken { background: var(--meat-chicken); color: white; }
.meat-card.offal { background: var(--meat-offal); color: white; }
.meat-card.rare_beef { background: var(--meat-rare-beef); color: white; }

/* 焼き加減の画像がある場合（background-imageがJS側で設定される） */
.meat-card[style*="background-image"] {
  background-size: cover !important;
  background-position: center !important;
  color: white;
}

/* 焦げ肉のみ暗い背景（画像なし時） */
.meat-card.cook-5:not([style*="background-image"]) {
  background: var(--cook-burnt) !important;
  color: #888;
}

/* 氷エフェクト */
.meat-card.has-ice::before {
  content: '❄';
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 1rem;
  background: rgba(52, 152, 219, 0.85);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  border: 1px solid rgba(255,255,255,0.5);
}

/* 大皿 */
.platter-area {
  background: rgba(35, 22, 15, 0.8);
  border-radius: var(--border-radius);
  padding: 12px;
  border: 1px solid rgba(200, 120, 50, 0.1);
}

.platter-area h3 {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.platter-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.platter-card {
  width: 70px;
  height: 45px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: bold;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s, transform 0.15s;
  position: relative;
  overflow: hidden;
}

.platter-card:hover {
  transform: scale(1.08);
}

.platter-card-name {
  text-shadow: 0 0 4px rgba(0,0,0,0.9), 0 1px 2px rgba(0,0,0,0.8);
  z-index: 1;
}

.platter-card.selected {
  border-color: #27ae60;
  box-shadow: 0 0 8px rgba(39, 174, 96, 0.5);
}

.platter-card.beef { background: var(--meat-beef); color: white; }
.platter-card.pork { background: var(--meat-pork); color: white; }
.platter-card.chicken { background: var(--meat-chicken); color: white; }
.platter-card.offal { background: var(--meat-offal); color: white; }

/* 発生中ハプニング表示 */
.happening-display:empty {
  display: none;
}

.happening-display {
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  padding: 12px;
}

.happening-display h3 {
  font-size: 0.85rem;
  margin-bottom: 8px;
  color: var(--accent);
}

.happening-active-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 6px;
  border-left: 3px solid var(--accent);
  background: rgba(233, 69, 96, 0.08);
  margin-bottom: 6px;
}

.happening-active-card:last-child {
  margin-bottom: 0;
}

.happening-active-img {
  width: 48px;
  height: 67px;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.happening-active-text {
  flex: 1;
  min-width: 0;
}

.happening-active-name {
  font-size: 0.85rem;
  font-weight: bold;
  color: var(--text-primary);
}

.happening-active-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* アクションパネル */
.action-panel {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  padding: 12px;
  background: rgba(35, 22, 15, 0.85);
  border-radius: var(--border-radius);
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  border: 1px solid rgba(200, 120, 50, 0.1);
}

.action-btn {
  padding: 10px 20px;
  border: 2px solid var(--accent);
  border-radius: 6px;
  background: transparent;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}

.action-btn:hover:not(:disabled) {
  background: var(--accent);
  color: white;
}

.action-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.action-btn.active {
  background: var(--accent);
  color: white;
}

/* 確定/やり直しパネル */
.turn-confirm-panel {
  display: flex;
  gap: 8px;
  width: 100%;
}

.btn-confirm {
  background: #27ae60 !important;
  border-color: #27ae60 !important;
  color: white !important;
  font-weight: bold;
  flex: 1;
}

.btn-confirm:hover {
  background: #2ecc71 !important;
}

.btn-redo {
  background: #e67e22 !important;
  border-color: #e67e22 !important;
  color: white !important;
  font-weight: bold;
  flex: 1;
}

.btn-redo:hover:not(:disabled) {
  background: #f39c12 !important;
}

.btn-redo:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* 手札 */
.hand-area {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  padding: 12px;
  background: rgba(35, 22, 15, 0.85);
  border-radius: var(--border-radius);
  align-items: center;
  overflow-x: auto;
  border: 1px solid rgba(200, 120, 50, 0.1);
}

.hand-area h3 {
  font-size: 0.9rem;
  margin-right: 8px;
  white-space: nowrap;
}

.hand-card {
  width: 130px;
  min-width: 130px;
  height: 90px;
  border-radius: 6px;
  background: var(--bg-card);
  border: 2px solid #555;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.2s;
  padding: 6px 8px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hand-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.hand-card .card-name {
  font-weight: bold;
  font-size: 0.8rem;
  color: #fff;
  text-shadow: 0 0 6px rgba(0,0,0,1), 0 1px 3px rgba(0,0,0,0.9), 0 0 12px rgba(0,0,0,0.7);
  z-index: 1;
  line-height: 1.2;
}

.hand-card .card-desc {
  font-size: 0.6rem;
  color: #fff;
  margin-top: 3px;
  text-shadow: 0 0 4px rgba(0,0,0,1), 0 1px 2px rgba(0,0,0,0.9);
  z-index: 1;
  background: rgba(0,0,0,0.75);
  padding: 2px 6px;
  border-radius: 3px;
  line-height: 1.35;
  word-break: keep-all;
  overflow-wrap: break-word;
  max-width: 100%;
}

/* 小皿の肉ミニカード */
.plate-meat-mini {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: bold;
  color: white;
}

/* ログエリア */
.log-area {
  background: rgba(25, 15, 10, 0.85);
  border-radius: var(--border-radius);
  padding: 12px;
  min-height: 120px;
  max-height: 200px;
  min-width: 0;
  border: 1px solid rgba(200, 120, 50, 0.08);
  display: flex;
  flex-direction: column;
}

.log-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.log-tab {
  font-size: 0.75rem;
  padding: 3px 10px;
  border: 1px solid #555;
  border-radius: 4px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
}

.log-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.log-content {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.log-entry {
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding: 3px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  word-break: break-all;
  line-height: 1.4;
}

.log-entry.important {
  color: var(--accent);
}

.log-entry.debug {
  color: #7f8c8d;
  font-size: 0.7rem;
  font-family: monospace;
}

/* リザルト画面 */
.result-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.result-panel {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 32px;
  max-width: 500px;
  width: 90%;
  text-align: center;
}

.result-panel h2 {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 24px;
}

.result-ranking {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.result-rank {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-card);
  border-radius: 8px;
}

.result-rank.winner {
  border: 2px solid gold;
  background: rgba(255, 215, 0, 0.1);
}

.rank-number {
  font-size: 1.5rem;
  font-weight: bold;
  width: 40px;
}

.rank-number.gold { color: gold; }
.rank-number.silver { color: silver; }
.rank-number.bronze { color: #cd7f32; }

.rank-name {
  flex: 1;
  text-align: left;
  font-weight: bold;
}

.rank-score {
  font-size: 1.3rem;
  color: var(--accent);
  font-weight: bold;
}

/* キャラクター選択カード */
.char-option {
  background: var(--bg-card);
  border: 2px solid #555;
  border-radius: var(--border-radius);
  padding: 12px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
  min-width: 200px;
  max-width: 240px;
  text-align: center;
  overflow: hidden;
}

.char-option:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.char-portrait {
  width: 120px;
  height: 168px;
  margin: 0 auto 8px;
  border-radius: 6px;
  background-size: cover;
  background-position: center top;
  border: 2px solid rgba(255,255,255,0.15);
}

.char-name {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 4px;
  color: var(--accent);
}

.char-skill {
  font-size: 0.85rem;
  font-weight: bold;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.char-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* キャラクター情報（プレイヤーカード内） */
.player-char {
  font-size: 0.75rem;
  color: var(--meat-rare-beef);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.player-char-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(255,255,255,0.3);
  flex-shrink: 0;
  image-rendering: auto;
}

/* 手札選択状態 */
.hand-card.selected {
  border-color: #27ae60;
  box-shadow: 0 0 10px rgba(39, 174, 96, 0.5);
  transform: translateY(-6px);
}

.hand-card.unplayable {
  opacity: 0.45;
  filter: grayscale(0.5);
}

/* 小皿セレクター（黄金のタレ、特別注文用） */
.plate-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  margin-top: 4px;
}

.plate-selector p {
  width: 100%;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.plate-selector select {
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid #555;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.85rem;
}

/* 称号バッジ（リザルト画面） */
.rank-titles {
  margin-top: 4px;
}

.title-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: bold;
  margin-right: 4px;
}

.title-badge.positive {
  background: rgba(39, 174, 96, 0.2);
  color: #27ae60;
  border: 1px solid #27ae60;
}

.title-badge.negative {
  background: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
  border: 1px solid #e74c3c;
}

/* タイマー表示 */
.timer-display {
  font-size: 1.1rem;
  font-weight: bold;
  min-width: 40px;
  text-align: center;
}

/* デッキ情報 */
.deck-info {
  display: flex;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.size-control {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 小皿の焦げ肉のみ暗い背景 */
.plate-meat-mini.cook-5 { background: var(--cook-burnt) !important; }

.plate-meat-mini.beef { background: var(--meat-beef); }
.plate-meat-mini.pork { background: var(--meat-pork); }
.plate-meat-mini.chicken { background: var(--meat-chicken); color: white; }
.plate-meat-mini.offal { background: var(--meat-offal); }
.plate-meat-mini.rare_beef { background: var(--meat-rare-beef); }

/* ハプニングカットイン */
.happening-cutin {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1100;
  pointer-events: all;
  cursor: pointer;
}

.happening-cutin.hidden {
  display: none;
}

.happening-cutin-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  animation: cutin-bg-in 0.3s ease-out;
}

.happening-cutin-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 4px;
}

.happening-cutin-label {
  font-size: 0.9rem;
  letter-spacing: 6px;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: bold;
  animation: cutin-text-in 0.3s ease-out;
}

.happening-cutin-image {
  width: 240px;
  height: 336px;
  flex-shrink: 0;
  border-radius: 12px;
  border: 3px solid var(--accent);
  box-shadow: 0 0 40px rgba(233, 69, 96, 0.5), 0 0 80px rgba(233, 69, 96, 0.2);
  animation: cutin-card-in 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.happening-cutin-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.happening-cutin-name {
  font-size: 1.8rem;
  font-weight: bold;
  color: white;
  margin-top: 12px;
  text-shadow: 0 0 20px rgba(233, 69, 96, 0.8);
  animation: cutin-text-in 0.6s ease-out;
}

.happening-cutin-desc {
  font-size: 0.95rem;
  color: #ccc;
  margin-top: 4px;
  max-width: 400px;
  text-align: center;
  line-height: 1.5;
  animation: cutin-text-in 0.7s ease-out;
}

@keyframes cutin-bg-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes cutin-card-in {
  0% { transform: scale(1.5) translateY(-30px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

@keyframes cutin-text-in {
  0% { transform: translateY(20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.happening-cutin.fade-out {
  animation: cutin-out 0.5s ease-in forwards;
}

@keyframes cutin-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@media (max-width: 768px) {
  .happening-cutin-image {
    width: 180px;
    height: 252px;
  }
  .happening-cutin-name {
    font-size: 1.4rem;
  }
  .happening-cutin-desc {
    font-size: 0.85rem;
    max-width: 300px;
  }
}

/* ========================================
   肉泥棒カットイン
   ======================================== */
.thief-cutin-chars {
  display: flex;
  align-items: center;
  gap: 16px;
  animation: cutin-text-in 0.4s ease-out;
}
.thief-char {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent);
  box-shadow: 0 0 20px rgba(233, 69, 96, 0.4);
}
.thief-char img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thief-char .char-name {
  font-size: 0.7rem;
  text-align: center;
  color: #ccc;
  margin-top: 4px;
}
.thief-arrow {
  font-size: 2.5rem;
  color: var(--accent);
  font-weight: bold;
  text-shadow: 0 0 15px rgba(233, 69, 96, 0.6);
  animation: cutin-text-in 0.5s ease-out;
}

/* 焦げ肉回収カットイン */
.burnt-cutin-meats {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
  animation: cutin-text-in 0.6s ease-out;
}
.burnt-cutin-meats .burnt-meat-item {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  border: 2px solid #666;
  overflow: hidden;
  background: #333;
}
.burnt-cutin-meats .burnt-meat-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ドリンクこぼしカットイン */
.drink-spill-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  animation: cutin-text-in 0.5s ease-out;
}
.drink-spill-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 8px 16px;
}
.drink-spill-item .spill-char {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #e74c3c;
}
.drink-spill-item .spill-char img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.drink-spill-item .spill-card {
  width: 48px;
  height: 67px;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid #e74c3c;
}
.drink-spill-item .spill-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.drink-spill-item .spill-text {
  color: #ccc;
  font-size: 0.85rem;
}

/* ========================================
   称号セレモニー
   ======================================== */
.title-ceremony {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1200;
  pointer-events: all;
  cursor: pointer;
}

.title-ceremony.hidden {
  display: none;
}

.title-ceremony-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  animation: cutin-bg-in 0.4s ease-out;
}

.title-ceremony-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 20px;
}

.title-ceremony-header {
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: 8px;
  color: #ffd700;
  text-shadow:
    0 0 20px rgba(255, 215, 0, 0.6),
    0 0 40px rgba(255, 215, 0, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.8);
  animation: title-header-in 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.title-ceremony-header.hidden {
  display: none;
}

@keyframes title-header-in {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.title-ceremony-card {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px 48px;
  border-radius: 16px;
  background: rgba(22, 33, 62, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.6);
  min-width: 300px;
  max-width: 420px;
  animation: title-card-in 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.title-ceremony-card.visible {
  display: flex;
}

.title-ceremony-card.positive {
  border-color: rgba(39, 174, 96, 0.5);
  box-shadow: 0 0 40px rgba(39, 174, 96, 0.25), 0 8px 48px rgba(0, 0, 0, 0.6);
}

.title-ceremony-card.negative {
  border-color: rgba(231, 76, 60, 0.5);
  box-shadow: 0 0 40px rgba(231, 76, 60, 0.25), 0 8px 48px rgba(0, 0, 0, 0.6);
}

@keyframes title-card-in {
  0% { transform: scale(1.4) translateY(-20px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.title-card-effect {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 2px;
}

.title-card-effect.positive {
  color: #27ae60;
  text-shadow: 0 0 16px rgba(39, 174, 96, 0.5);
}

.title-card-effect.negative {
  color: #e74c3c;
  text-shadow: 0 0 16px rgba(231, 76, 60, 0.5);
}

.title-card-name {
  font-size: 1.8rem;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.title-card-condition {
  font-size: 0.95rem;
  color: #aaa;
  text-align: center;
  line-height: 1.4;
}

.title-card-players {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}

.title-player-entry {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.title-player-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.title-player-name {
  font-size: 1.1rem;
  font-weight: bold;
  color: #fff;
}

.title-ceremony-skip {
  position: absolute;
  bottom: 32px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 2px;
  animation: title-skip-pulse 2s ease-in-out infinite;
}

@keyframes title-skip-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

.title-ceremony-card.fade-out {
  animation: title-card-out 0.3s ease-in forwards;
}

@keyframes title-card-out {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.9); }
}

@media (max-width: 768px) {
  .title-ceremony-header {
    font-size: 1.8rem;
    letter-spacing: 4px;
  }
  .title-ceremony-card {
    padding: 24px 28px;
    min-width: 240px;
    max-width: 320px;
  }
  .title-card-name {
    font-size: 1.4rem;
  }
  .title-card-effect {
    font-size: 1.6rem;
  }
}

/* デンモク移動通知 */
.denmoku-notification {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: linear-gradient(135deg, #2c3e50, #34495e);
  border: 2px solid #f39c12;
  border-radius: 12px;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #f39c12;
  z-index: 900;
  opacity: 0;
  transition: opacity 0.4s, transform 0.4s;
  box-shadow: 0 4px 20px rgba(243, 156, 18, 0.3);
  pointer-events: none;
}

.denmoku-notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.denmoku-notification.hide {
  opacity: 0;
  transform: translateX(-50%) translateY(-20px);
}

.denmoku-icon {
  font-size: 1.6rem;
  animation: denmoku-pulse 0.6s ease-in-out 3;
}

@keyframes denmoku-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

/* レスポンシブ */
@media (max-width: 768px) {
  .game-container {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
    grid-template-areas:
      "header"
      "players"
      "grill"
      "platter"
      "happening"
      "log"
      "actions"
      "hand" !important;
    height: auto !important;
    min-height: 100vh;
    max-width: 100% !important;
  }

  .grill-section {
    min-width: 0;
  }

  .grill-grid {
    max-width: 350px;
    margin: 0 auto;
  }

  .player-panel {
    flex-direction: row !important;
    overflow-x: auto;
  }

  .player-card {
    min-width: 140px;
  }

  .platter-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px;
  }

  .platter-card {
    width: 100% !important;
  }
}

/* ========================================
   ガイドトースト
   ======================================== */
.guide-toast {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: bold;
  pointer-events: none;
  animation: guide-in 0.3s ease-out;
  max-width: 80vw;
  text-align: center;
  white-space: nowrap;
}

.guide-toast.hidden {
  display: none;
}

.guide-toast.error {
  background: rgba(231, 76, 60, 0.95);
  color: white;
  border: 1px solid #c0392b;
}

.guide-toast.info {
  background: rgba(52, 152, 219, 0.95);
  color: white;
  border: 1px solid #2980b9;
}

.guide-toast.success {
  background: rgba(39, 174, 96, 0.95);
  color: white;
  border: 1px solid #27ae60;
}

.guide-toast.fade-out {
  animation: guide-out 0.3s ease-in forwards;
}

@keyframes guide-in {
  from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes guide-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* ========================================
   スキル説明
   ======================================== */
.player-skill-desc {
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
  line-height: 1.3;
  padding-left: 4px;
  border-left: 2px solid var(--meat-rare-beef);
}

/* ========================================
   選択済みターゲット
   ======================================== */
.grid-cell.selected-target {
  border-color: #f39c12;
  border-style: solid;
  border-width: 3px;
  background: rgba(243, 156, 18, 0.2);
  animation: target-pulse 1.2s ease-in-out infinite;
}

@keyframes target-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(243, 156, 18, 0.5); }
  50% { box-shadow: 0 0 16px rgba(243, 156, 18, 0.8), 0 0 28px rgba(243, 156, 18, 0.4); }
}

/* ========================================
   デバッグパネル（テストモード専用）
   ======================================== */
.debug-panel {
  position: fixed;
  bottom: 10px;
  right: 10px;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  border: 2px solid #f1c40f;
  border-radius: 8px;
  color: #f1c40f;
  font-size: 0.75rem;
  min-width: 320px;
  max-width: 400px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}
.debug-panel.hidden { display: none; }
.debug-panel.collapsed .debug-body { display: none; }
.debug-header {
  padding: 6px 12px;
  font-weight: bold;
  font-size: 0.8rem;
  cursor: pointer;
  border-bottom: 1px solid #f1c40f44;
  user-select: none;
  text-align: center;
  letter-spacing: 2px;
}
.debug-body {
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.debug-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.debug-row label {
  min-width: 80px;
  font-size: 0.7rem;
  color: #f1c40fcc;
}
.debug-row select {
  background: #1a1a1a;
  color: #f1c40f;
  border: 1px solid #f1c40f66;
  border-radius: 4px;
  padding: 2px 4px;
  font-size: 0.7rem;
  flex: 1;
  min-width: 0;
}
.debug-row button {
  background: #f1c40f;
  color: #000;
  border: none;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 0.7rem;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
}
.debug-row button:hover {
  background: #f39c12;
}

/* ========================================
   ルールモーダル
   ======================================== */
.rules-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rules-modal.hidden { display: none; }
.rules-modal-backdrop {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
}
.rules-modal-content {
  position: relative;
  width: 90vw;
  max-width: 700px;
  height: 85vh;
  background: var(--bg-primary);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.rules-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.rules-modal-header h2 {
  margin: 0;
  font-size: 1.1rem;
}
.rules-modal-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.rules-modal-close:hover { color: var(--accent); }
.rules-modal-body {
  flex: 1;
  overflow: hidden;
}

/* ========================================
   レイアウトエディターモーダル
   ======================================== */
.layout-editor-modal {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
}
.layout-editor-modal.hidden { display: none !important; }

.le-backdrop {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
}

.le-content {
  position: relative;
  background: var(--bg-primary, #140e0a);
  border: 1px solid rgba(200, 120, 50, 0.3);
  border-radius: 12px;
  width: 90vw;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}

.le-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.le-header h2 { margin: 0; font-size: 1.1rem; }
.le-close {
  background: none; border: none; color: #aaa; font-size: 1.5rem; cursor: pointer;
}
.le-close:hover { color: #fff; }

.le-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.le-presets {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.le-preset-btn {
  padding: 6px 16px;
  border: 1px solid #555;
  border-radius: 4px;
  background: transparent;
  color: var(--text-secondary, #aaa);
  cursor: pointer;
  font-size: 0.85rem;
}
.le-preset-btn:hover { border-color: var(--accent, #e94560); color: #fff; }

.le-grid-settings {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
}
.le-grid-settings label { font-size: 0.85rem; color: var(--text-secondary, #aaa); }
.le-grid-settings select {
  background: #1a1a1a; color: #eee; border: 1px solid #555; border-radius: 4px; padding: 2px 6px;
}

.le-col-widths, .le-row-heights {
  display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
  font-size: 0.8rem; color: var(--text-secondary, #aaa);
}
.le-size-input {
  width: 70px;
  background: #1a1a1a; color: #eee; border: 1px solid #555; border-radius: 4px;
  padding: 2px 6px; font-size: 0.8rem;
}

.le-grid-editor { overflow-x: auto; }
.le-grid-table {
  width: 100%;
  border-collapse: collapse;
}
.le-cell {
  padding: 2px;
}
.le-cell select {
  width: 100%;
  background: #222; color: #eee; border: 1px solid #444; border-radius: 3px;
  padding: 4px 2px; font-size: 0.75rem; cursor: pointer;
}

/* セル色分け */
.le-cell-header select   { background: #2c1a0e; border-color: #8b4513; }
.le-cell-players select  { background: #1a2040; border-color: #3498db; }
.le-cell-grill select    { background: #3a1a0a; border-color: #e94560; }
.le-cell-platter select  { background: #2a2010; border-color: #f39c12; }
.le-cell-happening select{ background: #2a102a; border-color: #9b59b6; }
.le-cell-log select      { background: #1a2a1a; border-color: #27ae60; }
.le-cell-actions select  { background: #1a1a2a; border-color: #2980b9; }
.le-cell-hand select     { background: #2a2a1a; border-color: #f1c40f; }
.le-cell-empty select    { background: #111; border-color: #333; }

.le-hidden-section {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  font-size: 0.85rem; color: var(--text-secondary, #aaa);
}
.le-hidden-label {
  display: flex; align-items: center; gap: 3px; cursor: pointer;
}

.le-size-section {
  font-size: 0.85rem; color: var(--text-secondary, #aaa);
}
.le-size-section label { display: flex; align-items: center; gap: 8px; }
.le-size-section input[type="range"] { width: 120px; }

.le-error {
  color: #e74c3c; font-size: 0.85rem; padding: 6px 10px;
  background: rgba(231,76,60,0.1); border-radius: 4px;
}
.le-error.hidden { display: none; }

.le-save-section { display: flex; flex-direction: column; gap: 8px; }
.le-save-row, .le-load-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.le-name-input {
  flex: 1; min-width: 120px;
  background: #1a1a1a; color: #eee; border: 1px solid #555; border-radius: 4px;
  padding: 4px 8px; font-size: 0.85rem;
}
.le-saved-select {
  flex: 1; min-width: 120px;
  background: #1a1a1a; color: #eee; border: 1px solid #555; border-radius: 4px;
  padding: 4px 8px; font-size: 0.85rem;
}

.le-btn {
  padding: 4px 12px; border: 1px solid #555; border-radius: 4px;
  background: transparent; color: var(--text-secondary, #aaa); cursor: pointer;
  font-size: 0.8rem; white-space: nowrap;
}
.le-btn:hover { border-color: #888; color: #fff; }
.le-btn-primary {
  background: var(--accent, #e94560); border-color: var(--accent, #e94560); color: white;
  font-size: 0.9rem; padding: 8px 24px;
}
.le-btn-primary:hover { opacity: 0.9; }
.le-btn-danger { border-color: #e74c3c; color: #e74c3c; }
.le-btn-danger:hover { background: #e74c3c; color: white; }

.le-io-section { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; }
.le-io-area { width: 100%; }
.le-io-area.hidden { display: none; }
.le-code-textarea {
  width: 100%; min-height: 60px; margin-bottom: 6px;
  background: #111; color: #0f0; border: 1px solid #555; border-radius: 4px;
  padding: 8px; font-family: monospace; font-size: 0.75rem;
  resize: vertical;
}

.le-apply-section { display: flex; justify-content: flex-end; }
