:root {
  --bg: #060a08;
  --surface: #0c1612;
  --surface-2: #11201a;
  --border: #1f3a30;
  --border-bright: #2d5a48;
  --text: #e8f5ec;
  --text-dim: #6f9484;
  --accent: #ffb300;
  --accent-2: #2de0c2;
  --green: #39ff6a;
  --red: #ff4545;
  --orange: #ff8a3d;
  --radius: 3px;
  --max-width: 640px;
  --font-display: "Orbitron", "Arial Narrow", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* CRT scanlines: edit these two to test sizes — line = lit stripe, gap = dark stripe between */
  --scan-line: 3px;
  --scan-gap: 4px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
}

@property --sweep-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

body {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 1100px 650px at 50% -8%, rgba(255, 179, 0, 0.14), transparent 60%),
    radial-gradient(ellipse 900px 800px at 92% 12%, rgba(45, 224, 194, 0.1), transparent 55%),
    radial-gradient(ellipse 800px 900px at 4% 85%, rgba(45, 224, 194, 0.07), transparent 55%),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.09) 0px,
      rgba(255, 255, 255, 0.09) var(--scan-line),
      rgba(0, 0, 0, 0.35) var(--scan-line),
      rgba(0, 0, 0, 0.35) calc(var(--scan-line) + var(--scan-gap))
    ),
    linear-gradient(170deg, #0a1612 0%, #071210 28%, #060b09 55%, #040605 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

body::before {
  background-image:
    conic-gradient(from var(--sweep-angle) at 50% 8%, rgba(45, 224, 194, 0.14), transparent 22%),
    repeating-radial-gradient(circle at 50% 8%, rgba(255, 179, 0, 0.07) 0 1px, transparent 1px 72px),
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(232, 245, 236, 0.35), transparent 100%),
    radial-gradient(1.5px 1.5px at 75% 18%, rgba(232, 245, 236, 0.3), transparent 100%),
    radial-gradient(1px 1px at 60% 65%, rgba(232, 245, 236, 0.25), transparent 100%),
    radial-gradient(1.5px 1.5px at 35% 78%, rgba(232, 245, 236, 0.3), transparent 100%),
    radial-gradient(1px 1px at 90% 55%, rgba(232, 245, 236, 0.22), transparent 100%),
    radial-gradient(1px 1px at 10% 90%, rgba(232, 245, 236, 0.22), transparent 100%);
  animation: sweep 14s linear infinite;
}

@keyframes sweep {
  to {
    --sweep-angle: 360deg;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before {
    animation: none;
  }
}

body::after {
  z-index: -1;
  background-image:
    repeating-linear-gradient(90deg, rgba(45, 224, 194, 0.025) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(0deg, rgba(45, 224, 194, 0.025) 0 1px, transparent 1px 48px),
    radial-gradient(ellipse at 50% 40%, transparent 35%, rgba(0, 0, 0, 0.78) 100%);
}

@media (max-width: 600px) {
  body::before,
  body::after {
    position: absolute;
  }
}

button {
  font-family: inherit;
  cursor: pointer;
}

::selection {
  background: var(--accent-2);
  color: #04120e;
}

/* scrollbars */
.day-grid::-webkit-scrollbar,
.suggestions::-webkit-scrollbar,
.modal::-webkit-scrollbar {
  width: 8px;
}

.day-grid::-webkit-scrollbar-thumb,
.suggestions::-webkit-scrollbar-thumb,
.modal::-webkit-scrollbar-thumb {
  background: var(--border-bright);
  border-radius: 4px;
}

/* ---------- Header ---------- */
.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(6, 10, 8, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 8px 16px 0;
}

.header-top {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  margin: 0;
}

.logo-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(255, 179, 0, 0.35));
}

.logo-word {
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  text-shadow: 0 0 14px rgba(255, 179, 0, 0.45);
  padding-bottom: 10px;
}

.logo-radar {
  position: absolute;
  left: 2px;
  bottom: 0;
  display: flex;
  gap: 5px;
}

.logo-radar span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-2);
  opacity: 0.25;
  animation: radar-blink 3.6s ease-in-out infinite;
}

.logo-radar span:nth-child(1) {
  animation-delay: 0s;
}

.logo-radar span:nth-child(2) {
  animation-delay: 0.3s;
}

