@font-face {
  font-family: 'reneeswatch';
  src: url('reneeswatch2.woff2') format('woff2');
  font-display: swap;
}

:root {
  --palette-bar-height: 130px;
}

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

body {
  background: #1a1a1a;
  color: #f0ece4;
  font-family: "Quicksand", Arial, Helvetica, sans-serif;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-top: 68px;
  /* clear the fixed controls bar */
}

#dropzone {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  border: 2px dashed #4a4a4a;
  max-height: 70vh;
  max-height: 70dvh;
  margin: auto 10vw;
  padding: 20px;
  border-radius: 8px;
  transition: border-color 0.2s;
}

#dropzone:hover,
#dropzone.drag-over {
  border-color: #c8a96e;
}

#dropzone h1 {
  text-align: center;
  font-size: clamp(1.2rem, 5vw, 2rem);
  text-transform: uppercase;
  font-weight: 200;
  letter-spacing: 0.08em;
  color: #c8a96e;
  margin-top: 0;
  padding-top: 0;
}

#dropzone p {
  text-align: center;
  font-size: 0.85rem;
  color: #888;
  letter-spacing: 0.04em;
}

#dropzone img {
  display: block;
  max-height: 200px;
  max-width: 40vw;
}

#dropzone .icon {
  font-size: 3rem;
  opacity: 0.4;
}

#fileInput {
  display: none;
}

/* ── Canvas stage — fullscreen ── */
#stage {
  display: none;
  position: fixed;
  inset: 0;
  background: #1a1a1a;
}

#canvasContainer {
  width: 100%;
  height: 100%;
}

#origCanvasWrapper {
  display: none;
}

#activeCanvasWrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

canvas {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  transform-origin: center center;
  touch-action: none;
  /* we handle all touch ourselves */
  will-change: transform;
}


/* ── Controls overlay ── */
#controls-wrapper {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;       /* ← add this */
}
#controls-wrapper > * {        /* ← add this rule */
  pointer-events: auto;
}

#controls {
  background: rgba(40, 40, 40, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
  white-space: nowrap;
}

/* Handle horizontal layout for desktop */
.controls-content {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e4d3af;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 8px 14px;
  cursor: pointer;
  border-radius: 10px;
  transition: background .15s ease, border-color .15s ease, transform .15s ease, opacity .15s ease;
}

.btn:hover {
  background: rgba(200, 169, 110, 0.12);
  border-color: rgba(200, 169, 110, 0.35);
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.btn:disabled:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: #e4d3af;
}

.btn.active {
  background: #c8a96e;
  color: #111;
  border-color: #c8a96e;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.control-group--last {
  border-right: none;
  padding-right: 0;
}



#peekBtn {
  margin-top: 16px;
  margin-right: 16px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(150, 150, 255, 1);
  border: 1px solid white;
  color: white;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border-radius: 20px;
  pointer-events: auto;
  cursor: pointer;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  display: none;
}

#peekBtn.visible {
  display: block;
}

#aboutCloseBtn {
  background: rgba(150, 150, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.7);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 16px 24px;
  cursor: pointer;
  border-radius: 10px;
  transition: background .15s ease, border-color .15s ease, opacity .15s ease;
}

#aboutCloseBtn:hover {
  background: rgba(150, 150, 255, 1);
  border: 1px solid rgba(255, 255, 255, 1);
}




/* ── Colour readout ── */
#readout {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  align-items: center;
  gap: 14px;
  background: rgba(26, 26, 26, 0.88);
  border: 1px solid #333;
  border-radius: 3px;
  padding: 10px 18px;
  backdrop-filter: blur(8px);
  z-index: 20;
  font-family: 'Courier New', monospace;
}

#swatch {
  width: 20px;
  height: 20px;
  border-radius: 2px;
  border: 1px solid #444;
  flex-shrink: 0;
}

#hexCode {
  font-size: 0.8rem;
  color: #f0ece4;
}

#copyBtn {
  font-size: 0.7rem;
  padding: 4px 10px;
  opacity: 0.7;
}

#copyBtn:hover {
  opacity: 1;
  background: #c8a96e;
  color: #1a1a1a;
}

/* ── Processing indicator ── */
#processing {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.75);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: #c8a96e;
  z-index: 30;
}

#progressBar {
  width: 180px;
  height: 2px;
  background: #333;
  border-radius: 2px;
  overflow: hidden;
}

#progressFill {
  height: 100%;
  background: #c8a96e;
  width: 0%;
  transition: width 0.15s;
}

