/* TennoTools Profile Check — docs site.
   Same theme tokens as the app (apps/web/src/styles.css). No external requests: the only
   script is the small local lightbox (assets/lightbox.js) that enlarges screenshots. */

:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: #0f0f0f;
  --panel-border: rgba(255, 215, 0, 0.18);
  --panel-border-strong: rgba(255, 215, 0, 0.45);
  --ink: #e8e8e8;
  --muted: #8a8a8a;
  --accent: #ffd700;
  --accent-dim: rgba(255, 215, 0, 0.12);
  --danger: #ff6b6b;
  --warn: #ffb020;
  --ok: #4ade80;
  --font-sans: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at center, #111 0%, #050505 100%) fixed;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

code {
  font-family: ui-monospace, Consolas, "Cascadia Mono", monospace;
  font-size: 0.85em;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.35rem;
  padding: 0.08rem 0.35rem;
}

pre {
  margin: 0.75rem 0 0;
  border: 1px solid var(--panel-border);
  border-radius: 0.6rem;
  background: rgba(0, 0, 0, 0.45);
  padding: 0.9rem 1.1rem;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.55;
}
pre code {
  background: none;
  border: none;
  padding: 0;
}

.wrap {
  margin: 0 auto;
  width: 100%;
  max-width: 48rem;
  padding: 0 1rem;
}

/* ---------- header ---------- */

.site-header {
  padding: 3rem 0 0;
  text-align: center;
}

.site-header .logo {
  width: 13rem;
  max-width: 60%;
  display: inline-block;
  filter: drop-shadow(0 0 24px rgba(255, 255, 255, 0.85));
  transition:
    transform 0.15s ease,
    filter 0.15s ease;
}
.site-header .logo:hover {
  transform: scale(1.04);
  filter: drop-shadow(0 0 36px rgba(255, 215, 0, 0.9));
}

