/* ================================================================
   MARQUEE — Design System
   Aesthetic: warm cream bg, thick black borders, offset drop shadows,
   bold chunky type. Inspired by indie daily puzzle games (Inkwell, etc.)
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,900;1,9..144,900&family=DM+Sans:wght@400;600;700&display=swap');

/* ── Tokens ── */
:root {
  --bg:          #faf4ef;
  --surface:     #ffffff;
  --text:        #1a1205;
  --text2:       #6b5c4e;
  --muted:       #a0907e;
  --border:      #111111;
  --bw:          2.5px;            /* border width */
  --shadow:      4px 4px 0 var(--border);
  --shadow-sm:   3px 3px 0 var(--border);
  --shadow-xs:   2px 2px 0 var(--border);
  --radius:      10px;
  --radius-lg:   16px;
  --radius-xl:   20px;

  /* Difficulty palette */
  --yellow:      #f9df6d;
  --yellow-text: #7a5c00;
  --green:       #6abf69;
  --green-text:  #1a4d19;
  --blue:        #6ab0d4;
  --blue-text:   #0f3d5a;
  --purple:      #b07ecf;
  --purple-text: #3d1460;

  --max-w:       580px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ── Typography ── */
.font-display {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 900;
  font-style: italic;
}

/* ── Layout ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
}
.container--wide {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Header ── */
.site-header {
  border-bottom: var(--bw) solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 900;
  font-style: italic;
  font-size: 28px;
  letter-spacing: -0.5px;
  color: var(--text);
  line-height: 1;
}
.site-logo span {
  color: var(--muted);
  font-size: 11px;
  font-family: 'DM Sans', sans-serif;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: block;
  line-height: 1;
  margin-top: 1px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.2px;
  padding: 9px 18px;
  border-radius: var(--radius);
  border: var(--bw) solid var(--border);
  box-shadow: var(--shadow-sm);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.08s, box-shadow 0.08s;
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
}
.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--border);
}
.btn:active {
  transform: translate(3px, 3px);
  box-shadow: none;
}
.btn:disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

.btn--primary {
  background: var(--text);
  color: var(--bg);
}
.btn--primary:hover { background: #2a1e10; }

.btn--sm {
  font-size: 12px;
  padding: 6px 12px;
  border-width: 2px;
  box-shadow: var(--shadow-xs);
}
.btn--sm:hover { box-shadow: 3px 3px 0 var(--border); }
.btn--sm:active { transform: translate(2px, 2px); box-shadow: none; }

.btn--ghost {
  border-color: var(--border);
  box-shadow: none;
  background: transparent;
}
.btn--ghost:hover { background: var(--bg); box-shadow: var(--shadow-xs); }

/* ── Card ── */
.card {
  background: var(--surface);
  border: var(--bw) solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* ── Game Page Layout ── */
.game-wrap {
  padding: 24px 0 60px;
}
.game-meta {
  text-align: center;
  margin-bottom: 6px;
}
.game-meta__date {
  font-size: 13px;
  color: var(--text2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.game-meta__num {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.game-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 900;
  font-style: italic;
  font-size: 40px;
  text-align: center;
  line-height: 1;
  margin-bottom: 4px;
}
.game-instructions {
  text-align: center;
  font-size: 14px;
  color: var(--text2);
  margin-bottom: 20px;
}

/* ── Solved Category Banners ── */
.solved-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}
.solved-banner {
  border: var(--bw) solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  text-align: center;
  animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.solved-banner__title {
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.solved-banner__movies {
  font-size: 12px;
  margin-top: 2px;
  opacity: 0.8;
}
.solved-banner--yellow { background: var(--yellow); color: var(--yellow-text); }
.solved-banner--green  { background: var(--green);  color: var(--green-text); }
.solved-banner--blue   { background: var(--blue);   color: var(--blue-text); }
.solved-banner--purple { background: var(--purple); color: var(--purple-text); }

/* ── Tile Grid ── */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

/* ── Tiles ── */
.tile {
  background: var(--surface);
  border: var(--bw) solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 10px 6px;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.3;
  cursor: pointer;
  user-select: none;
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.1s;
  word-break: break-word;
  hyphens: auto;
}
.tile:hover:not(.tile--solved):not(.tile--wrong) {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--border);
}
.tile--selected {
  background: var(--text);
  color: var(--bg);
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-xs);
}
.tile--selected:hover {
  transform: translate(1px, 1px);
  box-shadow: var(--shadow-xs);
}
.tile--popping {
  animation: tilePop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.tile--wrong {
  animation: tileShake 0.45s ease;
  border-color: #cc2200;
  box-shadow: 3px 3px 0 #cc2200;
}
.tile--solved {
  cursor: default;
  box-shadow: none;
  transform: translate(3px, 3px);
  border-color: transparent;
  pointer-events: none;
}
.tile--yellow { background: var(--yellow); color: var(--yellow-text); }
.tile--green  { background: var(--green);  color: var(--green-text); }
.tile--blue   { background: var(--blue);   color: var(--blue-text); }
.tile--purple { background: var(--purple); color: var(--purple-text); }

/* ── Lives ── */
.lives-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text2);
  font-weight: 600;
}
.lives-dots {
  display: flex;
  gap: 6px;
}
.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text);
  border: 2px solid var(--border);
  transition: background 0.2s, transform 0.2s;
}
.dot--lost {
  background: var(--bg);
  transform: scale(0.85);
}

