/* MCQ ANALYSER */

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

:root {
  --ink: #1a1a1a;
  --paper: #f5f0e8;
  --cream: #ede7d4;
  --accent: #c0392b;
  --green: #2c7a4b;
  --blue: #1a5276;
  --muted: #7a7165;
  --border: #c8bfa8;
  --green-bg: #eaf5ee;
  --yellow-bg: #fef9e7;
  --red-bg: #fdecea;
  --gold: #e8c89a;
}

body {
  font-family: "Source Sans Pro", sans-serif;
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.modal-open {
  overflow: hidden;
}

.privacy-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  backdrop-filter: blur(3px);
}

.privacy-banner {
  background: #fffbe6;
  border: 3px solid #e6a817;
  border-radius: 12px;
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.75;
  color: #5a4a1a;
  max-width: 550px;
  width: 90%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  position: relative;
}

.privacy-banner .pb-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
  text-align: center;
}

.privacy-banner .pb-body {
  flex: 1;
}

.privacy-banner .pb-title {
  font-weight: 600;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #3d2e00;
  margin-bottom: 0.75rem;
  text-align: center;
}

.privacy-banner .pb-content {
  font-size: 0.9rem;
  text-align: left;
}

.privacy-banner a {
  color: #3d2e00;
  text-underline-offset: 2px;
}

.privacy-banner .pb-dismiss {
  background: #e6a817;
  border: none;
  color: #fff;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.9rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 0.1em;
  transition: background 0.15s;
  width: 100%;
  text-transform: uppercase;
  margin-top: 0.5rem;
}

.privacy-banner .pb-dismiss:hover {
  background: #c98c0a;
}

.main-content {
  filter: blur(4px);
  pointer-events: none;
  user-select: none;
  transition: filter 0.3s ease;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

.main-content.content-enabled {
  filter: blur(0);
  pointer-events: auto;
  user-select: auto;
}

.bg-decoration {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.bg-circle {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(200, 191, 168, 0.1) 0%,
    rgba(200, 191, 168, 0.05) 100%
  );
  top: -150px;
  right: -150px;
}

.bg-circle-2 {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(44, 122, 75, 0.03) 0%,
    rgba(44, 122, 75, 0.01) 100%
  );
  bottom: -200px;
  left: -200px;
}

header {
  background: linear-gradient(135deg, var(--ink) 0%, #2a2a2a 100%);
  color: var(--paper);
  padding: 1.2rem 3rem 1rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(232, 200, 154, 0.2);
}

header::before {
  content: "KolektifAssist";
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: "Merriweather", serif;
  font-size: 9rem;
  font-weight: 600;
  color: rgba(232, 200, 154, 0.06);
  pointer-events: none;
  line-height: 1;
  white-space: nowrap;
}

header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e8c89a, transparent);
}

header h1 {
  font-family: "Merriweather", serif;
  font-weight: 300;
  font-size: 3rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
  position: relative;
  display: inline-block;
}

header h1 span {
  color: var(--gold);
  position: relative;
}

header h1 span::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  opacity: 0.3;
}

header p {
  color: #999;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  position: relative;
  padding-left: 1.5rem;
}

header p::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--gold);
}

.hero-tagline {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-top: 1px solid rgba(232, 200, 154, 0.2);
  padding-top: 1rem;
}

.hero-tagline span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-tagline span::before {
  content: "▶";
  font-size: 0.6rem;
  opacity: 0.6;
}

.container {
  max-width: 860px;
  width: 95%;
  margin: 0 auto;
  padding: 2rem 2rem 8rem;
  flex: 1 0 auto;
  position: relative;
}

.feature-badges {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.5rem 0 2rem;
  flex-wrap: wrap;
}

.feature-badge {
  background: rgba(26, 26, 26, 0.03);
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  border: 1px solid rgba(200, 191, 168, 0.3);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-badge::before {
  content: "✓";
  color: var(--green);
  font-weight: bold;
}

.stats-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0 1rem;
}

.stat-preview-card {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(200, 191, 168, 0.3);
  border-radius: 16px;
  padding: 1.2rem;
  text-align: center;
  transition: transform 0.2s;
}

.stat-preview-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.8);
}

.stat-preview-value {
  font-family: "Merriweather", serif;
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.2;
}

.stat-preview-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.stat-preview-desc {
  font-size: 0.6rem;
  color: var(--muted);
  margin-top: 0.3rem;
  opacity: 0.7;
}

.upload-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
  position: relative;
}

.upload-row::before {
  content: "⤚";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  color: var(--border);
  opacity: 0.5;
  z-index: 1;
}

.upload-card {
  border: 2px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(135deg, var(--cream) 0%, #f5f0e8 100%);
  padding: 2.5rem 1.8rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.upload-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 2px;
  background: linear-gradient(135deg, var(--border), transparent);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s;
}

.upload-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: var(--ink);
}

.upload-card:hover::before {
  opacity: 1;
}

