/* Shared styles for the sugarpow.com guide and info pages (the game itself is index.html and has its own styles) */
@font-face{font-family:'Fredoka';font-style:normal;font-weight:500 700;font-display:swap;src:url(/fredoka.woff2) format('woff2')}
:root{--bg1:#1d0645;--bg2:#561490;--bg3:#a3247f;--card:#fff;--ink:#3b1a52;--muted:#6f5a80;--accent:#d81b7a;--soft:#f6eefb;--line:#eadcf3;
  --head:'Fredoka','Arial Rounded MT Bold','Trebuchet MS',system-ui,sans-serif}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font:17px/1.65 system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;color:var(--ink);
  background:linear-gradient(var(--bg1),var(--bg2) 55%,var(--bg3)) fixed;background-color:var(--bg1);min-height:100vh}
a{color:var(--accent)}
img{max-width:100%;height:auto}

/* header */
.site-head{max-width:880px;margin:0 auto;padding:16px 16px 6px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.brand{font:700 26px/1 var(--head);color:#fff;text-decoration:none;letter-spacing:.01em;display:flex;align-items:center;gap:10px}
.brand img{width:36px;height:36px;border-radius:9px}
.brand b{color:#ffd000;font-weight:700}
.site-nav{display:flex;gap:4px;flex-wrap:wrap}
.site-nav a{color:#ffe3f7;text-decoration:none;font:600 16px var(--head);padding:6px 10px;border-radius:999px}
.site-nav a:hover,.site-nav a[aria-current]{background:rgba(255,255,255,.14);color:#fff}
.site-nav a.play{background:linear-gradient(#ff5ca8,#d81b7a);color:#fff;box-shadow:0 3px 0 #8e0f50}

/* content card */
main{max-width:880px;margin:10px auto 0;padding:0 16px}
.card{background:var(--card);border-radius:22px;padding:26px 24px 30px;box-shadow:0 18px 50px rgba(0,0,0,.35)}
@media (min-width:700px){.card{padding:34px 40px 40px}}
.crumbs{font-size:14px;color:var(--muted);margin:0 0 10px}
.crumbs a{color:var(--muted)}
h1,h2,h3{font-family:var(--head);font-weight:700;line-height:1.2}
h1{margin:0 0 10px;font-size:34px;color:var(--accent)}
h2{font-size:24px;margin:34px 0 8px;color:#5a1a86}
h3{font-size:19px;margin:22px 0 4px;color:var(--ink)}
.lead{font-size:19px;color:#4d2f63;margin:0 0 18px}
.meta{color:var(--muted);margin:0 0 22px;font-size:15px}
ul,ol{padding-left:22px}
li{margin:4px 0}
pre{white-space:pre-wrap;font-size:13px;line-height:1.45;background:var(--soft);border-radius:12px;padding:14px;overflow:auto}
kbd{font:600 13px var(--head);display:inline-block;min-width:24px;text-align:center;padding:1px 7px;border-radius:6px;background:var(--soft);border:1px solid #d7c3e6;border-bottom-width:3px}

/* call to action */
.cta{display:inline-block;font:700 20px var(--head);color:#fff;text-decoration:none;padding:12px 30px;border-radius:999px;
  background:linear-gradient(#5ee88e,#1fb85a);box-shadow:0 4px 0 #0d7a37,0 10px 24px rgba(31,184,90,.35);margin:6px 0 8px}
.cta:hover{filter:brightness(1.06)}
.cta-row{margin:26px 0 4px;text-align:center}

/* boxes */
.note{background:var(--soft);border-left:5px solid var(--accent);border-radius:12px;padding:12px 16px;margin:16px 0}
.note p{margin:4px 0}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px;margin:16px 0}
.grid.two{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}
.tile{display:block;background:var(--soft);border-radius:16px;padding:16px 18px;text-decoration:none;color:var(--ink);border:2px solid transparent}
a.tile:hover{border-color:#f3a6cf}
.tile b{display:block;font:700 19px var(--head);color:var(--accent);margin-bottom:2px}
.tile span{font-size:15px;color:var(--muted);line-height:1.5}

/* tables */
.table-wrap{overflow-x:auto;margin:12px 0 8px;border-radius:12px;border:1px solid var(--line)}
table{border-collapse:collapse;width:100%;font-size:15px;line-height:1.45}
th,td{padding:9px 11px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line)}
th{background:var(--soft);font:600 15px var(--head);color:#5a1a86;white-space:nowrap}
tr:last-child td{border-bottom:0}
td.num{text-align:center;white-space:nowrap}
.sub{color:var(--muted);font-size:14px}
.tag{display:inline-block;font:600 12px var(--head);padding:1px 8px;border-radius:999px;margin-left:4px;vertical-align:1px;white-space:nowrap}
.tag.boss{background:#ffe0ea;color:#b0003a}
.tag.new{background:#e2f6ff;color:#0a5a8a}
table.levels td:nth-child(2){min-width:170px}
table.levels td:nth-child(4){min-width:150px}

/* faq */
details{border-bottom:1px solid var(--line);padding:10px 0}
summary{cursor:pointer;font:600 18px var(--head);color:var(--ink)}
details p{margin:8px 0 4px}

/* footer */
.site-foot{max-width:880px;margin:0 auto;padding:26px 16px 40px;color:#e9d3f5;font-size:15px;text-align:center}
.site-foot nav{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 16px;margin-bottom:10px}
.site-foot a{color:#ffe3f7;text-decoration:none}
.site-foot a:hover{text-decoration:underline}
.site-foot p{margin:4px 0;opacity:.8}
