/* -------------------------------------------------
   what's this? — FULL neumorphism UI (PC-first)
   Every surface is extruded/inset — no flat design.
   ------------------------------------------------- */

:root {
  --bg: #e8e5df;
  --ink: #3a342e;
  --ink-dim: #7a7269;
  --terracotta: #b07c5a;
  --terracotta-dark: #8a4a30;
  --mustard: #d9a441;
  --mustard-dark: #b0842c;
  --sage: #9aa98b;
  --radius: 26px;
  --shadow-light: rgba(255, 255, 255, 0.9);
  --shadow-dark: rgba(0, 0, 0, 0.22);
  --inset-dark: inset 6px 6px 12px var(--shadow-dark),
                inset -6px -6px 12px rgba(255,255,255,0.7);
}

/* -------------------------------------------------
   dark theme overrides (applied via .dark-theme on html)
   ------------------------------------------------- */
html.dark-theme {
  --bg: #231f1c;
  --ink: #e8e5df;
  --ink-dim: #a39388;
  --terracotta: #c98a6b;
  --terracotta-dark: #d9a441;
  --mustard: #d9a441;
  --mustard-dark: #e8b256;
  --sage: #9aa98b;
  --shadow-light: rgba(255, 255, 255, 0.06);
  --shadow-dark: rgba(0, 0, 0, 0.55);
  --inset-dark: inset 6px 6px 12px rgba(0,0,0,0.7),
                inset -6px -6px 12px rgba(255,255,255,0.04);
}

html.dark-theme body {
  background: var(--bg);
  color: var(--ink);
}

html.dark-theme .modal-backdrop {
  background: rgba(0,0,0,0.6);
}

html.dark-theme .toast {
  box-shadow: 12px 12px 24px var(--shadow-dark), -12px -12px 24px var(--shadow-light);
}

