/* ==================== */
/* Theme Button */
/* ==================== */
#themeButton {
  background: none;
  border: none;
  padding: 0;
  font-size: 120px;
  cursor: pointer;
  transition: transform 0.5s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  position: relative;
  transform: translate(0, 0);
  z-index: 2; /* Ensure it stays above the grid container */
}

/* Spin Animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ==================== */
/* Button Styles */
/* ==================== */

.wip, 
.secret-button {
  background: none;
  border: none;
  padding: 0;
  font-size: 80px;
  cursor: pointer;
  transition: transform 0.5s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  position: relative;
  transform: translate(0, 0);
  z-index: 2; /* Ensure it stays above the grid container */
}

.wip:active, .secret-button:active {
  transform: translate(55px, 0) scale(2.5); /* Move 10px right and scale up */
  transition: transform 0.2s ease-in-out; /* Faster animation for click feedback */
}

/* ==================== */
/* Secret Button -> Mine */
/* ==================== */
.secret-button {
  width: 120px;
  height: 120px;
  position: relative;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 35% 35%, #6d6d6d 0 10%, #545454 11% 26%, #2f2f2f 27% 62%, #181818 63% 100%);
  box-shadow:
    inset 0 8px 14px rgba(255,255,255,0.18),
    inset 0 -10px 18px rgba(0,0,0,0.45),
    0 8px 18px rgba(0,0,0,0.35);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease,
    background 0.18s ease;
}

/* remove the outer radial gray stud circles completely */
.secret-button::after {
  content: none !important;
  display: none !important;
}

