:root{
  --bg:#0b0f17;
  --panel:rgba(255,255,255,.06);
  --border:rgba(255,255,255,.10);
  --text:#e7ecff;
  --muted:#a9b3cc;
  --accent:#7c5cff;
  --shadow: 0 14px 45px rgba(0,0,0,.35);
  --r:18px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 700px at 15% 0%, #1b2a5a 0%, var(--bg) 55%),
    radial-gradient(900px 600px at 100% 30%, #3a1b5a 0%, transparent 55%),
    var(--bg);
}

.wrap{
  width:min(980px, 100%);
  margin:0 auto;
  padding:24px;
}

.header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding-top:28px;
}

.brand{
  display:flex;
  gap:14px;
  align-items:center;
}
.logo{
  width:44px; height:44px;
  display:grid; place-items:center;
  border-radius:14px;
  background:rgba(124,92,255,.18);
  border:1px solid rgba(124,92,255,.35);
  box-shadow: var(--shadow);
  font-size:22px;
}
h1{
  margin:0;
  font-size:22px;
  letter-spacing:.2px;
}
.brand p{
  margin:4px 0 0;
  color:var(--muted);
  font-size:13px;
  line-height:1.5;
}

.meta{ display:flex; gap:10px; flex-wrap:wrap; }
.chip{
  text-decoration:none;
  color:var(--text);
  font-weight:700;
  font-size:12px;
  padding:10px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid var(--border);
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
}
.chip:hover{
  transform: translateY(-1px);
  background: rgba(124,92,255,.18);
  border-color: rgba(124,92,255,.35);
}

.grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:14px;
  margin-top:6px;
}
@media (max-width: 860px){
  .header{ flex-direction:column; align-items:stretch; }
  .grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 520px){
  .wrap{ padding:18px; }
  .grid{ grid-template-columns: 1fr; }
}

.card{
  display:block;
  text-decoration:none;
  color:inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border:1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding:16px;
  min-height: 190px;
  transition: transform .10s ease, border-color .15s ease, background .15s ease;
}
.card:hover{
  transform: translateY(-2px);
  border-color: rgba(124,92,255,.40);
  background: linear-gradient(180deg, rgba(124,92,255,.14), rgba(255,255,255,.04));
}
.cardTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
.emoji{ font-size:26px; }
.badge{
  font-size:11px;
  font-weight:800;
  letter-spacing:.6px;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(124,92,255,.18);
  border: 1px solid rgba(124,92,255,.35);
}
.badge.ghost{
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  color: var(--muted);
}

.card h2{
  margin:0 0 6px;
  font-size:16px;
}
.card p{
  margin:0 0 12px;
  color:var(--muted);
  font-size:13px;
  line-height:1.55;
}

.tags{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.tags span{
  font-size:11px;
  color: var(--muted);
  background: rgba(0,0,0,.18);
  border:1px solid rgba(255,255,255,.08);
  padding:5px 8px;
  border-radius:999px;
}

.placeholder{
  opacity:.75;
  pointer-events:none;
}

.note{
  margin-top:16px;
  background: rgba(0,0,0,.18);
  border:1px solid rgba(255,255,255,.08);
  border-radius: var(--r);
  padding:14px 16px;
}
.note h3{
  margin:0 0 6px;
  font-size:14px;
}
.note p{
  margin:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.6;
}
.note code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size:12px;
  color: var(--text);
  background: rgba(0,0,0,.22);
  border:1px solid rgba(255,255,255,.10);
  padding:2px 6px;
  border-radius:8px;
}

.footer{
  padding-bottom:34px;
  color: var(--muted);
}