/* =============================================================
   style.css — Party Photo Gallery
   Mobile-first. Minimum 18px body text. 48px touch targets.
   Festive, warm, high-contrast — comfortable for all ages.
   ============================================================= */

/* ── Custom properties ──────────────────────────────────────── */
:root {
  --clr-bg:         #1a1035;   /* deep purple night */
  --clr-surface:    #2d1b69;   /* card surface */
  --clr-surface-2:  #3d2a80;   /* hover state */
  --clr-gold:       #f5a623;   /* warm gold — primary accent */
  --clr-gold-dark:  #d4891a;   /* gold hover */
  --clr-pink:       #ff6b9d;   /* festive pink */
  --clr-text:       #f0ebff;   /* near-white */
  --clr-text-muted: #c9b8ff;   /* muted purple-white */
  --clr-success:    #27ae60;
  --clr-error:      #e74c3c;
  --radius-lg:      20px;
  --radius-md:      12px;
  --radius-sm:       8px;
  --transition:     0.2s ease;
  --font-primary:   'Nunito'; /* overridden by theme.php per party */
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-primary), 'Nunito', system-ui, sans-serif;
  font-size: 1.125rem;          /* 18px — minimum required */
  line-height: 1.55;
  background: var(--clr-bg);
  color: var(--clr-text);
  min-height: 100vh;
  /* Subtle confetti-dot background texture */
  background-image:
    radial-gradient(circle at 20% 10%, rgba(245,166,35,0.12) 0, transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(255,107,157,0.10) 0, transparent 40%);
}

img { display: block; max-width: 100%; }

a { color: var(--clr-gold); }
a:hover { color: var(--clr-gold-dark); }

/* ── Hide native file input chrome ──────────────────────────── */
/* Both inputs are triggered by <label for="..."> so they never
   need to be visible. This overrides any browser default. */
#camera-input,
#library-input {
  display: none !important;
}

/* ── Version badge ───────────────────────────────────────────── */
.version-badge {
  position: fixed;
  top: 6px;
  left: 8px;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.35);
  z-index: 100;
  pointer-events: none;
  user-select: none;
}

/* ── Site header ─────────────────────────────────────────────── */
.site-header {
  background: var(--clr-surface);
  padding: 20px 16px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.site-header h1 {
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  font-weight: 900;
  color: var(--clr-gold);
  letter-spacing: -0.01em;
}

.header-emoji {
  font-size: 1.6rem;
  user-select: none;
}

.header-organiser {
  font-size: 0.95rem;
  color: var(--clr-text-muted);
  margin-top: 4px;
  text-align: center;
}

/* ── Camera section ──────────────────────────────────────────── */
.camera-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px 32px;
  min-height: 340px;
}

/* ── Hero camera button ──────────────────────────────────────── */
.btn-camera {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(340px, 90vw);
  padding: 36px 24px;
  background: linear-gradient(135deg, var(--clr-gold) 0%, #e8902a 100%);
  color: var(--clr-bg);
  border-radius: var(--radius-lg);
  cursor: pointer;
  font-family: inherit;
  font-weight: 900;
  text-align: center;
  touch-action: manipulation;
  user-select: none;
  box-shadow:
    0 8px 24px rgba(245,166,35,0.40),
    0 2px 8px rgba(0,0,0,0.30);
  transition: transform var(--transition), box-shadow var(--transition);
  /* Minimum 48px touch target is far exceeded */
}

.btn-camera:hover,
.btn-camera:focus-visible {
  transform: scale(1.04);
  box-shadow:
    0 12px 32px rgba(245,166,35,0.55),
    0 4px 12px rgba(0,0,0,0.30);
  outline: 3px solid var(--clr-pink);
  outline-offset: 3px;
}

.btn-camera:active {
  transform: scale(0.97);
}

.btn-camera-emoji {
  font-size: 3.5rem;
  line-height: 1;
  display: block;
}

.btn-camera-text {
  font-size: clamp(1.3rem, 4.5vw, 1.6rem);
  letter-spacing: -0.01em;
}

/* ── Upload UI wrapper ───────────────────────────────────────── */
#upload-ui {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

/* ── Party info box ──────────────────────────────────────────── */
.party-info-text {
  margin-top: 24px;
  width: min(340px, 90vw);
  background: var(--clr-surface);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  font-size: 1rem;
  color: var(--clr-text-muted);
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

/* ── Library hint ────────────────────────────────────────────── */
.library-hint {
  margin-top: 20px;
  font-size: 1rem;
  color: var(--clr-text-muted);
  text-align: center;
}

.link-label {
  color: var(--clr-gold);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 48px;   /* touch-target height via line-height context */
  display: inline;
}

.link-label:hover { color: var(--clr-gold-dark); }

/* ── Preview area ────────────────────────────────────────────── */
#preview-ui {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  animation: fadeIn 0.25s ease;
}

.preview-wrap {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,0.4);
  background: var(--clr-surface);
  max-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-img {
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
}

.preview-actions {
  display: flex;
  gap: 12px;
  width: 100%;
}

/* ── Generic buttons ──────────────────────────────────────────── */
.btn {
  flex: 1;
  padding: 16px 12px;
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  touch-action: manipulation;
  min-height: 56px;   /* well above 48px touch target */
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn:active { transform: scale(0.96); }

.btn-confirm {
  background: var(--clr-success);
  color: #fff;
  box-shadow: 0 4px 14px rgba(39,174,96,0.40);
}
.btn-confirm:hover { background: #219150; }

.btn-retake {
  background: var(--clr-surface-2);
  color: var(--clr-text);
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.btn-retake:hover { background: #4d3a90; }

/* ── Progress bar ────────────────────────────────────────────── */
#progress-wrap {
  width: 100%;
  text-align: center;
}

/* ── Queue upload progress ──────────────────────────────────── */
#queue-wrap {
  width: 100%;
  text-align: center;
  padding: 48px 0 32px;
}

#queue-wrap .progress-label {
  font-size: 1.1rem;
  margin-bottom: 12px;
  margin-top: 0;
}

.progress-bar {
  width: 100%;
  height: 14px;
  background: var(--clr-surface-2);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--clr-gold) 0%, var(--clr-pink) 100%);
  border-radius: 999px;
  transition: width 0.15s linear;
}

