: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;
  cursor: auto;
  position: relative;
  height: 100vh;
  overscroll-behavior: none;
}

body::-webkit-scrollbar {
  width: var(--scrollbar-width);
}

body::-webkit-scrollbar-track {
  background: var(--scrollbar-track-bg);
}

body::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: var(--scrollbar-thumb-radius);
}

body.scroll-locked {
  position: fixed;
  width: 100%;
}

body.scroll-locked::-webkit-scrollbar-thumb {
  background-color: #666;
}

body.popup-active {
  overflow: hidden !important;
  height: 100vh;
  position: fixed;
  width: 100%;
}

#wrapper {
  position: relative;
  width: 90vw;
  max-width: var(--max-container-width);
  aspect-ratio: 1 / 1;
  margin: 100px auto 0;
  padding: 0;
}

#container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 20%;
  z-index: 1;
  margin: 0;
  padding: 0;
}

#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;
  margin: 0;
  padding: 0;
}

#red-zone {
  position: absolute;
  width: 30%;
  height: 20%;
  top: 38%;
  left: 37%;
  border: none;
  background-color: transparent;
  z-index: 2;
  pointer-events: none;
}

#puzzle-piece {
  touch-action: none;
  transform: scale(1);
  transition: transform 0.2s ease, filter 0.2s ease;
  position: absolute;
  width: 30.9%;
  aspect-ratio: 1 / 1;
  top: 100%;
  left: 0%;
  cursor: grab;
  z-index: 3;
  user-select: none;
  user-drag: none;
  filter: 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);
  color: var(--white);
  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);
  color: var(--white);
  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.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;
  margin-left: auto;
  margin-right: auto;
  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;
  cursor: pointer;
  white-space: nowrap;
}

#identity-text a:not(.identity-link):hover {
  color: #000000;
}

#identity-text a.identity-link:hover {
  background-color: #b300b4;
  transform: scale(0.95);
}

#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::-webkit-scrollbar {
  width: var(--scrollbar-width);
}

#dropdown::-webkit-scrollbar-track {
  background: var(--scrollbar-track-bg);
}

#dropdown::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: var(--scrollbar-thumb-radius);
}

#dropdown::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}

#dropdown a {
  color: var(--white);
  text-decoration: none;
  display: block;
  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:hover {
  background-color: #555;
}

#contact-email,
#tools-submenu {
  color: var(--white);
  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.tool-link {
  color: var(--white);
  text-decoration: none;
  font-size: var(--text-size-base);
  padding: 8px 15px;
  text-align: center;
  white-space: nowrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  transition: background-color 0.3s ease;
}

.tool-subitem-content a.tool-link:hover {
  background-color: #555;
}

.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;
  color: var(--white);
  z-index: 1001;
}

#tool-popup .popup-content p {
  margin: 0 0 10px;
  color: var(--white);
}

#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);
  color: var(--white);
}

#collect-header {
  font-size: calc(var(--text-size-base) * 1.5);
  color: var(--white);
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
}

#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);
  color: var(--white);
  text-align: center;
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: normal;
}

#collect-total {
  margin: 20px auto 0;
  font-size: var(--text-size-base);
  font-weight: bold;
  text-align: center;
  width: fit-content;
}

#tool-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;
}

#shoes {
  width: calc(100% - 40px);
  margin: 20px auto;
  max-width: var(--max-container-width);
  display: none;
}

#domains {
  position: relative;
  z-index: 2;
  display: none;
  margin-top: 100px;
  width: calc(100% - 40px);
  max-width: var(--max-container-width);
  margin-left: auto;
  margin-right: auto;
}

.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;
  color: var(--white);
  padding: 3px 11px 3px 3px;
  overflow-y: scroll;
  overflow-x: hidden;
  position: relative;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.container .domain-container::-webkit-scrollbar,
.container #info-container::-webkit-scrollbar {
  width: var(--scrollbar-width);
}