/* smaller inner bomb cap, hidden by default */
.secret-button::before {
  content: "";
  position: absolute;
  inset: 40px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #8b8b8b 0 18%, #555 19% 58%, #242424 59% 100%);
  box-shadow:
    inset 0 2px 5px rgba(255,255,255,0.14),
    inset 0 -4px 8px rgba(0,0,0,0.4);
  z-index: 2;
  opacity: 0;
  transform: scale(0.82);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

/* fuse hidden by default */
.secret-button .mine-fuse {
  position: absolute;
  top: 18px;
  left: 52%;
  width: 6px;
  height: 20px;
  background: linear-gradient(180deg, #7d5a35 0%, #3f2b17 100%);
  border-radius: 8px;
  transform: translateX(-50%) rotate(18deg) scale(0.82);
  transform-origin: center bottom;
  z-index: 3;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.12);
  opacity: 0;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.secret-button .mine-fuse::after {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translateX(-50%);
  background:
    radial-gradient(circle, #ffd54f 0 28%, #ff9800 29% 58%, rgba(255,120,0,0.15) 59% 100%);
  box-shadow:
    0 0 8px rgba(255, 170, 0, 0.75),
    0 0 14px rgba(255, 90, 0, 0.45);
}

/* inner mark hidden by default */
.secret-button .mine-mark {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 900;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
  pointer-events: none;
  opacity: 0;
  transform: scale(0.88);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

/* reveal smaller bomb + fuse on hover */
.secret-button:hover::before,
.secret-button:hover .mine-fuse,
.secret-button:hover .mine-mark {
  opacity: 1;
}

.secret-button:hover::before {
  transform: scale(1);
}

.secret-button:hover .mine-fuse {
  transform: translateX(-50%) rotate(18deg) scale(1);
}

.secret-button:hover .mine-mark {
  transform: scale(1);
}

/* overall hover */
.secret-button:hover {
  transform: scale(1.08);
  filter: brightness(1.08);
  box-shadow:
    inset 0 8px 14px rgba(255,255,255,0.2),
    inset 0 -10px 18px rgba(0,0,0,0.5),
    0 12px 24px rgba(0,0,0,0.45);
}

/* click */
.secret-button:active {
  transform: scale(0.95);
}

/* retro version can still glow */
body.theme-retro .secret-button {
  box-shadow:
    inset 0 8px 14px rgba(255,255,255,0.18),
    inset 0 -10px 18px rgba(0,0,0,0.5),
    0 0 10px rgba(255, 0, 255, 0.35),
    0 0 18px rgba(0, 255, 255, 0.25);
}

/* ==================== */
/* Site Settings */
/* ==================== */

.site-settings {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 10050;
  pointer-events: none;
}

.site-settings > * {
  pointer-events: auto;
}

.settings-cog,
.settings-volume-orb,
.settings-theme-option {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
}

.settings-dropdown {
  visibility: hidden;
}

.settings-dropdown.open {
  visibility: visible;
}

.settings-dropdown:not(.open) > * {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: scale(0.92);
}

.settings-dropdown.open > * {
  visibility: visible !important;
}

.settings-link-toggle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  background: rgba(24, 24, 24, 0.24);
  color: rgba(255, 255, 255, 0.94);
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.76;
  user-select: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.settings-link-toggle:hover {
  opacity: 0.96;
  transform: scale(1.05);
  background: rgba(24, 24, 24, 0.42);
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.settings-link-toggle.active-toggle {
  opacity: 0.42;
}

.settings-link-toggle.active-toggle::after {
  content: "✕";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.96);
  pointer-events: none;
}

.url-links-disabled .substack-button,
.url-links-disabled .twitter,
.url-links-disabled .duolingo,
.url-links-disabled .dropkickd-button,
.url-links-disabled .letterboxd,
.url-links-disabled .spotify {
  opacity: 0.45 !important;
}

@media (max-width: 768px) {
  .settings-link-toggle {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
}

/* Keep settings controls glassy even when theme CSS styles all buttons */
body.theme-retro .settings-cog,
body.theme-retro .settings-volume-orb,
body.theme-retro .settings-dropdown > .settings-theme-option,
body.theme-space .settings-cog,
body.theme-space .settings-volume-orb,
body.theme-space .settings-dropdown > .settings-theme-option {
  background: rgba(24, 24, 24, 0.24) !important;
  background-image: none !important;
  border: 1.5px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22) !important;
  animation: none !important;
  color: rgba(255, 255, 255, 0.94) !important;
}

.settings-cog {
  border: none;
  background: rgba(20, 20, 20, 0.22);
  color: rgba(255, 255, 255, 0.92);
  font-size: 40px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.3;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
}

.settings-cog-icon {
  width: 100%;
  text-align: right;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.settings-cog:hover,
.settings-cog[aria-expanded="true"] {
  opacity: 0.92;
  background: rgba(20, 20, 20, 0.48);
  transform: scale(1.06) rotate(18deg);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.settings-dropdown {
  position: absolute;
  top: 64px;
  right: 0;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 10px !important;
  width: auto !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  opacity: 0;
  transform: translateY(0px) scale(1.00);
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.settings-dropdown.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.settings-volume-orb {
  --volume-fill: 40%;
  --orb-fill: rgba(255, 255, 255, 0.9);
  --orb-base: rgba(255, 255, 255, 0.08);

  position: relative;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  background: var(--orb-base);
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: ns-resize;
  opacity: 0.82;
  overflow: hidden;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.12s linear;
}

.settings-volume-orb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--orb-fill, rgba(255, 255, 255, 0.9));
  clip-path: inset(calc(100% - var(--volume-fill)) 0 0 0);
  z-index: 1;
  pointer-events: none;
  transition: clip-path 0.08s linear, background 0.12s linear;
}

.settings-volume-label {
  position: relative;
  z-index: 2;
  font-size: 18px;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.settings-dropdown > .settings-theme-option {
  position: relative;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  background: rgba(24, 24, 24, 0.24);
  color: rgba(255, 255, 255, 0.94);
  display: flex !important;
  visibility: visible !important;
  align-items: center;
  justify-content: center;
  padding: 0 0 2px 0;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.76;
  user-select: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.settings-dropdown > .settings-theme-option:hover {
  opacity: 0.96;
  transform: scale(1.05);
  background: rgba(24, 24, 24, 0.42);
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.settings-dropdown > .settings-theme-option.disabled-theme {
  opacity: 0.34;
}

.settings-dropdown > .settings-theme-option.disabled-theme::after {
  content: "✕";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, 0.96);
  opacity: 1;
  pointer-events: none;
  transform: translateY(-6px);
}

.settings-dropdown > .settings-theme-option.desktop-only-theme {
  opacity: 0.5;
  cursor: default;
  pointer-events: auto;
}

.settings-dropdown > .settings-theme-option.desktop-only-theme:hover {
  opacity: 0.58;
  transform: none;
  background: rgba(24, 24, 24, 0.24);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.settings-dropdown > .settings-theme-option.desktop-only-theme::after {
  content: "🖥️";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  color: rgba(255, 90, 90, 0.78);
  opacity: 0.88;
  pointer-events: none;
  transform: translateY(0);
}

.settings-dropdown > .settings-theme-option.desktop-only-theme::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(255, 70, 70, 0.08);
  pointer-events: none;
}

.settings-cog:active,
.settings-volume-orb:active,
.settings-theme-option:active {
  transform: scale(0.96);
}

@media (max-width: 768px) {
  .site-settings {
    top: 12px;
    right: 12px;
  }

  .settings-cog,
  .settings-volume-orb,
  .settings-theme-option {
    width: 48px;
    height: 48px;
  }

  .settings-cog {
    padding-right: 9px;
    font-size: 27px;
  }

  .settings-volume-label {
    font-size: 16px;
  }

  .settings-dropdown > .settings-theme-option {
    font-size: 20px;
  }
}

/* Spotify Button */
.spotify {
  background-color: #1DB954 !important;
  border-radius: 50%;
  width: 120px;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 2px;
  position: relative;
  overflow: hidden;
  opacity: 1 !important;
  visibility: visible !important;
  transition: transform 0.18s ease, background-color 0.25s ease, box-shadow 0.25s ease;
  z-index: 1001;
  mix-blend-mode: normal !important;
  will-change: left, top, transform;
}

.spotify .bar {
  background-color: black;
  height: 8px;
  border-radius: 10px;
  position: absolute;
  z-index: 1002;
}

.spotify .bar.top {
  width: 60%;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
}

.spotify .bar.middle {
  width: 50%;
  top: 45%;
  left: 50%;
  transform: translateX(-50%);
}

.spotify .bar.bottom {
  width: 40%;
  top: 60%;
  left: 50%;
  transform: translateX(-50%);
}

.spotify:not(.free):hover,
.spotify.free {
  background-color: black !important;
  box-shadow: 0 0 30px rgba(0, 255, 0, 0.7) !important;
  animation: boomBoxPulse 1s ease-in-out infinite !important;
}

.spotify:not(.free):hover .bar,
.spotify.free .bar {
  background-color: green !important;
}

.spotify.free {
  position: fixed !important;
  z-index: 1010 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  transition: none !important;
}

@keyframes boomBoxPulse {
  0%   { transform: scale(1); }
  25%  { transform: scale(1.3); }
  50%  { transform: scale(1.1); }
  75%  { transform: scale(1.25); }
  100% { transform: scale(1); }
}

/* Duolingo Button */
.duolingo {
  background-color: #00b22d;
  border-radius: 50%;
  width: 120px;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  border: 3px solid darkgrey;
  animation: none;
}

.duolingo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
}

.duolingo:hover {
  animation: spinOnce 5s ease-in-out forwards;
  background-color: black;
}

@keyframes spinOnce {
  0% { transform: rotate(0deg); }
  99% { transform: rotate(360000deg); }
  100% { transform: rotate(360000deg); }
}

/* Letterboxd Button */
.letterboxd {
  background-color: #00e054 !important;
  opacity: 1 !important;
  border-radius: 50%;
  width: 120px;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: visible;
  transition: transform 0.3s ease;
  z-index: 1015; /* above spotify base */
  visibility: visible !important;
  mix-blend-mode: normal !important;
}

.letterboxd::before,
.letterboxd::after {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  transition:
    left 0.3s ease,
    right 0.3s ease,
    opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
  z-index: -1; /* behind green circle, but still inside letterboxd stack */
}

.letterboxd::before {
  left: 0;
  background-color: #FF8000;
}

.letterboxd::after {
  right: 0;
  background-color: #40BCF4;
}

.letterboxd:hover {
  transform: scale(1.1);
  z-index: 1020; /* rise above spotify while hovered */
}

.letterboxd:hover::before,
.letterboxd:hover::after {
  opacity: 1;
}

.letterboxd:hover::before {
  left: -95px;
}

.letterboxd:hover::after {
  right: -95px;
}

/* Photo Button */
.photo {
  background-color: black;
  border-radius: 50%;
  width: 120px;
  height: 120px;
  transition: transform 0.3s ease-in-out;
  position: relative;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
  z-index: 2; /* Ensure it stays above the grid container */
}

.lens {
  background: radial-gradient(circle, #444 10%, #222 60%);
  border-radius: 50%;
  width: 80%;
  height: 80%;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
  position: absolute;
  top: 10%;
  left: 10%;
}

.lens::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 25%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0.1) 75%);
  border: 4px solid #444;
  top: 0;
  left: 0;
  box-sizing: border-box;
  z-index: -1;
  background-size: 10px 10px;
}

.lens::after {
  content: '';
  position: absolute;
  top: 25%;
  left: 25%;
  width: 50%;
  height: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  z-index: 1;
}

.photo:hover::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 150%;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
  transform: translate(-50%, -50%);
  animation: flashEffect 0.3s ease-out forwards;
  z-index: 2;
  pointer-events: none;
}

@keyframes flashEffect {
  0% { z-index: 99999; opacity: 1; transform: translate(-50%, -50%) scale(1); }
  50% { z-index: 99999; opacity: 0.5; transform: translate(-50%, -50%) scale(1.2); }
  100% { z-index: 99999; opacity: 0; transform: translate(-50%, -50%) scale(1.5); }
}

/* News Button */
.news-button {
  background-color: #d32f2f;
  color: white;
  border-radius: 50%;
  width: 120px;
  height: 120px;
  display: none !important;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.news-button::before {
  content: "📰";
  font-size: 2.5em;
  position: absolute;
  transition: transform 0.3s ease;
}

.news-button:hover {
  background-color: #b71c1c;
  transform: scale(1.1);
}

.news-button:hover::before {
  transform: rotate(360deg);
  animation: float 1.5s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
  100% { transform: translateY(0); }
}  

/* ==================== */
/* Backlog Button */
/* ==================== */
.backlog-button {
  width: 120px;
  height: 120px;
  border: none;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background:
    radial-gradient(circle at 35% 35%, #4f4f4f 0%, #2f2f2f 52%, #111 100%);
  box-shadow:
    inset 0 4px 10px rgba(255,255,255,0.10),
    inset 0 -8px 14px rgba(0,0,0,0.45),
    0 0 12px rgba(255,255,255,0.14);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  z-index: 2;
}

.backlog-button::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #8f8f8f 0 10%, #303030 11% 23%, #151515 24% 100%);
  box-shadow:
    inset 0 2px 5px rgba(255,255,255,0.12),
    inset 0 -3px 8px rgba(0,0,0,0.45);
}

.backlog-button::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0b0b0b;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.06);
  z-index: 1;
}

.backlog-button:hover {
  transform: scale(1.1);
  box-shadow:
    inset 0 4px 10px rgba(255,255,255,0.14),
    inset 0 -8px 14px rgba(0,0,0,0.50),
    0 0 18px rgba(255,255,255,0.22);
}

.backlog-button:active {
  transform: scale(0.96);
}

.backlog-emoji {
  position: relative;
  z-index: 2;
  font-size: 2.4rem;
  line-height: 1;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.5));
}