.upload-card.loaded {
  border-color: var(--green);
  background: linear-gradient(135deg, var(--green-bg) 0%, #d4ecd4 100%);
}

.upload-card input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.upload-card .icon {
  font-size: 3.5rem;
  margin-bottom: 1.2rem;
  display: block;
  filter: drop-shadow(0 4px 2px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s;
}

.upload-card:hover .icon {
  transform: scale(1.1) rotate(5deg);
}

.upload-card h3 {
  font-family: "Merriweather", serif;
  font-weight: 300;
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--ink) 0%, #4a4a4a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.upload-card .file-count {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.6rem;
  padding: 0.2rem 0.8rem;
  border-radius: 30px;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s;
}

.upload-card.loaded .file-count {
  opacity: 1;
  transform: translateY(0);
  background: var(--green);
}

.upload-card p {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.6;
  font-weight: 300;
  letter-spacing: 0.05em;
}

.file-name {
  margin-top: 0.5rem;
  font-size: 0.7rem;
  color: var(--green);
  font-weight: 500;
  word-break: break-all;
}

.analyse-btn {
  display: block;
  margin: 2rem auto;
  width: fit-content;
  background: var(--ink);
  color: #fff;
  border: none;
  padding: 0.6rem 1.8rem;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 40px;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.analyse-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

.analyse-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.status-bar {
  display: none;
  padding: 0.85rem 1.2rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.78rem;
  border-radius: 2px;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.status-bar.visible {
  display: flex;
}

.status-bar.error {
  background: var(--accent);
}

.spinner {
  width: 13px;
  height: 13px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.results-header {
  display: none;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 0.5rem;
  padding-bottom: 0.9rem;
  border-bottom: 2px solid var(--ink);
}

.results-header.visible {
  display: flex;
}

.results-header-top {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.results-header h2 {
  font-family: "Merriweather", serif;
  font-weight: 300;
  font-size: 1.5rem;
}

.results-header .meta {
  color: var(--muted);
  font-size: 0.73rem;
  letter-spacing: 0.05em;
}

.results-header-export {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.meta-input-group {
  display: flex;
  align-items: flex-end;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.meta-input-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.meta-input-label {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

.meta-input {
  width: 6.5rem;
  padding: 0.45rem 0.6rem;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 0.82rem;
  border: 1px solid #d8d0c0;
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
}

.meta-input::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

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

.btn-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.dl-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.55rem 1.1rem;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 0.73rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.15s;
  text-transform: uppercase;
  white-space: nowrap;
}

.dl-btn:hover {
  background: #a93226;
}

.legend {
  display: none;
  margin-top: 0.8rem;
  margin-bottom: 0.2rem;
  gap: 1.5rem;
  font-size: 0.68rem;
  color: var(--muted);
  flex-wrap: wrap;
  align-items: center;
}

.legend.visible {
  display: flex;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-dot.good {
  background: var(--green);
}

.legend-dot.warn {
  background: #b7770d;
}

.legend-dot.poor {
  background: var(--accent);
}

.legend-rule {
  margin-left: auto;
  font-style: italic;
  font-size: 0.65rem;
  color: var(--muted);
}

.discrimination-note {
  font-size: 0.6rem;
  color: var(--muted);
  margin-top: 0.25rem;
  text-align: right;
  opacity: 0.8;
}

/* ── Summary panel ─────────────────────────────────── */
.summary {
  display: none;
  margin-top: 1.8rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.4rem 1.5rem 1.2rem;
}

.summary.visible {
  display: block;
}

.sum-heading {
  font-family: "Merriweather", serif;
  font-weight: 300;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.sum-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border: 1px solid var(--border);
  border-top: 2px solid var(--ink);
}

.sum-tiles.three {
  grid-template-columns: repeat(3, 1fr);
}

.sum-tile {
  padding: 0.9rem 0.7rem;
  text-align: center;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-right: -1px;
  margin-bottom: -1px;
}

.sum-tile.good .stat-value {
  color: var(--green);
}

.sum-tile.warn .stat-value {
  color: #b7770d;
}

.sum-tile.poor .stat-value {
  color: var(--accent);
}

.sum-sub {
  font-size: 0.66rem;
  color: var(--muted);
  margin-top: 0.3rem;
  line-height: 1.35;
}

.sum-block {
  margin-top: 1.6rem;
}

.sum-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 0.55rem;
}

.sum-scroll {
  overflow-x: auto;
}

.sum-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.sum-table th {
  text-align: left;
  font-size: 0.63rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 400;
  padding: 0.45rem 0.6rem;
  border-bottom: 2px solid var(--ink);
  white-space: nowrap;
}

.sum-table td {
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid #f0ebe0;
  vertical-align: top;
}

.sum-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sum-table .muted {
  color: var(--muted);
  white-space: nowrap;
}

.sum-table .qlist {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.sum-table.cross td.zero {
  color: var(--border);
}

.sum-table.cross td.best {
  background: var(--green-bg);
  color: var(--green);
  font-weight: 600;
}

.sum-table .strong,
.sum-table .total-row td {
  font-weight: 600;
}

.sum-table .total-row td {
  border-top: 1px solid var(--ink);
  border-bottom: none;
}

.sum-band {
  font-weight: 600;
  white-space: nowrap;
}

.sum-band.good {
  color: var(--green);
}

.sum-band.warn {
  color: #b7770d;
}

.sum-band.poor {
  color: var(--accent);
}

.sum-note {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.6rem;
  line-height: 1.5;
}

.sum-review {
  list-style: none;
  border-top: 2px solid var(--ink);
}

.sum-review li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.2rem 1rem;
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid #f0ebe0;
  font-size: 0.82rem;
}

.sum-review .sum-review-count {
  font-weight: 600;
  color: var(--accent);
  text-align: right;
}

.sum-review li.none .sum-review-count {
  color: var(--green);
}

.sum-review .qlist {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.75rem;
}

@media (max-width: 768px) {
  .summary {
    padding: 1.1rem 1rem;
  }

  .sum-tiles.three {
    grid-template-columns: 1fr;
  }
}

.question-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

.q-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.q-header {
  background: var(--cream);
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.q-num {
  background: var(--ink);
  color: var(--paper);
  font-size: 0.63rem;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  flex-shrink: 0;
  margin-top: 2px;
  letter-spacing: 0.05em;
}

.q-text {
  font-family: "Merriweather", serif;
  font-weight: 300;
  font-size: 1.1rem;
  line-height: 1.6;
}

.options {
  padding: 0.4rem 0;
}

.option {
  display: flex;
  align-items: center;
  padding: 0.8rem 1.5rem;
  gap: 1rem;
  border-bottom: 1px solid #f0ebe0;
  font-size: 0.95rem;
}

.option:last-child {
  border-bottom: none;
}

.option.correct {
  background: var(--green-bg);
}

.opt-letter {
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 500;
  flex-shrink: 0;
  color: var(--muted);
}

.option.correct .opt-letter {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.opt-text {
  flex: 1;
  line-height: 1.4;
}

.correct-badge {
  background: var(--blue);
  color: #fff;
  font-size: 0.59rem;
  padding: 0.12rem 0.45rem;
  border-radius: 2px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 2px solid var(--ink);
}

.stat-cell {
  padding: 0.9rem 0.6rem;
  text-align: center;
  border-right: 1px solid var(--border);
}

.stat-cell:last-child {
  border-right: none;
}

.stat-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

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

.stat-cell.good .stat-value {
  color: var(--green);
}

.stat-cell.warn .stat-value {
  color: #b7770d;
}

.stat-cell.poor .stat-value {
  color: var(--accent);
}

.q-comment {
  padding: 0.85rem 1.5rem;
  background: var(--cream);
  border-top: 1px dashed var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.q-comment-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.78rem;
}

.q-comment-label {
  color: var(--muted);
  min-width: 160px;
  letter-spacing: 0.03em;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.q-comment-sep {
  color: var(--border);
  font-weight: bold;
}

.q-comment-value {
  font-weight: 500;
  letter-spacing: 0.03em;
}

.q-comment-value.good {
  color: var(--green);
}
.q-comment-value.warn {
  color: #b7770d;
}
.q-comment-value.poor {
  color: var(--accent);
}

footer {
  background: linear-gradient(135deg, var(--ink) 0%, #2a2a2a 100%);
  color: var(--paper);
  padding: 1rem 3rem 1rem;

  width: 100%;
  margin-top: auto;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(232, 200, 154, 0.2);
}

footer::after {
  content: "MCQ";
  position: absolute;
  left: 2rem;
  bottom: 0.5rem;
  font-family: "Merriweather", serif;
  font-size: 4rem;
  font-weight: 600;
  color: rgba(232, 200, 154, 0.04);
  pointer-events: none;
  line-height: 1;
}

footer p {
  color: #999;
  font-size: 0.8rem;
  text-align: center;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

footer p:first-child {
  margin-bottom: 0.5rem;
  color: var(--gold);
}

.home-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  background: linear-gradient(135deg, var(--ink) 0%, #2d2d2d 100%);
  color: var(--paper);
  text-decoration: none;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.75rem 1.2rem;
  border-radius: 40px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  border: 1px solid rgba(232, 200, 154, 0.15);
}

.home-btn::before {
  content: "←";
  color: var(--gold);
  font-size: 0.8rem;
}

.home-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.refresh-btn {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--ink) 0%, #333 100%);
  color: var(--paper);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.refresh-btn::before {
  content: "⟳";
  color: var(--gold);
  font-size: 0.9rem;
}

.refresh-btn:hover {
  transform: rotate(180deg) scale(1.1);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
  header {
    padding: 1rem 1.5rem;
  }

  header h1 {
    font-size: 2rem;
  }

  header::before {
    font-size: 4rem;
  }

  .stats-preview {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .upload-row {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .upload-row::before {
    display: none;
  }

  .upload-card {
    padding: 1.5rem 1rem;
  }

  .upload-card .icon {
    font-size: 2.5rem;
  }

  .upload-card h3 {
    font-size: 1rem;
  }

  .container {
    padding: 1.5rem 1rem 6rem;
  }
}