/* ── Palette bar — overlaid at bottom of stage ── */
#paletteBar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--palette-bar-height);
  clip-path: inset(-60px 0 0 0);
  background: rgba(17, 17, 17, 0.3);
  transition: background 0.2s ease;
  overflow: visible;
  z-index: 200;
}

#paletteBar.modal-active {
  background: rgba(17, 17, 17, 1);
}

#paletteBarInner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 10px;
  padding: 0 12px;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
}

#paletteBar .pal-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  flex-shrink: 0;
}

#paletteBar .pal-swatch .pal-colour {
  height: calc(var(--palette-bar-height) - 30px);
  width: auto;
  border-radius: 6px;
  object-fit: contain;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-sizing: border-box;
}

#paletteBar .pal-swatch:hover .pal-colour {
  border-color: rgba(255, 255, 255, 1);
}

#paletteBar .pal-swatch .pal-hex {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem;
  font-family: monospace;
  color: #000;
}

.pal-swatch.copied .pal-hex {
  color: #c8a96e;
}

.pal-swatch {
  position: relative;
  transition: transform 0.15s ease;
  z-index: 1;
}

.pal-swatch.zoomed {
  transform: scale(1.2);
  transform-origin: 50% 50%;
  z-index: 10;
}

.pal-tooltip {
  position: absolute;
  top: -2px;
  left: -2px;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(150, 150, 255, 1);
  border: 1px solid white;
  color: white;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border-radius: 30px;
  pointer-events: auto;
  cursor: pointer;
  z-index: 10;
}

.pal-tick {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #333;
  z-index: 5;
  appearance: auto;
  -webkit-appearance: checkbox;
}

.pal-swatch.excluded {
  opacity: 0.35;
}

.pal-swatch.excluded .pal-colour {
  border-color: rgba(255, 255, 255, 0.1);
}

#paletteBar .pal-swatch.selected .pal-colour {
  border: 2px solid white;
}

#paletteBar .pal-swatch.selected .pal-hex {
  color: white;
}

#paletteCopyAll {
  margin-left: auto;
  font-size: 0.7rem;
  padding: 4px 10px;
  flex-shrink: 0;
  opacity: 0.6;
}

#paletteCopyAll:hover {
  opacity: 1;
}




/* ── Swatch Modal Layer ── */
#swatchModal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: var(--modal-bottom, 0px);
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(12px);
  display: none;
  justify-content: center;
  align-items: center;
  /* or flex-start */
  z-index: 500;
  opacity: 0;
  transition: opacity 0.25s ease;
  padding: 8px 0 8px;
}

#swatchModal.show {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: #f8f8ee;
  border: 1px solid #3a3a3a;
  padding: 24px;
  border-radius: 8px;
  max-width: 700px;
  width: 90%;
  max-height: 100%;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  transform: scale(0.75);
  transition: transform 0.25s ease;
  overflow-y: scroll;
}

#swatchModal.show .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: #888;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.15s;
  z-index: 10;
}

.modal-close:hover {
  color: #c8a96e;
}

.modal-body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  margin-top: 12px;
  align-items: start;
}

#modalImage {
  max-height: 280px;
  object-fit: contain;
  border-radius: 2px;
  padding: 0;
  border-radius: 8px;
}

#modalTitle {
  font-family: 'reneeswatch';
  letter-spacing: -0.1em;
  font-size: 1.6rem;
  color: #c8a96e;
  border-bottom: 1px solid #333;
  padding-bottom: 8px;
  margin-bottom: 24px;
}

.ingredients-panel {
  text-align: left;
}

.ingredients-panel h4 {
  font-family: 'reneeswatch';
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: -0.1em;
  color: #666;
  margin-bottom: 12px;
}

.ingredient-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  font-family: 'reneeswatch';
  font-size: 1.4rem;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: -0.1em;
}

.ingredient-name {
  color: #333;
}

.ingredient-pct {
  color: #c8a96e;
}

#ingredientsList {
  border-bottom: 1px solid #eee;
}

.modal-description {
  margin-top: 16px;
  padding-top: 14px;
  color: #555;
  font-family: 'reneeswatch';
  font-size: 1.4rem;
  line-height: 1.5;
  letter-spacing: -0.1em;
}

