/* ---------- Games catalogue ---------- */
.jg-lobby-head h1 { font-size: clamp(2.25rem, 1.3rem + 3.4vw, 4.5rem); font-weight: 700; letter-spacing: -0.05em; color: var(--jg-violet-strong); line-height: 1.22; }
.jg-lobby-tools { display: grid; gap: 20px; margin-block: clamp(28px, 4vw, 60px) clamp(24px, 2.5vw, 40px); }
.jg-search { position: relative; max-width: 560px; }
.jg-search input {
  width: 100%; min-height: 56px; padding: 0 20px 0 52px; border-radius: var(--jg-pill);
  border: 2px solid var(--jg-border-soft); background: #fff; color: var(--jg-ink); font-size: 1.05rem;
}
.jg-search input:focus { outline: none; border-color: var(--jg-violet); box-shadow: 0 0 0 4px rgba(101,68,184,.15); }
.jg-search__glyph { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; border: 2.5px solid var(--jg-violet); border-radius: 50%; }
.jg-search__glyph::after { content: ""; position: absolute; width: 8px; height: 2.5px; background: var(--jg-violet); right: -7px; bottom: -3px; transform: rotate(45deg); border-radius: 2px; }
.jg-lobby-tools .jg-pill { height: 52px; font-size: 1.05rem; }
.jg-count { font-size: 1rem; color: var(--jg-muted); }

.jg-reel-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 16px); }
.jg-reel-tile { position: relative; display: block; border-radius: 18px; overflow: hidden; text-decoration: none; transition: transform .3s var(--jg-ease), filter .3s; }
.jg-reel-tile:hover { transform: translateY(-4px) scale(1.02); filter: drop-shadow(0 10px 18px rgba(101,68,184,.25)); }
.jg-reel-tile img { width: 100%; aspect-ratio: 199 / 246; object-fit: cover; object-position: center bottom; display: block; border-radius: 18px; }
.jg-reel-tile__name {
  position: absolute; left: 6px; right: 6px; bottom: 6px; padding: 6px 8px; border-radius: 12px;
  background: rgba(79,49,154,.88); color: #fff; font-size: .82rem; font-weight: 600; line-height: 1.2; text-align: center;
  opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s;
}
.jg-reel-tile:hover .jg-reel-tile__name, .jg-reel-tile:focus-visible .jg-reel-tile__name { opacity: 1; transform: none; }
.jg-reel-tile[hidden] { display: none; }
button.jg-reel-tile { border: 0; padding: 0; background: none; cursor: pointer; width: 100%; }

/* ---------- Game detail ---------- */
.jg-game-top { display: grid; grid-template-columns: minmax(0, 760fr) minmax(0, 816fr); gap: clamp(28px, 3.3vw, 64px); align-items: start; padding-top: clamp(32px, 5vw, 100px); }
.jg-game-id { display: grid; gap: 32px; }
.jg-back { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 44px; margin-left: 20px; color: var(--jg-violet); text-decoration: none; font-size: 2.4rem; line-height: 1; border-radius: 12px; }
.jg-back:hover { background: rgba(101,68,184,.08); }
.jg-game-label { font-size: clamp(.95rem, .8rem + .4vw, 1.25rem); font-weight: 500; letter-spacing: .1em; color: var(--jg-violet); }
.jg-game-id h1 { font-size: clamp(2.2rem, 1.4rem + 2.8vw, 4rem); font-weight: 700; letter-spacing: -0.04em; color: var(--jg-violet); line-height: 1.18; }
.jg-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 12px; list-style: none; }
.jg-stat { min-height: 184px; padding: 18px 16px; border-radius: 24px; box-shadow: 0 10px 22px rgba(143,109,165,.15); display: grid; align-content: start; gap: 6px; }
.jg-stat img { width: 48px; height: 48px; object-fit: contain; }
.jg-stat__label { font-size: clamp(.9rem, .8rem + .25vw, 1.15rem); color: var(--jg-violet); font-weight: 500; text-transform: uppercase; }
.jg-stat__value { font-size: clamp(1.4rem, 1.1rem + .8vw, 2rem); font-weight: 700; color: var(--jg-violet); letter-spacing: -0.03em; line-height: 1.2; }
.jg-stat--mint { background: #a8e9de; } .jg-stat--lilac { background: #cbb4f3; } .jg-stat--peach { background: #ffc4b3; }
.jg-stat--gold { background: #ffd478; } .jg-stat--pink { background: #ffa5bd; }
.jg-stats-note { font-size: .92rem; color: var(--jg-muted); }
.jg-game-art { padding: 14px; border-radius: var(--jg-radius-xl); background: linear-gradient(135deg, #c8f4ee, #e9dcff); box-shadow: var(--jg-shadow-card); }
.jg-game-art img { width: 100%; aspect-ratio: 788 / 388; object-fit: cover; border-radius: 26px; }
.jg-about-game {
  position: relative; overflow: hidden; margin-top: clamp(32px, 3.75vw, 72px); padding: clamp(28px, 5vw, 98px) clamp(22px, 3vw, 56px);
  border-radius: var(--jg-radius-xl); background: var(--jg-cream); border: 1.5px solid #fff; box-shadow: var(--jg-shadow-card);
}
.jg-about-game::before { content: ""; position: absolute; right: -10%; top: -40%; width: 42%; height: 165%; border-radius: 50%; background: radial-gradient(circle, rgba(170,236,222,.85), rgba(190,240,229,.2) 70%); }
.jg-about-game::after { content: ""; position: absolute; left: -11%; bottom: -30%; width: 50%; height: 60%; border-radius: 50%; background: rgba(232,214,247,.35); }
.jg-about-game > * { position: relative; z-index: 1; }
.jg-about-game h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 700; margin-bottom: 24px; }
.jg-about-game p { font-size: var(--jg-fs-lead); line-height: 1.6; margin-bottom: 20px; }
.jg-play-cta { margin-block: clamp(32px, 3.75vw, 72px) 0; }
.jg-play-cta .jg-btn { width: 100%; min-height: 88px; }
.jg-deep { display: grid; gap: clamp(40px, 4vw, 72px); }
.jg-deep__section { display: grid; gap: 18px; }
.jg-deep__section h2 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 3rem); font-weight: 800; }
.jg-deep__section > p { font-size: var(--jg-fs-lead); line-height: 1.65; max-width: 1100px; }
.jg-symbols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; list-style: none; }
.jg-symbols li { padding: 22px; border-radius: 24px; background: #fff; box-shadow: var(--jg-shadow-card); display: grid; gap: 6px; }
.jg-symbols strong { color: var(--jg-violet); font-size: 1.15rem; }
.jg-related { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.jg-related a { display: grid; gap: 8px; text-decoration: none; color: var(--jg-violet); font-weight: 600; font-size: .95rem; text-align: center; }
.jg-related img { width: 100%; aspect-ratio: 198.5 / 246; object-fit: cover; border-radius: 20px; transition: transform .3s var(--jg-ease); }
.jg-related a:hover img { transform: translateY(-4px); }
