/* The player community (RDDW-94). One stylesheet, the site's own tokens,
   mobile first, no script. Everything the community pages need and nothing
   the rest of the site loads. Logical properties throughout so the Hebrew
   pages mirror without a second sheet. */

:root { color-scheme: dark; }
* { box-sizing: border-box; }
html { background: #08080C; }
body { margin: 0; background: #08080C; color: #F0EDE8; font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
body.he { font-family: 'Heebo', 'Rubik', system-ui, Arial, sans-serif; }
h1, h2, h3 { font-family: 'Syne', 'DM Sans', system-ui, sans-serif; color: #fff; line-height: 1.25; margin: 0 0 12px; text-wrap: pretty; }
body.he h1, body.he h2, body.he h3 { font-family: 'Heebo', 'Rubik', system-ui, sans-serif; }
h1 { font-size: 26px; font-weight: 800; }
h2 { font-size: 20px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 700; }
p { margin: 0 0 12px; color: #B5B5BD; }
a { color: #E8534A; }
a:hover { color: #D4403A; }
.dim { color: #7A7890; }
.wrap { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 16px; }
.wrap.wide { max-width: 980px; }
main { padding: 16px 16px 40px; min-height: 60vh; }
.skip { position: absolute; top: -200px; inset-inline-start: 16px; z-index: 100; background: #E8534A; color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 8px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(8,8,12,.92); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255,255,255,.06); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.brand { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #C9C7D3; text-decoration: none; white-space: nowrap; }
.brand .r { color: #E8534A } .brand .d1 { color: #5B9BD5 } .brand .d2 { color: #6BBF6B }
.brand-sub { color: #7A7890; font-weight: 600; margin-inline-start: 6px; letter-spacing: .5px; text-transform: none; }
.top-nav { display: flex; align-items: center; gap: 6px; }
.nav-a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 12px; border-radius: 10px; color: #F0EDE8; text-decoration: none; font-weight: 600; font-size: 14px; }
.nav-a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-ic { padding: 6px 8px; }
.nav-me span { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* icons & avatars */
.ic { display: inline-flex; width: 18px; height: 18px; vertical-align: -3px; }
.ic svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic-big { width: 56px; height: 56px; border-radius: 14px; background: #1C1C2A; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; color: #F0EDE8; }
.ic-big svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.av { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid; font-weight: 700; flex: 0 0 auto; }

/* cards & blocks */
.card { background: #101018; border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 22px 20px; margin: 0 0 16px; }
.card.center { text-align: center; }
.banner { display: flex; align-items: center; gap: 10px; background: rgba(232,83,74,.10); border: 1px solid rgba(232,83,74,.30); color: #F0EDE8; border-radius: 12px; padding: 12px 14px; margin: 0 0 16px; text-decoration: none; font-weight: 600; }
.banner .ic { margin-inline-start: auto; color: #E8534A; }
.join { display: grid; gap: 12px; }
.join p { margin: 0; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 10px; border: 0; background: #E8534A; color: #fff; font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; }
.btn:hover { background: #D4403A; color: #fff; }
.btn.ghost { background: #1C1C2A; color: #F0EDE8; border: 1px solid rgba(255,255,255,.1); }
.btn.ghost:hover { background: #26263A; }
.btn.small { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.btn.block { width: 100%; }
.btn.danger { background: transparent; color: #E8534A; border: 1px solid rgba(232,83,74,.5); }
.btn.danger:hover { background: rgba(232,83,74,.12); }
.linkish { background: none; border: 0; padding: 0; color: #E8534A; font: inherit; cursor: pointer; text-decoration: underline; }
form.inline { display: inline; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* category grid */
.cats { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cat { display: block; background: #101018; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 14px; text-decoration: none; color: #F0EDE8; min-height: 44px; }
.cat:hover { border-color: rgba(255,255,255,.18); color: #fff; }
.cat .ic { width: 22px; height: 22px; color: #E8534A; margin-bottom: 6px; }
.cat b { display: block; font-size: 15px; }
.cat span { display: block; color: #7A7890; font-size: 13px; line-height: 1.45; }
.cat .n { color: #B5B5BD; font-size: 12px; margin-top: 6px; }
@media (min-width: 640px) { .cats { grid-template-columns: repeat(3, 1fr); } }

/* thread list */
.listbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; }
.listbar form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.listbar select { width: auto; min-width: 150px; }
.tlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tcard { background: #101018; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; }
.tcard-a { display: block; padding: 14px 16px; text-decoration: none; color: inherit; }
.tcard-a:hover { color: inherit; }
.tcard:hover { border-color: rgba(255,255,255,.18); }
.tcard-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.tcard-title { margin: 0; font-size: 16px; }
.tcard-ex { margin: 6px 0 8px; color: #B5B5BD; font-size: 14px; }
.tcard-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; color: #7A7890; font-size: 13px; align-items: center; }
.tcard-meta b { color: #B5B5BD; font-weight: 600; }
.tcard-nums { margin-inline-start: auto; display: inline-flex; gap: 4px; align-items: center; }
.tcard-nums .ic { width: 15px; height: 15px; }
.pill { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .3px; padding: 2px 8px; border-radius: 999px; border: 1px solid transparent; line-height: 1.5; vertical-align: middle; }
.pill-coral { background: rgba(232,83,74,.16); color: #F08A83; }
.pill-blue { background: rgba(91,155,213,.16); color: #8FBDE6; }
.pill-green { background: rgba(107,191,107,.16); color: #8FD58F; }
.pill-gold { background: rgba(245,169,60,.16); color: #F5C36F; }
.pill-dim { background: rgba(255,255,255,.06); color: #9A98AD; }
.pill-studio { background: transparent; color: #E8534A; border-color: rgba(232,83,74,.6); margin-inline-start: 6px; }
.pill-tester { background: transparent; color: #8FBDE6; border-color: rgba(91,155,213,.6); margin-inline-start: 6px; }
.empty { color: #7A7890; text-align: center; padding: 30px 10px; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 16px 0; }
.quick { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.quick a { color: #F0EDE8; text-decoration: none; }
.quick a:hover { color: #E8534A; }
.crumbs { font-size: 13px; color: #7A7890; margin: 0 0 12px; }
.crumbs a { color: #B5B5BD; text-decoration: none; }

/* thread page */
.thread-head { margin: 0 0 6px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #7A7890; font-size: 13px; margin: 0 0 14px; }
.meta b { color: #F0EDE8; font-weight: 600; }
.post { background: #101018; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 14px 16px; margin: 0 0 10px; }
.post.op { border-color: rgba(255,255,255,.14); }
.post.studio { border-inline-start: 3px solid #E8534A; }
.post.hidden { opacity: .6; }
.post-head { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 13px; color: #7A7890; }
.post-head b { color: #F0EDE8; }
.post-body p { color: #E4E2EC; }
.post-body p:last-child { margin-bottom: 0; }
.post-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 10px; font-size: 13px; }
.post-foot form { display: inline; }
.vote { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 12px; border-radius: 999px; background: #1C1C2A; border: 1px solid rgba(255,255,255,.1); color: #F0EDE8; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; }
.vote.on { background: rgba(232,83,74,.16); border-color: rgba(232,83,74,.5); color: #F08A83; }
.vote .ic { width: 16px; height: 16px; }
.studio-label { color: #E8534A; font-weight: 700; font-size: 12px; letter-spacing: .5px; text-transform: uppercase; }
.poll { display: grid; gap: 8px; margin: 10px 0 4px; }
.poll label { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border-radius: 10px; background: #1C1C2A; border: 1px solid rgba(255,255,255,.1); cursor: pointer; }
.poll input { width: 20px; height: 20px; accent-color: #E8534A; margin: 0; }
.bar { position: relative; min-height: 44px; border-radius: 10px; background: #1C1C2A; border: 1px solid rgba(255,255,255,.1); overflow: hidden; display: flex; align-items: center; padding: 8px 12px; }
.bar i { position: absolute; inset-block: 0; inset-inline-start: 0; background: rgba(232,83,74,.22); }
.bar span { position: relative; display: flex; justify-content: space-between; width: 100%; gap: 8px; }
.notice { background: rgba(255,255,255,.04); border: 1px dashed rgba(255,255,255,.14); border-radius: 12px; padding: 12px 14px; color: #B5B5BD; margin: 0 0 12px; }

/* forms */
.field { display: grid; gap: 6px; margin: 0 0 14px; }
.field > span, .field > label > span { font-size: 13px; color: #B5B5BD; font-weight: 600; }
.hint { font-size: 12px; color: #7A7890; margin: 0; }
input[type=text], input[type=email], input[type=url], input[type=search], textarea, select { width: 100%; font: inherit; font-size: 15px; color: #F0EDE8; background: #0C0C14; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: 12px 14px; min-height: 44px; }
textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
select { appearance: none; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.check input { width: 20px; height: 20px; accent-color: #E8534A; margin: 0; }
.radios { display: grid; gap: 4px; }
.radios label { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 4px; border-radius: 8px; color: #B5B5BD; cursor: pointer; }
.radios input { width: 20px; height: 20px; accent-color: #E8534A; margin: 0; }
.avatars { display: flex; flex-wrap: wrap; gap: 10px; }
.avatars label { position: relative; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; }
.avatars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.avatars .av { width: 48px; height: 48px; font-size: 20px; }
.avatars input:checked + .av { outline: 3px solid #fff; outline-offset: 2px; }
.err { color: #F08A83; background: rgba(232,83,74,.10); border: 1px solid rgba(232,83,74,.35); border-radius: 10px; padding: 10px 12px; }
.ok { color: #8FD58F; background: rgba(107,191,107,.10); border: 1px solid rgba(107,191,107,.35); border-radius: 10px; padding: 10px 12px; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.or { display: flex; align-items: center; gap: 12px; color: #7A7890; font-size: 13px; margin: 14px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.1); }
.hr { height: 1px; background: rgba(255,255,255,.08); margin: 16px 0; }
.rules ol { padding-inline-start: 22px; color: #B5B5BD; }
.rules li { margin: 0 0 10px; }
.rules b { color: #F0EDE8; }

/* admin */
.tabs { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 16px; padding-bottom: 4px; }
.tabs a { flex: 0 0 auto; min-height: 40px; display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px; background: #1C1C2A; border: 1px solid rgba(255,255,255,.1); color: #F0EDE8; text-decoration: none; font-weight: 600; font-size: 14px; }
.tabs a.on { background: #E8534A; border-color: #E8534A; color: #fff; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.row .grow { flex: 1 1 160px; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th, table.t td { text-align: start; padding: 8px 6px; border-bottom: 1px solid rgba(255,255,255,.08); vertical-align: top; }
table.t th { color: #7A7890; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.num { text-align: end !important; font-variant-numeric: tabular-nums; }
.stat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 16px; }
.stat div { background: #101018; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 12px; }
.stat b { display: block; font-size: 24px; color: #fff; font-family: 'Syne', 'DM Sans', sans-serif; }
.stat span { font-size: 12px; color: #7A7890; }
.scroll { overflow-x: auto; }

/* footer */
.foot { border-top: 1px solid rgba(255,255,255,.06); padding: 20px 0 34px; color: #7A7890; font-size: 13px; text-align: center; }
.foot a { color: #9A98AD; text-decoration: none; }
.foot a:hover { color: #E8534A; }
.foot .linkish { color: #9A98AD; text-decoration: none; }
