/* ============================================================
   Spacejeux — games.css (games.php · "All our games" hub)
   ============================================================ */

/* ---------- SECTION ---------- */
.gm-catalogue { background: var(--white); padding-block: 64px 10px; }
.gm-head { margin-bottom: 32px; }

.gm-rows { display: grid; gap: 20px; }
.gm-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gm-row--tickets { gap: 16px; }

/* ============================================================
   DRAW GAME CARD (.gm-card)
   ============================================================ */
.gm-card {
  background: var(--bg-soft); border-radius: var(--radius-lg); padding: 24px;
  display: grid; gap: 16px; align-content: start;
}
.gm-card hr { border-color: var(--border); }

.gm-card__id { display: grid; gap: 4px; }
.gm-card__title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.gm-card__title h3 { font-size: 18px; font-weight: 700; }
.gm-card__price { font-size: 14px; font-weight: 700; color: var(--teal); }
.gm-card__sched { font-size: 12px; color: var(--slate-700); }

.gm-card__stats {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding-block: 8px;
}
.gm-card__stats span {
  display: block; font-size: 11px; color: var(--slate-500); text-transform: uppercase;
}
.gm-card__stats strong {
  display: block; font-family: var(--font-display);
  font-size: 16px; font-weight: 700; color: var(--ink);
}
.gm-card__stats em {
  display: block; font-style: normal;
  font-size: 14px; font-weight: 500; color: var(--slate-700);
}
.gm-card__stats .right { text-align: right; }

.gm-card__claim { font-size: 11px; color: #737373; text-align: center; }
.gm-card__play { justify-self: center; height: 44px; min-width: 78px; }

/* ---------- draw artwork panel ---------- */
.gm-art {
  position: relative; height: 160px; border-radius: 8px; overflow: hidden;
  padding: 14px; display: grid; place-items: center;
}
/* dot-grid pattern layer */
.gm-art::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18'%3E%3Crect x='0' y='0' width='8' height='8' rx='2' fill='%230d9488' fill-opacity='.35'/%3E%3C/svg%3E");
  background-position: 10px 10px;
  opacity: .18;
}
.gm-art__tag {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  font-size: 12px; font-weight: 700; color: var(--teal); opacity: .9;
}
.gm-art__tag--white50 { color: rgba(255, 255, 255, .5); opacity: 1; }
.gm-art__tag--dim { color: rgba(13, 148, 136, .6); opacity: 1; }
.gm-art__tag--frost { color: rgba(153, 199, 224, .6); opacity: 1; }

/* white balls used inside artworks */
.gm-art__balls { position: relative; z-index: 1; display: flex; gap: 10px; align-items: center; }
.gm-ball {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--border);
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--ink);
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .08);
}
.gm-ball--lg { width: 52px; height: 52px; font-size: 22px; }
.gm-ball--md { width: 42px; height: 42px; font-size: 20px; }
.gm-ball--plain { border: 0; box-shadow: none; }

/* — Nordic 7/42 — */
.gm-art--nordic { background: #091e2f; }
.gm-art--nordic::before { opacity: .22; }
.gm-art--nordic::after, .gm-art--nl::after {
  content: ''; position: absolute; inset: -40px; pointer-events: none;
  background:
    radial-gradient(circle 110px at 19% 50%, rgba(45, 212, 191, .2), transparent 70%),
    radial-gradient(circle 130px at 81% 69%, rgba(13, 148, 136, .18), transparent 70%),
    radial-gradient(circle 160px at 50% 25%, rgba(45, 212, 191, .14), transparent 70%);
  filter: blur(24px);
}

/* — Duo 6/45 — */
.gm-art--duo { background: var(--night); }
.gm-art--duo::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(45deg, transparent 49.7%, rgba(13, 148, 136, .12) 49.7%, rgba(13, 148, 136, .12) 50.3%, transparent 50.3%),
    linear-gradient(135deg, transparent 49.7%, rgba(13, 148, 136, .12) 49.7%, rgba(13, 148, 136, .12) 50.3%, transparent 50.3%);
}
.gm-art__split { flex: none; width: 1px; height: 44px; background: rgba(13, 148, 136, .18); }

