:root { color-scheme: light dark; --accent:#5865f2; --muted:#888; }
* { box-sizing: border-box; }
body { font-family: system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif; margin:0; padding:16px; max-width:960px; margin-inline:auto; line-height:1.5; }
header h1 { margin:0 0 4px; font-size:1.6rem; }
.sub, .muted { color:var(--muted); }
section { margin:28px 0; }
h2 { border-bottom:2px solid var(--accent); padding-bottom:4px; font-size:1.25rem; }
h3 { font-size:1.05rem; margin:14px 0 8px; }
.cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:12px; }
.card { border:1px solid #8884; border-radius:12px; padding:12px 14px; }
.card-head { display:flex; align-items:center; gap:10px; }
.avatar { border-radius:50%; vertical-align:middle; }
.avatar.sm { margin-right:4px; }
.name { font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.result { margin-left:auto; font-size:1.4rem; font-weight:800; color:var(--accent); white-space:nowrap; }
.ratings { margin:10px 0 6px; }
.ratings div { display:flex; gap:8px; }
.ratings dt { width:3.5em; color:var(--muted); }
.ratings dd { margin:0; letter-spacing:2px; }
.lucky { margin:6px 0 0; }
.dot { display:inline-block; width:14px; height:14px; border-radius:50%; border:1px solid #8886; vertical-align:-2px; margin-right:6px; }
.rank-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
@media (max-width:700px){ .rank-grid{ grid-template-columns:1fr; } }
table { border-collapse:collapse; width:100%; font-size:.92rem; }
th, td { padding:5px 6px; border-bottom:1px solid #8883; text-align:left; white-space:nowrap; }
td:nth-child(2){ white-space:normal; }
.bars { display:grid; gap:6px; }
.bar-row { display:flex; align-items:center; gap:10px; }
.bar-label { width:3em; font-weight:600; }
.bar-track { flex:1; height:14px; background:#8883; border-radius:7px; overflow:hidden; }
.bar-fill { display:block; height:100%; background:var(--accent); border-radius:7px; min-width:2px; }
.bar-num { width:9em; font-size:.9rem; color:var(--muted); }
.colors { list-style:none; padding:0; display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:6px; }
.empty { color:var(--muted); }
footer { margin-top:36px; color:var(--muted); font-size:.85rem; text-align:center; }
code { background:#8883; padding:1px 5px; border-radius:4px; }