.progress-label {
  margin-top: 10px;
  font-size: 1rem;
  color: var(--clr-text-muted);
}

/* ── Result overlays (success / error) ───────────────────────── */
.result-ui {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 440px;
  animation: popIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.result-success {
  background: linear-gradient(135deg, #1a4a2e, #0f2e1c);
  border: 2px solid var(--clr-success);
}

.result-error {
  background: linear-gradient(135deg, #4a1a1a, #2e0f0f);
  border: 2px solid var(--clr-error);
}

.result-paused {
  background: linear-gradient(135deg, var(--clr-surface), var(--clr-bg));
  border: 2px solid var(--clr-surface-2);
}

.result-countdown {
  background: linear-gradient(135deg, var(--clr-surface), var(--clr-bg));
  border: 2px solid var(--clr-gold);
}

.countdown-timer {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--clr-gold);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  margin-top: 10px;
}

.result-emoji { font-size: 4rem; margin-bottom: 12px; }
.result-text  { font-size: 1.5rem; font-weight: 900; margin-bottom: 8px; }
.result-sub   { font-size: 1.1rem; color: var(--clr-text-muted); margin-bottom: 8px; }
.result-dismiss { font-size: 0.95rem; color: var(--clr-text-muted); }

/* ── Gallery section ─────────────────────────────────────────── */
.gallery-section {
  padding: 8px 16px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-heading {
  font-size: clamp(1.3rem, 3.5vw, 1.7rem);
  font-weight: 900;
  color: var(--clr-gold);
  text-align: center;
  margin-bottom: 24px;
  padding-top: 8px;
}

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

/* Wider grid on larger screens */
@media (min-width: 500px) {
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
}
@media (min-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
}

.gallery-thumb {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: var(--clr-surface);
  position: relative;
  touch-action: manipulation;
  transition: transform var(--transition), box-shadow var(--transition);
  min-height: 48px;  /* touch target */
}

.gallery-thumb:hover,
.gallery-thumb:focus-visible {
  transform: scale(1.04);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  outline: 3px solid var(--clr-gold);
  outline-offset: 2px;
  z-index: 1;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

/* ── Like button (gallery tile) ──────────────────────────────── */
.like-btn {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(10, 5, 30, 0.72);
  border: none;
  border-radius: 20px;
  padding: 4px 9px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #e8e0ff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(4px);
  transition: background 0.15s, transform 0.1s;
  touch-action: manipulation;
  min-height: 30px;
  line-height: 1;
  z-index: 2;
}
.like-btn:hover       { background: rgba(45, 27, 105, 0.9); }
.like-btn.liked       { background: rgba(245, 166, 35, 0.92); color: #1a1035; }
.like-btn.liked:hover { background: rgba(245, 166, 35, 1); }
.like-btn:active      { transform: scale(0.9); }

/* ── Like button (lightbox) ──────────────────────────────────── */
.lb-like-wrap {
  position: absolute;
  bottom: 14px;
  right: 20px;
}
.lb-like-btn {
  background: rgba(10, 5, 30, 0.78);
  border: 2px solid rgba(75, 53, 160, 0.7);
  border-radius: 24px;
  padding: 8px 20px;
  font-size: 1.1rem;
  font-weight: 900;
  color: #e8e0ff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  touch-action: manipulation;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  backdrop-filter: blur(6px);
}
.lb-like-btn:hover       { background: rgba(45, 27, 105, 0.95); border-color: rgba(156, 127, 255, 0.9); }
.lb-like-btn.liked       { background: rgba(245, 166, 35, 0.92); border-color: #f5a623; color: #1a1035; }
.lb-like-btn.liked:hover { background: rgba(245, 166, 35, 1); }
.lb-like-btn:active      { transform: scale(0.94); }
.lb-like-wrap[hidden]    { display: none; }

.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--clr-text-muted);
  padding: 40px 0;
  font-size: 1.1rem;
}

/* ── Lightbox ────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 5, 30, 0.94);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0 16px 16px;
  animation: fadeIn 0.2s ease;
  cursor: zoom-out;
}

.lightbox[hidden] { display: none; }

/* ── Info panel (title + caption above image) ── */
.lb-info-panel {
  width: 100%;
  padding: 16px 80px 10px 20px; /* right clears the ✕ button */
  flex-shrink: 0;
}
.lb-title {
  font-size: 1rem;
  font-weight: 900;
  color: var(--clr-text);
  line-height: 1.3;
  min-height: 1.3em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: default;
}
.lb-caption-text {
  font-size: 0.88rem;
  color: var(--clr-text-muted);
  margin-top: 5px;
  line-height: 1.45;
  min-height: calc(1.45em * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: default;
}

.lightbox-img {
  max-width: min(100%, calc(100% - 120px)); /* clear prev/next buttons */
  max-height: calc(100vh - 100px); /* always leaves room for the info panel */
  border-radius: var(--radius-md);
  box-shadow: 0 12px 48px rgba(0,0,0,0.6);
  cursor: default;
  object-fit: contain;
  flex-shrink: 1;
  min-height: 0;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: rgba(45,27,105,0.85);
  color: var(--clr-text);
  border: 2px solid var(--clr-text-muted);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.lightbox-close:hover { background: var(--clr-error); border-color: var(--clr-error); }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(45,27,105,0.75);
  color: var(--clr-text);
  border: none;
  width: 52px;
  height: 72px;
  border-radius: 10px;
  font-size: 2.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), opacity var(--transition);
  touch-action: manipulation;
}
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }
.lightbox-prev:hover:not(:disabled),
.lightbox-next:hover:not(:disabled) { background: rgba(45,27,105,0.95); }
.lightbox-prev:disabled,
.lightbox-next:disabled { opacity: 0.15; cursor: default; }


/* ── Animations ──────────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── Name byline ─────────────────────────────────────────────── */
.name-byline {
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--clr-text-muted);
  text-align: center;
}

.name-change-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--clr-text-muted);
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.name-change-btn:hover { color: var(--clr-text); }

/* ── Name prompt modal ───────────────────────────────────────── */
.name-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(10, 5, 30, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.2s ease;
}

.name-modal[hidden] { display: none; }

.name-modal-card {
  background: var(--clr-surface);
  border-radius: var(--radius-lg);
  padding: 40px 32px 32px;
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  text-align: center;
}

.name-modal-emoji { font-size: 3rem; line-height: 1; }

.name-modal-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--clr-gold);
}