.modal-color-preview {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #333;

  /* Stack the header group and the description vertically */
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* New wrapper to keep these two side-by-side */
.preview-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-color-preview h5 {
  font-family: 'reneeswatch';
  font-size: 1.6rem;
  letter-spacing: -0.1em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 0;
  white-space: nowrap;
}

.modal-color-block {
  width: 30px;
  height: 30px;
  border-radius: 30px;
}

.modal-matched-to {
  color: #555;
  font-family: 'reneeswatch';
  font-size: 1.4rem;
  line-height: 1.5;
  letter-spacing: -0.1em;
}

.modal-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

#modalLogo {
  display: block;
  max-height: 60px;
  margin: 0 auto;
  margin-top: 20px;
}

#modalLogostrap {
  display: block;
  text-align: center;
  margin-top: 2px;
  font-family: 'reneeswatch';
  font-size: 0.8rem;
  color: #333;
}



/* ── Swatch Picker Modal ── */
#swatchPickerModal {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.25s ease;
}

#swatchPickerModal.show {
  display: flex;
  opacity: 1;
}

#swatchPickerContent {
  background: #222;
  border: 1px solid #3a3a3a;
  padding: 24px 0 24px 24px;
  /* no right padding — scrollbar sits at edge */
  border-radius: 8px;
  width: 90%;
  max-width: 560px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

#swatchPickerModal.show #swatchPickerContent {
  transform: scale(1);
}

#swatchPickerHeader {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 40px;
  /* clear the close button */
  margin-bottom: 8px;
}

#swatchPickerTitle {
  font-size: 1.6rem;
  font-weight: normal;
  margin: 0 8px 0 0;
}

#scopeSelect {
  background: var(--bg-tertiary, #2a2a2a);
  border: 1px solid var(--border, #444);
  border-radius: 6px;
  color: var(--text-primary, #eee);
  font-size: 13px;
  padding: 4px 8px;
  cursor: pointer;
  appearance: auto;
  flex-shrink: 0;
}

#scopeSelect option {
  background: #ffffff;
  color: #000000;
  font-size: 16px;
}

#scopeSelect:focus {
  outline: none;
  border-color: var(--accent, #c8a96e);
}

#swatchPickerActions {
  display: flex;
  gap: 8px;
  margin: 14px 0 16px;
  flex-shrink: 0;
  padding-right: 24px;
}

#swatchPickerList {
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: #444 transparent;
}

/* ── Picker rows ── */
.sp-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 12px 8px 0;
  border-bottom: 1px solid #2a2a2a;
  cursor: pointer;
}

.sp-row:last-child {
  border-bottom: none;
}

.sp-row:hover {
  background: rgba(200, 169, 110, 0.06);
}

.sp-card {
  position: relative;
  flex-shrink: 0;
}

.sp-card-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  display: block;
  border-radius: 3px;
  outline: 1px solid rgba(255, 255, 255, 0.25);
  outline-offset: -1px;
  transition: outline-color 0.15s ease;
}

.sp-row:hover .sp-card-img {
  outline-color: rgba(255, 255, 255, 0.7);
}

.sp-card-tick {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 14px;
  height: 14px;
  cursor: pointer;
  accent-color: #333;
  z-index: 5;
  appearance: auto;
  -webkit-appearance: checkbox;
}

.sp-card-label {
  font-size: 0.85rem;
  color: #c8a96e;
  letter-spacing: 0.03em;
  transition: opacity 0.15s;
}

/* Deselected: image stays opaque, only label fades */
.sp-row.deselected .sp-card-img {
  outline-color: rgba(255, 255, 255, 0.1);
}

.sp-row.deselected .sp-card-label {
  opacity: 0.35;
}



/* ── Swatch Explorer Modal ── */
#swatchExplorerModal {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 15, 0.88);
  backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 400;
  opacity: 0;
  transition: opacity 0.25s ease;
}

#swatchExplorerModal.show {
  display: flex;
  opacity: 1;
}

#swatchExplorerContent {
  background: #1e1e1e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  width: 90%;
  max-width: 640px;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

/* Breadcrumb */
#explorerBreadcrumb {
  padding: 18px 48px 16px 20px;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: #666;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.crumb {
  cursor: default;
  transition: color 0.15s;
}

.crumb-home {
  cursor: pointer;
}

.crumb-home:hover {
  color: #c8a96e;
}

.crumb-active {
  color: #c8a96e;
  cursor: default;
}

.crumb-cat {
  cursor: default;
}

.crumb-sep {
  color: #666;
}

/* Scrollable panels */
#explorerCategoryPanel,
#explorerSwatchPanel {
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  padding: 0px 20px 20px;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
}

