/* Public pages (home, login, register, help, rankings, families): templates/layout/public.php.
   "Klassiek Remastered": the grey grunge of the 2009 site, brass accents, the official logo. */
:root {
    --bg: #2b2b2b; --bg-deep: #232323; --bg-alt: #262626; --panel: #5a5a5a; --panel-2: #555; --line: #6e6e6e; --line-soft: #5e5e5e;
    --text: #e6e6e6; --muted: #a9a9a9; --soft: #d2d2d2; --white: #fff;
    --gold: #d9b45a; --gold-hi: #f3d37a; --gold-lo: #a47a1c; --gold-line: #b08a33; --gold-text: #c9ad6a;
    --ok: #8fdc8f; --err: #ec8d83;
    --serif: Georgia, "Times New Roman", serif; --sans: Verdana, Geneva, sans-serif;
    --content: 1312px;   /* max width of the content; backgrounds stay full width */
    --gutter: max(64px, calc((100vw - var(--content)) / 2));
    --indent: calc(var(--gutter) + 48px);   /* hero and band text sit a little further in */
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.pub { margin: 0; background: var(--bg); color: var(--text); font: 13px/1.5 var(--sans); }
.pub a { color: var(--gold-hi); }
.pub img { max-width: 100%; height: auto; }
.pub h1, .pub h2, .pub h3, .pub h4, .pub h5, .pub p { margin: 0; }
.sm-only { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons, chips, fields ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 26px; border-radius: 6px; cursor: pointer;
       font: 700 14px var(--sans); letter-spacing: .5px; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.btn-gold { color: #2a1d02 !important; background: linear-gradient(#f3d37a, #c99a2e 55%, #a47a1c); border: 1px solid #7a5810;
            box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 4px 14px rgba(201,154,46,.35); }
.btn-gold:hover { filter: brightness(1.06); }
.btn-steel { color: #fff !important; background: linear-gradient(#5e5e5e, #444 55%, #3a3a3a); border: 1px solid #222; box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 3px 10px rgba(0,0,0,.4); }
.btn-ghost { color: #fff !important; border: 1px solid #3a3a3a; background: rgba(0,0,0,.28); }
.btn-ghost.is-on { border-color: var(--gold); color: var(--gold-hi) !important; }
.btn-block { display: flex; width: 100%; }
.btn-lg { height: 56px; padding: 0 32px; font-size: 15px; }
.btn-sm { height: 40px; padding: 0 18px; font-size: 12px; }
.btn:focus-visible, .field:focus-visible, .pub a:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.eyebrow { font: 700 11px var(--sans); letter-spacing: 3px; text-transform: uppercase; color: var(--gold); }
.h2 { font: 700 30px/1.2 var(--serif); color: var(--white); }
.muted { color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.live { background: rgba(76,175,80,.15); color: var(--ok); border: 1px solid rgba(76,175,80,.4); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: #5ed35e; box-shadow: 0 0 8px #5ed35e; display: inline-block; }
.panel { background: linear-gradient(#5d5d5d, #555); border: 1px solid var(--line); border-radius: 8px; box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 8px 24px rgba(0,0,0,.45); }
.medal { width: 56px; height: 56px; flex: none; display: block; }
.medal-sm { width: 40px; height: 40px; } .medal-xs { width: 30px; height: 30px; } .medal-lg { width: 72px; height: 72px; }
.field { display: block; width: 100%; height: 46px; border-radius: 5px; background: #3b3b3b; border: 1px solid #2a2a2a; box-shadow: inset 0 2px 4px rgba(0,0,0,.4);
         padding: 0 14px; color: #f0f0f0; font: 16px var(--sans); }
.field::placeholder { color: #8d8d8d; }
.field:focus { border-color: var(--gold); outline: none; }
select.field { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
               background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px; background-size: 5px 5px; background-repeat: no-repeat; }
.form label { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; font-weight: 700; color: #cfcfcf; margin: 16px 0 7px; text-transform: uppercase; letter-spacing: 1px; }
.form label span { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); }
.form label a { text-transform: none; letter-spacing: 0; font-weight: 400; text-decoration: none; }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; color: var(--soft); margin-top: 16px; line-height: 18px; }
.check-row input { width: 18px; height: 18px; margin: 0; accent-color: var(--gold); flex: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hint { font-size: 11px; margin-top: 6px; color: var(--muted); }
.alert { padding: 12px 14px; border-radius: 6px; font-size: 13px; line-height: 20px; margin-top: 16px; }
.alert-err { background: rgba(178,74,64,.15); border: 1px solid rgba(236,141,131,.45); color: #f6cbc6; }
.alert-ok { background: rgba(76,175,80,.12); border: 1px solid rgba(76,175,80,.4); color: #cfe9cf; }
.alert a { color: var(--gold-hi); }
.or { display: flex; align-items: center; gap: 12px; margin: 22px 0 14px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: #6a6a6a; }
.captcha { display: flex; gap: 10px; align-items: center; } .captcha img { height: 46px; border-radius: 5px; border: 1px solid #222; }
.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 8px; } .strength i { height: 4px; border-radius: 2px; background: #3a3a3a; }
.strength i.on { background: var(--gold); }

/* ---------- header / footer ---------- */
.site-top { position: sticky; top: 0; z-index: 20; height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 var(--gutter);
       background: linear-gradient(#7a7a7a, #5c5c5c 60%, #505050); border-bottom: 1px solid #2a2a2a; box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 3px 12px rgba(0,0,0,.5); }
.site-top .logo img { display: block; height: 48px; width: auto; }
.nav { display: flex; gap: 34px; font-size: 13px; font-weight: 700; }
.nav a { color: #f0f0f0; text-decoration: none; text-shadow: 0 1px 0 rgba(0,0,0,.5); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: #fff; } .nav a.on { color: #fff; border-bottom-color: #f0c860; }
.site-top .acts { display: flex; gap: 12px; }
.site-top .btn { height: 40px; padding: 0 20px; font-size: 12px; }
.burger { display: none; width: 40px; height: 40px; border-radius: 6px; border: 1px solid #3a3a3a; background: rgba(0,0,0,.28); cursor: pointer; padding: 0;
          flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger i { width: 18px; height: 2px; background: #ddd; display: block; border-radius: 2px; }
.foot { background: linear-gradient(#5c5c5c, #4a4a4a); border-top: 1px solid #7a7a7a; padding: 30px var(--gutter); display: flex; justify-content: space-between; align-items: center; gap: 20px;
        font-size: 12px; color: #e0e0e0; }
.foot .logo img { height: 36px; width: auto; display: block; }
.foot .links { display: flex; gap: 26px; } .foot a { color: #fff; text-decoration: none; }

/* ---------- page band (sub pages) ---------- */
.band { position: relative; background: radial-gradient(ellipse at 60% 30%, #747474, #5a5a5a 55%, #474747); overflow: hidden; padding: 38px var(--indent) 76px; }
.band::before, .hero::before { content: ""; position: absolute; inset: 0; background: url('../IMG/home/grunge.webp') center / 100% 100% no-repeat; pointer-events: none; }
.band::after, .hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 46px; background: url('../IMG/home/torn.webp') center bottom / 1440px 46px repeat-x; pointer-events: none; }
.band > * { position: relative; z-index: 1; }
.band h1 { font: 700 46px/1.1 var(--serif); color: #fff; margin: 10px 0 12px; text-shadow: 0 3px 0 rgba(0,0,0,.3); }
.band p { font-size: 15px; line-height: 24px; color: #e4e4e4; max-width: 640px; }
.crumbs { font-size: 11px; color: #d6d6d6; margin-bottom: 14px; } .crumbs a { color: #d6d6d6; text-decoration: none; } .crumbs span { color: var(--gold); margin: 0 6px; }
.band .deco { position: absolute; z-index: 0; right: calc(var(--gutter) + 60px); top: 30px; width: 230px; transform: rotate(-12deg); pointer-events: none; }
.wrap { padding: 44px var(--gutter) 56px; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.side { display: flex; flex-direction: column; gap: 22px; }
.side .panel { padding: 22px; }
.side h3 { font: 700 16px var(--serif); color: #fff; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.side p { font-size: 13px; line-height: 20px; color: var(--soft); }
.side .btn { width: 100%; margin-top: 14px; height: 44px; }
.ladder > div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed #666; font-size: 12px; color: #d8d8d8; }
.ladder > div:last-child { border-bottom: 0; } .ladder span { color: var(--muted); text-align: right; } .ladder .hi { color: var(--gold-hi); font-weight: 700; }
.empty { padding: 26px; text-align: center; color: var(--muted); font-size: 13px; }

/* ---------- home ---------- */
.hero { position: relative; background: radial-gradient(ellipse at 62% 40%, #747474 0%, #636363 45%, #4a4a4a 100%); padding: 60px var(--gutter) 110px var(--indent); overflow: hidden; }
.hero > * { position: relative; z-index: 1; }
.hero-in { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
.hero .copy { max-width: 600px; }
.hero h1 { font: 700 60px/1.06 var(--serif); color: #fff; text-shadow: 0 3px 0 rgba(0,0,0,.35); margin: 18px 0 22px; }
.hero h1 em, .auth-vis h1 em { color: #e2bd62; }
.hero .lead { font-size: 16px; line-height: 27px; color: #e4e4e4; max-width: 540px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.proof { display: flex; gap: 28px; margin-top: 40px; font-size: 12px; color: #d0d0d0; }
.proof b { display: block; font: 700 26px var(--serif); color: #fff; }
.hero .car { position: absolute; z-index: 0; left: calc(var(--indent) + 580px); top: 420px; width: 280px; pointer-events: none; }
.hero .cas { position: absolute; z-index: 0; right: calc(var(--gutter) - 20px); top: 470px; width: 180px; transform: rotate(-8deg); pointer-events: none; }
.login-box { width: 380px; flex: none; padding: 28px; }
.login-box h2 { font: 700 20px var(--serif); color: #fff; display: flex; justify-content: space-between; align-items: center; }
.login-box .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 14px 0 20px; font-size: 12px; color: #cfcfcf; }
.login-box .row a { text-decoration: none; } .login-box .row .check-row { margin: 0; }
.login-box .new { margin-top: 18px; padding-top: 16px; border-top: 1px solid #6c6c6c; text-align: center; font-size: 12px; color: #cfcfcf; }
.login-box .new a { color: #fff; font-weight: 700; }
.statbar { display: grid; grid-template-columns: repeat(4, 1fr); margin: -34px var(--gutter) 0; position: relative; z-index: 2;
           background: linear-gradient(#363636, #262626); border: 1px solid #111; border-top-color: var(--gold-line); border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.statbar > div { padding: 22px 28px; display: flex; align-items: center; gap: 16px; border-right: 1px solid #3c3c3c; min-width: 0; }
.statbar > div:last-child { border-right: 0; }
.statbar .medal { width: 44px; height: 44px; }
.statbar .k { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gold-text); }
.statbar .v { font: 700 24px var(--serif); color: #fff; white-space: nowrap; } .statbar .v small { font: 400 13px var(--sans); color: #9a9a9a; }
.sec { padding: 56px var(--gutter); }
.sec-alt { background: var(--bg-alt); border-top: 1px solid #353535; border-bottom: 1px solid #353535; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 30px; }
.sec-head p { max-width: 460px; font-size: 14px; line-height: 23px; }
.sec-head .h2 { margin-top: 10px; }
.feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.fcard { padding: 26px; display: flex; gap: 18px; }
.fcard h3 { font: 700 17px var(--serif); color: #fff; margin-bottom: 8px; }
.fcard p { font-size: 13px; line-height: 21px; color: #d2d2d2; }
.live-wrap { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 22px; }
.list { padding: 22px 24px; }
.list h3 { font: 700 15px var(--serif); color: #fff; display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid #686868; font-size: 13px; min-width: 0; }
.li:first-of-type { border-top: 0; }
.li .t { color: #b5b5b5; font-size: 11px; margin-left: auto; white-space: nowrap; padding-left: 8px; }
.li b { color: #fff; } .li small { display: block; color: var(--muted); font-size: 11px; }
.li .txt { min-width: 0; overflow-wrap: anywhere; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--gold); }
.dot-red { background: #c26a5f; } .dot-gold { background: var(--gold); } .dot-grey { background: #9a9a9a; }
.rk { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex: none; background: #464646; color: #ddd; }
.rk.g { background: linear-gradient(#f3d37a, #b0841f); color: #2a1d02; } .rk.s { background: linear-gradient(#eee, #9a9a9a); color: #222; } .rk.b { background: linear-gradient(#e2a46b, #94592a); color: #2a1503; }
.emb { width: 30px; height: 30px; border-radius: 6px; flex: none; object-fit: cover; background: #333; border: 1px solid var(--gold-line); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); }
.step { padding: 0 34px; border-left: 1px solid #444; } .step:first-child { border-left: 0; padding-left: 0; }
.step .n { font: italic 700 54px/1 var(--serif); color: var(--gold); }
.step h3 { font: 700 18px var(--serif); color: #fff; margin: 10px 0 8px; } .step p { font-size: 13px; line-height: 21px; color: #bdbdbd; }
.cta-band { margin: 0 var(--gutter) 56px; padding: 44px 56px; display: flex; justify-content: space-between; align-items: center; gap: 24px; position: relative; overflow: hidden;
            background: radial-gradient(ellipse at 80% 50%, #6c6c6c, #4f4f4f); border: 1px solid var(--line); border-radius: 10px; }
.cta-band h2 { font: 700 34px/1.15 var(--serif); color: #fff; } .cta-band p { font-size: 14px; color: #dedede; margin-top: 10px; }
.cta-band .cas-up { position: absolute; left: 58%; top: 10px; width: 60px; transform: rotate(18deg); pointer-events: none; }
.cta-band > :not(.cas-up) { position: relative; }

/* ---------- auth pages ---------- */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 76px - 96px); }
.auth-vis { position: relative; overflow: hidden; padding: 70px 72px 70px max(72px, calc(50vw - var(--content) / 2)); background: radial-gradient(ellipse at 40% 40%, #747474, #555 60%, #3e3e3e); }
.auth-vis::before { content: ""; position: absolute; inset: 0; background: url('../IMG/home/grunge.webp') left center / 200% 100% no-repeat; pointer-events: none; }
.auth-vis > * { position: relative; }
.auth-vis h1 { font: 700 44px/1.1 var(--serif); color: #fff; margin-top: 12px; }
.auth-vis .lead { font-size: 15px; line-height: 25px; color: #e2e2e2; margin-top: 16px; max-width: 460px; }
.auth-vis .car { display: block; width: 364px; margin: 40px 0 0 -10px; }
.auth-vis .cas { position: absolute; width: 150px; right: 40px; top: 70px; transform: rotate(-10deg); }
.quote { margin-top: 26px; max-width: 520px; font: italic 17px/1.5 var(--serif); color: #f1f1f1; border-left: 3px solid var(--gold); padding-left: 18px; }
.quote small { display: block; font: 12px var(--sans); color: var(--gold-text); margin-top: 8px; font-style: normal; }
.perks { margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.perk { display: flex; gap: 14px; align-items: center; font-size: 14px; color: #f0f0f0; } .perk small { display: block; color: #cfcfcf; font-size: 12px; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 50px max(24px, calc(50vw - var(--content) / 2)) 50px 24px; }
@media (min-width: 1600px) { .auth-form { justify-content: flex-start; padding-left: 72px; } }
.acard { width: 100%; max-width: 500px; padding: 36px 38px; }
.acard h2 { font: 700 30px var(--serif); color: #fff; } .acard .sub { font-size: 13px; color: #cfcfcf; margin-top: 8px; line-height: 20px; }
.acard .btn-gold, .acard .btn-steel { width: 100%; height: 52px; margin-top: 22px; }
.acard .or + .btn-steel { margin-top: 0; }
.narrow { display: flex; justify-content: center; padding: 56px 24px 80px; } .narrow .acard { max-width: 480px; }

/* ---------- help ---------- */
.how { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 34px; align-items: start; }
.toc { position: sticky; top: 96px; padding: 16px; }
.toc a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 6px; font-size: 13px; color: var(--soft); text-decoration: none; }
.toc a:hover { background: rgba(217,180,90,.12); color: var(--gold-hi); }
.toc a i { width: 22px; height: 22px; border-radius: 50%; border: 1px solid #777; font: 700 11px var(--sans); display: inline-flex; align-items: center; justify-content: center; font-style: normal; color: #bbb; flex: none; }
.toc .btn { width: 100%; margin-top: 14px; height: 44px; font-size: 12px; }
.h-sec { margin-bottom: 44px; scroll-margin-top: 96px; } .h-sec .h2 { font-size: 26px; margin: 8px 0 18px; }
.h-sec > p.intro { font-size: 14px; line-height: 22px; color: var(--muted); margin: -6px 0 18px; max-width: 720px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; } .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; } .grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.day { padding: 20px; } .day .n { font: italic 700 30px var(--serif); color: var(--gold); }
.day h3, .money h3 { font: 700 15px var(--serif); color: #fff; margin: 8px 0 6px; } .day p, .money p { font-size: 12px; line-height: 19px; color: #cfcfcf; }
.money { padding: 18px; display: flex; gap: 14px; } .money h3 { margin-top: 0; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; } .meta span { font-size: 10px; padding: 3px 8px; border-radius: 10px; background: #2a2a2a; border: 1px solid #555; color: #ccc; }
.meta span.g { border-color: var(--gold-line); color: var(--gold-hi); }
.ranks { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.rk2 { padding: 14px 10px; text-align: center; border-radius: 8px; background: linear-gradient(#4d4d4d, #404040); border: 1px solid var(--line-soft); }
.rk2 .medal { margin: 0 auto; width: 34px; height: 34px; }
.rk2 b { display: block; font: 700 13px var(--serif); color: #fff; margin-top: 8px; } .rk2 small { font-size: 10px; color: var(--muted); }
.rk2.hi { border-color: var(--gold-line); background: linear-gradient(#5a4a26, #3b321b); }
.faq details { border-bottom: 1px solid var(--line-soft); } .faq details:last-child { border-bottom: 0; }
.faq summary { padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font: 700 14px var(--serif); color: #fff; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font: 700 18px var(--sans); } .faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 16px; font-size: 13px; line-height: 21px; color: var(--soft); }

/* ---------- rankings / families ---------- */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.tabs { display: flex; gap: 6px; padding: 5px; background: #222; border: 1px solid #3a3a3a; border-radius: 8px; overflow-x: auto; max-width: 100%; }
.tabs a { padding: 9px 18px; border-radius: 5px; font-size: 12px; font-weight: 700; color: #bdbdbd; text-decoration: none; white-space: nowrap; }
.tabs a.on { background: linear-gradient(#f3d37a, #c99a2e 55%, #a47a1c); color: #2a1d02; }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 18px; align-items: end; margin-bottom: 22px; }
.pod { text-align: center; padding: 22px 16px 18px; position: relative; min-width: 0; }
.pod .place { position: absolute; top: 12px; left: 14px; }
.pod .av { width: 64px; height: 64px; margin: 0 auto 10px; }
.pod b { display: block; font: 700 18px var(--serif); color: #fff; overflow-wrap: anywhere; }
.pod small { color: var(--gold-text); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.pod .big { font: 700 20px var(--serif); color: #fff; margin-top: 10px; }
.pod.first { padding-top: 34px; border-color: var(--gold-line); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 0 0 1px rgba(217,180,90,.35), 0 12px 30px rgba(0,0,0,.5); }
.pod.first .av { width: 80px; height: 80px; }
.av { width: 34px; height: 34px; border-radius: 50%; flex: none; object-fit: cover; background: radial-gradient(#444, #1d1d1d); border: 2px solid var(--gold-lo); }
.tbl-wrap { overflow-x: auto; padding: 0; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold-text); padding: 12px 16px; background: #262626; border-bottom: 1px solid var(--gold-line); white-space: nowrap; }
.tbl td { padding: 12px 16px; font-size: 13px; border-bottom: 1px solid var(--line-soft); color: var(--text); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.who { display: flex; align-items: center; gap: 12px; } .who b { color: #fff; display: block; } .who small { color: var(--muted); font-size: 11px; }
.rankpill { display: inline-block; padding: 3px 9px; border-radius: 12px; font-size: 11px; font-weight: 700; background: #2a2a2a; border: 1px solid #555; color: #ddd; white-space: nowrap; }
.rankpill.top { border-color: var(--gold-line); color: var(--gold-hi); }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.fam { overflow: hidden; }
.fam .fam-top { height: 64px; position: relative; background: linear-gradient(135deg, #4a4a4a, #2c2c2c); border-bottom: 1px solid #444; }
.fam .emb-lg { position: absolute; left: 20px; bottom: -26px; width: 60px; height: 60px; border-radius: 12px; object-fit: cover; background: #2a2a2a; border: 2px solid var(--gold-line); box-shadow: 0 6px 14px rgba(0,0,0,.5); }
.fam .fam-body { padding: 36px 20px 18px; }
.fam h3 { font: 700 19px var(--serif); color: #fff; overflow-wrap: anywhere; } .fam .don { font-size: 12px; color: var(--gold-text); margin: 3px 0 14px; }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #6a6a6a; padding-top: 12px; }
.stats3 div { font-size: 10px; color: #b5b5b5; text-transform: uppercase; letter-spacing: 1px; } .stats3 b { display: block; font: 700 17px var(--serif); color: #fff; text-transform: none; letter-spacing: 0; }

/* ---------- forum (members only) ---------- */
.locked { padding: 44px 48px; display: flex; gap: 30px; align-items: center; border-color: var(--gold-line); }
.locked .medal { width: 96px; height: 96px; }
.locked .h2 { margin: 8px 0 10px; } .locked p { font-size: 14px; line-height: 22px; color: #d8d8d8; }
.locked .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.mini { padding: 20px; display: flex; gap: 14px; } .mini h3 { font: 700 15px var(--serif); color: #fff; margin-bottom: 5px; } .mini p { font-size: 12px; line-height: 18px; color: #cfcfcf; }

/* ---------- tablet ---------- */
@media (max-width: 1180px) {
    :root { --gutter: 32px; }
    .nav { gap: 20px; }
    :root { --indent: var(--gutter); }
    .hero .car { left: 34%; top: 420px; width: 240px; } .hero .cas { display: none; }
    .feat, .grid4 { grid-template-columns: repeat(2, 1fr); }
    .live-wrap { grid-template-columns: 1fr 1fr; } .live-wrap > :first-child { grid-column: 1 / -1; }
    .cols { grid-template-columns: 1fr; } .ranks { grid-template-columns: repeat(4, 1fr); }

    .cta-band .cas-up { display: none; }
}
/* ---------- phone ---------- */
@media (max-width: 860px) {
    :root { --gutter: 16px; }
    .site-top { height: 62px; gap: 10px; } .site-top .logo img { height: 34px; }
    .burger { display: flex; }
    .nav { display: none; position: absolute; left: 0; right: 0; top: 62px; flex-direction: column; gap: 0; padding: 8px 16px 14px; background: #4f4f4f; border-bottom: 1px solid #2a2a2a; box-shadow: 0 10px 20px rgba(0,0,0,.5); }
    .nav.is-open { display: flex; } .nav a { padding: 12px 4px; border-bottom: 1px solid #5f5f5f; } .nav a.on { border-bottom-color: #5f5f5f; color: var(--gold-hi); }
    .site-top .acts .btn-gold { display: none; } .site-top .btn { height: 40px; padding: 0 14px; font-size: 11px; }
    .hero { padding: 30px 16px 60px; }
    .hero-in { flex-direction: column; gap: 0; }
    .hero h1 { font-size: 36px; margin: 14px 0; } .hero .lead { font-size: 14px; line-height: 23px; }
    .hero .car { position: static; display: block; width: 210px; max-width: 100%; margin: 14px auto 2px; }
    .hero .ctas .btn { width: 100%; height: 52px; } .hero .ctas { gap: 10px; margin-top: 10px; }
    .proof { display: none; }
    .login-box { display: none; }
    .statbar { grid-template-columns: 1fr 1fr; margin-top: -18px; }
    .statbar > div { padding: 14px 16px; border-bottom: 1px solid #3c3c3c; } .statbar > div:nth-child(2n) { border-right: 0; } .statbar > div:nth-child(n+3) { border-bottom: 0; }
    .statbar .medal { display: none; } .statbar .v { font-size: 20px; } .statbar .v small { display: none; } .statbar .k { font-size: 10px; letter-spacing: 1px; }
    .sec { padding: 28px 16px; } .sec-head { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 18px; } .h2 { font-size: 24px; }
    .feat { grid-template-columns: 1fr 1fr; gap: 12px; } .fcard { flex-direction: column; gap: 10px; padding: 16px; } .fcard .medal { width: 44px; height: 44px; }
    .fcard h3 { font-size: 15px; margin-bottom: 4px; } .fcard p { font-size: 12px; line-height: 18px; }
    .live-wrap { grid-template-columns: 1fr; gap: 14px; } .list { padding: 14px 16px; }
    .steps { grid-template-columns: 1fr; gap: 22px; } .step { padding: 0; border-left: 0; }
    .cta-band { flex-direction: column; align-items: stretch; text-align: center; padding: 22px 18px; margin-bottom: 28px; } .cta-band h2 { font-size: 22px; } .cta-band .btn { width: 100%; }
    .foot { flex-direction: column; text-align: center; gap: 10px; padding: 22px 16px 30px; font-size: 11px; } .foot .logo { display: none; } .foot .links { gap: 18px; }
    .band { padding: 26px 16px 52px; } .band h1 { font-size: 30px; } .band p { font-size: 13px; line-height: 21px; } .band .deco { display: none; } .crumbs { display: none; }
    .wrap { padding: 20px 16px 30px; }
    .auth { grid-template-columns: 1fr; min-height: 0; }
    .auth-vis { padding: 26px 16px 10px; } .auth-vis h1 { font-size: 30px; } .auth-vis .lead { font-size: 13px; line-height: 21px; }
    .auth-vis .car { width: 182px; margin: 6px auto -6px; } .auth-vis .cas, .auth-vis .quote, .auth-vis .perks { display: none; }
    .auth-form { padding: 16px 16px 30px; } .acard { padding: 20px 18px; } .acard h2 { font-size: 24px; } .row2 { grid-template-columns: 1fr; gap: 0; }
    .narrow { padding: 20px 16px 30px; }
    .how { grid-template-columns: 1fr; } .toc { position: static; } .grid4, .grid3, .grid2 { grid-template-columns: 1fr; } .ranks { grid-template-columns: repeat(3, 1fr); }
    .podium { grid-template-columns: 1fr; } .pod.first { order: -1; }
    .tbl th, .tbl td { padding: 10px; } .tbl .hide-sm { display: none; } .sm-only { display: inline; }
    .locked { flex-direction: column; text-align: center; padding: 24px 18px; } .locked .medal { width: 72px; height: 72px; } .locked .ctas .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* ---------- rules (templates/info/_rules_list.php uses the game's class names) ---------- */
.rules b { font: 700 16px var(--serif); color: #fff; }
.rules .cc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 34px; }
.rules .cc-iconlist { list-style: none; margin: 10px 0 0; padding: 0; }
.rules .cc-iconlist li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; border-bottom: 1px dashed #666; font-size: 13px; color: var(--soft); }
.rules .cc-iconlist li img { flex: none; margin-top: 2px; }
.rules .cc-hint { font-size: 12px; line-height: 20px; color: var(--muted); margin-top: 8px; }
.rules .cc-alert { display: flex; gap: 10px; align-items: center; margin-top: 18px; padding: 12px 14px; border-radius: 6px; background: rgba(217,180,90,.08); border: 1px solid rgba(217,180,90,.35); color: #e8dcc0; font-size: 13px; }
@media (max-width: 860px) { .rules .cc-grid { grid-template-columns: 1fr; } .rules { padding: 18px !important; } }