.container .domain-container::-webkit-scrollbar-track,
.container #info-container::-webkit-scrollbar-track {
  background: var(--scrollbar-track-bg);
}

.container .domain-container::-webkit-scrollbar-thumb,
.container #info-container::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: var(--scrollbar-thumb-radius);
}

.container .domain-container::-webkit-scrollbar-thumb:hover,
.container #info-container::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}

.domain-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0;
  margin-bottom: 3px;
  width: 100%;
  max-width: 341px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  gap: 6px;
  flex-wrap: nowrap;
}

#section-dropdown {
  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;
  max-width: clamp(90px, 35vw, 120px); /* Slightly wider */
  order: 1;
}

#section-dropdown:focus {
  outline: none;
}

#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;
  max-width: clamp(80px, 30vw, 110px);
  order: 3;
  transition: opacity 0.3s ease;
}

#search-bar:focus {
  outline: none;
}

#search-bar.hidden {
  display: none;
}

#section-dropdown[value="your-domains"] ~ #search-bar {
  display: none !important;
}

#section-dropdown[value="your-domains"] ~ #filter-button {
  display: block !important;
}

#section-dropdown[value="your-domains"] ~ #section-dropdown,
#section-dropdown[value="your-domains"] ~ #filter-button {
  max-width: clamp(100px, 45vw, 150px); /* Slightly wider */
}

#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-button:hover {
  background-color: #b300b4;
  transform: scale(0.95);
}

#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-dropdown.show {
  display: block;
}

#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;
  color: var(--white);
}

#filter-list input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin: 0;
  vertical-align: middle;
}

.domain-title span {
  font-weight: bold;
  font-size: var(--text-size-base);
  color: var(--white);
}

.clickable-item {
  cursor: pointer;
  margin-top: 15px;
  margin-bottom: 3px;
  color: var(--white);
  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;
  color: var(--white);
  font-weight: bold;
}

.message-container {
  padding-right: 3px;
}

.info-image {
  width: 100%;
  height: auto;
  display: block;
}

.image-wrapper {
  position: relative;
  width: calc(100% - 6px);
  margin: 0 auto;
  display: block;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  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%;
  background: transparent;
  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);
  color: var(--white);
  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-top: 5px;
  font-size: calc(var(--text-size-base) * 1.25);
  color: var(--white);
  line-height: 1.5;
  overflow-wrap: break-word;
  width: calc(100% - 6px);
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.offer-button {
  font-size: calc(var(--text-size-base) * 1.25);
  background-color: #00b300;
  color: var(--white);
  padding: var(--button-padding-base);
  margin-top: 15px;
  text-align: center;
  cursor: pointer;
  border: none;
  width: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
  font-weight: bold;
  border-radius: 50px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  min-height: 20px;
  min-width: 100px;
}

.offer-button:hover {
  background-color: #b300b4;
  transform: scale(0.95);
}

.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;
  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%;
  max-width: 100%;
  max-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;
  object-fit: contain;
  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);
  color: var(--white);
  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;
}

.top-bar-arrow:hover {
  cursor: pointer;
}