/* Category grid — 3×2 desktop, 2×3 mobile */
#explorerCategoryGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.exp-cat-card {
  position: relative;
  background: transparent;
  border: none;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  aspect-ratio: 1 / 1;
  outline: 2px solid rgba(255, 255, 255, 0.2);
  outline-offset: -2px;
  transition: outline-color 0.15s ease;
}

.exp-cat-card:hover {
  outline-color: #FFF;
}

.exp-cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.exp-cat-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff99;
  font-size: 1.4rem;
  letter-spacing: 0.1em;
}

.exp-cat-label:hover {
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

/* Swatch grid in category — same layout */
#explorerSwatchGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.exp-swatch-card {
  position: relative;
  background: transparent;
  border: none;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  aspect-ratio: 1 / 1;
  outline: 2px solid rgba(255, 255, 255, 0.2);
  outline-offset: -2px;
  transition: outline-color 0.15s ease;
}

.exp-swatch-card:hover {
  outline-color: #FFF;
}

.exp-swatch-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.exp-swatch-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px 8px;
  color: #ffffffaa;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-align: center;
  line-height: 1.2;
}

.exp-swatch-label:hover {
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}


@media (max-width: 960px) {

  .btn .btn-text {
    display: none;
  }

  .btn {
    padding: 8px;
    min-width: 40px;
    /* Optional */
    justify-content: center;
  }

  .btn i {
    margin: 0;
    font-size: 1.1rem;
    /* Optional */
  }

  .modal-body {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .modal-image-wrapper {
    height: 40vw;
    /* controls the space reserved */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
  }

  #modalImage {
    width: 40vw;
    max-width: none;
    max-height: none;

    transform: rotate(90deg);
    transform-origin: center center;

    display: block;
  }

  #explorerCategoryGrid,
  #explorerSwatchGrid {
    grid-template-columns: repeat(2, 1fr);
  }

  .exp-cat-label {
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
    font-size: 1.1rem;
  }

  .exp-swatch-label {
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
    font-size: 0.8rem;
  }

}

/* ── Explorer back-breadcrumb inside swatchModal ── */
#modalExplorerCrumb {
  margin-bottom: 10px;
}

#modalBackToExplorer {
  background: none;
  border: none;
  color: #c8a96e;
  font-size: 0.75rem;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
  opacity: 0.8;
  transition: opacity 0.15s;
}

#modalBackToExplorer:hover {
  opacity: 1;
}

/* ── Overflow popup menu ── */
#overflowMenu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: -8px;
  background: #1e1e1e;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  min-width: 200px;
  z-index: 600;
  overflow: hidden;
  padding: 0;
}

#overflowMenu.show {
  display: block;
}

.overflow-item {
  display: block;
  width: 100%;
  padding: 16px 18px;
  background: none;
  border: none;
  color: #e4d3af;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
  white-space: nowrap;
}

.overflow-item:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.overflow-item:hover {
  background: rgba(200, 169, 110, 0.12);
  color: #c8a96e;
}

/* ── About modal — mirrors explorer modal ── */
.infoModal {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 15, 0.88);
  backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 700;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.infoModal.show {
  display: flex;
  opacity: 1;
}

.infoModalContent {
  background: #1e1e1e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  width: 90%;
  max-width: 480px;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.infoBody {
  overflow-y: auto;
  flex: 1;
  padding: 20px 20px 24px;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
  color: #b0a898;
  line-height: 1.7;
}

.infoLogo {
  display: block;
  max-height: 150px;
  max-width: 150px;
  margin: 0 auto 16px;
}

.infoTitle {
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  font-weight: normal;
  color: #c8a96e;
  text-align: center;
  margin-bottom: 0;
}

.infoVersion {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: #c8a96e;
  text-align: center;
  margin: -6px 0 20px 0;
}

.infoBody p {
    margin: 0 0 1em;
}

.infoBody h3 {
  margin-top: 20px;
}

.infoBody a {
  color: #c8a96e;
  text-decoration: none;
}

.infoBody a:hover {
  text-decoration: underline;
}

.infoSignature {
  font-family: 'reneeswatch';
  text-transform: uppercase;
  letter-spacing: -0.08em;
  font-size: 2rem;
  color: #c8a96e;
}

.infoBody p+.infoSignature {
  margin-top: -16px;
}

/* ── Splash modal — intro screen, warmer accent background ── */
.splashModalContent {
  background: #333;
  border: none
}

.splashModal .infoBody {
  text-align: center;
  color: #ffffffcc;
  padding: 32px 28px 28px;
}

.splashTagline {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #ffffffcc;
}