/* ==================== */
/* Games I Like Button */
/* ==================== */
.games-like-button.surprise,
.surprise.games-like-button {
  width: 120px;
  height: 120px;
  border: none;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  background:
    radial-gradient(circle at 35% 30%, #5b5b5b 0%, #343434 42%, #1a1a1a 72%, #0d0d0d 100%);
  box-shadow:
    inset 0 7px 12px rgba(255,255,255,0.14),
    inset 0 -10px 16px rgba(0,0,0,0.45),
    0 8px 18px rgba(0,0,0,0.35);
  transition:
    transform 0.14s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
  z-index: 2;
}

.games-like-button.surprise::before,
.surprise.games-like-button::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #3f3f3f 0%, #252525 48%, #101010 100%);
  box-shadow:
    inset 0 2px 4px rgba(255,255,255,0.08),
    inset 0 -5px 10px rgba(0,0,0,0.45);
  z-index: 0;
}

.games-like-button.surprise .joystick-base,
.surprise.games-like-button .joystick-base {
  position: absolute;
  width: 56px;
  height: 56px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 35%, #111 0%, #1a1a1a 30%, #050505 75%, #000 100%);
  box-shadow:
    inset 0 5px 10px rgba(255,255,255,0.05),
    inset 0 -8px 12px rgba(0,0,0,0.65),
    0 1px 2px rgba(255,255,255,0.04);
  z-index: 1;
}

