/* Public site. Same palette as the app, the renewal page and the back office:
   it is one product, and a differently-styled marketing page reads as a
   different company. */
:root{--bg:#0b1020;--card:#141b30;--line:#26314e;--text:#edf1ff;--dim:#94a2c4;
      --ok:#7ee2ad;--bad:#ff8f9d;--accent:#4a9fd8}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);line-height:1.65;
     font-family:-apple-system,"Segoe UI","Microsoft YaHei",sans-serif;font-size:15px}
a{color:var(--accent)}
img,video{max-width:100%;height:auto;display:block}

/* Bar */
nav{position:sticky;top:0;z-index:10;background:rgba(11,16,32,.92);
    backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
nav .inner{max-width:1000px;margin:0 auto;padding:12px 20px;display:flex;
           align-items:center;gap:20px;flex-wrap:wrap}
/* The badge sits in the brand position because this is 52game's own site, not
   a third party's mark bolted onto someone else's page: the badge is the maker,
   the wordmark next to it is the product. */
nav .brand{font-weight:700;font-size:17px;margin-right:auto;
           display:flex;align-items:center;gap:9px}
nav .brand img{display:block;border-radius:50%}
nav a{color:var(--dim);text-decoration:none;font-size:14px}
nav a:hover{color:var(--text)}

section{max-width:1000px;margin:0 auto;padding:56px 20px;scroll-margin-top:64px}
section+section{border-top:1px solid var(--line)}
h1{font-size:34px;line-height:1.25;margin:0 0 12px}
h2{font-size:22px;margin:0 0 8px}
h3{font-size:15px;margin:0 0 6px}
.lede{color:var(--dim);font-size:16px;max-width:60ch}
.sub{color:var(--dim);font-size:14px;margin:0 0 22px}

button,.btn{font:inherit;cursor:pointer;border-radius:9px;border:1px solid #364365;
            background:#1d2947;color:var(--text);padding:10px 18px;
            text-decoration:none;display:inline-block}
button:hover,.btn:hover{background:#26355c}
.btn.primary,button.primary{border-color:#2f7ba6;background:#1b4c6b}
button:disabled{opacity:.45;cursor:not-allowed}

.hero{display:grid;grid-template-columns:1fr 1fr;gap:36px;align-items:center}
.hero .shot{background:var(--card);border:1px solid var(--line);border-radius:14px;
            padding:10px}
.cta{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}
.cta .note{color:var(--dim);font-size:13px;width:100%;margin-top:4px}

/* A/B player. The switch is the point of the page, so it is large, always
   visible under the video, and shows which side is live without being read. */
.player{background:var(--card);border:1px solid var(--line);border-radius:14px;
        padding:14px;margin-top:18px}
.player video{border-radius:10px;background:#000;width:100%}
.abbar{display:flex;align-items:center;gap:14px;margin-top:14px;flex-wrap:wrap}
.ab{display:inline-flex;border:1px solid var(--line);border-radius:999px;
    overflow:hidden}
.ab button{border:0;border-radius:0;background:transparent;color:var(--dim);
           padding:9px 22px;font-size:15px}
.ab button.on{background:#1b4c6b;color:var(--text);font-weight:600}
.abbar .state{color:var(--dim);font-size:13px}
.missing{color:var(--dim);text-align:center;padding:48px 20px;
         border:1px dashed var(--line);border-radius:12px}

.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px}
.card{background:var(--card);border:1px solid var(--line);border-radius:12px;
      padding:16px}
.card p{color:var(--dim);font-size:14px;margin:0}

.scroll{overflow-x:auto}
table{width:100%;border-collapse:collapse;font-size:14px}
th,td{padding:11px 12px;text-align:left;border-bottom:1px solid var(--line);
      vertical-align:top}
th{color:var(--dim);font-weight:500;font-size:13px;white-space:nowrap}
td.model{font-weight:600;white-space:nowrap}
.tag{padding:2px 8px;border-radius:999px;font-size:12px;border:1px solid var(--line);
     color:var(--dim);white-space:nowrap}
.tag.warn{color:#ffcf8f;border-color:#7d6234}

.faq{border-bottom:1px solid var(--line);padding:14px 0}
.faq:last-child{border-bottom:0}
.faq h3{color:var(--text)}
.faq p{color:var(--dim);font-size:14px;margin:0}

.price{display:flex;gap:12px;flex-wrap:wrap;margin-top:8px}
.price .p{background:var(--card);border:1px solid var(--line);border-radius:12px;
          padding:14px 20px;min-width:130px}
.price .p b{font-size:22px;display:block}
.price .p span{color:var(--dim);font-size:13px}

ul.plain{margin:8px 0;padding-left:20px;color:var(--dim);font-size:14px}
ul.plain li{margin:5px 0}

/* Article body. Generated by the Markdown renderer, so it is styled by element
   rather than by class -- there are no classes to hook. */
.post{max-width:62ch;margin-top:20px}
.post h2{font-size:19px;margin:28px 0 8px}
.post h3{font-size:16px;margin:22px 0 6px}
.post p{margin:12px 0}
.post ul,.post ol{padding-left:22px;margin:12px 0}
.post li{margin:6px 0}
.post code{font-family:ui-monospace,Consolas,monospace;font-size:13px}
.post pre{background:#0d1428;border:1px solid var(--line);border-radius:10px;
          padding:13px;overflow-x:auto}
.post pre code{background:none;border:0;padding:0;user-select:auto}
.post blockquote{border-left:3px solid var(--accent);margin:14px 0;padding-left:14px;
                 color:var(--dim)}
.post img{border-radius:10px;margin:14px 0}
.post table{margin:14px 0}
.post hr{border:0;border-top:1px solid var(--line);margin:26px 0}
.card h3 a{color:var(--text);text-decoration:none}
.card h3 a:hover{color:var(--accent)}

footer{border-top:1px solid var(--line);color:var(--dim);font-size:13px}
footer .inner{max-width:1000px;margin:0 auto;padding:26px 20px;display:flex;
              gap:18px;flex-wrap:wrap}
footer .inner span{margin-right:auto}
footer .made{display:flex;align-items:center;gap:9px}
footer .made img{display:block;border-radius:50%}
footer .made a{color:var(--text);text-decoration:none}
footer .made a:hover{color:var(--accent)}
/* Required on the page, not competing with it: the filing number is a legal
   marker, and nobody visits looking for it. */
footer .icp{color:var(--dim);font-size:12px}
code{font-family:ui-monospace,Consolas,monospace;color:#b8c7f4;background:#0d1428;
     border:1px solid var(--line);border-radius:6px;padding:2px 7px;user-select:all}

/* The checksum under a release note. Small and dim: it matters to the person
   who came looking for it and is noise to everyone else. Wraps rather than
   widening the table -- 64 hex characters would push the download button off
   a phone screen. */
.hash{margin-top:6px;font-size:12px;color:var(--dim)}
.hash code{padding:1px 5px;font-size:11px;word-break:break-all;user-select:all}

@media (max-width:760px){
  .hero{grid-template-columns:1fr}
  h1{font-size:27px}
  section{padding:40px 18px}
}
