/* Loot Radar – generated by build.py. Brand yellow #FDC300 on black. */
:root {
  --y: #FDC300;
  --bg: #070707;
  --card: #121212;
  --line: #242424;
  --text: #f3f3f3;
  --muted: #9a9a9a;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  min-height: 100vh;
}
a { color: var(--y); }
img { max-width: 100%; display: block; }
.stripes-bar {
  height: 8px;
  background: repeating-linear-gradient(-45deg, var(--y) 0 8px, #000 8px 16px);
}
.wrap {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
}

/* ---- Header (compact, no decorative circle, no long intro) ---- */
header.hero {
  padding: 12px 0 10px;
  border-bottom: 1px solid var(--line);
}
.hero-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.brand img { width: 36px; height: 36px; flex-shrink: 0; }
.wordmark {
  font-family: Saira, sans-serif;
  font-style: italic;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: .4px;
  color: var(--y);
  line-height: 1;
}
.tagline-sub {
  font-family: Inter, sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.follow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--y);
  color: #000;
  font-family: "Chakra Petch", sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .8px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  border: 2px solid var(--y);
  white-space: nowrap;
}
.follow .handle { margin-left: 0.35em; }
.follow:hover, .follow:focus-visible {
  background: #000;
  color: var(--y);
  outline: none;
}
.updated {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

/* ---- Sticky Free / Giveaways tabs ---- */
.view-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.tabbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7,7,7,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.tabs {
  display: flex;
  gap: 0;
}
.tabs label {
  flex: 1;
  text-align: center;
  font-family: "Chakra Petch", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 8px 10px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  user-select: none;
}
.tabs label:hover { color: #fff; }
#view-free:checked ~ .tabbar label[for="view-free"],
#view-give:checked ~ .tabbar label[for="view-give"] {
  color: var(--y);
  border-bottom-color: var(--y);
}
#view-give:checked ~ main #free { display: none; }
#view-free:checked ~ main #giveaways { display: none; }

main.wrap { padding-top: 8px; padding-bottom: 8px; }

/* ---- Collapsible folders ---- */
.folder {
  border-bottom: 1px solid var(--line);
}
.folder > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 2px;
  cursor: pointer;
  user-select: none;
}
.folder > summary::-webkit-details-marker { display: none; }
.folder > summary::marker { content: ""; }
.chev {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(-45deg);
  flex-shrink: 0;
  margin-left: 4px;
  transition: transform .15s ease;
}
.folder[open] > summary .chev { transform: rotate(45deg); margin-top: -3px; }
.folder-title {
  font-family: Inter, sans-serif;
  font-weight: 650;
  font-size: 16px;
  color: var(--text);
  flex: 1;
  min-width: 0;
}
.folder.highlight > summary .folder-title { color: var(--y); }
.count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #1c1c1c;
  color: var(--muted);
  font-family: "Chakra Petch", sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0;
}
.folder.highlight .count {
  background: var(--y);
  color: #000;
}
.folder-body { padding: 0 0 12px; }

/* ---- Compact list rows (mobile-first) ---- */
.list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px 8px 8px 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.row.urgent { border-color: rgba(253,195,0,.55); }
.thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #0a0a0a;
}
.row-main {
  flex: 1;
  min-width: 0;
}
.row-top {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}
.row-name {
  font-family: Inter, sans-serif;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  color: #fff;
  overflow: hidden;
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.tag {
  flex-shrink: 0;
  margin-top: 2px;
  font-family: "Chakra Petch", sans-serif;
  font-weight: 700;
  font-size: 9px;
  letter-spacing: .7px;
  text-transform: uppercase;
  border-radius: 3px;
  padding: 2px 5px;
  line-height: 1.2;
  border: 1px solid var(--y);
  color: var(--y);
}
.tag.solid { background: var(--y); color: #000; border-color: var(--y); }
.tag.muted { border-color: #555; color: #bbb; }
.row-meta {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--y);
  color: #000;
  font-family: "Chakra Petch", sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .8px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 8px 10px;
  min-height: 36px;
  min-width: 58px;
  border-radius: 6px;
  border: 2px solid var(--y);
}
.btn:hover, .btn:focus-visible {
  background: #000;
  color: var(--y);
  outline: none;
}
.btn.ghost {
  background: transparent;
  color: var(--y);
}

footer {
  margin-top: 24px;
  border-top: 1px solid var(--line);
}
footer .stripes-bar { height: 8px; }
.footer-inner {
  padding: 20px 0 32px;
  color: var(--muted);
  font-size: 13px;
}
.footer-brand {
  font-family: Saira, sans-serif;
  font-style: italic;
  font-weight: 900;
  color: var(--y);
  font-size: 18px;
  margin-bottom: 8px;
}
.footer-inner p + p { margin-top: 8px; }
.footer-inner a { color: #ddd; }

/* Phones: compact header, single-column rows, no overflow */
@media (max-width: 699px) {
  .wrap { width: calc(100% - 24px); }
  .wordmark { font-size: 20px; }
  .tagline-sub { font-size: 12px; }
  .follow { padding: 7px 11px; }
  .follow .handle { display: none; }
}
/* Desktop: roomier header, two-column lists, still one tag max */
@media (min-width: 700px) {
  header.hero { padding: 20px 0 16px; }
  .brand img { width: 48px; height: 48px; }
  .wordmark { font-size: 32px; }
  .tagline-sub { font-size: 14px; }
  .follow { font-size: 13px; padding: 8px 14px; }
  .updated { font-size: 13px; }
  .tabs label { flex: 0 0 auto; padding: 14px 20px 12px; font-size: 14px; }
  .list { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 8px 12px; }
  .thumb { width: 56px; height: 56px; }
  .row-name { font-size: 16px; }
  .row-meta { font-size: 14px; }
  .folder > summary { min-height: 52px; }
}
