:root {
  --max-container-width: 350px;
  --scrollbar-width: 8px;
  --scrollbar-track-bg: #2d2d2d;
  --scrollbar-thumb-radius: 4px;
  --text-size-base: clamp(16px, 1.4vw, 18px);
  --text-size-small: clamp(12px, 1vw, 14px);
  --button-padding-base: clamp(2px, 0.6vw, 3px) clamp(6px, 1.2vw, 8px);
  --button-padding-small: 3px 8px;
  --white: #ffffff;
  --tool-link-color: #28a745;
  --tool-link-hover-color: #b300b4;
  --element-height: 32px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #2d2d2d;
  color: var(--white);
  font-family: Arial, sans-serif;
  overflow-x: hidden;
  overflow-y: scroll;
  position: relative;
  height: 100vh;
  overscroll-behavior: none;
}

/* ── SCROLLBAR widths ── */
body::-webkit-scrollbar,
#dropdown::-webkit-scrollbar,
.container .domain-container::-webkit-scrollbar,
.container #info-container::-webkit-scrollbar,
#tools-submenu::-webkit-scrollbar { width: var(--scrollbar-width); }

/* ── SCROLLBAR tracks ── */
body::-webkit-scrollbar-track,
#dropdown::-webkit-scrollbar-track,
.container .domain-container::-webkit-scrollbar-track,
.container #info-container::-webkit-scrollbar-track,
#tools-submenu::-webkit-scrollbar-track { background: var(--scrollbar-track-bg); }

/* ── SCROLLBAR thumbs ── */
body::-webkit-scrollbar-thumb,
#dropdown::-webkit-scrollbar-thumb,
.container .domain-container::-webkit-scrollbar-thumb,
.container #info-container::-webkit-scrollbar-thumb,
#tools-submenu::-webkit-scrollbar-thumb { background: #888; border-radius: var(--scrollbar-thumb-radius); }

body.scroll-locked::-webkit-scrollbar-thumb { background-color: #666; }

/* ── SCROLLBAR thumb hovers ── */
#dropdown::-webkit-scrollbar-thumb:hover,
.container .domain-container::-webkit-scrollbar-thumb:hover,
.container #info-container::-webkit-scrollbar-thumb:hover,
#tools-submenu::-webkit-scrollbar-thumb:hover { background: #aaa; }

body.scroll-locked,
body.popup-active { position: fixed; width: 100%; }
body.popup-active { overflow: hidden !important; }

#wrapper {
  position: relative;
  width: 90vw;
  max-width: var(--max-container-width);
  aspect-ratio: 1 / 1;
  margin: 100px auto 0;
}

#container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 20%;
  z-index: 1;
}

#container .stacked-image {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  user-select: none;
  z-index: 0;
}

#image-sylvester { display: none; z-index: 1; }
#image-135x { z-index: 2; }
#image-identity { z-index: 3; }
#unlocked .image-stack #image-sylvester { display: block; }

#main-cat {
  width: 100%; height: 100%;
  display: block;
  user-select: none;
  position: relative;
  z-index: 1;
}

#red-zone {
  position: absolute;
  width: 30%; height: 20%;
  top: 38%; left: 37%;
  z-index: 2;
  pointer-events: none;
}

#puzzle-piece {
  touch-action: none;
  transition: transform 0.2s ease, filter 0.2s ease;
  position: absolute;
  width: 30.9%;
  aspect-ratio: 1 / 1;
  top: 77%; left: 70%;
  cursor: grab;
  z-index: 3;
  user-select: none;
  user-drag: none;
}

#puzzle-piece.active {
  transform: scale(1.1);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

#unlocked {
  display: none;
  position: absolute;
  width: 100%; height: 100%;
  top: 0; left: 0;
  z-index: 2;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.spacer { height: 285vh; width: 100%; flex-shrink: 0; }

#current-domain {
  position: absolute;
  top: 5%; left: 50%;
  transform: translateX(-50%);
  font-size: calc(var(--text-size-base) * 1.5);
  font-weight: bold;
  z-index: 4;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  margin-top: -10px;
  overflow-wrap: break-word;
  max-width: 95vw;
}

.image-stack {
  position: absolute;
  top: 20%; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
}

.stacked-image {
  position: absolute;
  width: 100%; height: 100%;
  object-fit: contain;
  display: none;
  user-select: none;
}

