/* Clan Chat Games — OSRS-inspired interface colours, original styling */
:root {
  --stone-900: #1b1712;
  --stone-800: #251f18;
  --stone-700: #2f2820;
  --stone-600: #3e3529;
  --stone-500: #5b4d38;
  --stone-400: #7a6849;
  --parch: #d9c9a3;
  --parch-dark: #b8a47a;
  --yellow: #ffde00;
  --orange: #ff981f;
  --cyan: #4fe3ff;
  --green: #3fd84a;
  --red: #d8312b;
  --text: #f1e7cf;
  --dim: #b5a586;
  --radius: 10px;
  --shadow: 0 1px 0 #000, 1px 1px 0 #000;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text); background: var(--stone-900);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--yellow); }
img, canvas { max-width: 100%; }
.wrap { width: min(1120px, 92vw); margin: 0 auto; }
.rs { font-family: "Trebuchet MS", Verdana, sans-serif; font-weight: 700; text-shadow: var(--shadow); }
.yellow { color: var(--yellow); }
.orange { color: var(--orange); }

/* header */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(27,23,18,.92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--stone-600); }
.site-head .wrap { display: flex; align-items: center; gap: 22px; height: 62px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--yellow); text-decoration: none; font-size: 19px; }
.logo svg { width: 30px; height: 30px; }
.nav { display: flex; gap: 18px; margin-left: auto; align-items: center; }
.nav a { color: var(--text); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--yellow); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 8px;
  font: 700 15px/1 system-ui, sans-serif; text-decoration: none; cursor: pointer; border: 2px solid transparent; }
.btn-primary { background: var(--yellow); color: #1b1712; border-color: #c9a800; box-shadow: 0 3px 0 #8a7300; }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { background: var(--stone-700); color: var(--text); border-color: var(--stone-500); }
.btn-ghost:hover { border-color: var(--parch-dark); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* hero */
.hero { padding: 72px 0 56px; background:
  radial-gradient(1000px 420px at 70% 0%, rgba(255,152,31,.16), transparent 60%),
  linear-gradient(180deg, var(--stone-800), var(--stone-900)); border-bottom: 1px solid var(--stone-600); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.05; margin: 0 0 16px; }
.hero p.lead { font-size: 19px; color: var(--dim); margin: 0 0 26px; max-width: 34em; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .note { margin-top: 14px; font-size: 13px; color: var(--dim); }
.chatbox { background: var(--parch); color: #000; border: 3px solid var(--stone-500); border-radius: 6px; padding: 10px 12px;
  font: 14px/1.5 "Trebuchet MS", Verdana, sans-serif; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.chatbox .line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chatbox .who { color: #000; font-weight: 700; }
.chatbox .msg { color: #0000c8; }
.chatbox .sys { color: #7a0000; }
.hero-art { position: relative; }
.hero-art .stage-mini { aspect-ratio: 16/9; border-radius: var(--radius); border: 3px solid var(--stone-500); background: #000; overflow: hidden; }
.hero-art .stage-mini canvas { width: 100%; height: 100%; display: block; }
.hero-art .chatbox { position: absolute; left: -26px; bottom: -48px; width: 48%; font-size: 13px; }

/* sections */
section { padding: 72px 0; }
section h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 0 0 8px; }
section .sub { color: var(--dim); margin: 0 0 32px; max-width: 42em; }
.panel { background: var(--stone-700); border: 1px solid var(--stone-500); border-radius: var(--radius); }

.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.game-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .12s, border-color .12s; }
.game-card:hover { transform: translateY(-2px); border-color: var(--parch-dark); }
.game-card .thumb { aspect-ratio: 16/9; display: grid; place-items: center; font-size: 44px; }
.game-card .body { padding: 14px 16px 16px; }
.game-card h3 { margin: 0 0 4px; font-size: 18px; }
.game-card p { margin: 0 0 10px; color: var(--dim); font-size: 14px; }
.tag { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--stone-600); color: var(--parch); margin-right: 6px; }
.tag.live { background: #1f4a22; color: #9cf3a2; }
.tag.soon { background: #4a3a1f; color: #f3d59c; }
.game-card code { background: var(--stone-900); padding: 1px 6px; border-radius: 4px; color: var(--yellow); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { padding: 22px; }
.step .num { width: 34px; height: 34px; border-radius: 50%; background: var(--yellow); color: #1b1712; display: grid; place-items: center; font-weight: 800; margin-bottom: 12px; }
.step h3 { margin: 0 0 6px; }
.step p { margin: 0; color: var(--dim); }

.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.feature { padding: 20px; }
.feature h3 { margin: 0 0 6px; font-size: 17px; }
.feature p { margin: 0; color: var(--dim); font-size: 15px; }

.faq details { padding: 16px 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { color: var(--dim); margin: 10px 0 0; }

.cta-band { text-align: center; background: linear-gradient(180deg, var(--stone-800), var(--stone-700)); border-top: 1px solid var(--stone-600); border-bottom: 1px solid var(--stone-600); }
.cta-band p { color: var(--dim); }

footer { padding: 40px 0 60px; color: var(--dim); font-size: 14px; }
footer .cols { display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; }
footer a { color: var(--parch); text-decoration: none; }
footer .legal { margin-top: 26px; font-size: 12px; color: #8d7f63; max-width: 70em; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art .chatbox { position: static; width: 100%; margin-top: 12px; }
  .steps { grid-template-columns: 1fr; }
  .nav a.hide-sm { display: none; }
}
