/* "What Luderra is" on Home: the platform's parts as a grid of tiles of different sizes (play, create, host,
   mod, together, earn, everywhere), so a visitor sees at a glance that it is more than one game.
   Also the code card: a short Luau sketch, shown where a mod is talked about. */
.pillars { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.pillar {
  position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; justify-content: end;
  min-height: 300px; padding: 26px; border-radius: var(--radius); border: var(--border); background: var(--surface);
}
.pillar-wide { grid-column: span 2; min-height: 380px; }
.pillar > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s ease; }
.pillar:has(> img)::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 14, 20, 0.05) 20%, rgba(11, 14, 20, 0.92) 100%); }
.pillar:hover > img { transform: scale(1.03); }
/* (a busy picture, like the editor's: dark on the text's side only, the picture clear on the other) */
.pillar-side > img { object-position: right center; }
.pillar-side:has(> img)::after { background: linear-gradient(90deg, rgba(11, 14, 20, 0.96) 0%, rgba(11, 14, 20, 0.85) 38%, transparent 72%); }
.pillar-side p { max-width: 36ch; }
.pillar h3 { font-size: clamp(1.5rem, 2.4vw, 2.2rem); margin: 10px 0 8px; }
.pillar p { color: var(--muted); margin: 0; max-width: 48ch; }
.pillar:has(> img) p { color: var(--text); }
.pillar .tag { align-self: start; background: rgba(11, 14, 20, 0.75); }
.pillar a { color: var(--link); font-weight: 700; margin-top: 12px; align-self: start; }
.pillar .code { margin-bottom: 20px; }
.pillar .code pre { font-size: 0.78rem; }
/* (the tiles without a picture get the block grid, so they are not flat) */
.pillar:not(:has(> img)) { background-color: var(--panel); }
.pillar-big { font: 700 clamp(2.4rem, 4vw, 3.4rem)/1 "Chakra Petch", sans-serif; color: var(--accent-text); margin-bottom: auto; }
@media (max-width: 980px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .pillars { grid-template-columns: 1fr; } .pillar-wide { grid-column: auto; min-height: 320px; }
  .pillar:has(> img)::after { background: linear-gradient(180deg, rgba(11, 14, 20, 0.15) 0%, rgba(11, 14, 20, 0.9) 50%); }
  .pillar-side:has(> img)::after { background: linear-gradient(180deg, rgba(11, 14, 20, 0.5) 0%, rgba(11, 14, 20, 0.95) 45%); }
}

/* The code card: a dark editor-like panel. The colours mark words, strings and notes, as a code editor does. */
.code { margin: 0; min-width: 0; border: var(--border); border-radius: var(--radius); background: var(--bg); overflow: hidden; }
.code figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: var(--border); font: 600 0.78rem/1.3 "Chakra Petch", sans-serif; letter-spacing: 0.06em; color: var(--muted); }
.code pre { margin: 0; padding: 14px 16px; overflow-x: auto; font: 0.84rem/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.code .k { color: var(--accent); }
.code .s { color: var(--good); }
.code .c { color: var(--muted); font-style: italic; }
.code .f { color: var(--rare); }
