/* ======================
   ルーレットプレイ — メインスタイル
====================== */

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #06bcaf;
  --primary-dark: #059e93;
  --accent: #667eea;
  --accent-dark: #764ba2;
  --bg: #f8f9fa;
  --card-bg: #ffffff;
  --text: #333333;
  --text-light: #888888;
  --border: #e0e0e0;
  --danger: #e74c3c;
  --success: #27ae60;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Header ─── */
.header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary);
  user-select: none;
}

.nav-drawer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  margin-right: 16px;
}

.nav { display: flex; align-items: center; gap: 8px; }

.nav-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 7px 14px;
  color: var(--text-light);
  font-size: 0.85rem;
  font-weight: 400;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s;
}

.nav-btn:hover { background: var(--bg); color: var(--text); }
.nav-btn.active { background: rgba(6, 188, 175, 0.08); border-color: rgba(6, 188, 175, 0.2); color: var(--primary); }
.nav-btn .material-icons { font-size: 18px; }

.user-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s;
  object-fit: cover;
}

.user-avatar:hover { border-color: var(--primary); }

.login-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.2s;
}

.login-btn:hover { opacity: 0.9; }

.user-menu-wrap { position: relative; }

.user-menu {
  position: absolute;
  top: 44px;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  min-width: 180px;
  padding: 6px 0;
  z-index: 200;
}

.user-menu button {
  width: 100%;
  background: none;
  border: none;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.user-menu button:hover { background: var(--bg); }
.user-menu button .material-icons { font-size: 20px; color: var(--text-light); }

.hamburger {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  z-index: 101;
  flex-shrink: 0;
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger.open .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 99;
}

.nav-overlay.open { display: block; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); text-decoration: none; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-secondary {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-secondary:hover { background: rgba(6, 188, 175, 0.05); text-decoration: none; }

.btn-ghost {
  background: none;
  color: var(--text-light);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg); color: var(--text); }

.btn-danger { color: var(--danger); }
.btn-danger:hover { background: rgba(231, 76, 60, 0.08); }

.btn-sm { padding: 6px 12px; font-size: 0.8rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }

/* ─── Main ─── */
.main {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 16px;
  flex: 1;
}

/* ─── Hero ─── */
/* ─── Home Hero ─── */
.home-hero {
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 0 32px;
}

.home-icon {
  font-size: 72px;
  margin-bottom: 16px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.home-title {
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 12px;
}

.home-title span {
  background: linear-gradient(135deg, #06bcaf, #667eea, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home-sub {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 36px;
  max-width: 400px;
}

.home-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ─── How Section ─── */
.how-section {
  padding: 40px 0;
  max-width: 600px;
  margin: 0 auto;
}

.how-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 28px;
}

.how-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.how-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.how-step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.how-step-body h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.how-step-body p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ─── Gallery ─── */
.gallery-section { margin-bottom: 40px; }

.gallery-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
}

.gallery-title .material-icons { font-size: 24px; color: var(--primary); }

.gallery-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  align-items: center;
}