.name-modal-sub {
  font-size: 1rem;
  color: var(--clr-text-muted);
  margin-top: -6px;
}

.name-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 2px solid var(--clr-surface-2);
  background: var(--clr-bg);
  color: var(--clr-text);
  font-size: 1.1rem;
  font-family: inherit;
  text-align: center;
}

.name-input:focus {
  outline: none;
  border-color: var(--clr-gold);
}

.name-input::placeholder { color: #6b5ca5; }

.name-skip {
  background: none;
  border: none;
  color: var(--clr-text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
  padding: 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.name-skip:hover { color: var(--clr-text); }

/* ── Privacy notice & modal ──────────────────────────────────── */
.privacy-notice {
  margin-top: 28px;
  font-size: 0.78rem;
  color: var(--clr-text-muted);
  text-align: center;
  line-height: 1.7;
  padding: 0 20px 12px;
}

.privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(10, 5, 30, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.privacy-modal[hidden] { display: none; }

.privacy-modal-card {
  background: var(--clr-surface);
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  width: 100%;
  max-width: 540px;
  max-height: 88vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
  position: relative;
}

.privacy-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: var(--clr-text-muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  font-family: inherit;
}

.privacy-close:hover { color: var(--clr-text); }

.privacy-modal-title {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--clr-gold);
  margin: 0 0 18px;
  padding-right: 32px;
}

.privacy-section {
  margin-bottom: 20px;
}

.privacy-section:last-child { margin-bottom: 0; }

.privacy-section h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--clr-text);
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.privacy-section p {
  font-size: 0.88rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
  margin: 0 0 6px;
}

.privacy-section p:last-child { margin-bottom: 0; }

.privacy-section strong {
  color: var(--clr-text);
  font-weight: 700;
}

/* ── Paused-while-open overlay modal ─────────────────────────── */
.paused-modal {
  position: fixed;
  inset: 0;
  z-index: 700;
  background: rgba(10, 5, 30, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.3s ease;
}

.paused-modal[hidden] { display: none; }

.paused-modal-card {
  background: linear-gradient(135deg, var(--clr-surface), var(--clr-bg));
  border: 2px solid var(--clr-surface-2);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
  text-align: center;
}

.paused-modal-emoji { font-size: 3.5rem; line-height: 1; }

.paused-modal-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--clr-text);
}

.paused-modal-msg {
  font-size: 1rem;
  color: var(--clr-text-muted);
  line-height: 1.55;
}

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

/* Smooth show/hide via JS (add/remove .visible) */
.fade-in { animation: fadeIn 0.25s ease forwards; }

/* ── Timer selfie camera ── */
.btn-timer-selfie { display:block; width:100%; max-width:340px; margin:12px auto 0; padding:14px; background:#2d1b69; color:#c9b8ff; border:2px solid #4b35a0; border-radius:14px; font-size:1rem; font-weight:700; font-family:'Nunito',sans-serif; cursor:pointer; text-align:center; }
.btn-timer-selfie:hover { background:#3d2494; color:#f0ebff; }
.viewfinder-wrap { position:relative; width:100%; max-width:400px; margin:0 auto 16px; border-radius:16px; overflow:hidden; background:#000; aspect-ratio:3/4; }
#viewfinder-video { width:100%; height:100%; object-fit:cover; display:block; transform:scaleX(-1); }
#viewfinder-video.rear { transform:none; }
.timer-overlay { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; background:rgba(0,0,0,0.45); font-size:6rem; font-weight:900; color:#fff; font-family:'Nunito',sans-serif; pointer-events:none; }
.viewfinder-actions { display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin-bottom:16px; max-width:400px; margin-left:auto; margin-right:auto; }
.viewfinder-actions .btn { flex:1; min-width:90px; }

/* ── Party code lookup ──────────────────────────────────────── */
.result-lookup {
  background: linear-gradient(135deg, #1e1248, #120b30);
  border: 2px solid #4b35a0;
}
.code-form {
  width: 100%;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.code-input {
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 2px solid var(--clr-surface-2);
  background: var(--clr-bg);
  color: var(--clr-text);
  font-size: 2rem;
  font-family: inherit;
  font-weight: 900;
  text-align: center;
  letter-spacing: 0.25em;
}
.code-input:focus { outline: none; border-color: var(--clr-gold); }
.code-input::placeholder { color: #6b5ca5; font-size: 1.1rem; font-weight: 400; letter-spacing: 0.1em; }
.btn-code-go {
  width: 100%;
  padding: 16px;
  background: var(--clr-gold);
  color: #1a1035;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 900;
  font-family: inherit;
  cursor: pointer;
  min-height: 56px;
  touch-action: manipulation;
  transition: transform var(--transition), background var(--transition);
}
.btn-code-go:hover { background: var(--clr-gold-dark); }
.btn-code-go:active { transform: scale(0.96); }

/* ── DNG / Apple ProRAW conversion notice ────────────────────── */
.dng-notice {
  display: flex; align-items: flex-start; gap: 10px;
  background: color-mix(in srgb, var(--clr-gold) 10%, var(--clr-surface));
  border: 1px solid color-mix(in srgb, var(--clr-gold) 40%, transparent);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin: 0 0 16px;
  font-size: 0.85rem; line-height: 1.5;
  color: var(--clr-text);
}
.dng-notice strong { color: var(--clr-gold); }
.dng-notice-body { flex: 1; }
.dng-notice-dismiss {
  flex-shrink: 0; background: none; border: none; cursor: pointer;
  color: var(--clr-text-muted); font-size: 1.2rem; line-height: 1;
  padding: 0 0 0 6px; opacity: 0.6; transition: opacity var(--transition);
  align-self: flex-start;
}
.dng-notice-dismiss:hover { opacity: 1; }