#identity-text {
  position: absolute;
  top: calc(20% + 100% + 20px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: calc(var(--text-size-base) * 1.25);
  user-select: text;
  flex-wrap: nowrap;
  justify-content: center;
  max-width: 90vw;
  white-space: nowrap;
  z-index: 3;
  text-align: center;
  line-height: 1.5;
  margin-top: 10px;
  margin-bottom: 10px;
}

#identity-text a:not(.identity-link) {
  font-size: calc(var(--text-size-base) * 1.25);
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
  overflow-wrap: break-word;
}

#identity-text a:not(.identity-link):hover { color: #000000; }

#identity-text a.identity-link {
  font-size: calc(var(--text-size-base) * 1.25);
  background-color: #28a745;
  color: var(--white);
  border-radius: 50px;
  padding: var(--button-padding-base);
  font-weight: bold;
  display: block;
  text-decoration: none;
  text-align: center;
  min-height: 20px;
  min-width: 100px;
  line-height: 1.2;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
}

#grey-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 55px;
  background-color: rgba(45, 45, 45, 0.95);
  z-index: 100;
  pointer-events: none;
}

#grey-bar.scrolled { box-shadow: 0 1px 12px rgba(0, 0, 0, 0.1); }

#top-bar {
  position: fixed;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  z-index: 101;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90vw;
  max-width: var(--max-container-width);
  gap: 8px;
}

#audio-buttons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
}

#audio-buttons img.audio-button {
  width: 22px; height: 22px;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
  flex-shrink: 0;
}

#audio-buttons img.audio-button:hover { transform: scale(1.1); filter: hue-rotate(183deg) brightness(1.2); }
#audio-buttons img.audio-button:active { transform: scale(0.95); }

#hamburger {
  flex-shrink: 0;
  width: 26px;
  height: 22px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  z-index: 1000;
}

.line { width: 100%; height: 3.5px; background-color: var(--white); border-radius: 3px; }

#dropdown {
  display: none;
  position: fixed;
  top: 45px; left: 50%;
  transform: translateX(-50%);
  background-color: rgba(45, 45, 45, 0.95);
  border-radius: 5px;
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.1);
  z-index: 20;
  padding: 10px;
  width: calc(90vw - 20px);
  max-width: 330px;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}

#dropdown a,
.tool-subitem-content a.tool-link {
  color: var(--white);
  text-decoration: none;
  padding: 8px 15px;
  font-size: var(--text-size-base);
  text-align: center;
  white-space: nowrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  transition: background-color 0.3s ease;
}

#dropdown a { display: block; }

#dropdown a:hover,
.tool-subitem-content a.tool-link:hover { background-color: #555; }

#contact-email,
#tools-submenu {
  display: none;
  font-size: var(--text-size-base);
  text-align: center;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
}

#tools-submenu {
  max-height: 160px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  padding: 5px 0;
  direction: rtl;
}

#tools-submenu > * { direction: ltr; }

.tool-subitem { display: flex; justify-content: center; padding: 4px 0; }
.tool-subitem-content { display: flex; align-items: center; justify-content: center; gap: 5px; }

.tool-subitem-content a.question-mark-link { display: flex; align-items: center; justify-content: center; text-decoration: none; }

.question-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(12px, 1vw, 18px);
  height: clamp(12px, 1vw, 18px);
  border-radius: 50%;
  background: #ccc;
  color: #000;
  font-weight: bold;
  font-size: var(--text-size-base);
  transition: background-color 0.3s ease;
}

.question-mark:hover { background-color: #999; }

#tool-popup .popup-content {
  position: relative;
  padding: clamp(10px, 3vw, 20px);
  border-radius: 10px;
  width: fit-content;
  max-width: 80vw;
  height: fit-content;
  overflow-y: auto;
  text-align: left;
  font-size: var(--text-size-base);
  line-height: 1.5;
  background-image: url('https://harlequin-deep-coral-872.mypinata.cloud/ipfs/QmTqTdcXAU6ewAn28xiV2fXmznMNz7sRpmyhfm73BmS3uc/trans96.png');
  background-size: cover;
  background-position: center;
  z-index: 1001;
}

#tool-popup .popup-content p { margin-bottom: 10px; }

#dropdown-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding-top: 10px;
  border-top: 1px solid #555;
  margin-top: 10px;
}

#dropdown-icons img { width: clamp(24px, 7vw, 28px); height: clamp(24px, 7vw, 28px); object-fit: contain; }

