/* ДеМарк - главная страница Mini App: развилка на мероприятия, магазин и базу знаний.
   Токены, шапка и кнопки - в ui.css; здесь только плитки. У каждой плитки цвет своего раздела. */

.hub-balance { background: var(--shop); color: var(--shop-ink); }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.tile { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "icon body arrow" "badge badge badge"; align-items: center; gap: 0 14px; padding: 18px; min-height: 96px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; transition: transform 160ms ease-out, border-color 160ms; touch-action: manipulation; }
.tile:hover { transform: translateY(-2px); border-color: var(--tile); }
.tile:active { transform: scale(0.985); }
.tile-events { --tile: var(--events); --tile-soft: var(--events-soft); }
.tile-shop { --tile: var(--shop); --tile-soft: var(--shop-soft); }
.tile-kb { --tile: var(--kb); --tile-soft: var(--kb-soft); }
.tile-icon { grid-area: icon; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--tile-soft); color: var(--tile); }
.tile-icon svg.i { width: 26px; height: 26px; }
.tile-body { grid-area: body; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tile-title { font-family: var(--display); font-weight: 500; font-size: 16px; line-height: 1.2; }
.tile-text { color: var(--ink-2); font-size: 13.5px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tile-arrow { grid-area: arrow; width: 22px; height: 22px; color: var(--ink-3); transition: transform 160ms, color 160ms; }
.tile:hover .tile-arrow { transform: translateX(3px); color: var(--tile); }
.tile-badge { grid-area: badge; justify-self: start; margin-top: 12px; padding: 4px 10px; border-radius: 999px; background: var(--tile-soft); color: var(--tile); font-size: 12.5px; font-weight: 600; }

.hub-hint { margin-top: 20px; color: var(--ink-3); font-size: 13px; max-width: 60ch; }
