/* Mahjongg Circle pages: jade, ivory and gold.
   Load AFTER styles.css, on Mahjongg Circle's pages only. Every class is the
   site's own (styles.css); this file only swaps Bunco's colours for
   Mahjongg's and adds the tiles.

   Colours: mahjongg-circle/design/mahjongg-handoff/"Mahjongg Circle Colors.md".
   Bunco's pink role becomes dragon red, its mint role becomes lime, and gold
   stays gold. Contrast on the jade #0c3b38: text 11:1, muted 8:1, muted 2
   6.5:1, gold 7.6:1.

   Tiles: ivory face on a jade back, only real American mahjong tiles, drawn
   as the app's design draws them, with no card marks or hand names. */
:root{
  --bg:#0c3b38; --soft:#e4eee9; --muted:#c3ddd6; --muted2:#a8cbc2;
  --pink:#c8102e; --pink-soft:#ffc8c0; --mint:#c3f06a;
  --red:#c8102e; --red-hi:#ef4a3f; --lime:#c3f06a; --canvas:#06201e;
  --tile-face:linear-gradient(160deg,#fffcf3,#efe5cf);
  --tile-back:linear-gradient(160deg,#2aa36f,#0f5a3e);
}
body::before{background:radial-gradient(circle,rgba(245,196,81,.24),transparent 65%)}
body::after{background:radial-gradient(circle,rgba(200,16,46,.18),rgba(42,163,111,.22) 42%,transparent 68%)}
.price{background:linear-gradient(160deg,rgba(245,196,81,.2),rgba(200,16,46,.1))}
.plan{background:rgba(6,32,30,.55)}
.tag-mint{background:rgba(195,240,106,.14);color:var(--lime);border-color:rgba(195,240,106,.45)}
.tag-pink{background:rgba(200,16,46,.18);color:var(--pink-soft);border-color:rgba(239,74,63,.5)}
.phone img{background:#082e2b}

/* one tile: the ivory face sits up and to the left on its jade back */
.mj-tile{position:relative;flex-shrink:0;aspect-ratio:3/4;border-radius:16%/12%;background:var(--tile-back);box-shadow:0 18px 34px rgba(0,0,0,.45)}
.mj-face{position:absolute;left:0;top:0;right:7%;bottom:7%;border-radius:15%/11%;background:var(--tile-face);display:grid;place-items:center;box-shadow:inset 0 1px 0 #fff,inset 0 -3px 6px rgba(120,90,40,.12)}
.mj-face svg{width:88%;height:88%}

/* hero: three tiles in the icon's gold ring, where Bunco's page has a phone */
.mj-art{position:relative;width:86%;max-width:400px;aspect-ratio:1;justify-self:center}
.mj-art::before{content:"";position:absolute;inset:14%;border-radius:50%;background:radial-gradient(circle,rgba(42,163,111,.5),transparent 70%)}
.mj-ring{position:absolute;inset:4%;border-radius:50%;border:3px solid rgba(245,196,81,.9);box-shadow:0 0 34px rgba(245,196,81,.4),inset 0 0 34px rgba(245,196,81,.22)}
.mj-art .mj-tile{position:absolute;width:33%;transform:rotate(var(--r));animation:mjFloat 7s ease-in-out infinite}
.mj-art .t-left{left:6%;top:28%;--r:-9deg;animation-delay:-2.4s}
.mj-art .t-mid{left:32.5%;top:19%;width:35%;--r:0deg;z-index:2}
.mj-art .t-right{left:61%;top:28%;--r:9deg;animation-delay:-4.6s}
@keyframes mjFloat{0%,100%{transform:translateY(0) rotate(var(--r))}50%{transform:translateY(-10px) rotate(var(--r))}}

/* how a game is scored */
.mj-steps{display:grid;gap:14px;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr))}
.mj-step .mj-tile{width:56px}
.mj-step-top{display:flex;align-items:center;gap:14px}
.mj-num{font-size:16px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:var(--gold)}
.mj-points{margin-top:14px;padding:26px;display:flex;flex-direction:column;gap:18px}
.mj-points h3{font-size:30px}
.mj-points .sub{color:var(--muted);font-size:18px;margin-top:6px}
.mj-outcomes .amt{color:var(--gold)}
.mj-outcomes .what b{color:var(--text)}
.mj-outcomes .plan.wall .amt{color:var(--muted)}

/* "Take a look first" */
.mj-look{padding:26px;gap:16px}
.mj-look h2{font-size:30px}
.mj-look p{font-size:19px;color:var(--soft)}
.mj-look strong{color:var(--text)}
.mj-look>div{display:flex;flex-direction:column;gap:10px}

@media (min-width:860px){
  .mj-art{max-width:420px}
  .mj-look{flex-direction:row;align-items:flex-start;gap:22px;padding:30px 34px}
}