#collect {
  display: none;
  text-align: center;
  margin: 80px auto 0;
  width: calc(100% - 40px);
  max-width: var(--max-container-width);
}

#collect-header {
  font-size: calc(var(--text-size-base) * 1.5);
  font-weight: bold;
  margin-bottom: 20px;
}

#collect-domains {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin: 0 auto;
  width: calc(100% - 20px);
  max-width: var(--max-container-width);
}

#collect-domains span {
  font-size: calc(var(--text-size-base) * 1.25);
  overflow-wrap: break-word;
  word-break: break-word;
}

#collect-total {
  margin: 20px auto 0;
  font-size: var(--text-size-base);
  font-weight: bold;
  width: fit-content;
}

#shoes {
  width: calc(100% - 40px);
  margin: 20px auto;
  display: none;
}

#kal {
  width: calc(100% - 40px);
  margin: 20px auto;
  max-width: var(--max-container-width);
  display: none;
}

#domains {
  position: relative;
  z-index: 2;
  display: none;
  margin: 100px auto 0;
  width: calc(100% - 40px);
  max-width: var(--max-container-width);
}

.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 702px;
  margin: 250px auto 0;
  gap: 20px;
  padding: 0 20px;
}

.container .domain-container,
.container #info-container {
  width: 90vw;
  max-width: 341px;
  height: 435px !important;
  max-height: 435px !important;
  min-height: 435px !important;
  background-color: #2d2d2d;
  padding: 3px 11px 3px 3px;
  overflow-y: scroll;
  overflow-x: hidden;
  position: relative;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.domain-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto 3px;
  width: 100%;
  max-width: 341px;
  position: relative;
  gap: 6px;
  flex-wrap: nowrap;
}

#section-dropdown,
#search-bar {
  height: var(--element-height);
  font-size: var(--text-size-small);
  color: var(--white);
  background-color: #444;
  border: none;
  outline: none;
  border-radius: 5px;
  padding: 0 6px;
  flex: 1;
}

#section-dropdown {
  max-width: clamp(90px, 35vw, 120px);
  order: 1;
}

#search-bar {
  max-width: clamp(80px, 30vw, 110px);
  order: 3;
  transition: opacity 0.3s ease;
}

#filter-button {
  height: var(--element-height);
  font-size: var(--text-size-small);
  color: var(--white);
  background-color: #28a745;
  border: none;
  border-radius: 5px;
  padding: 0 8px;
  cursor: pointer;
  flex: 0 0 auto;
  width: clamp(60px, 20vw, 80px);
  order: 2;
  display: block;
  margin: 0 auto;
}

#filter-dropdown {
  display: none;
  position: absolute;
  top: calc(var(--element-height) + 5px);
  left: 50%;
  transform: translateX(-50%);
  background-color: #444;
  border: 1px solid #555;
  border-radius: 5px;
  padding: 8px;
  z-index: 10;
  width: clamp(100px, 40vw, 160px);
  max-height: 300px;
  overflow-y: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#filter-list { display: flex; flex-direction: column; gap: 5px; }

#filter-list label {
  display: flex;
  align-items: center;
  margin: 4px 0;
}

#filter-list label span { display: none; }

#filter-list label::after {
  content: attr(data-display-text);
  font-size: var(--text-size-small);
  margin-left: 8px;
}

#filter-list input[type="checkbox"] { width: 14px; height: 14px; vertical-align: middle; }

.domain-title span { font-weight: bold; font-size: var(--text-size-base); }

/* ── Domain list items ── */
.clickable-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  margin-top: 15px;
  margin-bottom: 3px;
  font-size: var(--text-size-base);
  line-height: 1;
  width: 100%;
  padding: 5px;
}

.clickable-item:hover { background-color: #444; }

.clickable-item.active {
  background-color: #555;
  font-weight: bold;
}

.domain-checkbox {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #28a745;
}

/* ── CSV + UD Marketplace button bar ── */
#csv-download-container {
  display: none;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 14px auto 6px;
  width: calc(100% - 40px);
  max-width: 702px;
  padding: 0 20px;
}

#csv-download-btn,
#ud-marketplace-btn {
  background-color: #28a745;
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: var(--button-padding-base);
  font-size: var(--text-size-small);
  font-weight: bold;
  cursor: pointer;
  min-height: 20px;
  min-width: 100px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

