:root { color-scheme: light; font-family: system-ui, -apple-system, "Yu Gothic", sans-serif; color: #23432e; }
* { box-sizing: border-box; }
body { margin: 0; padding: 24px 12px; min-height: 100vh; background: repeating-linear-gradient(90deg, #103e2b 0 12px, #12442e 12px 24px); }
main { max-width: 700px; margin: auto; padding: clamp(18px, 4vw, 32px); background: #fafff9; border: 2px solid #d6bd6e; border-radius: 12px; }
h1 { font-size: clamp(1.4rem, 5vw, 1.9rem); margin: 8px 0 14px; }
h2 { font-size: 1.15rem; }
p { line-height: 1.7; }
.game-name { font-size: .85rem; letter-spacing: .05em; color: #617264; margin: 0; }
nav { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0 16px; }
.button, button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 10px 18px; border: 1px solid #afc6b5; border-radius: 7px; background: #f2f6f3; color: #23432e; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.primary { background: #e7f5df; border-color: #9fbe87; box-shadow: 0 3px 0 #b4c99e; }
.play { background: #e8f3ff; color: #23577e; border-color: #aac7df; min-width: 90px; box-shadow: 0 2px 0 #b7cfe3; }
button:disabled { opacity: .5; cursor: wait; }
a { color: #28654d; }
.header-links { display: flex; align-items: center; gap: 2em; margin-top: 2px; }
.admin-entry { min-height: auto; padding: 0; border: 0; border-radius: 0; background: none; color: #53695b; font-weight: 400; text-decoration: underline; text-underline-offset: 2px; }
.admin-entry:hover { color: #23432e; }
.list-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; border-bottom: 1px solid #d7e2d9; }
#status { color: #53695b; font-size: .95rem; }
#works { list-style: none; padding: 0; margin: 12px 0 20px; }
#works li { display: flex; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 10px; padding: 15px 14px; border: 1px solid #d6e1d8; border-radius: 8px; background: #fcfffc; }
#works li.is-featured { border-color: #cfb45e; background: #fffbed; box-shadow: inset 4px 0 0 #d2ac34; }
.work-info { min-width: 0; }
.work-heading { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 5px; }
.kind { color: #244a32; font-size: 1.02rem; font-weight: 800; overflow-wrap: anywhere; }
.featured-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 8px; border: 1px solid #d1b04b; border-radius: 999px; background: #fff1b8; color: #775315; font-size: .78rem; font-weight: 800; white-space: nowrap; }
time { font-size: .85rem; color: #637567; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #2873ba; outline-offset: 3px; }
.category-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.category-tabs button { padding-inline: 8px; background: #edf5ea; }
.category-tabs [aria-selected="true"] { background: #215939; color: #fff9df; border-color: #ba9940; box-shadow: inset 0 -3px #d8b75e; }
.work-title, .work-author { overflow-wrap: anywhere; }
.work-title { font-size: 1.08rem; }
.entry-number { color: #6c571e; white-space: nowrap; font-weight: 800; }
.work-author { margin: 3px 0 6px; font-size: .9rem; }
.work-meta { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; min-width: 0; }
.work-meta-copy { min-width: 0; }
.kind { font-size: .9rem; margin-bottom: 4px; }
#status:empty { display: none; }
.admin-overlay { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 16px; background: rgba(4, 22, 13, .72); }
.admin-dialog { width: min(100%, 390px); padding: 22px; border: 2px solid #d6bd6e; border-radius: 10px; background: #fafff9; box-shadow: 0 18px 48px rgba(0, 0, 0, .34); }
.admin-dialog h2 { margin: 0 0 16px; overflow-wrap: anywhere; }
.admin-dialog label { display: block; margin-bottom: 6px; font-weight: 700; }
.admin-dialog input { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid #9eb4a3; border-radius: 6px; font: inherit; }
.admin-dialog-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.admin-action-list { display: grid; gap: 9px; }
.admin-action-list button { width: 100%; }
.admin-danger { border-color: #be8e8e; background: #fff0f0; color: #7a2020; }
.admin-logout { margin-top: 8px; font-size: .86rem; font-weight: 600; }
.admin-error { margin: 12px 0 0; color: #a52323; font-size: .9rem; font-weight: 700; }
@media (max-width: 420px) { body { padding: 10px 8px; } nav { display: grid; } #works li { display: grid; padding: 14px 12px; } .play { width: 100%; min-width: 0; padding-inline: 12px; } .work-meta { align-items: center; } }