/* ── Action Row ── */
.action-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}
.action-row .btn {
  min-width: 120px;
}

/* ── Result / Game Over overlay ── */
.result-overlay {
  position: fixed;
  inset: 0;
  background: rgba(250, 244, 239, 0.9);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}
.result-card {
  background: var(--surface);
  border: var(--bw) solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: 6px 6px 0 var(--border);
  padding: 32px 28px;
  max-width: 420px;
  width: 100%;
  text-align: center;
}
.result-card__headline {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 900;
  font-style: italic;
  font-size: 36px;
  margin-bottom: 6px;
}
.result-card__sub {
  font-size: 14px;
  color: var(--text2);
  margin-bottom: 20px;
}
.result-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.result-row {
  display: flex;
  gap: 6px;
  justify-content: center;
}
.result-square {
  width: 30px;
  height: 30px;
  border-radius: 5px;
  border: 2px solid var(--border);
}
.result-square--yellow { background: var(--yellow); }
.result-square--green  { background: var(--green); }
.result-square--blue   { background: var(--blue); }
.result-square--purple { background: var(--purple); }

.result-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
  padding: 12px 0;
  border-top: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
}
.result-stat__val {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 900;
  font-size: 32px;
  line-height: 1;
}
.result-stat__lbl {
  font-size: 11px;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-top: 2px;
  font-weight: 600;
}
.result-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── Share toast ── */
.share-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--bg);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  z-index: 300;
  animation: toastIn 0.2s ease, toastOut 0.3s ease 1.7s forwards;
  pointer-events: none;
}

/* ── Archive Page ── */
.archive-header {
  padding: 32px 0 8px;
  text-align: center;
}
.archive-header h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 900;
  font-style: italic;
  font-size: 36px;
}
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  padding: 20px 0 60px;
}
.archive-card {
  background: var(--surface);
  border: var(--bw) solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 14px 12px;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.08s, box-shadow 0.08s;
  display: block;
}
.archive-card:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--border);
}
.archive-card--today {
  background: var(--text);
  color: var(--bg);
}
.archive-card__num {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 900;
  font-style: italic;
  font-size: 22px;
  line-height: 1;
}
.archive-card__date {
  font-size: 11px;
  color: var(--text2);
  margin-top: 3px;
  font-weight: 600;
}
.archive-card--today .archive-card__date { color: rgba(250,244,239,0.7); }
.archive-card__emoji {
  font-size: 11px;
  margin-top: 4px;
  letter-spacing: 1px;
}

/* ── Create Page ── */
.create-wrap {
  padding: 32px 0 60px;
}
.create-header {
  text-align: center;
  margin-bottom: 24px;
}
.create-header h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 900;
  font-style: italic;
  font-size: 36px;
  margin-bottom: 8px;
}
.create-header p {
  font-size: 14px;
  color: var(--text2);
  max-width: 380px;
  margin: 0 auto;
  line-height: 1.5;
}
.create-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}
.create-tile {
  background: var(--surface);
  border: var(--bw) solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 10px 6px;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.3;
  cursor: pointer;
  user-select: none;
  transition: transform 0.08s, box-shadow 0.08s, background 0.1s;
}
.create-tile:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--border);
}
.create-tile--selected {
  background: var(--purple);
  color: var(--purple-text);
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-xs);
}

.create-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.create-form label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text2);
  margin-bottom: 4px;
  display: block;
}
.create-form input[type="text"] {
  width: 100%;
  padding: 10px 14px;
  border: var(--bw) solid var(--border);
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-xs);
  outline: none;
  transition: box-shadow 0.1s;
}
.create-form input[type="text"]:focus {
  box-shadow: 4px 4px 0 var(--border);
}
.create-submit-row {
  display: flex;
  justify-content: center;
}
.create-result {
  background: var(--purple);
  color: var(--purple-text);
  border: var(--bw) solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 20px;
  text-align: center;
  animation: popIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin-top: 16px;
}
.create-result__label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.7;
  margin-bottom: 4px;
}
.create-result__title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 900;
  font-style: italic;
  font-size: 22px;
  margin-bottom: 10px;
}
.create-result__movies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 16px;
}
.create-result__movie {
  background: rgba(0,0,0,0.12);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.create-result__actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Admin Page ── */
.admin-wrap {
  padding: 24px 0 60px;
}
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.admin-header h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 900;
  font-style: italic;
  font-size: 28px;
}
.admin-tabs {
  display: flex;
  gap: 0;
  border: var(--bw) solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}
.admin-tab {
  padding: 9px 18px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  background: var(--surface);
  border: none;
  border-right: var(--bw) solid var(--border);
  flex: 1;
  text-align: center;
  transition: background 0.1s;
}
.admin-tab:last-child { border-right: none; }
.admin-tab--active { background: var(--text); color: var(--bg); }
.admin-tab:hover:not(.admin-tab--active) { background: var(--bg); }