@keyframes flashPink {
  0%   { background-color: #28a745; }
  40%  { background-color: #ff69b4; }
  100% { background-color: #28a745; }
}

#csv-download-btn.flash { animation: flashPink 0.55s ease forwards; }

#identity-text a.identity-link:hover,
.offer-button:hover,
.buy-button:hover,
#filter-button:hover,
#csv-download-btn:hover,
#ud-marketplace-btn:hover { background-color: #b300b4; transform: scale(0.95); }

.message-container { padding-right: 3px; flex: 1; }

.info-image { width: 100%; height: auto; display: block; }

.image-wrapper {
  position: relative;
  width: calc(100% - 6px);
  margin: 0 auto;
}

.overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  transition: background-color 0.3s ease;
  pointer-events: none;
}

.touchable-area {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 75%; height: 75%;
  cursor: pointer;
  pointer-events: auto;
  z-index: 11;
}

.image-wrapper:hover .overlay { background-color: rgba(0, 0, 0, 0.3); }

.magnifying-glass {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: var(--text-size-base);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 12;
}

.image-wrapper:hover .magnifying-glass { opacity: 0.7; }
.image-wrapper:hover .touchable-area:hover .magnifying-glass { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }

.info-message {
  margin: 5px auto 0;
  font-size: calc(var(--text-size-base) * 1.25);
  line-height: 1.5;
  overflow-wrap: break-word;
  width: calc(100% - 6px);
  text-align: left;
}

.offer-button {
  font-size: var(--text-size-base);
  background-color: #28a745;
  color: var(--white);
  padding: var(--button-padding-base);
  margin: 15px auto 0;
  text-align: center;
  cursor: pointer;
  border: none;
  display: block;
  font-weight: bold;
  border-radius: 50px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  min-height: 20px;
  min-width: 100px;
}

#tool-popup,
.popup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(45, 45, 45, 0.95);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.popup {
  touch-action: none;
  overscroll-behavior: none;
}

.popup::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.popup-content {
  position: relative;
  z-index: 1001;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%; height: 100%;
}

.popup-image-wrapper {
  position: relative;
  display: inline-block;
  transition: transform 0.6s ease;
  perspective: 1000px;
  max-width: 90vw;
  max-height: 90vh;
  overflow: visible;
  line-height: 0;
}

.popup-image-wrapper:hover { transform: scale(1.05); }

.popup-image-main {
  width: 100%; height: 100%;
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  z-index: 1001;
  transition: transform 0.1s ease-out;
  display: block;
  box-sizing: content-box;
}

.shine-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 70%, transparent 100%);
  background-size: 150% 100%;
  background-position: var(--shine-x, 2%) var(--shine-y, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1002;
  transform: inherit;
  mask-image: radial-gradient(ellipse 90% 90% at center, white 60%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, white 10%, transparent 100%);
}

.popup-content.interacting .shine-overlay { opacity: 0.3; }

.popup-image-left,
.popup-image-right {
  position: absolute;
  width: 1024px; height: 1024px;
  object-fit: contain;
  max-width: 90vw; max-height: 90vh;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  pointer-events: none;
  transition: transform 0.1s ease-out;
}

.popup-image-left { left: calc(-1024px * 0.75); }
.popup-image-right { right: calc(-1024px * 0.75); }

.popup-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: var(--text-size-base);
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  padding: clamp(5px, 1vw, 8px);
  cursor: pointer;
  z-index: 1002;
  transition: background-color 0.3s ease;
}

.popup-arrow:hover { background-color: rgba(0, 0, 0, 0.7); }
.popup-arrow-left { left: clamp(10px, 2vw, 20px); }
.popup-arrow-right { right: clamp(10px, 2vw, 20px); }

.popup-image-main,
.popup-image-wrapper,
.popup-content,
.overlay,
.touchable-area,
.magnifying-glass {
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
  outline: none;
  -webkit-touch-callout: none;
}

.top-bar-arrow { font-size: 22px; padding: 5px; cursor: pointer; }

/* ── Tools ── */
#your-domains-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0 auto;
}

#your-domains-container label {
  font-size: calc(var(--text-size-base) * 1.25);
  font-weight: bold;
  text-align: center;
  width: 100%;
}

#domain-input {
  width: 100%;
  padding: 8px 12px;
  border: 2px solid var(--tool-link-color);
  border-radius: 5px;
  background-color: #2d2d2d;
  color: var(--white);
  outline: none;
  transition: border-color 0.3s ease;
}

#domain-input:focus { border-color: var(--tool-link-hover-color); }

