/* Smash Box support site.
   No frameworks, no fonts to fetch, no build step — it is served exactly as it
   sits in the repository, which is the whole point of hosting it on Pages.
   The palette is the game's Classic theme; the box colours are its scoring
   colours, so a swatch on the page means what it means in the game. */
:root {
  --bg: #1E110A;
  --bg-soft: #2A1910;
  --card: rgba(255, 236, 214, 0.045);
  --ink: #F3E7D8;
  --ink-dim: #B49B86;
  --tint: #F7E2C0;
  --line: rgba(243, 231, 216, 0.14);
  --green: #5FBF52;
  --orange: #E8912F;
  --blue: #3E7FD4;
  --red: #CE3B3B;
  --grey: #C7CCC2;
  --measure: 42rem;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(120% 70rem at 50% 0%, #4A2F1B 0%, var(--bg) 62%) no-repeat, var(--bg);
  color: var(--ink);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
        "Hiragino Sans", "PingFang SC", "Noto Sans CJK JP", sans-serif;
}
img { max-width: 100%; height: auto; display: block; }

/* Wide frame for pictures; text inside it keeps a readable line length. */
.wrap { max-width: 64rem; margin: 0 auto; padding: 1.5rem 1rem 4rem; }
.wrap > h1, .wrap > h2, .wrap > h3, .wrap > p, .wrap > ul, .wrap > table,
.wrap > hr, .wrap > nav, .wrap > footer { max-width: var(--measure); }

header.site {
  display: flex; align-items: center; gap: .75rem;
  margin-bottom: 3rem;
}
header.site .icon { width: 44px; height: 44px; border-radius: 22.5%; box-shadow: 0 2px 10px rgba(0,0,0,.45); }
header.site a.wordmark {
  color: var(--tint); font-weight: 800; letter-spacing: .06em;
  text-decoration: none; font-size: 1.05rem;
}
header.site .store {
  margin-left: auto; font-size: .85rem; font-weight: 700; text-decoration: none;
  color: var(--tint); border: 1px solid var(--line); border-radius: 999px; padding: .4rem .95rem;
}
header.site .store:hover { border-color: var(--tint); }

h1 { font-size: 3rem; line-height: 1.05; letter-spacing: -.02em; margin: 0 0 .7rem; color: var(--tint); }
h2 { font-size: 1.15rem; letter-spacing: .07em; text-transform: uppercase; margin: 3rem 0 .8rem; color: var(--tint); }
/* Uppercasing a CJK heading does nothing to the CJK and turns an embedded
   Latin word into a shout — "iCloud" came out as "ICLOUD". */
html[lang="ja"] h2, html[lang="zh-Hans"] h2 { text-transform: none; letter-spacing: .02em; }
h3 { font-size: 1.05rem; margin: 0 0 .35rem; color: var(--tint); }
p, li { color: var(--ink); }
.lede { font-size: 1.35rem; line-height: 1.4; color: var(--ink-dim); margin-top: 0; }
a { color: var(--tint); }
ul { padding-left: 1.15rem; }
li { margin: .35rem 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }
.meta { color: var(--ink-dim); font-size: .9rem; }
.cta {
  display: inline-block; margin: 1rem .6rem 0 0; padding: .75rem 1.6rem;
  background: var(--tint); color: #221309; border-radius: 999px;
  font-weight: 700; text-decoration: none;
}
.cta:hover { background: #fff3df; }
.cta.ghost { background: transparent; color: var(--tint); border: 1px solid var(--line); }
.cta.ghost:hover { border-color: var(--tint); }

/* A landscape iPhone, drawn with CSS rather than a mockup image: dark bezel,
   rounded glass, a warm glow underneath from the game's own backdrop. */
.shot {
  margin: 2.5rem 0 0;
  border-radius: 28px; padding: 9px; background: #0B0604;
  box-shadow: 0 0 0 1px rgba(255,255,255,.07), 0 30px 80px -20px rgba(0,0,0,.8),
              0 10px 60px -30px rgba(232,145,47,.35);
}
.shot img { border-radius: 20px; width: 100%; }
.shot.small { max-width: var(--measure); margin: 1.4rem 0 .4rem; border-radius: 20px; padding: 6px; }
.shot.small img { border-radius: 15px; }

/* Three steps on the home page. The numeral is a scoring box. */
.steps { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); margin: 1rem 0 0; padding: 0; list-style: none; }
.steps li {
  margin: 0; padding: 1.25rem 1.2rem 1.1rem; background: var(--card);
  border: 1px solid var(--line); border-radius: 16px;
}
.steps .n {
  display: inline-grid; place-items: center; width: 2rem; height: 2rem; margin-bottom: .75rem;
  border-radius: 7px; font-weight: 800; color: #fff; transform: rotate(-6deg);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.35), inset 0 -3px 0 rgba(0,0,0,.2);
}
.steps li:nth-child(1) .n { background: var(--green); }
.steps li:nth-child(2) .n { background: var(--orange); transform: rotate(5deg); }
.steps li:nth-child(3) .n { background: var(--red); transform: rotate(-3deg); }
.steps p { margin: 0; color: var(--ink-dim); font-size: .95rem; line-height: 1.55; }
.more { margin-top: 1.2rem; }

/* Feature list as a grid of small cards. */
.wrap > ul.features {
  max-width: none; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  padding: 0; list-style: none;
}
ul.features li {
  margin: 0; padding: .9rem 1rem .9rem 2.6rem; position: relative; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; line-height: 1.45;
}
ul.features li::before {
  content: ""; position: absolute; left: 1rem; top: 1.1rem; width: .8rem; height: .8rem;
  border-radius: 3px; background: var(--green); transform: rotate(-8deg);
}
ul.features li:nth-child(6n+2)::before { background: var(--orange); transform: rotate(6deg); }
ul.features li:nth-child(6n+3)::before { background: var(--blue); }
ul.features li:nth-child(6n+4)::before { background: var(--red); transform: rotate(10deg); }
ul.features li:nth-child(6n+5)::before { background: var(--grey); }
ul.features li:nth-child(6n+6)::before { background: var(--orange); transform: rotate(-4deg); }

/* Screenshot strip: swipe on a phone, two and a bit across on a desktop. */
.wrap > ul.gallery { max-width: none; }
.gallery {
  display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: .5rem 0 1.25rem; margin: 0; list-style: none; scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.gallery li { flex: 0 0 min(86%, 30rem); scroll-snap-align: start; margin: 0; }
.gallery img { border-radius: 14px; border: 1px solid var(--line); }

table { border-collapse: collapse; width: 100%; margin: .8rem 0; }
th, td { text-align: left; padding: .5rem .4rem; border-bottom: 1px solid var(--line); }
th { color: var(--ink-dim); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
td.pts { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.swatch { display: inline-block; width: .85rem; height: .85rem; border-radius: 3px; margin-right: .5rem; vertical-align: -1px; }
.langs { margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .9rem; }
.langs a { margin-right: .9rem; display: inline-block; color: var(--ink-dim); }
.langs a[aria-current="page"] { color: var(--tint); font-weight: 700; }
footer.site { margin-top: 2rem; color: var(--ink-dim); font-size: .85rem; }
footer.site a { color: var(--ink-dim); }

@media (max-width: 48rem) {
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 30rem) {
  h1 { font-size: 2.2rem; }
  .lede { font-size: 1.15rem; }
  header.site { margin-bottom: 2rem; }
  .shot { border-radius: 18px; padding: 5px; }
  .shot img { border-radius: 14px; }
  .cta { padding: .7rem 1.3rem; }
}
