/* Stupid Band Names. Mobile first, high contrast, no frameworks. */
:root {
  --bg: #0e0e0e;
  --ink: #111;
  --paper: #fffdf3;
  --hi: #ffe14d;
  --hot: #ff3d8b;
  --cool: #33e1ff;
  --muted: #cfcfcf;
  --head: "Bungee", Impact, "Arial Black", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
html.filthy { --hi: #9dff2e; --hot: #ff3b1f; --cool: #c27bff; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: #fff; font: 17px/1.55 var(--body); }
a { color: var(--hi); }
a:hover { color: var(--cool); }
img { max-width: 100%; }
.wrap { width: 100%; max-width: 860px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--hi); color: var(--ink); padding: 8px; z-index: 9; }

/* Header */
.site-head { background: var(--hi); color: var(--ink); border-bottom: 5px solid var(--ink); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-top: 12px; padding-bottom: 12px; }
.logo { font: 1.35rem/1 var(--head); color: var(--ink); text-decoration: none; letter-spacing: .5px; transform: rotate(-1.5deg); display: inline-block; }
.logo span { background: var(--ink); color: var(--hi); padding: 2px 6px; }
.logo:hover { color: var(--ink); }
.badge-filthy { display: none; font: .75rem/1 var(--head); background: var(--ink); color: var(--hi); padding: 6px 8px; transform: rotate(2deg); }
html.filthy .badge-filthy { display: inline-block; }
.genre-nav { background: var(--ink); border-bottom: 3px solid var(--hot); }
.genre-nav ul { list-style: none; margin: 0 auto; padding: 10px 16px; display: flex; gap: 8px; overflow-x: auto; max-width: 860px; scrollbar-width: thin; }
.genre-nav a { display: block; white-space: nowrap; font-weight: 800; font-size: .9rem; text-decoration: none; color: #fff; border: 2px solid #fff; padding: 5px 10px; border-radius: 999px; }
.genre-nav a:hover, .genre-nav a[aria-current="page"] { background: var(--hot); border-color: var(--hot); color: #fff; }

/* Hero */
.hero { padding: 26px 0 8px; }
h1, h2, h3 { font-family: var(--head); font-weight: 400; line-height: 1.1; letter-spacing: .3px; }
h1 { font-size: clamp(1.7rem, 7vw, 3rem); margin: 0 0 12px; color: var(--hi); text-shadow: 3px 3px 0 var(--hot); }
h2 { font-size: clamp(1.25rem, 4.5vw, 1.8rem); margin: 32px 0 12px; color: var(--hi); }
h3 { font-size: 1.1rem; margin: 20px 0 8px; color: var(--cool); }
.intro { font-size: 1.08rem; color: #f2f2f2; margin: 0 0 8px; }

/* Generator card */
.gen { background: var(--paper); color: var(--ink); border: 4px solid var(--ink); box-shadow: 8px 8px 0 var(--hot); padding: 18px 14px; margin: 18px 0 24px; border-radius: 4px; }
.controls { display: grid; gap: 14px; }
.field label, .field-label { display: block; font-weight: 900; text-transform: uppercase; font-size: .8rem; letter-spacing: 1px; margin-bottom: 4px; }
select { width: 100%; font: 700 1rem var(--body); padding: 10px; border: 3px solid var(--ink); border-radius: 4px; background: #fff; color: var(--ink); }
.go { display: block; width: 100%; font: 1.15rem/1.2 var(--head); background: var(--hot); color: #fff; border: 4px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); padding: 16px 12px; cursor: pointer; border-radius: 4px; text-shadow: 2px 2px 0 var(--ink); transition: transform .06s; }
.go:hover { filter: brightness(1.08); }
.go:active { transform: translate(4px, 4px); box-shadow: 1px 1px 0 var(--ink); }

/* Filthy switch */
.switch-row { display: flex; align-items: center; gap: 12px; border: 3px dashed var(--ink); padding: 10px 12px; border-radius: 4px; }
.switch { position: relative; display: inline-block; width: 64px; height: 34px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.slider { position: absolute; inset: 0; background: #bbb; border: 3px solid var(--ink); border-radius: 999px; cursor: pointer; transition: background .15s; }
.slider::before { content: ""; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; background: #fff; border: 2px solid var(--ink); border-radius: 50%; transition: transform .15s; }
.switch input:checked + .slider { background: var(--hot); }
.switch input:checked + .slider::before { transform: translateX(29px); }
.switch input:focus-visible + .slider { outline: 3px solid var(--cool); outline-offset: 2px; }
.switch-text { font-size: .92rem; line-height: 1.35; }
.switch-text strong { display: block; font-size: 1rem; text-transform: uppercase; }
.only-filthy { display: none; }
html.filthy .only-filthy { display: inline; }
html.filthy .only-clean { display: none; }
.warn { font-size: .85rem; color: #444; margin: 10px 0 0; }

/* Results */
.names { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.name-card { background: #fff; border: 3px solid var(--ink); border-radius: 4px; padding: 12px; display: grid; gap: 8px; }
.name-card:nth-child(3n+1) { box-shadow: 4px 4px 0 var(--hi); }
.name-card:nth-child(3n+2) { box-shadow: 4px 4px 0 var(--cool); }
.name-card:nth-child(3n) { box-shadow: 4px 4px 0 var(--hot); }
.band { font: 1.2rem/1.2 var(--head); word-break: break-word; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; }
.mini { font: 800 .85rem var(--body); background: var(--ink); color: #fff; border: 2px solid var(--ink); border-radius: 4px; padding: 7px 11px; cursor: pointer; min-height: 36px; }
.mini:hover { background: var(--hot); }
.mini.star { background: var(--hi); color: var(--ink); }
.pop .name-card { animation: pop .25s ease-out both; }
.pop .name-card:nth-child(2) { animation-delay: .02s; } .pop .name-card:nth-child(3) { animation-delay: .04s; }
.pop .name-card:nth-child(4) { animation-delay: .06s; } .pop .name-card:nth-child(5) { animation-delay: .08s; }
.pop .name-card:nth-child(6) { animation-delay: .1s; } .pop .name-card:nth-child(7) { animation-delay: .12s; }
.pop .name-card:nth-child(8) { animation-delay: .14s; } .pop .name-card:nth-child(9) { animation-delay: .16s; }
.pop .name-card:nth-child(10) { animation-delay: .18s; }
@keyframes pop { from { opacity: 0; transform: scale(.96) rotate(-1deg); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pop .name-card { animation: none; } }

.shared { background: var(--hi); color: var(--ink); border: 4px solid var(--ink); box-shadow: 6px 6px 0 var(--cool); padding: 14px; margin: 18px 0 0; border-radius: 4px; }
.shared .names { margin-top: 8px; }
.shared-label { font-weight: 900; margin: 0 0 8px; }

/* Favorites */
.favs { border: 3px solid #fff; padding: 14px; border-radius: 4px; margin: 26px 0; }
.favs h2 { margin-top: 0; }
.favs .name-card { color: var(--ink); }
.favs-note { color: var(--muted); margin: 6px 0 0; }
.clear { margin-top: 12px; background: transparent; color: #fff; border-color: #fff; }

/* Ads: hidden unless ads actually loaded in clean mode. Never shown in filthy mode. */
.ad-slot { display: none; margin: 22px 0; min-height: 100px; text-align: center; }
html.ads-on .ad-slot { display: block; }
html.filthy .ad-slot { display: none !important; }
.ad-label { display: block; font-size: .7rem; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }

/* Content */
.content p, .content li { color: #ececec; }
.examples { columns: 2 220px; padding-left: 20px; }
.examples li { break-inside: avoid; margin-bottom: 4px; font-weight: 700; }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-block; border: 3px solid var(--hi); padding: 8px 12px; font-weight: 900; text-decoration: none; border-radius: 4px; }
.chips a:hover { background: var(--hi); color: var(--ink); }
.page { padding: 26px 0 40px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 18px; transform: translate(-50%, 140%); background: var(--hi); color: var(--ink); border: 3px solid var(--ink); padding: 10px 16px; font-weight: 900; border-radius: 4px; transition: transform .2s; z-index: 10; max-width: 92vw; box-shadow: 4px 4px 0 var(--ink); }
.toast.show { transform: translate(-50%, 0); }

/* Footer */
.site-foot { border-top: 5px solid var(--hot); margin-top: 40px; padding: 22px 0 34px; background: #000; font-size: .92rem; color: var(--muted); }
.site-foot ul { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.site-foot a { color: #fff; }

@media (min-width: 640px) {
  .controls { grid-template-columns: 1fr 1fr; align-items: end; }
  .controls .go { grid-column: 1 / -1; }
  .gen { padding: 24px; }
  .name-card { grid-template-columns: 1fr auto; align-items: center; }
  .logo { font-size: 1.7rem; }
}
