*{box-sizing:border-box;margin:0;padding:0}
:root{--bg:#1e2029;--bg2:#272a35;--text:#fff;--muted:#8d92a3;--gold:#f5c518}
html,body{background:var(--bg);color:var(--text);font-family:Inter,Arial,sans-serif}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
body{min-height:100vh;padding:0 48px 60px}
[hidden]{display:none!important}
.top{height:90px;display:flex;align-items:center;justify-content:space-between}
.logo{display:flex;align-items:center;gap:4px;color:#fff;text-decoration:none;font-weight:600;font-size:21px;letter-spacing:-.5px}
.top-right{display:flex;align-items:center;gap:26px}
.who{display:flex;align-items:center;gap:7px;color:var(--gold);font-weight:700;font-size:14px;line-height:1}
.who svg{display:block;flex:none}
.top-btn{padding:7px 14px;border-radius:4px;background:#363a48;color:#fff;font-size:13px;font-weight:600;line-height:1}.top-btn:hover{background:#444958}
main{max-width:920px;margin:0 auto}
.title-row{display:flex;align-items:center;justify-content:space-between;margin:14px 0 28px;gap:20px;flex-wrap:wrap}
h1{font-size:22px;font-weight:600}
h2{font-size:16px;font-weight:600}
.origin{color:var(--muted);font-size:13px}
.notice{margin:0 0 20px;padding:12px 14px;border-radius:6px;background:#3a2a2e;border:1px solid #6b3a44;color:#f87171;font-size:14px}
.panels{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px}
.card{display:flex;flex-direction:column;gap:14px;background:var(--bg2);border-radius:8px;padding:22px}
.card.wide{margin-bottom:16px}
.card-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.hint{color:var(--muted);font-size:13px;margin-top:-6px}
.count{color:var(--muted);font-size:13px}
.field{display:flex;flex-direction:column;gap:6px;color:var(--muted);font-size:13px}
.field i{font-style:normal;color:#6b6d78}
input{width:100%;height:40px;padding:0 12px;background:#2a2b36;border:1px solid #6b6d78;border-radius:6px;color:#fff;font:inherit;font-size:14px;outline:0}
input:focus{border-color:#aaa}
input::placeholder{color:#8e909b}
.btn{height:40px;padding:0 18px;border-radius:4px;background:#363a48;color:#fff;font-size:13px;font-weight:600}.btn:hover{background:#444958}
.btn.gold{background:var(--gold);color:#111}.btn.gold:hover{background:#ffd84a}
.btn:disabled,.top-btn:disabled,.small:disabled,.modal button:disabled{opacity:.5;cursor:default}
.link{color:var(--muted);font-size:13px}.link:hover{color:#fff}
.msg{min-height:20px;font-size:13px;font-weight:600}
.win{color:#4ade80}.lose{color:#f87171}
.list{display:flex;flex-direction:column}
.passkey{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 0;border-top:1px solid #363a48}
.passkey:first-child{border-top:0}
.passkey-info{min-width:0;display:flex;flex-direction:column;gap:3px}
.passkey-name{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.passkey-name.none{color:var(--muted);font-weight:500}
.passkey-meta{color:var(--muted);font-size:12px}
.passkey-actions{display:flex;gap:8px;flex:none}
.small{padding:7px 12px;border-radius:4px;background:#363a48;color:#fff;font-size:12px;font-weight:600;line-height:1}.small:hover{background:#444958}
.small.danger{background:#5a2d36}.small.danger:hover{background:#7a3a46}
.add{display:flex;gap:10px;padding-top:6px;border-top:1px solid #363a48}
.add input{flex:1}
.log{min-height:120px;max-height:260px;overflow:auto;padding:12px;border-radius:6px;background:#1e2029;color:#9ad7a6;font:12px/1.5 Consolas,Menlo,monospace;white-space:pre-wrap;word-break:break-word}
.modal{position:fixed;inset:0;background:rgba(0,0,0,.75);z-index:20;display:grid;place-items:center}
.modal-box{width:min(420px,92vw);display:flex;flex-direction:column;gap:14px;background:var(--bg2);border-radius:8px;padding:22px}
.modal button{background:#363a48;padding:10px;border-radius:4px;font-size:13px}.modal button:hover{background:#444958}
.actions{display:flex;gap:10px;justify-content:flex-end}.actions button{min-width:110px}
.actions .play{background:var(--gold);color:#111;font-weight:700}.actions .play:hover{background:#ffd84a}
@media(max-width:900px){.panels{grid-template-columns:1fr}body{padding:0 16px 40px}}
@media(max-width:560px){.passkey{flex-direction:column;align-items:stretch;gap:10px}.passkey-info{width:100%}.add{flex-direction:column}.add input{flex:none}.who span{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
.card.narrow{width:100%;max-width:520px;margin:0 auto 16px;padding:36px;gap:18px}
.card.narrow h2{font-size:22px;text-align:center}
.card.narrow input,.card.narrow .btn{height:46px;font-size:15px}
.card.narrow .hint{text-align:center}
main:has(#guest:not([hidden])),main:has(#passwordCard.narrow:not([hidden])){min-height:calc(100vh - 150px);display:flex;align-items:center;justify-content:center}
.divider{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:12px}
.divider::before,.divider::after{content:"";flex:1;height:1px;background:#363a48}
.card.prompt{flex-direction:row;align-items:center;justify-content:space-between;gap:20px;margin-bottom:16px;border:1px solid var(--gold)}
.prompt-text{display:flex;flex-direction:column;gap:6px;min-width:0}
.prompt-text .hint{margin-top:0}
.prompt-actions{display:flex;gap:10px;flex:none}
@media(max-width:560px){.card.prompt{flex-direction:column;align-items:stretch}.prompt-actions{flex-direction:column}}
input.invalid{border-color:#f87171}
.error{color:#f87171;font-size:12px;font-weight:500;line-height:1.5}
.error:empty{display:none}
.msg{white-space:pre-line}
.filters{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.filters .games{grid-column:1/-1}
select{width:100%;padding:6px;background:#2a2b36;border:1px solid #6b6d78;border-radius:6px;color:#fff;font:inherit;font-size:14px;outline:0}
select:focus{border-color:#aaa}
input[type=date]{color-scheme:dark}
.table-wrap{overflow-x:auto}
.table{width:100%;border-collapse:collapse;font-size:13px}
.table th,.table td{padding:9px 10px;text-align:right;border-top:1px solid #363a48;white-space:nowrap}
.table th:first-child,.table td:first-child{text-align:left}
.table th{color:var(--muted);font-weight:600;border-top:0}
.table tr.total td{font-weight:700;background:#2e313d}
@media(max-width:560px){.filters{grid-template-columns:1fr}}
.nav{display:flex;gap:6px}
.nav a{padding:8px 14px;border-radius:4px;color:var(--muted);font-size:14px;font-weight:600;text-decoration:none}
.nav a:hover{color:#fff}
.nav a.active{color:#fff;background:#363a48}