.button-row { display: flex; gap: 10px; width: 100%; }

.button-group { display: flex; width: 100%; }

.button-group button,
.button-group .download-btn {
  color: var(--white);
  padding: 6px 10px;
  border: none;
  font-size: calc(var(--text-size-base) * 0.9);
  font-weight: bold;
  cursor: pointer;
  min-height: 30px;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.button-group .download-btn {
  background: none;
  padding: 6px;
  min-width: 30px;
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: calc(var(--text-size-base) * 1.2);
}

.button-group .download-btn:hover { transform: scale(0.95); }

.button-group #pfp-button,
.button-group #identity-button { background-color: var(--tool-link-color); }

.button-group #pfp-button:hover,
.button-group #identity-button:hover { background-color: var(--tool-link-hover-color); transform: scale(0.95); }

.button-group #pfp-button.active-btn,
.button-group #identity-button.active-btn { background-color: var(--tool-link-hover-color); }

.button-group #pfp-button.active-btn:hover,
.button-group #identity-button.active-btn:hover { background-color: var(--tool-link-color); }

/* ── Shoes ── */
.shoes-container {
  display: flex;
  align-items: center;
  gap: 60px;
  width: calc(100% - 80px);
  max-width: 1000px;
  margin: 70px 0 70px calc(50vw - 487px);
}

.shoes-image {
  flex: 0 0 auto;
  width: 350px;
  height: auto;
}

.shoes-text {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 60px;
  row-gap: 16px;
}

.shoes-title {
  grid-column: 2;
  grid-row: 1;
  font-size: calc(var(--text-size-base) * 2.2);
  color: #89CFF0;
  font-weight: 900;
  font-family: 'Arial Black', 'Impact', sans-serif;
  line-height: 1.05;
  white-space: nowrap;
}

.shoes-description {
  grid-column: 2;
  grid-row: 2;
  font-size: calc(var(--text-size-base) * 1.5);
  line-height: 1.4;
}

.buy-button {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: center;
  justify-self: center;
  background-color: #28a745;
  color: var(--white);
  padding: 12px 30px;
  border: none;
  border-radius: 50px;
  font-size: calc(var(--text-size-base) * 1.2);
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

/* ── Kal ── */
.kal-container { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; }

.kal-title {
  font-size: calc(var(--text-size-base) * 1.5);
  font-weight: 900;
  font-family: 'Arial Black', 'Impact', sans-serif;
  text-align: center;
  white-space: nowrap;
  overflow-wrap: break-word;
}

.kal-image { width: 100%; height: 100%; object-fit: contain; user-select: none; display: block; }

.kal-description { font-size: calc(var(--text-size-base) * 1.25); text-align: center; overflow-wrap: break-word; line-height: 1.5; }

/* ── Misc ── */
#now-playing-info {
  text-align: center;
  margin: 5px 0 8px;
  padding-top: 16px;
  color: #ccc;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  border-top: 1px solid #555;
}

#now-playing-info.visible { opacity: 1; }

.identity-emoji-stack { display: flex; flex-direction: column; gap: 8px; align-items: center; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

ul { list-style: none; }

/* ═══════════════════════════════════════════════
   MEDIA QUERIES
═══════════════════════════════════════════════ */

@media (min-width: 742px) {
  .container {
    flex-direction: row;
    flex-wrap: nowrap;
    margin-top: 230px;
  }

  .domain-container { order: 1; }
  #info-container { order: 2; }

  .container .domain-container,
  .container #info-container {
    width: 341px;
    flex-shrink: 0;
  }

  .current-domain { top: 7%; }

  /* Center buttons under box-1 column */
  #csv-download-container {
    padding-left: 0;
    padding-right: 341px;
    justify-content: center;
    flex-wrap: nowrap;
  }

  #your-domains-container { padding-top: 30px; max-width: 400px; }

  #your-domains-container label { margin-bottom: 10px; max-width: 400px; }

  #domain-input { max-width: 400px; font-size: calc(var(--text-size-base) * 0.8); }

  .button-row { justify-content: center; max-width: 400px; }

  .button-group {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 18px;
    justify-content: space-between;
    max-width: 400px;
  }

  .button-group button,
  .button-group .download-btn { border-radius: 50px; flex: 1; }

  .button-group .download-btn { flex: 0 0 30px; }
}

