
:root{ --bg:#0b0f0d; --panel:#141a17; --text:#e5ece8; --muted:#a8b3ad; --accent:#83d0ff; --accent2:#4aa4ff; --glow: 0 0 24px rgba(120,190,255,0.35); }
*{box-sizing:border-box} html,body{height:100%}
body{ margin:0; background: radial-gradient(1200px 800px at 10% 10%, #101612, #0b0f0d 50%); color:var(--text); font-family: ui-sans-serif, system-ui, Segoe UI, Roboto, Helvetica, Arial; -webkit-font-smoothing: antialiased; animation: fadeIn 450ms ease; }
a{ color:var(--accent) } a:hover{ color:var(--accent2) }
.container{ max-width:1100px; margin:0 auto; padding:24px; }
.topbar{ display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:16px; }
.topbar .brand{ font-size:18px; letter-spacing:.4px; color:var(--muted); }
.topbar nav a{ margin-left:12px; text-decoration:none; }

.center-wrap{ min-height:100vh; display:grid; place-items:center; padding:24px; }

.gate-card{ width:min(560px, 92vw); background:linear-gradient(180deg, rgba(20,26,23,0.245), rgba(14,18,16,0.315)); border:none; border-radius:24px; box-shadow: 0 0 18px rgba(120,190,255,0.22), inset 0 0 44px rgba(120,190,255,0.14); padding:28px 24px 22px; position:relative; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.gate-title{ font-family: "Cinzel Decorative","Cinzel",Georgia,'Times New Roman',serif; font-size:28px; letter-spacing:.6px; text-align:center; margin-bottom:8px; }
.gate-form{ display:flex; gap:10px; align-items:center; }

.input{ flex:1; background:rgba(8,12,14,0.30); color:var(--text); border:1px solid rgba(160,210,255,0.25); border-radius:12px; padding:14px 14px; font-size:16px; outline:none; box-shadow: inset 0 0 12px rgba(120,190,255,0.22); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.input:focus{ border-color: rgba(160,220,255,0.55); box-shadow: inset 0 0 20px rgba(140,210,255,0.40); }

.btn{ background:linear-gradient(180deg, #83d0ff, #4aa4ff); color:#06121a; border:1px solid rgba(120,190,255,0.45); border-radius:12px; padding:12px 16px; font-weight:600; cursor:pointer; box-shadow: 0 6px 18px rgba(70,160,255,0.25); }
.btn:hover{ box-shadow: 0 8px 22px rgba(70,160,255,0.35); }

.row{ margin-top:10px; display:flex; align-items:center; justify-content:space-between; color:var(--muted); font-size:14px; }
label.checkbox{ display:flex; align-items:center; gap:8px; cursor:pointer; }

.small{ font-size:12px; color:var(--muted) }

@keyframes shakeKey{ 10%,90%{transform:translateX(-1px)} 20%,80%{transform:translateX(2px)} 30%,50%,70%{transform:translateX(-4px)} 40%,60%{transform:translateX(4px)} }
.shake{ animation: shakeKey .6s ease both; }

.grid{ display:grid; grid-template-columns: repeat( auto-fit, minmax(240px, 1fr) ); gap:18px; margin-top:18px; }
.card{ position:relative; display:block; background:var(--panel); border:1px solid rgba(200,240,204,.12); border-radius:16px; text-decoration:none; color:inherit; overflow:hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card.allowed:hover{ transform: translateY(-4px) scale(1.01); box-shadow: 0 10px 30px rgba(120,190,255,0.18); border-color: rgba(160,210,255,.45); }
.card.locked:hover{ transform: translateY(-2px); }
a.card.locked{ cursor:not-allowed; }

.card-img-wrap{ position:relative; aspect-ratio: 3/4; overflow:hidden; background:#0e1411; }
.card-img-wrap img{ width:100%; height:100%; object-fit:cover; display:block; }
.locked-overlay{ position:absolute; inset:0; background:repeating-linear-gradient(135deg,rgba(0,0,0,.45),rgba(0,0,0,.45) 10px,rgba(0,0,0,.55) 10px,rgba(0,0,0,.55) 20px); backdrop-filter: blur(1px); }
.lock-badge{ position:absolute; right:10px; top:10px; font-size:18px; filter: drop-shadow(0 0 8px rgba(0,0,0,.6)); }
.card-body{ padding:14px 14px 16px; }
.card-title{ font-weight:700; letter-spacing:.3px; margin-bottom:6px; }
.card-desc{ color:var(--muted); font-size:14px; min-height:38px; }

@keyframes fadeIn{ from{opacity:0; transform: translateY(6px)} to{opacity:1; transform:none} } .fade{ animation: fadeIn .35s ease both; }

/* Backgrounds */
body.gate{ background: linear-gradient(rgba(5,15,25,0.40), rgba(5,15,25,0.55)), url("/assets/doors-of-durin.png") center / cover fixed no-repeat; }
body.no-pass-bg{ background: linear-gradient(rgba(5,15,25,0.40), rgba(5,15,25,0.55)), url("/assets/gandalf.png") center / cover fixed no-repeat; }

/* Hub & GPT font theme */
body.hub, body.gpt{ font-family:"Cinzel","Cinzel Decorative",Georgia,'Times New Roman',serif; letter-spacing:.5px; }

/* Gate & No-Pass: card text white + links no underline */
body.gate .gate-card, body.no-pass-bg .gate-card{ color:#fff; }
body.gate .gate-card :not(.btn), body.no-pass-bg .gate-card :not(.btn){ color:inherit; }
body.gate .gate-card .input, body.no-pass-bg .gate-card .input{ color:#fff; }
body.gate .gate-card ::placeholder, body.no-pass-bg .gate-card ::placeholder{ color: rgba(255,255,255,0.85); }
body.gate .gate-card a, body.no-pass-bg .gate-card a{ color:#fff; text-decoration:none; }
body.gate .gate-card a:hover, body.no-pass-bg .gate-card a:hover{ color:#e6f4ff; text-decoration:none; }

/* Hub: blue hover glow on tile titles */
body.hub .card.allowed:hover .card-title{ color: var(--accent); text-shadow: 0 0 10px rgba(120,190,255,0.35); }