.category-filters {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 6px 12px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 20px;
  font-size: 0.8rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.sort-controls {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.sort-btn {
  padding: 6px 12px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 6px;
  font-size: 0.8rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.sort-btn.active { background: var(--text); color: #fff; border-color: var(--text); }

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  min-width: 200px;
}

.search-box input {
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 0.85rem;
  width: 100%;
}

.search-box .material-icons { color: var(--text-light); font-size: 20px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* ─── Roulette Card ─── */
.roulette-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
}

.roulette-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-thumbnail {
  aspect-ratio: 1;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-placeholder {
  color: var(--text-light);
  font-size: 48px;
}

.card-placeholder .material-icons { font-size: 64px; color: #ddd; }

.card-body { padding: 12px 16px; }

.card-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-author {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.card-stats {
  display: flex;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--text-light);
}

.card-stats span {
  display: flex;
  align-items: center;
  gap: 2px;
}

.card-stats .material-icons { font-size: 14px; }

.card-category {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.7rem;
  padding: 2px 8px;
  background: var(--bg);
  border-radius: 10px;
  color: var(--text-light);
}

/* ─── Play Page ─── */

/* ヒーローセクション（背景画像 = YouTube動画部分） */
.play-hero {
  /* .main を突破してビューポート全幅に */
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
  padding: 24px 16px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

@media (orientation: landscape) and (max-height: 700px) {
  .play-hero[style*="background-image"] {
    background-position: center top !important;
  }
}

.play-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 600px;
  width: 100%;
}

.play-hero-inner .result-display {
  margin-top: -8px;
}

/* 概要セクション（YouTube概要欄部分） */
.play-info {
  max-width: 600px;
  margin: 0 auto;
  padding: 16px 0 20px;
}

.play-info-header {
  padding: 0 0 12px;
}

.play-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-align: left;
}

.play-author {
  color: var(--text-light);
  font-size: 0.9rem;
}

.play-author a { color: var(--primary); }

.play-description {
  color: var(--text);
  font-size: 0.9rem;
  margin-top: 12px;
  line-height: 1.7;
  text-align: left;
  white-space: pre-wrap;
}

/* ─── Play Actions ─── */
.play-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}

.play-stats {
  display: flex;
  gap: 16px;
  align-items: center;
}

.stat {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-light);
  font-size: 0.9rem;
}

.stat .material-icons { font-size: 18px; }

.like-btn {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 0.9rem;
  transition: all 0.2s;
  padding: 4px 8px;
  border-radius: 8px;
}

.like-btn:hover { background: rgba(231, 76, 60, 0.08); color: var(--danger); }
.like-btn .material-icons { color: var(--danger); }

.share-buttons {
  display: flex;
  gap: 8px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.meta-item .material-icons { font-size: 16px; }

/* ─── YouTube風 概要欄 ─── */
.play-description-panel {
  background: var(--card-bg);
  border-radius: var(--radius);
  margin: 0 0 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.description-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
  transition: background 0.2s;
}

.description-header:hover {
  background: rgba(0,0,0,0.03);
}

.description-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-light);
}

.expand-icon {
  color: var(--text-light);
  transition: transform 0.2s;
}

.description-body {
  padding: 0 16px 16px;
  border-top: 1px solid var(--border);
}

.play-cta {
  margin-top: 16px;
  text-align: center;
}

/* ─── Upload ─── */
.upload-container {
  max-width: 600px;
  margin: 0 auto;
}

.upload-container h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.upload-desc {
  color: var(--text-light);
  margin-bottom: 24px;
}

.upload-dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
  transition: all 0.2s;
  background: #fff;
}

.upload-dropzone.dragover {
  border-color: var(--primary);
  background: rgba(6, 188, 175, 0.04);
}

.upload-dropzone p { color: var(--text-light); margin: 8px 0; }
.upload-or { font-size: 0.85rem; }

.upload-form { margin-top: 24px; }

.upload-preview {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
  padding: 24px 0;
}

.upload-canvas {
  width: 300px !important;
  height: 300px !important;
  max-width: 70vw !important;
  max-height: 70vw !important;
}

.upload-preview .pointer { font-size: 28px; top: 8px; }
.upload-preview .center-point { width: 16px; height: 16px; }

/* ─── Forms ─── */
.form-group {
  margin-bottom: 16px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}

.required { color: var(--danger); }

.form-group input[type="text"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
  align-items: center;
}

.form-actions .btn { width: 100%; justify-content: center; }

.segments-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.segment-chip {
  display: inline-block;
  padding: 4px 10px;
  background: var(--bg);
  border-radius: 6px;
  font-size: 0.8rem;
}

.error-message {
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: 8px;
}

/* ─── Dashboard ─── */
.dashboard-container {
  max-width: 800px;
  margin: 0 auto;
}

.dashboard-container h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.dashboard-login-prompt {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  padding: 40px 20px;
}

.dashboard-login-prompt p {
  color: var(--text-light);
  margin: 12px 0 16px;
}