@media (max-width: 1200px) {
  .popup-arrow { font-size: var(--text-size-base); padding: clamp(4px, 1vw, 6px); }
  .popup-arrow-left { left: 5px; }
  .popup-arrow-right { right: 5px; }
}

@media (max-width: 900px) {
  .kal-image { height: auto; }

  .shoes-container {
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin: 40px auto;
    width: calc(100% - 40px);
  }

  .shoes-image { width: clamp(150px, 60vw, 280px); }

  .shoes-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
  }

  .buy-button {
    order: -1;
    grid-column: unset;
    grid-row: unset;
    align-self: center;
    justify-self: unset;
    padding: 10px 26px;
    margin-bottom: 100px;
  }

  .shoes-title {
    grid-column: unset;
    grid-row: unset;
    font-size: calc(var(--text-size-base) * 1.6);
    text-align: center;
    white-space: normal;
  }

  .shoes-description {
    grid-column: unset;
    grid-row: unset;
    font-size: calc(var(--text-size-base) * 1.2);
    text-align: center;
  }
}

@media (max-width: 741px) {
  .container {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 380px auto 0;
    max-width: 341px;
  }

  .container .domain-container,
  .container #info-container {
    width: 90vw;
    max-width: 341px;
    height: 420px !important;
    max-height: 420px !important;
    min-height: 420px !important;
  }

  #csv-download-container { max-width: 341px; }

  #current-domain { top: 3%; margin-top: -8px; }

  #identity-text {
    flex-direction: column;
    gap: 12px;
    white-space: normal;
    margin-top: 5px;
    margin-bottom: 20px;
  }

  #identity-text a:not(.identity-link) {
    display: block;
    text-align: center;
    max-width: var(--max-container-width);
    white-space: normal;
    line-height: 1.6;
    padding: 6px 15px;
  }

  #identity-text a.identity-link,
  .offer-button { padding: var(--button-padding-small); }

  #collect { margin: 60px auto 0; width: calc(100% - 20px); }
  #domains, #shoes { width: calc(100% - 20px); }
  .popup-arrow { padding: clamp(3px, 0.8vw, 5px); }

  .domain-title { margin: 0 auto; }

  #section-dropdown,
  #search-bar { width: auto; }
  #section-dropdown { max-width: clamp(100px, 35vw, 120px); }
  #search-bar { max-width: clamp(90px, 30vw, 110px); }

  #filter-button { width: clamp(70px, 25vw, 90px); }

  #your-domains-container { padding-top: 20px; max-width: 360px; }

  #your-domains-container label { margin-bottom: 8px; max-width: 360px; }

  #domain-input { max-width: 360px; font-size: calc(var(--text-size-base) * 0.75); }

  .button-row { flex-direction: column; align-items: center; max-width: 360px; }

  .button-group {
    flex-direction: column;
    gap: 14px;
    max-width: 360px;
    align-items: stretch;
  }

  .button-group button,
  .button-group .download-btn { border-radius: 1000px; width: 100%; }

  .button-group .download-btn { width: auto; margin: 0 auto; }
}

@media (max-width: 400px) {
  :root { --text-size-base: var(--text-size-small); }

  .container { margin: 360px auto 0; gap: 15px; }

  #identity-text { margin-bottom: 20px; }
  #identity-text a:not(.identity-link) { font-size: calc(var(--text-size-base) * 1.15); padding: 5px 12px; }
  #identity-text a.identity-link, .offer-button { font-size: calc(var(--text-size-base) * 1.15); padding: var(--button-padding-small); }

  #collect { margin: 50px auto 0; width: calc(100% - 20px); }
  #domains { margin-top: 70px; }
  #dropdown { padding: 8px; width: calc(90vw - 20px); max-width: 330px; }
  #dropdown a, #contact-email, .tool-subitem-content a.tool-link { padding: 8px 12px; }
  #tools-submenu { padding: 4px 0; }
  .tool-subitem { padding: 3px 0; }
  .question-mark { width: clamp(10px, 1vw, 16px); height: clamp(10px, 1vw, 16px); }

  #your-domains-container { max-width: 320px; gap: 10px; padding-top: 15px; }
  #your-domains-container label { font-size: calc(var(--text-size-base) * 1.15); max-width: 320px; }
  #domain-input { max-width: 320px; padding: 6px 10px; font-size: calc(var(--text-size-base) * 0.7); }
  .button-row { max-width: 320px; gap: 8px; }
  .button-group { gap: 12px; max-width: 320px; }
  .button-group button, .button-group .download-btn { padding: 5px 8px; min-height: 28px; font-size: calc(var(--text-size-base) * 0.8); }
  .button-group .download-btn { padding: 5px; min-height: 28px; font-size: calc(var(--text-size-base) * 1.1); }

  .domain-title { gap: 4px; }
  #section-dropdown { max-width: clamp(90px, 35vw, 120px); }
  #search-bar { max-width: clamp(80px, 30vw, 110px); }
  #filter-button { width: clamp(60px, 20vw, 80px); }
  #filter-dropdown { top: calc(var(--element-height) * 2 + 11px); }

  #kal { width: calc(100% - 10px); margin: 60px auto 20px; }
  .kal-description { font-size: calc(var(--text-size-base) * 1.15); line-height: 1.4; }
  .buy-button { min-width: 100px; padding: 6px 12px; }
}