/* this is the important centering fix */
.games-like-button.surprise .joystick-assembly,
.surprise.games-like-button .joystick-assembly {
  position: absolute;
  width: 54px;
  height: 54px;
  left: 50%;
  top: 50%;
  transform: translate(calc(-50% - 2px), calc(-50% + 2px)) rotate(-24deg);
  transform-origin: 50% 85%;
  z-index: 3;
  transition: transform 0.14s ease;
  pointer-events: none;
}

.games-like-button.surprise .joystick-shaft,
.surprise.games-like-button .joystick-shaft {
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: 12px;
  height: 34px;
  transform: translateX(5px) translateY(-5px);
  border-radius: 10px;
  background:
    linear-gradient(90deg,
      #6de7ff 0%,
      #22bfd4 18%,
      #00a5bf 50%,
      #007f92 78%,
      #5cf2ff 100%);
  box-shadow:
    inset 1px 0 1px rgba(255,255,255,0.35),
    inset -1px 0 1px rgba(0,0,0,0.35),
    0 0 10px rgba(0,188,212,0.35);
}

.games-like-button.surprise .joystick-knob,
.surprise.games-like-button .joystick-knob {
  position: absolute;
  left: 50%;
  top: -1px;
  width: 34px;
  height: 34px;
  transform: translateX(-5px);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 30%, #ff8e8e 0%, #ff3e3e 28%, #cf0000 68%, #780000 100%);
  box-shadow:
    inset 0 3px 5px rgba(255,255,255,0.22),
    inset 0 -5px 9px rgba(0,0,0,0.38),
    0 4px 10px rgba(0,0,0,0.28),
    0 0 10px rgba(255,0,0,0.22);
}

.games-like-button.surprise:hover,
.surprise.games-like-button:hover {
  transform: scale(1.06);
  box-shadow:
    inset 0 7px 12px rgba(255,255,255,0.16),
    inset 0 -10px 16px rgba(0,0,0,0.5),
    0 12px 22px rgba(0,0,0,0.42);
}

.games-like-button.surprise:hover .joystick-assembly,
.surprise.games-like-button:hover .joystick-assembly {
  transform: translate(calc(-50% - 2px), calc(-50% + 2px)) rotate(-28deg);
}

.games-like-button.surprise:active,
.surprise.games-like-button:active {
  transform: scale(0.97);
}

.games-like-button.surprise:active .joystick-assembly,
.surprise.games-like-button:active .joystick-assembly {
  transform: translate(calc(-50% - 1px), calc(-50% + 5px)) rotate(-38deg);
}

.games-like-button.surprise:active .joystick-knob,
.surprise.games-like-button:active .joystick-knob {
  box-shadow:
    inset 0 2px 4px rgba(255,255,255,0.16),
    inset 0 -4px 8px rgba(0,0,0,0.4),
    0 2px 5px rgba(0,0,0,0.24);
}

/* Propaganda Button */
.propaganda {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, #ff0000 50%, #8b0000 80%);
  position: relative;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.6);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.propaganda-link {
  text-decoration: none;
  display: inline-block;
}

.propaganda::before {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, transparent 60%, rgba(255, 0, 0, 0.3) 80%);
  border-radius: 50%;
  animation: pulseEffect 1.5s infinite;
}

