
/* Mysteriopedia stylesheet (cards + search + layout) */
:root { --bg:#0c0c0c; --bg-2:#111; --text:#f5f5f5; --muted:#9a9a9a; --gold:#d4af37; }
*{box-sizing:border-box}
body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Helvetica Neue,Arial,sans-serif;background:var(--bg);color:var(--text);line-height:1.6}
a{color:var(--gold);text-decoration:none} a:hover{text-decoration:underline}
a.skip{position:absolute;left:8px;top:-40px;background:#000;color:#fff;padding:8px 12px;border-radius:6px;z-index:2000}
a.skip:focus{top:8px;outline:2px dashed var(--gold)}
header.site-header{background:var(--bg-2);padding:12px 20px}
header .wrap{display:flex;align-items:center;justify-content:space-between;gap:12px}
header .logo{font-weight:800;color:var(--gold);font-size:1.3rem;letter-spacing:.3px}
header .nav{display:flex;align-items:center;gap:14px}
.wrap{max-width:860px;margin:0 auto;padding:20px}
footer.site-footer{background:var(--bg-2);padding:20px;text-align:center;font-size:.92rem;color:var(--muted)}
.btn{background:var(--gold);color:#0c0c0c;padding:10px 16px;border-radius:10px;font-weight:700;border:0;display:inline-block}
.btn:hover{background:#b68f2c;text-decoration:none}
.searchbox{position:relative;display:inline-block;vertical-align:middle;min-width:220px}
.searchbox input{width:100%;background-color:rgba(0,0,0,.3);border:1px solid var(--gold);color:#fff;padding:10px 12px;border-radius:10px;height:40px}
.searchbox input::placeholder{color:#cfcfcf;opacity:1}
.searchbox input:focus{outline:none;border:1px solid #fff;background-color:#2a2a2a}
.searchbox .results{display:none;position:absolute;top:calc(100% + 4px);left:0;width:100%;background:#171717;border:1px solid #333;border-radius:8px;z-index:1500;overflow:hidden;box-shadow:0 6px 18px rgba(0,0,0,.35)}
.searchbox .results a{display:block;padding:10px 12px;color:#fff;text-decoration:none;border-bottom:1px solid rgba(255,255,255,.04)}
.searchbox .results a:last-child{border-bottom:0}
.searchbox .results a:hover{background:#262626;color:var(--gold)}
.hero .hero-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:10px}
.hero .searchbox{flex:1 1 280px;max-width:420px}
#latest-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px;margin-top:12px}
.card{display:block;background:#181818;border:1px solid #2a2a2a;border-radius:12px;padding:14px;text-decoration:none;transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease,background .15s ease}
.card:hover{transform:translateY(-2px);border-color:#3a3a3a;background:#1c1c1c;box-shadow:0 8px 20px rgba(0,0,0,.25)}
.card .title{color:#fff;font-weight:700;font-size:1.05rem;margin:0 0 6px}
.card .excerpt{color:#cfcfcf;margin:.35rem 0 .6rem}
.card .meta{color:#9a9a9a;font-size:.9rem}
.quick-nav{display:flex;align-items:center;gap:12px;justify-content:space-between;border-top:1px solid #1c1c1c;padding:14px 0;margin:24px 0}
.quick-nav .searchbox{flex:1 1 260px}
