/* The dark console card and the lab cards (phase 2, 21.11). Loaded by the home page and /labs. */
.tcard { position: relative; border-radius: 16px; background: radial-gradient(520px 260px at 90% -10%, rgba(194, 106, 46, .32), transparent 62%), #140E0C; color: #F3E8DC; border: 1px solid #3a2a21; box-shadow: 0 24px 50px -24px rgba(20, 14, 12, .7); overflow: hidden; }
.tcard-top { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid rgba(255, 225, 190, .12); background: rgba(0, 0, 0, .2); }
.tcard .dots { display: flex; gap: 6px; } .tcard .dots i { width: 10px; height: 10px; border-radius: 50%; background: #4a382c; }
.tcard-title { margin-left: 6px; font: 600 12.5px/1 ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace; color: #E3B58A; }
.tcard-badge { margin-left: auto; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; color: #F2B22E; padding: 2px 9px; border: 1px solid rgba(242, 178, 46, .5); border-radius: 999px; white-space: nowrap; }
.tcard-body { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.35fr); }
.tcon { padding: 14px 14px; font: 13px/19px ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace; min-height: 220px; background: #0C0807; white-space: pre-wrap; word-break: break-word; color: #B7B0A8; }
.tcon .p { color: #F2B22E; font-weight: 600; } .tcon .c { color: #79C7E3; } .tcon .o { color: #B7B0A8; }
.tcon .caret { display: inline-block; width: 8px; height: 15px; margin-left: 1px; vertical-align: -2px; background: #F3E8DC; animation: tcblink 1s steps(1) infinite; }
@keyframes tcblink { 50% { opacity: 0; } }
.tside { padding: 14px 14px 12px; display: grid; gap: 10px; align-content: center; }
.tmini { width: 100%; height: auto; display: block; margin: 2px 0 4px; }
.tmini .lk { transition: stroke .5s; }
.treqs { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; font-size: 13px; line-height: 18px; }
.treqs li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; align-items: center; padding: 5px 8px; border-radius: 9px; background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 225, 190, .12); color: #DCCFC2; transition: background .4s, border-color .4s; }
.treqs .mk { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid rgba(255, 225, 190, .28); display: grid; place-items: center; font-size: 11px; color: transparent; }
.treqs li.ok { background: rgba(134, 209, 154, .09); border-color: rgba(134, 209, 154, .5); color: #F3E8DC; }
.treqs li.ok .mk { background: #86D19A; border-color: #86D19A; color: #0E2A18; }
.treqs li.pop .mk { animation: tcpop .45s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes tcpop { 0% { transform: scale(.3); } 70% { transform: scale(1.2); } 100% { transform: scale(1); } }
.tcard-foot { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 12px 14px; border-top: 1px solid rgba(255, 225, 190, .12); }
.tcard-foot .btn { min-height: 40px; font-size: 14px; }
.tcard .btn.btn-gold, .tcard a.btn-gold { background: linear-gradient(180deg, #F7C25A, #E9A21B); color: #2A1A08; border: 1px solid #FFD98A; } .tcard .btn.btn-gold:hover { background: linear-gradient(180deg, #FAD07A, #EDAB2E); color: #2A1A08; }
.tcard .btn.btn-ghost, .tcard a.btn-ghost { background: transparent; color: #F3E8DC; border: 1px solid rgba(255, 225, 190, .4); } .tcard .btn.btn-ghost:hover { background: rgba(255, 236, 214, .08); color: #F3E8DC; }
.thint { margin-left: auto; font-size: 12.5px; color: #8C7B6E; }
@media (max-width: 760px) { .tcard-body { grid-template-columns: minmax(0, 1fr); } .tcon { min-height: 150px; } .thint { display: none; } }
@media (prefers-reduced-motion: reduce) { .tcon .caret { animation: none; } .treqs li.pop .mk { animation: none; } .tmini .lk { transition: none; } }

/* hero with the card at the top right (home and /labs) */
.hero-top { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 28px 44px; align-items: center; }
@media (max-width: 900px) { .hero-top { grid-template-columns: minmax(0, 1fr); } }

/* lab cards: three rows (art, text, meta) shared by the cards of a row, so the meta line sits on one line */
.lab-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.lab-grid .lc { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; transition: border-color .2s, transform .2s, box-shadow .2s; }
.lab-grid .lc:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 14px 28px -18px rgba(0, 0, 0, .45); }
.lab-grid .lc[hidden] { display: none; }
.lc-art { position: relative; display: block; background: #140E0C; padding: 10px 12px; } .lc-art .art { width: 100%; height: 80px; display: block; }
.lc-tag { position: absolute; left: 10px; top: 10px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.lc-tag.free { background: #E9A21B; color: #1B1E22; } .lc-tag.today { background: #FFF1CF; color: #5A3A00; } .lc-tag.inc { background: rgba(255, 255, 255, .12); color: #F3E8DC; border: 1px solid rgba(255, 255, 255, .28); }
.lc-body { padding: 14px 16px 8px; } .lc-body h3 { margin: 0 0 4px; font-size: 18px; line-height: 24px; letter-spacing: -.01em; } .lc-body h3 a { text-decoration: none; color: inherit; } .lc-body h3 a:hover { text-decoration: underline; }
.lc-body p { margin: 0; color: var(--muted); font-size: 15px; line-height: 22px; }
.lc-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 8px 16px 14px; font-size: 13.5px; color: var(--muted); align-items: center; align-content: end; }
.lc-meta .lvl { padding: 1px 8px; border-radius: 5px; border: 1px solid var(--line); font-weight: 650; color: var(--ink); }
.lc-prog { margin: 0 16px 14px; height: 6px; border-radius: 3px; background: var(--line-soft); overflow: hidden; } .lc-prog i { display: block; height: 100%; background: #1F7A3E; }
@media (max-width: 600px) { .lab-grid { grid-template-columns: minmax(0, 1fr); } .lab-grid .lc { grid-row: auto; grid-template-rows: auto; } }