@keyframes pulseEffect {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}

.propaganda:hover {
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.9);
}

.propaganda:active {
  animation: shake 0.3s linear;
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-4px); }
  100% { transform: translateX(0); }
}

.propaganda .symbol {
  font-size: 18px;
  font-weight: bold;
  color: #ff4c4c;
  text-transform: uppercase;
  text-align: center;
}

/*  Button */
.kiss-button {
  background: url('/marjork/css/pic/meanpeoplesuck.JPEG');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border: none;
  cursor: pointer;
  position: relative;
  width: 120px;
  height: 120px;
  display: inline-block;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: transparent;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 10;
  overflow: visible;
}

.kiss-button.free {
  position: fixed !important;
  z-index: 1010;
  cursor: pointer;
  transition: transform 0.1s linear;
  contain: layout;
}

.bounce-trail {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1; /* Trail stays behind button */
}

/* Hover and active effects */
.kiss-button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(255, 223, 0, 0.8);
}

.kiss-button:active {
  transform: scale(0.95);
}

/* Ray Container */
.rays {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* Individual Ray */
.ray {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 0;
  background: rgba(255, 223, 0, 0.8);
  transform-origin: top center;
  opacity: 0;
  animation: none;
}

/* Ray Animation */
@keyframes ray-expand {
  0% {
    height: 0;
    opacity: 1;
  }
  100% {
    height: 150px;
    opacity: 0;
  }
}

/* Ray Direction */
.ray:nth-child(1) { transform: translate(-50%, -50%) rotate(0deg); }
.ray:nth-child(2) { transform: translate(-50%, -50%) rotate(45deg); }
.ray:nth-child(3) { transform: translate(-50%, -50%) rotate(90deg); }
.ray:nth-child(4) { transform: translate(-50%, -50%) rotate(135deg); }
.ray:nth-child(5) { transform: translate(-50%, -50%) rotate(180deg); }
.ray:nth-child(6) { transform: translate(-50%, -50%) rotate(225deg); }
.ray:nth-child(7) { transform: translate(-50%, -50%) rotate(270deg); }
.ray:nth-child(8) { transform: translate(-50%, -50%) rotate(315deg); }

/* Active Effect */
.kiss-button:active {
  transform: scale(0.95);
}

/* Trigger Ray Animation on Click */
.kiss-button:active .ray {
  animation: ray-expand 0.5s ease-out forwards;
}

.love-message {
  position: absolute;
  color: red;
  font-size: 20px;
  font-weight: bold;
  pointer-events: none;
  transform: translate(0, 0);
  transition: transform 2s ease, opacity 2s ease;
  opacity: 1;
  z-index: 10000;
}

/* ==================== */
/* Vinyl and Video Popup Styles */
/* ==================== */

.vinyl-link {
  text-decoration: none;
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}

.vinyl {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border-radius: 50%; /* Circle by default */
  background: radial-gradient(circle, #4E3629, #8C5E3C); /* Brown vinyl background */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
  z-index: 20; /* Keeps the same z-index */
  transition: transform 0.3s ease-in-out, border-radius 0.3s ease-in-out, box-shadow 0.3s ease-in-out; /* Smooth transition */
  transform: scale(1); /* Initial size */
  transform-origin: center center; /* Make sure it expands from the center */
  overflow: hidden; /* Prevents the content from overflowing the new rounded corners */
}

/* On hover, the circle's borders overflow and transform into a rounded square */
.vinyl:hover {
  border-radius: 15px; /* Transform the vinyl into a rounded square (squared circle) */
  transform: scale(1.1); /* Slightly expand outward */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); /* Increase shadow on hover */
  z-index: 20; /* Keep it at the same z-index */
}

/* Record - The inner part of the vinyl doesn't change */
.record {
  position: relative;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, #7A4E29 60%, #AA5B3A 85%, #7A4E29 100%); /* Darker brown color for vinyl */
  border-radius: 50%;
  box-shadow: 0 8px 10px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(255, 255, 255, 0.1);
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  /* Keep the record's size and position unchanged */
  transition: none; /* No transition for the record */
}

.record::before {
  content: '';
  position: absolute;
  width: 90%;
  height: 90%;
  border: 3px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05), 
              0 0 0 10px rgba(255, 255, 255, 0.02), 
              0 0 0 20px rgba(255, 255, 255, 0.01);
}

