* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #ffffff; color: #1e293b; min-height: 100vh; }
nav { background: #1e293b; padding: 1.25rem 1rem; display: flex; align-items: center; justify-content: center; }
nav .logo img { height: 150px; width: auto; display: block; }
main { max-width: 600px; margin: 0 auto; padding: 1.5rem 1rem; }
h1 { font-size: 1.3rem; margin-bottom: 1rem; color: #1e293b; }

.cta-buttons { display: flex; gap: 0.75rem; margin-bottom: 1.5rem; }
.cta-buttons .btn { flex: 1; text-align: center; padding: 1rem; border-radius: 12px; font-size: 0.9rem; font-weight: 700; text-decoration: none; transition: transform 0.1s, opacity 0.2s; display: flex; align-items: center; justify-content: center; }
.cta-buttons .btn:active { transform: scale(0.97); }
.btn-dm { background: #1e293b; color: #fff; }
.btn-dm:hover { opacity: 0.9; }
.btn-player { background: #f1f5f9; color: #1e293b; border: 2px solid #1e293b; }
.btn-player:hover { background: #e2e8f0; }

.session-card { background: #f8fafc; border-radius: 12px; padding: 1rem 1.25rem; margin-bottom: 0.75rem; border: 1px solid #e2e8f0; position: relative; }
.session-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; padding-right: 1.5rem; }
.date { font-size: 0.8rem; font-weight: 700; color: #fff; background: #1e293b; padding: 3px 8px; border-radius: 6px; }
.system { font-size: 0.75rem; background: #e2e8f0; color: #475569; padding: 3px 8px; border-radius: 6px; }
h2 { font-size: 1.1rem; margin: 0.25rem 0; color: #1e293b; }
.meta { font-size: 0.85rem; color: #64748b; margin-top: 0.25rem; }
.desc { font-size: 0.8rem; color: #94a3b8; margin-top: 0.5rem; }
.players { list-style: none; margin-top: 0.5rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.players li { background: #e2e8f0; padding: 4px 10px; border-radius: 20px; font-size: 0.8rem; color: #334155; }
.players li .exp { font-size: 0.65rem; color: #64748b; margin-left: 2px; }
.no-players { font-size: 0.8rem; color: #94a3b8; margin-top: 0.4rem; }
.btn-signup { display: inline-block; margin-top: 0.75rem; padding: 0.5rem 1.25rem; background: #1e293b; color: #fff; border-radius: 8px; font-size: 0.85rem; font-weight: 600; text-decoration: none; text-align: center; }
.btn-signup:hover { background: #334155; }
.btn-signup.disabled { background: #e2e8f0; color: #94a3b8; pointer-events: none; }
.delete-form { position: absolute; top: 8px; right: 8px; margin: 0; }
.btn-delete { background: #e2e8f0; border: none; color: #94a3b8; font-size: 0.6rem; cursor: pointer; width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; padding: 0 !important; width: auto !important; min-width: 18px; max-width: 18px; }
.btn-delete:hover { background: #fecaca; color: #ef4444; }
.signup-inline { display: flex !important; flex-direction: row !important; gap: 0.5rem; margin-top: 0.75rem; align-items: center; width: 100%; }
.signup-inline input[type="text"] { flex: 1; padding: 0.5rem 0.75rem; border-radius: 8px; border: 1px solid #e2e8f0; background: #fff; color: #1e293b; font-size: 0.85rem; min-width: 0; }
.signup-inline button { padding: 0.5rem 1rem !important; border-radius: 8px !important; width: auto !important; font-size: 0.85rem !important; flex-shrink: 0; }
.signup-inline button:disabled { background: #e2e8f0 !important; color: #94a3b8 !important; cursor: not-allowed; }
.signup-inline input:disabled { background: #f1f5f9; color: #94a3b8; }
.empty { color: #94a3b8; text-align: center; padding: 3rem 1rem; }

form { display: flex; flex-direction: column; gap: 1rem; }
label { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.85rem; color: #64748b; font-weight: 500; }
input, select, textarea { padding: 0.75rem; border-radius: 10px; border: 1px solid #e2e8f0; background: #f8fafc; color: #1e293b; font-size: 1rem; -webkit-appearance: none; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #38bdf8; box-shadow: 0 0 0 3px rgba(56,189,248,0.15); }
textarea { resize: vertical; min-height: 80px; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
button[type="submit"] { width: 100%; padding: 0.85rem; background: #1e293b; color: #fff; border: none; border-radius: 10px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: background 0.2s; -webkit-tap-highlight-color: transparent; }
button[type="submit"]:hover { background: #334155; }
button[type="submit"]:active { background: #0f172a; transform: scale(0.98); }
form.signup-inline button[type="submit"] { width: auto; padding: 0.5rem 1rem; font-size: 0.85rem; border-radius: 8px; }
form.signup-inline button[type="submit"]:disabled { background: #e2e8f0; color: #94a3b8; cursor: not-allowed; }

.msg { padding: 0.75rem 1rem; border-radius: 10px; margin-bottom: 1rem; font-size: 0.9rem; font-weight: 500; text-align: center; }
.msg.success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.msg.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

@media (max-width: 480px) {
  .cta-buttons { flex-direction: column; gap: 0.5rem; }
  .cta-buttons .btn { padding: 0.9rem; }
  main { padding: 1rem 0.75rem; }
}