/* — Everyday Fortune — */
.gm-art--everyday { background: var(--teal-ink); }
.gm-art--everyday::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='61' height='23'%3E%3Ctext x='0' y='11' font-family='Arial' font-size='10' font-weight='600' fill='white' fill-opacity='.55'%3EEVERYDAY%3C/text%3E%3C/svg%3E");
  opacity: .18; background-position: 10px 10px;
}
.gm-art--everyday .gm-art__tag { top: auto; bottom: 14px; color: var(--white); }
.gm-art__center { position: relative; z-index: 1; display: grid; gap: 10px; justify-items: center; }
.gm-art__mainball {
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--border);
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 34px; font-weight: 700; color: var(--teal-ink);
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .08);
}
.gm-art__markers { display: flex; gap: 10px; }
.gm-art__markers span {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--border);
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--teal-ink);
}

/* — Trio / Quatro — */
.gm-art--trio, .gm-art--quatro { background: var(--night); }
.gm-art__tiles {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(2, 44px); gap: 10px;
}
.gm-art__tiles span {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--white); border: 1px solid var(--border);
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--ink);
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .08);
}

/* — Northern Lights (instant, draw-style card) — */
.gm-art--nl { background: #091e2f; }
.gm-art--nl::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18'%3E%3Crect x='0' y='0' width='8' height='8' rx='2' fill='white'/%3E%3C/svg%3E");
  opacity: .08;
}
.gm-reveal { position: relative; z-index: 1; display: flex; gap: 10px; align-items: center; }
.gm-reveal__lock {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--night); border: 1px solid var(--teal);
  display: grid; place-items: center; color: var(--teal);
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .08);
}
.gm-reveal__lock svg { opacity: .9; }
.gm-reveal__prize {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--border);
  display: grid; place-items: center; color: var(--teal);
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .08);
}

/* — Québec Max 6/49 / Québec 5/40 — */
.gm-art--qmax { background: #062533; }
.gm-art--q540 { background: #0a2130; }
.gm-art--qmax::before, .gm-art--q540::before,
.gm-art--dc::before, .gm-art--pick2::before, .gm-art--cinq::before { opacity: .17; }
.gm-art--qmax::after, .gm-art--q540::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle 110px at 19% 50%, rgba(13, 148, 136, .06), transparent 72%),
    radial-gradient(circle 130px at 81% 69%, rgba(13, 148, 136, .04), transparent 72%);
}

/* — Double Chance — */
.gm-art--dc { background: #091e2f; }
.gm-dc-ring {
  position: absolute; width: 130px; height: 130px; border-radius: 50%;
  border: 1.5px solid rgba(13, 148, 136, .12); pointer-events: none;
}
.gm-dc-ring--1 { left: 13.7%; top: 15px; }
.gm-dc-ring--2 { left: 50.7%; top: 15px; }
.gm-dc-ball {
  position: absolute; z-index: 1; width: 40px; height: 40px; border-radius: 50%;
  background: var(--white);
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--ink);
}
.gm-dc-ball--ghost { background: rgba(255, 255, 255, .85); border: 1.5px solid rgba(13, 148, 136, .35); }
.gm-dc-ball--1 { left: 16.2%; top: 44px; }
.gm-dc-ball--2 { left: 29.9%; top: 44px; }
.gm-dc-ball--3 { left: 43.6%; top: 44px; }
.gm-dc-ball--4 { left: 43.6%; top: 92px; }
.gm-dc-ball--5 { left: 57.3%; top: 92px; }
.gm-dc-ball--6 { left: 71%;   top: 92px; }

/* — Pick 2 / Cinq — */
.gm-art--pick2, .gm-art--cinq { background: var(--night); }
.gm-art--pick2 .gm-ball, .gm-art--cinq .gm-ball { color: var(--night); }
.gm-art--cinq::after {
  content: ''; position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%);
  width: 200px; height: 2px; border-radius: 1px; background: rgba(13, 148, 136, .15);
}

