:root{
  --bg:#f7fafc;
  --ink:#0f172a;
  --accent:#ef4444;
  --accent-soft:#fee2e2;
  --muted:#64748b;
  --card:#ffffff;
  --shadow:0 14px 40px rgba(15,23,42,.18);
  --border:#e2e8f0;
  --link:#2563eb;
}

*{box-sizing:border-box;margin:0;padding:0;}

html,body{
  height:100%;
}

body.hfs-subpage{
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:radial-gradient(circle at top,#e0f2fe 0,#f8fafc 55%,#e5e7eb 100%);
  color:var(--ink);
  -webkit-font-smoothing:antialiased;
  padding:16px;
}

.page-shell{
  max-width:960px;
  margin:0 auto;
  min-height:calc(100vh - 32px);
  display:flex;
  flex-direction:column;
}

.site-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:10px 18px;
  margin-bottom:16px;
  border-radius:999px;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(148,163,184,.25);
  box-shadow:0 10px 30px rgba(15,23,42,.10);
  backdrop-filter:blur(12px);
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:inherit;
}

.brand-icon{
  font-size:26px;
}

.brand-text{
  font-weight:800;
  letter-spacing:.01em;
}

.top-nav{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-left:auto;       /* push nav to the right */
  justify-content:flex-end;
}

.nav-link{
  font-size:14px;
  padding:6px 12px;
  border-radius:999px;
  border:1px solid transparent;
  text-decoration:none;
  color:var(--muted);
  background:rgba(248,250,252,.9);
}

.nav-link:hover{
  border-color:rgba(148,163,184,.7);
  color:var(--ink);
  background:#ffffff;
}

.nav-link.is-active{
  background:var(--accent);
  color:#fff;
  border-color:transparent;
  box-shadow:0 8px 18px rgba(239,68,68,.35);
}

main.hfs-main{
  flex:1;
  margin-top:12px;
  margin-bottom:32px;
}

.content-card{
  background:var(--card);
  border-radius:28px;
  box-shadow:var(--shadow);
  border:1px solid rgba(148,163,184,.25);
  padding:clamp(18px,3vw,26px);
}

.content-hero-eyebrow{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.15em;
  color:var(--muted);
  margin-bottom:6px;
}

.content-title{
  font-size:clamp(22px,2.6vw,30px);
  font-weight:800;
  margin-bottom:6px;
}

.content-subtitle{
  color:var(--muted);
  font-size:14px;
  margin-bottom:18px;
}

.content-body{
  display:grid;
  gap:20px;
}

.content-body section h2{
  font-size:16px;
  margin-bottom:4px;
}

.content-body section p,
.content-body section ul{
  font-size:14px;
  line-height:1.6;
  color:var(--muted);
}

.content-body section ul{
  padding-left:18px;
}

.pill-list{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:6px;
}

.pill{
  font-size:12px;
  padding:4px 10px;
  border-radius:999px;
  background:var(--accent-soft);
  color:#b91c1c;
}

.contact-grid{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);
  gap:20px;
}

.contact-card{
  border-radius:18px;
  border:1px dashed rgba(148,163,184,.6);
  padding:14px 14px 16px;
  background:rgba(248,250,252,.9);
}

.contact-card h2{
  font-size:15px;
  margin-bottom:4px;
}

.contact-card p{
  font-size:14px;
  color:var(--muted);
}

.contact-form label{
  display:block;
  font-size:13px;
  margin-bottom:4px;
}

.contact-form input,
.contact-form textarea{
  width:100%;
  border-radius:10px;
  border:1px solid var(--border);
  padding:8px 10px;
  font-size:14px;
  margin-bottom:10px;
  font-family:inherit;
}

.contact-form textarea{
  min-height:90px;
  resize:vertical;
}
.contact-success-message {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
}

/* Increase specificity so this beats `.content-body section p` */
.content-body section p.contact-success-message--ok {
  color: #16a34a;  /* green */
}

.content-body section p.contact-success-message--error {
  color: #b91c1c;  /* red */
}

.btn-primary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:7px 16px;
  border-radius:999px;
  border:none;
  background:var(--accent);
  color:#fff;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
  box-shadow:0 10px 22px rgba(239,68,68,.45);
}

.btn-primary:hover{
  filter:brightness(1.05);
}

a.inline-link{
  color:var(--link);
  text-decoration:none;
}

a.inline-link:hover{
  text-decoration:underline;
}

/* Footer component (matches game footer) */
#hfs-footer {
  margin-top: 24px;
  padding: 12px 0 18px 0;
  font-size: 12px;
  text-align: center;
  color: #9aa1ad;
}

#hfs-footer .hfs-footer-inner {
  max-width: 960px;
  margin: 0 auto;
}

#hfs-footer .hfs-footer-nav {
  margin-bottom: 4px;
}

#hfs-footer .hfs-footer-nav a {
  text-decoration: none;
  color: inherit;
  padding: 0 4px;
}

#hfs-footer .hfs-footer-nav a:hover {
  text-decoration: underline;
}

#hfs-footer .hfs-footer-separator {
  padding: 0 2px;
}

#hfs-footer .hfs-footer-widgets {
  margin-top: 6px;
  margin-bottom: 4px;
}

#hfs-footer .hfs-footer-widgets:empty {
  display: none;
}

#hfs-footer .hfs-footer-meta {
  font-size: 11px;
}

@media (max-width:640px){
  .site-header{
    flex-direction:column;
    align-items:flex-start;
    border-radius:24px;
  }
  .top-nav{
    justify-content:flex-start;
  }
  main.hfs-main{
    margin-top:16px;
  }
}

/* Layout tweak: let footer sit just under content on subpages */
.page-shell{
  min-height:auto;
  display:block;
}

main.hfs-main{
  flex:none;
  margin-bottom:12px;  /* tighter gap above footer */
}

#hfs-footer{
  margin-top:12px;     /* keep footer close to last module */
}
