/* tokens + opt-in components, per craftyplayz.com/plan.html design guide */
:root {
    color-scheme: dark;
    --bg: #202020; --card: #2a2a2a; --card2: #323232; --sunken: #1b1b1b;
    --line: #3d3d3d; --line-strong: #555; --text: #ececec; --muted: #9b9b9b;
    --accent: #7ed957; --accent-soft: #2d4224; --btn: #3d7a2a; --btn-line: #5aa83f; --btn-hover: #4a9033;
    --btn2: #3a3a3a; --btn2-hover: #474747;
    --link: #8cc8ff; --highlight: #ffd84a; --danger-bg: #4a2424; --danger-line: #8a3a3a; --info-bg: #24384a; --info-line: #3a628a;
}
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--link); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 24px 16px 60px; }
.title { margin: 0 0 4px; font-size: clamp(24px, 4vw, 34px); font-weight: 700; }
.sub { color: var(--muted); margin: 0 0 20px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 16px; min-width: 0; }
.card h2 { display: flex; gap: 8px; align-items: baseline; margin: 0 0 10px; font-size: 17px; font-weight: 600; }
.card h2 .n { margin-left: auto; color: var(--muted); font-size: 13px; font-weight: 400; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 16px; }

.rows { display: flex; flex-direction: column; gap: 6px; }
.rowi { display: flex; gap: 10px; align-items: center; background: var(--card2); border-radius: 8px; padding: 8px 10px; font-size: 14px; min-width: 0; }
.rowi .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rowi.on { box-shadow: inset 3px 0 0 var(--accent); }
.rowi[hidden] { display: none; }
.rowi.link, .rowi a.name { color: var(--text); text-decoration: none; }
.rowi.link:hover, .rowi a.name:hover { color: var(--accent); }
.rowi .ico { width: 40px; text-align: center; flex: none; }
.rowi .thumb { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; flex: none; background: var(--sunken); }
.rowi .meta-r { color: var(--muted); font-size: 12px; white-space: nowrap; }
@media (max-width: 560px) { .rowi .meta-r { display: none; } }
.crumbs { color: var(--muted); font-size: 13px; margin: 0 0 8px; }
.crumbs a { color: var(--muted); }
.filter { width: 100%; margin-bottom: 10px; background: var(--sunken); border: 1px solid var(--line-strong); color: var(--text); border-radius: 8px; padding: 8px 12px; font: inherit; font-size: 14px; }
.filter:focus { border-color: var(--accent); outline: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; background: var(--btn2); color: var(--text); border: 1px solid var(--line-strong); border-radius: 8px; padding: 0 14px; font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color .12s linear, border-color .12s linear, transform .06s; flex: none; }
.btn:hover { background: var(--btn2-hover); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--btn); border-color: var(--btn-line); color: #fff; }
.btn.primary:hover { background: var(--btn-hover); }
.btn.small { min-height: 32px; padding: 0 10px; font-size: 13px; }

.badge { font-size: 12px; padding: 2px 9px; border-radius: 999px; background: var(--btn2); border: 1px solid #4d4d4d; white-space: nowrap; }
.badge.g { background: #2d4a24; border-color: #4f8a3a; }

.mono { font: 13px ui-monospace, Consolas, monospace; }
.meta { color: var(--muted); margin: -6px 0 10px; }
details.reveal { margin-top: 10px; }
summary.btn { list-style: none; }
summary.btn::-webkit-details-marker { display: none; }

audio, video { width: 100%; display: block; border-radius: 8px; }
video { background: #000; }
.media-img { display: block; max-width: 100%; height: auto; border-radius: 8px; margin-top: 10px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0s !important; animation: none !important; scroll-behavior: auto !important; } }