.logo-radar span:nth-child(3) {
  animation-delay: 0.6s;
}

.logo-radar span:nth-child(4) {
  animation-delay: 0.9s;
}

.logo-radar span:nth-child(5) {
  animation-delay: 1.2s;
}

@keyframes radar-blink {
  0%,
  60%,
  100% {
    opacity: 0.22;
    box-shadow: none;
    transform: scale(1);
  }
  20% {
    opacity: 1;
    box-shadow: 0 0 6px 1px var(--accent-2);
    transform: scale(1.3);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-radar span {
    animation: none;
    opacity: 0.6;
  }
}

.header-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.text-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: var(--radius);
  height: 34px;
  padding: 0 12px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.text-btn:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

@media (max-width: 420px) {
  .logo {
    font-size: 1.05rem;
    gap: 6px;
  }

  .logo-icon {
    width: 38px;
    height: 38px;
  }

  .text-btn {
    padding: 0 8px;
    font-size: 0.64rem;
  }

  .header-actions {
    gap: 4px;
  }
}

.mode-tabs {
  max-width: var(--max-width);
  margin: 8px auto 0;
  display: flex;
  gap: 8px;
}

.mode-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-dim);
  padding: 8px 8px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.mode-tab-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  opacity: 0.8;
}

.mode-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.mode-tab.active .mode-tab-icon {
  opacity: 1;
  filter: drop-shadow(0 0 4px rgba(255, 179, 0, 0.5));
}

/* ---------- Main ---------- */
.app-main {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.puzzle-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px 16px;
  text-align: center;
}

.puzzle-card::before,
.guess-panel::before,
.modal::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.1) 0px,
    rgba(255, 255, 255, 0.1) var(--scan-line),
    transparent var(--scan-line),
    transparent calc(var(--scan-line) + var(--scan-gap))
  );
}

.puzzle-card {
  background-image:
    linear-gradient(var(--accent-2) 0 0), linear-gradient(var(--accent-2) 0 0),
    linear-gradient(var(--accent-2) 0 0), linear-gradient(var(--accent-2) 0 0),
    linear-gradient(var(--accent-2) 0 0), linear-gradient(var(--accent-2) 0 0),
    linear-gradient(var(--accent-2) 0 0), linear-gradient(var(--accent-2) 0 0);
  background-repeat: no-repeat;
  background-size: 14px 2px, 2px 14px, 14px 2px, 2px 14px, 14px 2px, 2px 14px, 14px 2px, 2px 14px;
  background-position: top -1px left -1px, top -1px left -1px, top -1px right -1px, top -1px right -1px,
    bottom -1px left -1px, bottom -1px left -1px, bottom -1px right -1px, bottom -1px right -1px;
  opacity: 1;
}

.puzzle-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.day-badge {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 14px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--font-mono);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.day-badge::after {
  content: "▾";
  font-size: 1.3em;
  line-height: 0;
  color: var(--text-dim);
}

.day-badge:hover {
  border-color: var(--accent);
}

.date-label {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.puzzle-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 130px;
}

.puzzle-emoji {
  font-size: 5rem;
  line-height: 1;
  filter: drop-shadow(0 0 18px rgba(255, 179, 0, 0.2));
}

.puzzle-logo-img {
  width: 200px;
  height: 140px;
  max-width: 80%;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--accent-2);
  box-shadow: 0 0 0 1px rgba(45, 224, 194, 0.25), 0 0 18px rgba(45, 224, 194, 0.18);
  border-radius: var(--radius);
  padding: 16px 24px;
}

.puzzle-logo-img--photo {
  width: 100%;
  max-width: 380px;
  height: 180px;
  object-fit: contain;
  background: var(--surface-2);
  border: 1px solid var(--accent-2);
  box-shadow: 0 0 0 1px rgba(45, 224, 194, 0.25), 0 0 18px rgba(45, 224, 194, 0.18);
  border-radius: var(--radius);
  padding: 8px;
}

.puzzle-name {
  position: relative;
  margin-top: 18px;
  margin-bottom: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
}

.puzzle-name::before {
  content: "origin trace";
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 6px;
}

.puzzle-answer {
  margin-top: 6px;
  margin-bottom: 0;
  font-size: 0.9rem;
  color: var(--accent-2);
}