/* — Frost (instant, draw-style card) — */
.gm-art--frost { background: #061a2b; }
.gm-art--frost::before {
  /* faint vertical "ice rays" instead of dot grid */
  background-image:
    linear-gradient(#99c7e0, #99c7e0), linear-gradient(#99c7e0, #99c7e0),
    linear-gradient(#99c7e0, #99c7e0), linear-gradient(#99c7e0, #99c7e0),
    linear-gradient(#99c7e0, #99c7e0);
  background-size: 1px 100%;
  background-repeat: no-repeat;
  background-position: 11% 0, 30% 0, 49% 0, 68% 0, 88% 0;
  opacity: .06;
}
.gm-art--frost::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle 120px at 19% 30%, rgba(153, 199, 224, .05), transparent 70%),
    radial-gradient(circle 100px at 77% 25%, rgba(153, 199, 224, .06), transparent 70%),
    radial-gradient(circle 140px at 55% 10%, rgba(77, 128, 178, .04), transparent 70%);
}
.gm-frost-row { position: relative; z-index: 1; display: flex; gap: 10px; align-items: center; }
.gm-frost-field {
  flex: none; width: 48px; height: 48px; border-radius: 6px;
  background: rgba(153, 199, 224, .08); border: 1px solid rgba(153, 199, 224, .15);
  display: grid; place-items: center; color: #99c7e0;
}
.gm-frost-field--on { background: rgba(255, 255, 255, .12); border-color: rgba(153, 199, 224, .3); }
.gm-frost-field b { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: #99c7e0; }
.gm-frost-field i { width: 20px; height: 3px; border-radius: 1.5px; background: rgba(153, 199, 224, .25); }

/* ============================================================
   INSTANT TICKET CARD (.gm-icard)
   ============================================================ */
.gm-icard {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
  display: grid; gap: 16px; align-content: start;
}
.gm-icard hr { border-color: var(--border); }

.gm-icard__name { display: grid; gap: 4px; }
.gm-icard__name h3 { font-size: 16px; font-weight: 700; }
.gm-icard__name p { font-size: 12px; color: var(--slate-500); }

.gm-icard__prize { display: grid; gap: 2px; }
.gm-icard__prize span { font-size: 10px; text-transform: uppercase; color: var(--slate-500); }
.gm-icard__prize strong {
  font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--teal);
}

.gm-icard__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gm-icard__foot p { font-size: 11px; color: var(--slate-500); max-width: 230px; }
.gm-icard__foot .btn { height: 44px; }

/* ---------- ticket artwork panel (aurora blobs) ---------- */
.gm-icard__art {
  position: relative; height: 120px; border-radius: 8px; overflow: hidden;
  display: grid; place-items: center;
}
.gm-icard__art::before, .gm-icard__art::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(45px); pointer-events: none;
}
.gm-icard__art::before { right: -80px; top: -80px; width: 320px; height: 320px; }
.gm-icard__art::after  { left: -140px; bottom: -140px; width: 360px; height: 360px; }

.gm-icard__art--northern { background: #0b1020; }
.gm-icard__art--northern::before { background: #14b8a6; opacity: .18; }
.gm-icard__art--northern::after  { background: #2dd4bf; opacity: .12; }

.gm-icard__art--maple { background: #f5f1e8; }
.gm-icard__art--maple::before { background: #f59e0b; opacity: .1; }
.gm-icard__art--maple::after  { background: #ef4444; opacity: .08; }

.gm-icard__art--boreal { background: #0b2f1a; }
.gm-icard__art--boreal::before { background: #2dd4bf; opacity: .16; }
.gm-icard__art--boreal::after  { background: #0ea5e9; opacity: .1; }

.gm-icard__art--gold { background: #f7f1e8; }
.gm-icard__art--gold::before { background: #fde68a; opacity: .12; }
.gm-icard__art--gold::after  { background: #0b1020; opacity: .08; }

.gm-icard__art--lucky { background: #0b1020; }
.gm-icard__art--lucky::before { background: #14b8a6; opacity: .16; }
.gm-icard__art--lucky::after  { background: #0ea5e9; opacity: .1; }

.gm-icard__art--frost { background: #0b1020; }
.gm-icard__art--frost::before { background: #2dd4bf; opacity: .14; }
.gm-icard__art--frost::after  { background: #0ea5e9; opacity: .1; }

/* ---------- tilted mini scratch ticket ---------- */
.gm-ticket {
  position: relative; z-index: 1;
  width: min(340px, 92%); border-radius: 10px; padding: 12px 14px;
  display: grid; gap: 10px;
  box-shadow: 0 10px 22px -8px rgba(0, 0, 0, .2), 0 4px 10px -4px rgba(0, 0, 0, .12);
}
.gm-ticket--tilt-r { transform: rotate(5deg); }
.gm-ticket--tilt-l { transform: rotate(-5deg); }
.gm-ticket--dark   { background: var(--night); border: 1px solid #1e293b; color: var(--white); }
.gm-ticket--light  { background: var(--white); border: 1px solid #e5e7eb; color: var(--dark); }
.gm-ticket--forest { background: #0f2a14; border: 1px solid #1e3a22; color: var(--white); }

.gm-ticket__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gm-ticket__head strong {
  display: block; font-family: var(--font-display); font-size: 14px; font-weight: 700;
}
.gm-ticket__head span {
  display: block; margin-top: 2px; font-size: 10px; font-weight: 600; color: var(--slate-400);
}
.gm-ticket--light .gm-ticket__head span { color: #6b7280; }
.gm-ticket__head span.mint { color: #a7f3d0; }
.gm-ticket__logo {
  flex: none; width: 28px; height: 28px; border-radius: 8px; color: var(--white);
  display: grid; place-items: center;
}
.gm-ticket__logo--teal { background: #14b8a6; }
.gm-ticket__logo--red  { background: #ef4444; }
.gm-ticket__logo--sky  { background: #0ea5e9; }
.gm-ticket__logo--mint { background: #2dd4bf; }
.gm-ticket__logo--gold { background: #fde68a; color: #0b1020; }

.gm-ticket__grid { display: grid; grid-template-columns: repeat(3, 56px); gap: 6px; }
.gm-ticket__cell {
  height: 28px; border-radius: 6px;
  display: grid; place-items: center;
}
.gm-ticket--cells-dark .gm-ticket__cell   { background: #0b1020; border: 1px solid #1e293b; }
.gm-ticket--cells-light .gm-ticket__cell  { background: #f3f4f6; border: 1px solid #e5e7eb; }
.gm-ticket--cells-forest .gm-ticket__cell { background: #0b2f1a; border: 1px solid #1e3a22; }
.gm-ticket__cell svg { opacity: .35; }
.gm-ticket--ic-teal .gm-ticket__cell svg { color: #14b8a6; }
.gm-ticket--ic-red  .gm-ticket__cell svg { color: #ef4444; }
.gm-ticket--ic-mint .gm-ticket__cell svg { color: #a7f3d0; }
.gm-ticket--ic-gold .gm-ticket__cell svg { color: #fde68a; }
.gm-ticket__cell b {
  font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--white);
}
.gm-ticket--light .gm-ticket__cell b { color: var(--dark); }
.gm-ticket--val-gold .gm-ticket__cell b { color: #fde68a; }
.gm-ticket--val-ice .gm-ticket__cell b { color: #2dd4bf; }
.gm-ticket__cell b.c-teal { color: #14b8a6; }
.gm-ticket__cell b.c-sky  { color: #0ea5e9; }

/* ============================================================
   DISCLAIMER
   ============================================================ */
.game-disclaimer { padding: 32px 20px; }
.game-disclaimer p { text-align: center; font-size: 13px; color: #666; max-width: 720px; margin-inline: auto; }

/* ============================================================
   PLAY BRIGHT (same block as home page)
   ============================================================ */
.play-bright { background: var(--bg-tint); padding-block: 80px; }
.play-bright__head { max-width: 680px; display: grid; gap: 12px; margin-bottom: 48px; }
.play-bright__head h2 { font-size: 40px; font-weight: 700; line-height: 1.1; }
.play-bright__head p { font-size: 16px; line-height: 1.5; color: var(--slate-700); }
.help-panel {
  position: relative; overflow: hidden;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  display: grid; grid-template-columns: 1fr 320px; gap: 32px;
  padding: 24px 0 24px 38px;
  margin-bottom: 48px;
}
.help-panel::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--teal);
}
.help-panel__content { display: grid; gap: 16px; align-content: center; }
.help-panel__content h3 { font-size: 24px; font-weight: 700; }
.help-panel__content > p { font-size: 15px; line-height: 1.6; color: var(--slate-700); }
.help-panel__phone { display: flex; align-items: center; gap: 12px; }
.help-panel__phone-icon {
  width: 24px; height: 24px; border-radius: 6px;
  background: var(--teal); color: var(--white);
  display: grid; place-items: center;
}
.help-panel__phone a { font-size: 18px; font-weight: 700; color: var(--ink); }
.help-panel__content .btn { justify-self: start; padding-inline: 30px; }

/* support illustration */
.support-illustration {
  position: relative; min-height: 220px; border-radius: var(--radius-lg); margin-right: 0;
  background-image: radial-gradient(circle, rgba(217, 226, 235, .45) 1px, transparent 1.2px);
  background-size: 24px 24px; background-position: 11px 11px;
}
.support-line {
  position: absolute; left: 64px; right: 68px; top: 90px; height: 2px;
  background: rgba(9, 162, 159, .25); border-radius: 1px;
}
.support-node { position: absolute; display: grid; justify-items: center; width: 92px; text-align: center; }
.support-node--1 { left: 22px; top: 50px; }
.support-node--2 { left: 114px; top: 50px; }
.support-node--3 { right: 24px; top: 42px; }
.support-node__num { font-size: 9px; color: rgba(9, 162, 159, .55); margin-bottom: 4px; }
.support-node__circle {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--white); border: 1px solid rgba(97, 128, 163, .25);
  display: grid; place-items: center; color: rgba(28, 42, 74, .6);
}
.support-node__circle--accent {
  width: 48px; height: 48px;
  border: 1.5px solid rgba(9, 162, 159, .5); color: #09a29f;
  box-shadow: 0 0 0 6px rgba(9, 162, 159, .06), 0 0 0 12px rgba(9, 162, 159, .04);
}
.support-node__title {
  margin-top: 10px; font-size: 8px; font-weight: 600; letter-spacing: .6px;
  text-transform: uppercase; color: #1c2a4a;
}
.support-node__title.accent { color: #09a29f; }
.support-node__sub { font-size: 7.5px; color: rgba(97, 128, 163, .75); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .gm-row { grid-template-columns: repeat(2, 1fr); }
  .help-panel { grid-template-columns: 1fr; padding: 24px 24px 24px 38px; }
  .support-illustration { max-width: 360px; }
}

@media (max-width: 720px) {
  .gm-catalogue { padding-block: 32px; }
  .gm-head { margin-bottom: 24px; }
  .game-disclaimer { padding: 16px 20px 24px; }
  .game-disclaimer p { font-size: 12px; }
  .play-bright { padding-block: 40px; }
  .play-bright__head { gap: 8px; margin-bottom: 24px; }
  .play-bright__head h2 { font-size: 28px; }
  .play-bright__head p { font-size: 14px; }
  .help-panel { margin-bottom: 24px; padding: 20px; }
  .help-panel::before { display: none; }
  .help-panel__content h3 { font-size: 20px; }
  .help-panel__content > p { font-size: 13px; }
  .help-panel__phone a { font-size: 16px; }
  .help-panel__content .btn { justify-self: stretch; width: 100%; }
}

@media (max-width: 640px) {
  .gm-rows { gap: 16px; }
  .gm-row { grid-template-columns: 1fr; gap: 16px; }

  /* mobile cards are white with a border */
  .gm-card { background: var(--white); border: 1px solid var(--border); padding: 20px; }

  .gm-art { padding: 12px; }
  .gm-art__balls { gap: 8px; }
  .gm-ball { width: 38px; height: 38px; font-size: 15px; }
  .gm-ball--lg { width: 46px; height: 46px; font-size: 19px; }
  .gm-ball--md { width: 38px; height: 38px; font-size: 16px; }

  .gm-card__sched { font-size: 13px; }
  .gm-card__stats span { font-size: 10px; }
  .gm-card__stats em { font-size: 13px; font-weight: 600; }
  .gm-card__claim { text-align: left; }
  .gm-card__play { justify-self: start; height: 40px; border-radius: 6px; }

  .gm-icard__foot .btn { height: 36px; padding-inline: 20px; border-radius: 6px; font-size: 13px; }
}
