:root {
  --desktop-pink: #ffb6dc;
  --desktop-pink-dark: #d86aa9;
  --window-gray: #c0c0c0;
  --window-light: #ffffff;
  --window-dark: #404040;
  --title-pink: #b11670;
  --title-purple: #5b155a;
  --ink: #251421;
  --soft-pink: #ffe4f2;
  --warning: #9c005d;
}

canvas {
  pointer-events: none !important;
}

::selection {
  background: pink;
  color: black;
}

html {
  scrollbar-color: pink transparent;
  scrollbar-width: thin;
  scroll-behavior: smooth;
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: pink;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: hotpink;
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  padding: 28px 14px 70px;
  overflow-x: hidden;

  background-color: white;
  background-image: url("im-sorry-you-have-to-see-what-kansas-looks-like.png");
  background-size: 48px 19px;
  background-repeat: repeat;
  background-position: top left;

  font-family: "MS Sans Serif", Tahoma, Geneva, Verdana, sans-serif;
}

body::before {
  content: none;
}

body.gay-mode::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  background-image:
    url("im-sorry-you-have-to-see-what-kansas-looks-like.png"),
    linear-gradient(
      90deg,
      red,
      orange,
      yellow,
      lime,
      cyan,
      blue,
      violet,
      hotpink,
      red
    );

  background-size:
    48px 19px,
    500px 500px;

  background-repeat:
    repeat,
    repeat;

  background-position:
    top left,
    0 0;

  background-blend-mode: multiply;
  image-rendering: pixelated;
  opacity: 0.95;

  animation:
    kansasRainbow 5s linear infinite,
    kansasRainbowSlide 30s linear infinite;
}

body > * {
  position: relative;
  z-index: 1;
}

@keyframes kansasRainbow {
  from {
    filter: hue-rotate(0deg) saturate(2.5);
  }

  to {
    filter: hue-rotate(360deg) saturate(2.5);
  }
}

@keyframes kansasRainbowSlide {
  from {
    background-position:
      top left,
      0 0;
  }

  to {
    background-position:
      48px 19px,
      500px 0;
  }
}

button,
a {
  font: inherit;
}

.shitty-kansas-photo {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 10px auto;
  border: 3px solid #ff9acb;
}

.social-item {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 6px;
  padding: 6px;
  margin-bottom: 6px;
  background: #fff5fb;
  border: 2px solid #ff9acb;
  box-shadow: inset -1px -1px #b35f8a, inset 1px 1px #ffffff;
}

.social-icon {
  font-size: 20px;
  text-align: center;
}

.social-name {
  font-weight: bold;
}

.social-status {
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 999px;
}

.social-item.never {
  opacity: 0.75;
}

.social-item.never .social-name {
  text-decoration: line-through;
}

.social-item.never .social-status {
  color: white;
  background: #777;
}

.social-item.always {
  background: #ffe6f3;
  border-color: #ff4fa3;
  animation: yikYakGlow 1.2s infinite alternate;
}

.social-item.always .social-status {
  color: white;
  background: #ff1493;
}


@keyframes yikYakGlow {
  from {
    box-shadow: 0 0 4px #ff9acb;
  }

  to {
    box-shadow: 0 0 14px #ff4fa3;
  }
}

.desktop-icon {
  position: fixed;
  top: 16px;
  left: 16px;
  width: 92px;
  color: #4a1038;
  text-align: center;
  text-shadow: 1px 1px #fff;
  z-index: 1;
}

.desktop-icon span {
  display: block;
  margin-bottom: 5px;
  font-size: 42px;
  line-height: 1;
}

.window {
  position: relative;
  z-index: 2;
  width: min(920px, 100%);
  margin: 26px auto 0;
  padding: 3px;
  background: var(--window-gray);
  border-top: 3px solid var(--window-light);
  border-right: 4px solid var(--window-dark);
  border-bottom: 4px solid var(--window-dark);
  border-left: 3px solid var(--window-light);
  box-shadow: 12px 14px 0 rgba(76, 18, 56, 0.25);
}