@media (min-width: 742px) {
  .container {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 20px;
    max-width: 702px;
    padding: 0 20px;
    margin-top: 230px;
  }

  .container .domain-container,
  .container #info-container {
    width: 341px;
    height: 435px !important;
    max-width: 341px;
    max-height: 435px !important;
    min-height: 435px !important;
    flex-shrink: 0;
  }

  .domain-container {
    order: 1;
  }

  #info-container {
    order: 2;
  }

  .current-domain {
    top: 7%;
  }

  #your-domains-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-top: 30px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
  }

  #your-domains-container label {
    font-size: calc(var(--text-size-base) * 1.25);
    color: var(--white);
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
    width: 100%;
    max-width: 400px;
  }

  #domain-input {
    width: 100%;
    max-width: 400px;
    padding: 8px 12px;
    font-size: calc(var(--text-size-base) * 0.8);
    border: 2px solid var(--tool-link-color);
    border-radius: 5px;
    background-color: #2d2d2d;
    color: var(--white);
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
  }

  #domain-input:focus {
    border-color: var(--tool-link-hover-color);
  }

  .button-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 400px;
  }

  .button-group {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 18px;
    justify-content: space-between;
    width: 100%;
    max-width: 400px;
  }

  .button-group button,
  .button-group .download-btn {
    color: var(--white);
    padding: 6px 10px;
    border: none;
    border-radius: 50px;
    font-size: calc(var(--text-size-base) * 0.9);
    font-weight: bold;
    cursor: pointer;
    min-height: 30px;
    flex: 1;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
  }

  .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);
  }

  .button-group .download-btn {
    background: none;
    padding: 6px;
    min-width: 30px;
    min-height: 30px;
    flex: 0 0 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);
  }
}

@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: 741px) {
  .container {
    flex-direction: column;
    gap: 10px;
    margin: 380px auto 0;
    max-width: 341px;
    padding: 0 20px;
  }

  .container .domain-container,
  .container #info-container {
    width: 90vw;
    max-width: 341px;
    height: 420px !important;
    max-height: 420px !important;
    min-height: 420px !important;
  }

  #current-domain {
    top: 3%;
    margin-top: -8px;
    font-size: calc(var(--text-size-base) * 1.5);
  }

  #identity-text {
    flex-direction: column;
    gap: 12px;
    white-space: normal;
    max-width: 90vw;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-top: 5px;
    margin-bottom: 20px;
  }

  #identity-text a:not(.identity-link) {
    font-size: calc(var(--text-size-base) * 1.25);
    color: var(--white);
    display: block;
    text-align: center;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
    line-height: 1.6;
    padding: 6px 15px;
  }

  #identity-text a.identity-link,
  .offer-button {
    font-size: calc(var(--text-size-base) * 1.25);
    padding: var(--button-padding-small);
    min-height: 20px;
    min-width: 100px;
  }

  #collect {
    margin: 60px auto 0;
    width: calc(100% - 20px);
  }

  #domains,
  #shoes {
    width: calc(100% - 20px);
  }

  .popup-arrow {
    padding: clamp(3px, 0.8vw, 5px);
  }

  #your-domains-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
  }

  #your-domains-container label {
    font-size: calc(var(--text-size-base) * 1.25);
    color: var(--white);
    font-weight: bold;
    text-align: center;
    margin-bottom: 8px;
    width: 100%;
    max-width: 360px;
  }

  #domain-input {
    width: 100%;
    max-width: 360px;
    padding: 8px 12px;
    font-size: calc(var(--text-size-base) * 0.75);
    border: 2px solid var(--tool-link-color);
    border-radius: 5px;
    background-color: #2d2d2d;
    color: var(--white);
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
  }

  #domain-input:focus {
    border-color: var(--tool-link-hover-color);
  }

  .button-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 360px;
  }

  .button-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 360px;
    align-items: stretch;
  }

  .button-group button,
  .button-group .download-btn {
    color: var(--white);
    padding: 6px 10px;
    border: none;
    border-radius: 50px;
    font-size: calc(var(--text-size-base) * 0.9);
    font-weight: bold;
    cursor: pointer;
    min-height: 30px;
    width: 100%;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
  }

  .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);
  }

  .button-group .download-btn {
    background: none;
    padding: 6px;
    min-width: 30px;
    min-height: 30px;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: calc(var(--text-size-base) * 1.2);
    margin: 0 auto;
  }

  .button-group .download-btn:hover {
    transform: scale(0.95);
  }

  .domain-title {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 341px;
    margin: 0 auto;
  }

  #section-dropdown {
    flex: 1;
    width: auto;
    max-width: clamp(100px, 35vw, 120px); /* Slightly wider */
    height: var(--element-height);
    font-size: var(--text-size-small);
    padding: 0 6px;
    order: 1;
  }

  #search-bar {
    flex: 1;
    width: auto;
    max-width: clamp(90px, 30vw, 110px);
    height: var(--element-height);
    font-size: var(--text-size-small);
    padding: 0 6px;
    order: 3;
  }

  #filter-button {
    flex: 0 0 auto;
    width: clamp(70px, 25vw, 90px);
    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;
    order: 2;
    display: block;
    margin: 0 auto;
  }

  #filter-button:hover {
    background-color: #b300b4;
    transform: scale(0.95);
  }

  #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-dropdown.show {
    display: block;
  }

  #section-dropdown[value="your-domains"] ~ #section-dropdown,
  #section-dropdown[value="your-domains"] ~ #filter-button {
    max-width: clamp(110px, 50vw, 150px); /* Slightly wider */
  }

  #section-dropdown[value="your-domains"] ~ #filter-button {
    display: block !important;
  }
}