.admin-panel { display: none; }
.admin-panel--active { display: block; }

/* Builder layout */
.builder-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
  align-items: start;
}
.movie-browser {
  background: var(--surface);
  border: var(--bw) solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.movie-browser__search {
  padding: 10px;
  border-bottom: var(--bw) solid var(--border);
}
.movie-browser__search input {
  width: 100%;
  padding: 7px 10px;
  border: 2px solid var(--border);
  border-radius: 7px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  background: var(--bg);
  outline: none;
}
.movie-browser__list {
  height: 480px;
  overflow-y: auto;
}
.movie-item {
  padding: 7px 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.08s;
}
.movie-item:hover { background: var(--bg); }
.movie-item__year { font-size: 11px; color: var(--muted); font-weight: 400; }

.category-slots {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.category-slot {
  background: var(--surface);
  border: var(--bw) solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.category-slot__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: var(--bw) solid var(--border);
}
.category-slot__color {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 2px solid var(--border);
  flex-shrink: 0;
}
.category-slot__color--yellow { background: var(--yellow); }
.category-slot__color--green  { background: var(--green); }
.category-slot__color--blue   { background: var(--blue); }
.category-slot__color--purple { background: var(--purple); }

.category-slot__input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  outline: none;
}
.category-slot__input::placeholder { color: var(--muted); font-weight: 400; }
.category-slot__count {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
}
.category-slot__movies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px;
  min-height: 48px;
}
.slot-movie {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}
.slot-movie__remove {
  cursor: pointer;
  opacity: 0.5;
  font-size: 14px;
  line-height: 1;
  background: none;
  border: none;
  padding: 0;
  color: var(--text);
}
.slot-movie__remove:hover { opacity: 1; }

.builder-controls {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px;
  background: var(--surface);
  border: var(--bw) solid var(--border);
  border-radius: var(--radius-lg);
}
.builder-controls label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.builder-controls input[type="date"] {
  padding: 7px 10px;
  border: 2px solid var(--border);
  border-radius: 7px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  background: var(--bg);
  outline: none;
}
.builder-note {
  flex: 1;
  padding: 7px 10px;
  border: 2px solid var(--border);
  border-radius: 7px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  background: var(--bg);
  outline: none;
  min-width: 200px;
}
.builder-error {
  color: #cc2200;
  font-size: 12px;
  font-weight: 700;
  flex-basis: 100%;
  display: none;
}

/* Submissions table */
.submissions-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: var(--bw) solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.submissions-table th {
  padding: 10px 14px;
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text2);
  background: var(--bg);
  border-bottom: var(--bw) solid var(--border);
}
.submissions-table td {
  padding: 10px 14px;
  font-size: 13px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  vertical-align: top;
}
.submissions-table tr:last-child td { border-bottom: none; }
.sub-movies { color: var(--text2); font-size: 12px; margin-top: 2px; }
.sub-actions { display: flex; gap: 6px; }

/* Admin login */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.login-card {
  background: var(--surface);
  border: var(--bw) solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 36px 32px;
  width: 100%;
  max-width: 360px;
  text-align: center;
}
.login-card h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 900;
  font-style: italic;
  font-size: 28px;
  margin-bottom: 6px;
}
.login-card p {
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 20px;
}
.login-card input[type="password"] {
  width: 100%;
  padding: 10px 14px;
  border: var(--bw) solid var(--border);
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  background: var(--bg);
  margin-bottom: 10px;
  outline: none;
}
.login-error {
  font-size: 12px;
  color: #cc2200;
  font-weight: 700;
  margin-bottom: 10px;
}

/* No-puzzle page */
.nopuzzle-wrap {
  min-height: calc(100vh - 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.nopuzzle-card {
  text-align: center;
  max-width: 380px;
}
.nopuzzle-card h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 900;
  font-style: italic;
  font-size: 32px;
  margin-bottom: 8px;
}
.nopuzzle-card p {
  font-size: 14px;
  color: var(--text2);
  margin-bottom: 20px;
}

/* ── Animations ── */
@keyframes popIn {
  0%   { opacity: 0; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes tilePop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.08); }
  100% { transform: scale(1) translate(3px, 3px); }
}
@keyframes tileShake {
  0%,100% { transform: translateX(0); }
  15%     { transform: translateX(-6px); }
  35%     { transform: translateX(6px); }
  55%     { transform: translateX(-4px); }
  75%     { transform: translateX(4px); }
  90%     { transform: translateX(-2px); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes toastOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* ── Mobile ── */
@media (max-width: 600px) {
  .tile, .create-tile {
    font-size: 10px;
    min-height: 64px;
    padding: 8px 4px;
  }
  .game-title { font-size: 30px; }
  .action-row .btn { min-width: 100px; font-size: 13px; }
  .builder-layout { grid-template-columns: 1fr; }
  .movie-browser__list { height: 220px; }
  .result-card { padding: 24px 18px; }
  .result-card__headline { font-size: 28px; }
}