@media (max-width: 320px) {
  .container { margin: 360px auto 0; gap: 10px; padding: 0 15px; }
  .container .domain-container, .container #info-container { max-width: 260px; height: 360px !important; max-height: 360px !important; min-height: 360px !important; }
  #identity-text a:not(.identity-link) { font-size: calc(var(--text-size-base) * 1.1); padding: 5px 10px; }
  #identity-text a.identity-link, .offer-button { font-size: calc(var(--text-size-base) * 1.1); padding: 10px; }
  #collect { margin: 40px auto 0 !important; width: calc(100% - 10px); }
  #domains, #shoes { width: calc(100% - 10px); }
  #dropdown { width: calc(90vw - 20px); max-width: 300px; padding: 6px; }
  #dropdown a, #contact-email, .tool-subitem-content a.tool-link { padding: 6px 8px; }
  #tools-submenu { padding: 2px 0; }
  .tool-subitem { padding: 2px 0; }
  .question-mark { width: clamp(8px, 1vw, 12px); height: clamp(8px, 1vw, 12px); }
  #your-domains-container { max-width: 280px; gap: 8px; padding-top: 10px; }
  #your-domains-container label { font-size: calc(var(--text-size-base) * 1.1); max-width: 280px; }
  #domain-input { max-width: 280px; padding: 5px 8px; font-size: calc(var(--text-size-base) * 0.65); }
  .button-row { max-width: 280px; gap: 6px; }
  .button-group { gap: 10px; max-width: 280px; }
  .button-group button, .button-group .download-btn { padding: 4px 6px; min-height: 26px; font-size: calc(var(--text-size-base) * 0.8); }
  .button-group .download-btn { padding: 4px; min-height: 26px; font-size: calc(var(--text-size-base) * 1); }
  .domain-title { flex-direction: column; align-items: stretch; justify-content: center; gap: 4px; max-width: 260px; }
  #section-dropdown, #search-bar, #filter-button { flex: 0 0 auto; width: 100%; max-width: var(--max-container-width); margin: 0; }
  #filter-dropdown { top: calc(var(--element-height) * 3 + 12px); }

  #kal { width: calc(100% - 10px); margin: 50px auto 20px; }
  .kal-description { font-size: calc(var(--text-size-base) * 1.1); line-height: 1.3; }
  .buy-button { min-width: 90px; padding: 5px 10px; font-size: calc(var(--text-size-base) * 0.9); }
}

@media (max-width: 400px) {
  #grey-bar { height: 44px; }
  #top-bar { top: 7px; gap: 5px; max-width: 100%; }
  #audio-buttons { gap: 5px; }
  #audio-buttons img.audio-button { width: 18px; height: 18px; }
  #hamburger { width: 20px; height: 17px; }
  .line { height: 2.5px; }
  .top-bar-arrow { font-size: 16px; padding: 3px; }
}

@media (max-width: 243px) {
  .container { margin: 390px auto 0; gap: 15px; padding: 0 15px; }
  #dropdown { width: calc(90vw - 20px); max-width: 260px; padding: 6px; }
  .domain-title { flex-direction: column; align-items: stretch; gap: 4px; max-width: 200px; }
  #section-dropdown, #search-bar, #filter-button { flex: 0 0 auto; width: 100%; max-width: var(--max-container-width); height: var(--element-height); padding: 0 6px; margin: 0; }
  #filter-dropdown { top: calc(var(--element-height) * 3 + 12px); width: clamp(80px, 40vw, 140px); }
}

@media (max-width: 150px) {
  #audio-buttons { justify-content: center; }
}