.puzzle-fact {
  margin-top: 8px;
  margin-bottom: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-dim);
}

.link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent-2);
  font-size: inherit;
  font-weight: 600;
  text-decoration: underline;
}

.banner {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.82rem;
  color: var(--text-dim);
  text-align: center;
}

.view-share-btn {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: var(--radius);
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
}

.view-share-btn:hover {
  background: var(--surface);
  filter: brightness(1.15);
}

.view-share-btn[hidden] {
  display: none;
}

/* ---------- Guess panels ---------- */
.guess-panels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 560px) {
  .guess-panels {
    grid-template-columns: 1fr 1fr;
  }
}

.guess-panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent-2);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-header h2 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin: 0;
}

.panel-header h2::before {
  content: "[";
  color: var(--accent-2);
}

.panel-header h2::after {
  content: "]";
  color: var(--accent-2);
}

.panel-header-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.85;
}

.attempts-left {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: var(--radius);
}

.guess-form {
  display: flex;
  gap: 8px;
  position: relative;
}

.combo-wrapper {
  position: relative;
  flex: 1;
}

.guess-form input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-mono);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 0.92rem;
}

.guess-form input::placeholder {
  color: var(--text-dim);
  opacity: 0.7;
}

.year-input-wrapper {
  position: relative;
  flex: 1;
}

.year-input-wrapper input {
  padding-right: 32px;
  appearance: textfield;
  -moz-appearance: textfield;
}

.year-input-wrapper input::-webkit-outer-spin-button,
.year-input-wrapper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.year-stepper {
  position: absolute;
  top: 1px;
  right: 1px;
  bottom: 1px;
  display: flex;
  flex-direction: column;
  width: 26px;
  border-left: 1px solid var(--border);
  overflow: hidden;
}

.year-step-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0;
  line-height: 0;
}

.year-step-btn:first-child {
  border-bottom: 1px solid var(--border);
}

.year-step-btn:hover {
  background: var(--border);
  color: var(--accent-2);
}

.year-step-btn:active {
  background: var(--accent-2);
  color: #04120e;
}

.year-input-wrapper input:disabled ~ .year-stepper .year-step-btn {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.guess-form input:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 1px var(--accent-2), 0 0 12px rgba(45, 224, 194, 0.3);
}

.submit-btn {
  position: relative;
  background: var(--accent);
  color: #1a1200;
  border: none;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.submit-btn:hover:not(:disabled) {
  filter: brightness(1.08) drop-shadow(0 0 8px rgba(255, 179, 0, 0.55));
}

.submit-btn:active:not(:disabled) {
  filter: brightness(0.95);
  transform: translateY(1px);
}

.submit-btn:disabled,
.guess-form input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--surface-2);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  max-height: 220px;
  overflow-y: auto;
  list-style: none;
  margin: 0;
  padding: 4px;
  z-index: 20;
}

.suggestions li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  cursor: pointer;
}

.suggestion-flag {
  font-size: 1.1rem;
  line-height: 1;
}

.suggestions li:hover,
.suggestions li.active {
  background: var(--border);
  color: var(--accent-2);
}

.guess-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.guess-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border-bright);
  border-radius: var(--radius);
  padding: 8px 10px;
  font-size: 0.84rem;
}

.guess-row.correct {
  background: rgba(57, 255, 106, 0.08);
  border-color: var(--green);
  border-left-color: var(--green);
  box-shadow: 0 0 10px rgba(57, 255, 106, 0.15);
}

.guess-row.failed {
  background: rgba(255, 69, 69, 0.08);
  border-color: var(--red);
  border-left-color: var(--red);
  box-shadow: 0 0 10px rgba(255, 69, 69, 0.12);
}

.guess-row.border-hint,
.guess-row.latest {
  border-color: var(--accent);
  border-left-color: var(--accent);
}

.guess-row .guess-name {
  flex: 1;
  font-weight: 600;
}

.guess-row .guess-arrow {
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
}

.emoji-icon {
  display: inline-block;
  vertical-align: -4px;
}

.guess-row .guess-dist {
  color: var(--text-dim);
  font-size: 0.74rem;
}

.guess-row .hot {
  color: var(--accent);
  font-size: 0.82rem;
}

