/*
 * =====================================================================
 *  OYUNLAR — SAYT CSS ("lfm-gm-" prefiksi)   Yer: /modules/games/assets/games.css
 *  Zal (kartlar) + oyun səhifəsi (səhnə, pəncərələr, reytinq).
 *  Hər oyunun rəngi --gc dəyişəni ilə gəlir.
 * =====================================================================
 */
/* ---- Zal: başlıq ---- */
.lfm-gm-hero { position: relative; overflow: hidden; display: flex; align-items: center; gap: 24px; padding: 26px 22px; border-radius: 28px; color: #fff;
    background: radial-gradient(70% 140% at 100% 0%, #f59e0b 0%, transparent 55%), linear-gradient(135deg, #15803d 0%, #166534 60%, #052e16 100%); box-shadow: 0 24px 50px -28px rgba(21, 128, 61, .9); }
@media (min-width: 768px) { .lfm-gm-hero { padding: 36px 42px; } }
.lfm-gm-hero-in { flex: 1; min-width: 0; }
.lfm-gm-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: 11.5px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.lfm-gm-hero h1 { margin: 14px 0 8px; font-size: clamp(26px, 4vw, 38px); line-height: 1.1; font-weight: 900; letter-spacing: -.02em; }
.lfm-gm-hero p { max-width: 560px; color: rgba(255, 255, 255, .85); font-size: 15px; line-height: 1.55; }
.lfm-gm-today { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 20px; max-width: 480px; }
.lfm-gm-today > * { padding: 12px; border-radius: 18px; background: rgba(255, 255, 255, .12); }
.lfm-gm-today small { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.lfm-gm-today b { display: block; margin-top: 2px; font-size: 22px; font-weight: 900; font-variant-numeric: tabular-nums; color: #fde68a; }
.lfm-gm-today b em { font-style: normal; font-size: 14px; color: rgba(255, 255, 255, .6); }
.lfm-gm-art { display: none; position: relative; width: 170px; height: 150px; flex: none; }
@media (min-width: 768px) { .lfm-gm-art { display: block; } }
.lfm-gm-art span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 96px; filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .35)); animation: lfmGmFloat 3.5s ease-in-out infinite; }
.lfm-gm-art i { position: absolute; font-style: normal; font-size: 30px; animation: lfmGmFloat 3s ease-in-out infinite reverse; }
.lfm-gm-art i:nth-of-type(1) { top: -4px; right: 4px; } .lfm-gm-art i:nth-of-type(2) { bottom: 0; left: 0; animation-delay: .8s; }
@keyframes lfmGmFloat { 50% { transform: translateY(-8px) rotate(-4deg); } }
@media (prefers-reduced-motion: reduce) { .lfm-gm-art span, .lfm-gm-art i { animation: none; } }

/* ---- Düymələr ---- */
.lfm-gm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 16px; background: var(--gc, #16a34a); color: #fff; font-weight: 900; font-size: 16px;
    box-shadow: 0 14px 26px -14px var(--gc, #16a34a); transition: transform .12s, filter .15s; }
.lfm-gm-btn:hover { filter: brightness(1.08); }
.lfm-gm-btn:active { transform: scale(.97); }
.lfm-gm-btn.is-light { background: #fff; color: #166534; box-shadow: none; }
.lfm-gm-link { margin-top: 10px; font-size: 13px; font-weight: 800; color: #fff; text-decoration: underline; }

/* ---- Zal: kartlar ---- */
.lfm-gm-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .lfm-gm-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .lfm-gm-grid { grid-template-columns: repeat(3, 1fr); } }
.lfm-gm-card { position: relative; display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 24px; background: #fff; border: 1px solid #eef2f7; box-shadow: var(--lf-shadow-sm); transition: transform .15s, box-shadow .15s; overflow: hidden; }
.lfm-gm-card::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--gc); }
.lfm-gm-card:hover { transform: translateY(-2px); box-shadow: 0 20px 34px -24px rgba(15, 23, 42, .5); }
.lfm-gm-card-art { width: 74px; height: 74px; flex: none; border-radius: 22px; display: flex; align-items: center; justify-content: center; font-size: 40px;
    background: radial-gradient(circle at 30% 25%, #fff, color-mix(in srgb, var(--gc) 22%, #fff)); }
.lfm-gm-card-in { flex: 1; min-width: 0; }
.lfm-gm-card h2 { font-size: 17px; font-weight: 900; color: #111827; }
.lfm-gm-card p { margin-top: 2px; font-size: 13px; color: #64748b; line-height: 1.4; }
.lfm-gm-card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.lfm-gm-card-meta span { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: #f8fafc; font-size: 11.5px; font-weight: 800; color: #475569; }
.lfm-gm-card-meta span.is-pts { background: #fef3c7; color: #b45309; }
.lfm-gm-play { flex: none; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--gc); color: #fff; }
.lfm-gm-rules { display: grid; gap: 10px; }
.lfm-gm-rules li { display: flex; gap: 8px; font-size: 14px; color: #475569; line-height: 1.45; }
.lfm-gm-rules svg { flex: none; color: #16a34a; margin-top: 1px; }

/* ---- Oyun səhifəsi ---- */
.lfm-gm-crumb { margin-bottom: 10px; }
.lfm-gm-crumb a { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 800; color: #475569; }
.lfm-gm-crumb a:hover { color: #16a34a; }
.lfm-gm-layout { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
@media (min-width: 1024px) { .lfm-gm-layout { grid-template-columns: minmax(0, 1fr) 340px; } }
.lfm-gm-stage-wrap { max-width: 560px; width: 100%; margin: 0 auto; }
.lfm-gm-stage { position: relative; width: 100%; border-radius: 26px; overflow: hidden; background: #0f172a; box-shadow: 0 30px 60px -30px rgba(15, 23, 42, .7); user-select: none; -webkit-user-select: none; }
.lfm-gm-stage canvas { display: block; touch-action: none; }
@media (max-width: 639px) { .lfm-gm-stage-wrap { margin: 0 -16px; width: calc(100% + 32px); max-width: none; } .lfm-gm-stage { border-radius: 0; } }
.lfm-gm-hud { position: absolute; z-index: 2; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; pointer-events: none; }
.lfm-gm-hud > span { display: flex; flex-direction: column; align-items: center; min-width: 64px; padding: 4px 10px; border-radius: 14px; background: rgba(15, 23, 42, .55); color: #fff; backdrop-filter: blur(4px); }
.lfm-gm-hud small { font-size: 9.5px; font-weight: 800; text-transform: uppercase; opacity: .75; letter-spacing: .05em; }
.lfm-gm-hud b { font-size: 18px; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1.1; }
.lfm-gm-hud .lfm-gm-hud-t { flex-direction: row; gap: 4px; font-size: 13px; font-weight: 800; min-width: 0; white-space: nowrap; overflow: hidden; }
.lfm-gm-ov { position: absolute; z-index: 3; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; color: #fff;
    background: radial-gradient(circle at 50% 35%, rgba(15, 23, 42, .55), rgba(15, 23, 42, .88)); backdrop-filter: blur(2px); }
.lfm-gm-ov[hidden] { display: none; }
.lfm-gm-ov-art { font-size: 72px; line-height: 1; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .4)); }
.lfm-gm-ov > b { font-size: 26px; font-weight: 900; }
.lfm-gm-ov > p { max-width: 320px; font-size: 14px; color: rgba(255, 255, 255, .85); line-height: 1.5; min-height: 20px; }
.lfm-gm-ov > small { font-size: 12px; color: rgba(255, 255, 255, .65); max-width: 280px; }
.lfm-gm-res { display: flex; gap: 10px; }
.lfm-gm-res > span { display: flex; flex-direction: column; min-width: 100px; padding: 10px 16px; border-radius: 18px; background: rgba(255, 255, 255, .12); }
.lfm-gm-res > span[hidden] { display: none; }
.lfm-gm-res small { font-size: 11px; font-weight: 800; text-transform: uppercase; opacity: .7; }
.lfm-gm-res strong { font-size: 30px; font-weight: 900; font-variant-numeric: tabular-nums; color: #fde68a; }

/* ---- Yan panel ---- */
.lfm-gm-side { display: grid; gap: 16px; }
.lfm-gm-keys { display: flex; gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: #f8fafc; font-size: 13px; color: #475569; line-height: 1.45; }
.lfm-gm-keys svg { flex: none; margin-top: 2px; color: #94a3b8; }
.lfm-gm-rew { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; margin-top: 12px; }
.lfm-gm-rew > div { padding: 10px; border-radius: 14px; background: #fffbeb; }
.lfm-gm-rew small { display: block; font-size: 10.5px; font-weight: 800; text-transform: uppercase; color: #b45309; opacity: .8; }
.lfm-gm-rew b { font-size: 15px; font-weight: 900; color: #92400e; font-variant-numeric: tabular-nums; }
.lfm-gm-board { display: grid; gap: 2px; }
.lfm-gm-board li { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 12px; font-size: 14px; }
.lfm-gm-board li:nth-child(odd) { background: #f8fafc; }
.lfm-gm-board li.is-me { background: #f0fdf4; box-shadow: inset 0 0 0 1px #86efac; }
.lfm-gm-board li.is-empty { justify-content: center; color: #94a3b8; font-size: 13px; background: none; padding: 16px; }
.lfm-gm-board i { width: 26px; flex: none; text-align: center; font-style: normal; font-weight: 900; color: #94a3b8; }
.lfm-gm-board span { flex: 1; min-width: 0; font-weight: 700; color: #111827; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lfm-gm-board b { font-weight: 900; font-variant-numeric: tabular-nums; color: #15803d; }
.lfm-gm-more { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.lfm-gm-more a { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 12px; background: #f8fafc; font-size: 13px; font-weight: 800; color: #334155; }
.lfm-gm-more a:hover { background: color-mix(in srgb, var(--gc) 12%, #fff); }
.lfm-gm-more span { font-size: 18px; }