.title-bar {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 6px 5px 10px;
  color: white;
  background: linear-gradient(
    90deg,
    var(--title-purple),
    var(--title-pink),
    #f03f9b
  );
}

.title-bar h1 {
  margin: 0;
  font-size: clamp(17px, 4vw, 27px);
  letter-spacing: 1px;
}

.window-controls {
  display: flex;
  flex-shrink: 0;
  gap: 4px;
}

.window-control {
  display: grid;
  width: 28px;
  height: 26px;
  place-items: center;
  padding: 0;
  background: var(--window-gray);
  border-top: 2px solid #fff;
  border-right: 2px solid #333;
  border-bottom: 2px solid #333;
  border-left: 2px solid #fff;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.window-control:active,
.retro-button:active {
  border-top-color: #333;
  border-right-color: #fff;
  border-bottom-color: #fff;
  border-left-color: #333;
  transform: translate(1px, 1px);
}

.menu-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  padding: 7px 10px;
  background: var(--window-gray);
  border-bottom: 2px solid #777;
  font-size: 14px;
}

.menu-bar a {
  color: #230c1d;
  text-decoration: none;
}

.menu-bar a:hover,
.menu-bar a:focus-visible {
  color: var(--warning);
  text-decoration: underline;
}

.ticker {
  overflow: hidden;
  margin: 7px;
  padding: 7px 0;
  color: #fff;
  background: #6d164f;
  border: 2px inset #eee;
  white-space: nowrap;
}

.ticker span {
  display: inline-block;
  min-width: 100%;
  padding-left: 100%;
  font-weight: 700;
  animation: scroll-left 500s linear infinite;
}

@keyframes scroll-left {
  to {
    transform: translateX(-100%);
  }
}

.content-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 8px;
  padding: 0 7px 7px;
}

.panel {
  margin-bottom: 8px;
  background: var(--window-gray);
  border-top: 3px solid #fff;
  border-right: 3px solid #4d4d4d;
  border-bottom: 3px solid #4d4d4d;
  border-left: 3px solid #fff;
}