/* ---------- Footer ---------- */
.app-footer {
  max-width: var(--max-width);
  width: 100%;
  margin: 24px auto 0;
  padding: 0 16px 24px;
  text-align: center;
}

.ad-slot {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 18px;
  color: var(--text-dim);
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.footer-note {
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  color: var(--text-dim);
  opacity: 0.8;
}

/* ---------- Modals ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 3, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 16px;
}

.modal-overlay[hidden] {
  display: none;
}

.puzzle-logo-img[hidden],
.puzzle-emoji[hidden],
.puzzle-fact[hidden],
.banner[hidden],
.suggestions[hidden] {
  display: none;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  max-width: 420px;
  width: 100%;
  position: relative;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 0 0 1px rgba(45, 224, 194, 0.12), 0 24px 60px rgba(0, 0, 0, 0.6);
}

.modal h2 {
  margin-top: 0;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1.1rem;
  color: var(--text);
  text-shadow: 0 0 10px rgba(255, 179, 0, 0.3);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: var(--radius);
  width: 30px;
  height: 30px;
}

.modal-close:hover {
  color: var(--red);
  border-color: var(--red);
}

.modal-hint {
  color: var(--text-dim);
  font-size: 0.8rem;
}

.day-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  gap: 8px;
  margin: 14px 0 4px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 2px;
}

.day-pill {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 6px;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent);
  text-align: center;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.15s ease, border-color 0.15s ease;
}

.day-pill:hover {
  border-color: var(--accent-2);
  transform: translateY(-1px);
}

.day-pill:active {
  transform: translateY(0);
}

.day-pill.active {
  background: var(--accent);
  color: #1a1200;
  border-color: var(--accent);
}

.day-pill.played-win {
  border-color: var(--green);
  color: var(--green);
}

.day-pill.played-partial {
  border-color: var(--orange);
  color: var(--orange);
}

.day-pill.played-loss {
  border-color: var(--red);
  color: var(--red);
}

.primary-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #1a1200;
  border: none;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  padding: 12px;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.88rem;
}

.share-icon {
  flex-shrink: 0;
}

.primary-btn:hover {
  filter: brightness(1.08) drop-shadow(0 0 10px rgba(255, 179, 0, 0.5));
}

.result-answer {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 12px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.share-card {
  position: relative;
  background: var(--surface-2);
  border: 1px dashed var(--border-bright);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
}

.share-card::before,
.share-card::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  opacity: 0.6;
  background:
    linear-gradient(var(--accent-2) 0 0) center / 100% 1.4px no-repeat,
    linear-gradient(var(--accent-2) 0 0) center / 1.4px 100% no-repeat;
}

.share-card::before {
  top: 6px;
  left: 6px;
}

.share-card::after {
  bottom: 6px;
  right: 6px;
}

.share-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.share-card-header b {
  color: var(--accent);
  letter-spacing: 0.04em;
}

.share-result {
  font-size: 1rem;
}

.share-stars {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.rating-text {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-dim);
}

.star-rating {
  display: inline-flex;
  gap: 2px;
}

.star {
  position: relative;
  display: inline-block;
}

.star img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.share-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.share-row .lead-icon {
  flex-shrink: 0;
  opacity: 0.85;
}

.share-row .glyphs {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
}

.share-row .glyphs img {
  display: block;
}

.share-community {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 0.72rem;
  color: var(--text-dim);
}

.share-community strong {
  color: var(--accent-2);
}

.share-community[hidden] {
  display: none;
}

.result-stats {
  display: flex;
  justify-content: space-around;
  margin-top: 16px;
  text-align: center;
}

.result-stats div {
  display: flex;
  flex-direction: column;
}

.result-stats .value {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
}

.result-stats .label {
  font-size: 0.64rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.stats-grid .stat-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
}

.stats-grid .stat-box .value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.stats-grid .stat-box .label {
  font-size: 0.66rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.stats-grid .stat-box--wide {
  grid-column: 1 / -1;
}

.stats-grid .stat-box--wide .value {
  display: flex;
  justify-content: center;
}

.help-list {
  padding-left: 18px;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--text-dim);
}

.help-list strong {
  color: var(--accent-2);
}

.help-icon {
  display: inline-block;
  vertical-align: -3px;
  margin: 0 1px;
}