.record::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background: radial-gradient(circle, #d4d4d4 40%, #a6a6a6 100%);
  border-radius: 50%;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.3);
}

.record .center-hole {
  position: absolute;
  width: 2px;
  height: 2px;
  background: black;
  border-radius: 10%;
  z-index: 3;
}

.vinyl .record {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #000;
  box-shadow: inset 0 0 6px #555;
  transition: transform 0.5s ease-in-out;
  z-index: 15;
}

.arm {
  position: absolute;
  width: 80px;
  height: 15px;
  background: #5B3D2B; /* Darker brown for the arm */
  border-radius: 4px;
  transform-origin: center right;
  transition: transform 0.3s ease-in-out;
  right: -10px;
  top: 2%;
  opacity: 0;
  z-index: 15;
}

.stylus-base {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  right: 0;
  top: 50%;
  opacity: 0;
  z-index: 15;
}

.grooves {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: repeating-conic-gradient(black 0deg 45deg, transparent 45deg 90deg, black 90deg 135deg);
  opacity: 0.6;
  pointer-events: none;
  z-index: 15;
}

/* Vinyl hover effects - These parts appear when hovered */
.vinyl:hover .wood-box {
  opacity: 1;
}

.vinyl:hover .arm {
  opacity: 1;
  transform: rotate(320deg);
  overflow: visible;
}