.panel-title {
  margin: 0;
  padding: 5px 7px;
  color: #fff;
  background: linear-gradient(90deg, #7e195b, #e0388c);
  font-size: 16px;
  letter-spacing: 0.6px;
}

.panel-content {
  padding: 10px;
  font-size: 15px;
  line-height: 1.45;
}

.panel-content > :first-child {
  margin-top: 0;
}

.panel-content > :last-child {
  margin-bottom: 0;
}

.nav-list,
.here-do-i-swear {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list li + li {
  margin-top: 8px;
}

.retro-button {
  width: 100%;
  padding: 7px 8px;
  color: #2b1023;
  background: #f8bcdc;
  border-top: 3px solid #fff;
  border-right: 3px solid #5f3150;
  border-bottom: 3px solid #5f3150;
  border-left: 3px solid #fff;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.retro-button:hover,
.retro-button:focus-visible {
  background: #ffd8ec;
}

.mode-toggle {
  text-align: center;
}

.mode-toggle.gay-active {
  color: white;
  background: linear-gradient(
    90deg,
    red,
    orange,
    yellow,
    lime,
    cyan,
    blue,
    violet
  );
  text-shadow: 1px 1px black;
}

.warning-box {
  padding: 9px;
  color: #6d003e;
  background: #fff2a8;
  border: 2px dashed #a90067;
  font-weight: 700;
}

.flag-wrap {
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr;
  align-items: center;
  gap: 16px;
}

.flag-wrap img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border: 4px ridge #ffb4dc;
}

.flag-score {
  margin: 8px 0;
  color: var(--warning);
  font-size: clamp(30px, 7vw, 56px);
  font-weight: 900;
  line-height: 1;
  text-shadow: 2px 2px #ffb7dd;
}

.here-do-i-swear {
  counter-reset: complaints;
}

.here-do-i-swear li {
  position: relative;
  margin: 0 0 9px;
  padding: 9px 10px 9px 42px;
  background: var(--soft-pink);
  border: 2px solid #df82b8;
}

.here-do-i-swear li::before {
  position: absolute;
  top: 7px;
  left: 9px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #fff;
  background: #a60064;
  border-radius: 50%;
  font-weight: 900;
  content: counter(complaints);
  counter-increment: complaints;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.badge {
  padding: 4px 7px;
  color: #fff;
  background: #982267;
  border: 2px outset #ffcae7;
  font-size: 12px;
  font-weight: 700;
}

.status-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 7px 7px;
  padding: 4px;
  background: var(--window-gray);
  border-top: 2px solid #777;
}

.status-item {
  flex: 1 1 180px;
  padding: 4px 7px;
  border: 2px inset #eee;
  font-size: 12px;
}

.sparkle {
  color: #c00075;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(54, 9, 42, 0.48);
}

.modal-backdrop.show {
  display: grid;
}

.dialog {
  width: min(430px, 100%);
  padding: 3px;
  background: var(--window-gray);
  border-top: 3px solid #fff;
  border-right: 4px solid #333;
  border-bottom: 4px solid #333;
  border-left: 3px solid #fff;
}

.dialog-body {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 18px 15px;
}

.dialog-icon {
  font-size: 42px;
}

.dialog-actions {
  display: flex;
  justify-content: center;
  padding: 0 15px 14px;
}

.dialog-actions .retro-button {
  width: 110px;
  text-align: center;
}

@media (max-width: 760px) {
  body {
    padding-top: 90px;
  }

  .desktop-icon {
    position: absolute;
  }

  .content-grid,
  .flag-wrap {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .sidebar .panel {
    margin-bottom: 0;
  }
}

@media (max-width: 500px) {
  .sidebar {
    grid-template-columns: 1fr;
  }

  .title-bar h1 {
    max-width: 72%;
  }

  .window-control {
    width: 24px;
    height: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  body.gay-mode::before {
    filter: hue-rotate(300deg) saturate(2.5);
  }
}

.mobile-ad-hidden {
  display: none !important;
}

.google-datingneeded {
  width: 100%;
  margin: 0 0 12px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #dadce0;
  border-radius: 8px;
  color: #202124;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.35;
  box-shadow: none;
}

.google-datingneeded * {
  box-sizing: border-box;
}

.datingneeded-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.datingneeded-label {
  color: #5f6368;
  font-size: 12px;
  font-weight: 400;
}

.datingneeded-menu {
  width: 24px;
  height: 24px;
  padding: 0;
  color: #5f6368;
  background: transparent;
  border: 0;
  border-radius: 50%;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.datingneeded-menu:hover {
  background: #f1f3f4;
}

.datingneeded-url {
  display: block;
  margin-bottom: 3px;
  color: #202124;
  font-size: 12px;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.datingneeded-title {
  display: block;
  margin-bottom: 5px;
  color: #1a0dab;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.25;
  text-decoration: none;
}

.datingneeded-title:hover {
  text-decoration: underline;
}

.datingneeded-description {
  margin: 0 0 8px;
  color: #4d5156;
  font-size: 13px;
}

.datingneeded-list {
  margin: 8px 0 10px;
  padding-left: 18px;
  color: #4d5156;
  font-size: 13px;
}

.datingneeded-list li {
  margin-bottom: 4px;
}

.datingneeded-button {
  display: inline-block;
  width: 100%;
  padding: 8px 10px;
  color: #1a73e8;
  background: #f8fbff;
  border: 1px solid #dadce0;
  border-radius: 18px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.datingneeded-button:hover {
  background: #eef5ff;
  text-decoration: none;
}

.datingneeded-disclaimer {
  margin: 8px 0 0;
  color: #70757a;
  font-size: 11px;
}