.tagline {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

nav.main {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
}
nav.main a {
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  transition: color 0.15s ease;
}
nav.main a:hover {
  color: var(--ink);
  text-decoration: none;
}
nav.main a[aria-current="page"] {
  color: var(--accent);
}

/* ---------- hero / page title ---------- */

.hero {
  padding: 2.25rem 0 0.25rem;
  text-align: center;
}
.hero h1 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
}
.hero .lede {
  margin: 0.75rem auto 0;
  max-width: 40rem;
  font-weight: 700;
}
.hero .lede-sub {
  margin: 0.4rem auto 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.25rem;
}
.pill {
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  padding: 0.22rem 0.8rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.pill.gold {
  color: var(--accent);
  border-color: var(--panel-border-strong);
  background: var(--accent-dim);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.btn {
  display: inline-block;
  border: 1px solid var(--panel-border-strong);
  border-radius: 0.5rem;
  background: var(--accent-dim);
  padding: 0.55rem 1rem;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.btn:hover {
  background: var(--accent);
  color: #000;
  text-decoration: none;
}
.btn.ghost {
  border-color: var(--panel-border);
  background: none;
  color: var(--muted);
}
.btn.ghost:hover {
  border-color: var(--panel-border-strong);
  color: var(--ink);
  background: none;
}

/* ---------- cards ---------- */

.card {
  margin: 1.5rem 0;
  border: 1px solid var(--panel-border);
  border-radius: 0.75rem;
  background: var(--panel);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--panel-border);
  background: rgba(255, 215, 0, 0.05);
  padding: 0.7rem 1.25rem;
}
.card-head h2 {
  margin: 0;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.card-head .sub {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-align: right;
}
.card-body {
  padding: 1.25rem;
}
.card-body > :first-child {
  margin-top: 0;
}
.card-body > :last-child {
  margin-bottom: 0;
}

.card-body p {
  margin: 0.6rem 0 0;
}
.card-body h3 {
  margin: 1.25rem 0 0.4rem;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
}
.card-body ul,
.card-body ol {
  margin: 0.6rem 0 0;
  padding-left: 1.3rem;
}
.card-body li {
  margin: 0.3rem 0;
}
.card-body li::marker {
  color: var(--accent);
}

.muted {
  color: var(--muted);
}
.small {
  font-size: 0.82rem;
}

/* ---------- tables ---------- */

.table-wrap {
  overflow-x: auto;
  margin-top: 0.75rem;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
th {
  text-align: left;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid var(--panel-border);
  white-space: nowrap;
}
td {
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid rgba(255, 215, 0, 0.08);
  vertical-align: top;
}
tbody tr:last-child td {
  border-bottom: none;
}
td.num {
  color: var(--muted);
  width: 2rem;
}
.crit {
  color: var(--accent);
  font-weight: 700;
}
.opt {
  color: var(--muted);
}

/* ---------- screenshots ---------- */

.shots {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
figure.shot {
  margin: 0;
}
figure.shot img {
  display: block;
  width: 100%;
  border: 1px solid var(--panel-border);
  border-radius: 0.75rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}
figure.shot figcaption {
  margin-top: 0.6rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
}
figure.shot figcaption b {
  color: var(--ink);
  font-style: normal;
}

/* clickable screenshots (these affordances are added by lightbox.js only) */

figure.shot.zoomable {
  position: relative;
}
figure.shot.zoomable img {
  cursor: zoom-in;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
figure.shot.zoomable img:hover,
figure.shot.zoomable img:focus-visible {
  border-color: var(--panel-border-strong);
  box-shadow:
    0 0 0 1px rgba(255, 215, 0, 0.35),
    0 20px 60px rgba(0, 0, 0, 0.7);
  outline: none;
}
figure.shot.zoomable::after {
  content: "";
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid var(--panel-border-strong);
  border-radius: 0.5rem;
  background-color: rgba(0, 0, 0, 0.7);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffd700' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M9 21H3v-6'/%3E%3Cpath d='M21 3l-7 7'/%3E%3Cpath d='M3 21l7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1.1rem 1.1rem;
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}
figure.shot.zoomable:hover::after,
figure.shot.zoomable:focus-within::after {
  opacity: 1;
}

/* ---------- lightbox ---------- */

body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.4rem 4.2rem;
  background: rgba(3, 3, 3, 0.93);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.15s ease;
}
.lightbox[hidden] {
  display: none;
}
.lightbox.open {
  opacity: 1;
}

.lb-stage {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  max-width: 100%;
  max-height: 100%;
}
.lb-image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 9.5rem);
  border: 1px solid var(--panel-border-strong);
  border-radius: 0.6rem;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.85);
  transform: scale(0.985);
  transition: transform 0.15s ease;
}
.lightbox.open .lb-image {
  transform: none;
}
.lb-caption {
  max-width: min(90vw, 58rem);
  text-align: center;
  font-size: 0.78rem;
  font-style: italic;
  color: var(--muted);
}

.lightbox button {
  border: none;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
}
.lb-top {
  position: absolute;
  top: 1rem;
  right: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.lb-count {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.lb-close {
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  font-size: 1.35rem;
  line-height: 1;
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}
.lb-prev,
.lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.6);
  font-size: 1.9rem;
  line-height: 1;
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}
.lb-prev {
  left: 0.9rem;
}
.lb-next {
  right: 0.9rem;
}
.lb-close:hover,
.lb-close:focus-visible,
.lb-prev:hover,
.lb-prev:focus-visible,
.lb-next:hover,
.lb-next:focus-visible {
  color: var(--accent);
  border-color: var(--panel-border-strong);
  background: var(--accent-dim);
  outline: none;
}
.lightbox.single .lb-prev,
.lightbox.single .lb-next,
.lightbox.single .lb-count {
  display: none;
}

/* ---------- extras ---------- */

.callout {
  margin-top: 1rem;
  border: 1px solid rgba(255, 176, 32, 0.35);
  background: rgba(255, 176, 32, 0.07);
  border-radius: 0.6rem;
  padding: 0.8rem 1rem;
  font-size: 0.85rem;
}
.card-body .callout b {
  color: var(--warn);
}

.verdicts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.75rem;
}
.verdict {
  border-radius: 999px;
  padding: 0.2rem 0.8rem;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid;
}
.verdict.ok {
  color: var(--ok);
  border-color: rgba(74, 222, 128, 0.45);
}
.verdict.warn {
  color: var(--warn);
  border-color: rgba(255, 176, 32, 0.45);
}
.verdict.bad {
  color: var(--danger);
  border-color: rgba(255, 107, 107, 0.45);
}

/* ---------- footer ---------- */

.site-footer {
  margin-top: 2.5rem;
  border-top: 1px solid var(--panel-border);
  padding: 1.5rem 0 3rem;
  text-align: center;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}
footer.site-footer a {
  color: inherit;
}
footer.site-footer a:hover {
  color: var(--ink);
}

@media (max-width: 640px) {
  .card-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  .card-head .sub {
    text-align: left;
  }
  .hero h1 {
    font-size: 1.25rem;
  }
  .lightbox {
    padding: 3rem 0.9rem;
  }
  .lb-prev,
  .lb-next {
    width: 2.4rem;
    height: 2.4rem;
    font-size: 1.5rem;
  }
  .lb-prev {
    left: 0.35rem;
  }
  .lb-next {
    right: 0.35rem;
  }
  .lb-close {
    width: 2.1rem;
    height: 2.1rem;
    font-size: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox,
  .lb-image,
  figure.shot.zoomable img,
  figure.shot.zoomable::after {
    transition: none;
  }
}
