/* SoaRummy site — felt table / brass */
:root {
  --felt: #0c3d2e;
  --felt-deep: #071f18;
  --felt-mid: #145c45;
  --brass: #d4a84b;
  --brass-soft: #e8c878;
  --cream: #f3ebe0;
  --ink: #0a1210;
  --muted: #9bb5ab;
  --panel: rgba(8, 28, 22, 0.72);
  --line: rgba(212, 168, 75, 0.28);
  --danger: #e07a5f;
  --radius: 14px;
  --font-display: "Fraunces", "Palatino Linotype", serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--cream);
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(212, 168, 75, 0.14), transparent 55%),
    radial-gradient(900px 500px at 10% 20%, rgba(20, 92, 69, 0.55), transparent 50%),
    linear-gradient(165deg, var(--felt-mid) 0%, var(--felt) 38%, var(--felt-deep) 100%);
  background-attachment: fixed;
}

a { color: var(--brass-soft); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: #fff; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.85rem 1.4rem;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 31, 24, 0.88);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
}
.brand-mark {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.55rem;
  letter-spacing: 0.02em;
  color: var(--brass-soft);
}
.brand-sub {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
}
.nav a {
  color: var(--cream);
  text-decoration: none;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.92rem;
}
.nav a:hover,
.nav a[aria-current="page"] {
  border-color: var(--line);
  background: rgba(212, 168, 75, 0.1);
  color: var(--brass-soft);
}

.nav-auth {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.35rem;
  padding-left: 0.55rem;
  border-left: 1px solid var(--line);
}
.nav-steam {
  border-color: rgba(102, 192, 244, 0.45) !important;
  background: rgba(27, 40, 56, 0.85) !important;
  color: #66c0f4 !important;
  font-weight: 600;
}
.nav-steam-user {
  color: #c7d5e0;
  font-size: 0.88rem;
  padding: 0.35rem 0.4rem;
  max-width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-login {
  border-color: var(--line) !important;
  background: rgba(212, 168, 75, 0.16) !important;
  color: var(--brass-soft) !important;
  font-weight: 600;
}
.nav-admin {
  border-color: rgba(125, 222, 160, 0.35) !important;
  color: #9ee4b6 !important;
  font-weight: 600;
}
.nav-logout {
  cursor: pointer;
  color: var(--cream);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  font: inherit;
  font-size: 0.92rem;
}
.nav-logout:hover {
  border-color: var(--line);
  color: var(--brass-soft);
}

.hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: grid;
  align-content: end;
  padding: 3.5rem 1.5rem 3rem;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 40%, rgba(243, 235, 224, 0.06) 0 1px, transparent 2px) 0 0 / 28px 28px,
    linear-gradient(180deg, transparent 35%, rgba(7, 31, 24, 0.92) 88%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 42rem;
  margin: 0 auto 0 8vw;
}
.hero .brand-mark {
  font-size: clamp(3rem, 8vw, 5.2rem);
  line-height: 0.95;
  display: block;
  margin-bottom: 0.85rem;
  animation: rise 0.9s ease both;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  margin: 0 0 0.75rem;
  max-width: 22ch;
  animation: rise 0.9s ease 0.08s both;
}
.hero p {
  margin: 0 0 1.4rem;
  color: var(--muted);
  max-width: 36ch;
  font-size: 1.05rem;
  animation: rise 0.9s ease 0.14s both;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  animation: rise 0.9s ease 0.2s both;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--brass);
  background: linear-gradient(180deg, #e0b85a, var(--brass));
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}
.btn:hover { filter: brightness(1.06); color: var(--ink); }
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--line);
}
.btn-ghost:hover { color: var(--brass-soft); border-color: var(--brass); }

.section {
  max-width: 52rem;
  margin: 0 auto;
  padding: 2rem 1.35rem 3.5rem;
}
.section h2 {
  font-family: var(--font-display);
  font-weight: 550;
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
  color: var(--brass-soft);
}
.lead { color: var(--muted); margin: 0 0 1.5rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 168, 75, 0.55);
}
.card h3 {
  font-family: var(--font-display);
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
}
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  margin-bottom: 1rem;
}
.panel h2, .panel h3 {
  font-family: var(--font-display);
  color: var(--brass-soft);
  margin: 0 0 0.55rem;
}
.meta { color: var(--muted); font-size: 0.9rem; margin: 0 0 1rem; }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}
.stat {
  text-align: center;
  padding: 1.1rem 0.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
}
.stat .n {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--brass-soft);
  line-height: 1;
}
.stat .l { color: var(--muted); font-size: 0.85rem; margin-top: 0.35rem; }

label { display: block; margin: 0.6rem 0 0.25rem; color: var(--muted); font-size: 0.88rem; }
input, textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  color: var(--cream);
  font: inherit;
}
textarea { min-height: 110px; resize: vertical; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.post {
  border-top: 1px solid var(--line);
  padding: 0.9rem 0;
}
.post:first-child { border-top: none; }
.post .who { font-weight: 650; color: var(--brass-soft); }
.post .when { color: var(--muted); font-size: 0.8rem; margin-left: 0.5rem; }
.post .body { margin: 0.35rem 0 0; white-space: pre-wrap; word-break: break-word; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 1.25rem 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: center;
  color: var(--muted);
  font-size: 0.88rem;
  background: rgba(7, 31, 24, 0.75);
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--brass-soft); }

.warn {
  border-color: rgba(224, 122, 95, 0.45);
  background: rgba(224, 122, 95, 0.08);
}
.warn h2 { color: var(--danger); }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 720px) {
  .hero-inner { margin: 0; }
  .hero { min-height: 70vh; padding-top: 2.5rem; }
}