.vinyl:hover .stylus-base {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(320deg);
  overflow: visible;
}

/* ==================== */
/* Stats.fm Button */
/* ==================== */
.statsfm {
  background-color: #2b3a3e;
  color: limegreen;
  border-radius: 50%;
  width: 120px;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  z-index: 1000; /* directly under spotify */
}

.statsfm img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  z-index: 2;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.statsfm .overlay {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  transition: visibility 0.3s ease-in-out, opacity 0.3s ease-in-out;
  opacity: 0;
}

.statsfm:hover .overlay {
  visibility: visible;
  opacity: 1;
}

.statsfm .overlay img {
  width: 50%;
  height: auto;
  object-fit: contain;
}

.statsfm:hover img {
  opacity: 1;
}

/* Existing Twitter Button Styling */
.twitter {
  background-color: black;
  color: white;
  border-radius: 50%;
  width: 120px;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transition: transform 0.3s ease-in-out;
  z-index: 2; /* Ensure it stays above the grid container */
  transform-style: preserve-3d; /* Enable 3D transformations */
}

.twitter img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
}

/* Twitter Button on Hover - 3D tilt towards the viewer */
.twitter:hover {
  animation: spin 3s linear infinite;
  background-color: black;
  transform: rotateY(45deg); /* Tilt towards the viewer on hover */
  z-index: 3; /* Ensure the button appears above other elements */
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Wrestling Button */
.dropkickd-button {
  display: inline-block;
  width: 120px;
  height: 120px;
  border-radius: 50%; /* Initially circular */
  background-color: #4A1F44; /* Dark purple background for the wrestling ring */
  color: white;
  font-weight: bold;
  font-size: 14px;
  text-align: center;
  line-height: 120px; /* Vertically center text */
  border: 5px solid #3A0E35; /* Darker purple border for the ring */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden; /* Prevent overflow */
  cursor: pointer;
  transition: all 0.6s ease; /* Smooth transition for scaling */
  transform-origin: center; /* Ensure the expansion happens from the center */
  z-index: 10; /* Ensure the button is on top of other elements */
}

/* On hover, the circle's borders flood outward to form the squared circle */
.dropkickd-button:hover {
  border-radius: 15px; /* Transform the button into a squared circle */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); /* Increase shadow on hover */
  z-index: 20; /* Ensure it covers other elements when expanded */
}

/* Ring posts at the four corners */
.dropkickd-button .top-left-post,
.dropkickd-button .top-right-post,
.dropkickd-button .bottom-left-post,
.dropkickd-button .bottom-right-post {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: #C74E85; /* Purple color for ring posts */
  border-radius: 50%;
  opacity: 0; /* Initially hidden */
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 99999; /* Ensure posts are above the button */
}

