/* Crackle Blocks site: the game's dark board colours, tiles of different sizes ("bento"). */
:root {
  --bg: #0f111a; --bg2: #141724; --card: #1b1e2b; --card2: #22263a; --line: #2c3044;
  --text: #f3f4f8; --muted: #a3a7b7;
  --green: #5CBA64; --amber: #E8A53C; --sky: #7FC3E8; --violet: #B98FE6; --red: #F28E86; --orange: #FA7B4C;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.55;
       font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.eyebrow { font: 600 12px/1 Consolas, "SF Mono", monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.tag { font: 600 11px/1 Consolas, "SF Mono", monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* top bar */
.top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.nav { display: flex; gap: 28px; font: 600 13px Consolas, "SF Mono", monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.nav a { white-space: nowrap; }
.nav a:hover { color: var(--text); }
.nav a.on { color: var(--text); border-bottom: 2px solid var(--green); padding-bottom: 6px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font: 600 12px Consolas, "SF Mono", monospace; }
.lang button { all: unset; cursor: pointer; padding: 7px 10px; color: var(--muted); }
.lang button:hover { color: var(--text); }
.lang button.on { background: var(--green); color: #0b1a0d; }

/* hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 40px 0 64px; }
h1 { font-size: 64px; line-height: 1.02; margin: 16px 0 20px; letter-spacing: -.02em; }
h1 em { font-style: normal; color: var(--orange); }
.lead { font-size: 19px; color: var(--muted); max-width: 560px; margin: 0; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.store { display: inline-flex; align-items: center; gap: 12px; background: #000; border: 1px solid #444; border-radius: 12px; padding: 9px 18px; }
.store b { display: block; font-size: 17px; line-height: 1.1; }
.store small { display: block; font-size: 11px; color: #bbb; text-transform: uppercase; }
.store.soon { opacity: .55; }
.store:not(.soon):hover { border-color: var(--green); }
.shot { border-radius: 24px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.shot img { display: block; width: 100%; }

/* page header on the sub-pages */
.ph { padding: 30px 0 34px; }
.ph h1 { font-size: 54px; margin: 12px 0 10px; }

/* tiles */
.t { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 24px; position: relative; overflow: hidden; }
.t h3 { margin: 12px 0 8px; font-size: 21px; }
.t p { margin: 0; color: var(--muted); font-size: 15px; }
.t .dot { width: 40px; height: 40px; border-radius: 12px; }
.t .num { width: 40px; height: 40px; border-radius: 12px; background: var(--card2); display: grid; place-items: center; font: 700 16px Consolas, monospace; color: var(--amber); }
.t .go { display: block; margin-top: 14px; color: var(--green); font-weight: 600; font-size: 14px; }
.t .go:hover { text-decoration: underline; }
.t.glow { background: linear-gradient(160deg, #1f3324, #1b1e2b 65%); }
a.t:hover { border-color: #3d4360; }
.t .q { font: 700 46px/1 "Segoe UI", sans-serif; color: #3a3f55; }
.tile-img { width: 46px; height: 46px; display: block; }

.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(190px, auto); gap: 18px; }
.bento .big { grid-column: span 2; grid-row: span 2; min-height: 398px; }
.bento .big .board { position: absolute; right: -30px; bottom: -30px; width: 300px; border-radius: 18px; }
.bento .big p { max-width: 300px; }
.bento .wide { grid-column: span 2; }
.g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sec { margin-top: 64px; }
.sec h2 { font-size: 32px; margin: 10px 0 22px; }

/* features: sharing and colours */
.feat .share { min-height: 420px; }
.feat .share p { max-width: 250px; }
.bubble { position: absolute; right: 30px; bottom: 30px; width: 220px; background: #2b5278; border-radius: 18px 18px 4px 18px; padding: 6px; box-shadow: 0 18px 40px rgba(0,0,0,.45); transform: rotate(-3deg); }
.bubble img { display: block; width: 100%; border-radius: 13px; }
.bubble span { display: block; padding: 8px 8px 4px; font-weight: 600; font-size: 15px; }
.swatches { display: block; width: 260px; max-width: 100%; margin-top: 18px; }
.swatches.small { width: 150px; margin: 0 0 4px; }

/* tools */
.bento .full { grid-column: 1 / -1; }
.tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 16px 0 6px; }
.tool { display: flex; gap: 14px; align-items: flex-start; }
.tool h3 { margin: 4px 0 4px; font-size: 18px; }
.tool p { font-size: 14px; }
.ti { flex: none; width: 58px; height: 58px; border-radius: 16px; background: var(--card2); display: grid; place-items: center; }
.ti img { width: 42px; height: 42px; }
.milestone { margin-top: 14px !important; color: var(--amber) !important; font-weight: 600; }

/* bosses */
.boss-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 18px; }
.boss-grid .feat { grid-row: span 2; }
.feat .pic { border-radius: 16px; background: var(--bg2); padding: 28px; margin-bottom: 18px; display: grid; place-items: center; }
.feat .pic img { width: 100%; max-width: 440px; }

/* help */
.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.help-grid .contact { grid-row: span 2; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 12px; font-weight: 600; font-size: 15px; margin-top: 18px; background: var(--green); color: #0b1a0d; }
.btn:hover { filter: brightness(1.08); }
.t.faq h3 { font-size: 18px; margin-top: 0; }

/* privacy policy: long text, so a narrower column on a card */
.policy { max-width: 820px; margin: 30px auto 0; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 36px 44px; }
.policy h1 { font-size: 38px; margin: 0 0 6px; }
.policy h2 { font-size: 21px; margin: 34px 0 10px; color: var(--text); }
.policy p, .policy li, .policy td { color: #c9ccd8; font-size: 15.5px; }
.policy .meta { color: var(--muted); margin-top: 0; font-size: 14px; }
.policy a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
.policy table { border-collapse: collapse; width: 100%; margin: 6px 0 12px; }
.policy th { text-align: left; font: 600 12px Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); padding: 10px; border-bottom: 1px solid var(--line); }
.policy td { vertical-align: top; padding: 10px; border-bottom: 1px solid var(--line); }
.policy td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }
.policy section:not([hidden]) + section:not([hidden]) { margin-top: 44px; padding-top: 44px; border-top: 1px solid var(--line); }
.policy .note { color: var(--amber); font-size: 14px; margin: 0 0 18px; }
.policy .note:empty { display: none; }
[hidden] { display: none !important; }

footer { border-top: 1px solid var(--line); margin-top: 80px; padding: 28px 0; color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
footer a:hover { color: var(--text); }

/* phones and narrow windows */
@media (max-width: 960px) {
  .top { flex-wrap: wrap; }
  .nav { order: 3; width: 100%; overflow-x: auto; gap: 22px; padding-bottom: 4px; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 20px; }
  h1 { font-size: 46px; }
  .ph h1 { font-size: 42px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tools { grid-template-columns: 1fr 1fr; }
  .g3, .help-grid { grid-template-columns: 1fr 1fr; }
  .boss-grid { grid-template-columns: 1fr 1fr; }
  .boss-grid .feat { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .brand span { display: none; }
  h1 { font-size: 38px; }
  .lead { font-size: 17px; }
  .bento, .g3, .help-grid, .boss-grid, .tools { grid-template-columns: 1fr; }
  .bento .big, .bento .wide, .boss-grid .feat { grid-column: auto; }
  .bento .big { min-height: 0; }
  .bento .big .board { position: static; width: 100%; margin-top: 20px; border-radius: 14px; }
  .feat .share { min-height: 0; }
  .feat .share p { max-width: none; }
  .bubble { position: static; width: 82%; margin: 22px auto 4px; }
  .bento .big p { max-width: none; }
  .help-grid .contact { grid-row: auto; }
  .policy { padding: 24px 18px; border-radius: 16px; }
  .policy h1 { font-size: 30px; }
  .policy table, .policy tbody, .policy tr, .policy td { display: block; }
  .policy tr:first-child { display: none; }
  .policy tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .policy td { padding: 3px 0; border: 0; }
}
