:root {
  --ink: #12100d;
  --surface: #1d1a15;
  --brass: #c9a227;
  --parchment: #e7dfc9;
  --parchment-dim: #a89d84;

  --font-display: "Oswald", sans-serif;
  --font-body: "Work Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: #000;
  color: var(--parchment);
  font-family: var(--font-body);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brass); }

/* ---------- Mobile block ---------- */

.mobile-block {
  display: none;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  overflow: auto;
}

.mobile-block__inner { max-width: 26rem; }

.mobile-block__inner h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--brass);
  margin-bottom: 0.75rem;
}

.mobile-block__inner p {
  color: var(--parchment-dim);
  line-height: 1.6;
}

@media (max-width: 760px) {
  .app { display: none; }
  .mobile-block { display: flex; }
}

/* ---------- Stage ---------- */

.app {
  position: fixed;
  inset: 0;
}

.stage {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  cursor: pointer;
}

.stage img {
  width: 100vw;
  height: 100vh;
  object-fit: fill;
  display: block;
}

/* ---------- Convar / index tags ---------- */

.tag-group {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  z-index: 5;
  transition: opacity 0.15s ease;
}

.tag-group.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.tag {
  font-family: var(--font-mono);
  border-radius: 2px;
  padding: 0.5rem 0.7rem;
}

.tag--convar {
  background: #0a0a08;
  color: #8fd18f;
  font-size: 0.72rem;
  line-height: 1.55;
}

.tag--convar .k { color: #5f8f5f; }
.tag--convar .v { color: #d8f0d8; }
.tag--convar .tag-fxaa { color: var(--brass); }

.tag--index {
  background: rgba(10, 10, 8, 0.75);
  color: var(--brass);
  font-size: 0.7rem;
  width: fit-content;
}

/* ---------- Hint ---------- */

.hint {
  position: absolute;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(231, 223, 201, 0.65);
  background: rgba(10, 10, 8, 0.55);
  padding: 0.4rem 0.75rem;
  border-radius: 2px;
  z-index: 5;
  transition: opacity 0.4s ease;
}

.hint.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* ---------- Fullscreen button ---------- */

.fs-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(10, 10, 8, 0.6);
  color: var(--parchment-dim);
  border: 1px solid rgba(231, 223, 201, 0.25);
  padding: 0.4rem 0.75rem;
  border-radius: 2px;
  cursor: pointer;
  z-index: 6;
}

.fs-btn:hover {
  color: var(--parchment);
  border-color: var(--parchment);
}

/* ---------- Loadout dots ---------- */

.dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
  z-index: 5;
}

.dots button {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 2px;
  border: 1px solid rgba(201, 162, 39, 0.35);
  background: rgba(10, 10, 8, 0.55);
  color: var(--parchment-dim);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  cursor: pointer;
}

.dots button.is-active {
  background: var(--brass);
  color: var(--ink);
  border-color: var(--brass);
}

/* ---------- Hover info tab ---------- */

.info-tab {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
}

.info-tab__handle {
  width: 2rem;
  height: 2rem;
  margin: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--parchment-dim);
  background: rgba(10, 10, 8, 0.6);
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 2px;
}

.info-tab__panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 22rem;
  max-width: 82vw;
  background: var(--surface);
  border: 1px solid rgba(201, 162, 39, 0.25);
  padding: 3.5rem 1.25rem 1.25rem;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--parchment-dim);
}

.info-tab:hover .info-tab__panel,
.info-tab:focus-within .info-tab__panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.info-tab code {
  color: var(--brass);
  font-family: var(--font-mono);
  font-size: 0.85em;
}

.info-tab__footnote {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: rgba(168, 157, 132, 0.7);
}

.compare-mini {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.compare-mini label {
  font-size: 0.7rem;
  color: var(--parchment-dim);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.compare-mini select {
  background: var(--ink);
  color: var(--parchment);
  border: 1px solid rgba(201, 162, 39, 0.3);
  padding: 0.35rem 0.4rem;
  font-size: 0.75rem;
  border-radius: 2px;
  max-width: 9rem;
}

.btn {
  font-family: var(--font-display);
  color: var(--ink);
  background: var(--brass);
  border: none;
  border-radius: 2px;
  cursor: pointer;
}

.btn--small {
  padding: 0.4rem 0.6rem;
  font-size: 0.7rem;
}

.btn:hover { background: #ddb943; }

/* ---------- Non-1080p notice ---------- */

.res-notice {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #b23a2e;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-align: center;
  padding: 0.6rem 1rem;
  z-index: 200;
}

.res-notice.is-visible { display: block; }
