/* ============================================================
   Mirrah Game Room — shared brand page styles.
   Used TOGETHER with the site's ../css/styles.css (navbar,
   footer, buttons, cards, tokens) so the games section looks
   like a native part of the Mirrah Image website.
   Load order:  styles.css  →  brand.css
   ============================================================ */

/* ---------- HERO ---------- */
.gr-hero{position:relative;overflow:hidden;color:#fff;text-align:center;
  background:linear-gradient(160deg,#0c447c 0%,#080a7d 55%,#05052e 100%);padding:9rem 0 5rem}
.gr-hero--sm{padding:8rem 0 3.25rem}
.gr-hero::before,.gr-hero::after{content:"";position:absolute;border-radius:50%;filter:blur(10px);opacity:.5;pointer-events:none}
.gr-hero::before{width:340px;height:340px;background:radial-gradient(circle,rgba(249,115,22,.5),transparent 70%);top:-120px;right:-80px}
.gr-hero::after{width:380px;height:380px;background:radial-gradient(circle,rgba(6,182,212,.45),transparent 70%);bottom:-160px;left:-100px}
.gr-hero__inner{position:relative;z-index:2;max-width:820px;margin:0 auto;padding:0 1.25rem}
.gr-eyebrow{display:inline-flex;align-items:center;gap:.5rem;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.22);
  border-radius:50px;padding:.5rem 1.1rem;font-family:'Poppins',sans-serif;font-weight:700;font-size:.8rem;letter-spacing:.04em;
  text-transform:uppercase;color:#fff;margin-bottom:1.25rem}
.gr-hero h1{color:#fff;font-family:'Poppins',sans-serif;font-weight:900;font-size:clamp(2.2rem,6vw,4rem);line-height:1.05;letter-spacing:-.02em;margin-bottom:1rem}
.gr-hero--sm h1{font-size:clamp(2rem,5vw,3rem)}
.gr-hero h1 span{background:linear-gradient(120deg,#F97316,#FBBF24);-webkit-background-clip:text;background-clip:text;color:transparent}
.gr-hero p{font-size:1.12rem;color:rgba(255,255,255,.9);line-height:1.6;max-width:640px;margin:0 auto 1.6rem}

/* ---------- player / coins strip ---------- */
.gr-player{display:inline-flex;align-items:center;gap:.9rem;flex-wrap:wrap;justify-content:center;
  background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.22);border-radius:50px;padding:.55rem 1.1rem;font-family:'Poppins',sans-serif}
.gr-player .av{font-size:1.5rem}
.gr-player .nm{font-weight:800;color:#fff}
.gr-player .co{display:inline-flex;align-items:center;gap:.35rem;background:linear-gradient(135deg,#FBBF24,#F59E0B);color:#5a3d00;
  font-weight:900;border-radius:50px;padding:.25rem .8rem;font-size:.95rem}
.gr-player button{background:none;border:none;color:#cfe0f2;font-family:'Poppins',sans-serif;font-weight:700;font-size:.85rem;cursor:pointer;text-decoration:underline}
.gr-player button:hover{color:#fff}

/* ---------- section ---------- */
.gr-section{padding:3.25rem 0 1rem}
.gr-section__head{text-align:center;max-width:640px;margin:0 auto 2.5rem}
.gr-section__head h2{font-family:'Poppins',sans-serif;font-weight:900;font-size:clamp(1.8rem,4vw,2.6rem);color:var(--indigo);margin-bottom:.6rem}
.gr-section__head p{color:var(--gray-600);font-size:1.05rem;line-height:1.6}
.gr-group{max-width:1120px;margin:2.4rem auto 1.1rem;padding:0 1.25rem;display:flex;align-items:center;gap:.7rem}
.gr-group h3{font-family:'Poppins',sans-serif;font-weight:800;font-size:1.35rem;color:var(--indigo)}
.gr-group .pill{font-size:.72rem;font-weight:700;color:var(--gray-500);background:var(--gray-100);border-radius:50px;padding:.2rem .7rem}

/* ---------- big door cards (dashboard) ---------- */
.gr-doors{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1.5rem}
.gr-door{position:relative;display:flex;flex-direction:column;background:var(--white);border-radius:var(--radius-lg);
  box-shadow:var(--shadow-md);overflow:hidden;text-decoration:none;color:inherit;border:1px solid var(--gray-100);
  transition:transform var(--transition),box-shadow var(--transition)}
.gr-door:hover{transform:translateY(-6px);box-shadow:var(--shadow-xl)}
.gr-door__top{height:6px}
.gr-door__body{padding:1.9rem 1.6rem;display:flex;flex-direction:column;flex:1}
.gr-door__icon{width:64px;height:64px;border-radius:var(--radius-md);display:flex;align-items:center;justify-content:center;font-size:2rem;margin-bottom:1.1rem;color:#fff}
.gr-door h3{font-family:'Poppins',sans-serif;font-weight:800;font-size:1.45rem;color:var(--indigo);margin-bottom:.5rem}
.gr-door h3 small{display:inline-block;font-size:.62rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#fff;background:var(--gray-400);border-radius:50px;padding:.15rem .55rem;vertical-align:middle;margin-left:.4rem}
.gr-door p{color:var(--gray-600);line-height:1.6;flex:1;margin-bottom:1.25rem;font-size:.95rem}
.gr-door__cta{font-family:'Poppins',sans-serif;font-weight:700;display:inline-flex;align-items:center;gap:.4rem}

/* ---------- game tiles (Play / Learning / Cards menus) ---------- */
.gr-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:1.25rem;max-width:1120px;margin:0 auto;padding:0 1.25rem}
.gr-tile{position:relative;display:flex;flex-direction:column;background:var(--white);border-radius:var(--radius-lg);
  box-shadow:var(--shadow-md);overflow:hidden;text-decoration:none;color:inherit;border:1px solid var(--gray-100);
  transition:transform var(--transition),box-shadow var(--transition)}
.gr-tile:hover{transform:translateY(-5px);box-shadow:var(--shadow-lg)}
.gr-tile__top{height:5px}
.gr-tile__body{padding:1.4rem 1.2rem;display:flex;flex-direction:column;flex:1;text-align:center;align-items:center}
.gr-tile__icon{width:60px;height:60px;border-radius:var(--radius-md);display:flex;align-items:center;justify-content:center;font-size:2rem;margin-bottom:.7rem;color:#fff}
.gr-tile h4{font-family:'Poppins',sans-serif;font-weight:800;font-size:1.12rem;color:var(--indigo);margin-bottom:.2rem;line-height:1.15}
.gr-tile .sub{color:var(--gray-500);font-size:.85rem;line-height:1.4}
.gr-tile__prog{margin-top:.7rem;display:flex;gap:.5rem;align-items:center;font-weight:800;font-size:.82rem}
.gr-tile__prog .lvl{background:#EAF2FB;color:var(--purple-dark);border-radius:50px;padding:.15rem .6rem}
.gr-tile__prog .st{color:#B45309}
.gr-tile .badge-soon{position:absolute;top:.7rem;right:.7rem;font-size:.62rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--gray-500);background:var(--gray-100);border-radius:50px;padding:.15rem .5rem}
.gr-tile .badge-ready{position:absolute;top:.7rem;right:.7rem;font-size:.62rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:#065F46;background:#D1FAE5;border-radius:50px;padding:.15rem .5rem}
.gr-tile.is-soon{opacity:.75}
.gr-tile.is-soon:hover{transform:none;box-shadow:var(--shadow-md)}

/* category accents (top bar + icon background) */
.t-calm  .gr-tile__top,.t-calm  .gr-door__top{background:linear-gradient(90deg,var(--teal),var(--purple))}
.t-calm  .gr-tile__icon,.t-calm  .gr-door__icon{background:linear-gradient(135deg,var(--teal),var(--purple))}
.t-mid   .gr-tile__top{background:linear-gradient(90deg,var(--orange),var(--pink))}
.t-mid   .gr-tile__icon{background:linear-gradient(135deg,var(--orange),var(--pink))}
.t-act   .gr-tile__top{background:linear-gradient(90deg,var(--purple),var(--indigo))}
.t-act   .gr-tile__icon{background:linear-gradient(135deg,var(--purple),var(--indigo))}
.t-learn .gr-tile__top,.t-learn .gr-door__top{background:linear-gradient(90deg,var(--emerald),var(--teal))}
.t-learn .gr-tile__icon,.t-learn .gr-door__icon{background:linear-gradient(135deg,var(--emerald),var(--teal-dark))}
.t-cards .gr-tile__top,.t-cards .gr-door__top{background:linear-gradient(90deg,var(--teal),var(--purple))}
.t-cards .gr-tile__icon,.t-cards .gr-door__icon{background:linear-gradient(135deg,var(--teal),var(--purple))}
.t-gold  .gr-tile__top,.t-gold  .gr-door__top{background:linear-gradient(90deg,#FBBF24,var(--orange))}
.t-gold  .gr-tile__icon,.t-gold  .gr-door__icon{background:linear-gradient(135deg,#FBBF24,var(--orange))}

/* dashboard door accents */
.d-play .gr-door__top{background:linear-gradient(90deg,var(--orange),var(--pink))} .d-play .gr-door__icon{background:linear-gradient(135deg,var(--orange),var(--orange-dark))} .d-play .gr-door__cta{color:var(--orange-dark)}
.d-learn .gr-door__top{background:linear-gradient(90deg,var(--emerald),var(--teal))} .d-learn .gr-door__icon{background:linear-gradient(135deg,var(--emerald),var(--teal-dark))} .d-learn .gr-door__cta{color:var(--teal-dark)}
.d-cards .gr-door__top{background:linear-gradient(90deg,var(--teal),var(--purple))} .d-cards .gr-door__icon{background:linear-gradient(135deg,var(--teal),var(--purple))} .d-cards .gr-door__cta{color:var(--purple)}
.d-prize .gr-door__top{background:linear-gradient(90deg,#FBBF24,var(--orange))} .d-prize .gr-door__icon{background:linear-gradient(135deg,#FBBF24,var(--orange))} .d-prize .gr-door__cta{color:var(--orange-dark)}
.d-group .gr-door__top{background:linear-gradient(90deg,var(--purple),var(--indigo))} .d-group .gr-door__icon{background:linear-gradient(135deg,var(--purple),var(--indigo))} .d-group .gr-door__cta{color:var(--purple)}

/* ---------- links row ---------- */
.gr-more{max-width:1120px;margin:2.5rem auto 0;padding:0 1.25rem;display:flex;gap:1rem;flex-wrap:wrap;justify-content:center}
.gr-more a{text-decoration:none;font-family:'Poppins',sans-serif;font-weight:700;background:var(--white);border:1px solid var(--gray-200);
  border-radius:var(--radius-md);padding:.85rem 1.4rem;color:var(--indigo)}
.gr-more a:hover{border-color:var(--purple);color:var(--purple)}

/* ---------- safe note ---------- */
.gr-safe{max-width:820px;margin:2.5rem auto 0;background:var(--white);border:1px solid var(--gray-200);border-left:5px solid var(--teal);
  border-radius:var(--radius-md);padding:1.3rem 1.5rem;color:var(--gray-600);line-height:1.65;font-size:.95rem}
.gr-safe b{color:var(--indigo)}
.gr-note{max-width:820px;margin:2.2rem auto 0;background:var(--white);border:1px solid var(--gray-200);border-left:5px solid var(--purple);
  border-radius:var(--radius-md);padding:1.1rem 1.4rem;color:var(--gray-600);line-height:1.6;font-size:.9rem}
.gr-note b{color:var(--indigo)}

@media (prefers-reduced-motion: reduce){ .gr-door:hover,.gr-tile:hover{transform:none} }