.profile-section {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 24px;
}

.profile-section label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
  display: block;
}

.profile-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.profile-row .form-input { flex: 1; }

.profile-hint {
  color: var(--text-light);
  font-size: 0.7rem;
  margin-top: 6px;
}

.dash-list-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-light);
}

.dash-roulette {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 8px;
  box-shadow: var(--shadow);
  transition: all 0.2s;
}

.dash-roulette:hover { box-shadow: var(--shadow-lg); }

.dash-roulette-thumb {
  width: 80px;
  height: 56px;
  border-radius: 8px;
  flex-shrink: 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dash-roulette-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dash-roulette-thumb span {
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1.3;
  padding: 4px 6px;
  text-align: center;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dash-roulette-info {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.dash-roulette-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-roulette-meta {
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 4px;
  align-items: center;
  flex-wrap: wrap;
}

.dash-roulette-meta span {
  display: flex;
  align-items: center;
  gap: 2px;
}

.dash-roulette-meta .material-icons { font-size: 14px; }

.status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 500;
}

.status-published { background: #e8f5e9; color: var(--success); }
.status-unlisted { background: #fff3e0; color: #f57c00; }
.status-draft { background: #f5f5f5; color: var(--text-light); }

.dash-roulette-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.dash-roulette-actions .btn-icon { display: none; }
.dash-roulette-actions .btn-label { display: inline-flex; align-items: center; gap: 4px; }
.dash-roulette-actions .btn-label .material-icons { font-size: 16px; }

/* ─── Edit ─── */
.edit-container {
  max-width: 600px;
  margin: 0 auto;
}

.edit-container h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.edit-preview {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
  padding: 24px 0;
}

.edit-canvas {
  width: 250px !important;
  height: 250px !important;
  max-width: 65vw !important;
  max-height: 65vw !important;
}

.edit-preview .pointer { font-size: 24px; top: 5px; }
.edit-preview .center-point { width: 14px; height: 14px; }

.edit-replace-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  transition: all 0.2s;
  background: #fff;
  margin-top: 12px;
}

.edit-replace-zone.dragover {
  border-color: var(--primary);
  background: rgba(6, 188, 175, 0.04);
}

.edit-replace-zone p {
  color: var(--text-light);
  margin: 4px 0 8px;
  font-size: 0.85rem;
}

.edit-replace-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(6, 188, 175, 0.08);
  border-radius: var(--radius);
}

.edit-replace-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #059b8f;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ─── User Profile ─── */
.user-profile-container {
  max-width: 1000px;
  margin: 0 auto;
}

.user-profile-container h2 { margin-bottom: 24px; }

/* ─── Empty / Loading / Error States ─── */
.empty-state {
  text-align: center;
  padding: 48px 16px;
  color: var(--text-light);
}

.loading {
  text-align: center;
  padding: 48px 16px;
  color: var(--text-light);
}

.error-state {
  text-align: center;
  padding: 48px 16px;
  color: var(--danger);
}

/* ─── Modal ─── */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.modal-content {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  max-width: 400px;
  width: 90%;
  text-align: center;
}

.modal-content h3 { margin-bottom: 8px; }
.modal-content p { color: var(--text-light); margin-bottom: 16px; font-size: 0.9rem; }

.modal-content input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 12px;
  text-align: center;
}

.modal-content input:focus { outline: none; border-color: var(--primary); }

/* ─── Toast ─── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.9rem;
  z-index: 300;
  box-shadow: var(--shadow-lg);
  transition: opacity 0.3s;
}

.toast.hidden { opacity: 0; pointer-events: none; }

/* ─── Footer ─── */
.footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 24px 16px;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 12px;
}

.footer-links a { color: var(--text-light); font-size: 0.85rem; }
.footer-links a:hover { color: var(--primary); }

.footer-copy {
  color: var(--text-light);
  font-size: 0.75rem;
}

/* ─── Utilities ─── */
.hidden { display: none !important; }
