/* Shared look for the content pages (levels, FAQ, updates) and the section under the game on the home page.
   Everything is scoped to .page so it never touches the game's own styles. */
.page { --card: #170d26; --line: rgba(255,255,255,0.09); --text: #ece8f5; --muted: #a99fbf;
  --gold: #ffe36e; --cyan: #7ef7ff; --red: #ff5f6d; --pink: #ff5fd2; --green: #7dff8a; --orange: #ffb03c;
  box-sizing: border-box; max-width: 880px; margin: 0 auto; padding: 0 16px 56px; color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, sans-serif; -webkit-user-select: text; user-select: text; }
.page *, .page *::before, .page *::after { box-sizing: border-box; }
.page a { color: var(--cyan); }
.page .bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; }
.page .pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; text-decoration: none;
  font-weight: 700; font-size: 14px; color: var(--text); background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.16); }
.page .pill:hover { background: rgba(255,255,255,0.14); }
.page .logo { font: 900 15px system-ui, sans-serif; letter-spacing: 0.02em; color: #fff; text-decoration: none; white-space: nowrap; }
.page .logo b { color: var(--gold); }
.page .head { padding: 26px 0 6px; }
.page h1 { margin: 0; font: 900 clamp(30px, 6.5vw, 48px)/1.05 system-ui, sans-serif; letter-spacing: -0.01em; }
.page h1 b { color: var(--gold); }
.page .lead { margin: 12px 0 0; color: var(--muted); font-size: 17.5px; max-width: 640px; }
.page section { margin-top: 44px; }
.page .kicker { margin: 0; font: 800 12px system-ui, sans-serif; letter-spacing: 0.16em; color: var(--muted); text-transform: uppercase; }
.page h2 { margin: 4px 0 16px; font: 900 clamp(24px, 5vw, 32px)/1.1 system-ui, sans-serif; }
.page h3 { margin: 0 0 4px; font: 800 17px system-ui, sans-serif; }
.page .grid { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); }
.page .grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 720px) { .page .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .page .grid.two { grid-template-columns: 1fr; } }
@media (max-width: 400px) { .page .grid { grid-template-columns: 1fr; } }
.page .card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.page .card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.page .card .em { font-size: 26px; line-height: 1; display: block; margin-bottom: 10px; }
.page .chip { display: inline-block; margin-top: 10px; padding: 3px 10px; border-radius: 999px; font: 800 12px system-ui, sans-serif;
  background: rgba(255,255,255,0.08); color: var(--text); }
.page .cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 13px 26px; border-radius: 14px;
  background: var(--gold); color: #1a0f2a; font-weight: 900; font-size: 17px; text-decoration: none;
  box-shadow: 0 6px 28px rgba(255,227,110,0.35); }
.page .cta:hover { filter: brightness(1.07); }
.page .more { display: inline-block; margin-top: 14px; font-weight: 700; }

/* level rows */
.page .lvls { display: grid; gap: 10px; }
.page .lvl { display: grid; grid-template-columns: 52px 1fr; gap: 4px 14px; align-items: start; }
.page .lvl .no { grid-row: span 3; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  font: 900 22px system-ui, sans-serif; color: #1a0f2a; }
.page .lvl .no.w0 { background: linear-gradient(#a08ed0, #7a2230); color: #fff; }
.page .lvl .no.w1 { background: linear-gradient(#c9cfdf, #2a3558); color: #fff; }
.page .lvl .no.w2 { background: linear-gradient(#ffd27a, #ff5a2a); }
.page .lvl h3 { margin: 2px 0 0; }
.page .lvl .tw { color: var(--gold); font-weight: 700; font-size: 14px; }
.page .lvl ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: 14.5px; }
.page .lvl ul li { margin: 2px 0; }
.page .lvl .tags { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; }
.page .lvl .tags .chip { margin-top: 6px; }

/* home: compact level list */
.page .lvlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 560px) { .page .lvlist { grid-template-columns: 1fr; } }
.page .lvlist li { display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; align-items: center; padding: 8px 12px;
    background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.page .lvlist .no { grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-weight: 900; color: #fff; }
.page .lvlist .no.w0 { background: linear-gradient(#a08ed0, #7a2230); } .page .lvlist .no.w1 { background: linear-gradient(#c9cfdf, #2a3558); }
.page .lvlist .no.w2 { background: linear-gradient(#ffd27a, #ff5a2a); color: #1a0f2a; }
.page .lvlist span:last-child { color: var(--muted); font-size: 13.5px; }

/* FAQ */
.page details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 16px; margin: 0 0 10px; }
.page summary { cursor: pointer; padding: 14px 0; font-weight: 800; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.page summary::-webkit-details-marker { display: none; }
.page summary::after { content: '+'; color: var(--gold); font-weight: 900; font-size: 20px; line-height: 1; }
.page details[open] summary::after { content: '–'; }
.page details p { margin: 0 0 14px; color: var(--muted); }

/* updates */
.page .log { position: relative; padding-left: 26px; }
.page .log::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.page .entry { position: relative; margin-bottom: 18px; }
.page .entry::before { content: ''; position: absolute; left: -25px; top: 20px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 12px rgba(255,227,110,0.6); }
.page .entry .tag { color: var(--gold); font: 800 13px system-ui, sans-serif; letter-spacing: 0.06em; }
.page .entry h3 { margin: 2px 0 8px; }
.page .entry ul { margin: 0; padding-left: 18px; color: var(--muted); }
.page .entry li { margin: 4px 0; }
.page .entry li b { color: var(--text); }

.page .end { margin-top: 48px; text-align: center; padding: 30px 16px; border-radius: 22px; border: 1px solid var(--line);
  background: radial-gradient(ellipse at 50% 120%, rgba(255,90,60,0.35), transparent 70%), var(--card); }
.page .end h2 { margin: 0; }
.page .foot { margin-top: 32px; text-align: center; color: var(--muted); font-size: 14px; line-height: 2; }
.page .foot a { color: var(--muted); margin: 0 6px; }