/* Top-left corner post */
.dropkickd-button .top-left-post {
  top: -20px; /* Position above the button */
  left: -20px; /* Position left of the button */
}

/* Top-right corner post */
.dropkickd-button .top-right-post {
  top: -20px; /* Position above the button */
  right: -20px; /* Position right of the button */
}

/* Bottom-left corner post */
.dropkickd-button .bottom-left-post {
  bottom: -20px; /* Position below the button */
  left: -20px; /* Position left of the button */
}

/* Bottom-right corner post */
.dropkickd-button .bottom-right-post {
  bottom: -20px; /* Position below the button */
  right: -20px; /* Position right of the button */
}

/* Ring ropes (stretch from each corner) */
.dropkickd-button .rope-top,
.dropkickd-button .rope-bottom,
.dropkickd-button .rope-left,
.dropkickd-button .rope-right {
  content: "";
  position: absolute;
  background-color: #F0A7D1; /* Light purple ropes */
  opacity: 0; /* Initially hidden */
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9999; /* Make sure ropes appear below posts but above the button */
}

/* Top rope */
.dropkickd-button .rope-top {
  top: 50%;
  left: -40px;
  width: 120%;
  height: 5px;
  transform: translateY(-50%);
}

/* Bottom rope */
.dropkickd-button .rope-bottom {
  bottom: 50%;
  left: -40px;
  width: 120%;
  height: 5px;
  transform: translateY(50%);
}

/* Left rope */
.dropkickd-button .rope-left {
  top: -40px;
  left: 50%;
  height: 120%;
  width: 5px;
  transform: translateX(-50%);
}

/* Right rope */
.dropkickd-button .rope-right {
  top: -40px;
  right: 50%;
  height: 120%;
  width: 5px;
  transform: translateX(50%);
}

/* On hover, make the ropes and posts visible and animate */
.dropkickd-button:hover .top-left-post,
.dropkickd-button:hover .top-right-post,
.dropkickd-button:hover .bottom-left-post,
.dropkickd-button:hover .bottom-right-post {
  opacity: 1; /* Show the ring posts */
}

.dropkickd-button:hover .rope-top,
.dropkickd-button:hover .rope-bottom,
.dropkickd-button:hover .rope-left,
.dropkickd-button:hover .rope-right {
  opacity: 1; /* Show the ropes */
  transform: translateX(0) translateY(0); /* Stretch the ropes to the corners */
}

/* Center logo in the middle of the ring */
.dropkickd-button .logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Center the logo */
  width: 80px;
  height: 80px;
  background-image: url('https://dropkickd.com/assets/logoMobile-Bvdlcwd2.webp');
  background-size: contain;
  background-repeat: no-repeat;
  transition: opacity 0.3s ease;
  opacity: 0; /* Initially hidden */
  z-index: 10; /* Ensure logo stays on top of the ring */
}

.dropkickd-button:hover .logo {
  opacity: 1; /* Make logo appear when hovered */
}
/* Substack Button Styling (Default) */
.substack-button {
  background-color: #FF6A13; /* Default orange background */
  color: white;
  border-radius: 50%; /* Circular shape */
  width: 120px;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transition: transform 0.3s ease-in-out;
  z-index: 2; /* Ensure it stays above the grid container */
  transform-style: preserve-3d; /* Enable 3D transformations */
  position: relative; /* Ensure correct positioning */
  border: 2px solid #FF6A13; /* Default orange border */
  background-image: url('https://github.com/kritiquekapital/marjork/blob/main/css/pic/Psych-Flower%20%2304.png'); /* Default image */
  background-size: cover; /* Ensure the image is fully covered within the button */
  background-position: center; /* Center the image */
}

/* Ensure the image is fully visible and positioned correctly */
.substack-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  opacity: 1; /* Make sure the image is fully visible */
  transition: opacity 0.3s ease-in-out; /* Smooth transition for opacity */
}

@keyframes rainbow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
