/* codes.vibecodepicks.com — original stylesheet */
:root {
  --bg: #f6f3ec; --paper: #fffdf8; --ink: #211d19; --muted: #6f675c;
  --line: #ddd5c6; --accent: #b3402a; --accent-ink: #fff;
  --good: #1d7a4f; --bad: #b3402a; --gold: #a86e12;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif; line-height: 1.55; }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 20px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.15; }
h1 { font-size: clamp(2rem, 5.4vw, 3.4rem); margin: .3em 0 .35em; }
h1 .hl { color: var(--accent); font-style: italic; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }

/* header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(246,243,236,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 18px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.logo { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-weight: 700; color: var(--ink); font-size: 15px; }
.logo:hover { text-decoration: none; }
.logo-dot { color: var(--accent); }
.main-nav { display: flex; gap: 16px; flex-wrap: wrap; margin-inline-start: auto; }
.main-nav a { color: var(--ink); font-size: 14.5px; font-weight: 550; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.btn { display: inline-block; border: 1px solid var(--accent); border-radius: 999px; padding: 10px 20px; font-weight: 650; cursor: pointer; font-size: 15px; background: transparent; color: var(--accent); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); text-decoration: none; }
.btn-sm { padding: 7px 14px; font-size: 13.5px; }
.lang-switch { position: relative; }
.lang-btn { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; cursor: pointer; font-size: 13.5px; color: var(--ink); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 6px; min-width: 150px; box-shadow: 0 12px 30px rgba(30,20,10,.14); z-index: 50; }
.lang-menu a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--ink); font-size: 14px; }
.lang-menu a:hover { background: var(--bg); text-decoration: none; }
.lang-menu a.cur { font-weight: 700; }

/* hero + ad */
.ad-slot { border: 1px dashed var(--line); border-radius: var(--radius); min-height: 90px; display: flex; align-items: flex-start; justify-content: center; margin: 18px 0 8px; background: var(--paper); overflow: hidden; }
.ad-slot .ad-tag { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 6px; }
.ad-slot-empty { align-items: center; }
.hero { padding: 10px 0 6px; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: 12px; color: var(--accent); font-weight: 700; }
.hero-sub { font-size: clamp(1rem, 2.2vw, 1.2rem); color: #3d372f; max-width: 46em; }
.live-count { font-size: 15px; color: var(--muted); }
.live-count strong { font-size: 22px; color: var(--ink); }

/* share */
.share { background: var(--ink); color: #f3eee5; border-radius: 20px; padding: 28px clamp(18px, 4vw, 40px); margin: 26px 0 34px; }
.share h2 { margin: 0 0 8px; color: #fff; }
.share p { color: #d8d0c2; max-width: 44em; }
.share label { font-weight: 650; font-size: 14px; }
.share-row { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.share input[type="text"] { background: #2c2620; border: 1px solid #4a4238; color: #fff; border-radius: 10px; padding: 12px 14px; font-size: 17px; font-family: ui-monospace, Menlo, monospace; letter-spacing: .12em; text-transform: uppercase; flex: 1 1 240px; min-width: 0; }
.share .tip { font-size: 13.5px; color: #b6ac9c; }
.challenge { display: flex; align-items: center; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.challenge input { flex: 0 0 90px !important; text-transform: none !important; letter-spacing: 0 !important; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-msg { min-height: 1.4em; font-weight: 600; }
.form-msg.ok { color: #8fd6ae; }
.form-msg.err { color: #ffab91; }

/* wall */
.wall-sec h2 { margin-bottom: 2px; }
.wall-note { color: var(--muted); margin-top: 0; }
.wall { list-style: none; margin: 14px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.ticket { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); display: flex; overflow: hidden; }
.ticket-main { flex: 1; min-width: 0; padding: 14px 16px; }
.ticket-meta { display: flex; gap: 6px; align-items: baseline; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.ticket-meta .rank { font-family: ui-monospace, Menlo, monospace; }
.vote-pct { color: var(--good); font-weight: 600; }
.ticket-code { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.ticket-code code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 21px; font-weight: 700; letter-spacing: .14em; }
.copy-btn { border: 1px solid var(--line); background: var(--bg); border-radius: 8px; padding: 5px 12px; font-size: 12.5px; font-weight: 650; cursor: pointer; color: var(--ink); }
.copy-btn:hover { border-color: var(--accent); color: var(--accent); }
.copy-btn.ok, .mini-btn.ok { border-color: var(--good); color: var(--good); }
.ticket-perf { width: 74px; flex-shrink: 0; border-inline-start: 2px dashed var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 10px 4px; }
.vote-btn { border: 0; background: transparent; cursor: pointer; font-size: 13.5px; font-weight: 700; color: var(--muted); border-radius: 8px; padding: 6px 8px; font-variant-numeric: tabular-nums; }
.vote-btn:hover { background: var(--bg); }
.vote-btn.up.active { color: var(--good); }
.vote-btn.down.active { color: var(--bad); }
.featured-wrap { margin: 16px 0 4px; }
.featured-label { display: inline-block; background: var(--gold); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; margin-bottom: 8px; }
.featured-wall { margin: 0; }
.ticket.featured { border: 2px solid var(--gold); box-shadow: 0 8px 24px rgba(168,110,18,.16); }
.empty { color: var(--muted); padding: 18px; }
.pager { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 18px 0 6px; }
.page-link { border: 1px solid var(--line); background: var(--paper); border-radius: 9px; padding: 7px 13px; color: var(--ink); font-weight: 600; font-size: 14px; }
.page-link.cur { background: var(--ink); color: #fff; border-color: var(--ink); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .45s ease both; }

/* after + guides cards */
.after { margin: 40px 0 8px; }
.guide-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.guide-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; color: var(--ink); display: block; }
.guide-card:hover { text-decoration: none; border-color: var(--accent); }
.guide-card h3 { margin: 0 0 6px; }
.guide-card p { color: var(--muted); margin: 0 0 10px; }
.guide-card span { color: var(--accent); font-weight: 650; }

/* faq */
.faq { margin: 40px 0 50px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; background: none; border: 0; padding: 16px 4px; font-size: 17px; font-weight: 650; text-align: start; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; color: var(--ink); font-family: inherit; }
.faq-sign { color: var(--accent); font-size: 22px; line-height: 1; }
.faq-a { padding: 0 4px 18px; max-width: 52em; }
.faq-a ol, .faq-a ul { padding-inline-start: 22px; }
.faq-a li { margin: 6px 0; }
.faq-img { max-width: 520px; width: 100%; border: 1px solid var(--line); border-radius: 10px; cursor: zoom-in; background: #fff; }
.faq-a figcaption { color: var(--muted); font-size: 13px; margin-top: 6px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 30px; padding: 30px 0 40px; background: #efe9dd; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 22px; }
.foot-brand p { color: var(--muted); max-width: 30em; }
.foot-col h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-family: inherit; }
.foot-col a { display: block; color: var(--ink); padding: 3px 0; font-size: 14.5px; }
.foot-bottom { margin-top: 22px; color: var(--muted); font-size: 13.5px; }
.disclaimer { max-width: 62em; }

/* guides */
.guide { padding-bottom: 20px; }
.guide-cat { margin: 34px 0; }
.cat-tag { color: var(--muted); margin-top: -6px; }
.idea-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.idea-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.idea-card h3 { margin: 0 0 6px; font-size: 18px; }
.idea-card p { margin: 0 0 10px; color: #3d372f; }
.try span { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); font-weight: 700; margin-bottom: 2px; }
.try q { font-style: italic; color: var(--ink); }
.seen-x { margin-top: 18px; }
.x-card { background: var(--paper); border: 1px solid var(--line); border-inline-start: 4px solid var(--ink); border-radius: 10px; margin: 10px 0; padding: 14px 18px; }
.x-card p { margin: 0 0 8px; }
.x-card footer { color: var(--muted); font-size: 13.5px; }
.cross-link a { font-weight: 700; }
.guide-note { color: var(--muted); font-size: 13.5px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 30px; }
.count-badge { background: var(--ink); color: #fff; font-size: 13px; border-radius: 999px; padding: 2px 10px; vertical-align: middle; font-family: inherit; }
.conn-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.conn-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.conn-item h3 { margin: 0 0 4px; font-size: 16.5px; font-family: inherit; font-weight: 700; }
.conn-item p { margin: 0; color: #3d372f; font-size: 14.5px; }
.conn-item .src { margin-top: 8px; font-size: 12.5px; color: var(--muted); }

/* prompts */
.can-box { background: #ece5d3; border-radius: var(--radius); padding: 18px 22px; margin: 20px 0; }
.can-box h2 { margin: 0 0 6px; font-size: 20px; }
.can-box p { margin: 0; }
.prompt-filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 18px 0 6px; }
.filter-btn { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 8px 16px; font-weight: 650; cursor: pointer; color: var(--ink); }
.filter-btn span { color: var(--muted); font-weight: 600; }
.filter-btn.cur { background: var(--ink); color: #fff; }
.filter-btn.cur span { color: #cfc8ba; }
.showing { margin-inline-start: auto; color: var(--muted); font-size: 14px; }
.prompt-sec { margin-top: 30px; }
.prompt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.prompt-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.prompt-preview { border: 0; border-radius: 10px; height: 120px; font-size: 34px; cursor: zoom-in; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.9); }
.prompt-preview.g0 { background: linear-gradient(135deg, #355070, #6d597a); }
.prompt-preview.g1 { background: linear-gradient(135deg, #b5654d, #e07a5f); }
.prompt-preview.g2 { background: linear-gradient(135deg, #2a6f5e, #81b29a); }
.prompt-preview.g3 { background: linear-gradient(135deg, #5f6caf, #9db2e8); }
.prompt-preview.g4 { background: linear-gradient(135deg, #8a5a2b, #d9a441); }
.prompt-preview.g5 { background: linear-gradient(135deg, #4a4e69, #9a8c98); }
.prompt-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.cat-tag, .own-tag { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; padding: 3px 9px; border-radius: 999px; }
.cat-tag { background: var(--bg); border: 1px solid var(--line); color: var(--muted); }
.own-tag { background: #f3e2c7; color: #7c5410; }
.prompt-card h3 { margin: 0; font-size: 16.5px; font-family: inherit; font-weight: 700; }
.prompt-text { background: var(--bg); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.prompt-text p { margin: 0; }
.prompt-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.mini-btn { border: 1px solid var(--line); background: var(--paper); border-radius: 8px; padding: 6px 11px; font-size: 12.5px; font-weight: 650; cursor: pointer; color: var(--ink); }
.mini-btn:hover { border-color: var(--accent); color: var(--accent); }

/* lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(18, 14, 10, .88); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(880px, 92vw); max-height: 86vh; border-radius: 10px; background: #fff; }
.lightbox-close { position: absolute; top: 16px; right: 20px; background: none; border: 0; color: #fff; font-size: 34px; cursor: pointer; }
.lb-text { color: #fff; font-family: Georgia, serif; font-size: clamp(1.4rem, 4vw, 2.4rem); max-width: 20em; text-align: center; }

@media (max-width: 760px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .main-nav { order: 3; margin-inline-start: 0; }
  .ticket-code code { font-size: 18px; }
  .share-row .btn { width: 100%; }
}