@media (max-width: 400px) {
  :root {
    --text-size-base: var(--text-size-small);
  }

  .container {
    margin: 360px auto 0;
    gap: 15px;
    padding: 0 20px;
  }

  #identity-text {
    gap: 10px;
    max-width: 90vw;
    margin-bottom: 20px;
  }

  #identity-text a:not(.identity-link) {
    font-size: calc(var(--text-size-base) * 1.15);
    color: var(--white);
    padding: 5px 12px;
  }

  #identity-text a.identity-link,
  .offer-button {
    font-size: calc(var(--text-size-base) * 1.15);
    padding: var(--button-padding-small);
    min-height: 20px;
    min-width: 100px;
  }

  #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);
    color: var(--white);
    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 {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    width: 100%;
    max-width: 341px;
    margin: 0 auto;
  }

  #section-dropdown {
    flex: 1;
    width: auto;
    max-width: clamp(90px, 50vw, 150px); /* Slightly wider */
    height: var(--element-height);
    font-size: var(--text-size-small);
    padding: 0 6px;
    order: 1;
    margin-right: auto;
  }

  #search-bar {
    flex: 1;
    width: auto;
    max-width: clamp(80px, 45vw, 140px);
    height: var(--element-height);
    font-size: var(--text-size-small);
    padding: 0 6px;
    order: 2;
    margin-left: auto;
  }

  #filter-button {
    flex: 0 0 100%;
    width: clamp(80px, 50vw, 160px);
    max-width: 160px;
    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;
    order: 3;
    margin: 6px auto 0;
    display: block;
  }

  #filter-button:hover {
    background-color: #b300b4;
    transform: scale(0.95);
  }

  #filter-dropdown {
    display: none;
    position: absolute;
    top: calc(var(--element-height) * 2 + 11px);
    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-dropdown.show {
    display: block;
  }

  #section-dropdown[value="your-domains"] ~ #section-dropdown,
  #section-dropdown[value="your-domains"] ~ #filter-button {
    flex: 1;
    max-width: clamp(110px, 50vw, 160px); /* Slightly wider */
    margin: 0 auto;
  }

  #section-dropdown[value="your-domains"] ~ #filter-button {
    margin: 6px auto 0;
    display: block !important;
  }
}

