/* Slab Games portal (preview): shared look for the portal, Workshop and build guide pages */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { background: #1b1740; }
html, body { min-height: 100%; }
body {
  font-family: 'Trebuchet MS', 'Segoe UI', sans-serif; color: #fff; line-height: 1.45;
  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,.08), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(255,255,255,.06), transparent 45%),
    linear-gradient(160deg, #241a4d 0%, #3a1c71 55%, #1b1740 100%);
  min-height: 100dvh;
  padding: calc(12px + env(safe-area-inset-top, 0px)) calc(16px + env(safe-area-inset-right, 0px)) calc(40px + env(safe-area-inset-bottom, 0px)) calc(16px + env(safe-area-inset-left, 0px));
}
a { color: #ffd35c; }
.wrap { max-width: 900px; margin: 0 auto; display: grid; gap: 26px; }
.preview { background: #ffd35c; color: #241a4d; border-radius: 12px; padding: 8px 12px; font-size: 13px; font-weight: 700; text-align: center; }
.preview a { color: #241a4d; }

header.top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.mark { width: 54px; height: 54px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 20px; letter-spacing: -1px;
  background: radial-gradient(circle at 50% 42%, #c9b6ff, #7b5cff 45%, #241a4d); box-shadow: 0 0 0 3px rgba(111,168,255,.6), 0 6px 18px rgba(120,80,255,.55); text-decoration: none; color: #fff; }
.brand { font-size: 22px; font-weight: 900; letter-spacing: .5px; text-decoration: none; color: #fff; }
.brand small { display: block; font-size: 11px; letter-spacing: 3px; text-transform: uppercase; opacity: .8; }
nav { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
nav a { text-decoration: none; color: #fff; background: rgba(255,255,255,.1); border: 2px solid rgba(255,255,255,.2); border-radius: 999px; padding: 7px 14px; font-weight: 900; font-size: 14px; }
nav a[aria-current="page"] { background: #ffd35c; color: #241a4d; border-color: #ffd35c; }

h1 { font-size: clamp(26px, 6vw, 38px); text-shadow: 0 3px 0 rgba(0,0,0,.35); line-height: 1.15; text-wrap: balance; }
h2 { font-size: 22px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; text-wrap: balance; }
h2 small, .sub { font-size: 14px; font-weight: 400; opacity: .8; }
.lead { font-size: 17px; opacity: .92; max-width: 62ch; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.card { background: rgba(255,255,255,.08); border: 3px solid rgba(255,255,255,.22); border-radius: 20px; padding: 18px; color: #fff; text-decoration: none;
  display: flex; flex-direction: column; gap: 8px; box-shadow: 0 6px 0 rgba(0,0,0,.25); position: relative; }
.card .icon { font-size: 44px; line-height: 1; }
.card h3 { font-size: 20px; }
.card .by { font-size: 12px; opacity: .75; text-transform: uppercase; letter-spacing: 1px; }
.card p { font-size: 14px; opacity: .9; }
.card .summary { font-size: 12.5px; background: rgba(0,0,0,.2); border-radius: 10px; padding: 6px 10px; min-height: 1.4em; }
.card .foot { margin-top: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding-top: 4px; }
.play { display: inline-block; padding: 9px 22px; border-radius: 999px; font-weight: 900; font-size: 14px; letter-spacing: 1px; background: #7b5cff; color: #fff; text-decoration: none; border: 0; cursor: pointer; }
.ghost { background: transparent; border: 2px solid rgba(255,255,255,.35); color: #fff; padding: 7px 14px; border-radius: 999px; font-weight: 900; font-size: 13px; cursor: pointer; text-decoration: none; }
.pill { display: inline-block; font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; border-radius: 999px; padding: 3px 9px; }
.pill.test { background: #ffd35c; color: #241a4d; }
.pill.live { background: #7bffd0; color: #14382d; }
.pill.wait { background: #ff9fd0; color: #4a1030; }
.card .pill.corner { position: absolute; top: 12px; right: 12px; }
.card.build { background: linear-gradient(135deg, rgba(255,111,216,.25), rgba(111,168,255,.25)); border-color: rgba(255,255,255,.4); }
.empty { opacity: .8; font-size: 15px; }

.panel { background: rgba(255,255,255,.07); border: 2px solid rgba(255,255,255,.18); border-radius: 18px; padding: 18px 20px; display: grid; gap: 10px; }
.panel h3 { font-size: 18px; }
.panel ol, .panel ul { padding-left: 1.3em; display: grid; gap: 6px; }
.panel li { max-width: 70ch; }
.flow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-weight: 900; font-size: 14px; }
.flow span { background: rgba(255,255,255,.12); border-radius: 999px; padding: 6px 12px; }
.flow i { font-style: normal; opacity: .6; }
code { background: rgba(0,0,0,.3); border-radius: 6px; padding: 1px 6px; font-size: .92em; }
footer { opacity: .6; font-size: 12px; text-align: center; }
:focus-visible { outline: 3px solid #ffd35c; outline-offset: 3px; }
@media (max-width: 520px) { nav { margin-left: 0; } }
