/* Minimal login bar styles */
.minimal-login-bar {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  z-index: 10;
  padding: 10px 0 0 0;
  background: transparent;
  border-radius: 0 0 0 18px;
  box-shadow: none;
  border-bottom: none;
}
.minimal-login-bar .account-menu-btn img {
  width: 28px;
  height: 28px;
  display: block;
  filter: brightness(0) invert(1);
}
.minimal-login-bar .account-menu-btn {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0 8px 0 0;
  min-width: unset;
  min-height: 32px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.minimal-login-bar .account-menu-panel {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: #131c2b;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.3);
  padding: 16px;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid rgba(171, 185, 204, 0.2);
  z-index: 100;
}
.minimal-login-bar .home-dev-login {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  background: var(--bg);
  border-radius: 6px;
  padding: 4px 6px;
}
.minimal-login-bar input[type="text"] {
  width: 80px;
  padding: 2px 6px;
  font-size: 0.97em;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  transition: border 0.15s;
}
.minimal-login-bar input[type="text"]:focus {
  border: 1.5px solid #8bd8ad;
  outline: none;
}
.minimal-login-bar button {
  font-size: 0.97em;
  padding: 3px 10px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  transition: background 0.15s, color 0.15s;
}
.minimal-login-bar button:hover {
  background: #232c3e;
  color: #8bd8ad;
}
.minimal-login-bar .home-auth-status {
  padding-bottom: 10px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(171, 185, 204, 0.15);
}
.minimal-login-bar .account-menu-panel .button {
  width: 100%;
  min-height: 36px;
  border-radius: 8px;
  font-size: 0.88rem;
  padding: 0 14px;
  font-weight: 600;
}
.minimal-login-bar .account-menu-panel .button:hover {
  transform: none;
}
.minimal-login-bar .account-menu-panel .button-primary {
  background: linear-gradient(135deg, #e8edf6, #c4cfde);
  color: #111722;
  border-color: transparent;
}
.minimal-login-bar .account-menu-panel .button-primary:hover {
  background: linear-gradient(135deg, #f0f4fc, #d0daea);
}
.minimal-login-bar .account-menu-panel .button-secondary {
  border-color: rgba(171, 185, 204, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}
.minimal-login-bar .account-menu-panel .button-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
}

/* Card rating styles */
.card-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.card-rating {
  display: flex;
  align-items: center;
  font-size: 1.1em;
  color: #ffd700;
  font-weight: 600;
  gap: 2px;
}
.card-rating .avg-rating {
  color: #ffd700;
  font-weight: 600;
  margin-right: 2px;
}
.card-rating .star-symbol {
  color: #ffd700;
  font-size: 1.1em;
  margin-left: 1px;
}
.star-rating-ui {
  display: inline-flex;
  gap: 2px;
  margin-left: 8px;
  vertical-align: middle;
}
.star-input {
  font-size: 1.2em;
  color: #444a5a;
  cursor: pointer;
  transition: color 0.15s;
}
.star-input:hover,
.star-input:focus {
  color: #ffd700;
}
* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

:root {
  color-scheme: dark;
  --bg: #111722;
  --bg-top: #252f3f;
  --panel: rgba(13, 18, 26, 0.86);
  --panel-strong: rgba(16, 22, 31, 0.95);
  --line: rgba(171, 185, 204, 0.22);
  --text: #edf2fb;
  --muted: #a2afc2;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(136, 151, 175, 0.10), transparent 30%),
    radial-gradient(circle at top right, rgba(106, 121, 146, 0.3), transparent 34%),
    linear-gradient(180deg, var(--bg-top), var(--bg));
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 85%);
}

.page-shell {
  width: min(1160px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 40px clamp(24px, 5vw, 56px);
  border: none;
  border-radius: 32px 0 32px 32px;
  background:
    radial-gradient(circle at 95% 50%, rgba(255,255,255,0.82) 0%, rgba(245,251,255,0.38) 32%, transparent 60%),
    linear-gradient(120deg, rgba(14, 20, 30, 0.95) 0%, rgba(18, 24, 34, 0.84) 57%, rgba(192, 207, 228, 0.43) 100%);
  box-shadow: var(--shadow);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 98% 50%, rgba(255,255,255,0.92) 0%, rgba(238,245,255,0.32) 30%, transparent 60%),
    linear-gradient(120deg, rgba(255,255,255,0.08) 0%, rgba(236,244,255,0.22) 100%);
  opacity: 0.88;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.04) 42%, rgba(0, 0, 0, 0.8) 56%, #000 100%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -6% -42% auto;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 242, 255, 0.42), rgba(206, 220, 240, 0.19) 44%, transparent 74%);
  filter: blur(14px);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: stretch;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-account-corner {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  display: grid;
  justify-items: end;
  gap: 8px;
}

.hero-account-corner .account-menu-btn {
  min-height: 38px;
  padding: 0 14px;
}

.hero-account-corner .account-menu-panel {
  width: min(380px, calc(100vw - 56px));
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(10, 15, 24, 0.96);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45);
  display: grid;
  gap: 10px;
}

.account-link {
  min-height: 34px;
  font-size: 0.84rem;
}

.account-link[aria-disabled="true"] {
  opacity: 0.4;
  pointer-events: none;
  cursor: default;
}

.eyebrow,
.card-kicker,
.notes-kicker {
  margin: 0 0 10px;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero h1,
.tool-card h2,
.notes-panel h2 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.hero h1 {
  max-width: 10ch;
  font-size: clamp(4rem, 10vw, 7rem);
  line-height: 0.92;
}

.beta-tag {
  display: inline-block;
  margin: 0px 0 0px;
  padding: 2px 10px 3px;
  border-radius: 999px;
  border: 1px solid rgba(171, 185, 204, 0.35);
  background: rgba(255, 255, 255, 0.07);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-copy {
  max-width: 660px;
  margin: 18px 0 0;
  font-size: 1.08rem;
  line-height: 1.7;
  color: #ffffff;
}

.hero-side-image {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: clamp(280px, 34vw, 440px);
  object-fit: contain;
  object-position: center 18%;
  filter: saturate(0.86) contrast(1.16) brightness(1.04) drop-shadow(0 16px 24px rgba(0, 0, 0, 0.22));
  user-select: none;
  -webkit-user-drag: none;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, #e8edf6, #c4cfde);
  color: #111722;
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.button-danger {
  border-color: rgba(240, 100, 100, 0.4);
  background: rgba(200, 50, 50, 0.12);
  color: #f08080;
}

.button-danger:hover,
.button-danger:focus-visible {
  background: rgba(200, 50, 50, 0.22);
  border-color: rgba(240, 100, 100, 0.7);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 26px;
}

.tool-card,
.notes-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.tool-card {
  display: grid;
  gap: 18px;
  min-height: 420px;
  padding: 28px;
}

.tool-card h2 {
  font-size: 2.6rem;
  line-height: 0.96;
}

.card-copy,
.notes-panel p,
.feature-list {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.feature-list {
  padding-left: 20px;
}

.card-accent {
  position: absolute;
  top: -54px;
  right: -36px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  filter: blur(4px);
  opacity: 0.9;
}

.tool-card-adventure .card-accent {
  background: radial-gradient(circle, rgba(164, 176, 196, 0.34), transparent 70%);
}

.tool-card-mystery .card-accent {
  background: radial-gradient(circle, rgba(136, 151, 175, 0.34), transparent 70%);
}

.tool-card-adventure {
  background: linear-gradient(180deg, rgba(14, 20, 29, 0.92), rgba(15, 18, 28, 0.88));
}

.tool-card-mystery {
  background: linear-gradient(180deg, rgba(12, 17, 25, 0.92), rgba(15, 18, 28, 0.88));
}

.tool-card-adventure .card-kicker {
  color: #cdd8e8;
}

.tool-card-mystery .card-kicker {
  color: #c2cfdf;
}

.notes-panel {
  margin-top: 20px;
  padding: 26px 28px;
  background: var(--panel-strong);
}

.notes-panel-content {
  display: block;
}

.notes-panel-left {
  display: grid;
  gap: 14px;
}

.notes-panel h2 {
  font-size: 2.2rem;
  line-height: 0.98;
}

.notes-panel-heading {
  display: grid;
  gap: 8px;
  align-content: start;
}

.notes-subtitle {
  display: inline-flex;
  width: fit-content;
  margin: 0;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.notes-body-copy {
  align-self: center;
}

.notes-actions {
  margin-top: 14px;
}

.home-auth-status {
  margin: 0;
  color: #d7e2f5;
  font-size: 0.86rem;
}

.home-auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-auth-actions .button {
  min-height: 36px;
  padding: 0 10px;
  font-size: 0.84rem;
}

.home-dev-login {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  align-items: end;
}

.home-dev-login label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.home-dev-login input {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(180, 201, 236, 0.25);
  border-radius: 12px;
  background: #10192a;
  color: var(--text);
  font: inherit;
}

.site-footer {
  margin-top: 18px;
  padding: 10px 4px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.support-footer {
  position: relative;
  margin-top: 44px;
  padding-top: 68px;
}

.support-footer::before {
  content: "";
  display: block;
  width: min(760px, calc(100% - 120px));
  height: 1px;
  margin: 0 auto 68px;
  background: linear-gradient(90deg, rgba(171, 185, 204, 0), rgba(171, 185, 204, 0.7) 22%, rgba(171, 185, 204, 0.7) 78%, rgba(171, 185, 204, 0));
}

.support-footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.support-col {
  min-width: 0;
  text-align: center;
}

.support-footer-heading {
  margin: 0 0 8px;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.32rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text);
}

.support-footer-copy {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.35;
  font-size: 0.85rem;
}

.support-footer-actions,
.support-footer-contact {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.support-footer-btn,
.support-footer-select {
  width: min(320px, 100%);
  min-height: 36px;
  border-radius: 10px;
  padding: 8px 11px;
  border: 1px solid rgba(66, 85, 116, 0.46);
  background: rgba(20, 30, 46, 0.54);
  color: #b7c6db;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
}

.support-footer-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  opacity: 0.98;
  filter: brightness(0) invert(1);
}

.support-footer-label {
  line-height: 1;
}

.support-footer-btn:hover,
.support-footer-link:hover {
  background: rgba(26, 39, 60, 0.76);
  border-color: rgba(95, 120, 160, 0.56);
  color: #d2deef;
}

.support-footer-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #a9bddc 50%), linear-gradient(135deg, #a9bddc 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.support-footer-select:focus {
  outline: none;
  border-color: rgba(101, 127, 168, 0.7);
  box-shadow: 0 0 0 2px rgba(84, 112, 151, 0.18);
}

.support-footer-donate {
  background: rgba(72, 58, 27, 0.56);
  border-color: rgba(152, 128, 69, 0.52);
  color: #edd69d;
}

.support-footer-donate:hover {
  background: rgba(89, 70, 32, 0.72);
  border-color: rgba(171, 145, 79, 0.62);
  color: #f3e2bb;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 860px) {
  .page-shell {
    width: min(100vw - 20px, 1160px);
    padding-top: 20px;
  }

  .tool-grid,
  .notes-panel,
  .support-footer-grid {
    grid-template-columns: 1fr;
  }

  .support-footer {
    margin-top: 34px;
    padding-top: 52px;
  }

  .support-footer::before {
    width: calc(100% - 36px);
    margin-bottom: 52px;
  }

  .hero {
    padding: 28px 20px;
  }

  .hero::before {
    opacity: 0.73;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero h1 {
    font-size: clamp(3.1rem, 18vw, 5.2rem);
  }

  .hero-account-corner {
    position: static;
    justify-items: start;
    margin-bottom: 10px;
  }

  .account-menu-panel {
    width: min(460px, calc(100vw - 44px));
  }

  .hero-side-image {
    min-height: clamp(210px, 56vw, 320px);
  }

  .tool-card {
    min-height: auto;
    padding: 22px;
  }

  .home-dev-login {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero,
  .tool-card,
  .notes-panel {
    animation: rise-in 680ms ease both;
  }

  .tool-card:nth-child(2) {
    animation-delay: 110ms;
  }

  .notes-panel {
    animation-delay: 180ms;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}