@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 {
    gap: 10px;
    max-width: 90vw;
    margin-bottom: 20px;
  }

  #identity-text a:not(.identity-link) {
    font-size: calc(var(--text-size-base) * 1.1);
    color: var(--white);
    padding: 5px 10px;
  }

  #identity-text a.identity-link,
  .offer-button {
    font-size: calc(var(--text-size-base) * 1.1);
    padding: 10px;
    min-height: 20px;
    min-width: 100px;
  }

  #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);
    color: var(--white);
    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;
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
  }

  #section-dropdown {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    height: var(--element-height);
    font-size: var(--text-size-small);
    padding: 0 6px;
    order: 1;
    margin: 0;
  }

  #search-bar {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    height: var(--element-height);
    font-size: var(--text-size-small);
    padding: 0 6px;
    order: 2;
    margin: 0;
  }

  #filter-button {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    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;
    order: 3;
    margin: 0;
    display: block;
  }

  #filter-button:hover {
    background-color: #b300b4;
    transform: scale(0.95);
  }

  #filter-dropdown {
    display: none;
    position: absolute;
    top: calc(var(--element-height) * 3 + 12px);
    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-dropdown.show {
    display: block;
  }

  #section-dropdown[value="your-domains"] ~ #section-dropdown,
  #section-dropdown[value="your-domains"] ~ #filter-button {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  #section-dropdown[value="your-domains"] ~ #filter-button {
    margin: 6px 0 0;
    display: block !important;
  }
}

@media (max-width: 243px) {
  .container {
    margin: 390px auto 0;
    gap: 15px;
    padding: 0 15px;
  }

  #dropdown {
    width: calc(90vw - 20px);
    max-width: 260px;
    padding: 6px;
  }

  #top-bar {
    width: 90vw;
    max-width: 260px;
    gap: 5px;
  }

  .domain-title {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 4px;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
  }

  #section-dropdown,
  #search-bar,
  #filter-button {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    height: var(--element-height);
    font-size: var(--text-size-small);
    padding: 0 6px;
    margin: 0;
  }

  #filter-button {
    background-color: #28a745;
    display: block;
  }

  #filter-dropdown {
    top: calc(var(--element-height) * 3 + 12px);
    width: clamp(80px, 40vw, 140px);
  }

  #section-dropdown[value="your-domains"] ~ #section-dropdown,
  #section-dropdown[value="your-domains"] ~ #filter-button {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  #section-dropdown[value="your-domains"] ~ #filter-button {
    margin: 6px 0 0;
    display: block !important;
  }
}

@media (max-width: 150px) {
  #top-bar {
    width: 100%;
    max-width: 150px;
    gap: 3px;
  }

  #audio-buttons {
    justify-content: center;
    gap: 3px;
  }

  #audio-buttons img.audio-button {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  #hamburger {
    width: 24px;
    height: 20px;
    flex-shrink: 0;
  }

  .top-bar-arrow {
    font-size: 16px;
    padding: 2px;
  }
}

#tools-submenu::-webkit-scrollbar {
  width: var(--scrollbar-width);
}

#tools-submenu::-webkit-scrollbar-track {
  background: var(--scrollbar-track-bg);
}

#tools-submenu::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: var(--scrollbar-thumb-radius);
}

#tools-submenu::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}

.shoes-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(80px, 3vw, 20px);
  width: calc(100% - 40px);
  max-width: 800px;
  margin: 70px auto;
  flex-wrap: nowrap;
  min-height: 400px;
}

.shoes-image {
  position: relative;
  width: clamp(250px, 50vw, 450px);
  max-width: 450px;
  min-width: 250px;
  height: auto;
  margin: 0;
  display: block;
  object-fit: contain;
}

.shoes-title {
  font-size: calc(var(--text-size-base) * 1.5);
  color: #89CFF0;
  font-weight: 900;
  font-family: 'Arial Black', 'Impact', sans-serif;
  margin: 0;
  white-space: normal;
  overflow-wrap: break-word;
  text-align: left;
}

.shoes-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 40px;
  max-width: none;
  flex: 1;
}

.shoes-description {
  font-size: calc(var(--text-size-base) * 1.25);
  color: var(--white);
  margin: 0;
  overflow-wrap: break-word;
  line-height: 1.5;
  text-align: left;
}

.buy-button {
  background-color: #00b300;
  color: var(--white);
  padding: var(--button-padding-base);
  border: none;
  border-radius: 50px;
  font-size: var(--text-size-base);
  font-weight: bold;
  cursor: pointer;
  min-height: 20px;
  min-width: 100px;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: inline-block;
  text-decoration: none;
  pointer-events: auto;
  position: relative;
  z-index: 10;
}

