/* JIG pages under 1024px. The desktop Framer design re-flowed onto fewer columns:
   same 78:81 tiles, 4px gaps, panels, type and colours, measured from the 1440px layout. */

@font-face { font-family: "Agdasima"; font-weight: 700; font-display: swap; src: url(/jig/fonts/agdasima-700-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Agdasima"; font-weight: 700; font-display: swap; src: url(/jig/fonts/agdasima-700-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url(/jig/fonts/poppins-400-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url(/jig/fonts/poppins-400-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* "html:root body" and .jig-mobile outrank the Framer page styles loaded after this file */
html:root body { margin: 0; background: #1e1e1e; overflow-x: hidden; }

.jig-mobile {
  --cols: 5;
  --pad: 16px;
  --gap: 4px;
  --tile: #232323;
  --muted: #71706e;
  --title-1: 48px;
  --title-2: 40px;
  --title-doc: 44px;
  color: var(--muted);
  font: 400 16px / 19.2px "Poppins", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.jig-mobile * { box-sizing: border-box; font-family: inherit; margin: 0; }
.jig-mobile a { color: inherit; text-decoration: none; }
.jig-mobile img { display: block; }
@media (min-width: 720px) {
  .jig-mobile { --cols: 9; --pad: 24px; --title-1: 88px; --title-2: 56px; --title-doc: 56px; }
}

/* one grid per page; jig.js sets --h (tile height) and --r (corner radius) from the column width,
   and fills every empty cell with a plain tile */
.jig-mobile .g {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  grid-auto-rows: var(--h, 68px);
  gap: var(--gap);
  padding: var(--pad);
  max-width: 480px;
  margin: 0 auto;
}
@media (min-width: 720px) { .jig-mobile .g { max-width: none; } }
.jig-mobile .g > * { grid-area: var(--m); }
@media (min-width: 720px) { .jig-mobile .g > * { grid-area: var(--t, var(--m)); } }

.jig-mobile .tile, .jig-mobile .p { background: var(--tile); border-radius: var(--r, 16px); min-width: 0; }
.jig-mobile .p { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.jig-mobile .p.left { align-items: stretch; justify-content: flex-start; text-align: left; padding: 16px; }
.jig-mobile .p.doc { align-items: stretch; justify-content: flex-start; text-align: left; padding: 20px; }
.jig-mobile .piece { background-color: #272727; }

/* type, as on desktop */
.jig-mobile .h1, .jig-mobile .h2, .jig-mobile .h3, .jig-mobile .htitle, .jig-mobile .timer {
  font-family: "Agdasima", sans-serif; font-weight: 700; text-transform: uppercase; color: #fff; line-height: 1.2;
}
.jig-mobile .h1 { font-size: var(--title-1); }
.jig-mobile .h2 { font-size: var(--title-2); }
.jig-mobile .htitle { font-size: var(--title-doc); }
.jig-mobile .h3 { font-size: 28px; }
.jig-mobile .timer { font-size: 48px; color: var(--muted); }
.jig-mobile .s { font-size: 14px; line-height: 16.8px; }
.jig-mobile .w { color: #fff; }
.jig-mobile .label { text-transform: uppercase; }
.jig-mobile .p.left .h3 + p { margin-top: 15px; }
.jig-mobile .p.doc .h3 + * { margin-top: 13px; }
.jig-mobile .p.doc .htitle + p { margin-top: 16px; }
.jig-mobile .p.doc p + p { margin-top: 16px; }
.jig-mobile .p.doc .tight p + p, .jig-mobile .p.doc p.tight + p.tight { margin-top: 0; }
.jig-mobile .p.doc .gap { height: 19.2px; }
.jig-mobile .p.doc a { color: #fff; }
.jig-mobile .two .h2 + p, .jig-mobile .two .h1 + p { margin-top: 8px; }

/* pieces */
.jig-mobile .icon { display: flex; align-items: center; justify-content: center; }
.jig-mobile .icon img { width: 24px; height: auto; }
.jig-mobile .icon .thumb { width: auto; height: 50px; }
.jig-mobile .logo img { width: 24px; }
.jig-mobile .store img, .jig-mobile .btn img { width: 15px; }
.jig-mobile .award img { width: 82%; height: auto; }
.jig-mobile .btn { background: #111; flex-direction: row; gap: 8px; color: #fff; font-size: 14px; line-height: 16.8px; }
.jig-mobile .empty { background: #1e1e1e; }
.jig-mobile .slice {
  /* each tile shows its part of one artwork laid over the whole 3 x 4 board (gaps included), cropped to cover */
  --bw: calc(3 * var(--cw) + 2 * var(--gap));
  --bh: calc(4 * var(--h) + 3 * var(--gap));
  background-image: var(--img);
  background-size: var(--bw) calc(var(--bw) * 1.5);
  background-position:
    calc(var(--x) * (var(--cw) + var(--gap)) * -1)
    calc(var(--y) * (var(--h) + var(--gap)) * -1 - (var(--bw) * 1.5 - var(--bh)) / 2);
}
.jig-mobile .more { gap: 32px; }
.jig-mobile .more img { width: 24px; }
.jig-mobile .flash { background: var(--img) center / cover; opacity: 0; animation: jig-flash .6s ease-out .3s forwards; }
@keyframes jig-flash { to { opacity: .5; } }

/* appear effects, as on desktop: headings come in word by word, buttons and step panels fade in */
.jig-mobile .word { display: inline-block; opacity: 0; transform: translateY(10px); transition: opacity .6s ease-out, transform .6s ease-out; }
.jig-mobile .in .word { opacity: 1; transform: none; }
.jig-mobile .appear { opacity: 0; transition: opacity .6s ease-out; }
.jig-mobile .appear.in { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .jig-mobile .word, .jig-mobile .appear { opacity: 1; transform: none; transition: none; }
  .jig-mobile .flash { animation: none; opacity: .5; }
}
@media (max-width: 359px) {
  .jig-mobile { --title-1: 40px; --title-2: 34px; --title-doc: 36px; }
  .jig-mobile .p.left .h3, .jig-mobile .p.doc .h3 { font-size: 24px; }
  .jig-mobile .p.left p { font-size: 14px; line-height: 16.8px; }
}