html.dark-theme .status.error { background: #3d2a26; color: var(--terracotta-dark); }
html.dark-theme .status.info { background: #2a342e; color: var(--sage); }
html.dark-theme .status.limit { background: #3d3222; color: var(--mustard-dark); }


* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Comfortaa", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
}

.bg-canvas {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: -1; display: block;
}

/* -------------------------------------------------
   neumorphic base surface
   ------------------------------------------------- */
.n {
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: 20px 20px 40px var(--shadow-dark),
              -20px -20px 40px var(--shadow-light);
}

/* -------------------------------------------------
   page frame + corners
   ------------------------------------------------- */
.page-frame {
  max-width: 960px; margin: 60px auto; padding: 56px 28px 140px;
  position: relative; isolation: isolate;
}
.corner {
  position: absolute; width: 72px; height: 72px;
  pointer-events: none; z-index: 0;
}
.corner-tl { top: -14px; left: -14px; transform: rotate(-2deg); }
.corner-tr { top: -14px; right: -14px; transform: rotate(2deg); }
.corner-bl { bottom: -14px; left: -14px; transform: rotate(2deg); }
.corner-br { bottom: -14px; right: -14px; transform: rotate(-2deg); }

/* -------------------------------------------------
   header
   ------------------------------------------------- */
.site-header { text-align: center; margin-bottom: 34px; }
.header-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; transform: rotate(-0.5deg);
  animation: floatMark 4s ease-in-out infinite;
}
.logo-icon { width: 40px; height: 40px; color: var(--terracotta); filter: drop-shadow(3px 3px 6px var(--shadow-dark)); }
.logo-text {
  font-family: "Caveat", cursive, sans-serif;
  font-size: 60px; font-weight: 700; color: var(--ink);
  line-height: 1; letter-spacing: -1px;
  text-shadow: 2px 2px 4px var(--shadow-dark), -2px -2px 4px var(--shadow-light);
}
.site-kicker {
  font-family: "Caveat", cursive, sans-serif;
  font-size: 22px; color: var(--terracotta-dark);
  margin: 0; letter-spacing: 0.5px; display: block;
}

.header-actions { display: none; gap: 10px; margin-top: 8px; }
.icon-btn {
  width: 48px; height: 48px; border-radius: 50%;
  border: none; background: var(--bg); color: var(--ink-dim);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 10px 10px 20px var(--shadow-dark), -10px -10px 20px var(--shadow-light);
  transition: all 0.15s ease;
}
.icon-btn:hover { color: var(--terracotta-dark); transform: translateY(-3px); box-shadow: 14px 14px 28px var(--shadow-dark), -14px -14px 28px var(--shadow-light); }
.icon-btn:active { box-shadow: var(--inset-dark); transform: translateY(1px); }
.icon-btn .icon { width: 22px; height: 22px; }

/* -------------------------------------------------
   limit banner
   ------------------------------------------------- */
.limit-banner {
  background: var(--bg); border-radius: 16px;
  padding: 14px 22px; margin-bottom: 22px; display: inline-flex; align-items: center; gap: 14px;
  font-size: 14px; color: var(--ink-dim);
  box-shadow: 12px 12px 24px var(--shadow-dark), -12px -12px 24px var(--shadow-light);
  animation: slideDown 0.35s ease both;
}
.limit-icon { width: 20px; height: 20px; color: var(--terracotta-dark); flex-shrink: 0; }
.limit-text { flex: 1; }
.limit-action { color: var(--terracotta-dark); text-decoration: none; font-weight: 700; font-size: 13px; margin-left: 8px; }
.limit-action:hover { color: var(--mustard-dark); text-decoration: underline; }

/* -------------------------------------------------
   upload zone — neumorphic card
   ------------------------------------------------- */
.wrapper { position: relative; z-index: 1; }
.dropzone-card {
  background: var(--bg); border-radius: var(--radius);
  padding: 40px 30px; text-align: center; cursor: pointer; user-select: none;
  box-shadow: 22px 22px 44px var(--shadow-dark), -22px -22px 44px var(--shadow-light);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dropzone-card:hover {
  transform: translateY(-8px);
  box-shadow: 28px 28px 56px var(--shadow-dark), -28px -28px 56px var(--shadow-light);
}
.dropzone-card.drag-over { border: 6px solid var(--terracotta-dark); background: #ddd4c8; }
.dropzone-icon { width: 56px; height: 56px; margin: 0 0 14px; color: var(--terracotta-dark); filter: drop-shadow(4px 4px 8px var(--shadow-dark)); }
.dropzone-label {
  font-family: "Caveat", cursive, sans-serif; font-size: 32px;
  color: var(--terracotta-dark); margin: 0 0 8px; font-weight: 700;
}
.dropzone-hint { color: var(--ink-dim); margin: 0; font-size: 15px; }
.file-input { display: none; }

/* -------------------------------------------------
   preview box — neumorphic
   ------------------------------------------------- */
.preview-box {
  background: var(--bg); border-radius: var(--radius);
  padding: 24px; text-align: center;
  box-shadow: 16px 16px 32px var(--shadow-dark), -16px -16px 32px var(--shadow-light);
  margin-top: 28px; transform: rotate(0.3deg);
}
.preview-box img {
  width: 100%; max-width: 420px; border-radius: 14px;
  background: #ddd4c8; display: block; margin: 0 auto 16px;
  box-shadow: 10px 10px 20px var(--shadow-dark), -10px -10px 20px var(--shadow-light);
}
.remove-btn {
  position: absolute; top: -12px; right: -12px; width: 34px; height: 34px;
  border-radius: 50%; border: none; background: var(--bg);
  color: var(--terracotta-dark); font-size: 22px; font-weight: bold; line-height: 1;
  cursor: pointer;
  box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.1s ease;
}
.remove-btn:active { box-shadow: var(--inset-dark); transform: scale(0.9); }

.scan-btn {
  font-family: "Comfortaa", sans-serif; font-size: 18px; font-weight: 800;
  color: var(--ink); background: var(--bg); border: none; border-radius: 14px;
  padding: 16px 46px; cursor: pointer;
  box-shadow: 14px 14px 28px var(--shadow-dark), -14px -14px 28px var(--shadow-light);
  transform: rotate(-1deg);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: inline-flex; align-items: center; gap: 10px;
}
.scan-btn:hover {
  transform: rotate(-1deg) translateY(-6px);
  box-shadow: 18px 18px 36px var(--shadow-dark), -18px -18px 36px var(--shadow-light);
}
.scan-btn:active {
  transform: rotate(-1deg) translateY(3px);
  box-shadow: inset 8px 8px 16px var(--shadow-dark), inset -8px -8px 16px var(--shadow-light);
}
.scan-btn:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: 10px 10px 20px var(--shadow-dark), -10px -10px 20px var(--shadow-light); }
.scan-icon { width: 20px; height: 20px; }

/* -------------------------------------------------
   scan modal — neumorphic loading popup
   ------------------------------------------------- */
.scan-modal-card {
  text-align: center;
  padding: 40px 30px;
  max-width: 340px;
  width: 90%;
}
.scan-spin-icon {
  width: 56px; height: 56px;
  color: var(--terracotta-dark);
  margin: 0 0 18px;
  animation: scanSpin 1s linear infinite;
  filter: drop-shadow(4px 4px 8px var(--shadow-dark));
}
@keyframes scanSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.scan-modal-title {
  font-family: "Caveat", cursive, sans-serif;
  font-size: 30px; color: var(--ink);
  margin: 0 0 16px; font-weight: 700;
  text-shadow: 1px 1px 2px var(--shadow-dark), -1px -1px 2px var(--shadow-light);
}
.scan-timer-display {
  font-family: "Comfortaa", sans-serif;
  font-size: 34px; font-weight: 800;
  color: var(--terracotta-dark);
  margin: 0 0 10px;
  text-shadow: 2px 2px 4px var(--shadow-dark), -2px -2px 4px var(--shadow-light);
}
.scan-progress-wrap {
  background: #ddd4c8;
  border-radius: 14px;
  height: 14px;
  width: 100%;
  margin: 0 0 18px;
  box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light);
  overflow: hidden;
}
.scan-progress-bar {
  background: var(--terracotta-dark);
  height: 100%;
  width: 0%;
  border-radius: 14px;
  box-shadow: 0 0 12px rgba(138, 74, 48, 0.6);
  transition: width 0.5s ease;
}
.scan-modal-note {
  margin: 0; color: var(--ink-dim); font-size: 14px;
  font-family: "Comfortaa", sans-serif;
}

html.dark-theme .scan-progress-wrap { background: #3a322d; }


/* -------------------------------------------------
   result card — neumorphic
   ------------------------------------------------- */
.result-card {
  background: var(--bg); border-radius: var(--radius);
  padding: 30px 28px; margin-top: 30px;
  box-shadow: 22px 22px 44px var(--shadow-dark), -22px -22px 44px var(--shadow-light);
  transform: rotate(-0.4deg);
  animation: popIn 0.55s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}
.result-stamp {
  position: absolute; top: -16px; left: 30px;
  background: var(--mustard); color: #5a4218;
  font-family: "Comfortaa", sans-serif; font-weight: 800; font-size: 13px;
  padding: 5px 18px; border-radius: 24px;
  box-shadow: 6px 6px 12px var(--shadow-dark);
  letter-spacing: 1.5px; transform: rotate(-12deg);
}
.result-icon {
  width: 40px; height: 40px; margin: 0 0 16px; color: var(--sage); opacity: 0.85;
  filter: drop-shadow(4px 4px 8px var(--shadow-dark));
}
.result-title {
  font-family: "Caveat", cursive, sans-serif; font-size: 38px;
  color: var(--ink); margin: 0 0 16px 4px; font-weight: 700; transform: rotate(0.7deg);
  text-shadow: 2px 2px 4px var(--shadow-dark), -2px -2px 4px var(--shadow-light);
}
.result-body {
  font-family: "Merriweather", Georgia, serif; font-size: 20px;
  color: var(--ink); font-style: italic; line-height: 1.85;
  margin: 0 0 14px; white-space: pre-wrap;
}
.result-note { font-size: 13px; color: var(--ink-dim); margin: 0; text-align: right; }

@keyframes popIn {
  0% { opacity: 0; transform: rotate(-0.4deg) scale(0.9); }
  70% { transform: rotate(-0.4deg) scale(1.05); }
  100% { transform: rotate(-0.4deg) scale(1); opacity: 1; }
}

/* -------------------------------------------------
   status / messages — neumorphic
   ------------------------------------------------- */
.status {
  padding: 16px 24px; border-radius: 14px; margin-top: 24px;
  font-size: 15px; text-align: center; animation: slideDown 0.35s ease both;
  box-shadow: 10px 10px 20px var(--shadow-dark), -10px -10px 20px var(--shadow-light);
}
.status.error { background: #f0e8e3; color: var(--terracotta-dark); }
.status.info { background: #e6efe6; color: #4a5d3b; }
.status.limit { background: #f5e9d9; color: #8a5a22; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes floatMark { 0%,100% { transform: rotate(-0.5deg) translateY(0); } 50% { transform: rotate(-0.5deg) translateY(-6px); } }

/* -------------------------------------------------
   toast — neumorphic
   ------------------------------------------------- */
.toast-container {
  position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 200; display: flex; flex-direction: column; gap: 12px; pointer-events: none;
}
.toast {
  background: var(--bg); border-radius: 14px;
  padding: 14px 24px; color: var(--ink); font-size: 14.5px;
  box-shadow: 12px 12px 24px var(--shadow-dark), -12px -12px 24px var(--shadow-light);
  pointer-events: auto; opacity: 0; transform: translateY(35px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  min-width: 240px; text-align: center;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { color: #4a5d3b; box-shadow: inset 4px 4px 8px rgba(74,93,59,0.15), -4px -4px 8px rgba(255,255,255,0.8); }
.toast.error { color: var(--terracotta-dark); box-shadow: inset 4px 4px 8px rgba(138,74,48,0.15), -4px -4px 8px rgba(255,255,255,0.8); }
.toast.info { color: #8a5a22; }

/* -------------------------------------------------
   modal — neumorphic
   ------------------------------------------------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; }
.modal.hidden, [hidden] { display: none !important; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.3); backdrop-filter: blur(8px); }
.modal-card {
  background: var(--bg); border-radius: var(--radius);
  width: 90%; max-width: 500px; padding: 36px 32px;
  position: relative; box-shadow: 28px 28px 56px var(--shadow-dark), -28px -28px 56px var(--shadow-light);
  animation: popIn 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}
.modal-close {
  position: absolute; top: 16px; right: 18px; background: none; border: none;
  color: var(--ink-dim); font-size: 28px; cursor: pointer; line-height: 1;
}
.modal-close:hover { color: var(--terracotta-dark); }
.modal-tabs { display: flex; gap: 10px; margin-bottom: 26px; border-bottom: 3px solid var(--shadow-light); padding-bottom: 12px; }
.tab {
  background: var(--bg); border: none; color: var(--ink-dim); font-family: inherit;
  font-size: 16px; cursor: pointer; padding: 10px 18px; border-radius: 12px;
  border-bottom: 3px solid transparent;
  box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
  transition: all 0.15s ease;
}
.tab.active { color: var(--terracotta-dark); border-bottom-color: var(--terracotta-dark); box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light); }
.tab:hover { color: var(--ink); }
.auth-form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; color: var(--ink-dim); text-transform: uppercase; letter-spacing: 0.5px; }
.field input {
  background: var(--bg); border: none; border-radius: 12px;
  color: var(--ink); padding: 14px 18px; font-family: inherit; font-size: 16px;
  box-shadow: inset 6px 6px 12px var(--shadow-dark), inset -6px -6px 12px var(--shadow-light);
}
.field input:focus { outline: none; box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light); }
.form-note { margin: 6px 0 0; font-size: 13px; color: var(--ink-dim); text-align: center; }
.form-note a { color: var(--terracotta-dark); text-decoration: none; }
.form-note a:hover { color: var(--mustard-dark); text-decoration: underline; }
.auth-divider { text-align: center; color: var(--ink-dim); font-size: 12px; margin: 22px 0 12px; letter-spacing: 2.5px; text-transform: uppercase; }
.auth-prompt { text-align: center; font-size: 14.5px; color: var(--ink-dim); }
.switch-link { color: var(--terracotta-dark); text-decoration: none; cursor: pointer; font-weight: 800; }
.switch-link:hover { color: var(--mustard-dark); text-decoration: underline; }

/* -------------------------------------------------
   settings page — full neumorphism
   ------------------------------------------------- */
.settings-card {
  background: var(--bg); border-radius: var(--radius);
  padding: 36px 32px; position: relative;
  box-shadow: 24px 24px 48px var(--shadow-dark), -24px -24px 48px var(--shadow-light);
  animation: popIn 0.5s ease both;
}
.settings-header { display: flex; align-items: center; gap: 18px; margin-bottom: 30px; }
.settings-icon { width: 46px; height: 46px; color: var(--terracotta-dark); flex-shrink: 0; filter: drop-shadow(3px 3px 6px var(--shadow-dark)); }
.settings-header > div { display: flex; flex-direction: column; gap: 5px; }
.settings-subtitle { font-size: 12px; color: var(--ink-dim); text-transform: uppercase; letter-spacing: 0.5px; }
.settings-user { font-family: "Caveat", cursive, sans-serif; font-size: 26px; color: var(--ink); font-weight: 700; text-shadow: 1px 1px 2px var(--shadow-dark); }
.settings-form { display: flex; flex-direction: column; gap: 22px; margin-bottom: 30px; }
.toggle-field { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.theme-toggle {
  background: var(--bg); border: none; color: var(--ink);
  padding: 10px 22px; border-radius: 28px; font-family: inherit; font-size: 14px;
  font-weight: 800; cursor: pointer;
  box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
  transition: all 0.15s ease;
}
.theme-toggle:hover { color: var(--terracotta-dark); transform: translateY(-3px); box-shadow: 12px 12px 24px var(--shadow-dark), -12px -12px 24px var(--shadow-light); }
.theme-toggle:active { box-shadow: var(--inset-dark); transform: translateY(1px); }
.settings-divider {
  display: flex; align-items: center; gap: 14px; margin: 30px 0 22px;
  color: var(--ink-dim); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px;
}
.settings-divider::before, .settings-divider::after { content: ""; flex: 1; height: 3px; background: var(--shadow-light); }
.btn {
  border: none; border-radius: 14px; padding: 14px 28px; font-family: inherit;
  font-size: 16px; font-weight: 800; cursor: pointer;
  transition: all 0.15s ease; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
}
.btn.primary { background: var(--bg); color: var(--ink);
  box-shadow: 14px 14px 28px var(--shadow-dark), -14px -14px 28px var(--shadow-light); }
.btn.primary:hover {
  box-shadow: 18px 18px 36px var(--shadow-dark), -18px -18px 36px var(--shadow-light);
  transform: translateY(-4px);
}
.btn.primary:active {
  box-shadow: inset 8px 8px 16px var(--shadow-dark), inset -8px -8px 16px var(--shadow-light);
  transform: translateY(2px);
}
.btn.danger { background: var(--bg); color: var(--terracotta-dark);
  box-shadow: 14px 14px 28px var(--shadow-dark), -14px -14px 28px var(--shadow-light); }
.btn.danger:hover { color: #8a4a42; transform: translateY(-4px); }
.form-note { margin: 6px 0 0; font-size: 13px; color: var(--ink-dim); text-align: center; }

/* -------------------------------------------------
   legal pages — neumorphic
   ------------------------------------------------- */
.legal { max-width: 760px; margin: 34px auto; }
.legal-header { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.back-link {
  align-self: flex-start; font-family: "Comfortaa", sans-serif; font-size: 14px;
  color: var(--terracotta-dark); text-decoration: none; margin-bottom: 2px;
}
.back-link:hover { color: var(--mustard-dark); text-decoration: underline; }
.legal-card {
  background: var(--bg); border-radius: var(--radius);
  padding: 38px 34px; position: relative;
  box-shadow: 24px 24px 48px var(--shadow-dark), -24px -24px 48px var(--shadow-light);
  animation: popIn 0.5s ease both;
}
.error-card { text-align: center; }
.legal-stamp {
  position: absolute; top: -16px; left: 30px;
  background: var(--mustard); color: #5a4218;
  font-family: "Comfortaa", sans-serif; font-weight: 800; font-size: 12px;
  padding: 4px 16px; border-radius: 24px;
  box-shadow: 6px 6px 12px var(--shadow-dark);
  letter-spacing: 1.5px; transform: rotate(-12deg);
}
.error-icon { width: 72px; height: 72px; margin: 0 auto 20px; color: var(--terracotta-dark); opacity: 0.85; filter: drop-shadow(4px 4px 8px var(--shadow-dark)); }
.legal-card h2 {
  font-family: "Caveat", cursive, sans-serif; font-size: 42px; color: var(--ink);
  margin: 0 0 10px 4px; transform: rotate(0.5deg);
  text-shadow: 2px 2px 4px var(--shadow-dark), -2px -2px 4px var(--shadow-light);
}
.legal-card h3 {
  font-family: "Comfortaa", sans-serif; font-size: 17px; color: var(--terracotta-dark);
  margin: 24px 0 8px; text-transform: uppercase; letter-spacing: 0.5px;
}
.legal-card p, .legal-card li { color: var(--ink-dim); font-size: 16px; line-height: 1.85; }
.legal-card em { color: var(--ink); font-style: italic; }
.legal-card strong { color: var(--ink); }
.legal-card ul { margin: 8px 0 18px 24px; padding: 0; color: var(--ink-dim); }
.legal-card li { margin-bottom: 8px; }
.legal-note {
  font-size: 13px; color: var(--ink-dim); margin-top: 30px;
  text-align: right; border-top: 3px solid var(--shadow-light); padding-top: 16px;
}

/* changelog */
.changelog-card h2 { margin-bottom: 20px; }
.changelog-list { margin-bottom: 28px; }
.changelog-entry {
  background: var(--bg); border-radius: 16px;
  padding: 22px 26px; margin-bottom: 16px;
  box-shadow: 12px 12px 24px var(--shadow-dark), -12px -12px 24px var(--shadow-light);
}
.changelog-version {
  font-family: "Comfortaa", sans-serif; font-size: 16px; font-weight: 800;
  color: var(--terracotta-dark); margin-bottom: 3px;
}
.changelog-date { font-size: 13px; color: var(--ink-dim); margin-bottom: 12px; }
.changelog-entry ul { margin: 0; padding-left: 24px; color: var(--ink-dim); }
.changelog-entry li { margin-bottom: 8px; line-height: 1.75; }
.coming-soon {
  display: flex; align-items: flex-start; gap: 14px; padding: 22px 26px;
  background: var(--bg); border-radius: 16px; color: var(--ink-dim);
  box-shadow: inset 6px 6px 12px var(--shadow-dark), inset -6px -6px 12px var(--shadow-light);
}
.coming-icon { width: 22px; height: 22px; color: var(--terracotta-dark); flex-shrink: 0; margin-top: 3px; }
.coming-soon strong { color: var(--ink); }

/* -------------------------------------------------
   footer
   ------------------------------------------------- */
.site-footer {
  text-align: center; padding: 34px 0; color: var(--ink-dim);
  font-size: 14px; font-family: "Caveat", cursive, sans-serif; margin-top: 56px;
}
.footer-nav { font-family: "Comfortaa", sans-serif; font-size: 14px; margin-bottom: 10px; }
.footer-nav a { color: var(--terracotta-dark); text-decoration: none; margin: 0 7px; }
.footer-nav a:hover { color: var(--mustard-dark); text-decoration: underline; }
.footer-nav .sep { color: var(--ink-dim); }
.footer-line { margin: 0; opacity: 0.75; }

/* -------------------------------------------------
   mobile menu — neumorphic
   ------------------------------------------------- */
.mobile-menu {
  background: var(--bg); border-radius: 20px;
  padding: 22px; margin-bottom: 26px;
  box-shadow: 16px 16px 32px var(--shadow-dark), -16px -16px 32px var(--shadow-light);
}
.menu-item {
  display: block; padding: 16px 22px; color: var(--ink);
  text-decoration: none; border-radius: 14px; margin-bottom: 12px;
  font-family: "Comfortaa", sans-serif; font-weight: 700; font-size: 16px;
  box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
  transition: all 0.15s ease;
}
.menu-item:hover { background: #ddd4c8; color: var(--terracotta-dark); transform: translateX(6px); }
.menu-item:active { box-shadow: inset 4px 4px 8px var(--shadow-dark); }

/* -------------------------------------------------
   responsive
   ------------------------------------------------- */
@media (max-width: 680px) {
  .page-frame { margin: 28px auto; padding: 36px 18px 120px; }
  .logo-text { font-size: 46px; }
  .header-actions { display: flex; }
  .dropzone-card { padding: 32px 20px; }
  .result-card { padding: 26px 20px; }
  .result-title { font-size: 30px; }
  .legal { margin: 20px auto; }
  .legal-card { padding: 30px 22px; }
  .legal-card h2 { font-size: 34px; }
  .modal-card { width: 94%; padding: 28px 22px; }
  .menu-item { font-size: 15px; padding: 14px 18px; }
}

/* -------------------------------------------------
   anti-source deterrents
   ------------------------------------------------- */
body { user-select: none; -webkit-user-select: none; }
img, svg, i { user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
* { -webkit-touch-callout: none; }