.buy-button:hover {
  background-color: #b300b4;
  transform: scale(0.95);
}

#kal {
  width: calc(100% - 40px);
  margin: 20px auto;
  max-width: var(--max-container-width);
  display: none;
}

.kal-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0px;
  padding: 0px;
  width: 100%;
}

.kal-title {
  font-size: calc(var(--text-size-base) * 1.5);
  color: var(--white);
  font-weight: 900;
  font-family: 'Arial Black', 'Impact', sans-serif;
  margin: 0;
  text-align: center;
  white-space: nowrap;
  overflow-wrap: break-word;
}

.kal-image {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
  display: block;
}

.kal-description {
  font-size: calc(var(--text-size-base) * 1.25);
  color: var(--white);
  margin: 0;
  text-align: center;
  overflow-wrap: break-word;
  line-height: 1.5;
}

@media (max-width: 742px) {
  .shoes-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    padding: 10px;
    width: calc(100% - 20px);
    min-height: 120px;
    margin: 0 auto;
  }

  .shoes-image {
    width: clamp(150px, 45vw, 250px);
    max-width: 250px;
    min-width: 150px;
    height: auto;
    margin: 0 auto 5px;
    display: block;
  }

  .shoes-text {
    align-items: center;
    gap: 20px;
    width: 100%;
  }

  .shoes-title {
    font-size: calc(var(--text-size-base) * 1.4);
    text-align: center;
    width: 100%;
    white-space: normal;
  }

  .shoes-description {
    font-size: calc(var(--text-size-base) * 1.15);
    text-align: center;
    width: 100%;
    line-height: 1.4;
  }

  .buy-button {
    padding: var(--button-padding-small);
    min-width: 120px;
    margin: 10px auto;
    display: block;
  }

  .kal-container {
    gap: 0px;
    padding: 0px;
  }

  .kal-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }
}

@media (max-width: 400px) {
  #kal {
    width: calc(100% - 10px);
    max-width: var(--max-container-width);
    margin: 60px auto 20px;
  }

  .kal-container {
    gap: 0px;
    padding: 0px;
  }

  .kal-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  .kal-description {
    font-size: calc(var(--text-size-base) * 1.15);
    color: var(--white);
    line-height: 1.4;
  }

  .shoes-container {
    gap: 8px;
    padding: 25px;
    width: calc(100% - 10px);
  }

  .shoes-image {
    width: clamp(130px, 40vw, 200px);
    max-width: 200px;
    min-width: 130px;
    margin: 0 auto 5px;
  }

  .shoes-title {
    font-size: calc(var(--text-size-base) * 1.3);
  }

  .shoes-description {
    font-size: calc(var(--text-size-base) * 1.1);
  }

  .buy-button {
    min-width: 100px;
    padding: 6px 12px;
  }
}

@media (max-width: 320px) {
  #kal {
    width: calc(100% - 10px);
    max-width: var(--max-container-width);
    margin: 50px auto 20px;
  }

  .kal-container {
    gap: 0px;
    padding: 0px;
  }

  .kal-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  .kal-description {
    font-size: calc(var(--text-size-base) * 1.1);
    color: var(--white);
    line-height: 1.3;
  }

  .shoes-container {
    gap: 6px;
    padding: 6px;
    width: calc(100% - 10px);
  }

  .shoes-image {
    width: clamp(120px, 35vw, 180px);
    max-width: 180px;
    min-width: 120px;
    margin: 0 auto 5px;
  }

  .shoes-title {
    font-size: calc(var(--text-size-base) * 1.2);
  }

  .shoes-description {
    font-size: calc(var(--text-size-base) * 1);
  }

  .buy-button {
    min-width: 90px;
    padding: 5px 10px;
    font-size: calc(var(--text-size-base) * 0.9);
  }
}

#contact-email {
  display: none;
}

#contact-submenu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}