/* Wallcraft Colour Mix
   Scanner/transform concept inspired by the interaction model in:
   https://codepen.io/blacklead-studio/pen/xbwaqxE
*/

.colourmix-page{
  background:#f4f1eb;
}

.colourmix-hero{
  position:relative;
  min-height:calc(100svh - 78px);
  overflow:hidden;
  padding:118px 0 0;
  background:
    radial-gradient(circle at 50% 68%,rgba(82,107,255,.16),transparent 22%),
    radial-gradient(circle at 52% 67%,rgba(0,232,255,.07),transparent 34%),
    #111210;
  color:#fff;
}

.colourmix-hero::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.19;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);
  background-size:56px 56px;
  mask-image:linear-gradient(to bottom,#000,transparent 82%);
}

.colourmix-copy{
  position:relative;
  z-index:8;
  display:grid;
  grid-template-columns:1.15fr .85fr;
  column-gap:42px;
  align-items:end;
}

.colourmix-copy .eyebrow{
  grid-column:1/-1;
  margin-bottom:12px;
  color:rgba(255,255,255,.62);
}

.colourmix-copy h1{
  margin:0;
  max-width:980px;
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(4rem,7.3vw,8.2rem);
  line-height:.84;
  letter-spacing:-.055em;
  font-weight:400;
}

.colourmix-copy h1 em{
  color:var(--lime);
}

.colourmix-copy p{
  max-width:520px;
  margin:0 0 10px;
  color:rgba(255,255,255,.64);
  font-size:1rem;
  line-height:1.6;
}


/* ---------------------------------------------------------
   Transform stage
   --------------------------------------------------------- */

.mix-stage{
  --portal-x:50%;
  position:relative;
  z-index:2;
  height:470px;
  margin-top:18px;
  overflow:hidden;
  border-top:1px solid rgba(255,255,255,.09);
}

.mix-stage::before,
.mix-stage::after{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  width:17vw;
  z-index:20;
  pointer-events:none;
}

.mix-stage::before{
  left:0;
  background:linear-gradient(90deg,#111210 5%,rgba(17,18,16,0));
}

.mix-stage::after{
  right:0;
  background:linear-gradient(270deg,#111210 5%,rgba(17,18,16,0));
}

.mix-stream{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  overflow:visible;
}

.mix-track{
  display:flex;
  align-items:center;
  gap:0;
  width:max-content;
  will-change:transform;
  transform:translate3d(0,0,0);
}

.mix-group{
  display:flex;
  align-items:center;
  gap:0;
  flex:0 0 auto;
}

.mix-item{
  position:relative;
  flex:0 0 252px;
  width:252px;
  height:238px;
  isolation:isolate;
}

.mix-card{
  position:absolute;
  inset:0;
  overflow:visible;
  transform:translateZ(0);
  backface-visibility:hidden;
}

/*
  PRODUCT SIDE

  No card, border, product name or code: just the tin moving freely through
  the stage. The transparent surrounding area makes the packshot feel like
  the object itself is entering the portal.
*/
.mix-card-product{
  z-index:3;
  display:grid;
  place-items:center;
  padding:0;
  background:transparent;
  color:#fff;
  box-shadow:none;
}

.mix-packshot{
  width:100%;
  height:100%;
  display:grid;
  place-items:center;
}

.mix-packshot img{
  display:block;
  width:74%;
  height:238px;
  object-fit:contain;
  object-position:center;
  filter:
    drop-shadow(0 22px 22px rgba(0,0,0,.28))
    drop-shadow(0 0 4px rgba(255,255,255,.10));
  user-select:none;
}

/* Product name/code are intentionally hidden. */
.mix-product-meta{
  display:none;
}


/*
  COLOUR SIDE

  No outer card/border/padding. The transformed side is only the swatch field.
  Swatches use the user's reference shape: rounded tile, colour on top and a
  white lower strip like a physical colour chip.
*/
.mix-card-colours{
  z-index:2;
  padding:0;
  background:transparent;
  box-shadow:none;
}

.mix-swatch-grid{
  width:100%;
  height:100%;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  grid-template-rows:repeat(3,1fr);
  gap:5px;
  padding:0 5px 0 0;
}

.mix-swatch{
  position:relative;
  overflow:hidden;
  border-radius:17px 17px 14px 14px;
  background:
    linear-gradient(
      to bottom,
      var(--swatch) 0%,
      var(--swatch) 74%,
      #f8f8f7 74%,
      #f8f8f7 100%
    );
  box-shadow:
    3px 5px 0 rgba(255,255,255,.13),
    5px 7px 0 rgba(0,0,0,.10),
    inset 0 0 0 1px rgba(255,255,255,.14);
}

.mix-swatch::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,.20),
      transparent 42%,
      rgba(0,0,0,.06)
    );
  mix-blend-mode:soft-light;
}

.mix-item.is-scanning .mix-packshot img{
  filter:
    drop-shadow(0 22px 22px rgba(0,0,0,.28))
    drop-shadow(0 0 16px rgba(130,95,255,.32));
}


/* ---------------------------------------------------------
   Portal
   --------------------------------------------------------- */

.mix-portal{
  position:absolute;
  z-index:16;
  left:50%;
  top:50%;

  /* Keep the portal footprint/height unchanged. */
  width:42px;
  height:360px;

  transform:translate(-50%,-50%);
  pointer-events:none;
}

/* Crisp white-violet scanner line. */
.mix-portal-core{
  position:absolute;
  z-index:4;
  left:50%;
  top:0;
  bottom:0;
  width:2px;
  transform:translateX(-50%);
  border-radius:999px;

  background:linear-gradient(
    to bottom,
    transparent 0%,
    rgba(206,183,255,.45) 5%,
    #f7f2ff 15%,
    #ffffff 48%,
    #f1e8ff 83%,
    rgba(180,145,255,.42) 95%,
    transparent 100%
  );

  box-shadow:
    0 0 2px rgba(255,255,255,1),
    0 0 7px rgba(227,210,255,.95),
    0 0 14px rgba(144,91,255,.75),
    0 0 25px rgba(99,62,211,.30);
}

/*
  The two old oval rings are retained as DOM elements, but styled as
  narrow vertical glow columns. This keeps the portal crisp instead of
  looking like a wide neon capsule.
*/
.mix-portal-halo{
  position:absolute;
  left:50%;
  top:50%;
  border:0;
  border-radius:999px;
  transform:translate(-50%,-50%);
  pointer-events:none;
}

.mix-portal-halo-a{
  width:7px;
  height:334px;
  opacity:.72;
  background:rgba(130,83,255,.30);
  filter:blur(5px);
  box-shadow:0 0 16px rgba(117,72,255,.38);
  animation:portalBreathe 2.2s ease-in-out infinite alternate;
}

.mix-portal-halo-b{
  width:15px;
  height:306px;
  opacity:.34;
  background:rgba(198,174,255,.18);
  filter:blur(9px);
  box-shadow:0 0 24px rgba(128,77,255,.25);
  animation:portalBreathe 1.8s ease-in-out .25s infinite alternate-reverse;
}

@keyframes portalBreathe{
  from{
    transform:translate(-50%,-50%) scaleY(.985);
    opacity:.30;
  }
  to{
    transform:translate(-50%,-50%) scaleY(1.015);
    opacity:.82;
  }
}

.mix-portal.is-active .mix-portal-core{
  box-shadow:
    0 0 3px rgba(255,255,255,1),
    0 0 9px rgba(232,217,255,1),
    0 0 20px rgba(147,91,255,.92),
    0 0 34px rgba(103,64,220,.42);
}

.mix-particles{
  position:absolute;
  z-index:14;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
}


/* ---------------------------------------------------------
   Small stage labels
   --------------------------------------------------------- */

.mix-stage-label{
  position:absolute;
  z-index:22;
  top:24px;
  display:flex;
  align-items:center;
  gap:9px;
  color:rgba(255,255,255,.46);
  font-size:.64rem;
  font-weight:800;
  letter-spacing:.11em;
  text-transform:uppercase;
}

.mix-stage-label span{
  color:rgba(255,255,255,.24);
}

.mix-stage-label-left{left:4vw}
.mix-stage-label-right{right:4vw}

.mix-live-label{
  position:absolute;
  z-index:22;
  left:50%;
  bottom:20px;
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  gap:8px;
  color:rgba(255,255,255,.48);
  font-size:.61rem;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.mix-live-dot{
  width:6px;
  height:6px;
  border-radius:50%;
  background:#85e6ff;
  box-shadow:0 0 12px #85e6ff;
  animation:mixLive 1.3s ease-in-out infinite alternate;
}

@keyframes mixLive{
  from{opacity:.35}
  to{opacity:1}
}


/* ---------------------------------------------------------
   Below hero
   --------------------------------------------------------- */

.colourmix-intro{
  padding:110px 0;
  background:#f4f1eb;
}

.colourmix-intro-grid{
  display:grid;
  grid-template-columns:.92fr 1.08fr;
  gap:90px;
  align-items:start;
}

.colourmix-intro .h2{
  margin-top:14px;
}

.colourmix-intro .lede{
  margin-top:0;
}

.colourmix-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:30px;
}

.colourmix-note{
  padding:24px 0 70px;
  background:#f4f1eb;
}

.colourmix-note p{
  max-width:1000px;
  margin:0;
  padding-top:24px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:.76rem;
}


/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media(max-width:1000px){
  .colourmix-copy{
    grid-template-columns:1fr;
    gap:22px;
  }

  .colourmix-copy p{
    max-width:680px;
  }

  .colourmix-intro-grid{
    grid-template-columns:1fr;
    gap:30px;
  }

  .mix-track,
  .mix-group{
    gap:0;
  }

  .mix-item{
    flex-basis:222px;
    width:222px;
    height:210px;
  }

  .mix-packshot img{
    width:74%;
    height:210px;
  }
}

@media(max-width:720px){
  .colourmix-hero{
    padding-top:112px;
  }

  .colourmix-copy h1{
    font-size:clamp(3.45rem,16vw,5.7rem);
  }

  .mix-stage{
    height:410px;
    margin-top:22px;
  }

  .mix-stage-label{
    display:none;
  }

  .mix-portal{
    height:320px;
  }

  .mix-portal-halo-a{height:292px}
  .mix-portal-halo-b{height:258px}

  .mix-track,
  .mix-group{
    gap:0;
  }

  .mix-item{
    flex-basis:186px;
    width:186px;
    height:178px;
  }

  .mix-card-product{
    padding:0;
  }

  .mix-packshot img{
    width:72%;
    height:178px;
  }

  .mix-swatch-grid{
    gap:4px;
    padding-right:4px;
  }

  .mix-swatch{
    border-radius:12px 12px 10px 10px;
  }

  .colourmix-intro{
    padding:80px 0;
  }
}

@media(prefers-reduced-motion:reduce){
  .mix-portal-halo,
  .mix-live-dot{
    animation:none!important;
  }
}


/* =========================================================
   COLOUR MIX LAB TOOLS
   ========================================================= */

.colourlab-section{
  padding:110px 0;
  border-top:1px solid var(--line);
  background:#f4f1eb;
}

.colourlab-section:nth-of-type(even){
  background:#ebe7de;
}

.colourlab-heading{
  display:grid;
  grid-template-columns:1fr minmax(320px,520px);
  gap:70px;
  align-items:end;
  margin-bottom:36px;
}

.colourlab-heading .h2{
  margin:12px 0 0;
}

.colourlab-heading>p{
  margin:0 0 8px;
  color:var(--muted);
  line-height:1.65;
}

.colour-tool-disclaimer{
  margin:22px 0 0;
  padding-top:20px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:.74rem;
  line-height:1.55;
}


/* ---------------------------------------------------------
   Image palette matcher
   --------------------------------------------------------- */

.image-match-tool{
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  gap:14px;
  align-items:stretch;
}

.image-upload-card,
.palette-match-results{
  min-height:560px;
  border:1px solid var(--line);
  border-radius:30px;
  background:#fbf9f5;
  overflow:hidden;
}

.image-upload-card{
  padding:18px;
  display:grid;
  grid-template-rows:1fr auto auto;
  gap:12px;
}

.image-dropzone{
  position:relative;
  min-height:450px;
  overflow:hidden;
  display:grid;
  place-items:center;
  border:1px dashed rgba(21,21,19,.22);
  border-radius:22px;
  background:#fff;
  cursor:pointer;
}

.image-dropzone.is-dragging{
  border-color:var(--ink);
  box-shadow:inset 0 0 0 2px rgba(21,21,19,.07);
}

.image-dropzone input{
  position:absolute;
  width:1px;
  height:1px;
  opacity:0;
  pointer-events:none;
}

.image-dropzone-placeholder{
  max-width:270px;
  display:grid;
  justify-items:center;
  gap:8px;
  text-align:center;
}

.upload-mark{
  display:grid;
  width:62px;
  height:62px;
  place-items:center;
  margin-bottom:7px;
  border-radius:50%;
  background:var(--ink);
  color:#fff;
  font-family:Georgia,serif;
  font-size:2rem;
  line-height:1;
}

.image-dropzone-placeholder strong{
  font-family:Georgia,serif;
  font-size:1.55rem;
  font-weight:400;
}

.image-dropzone-placeholder small{
  color:var(--muted);
}

.image-dropzone img{
  width:100%;
  height:100%;
  min-height:450px;
  display:block;
  object-fit:cover;
}

.image-upload-meta{
  min-height:36px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  color:var(--muted);
  font-size:.72rem;
}

.text-button{
  appearance:none;
  border:0;
  padding:0;
  background:none;
  color:var(--ink);
  font:inherit;
  font-weight:800;
  text-decoration:underline;
  text-underline-offset:3px;
  cursor:pointer;
}

.image-upload-error{
  padding:11px 13px;
  border-radius:12px;
  background:#f3ddd8;
  color:#7a3128;
  font-size:.74rem;
}

.palette-match-results{
  padding:28px;
}

.palette-result-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:30px;
  margin-bottom:22px;
}

.palette-result-head h3{
  margin:7px 0 0;
  font-family:Georgia,serif;
  font-size:2rem;
  font-weight:400;
}

.palette-status{
  max-width:190px;
  text-align:right;
  color:var(--muted);
  font-size:.68rem;
}

.palette-result-list{
  display:grid;
  gap:8px;
}

.palette-empty-state{
  min-height:410px;
  display:grid;
  place-items:center;
  padding:30px;
  border-radius:20px;
  background:#efebe3;
  color:var(--muted);
  text-align:center;
}

.palette-match-row{
  min-height:68px;
  display:grid;
  grid-template-columns:74px 24px 74px 1fr;
  gap:11px;
  align-items:center;
  padding:8px;
  border:1px solid rgba(21,21,19,.09);
  border-radius:17px;
  background:#fff;
}

.palette-colour-swatch{
  height:52px;
  border-radius:12px;
  background:var(--colour);
  box-shadow:inset 0 0 0 1px rgba(21,21,19,.08);
}

.palette-match-arrow{
  text-align:center;
  color:#99958d;
}

.palette-match-copy{
  min-width:0;
}

.palette-match-copy strong{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:.84rem;
}

.palette-match-copy span{
  display:block;
  margin-top:2px;
  color:var(--muted);
  font-size:.66rem;
  letter-spacing:.06em;
}


/* ---------------------------------------------------------
   Mixing game
   --------------------------------------------------------- */

.mix-game{
  display:grid;
  grid-template-columns:.85fr 1.15fr;
  gap:14px;
}

.mix-game-order,
.mix-game-workbench{
  border:1px solid var(--line);
  border-radius:30px;
  background:#fbf9f5;
  padding:26px;
}

.game-stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  margin-bottom:22px;
}

.game-stats>div{
  padding:12px 14px;
  border-radius:15px;
  background:#efebe3;
}

.game-stats span{
  display:block;
  color:var(--muted);
  font-size:.61rem;
  text-transform:uppercase;
  letter-spacing:.11em;
}

.game-stats strong{
  display:block;
  margin-top:2px;
  font-family:Georgia,serif;
  font-size:1.55rem;
  font-weight:400;
}

.game-target{
  margin-bottom:24px;
}

.game-target-swatch{
  height:220px;
  margin:10px 0 14px;
  border-radius:22px;
  background:#ddd;
  box-shadow:inset 0 0 0 1px rgba(21,21,19,.09);
}

.game-target-name{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:16px;
}

.game-target-name strong{
  font-family:Georgia,serif;
  font-size:1.75rem;
  font-weight:400;
}

.game-target-name span{
  color:var(--muted);
  font-size:.68rem;
  letter-spacing:.08em;
}

.game-ratios>div{
  margin-top:10px;
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}

.ratio-chip,
.ratio-empty{
  padding:7px 10px;
  border-radius:999px;
  background:#efebe3;
  color:#57534e;
  font-size:.67rem;
}

.game-bowl{
  height:230px;
  display:grid;
  place-items:center;
  margin-bottom:18px;
  overflow:hidden;
  border-radius:24px;
  background:#eeeae4;
  box-shadow:inset 0 0 0 1px rgba(21,21,19,.08);
  transition:background .35s ease;
}

.game-bowl span{
  color:rgba(21,21,19,.48);
  font-size:.78rem;
}

.game-tinters{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:7px;
}

.game-tinter{
  min-height:78px;
  padding:10px;
  border:0;
  border-radius:16px;
  background:var(--tinter);
  color:var(--text);
  cursor:pointer;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.15);
  transition:transform .15s ease,filter .15s ease;
}

.game-tinter:hover{
  transform:translateY(-3px);
  filter:brightness(1.04);
}

.game-tinter:active{
  transform:scale(.98);
}

.game-tinter strong{
  display:block;
  font-size:.74rem;
}

.game-tinter span{
  display:block;
  margin-top:3px;
  opacity:.72;
  font-size:.61rem;
}

.game-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-top:16px;
}

.game-result{
  margin-top:18px;
  padding:18px;
  border-radius:20px;
  background:var(--ink);
  color:#fff;
  display:grid;
  grid-template-columns:1fr auto;
  gap:18px;
  align-items:center;
}

.game-result[hidden]{
  display:none!important;
}

.game-result>div:first-child strong{
  display:block;
  margin-top:3px;
  font-family:Georgia,serif;
  font-size:2.8rem;
  font-weight:400;
}

.game-result p{
  margin:4px 0 0;
  color:rgba(255,255,255,.65);
  font-size:.74rem;
}

.game-result-pair{
  display:flex;
  gap:9px;
}

.game-result-pair>div{
  display:grid;
  justify-items:center;
  gap:5px;
}

.game-result-pair i{
  display:block;
  width:52px;
  height:52px;
  border-radius:13px;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.22);
}

.game-result-pair span{
  color:rgba(255,255,255,.55);
  font-size:.6rem;
}

.game-result .btn{
  grid-column:1/-1;
  justify-self:start;
  color:#fff;
  border-color:rgba(255,255,255,.35);
}


/* ---------------------------------------------------------
   Digital mixing table
   --------------------------------------------------------- */

.mix-table-tool{
  border:1px solid var(--line);
  border-radius:30px;
  background:#fbf9f5;
  padding:26px;
}

.mix-table-controls{
  display:grid;
  grid-template-columns:1fr .92fr 1fr;
  gap:12px;
}

.mix-source-card,
.mix-result-card{
  min-width:0;
  padding:16px;
  border-radius:22px;
  background:#efebe3;
}

.mix-source-swatch,
.mix-result-swatch{
  min-height:190px;
  margin:10px 0 12px;
  border-radius:18px;
  background:#ddd;
  box-shadow:inset 0 0 0 1px rgba(21,21,19,.08);
}

.mix-source-card select{
  width:100%;
  min-height:46px;
  padding:9px 12px;
  border:1px solid rgba(21,21,19,.12);
  border-radius:12px;
  background:#fff;
}

.mix-result-card{
  background:var(--ink);
  color:#fff;
}

.mix-result-swatch{
  position:relative;
  display:grid;
  place-items:end start;
  padding:14px;
}

.mix-result-swatch span{
  padding:6px 9px;
  border-radius:999px;
  background:rgba(255,255,255,.75);
  color:#151513;
  font-size:.64rem;
  font-weight:850;
}

.mix-result-card>strong{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-family:Georgia,serif;
  font-size:1.35rem;
  font-weight:400;
}

.mix-result-card>small{
  display:block;
  margin-top:4px;
  color:rgba(255,255,255,.56);
  letter-spacing:.08em;
}

.mix-slider-wrap{
  margin:28px 0 24px;
}

.mix-slider-labels{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:10px;
  color:var(--muted);
  font-size:.68rem;
}

.mix-slider-labels strong{
  color:var(--ink);
}

.mix-ratio-slider{
  appearance:none;
  width:100%;
  height:10px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--mix-a,#ddd),var(--mix-b,#999));
  outline:none;
}

.mix-ratio-slider::-webkit-slider-thumb{
  appearance:none;
  width:28px;
  height:28px;
  border:4px solid #fff;
  border-radius:50%;
  background:var(--mix-result,#777);
  box-shadow:0 2px 10px rgba(0,0,0,.22);
  cursor:pointer;
}

.mix-ratio-slider::-moz-range-thumb{
  width:22px;
  height:22px;
  border:4px solid #fff;
  border-radius:50%;
  background:var(--mix-result,#777);
  box-shadow:0 2px 10px rgba(0,0,0,.22);
  cursor:pointer;
}

.mix-ratio-table-wrap{
  overflow:auto;
  border:1px solid rgba(21,21,19,.09);
  border-radius:18px;
}

.mix-ratio-table{
  width:100%;
  border-collapse:collapse;
  min-width:720px;
}

.mix-ratio-table th,
.mix-ratio-table td{
  padding:13px 14px;
  border-bottom:1px solid rgba(21,21,19,.08);
  text-align:left;
  font-size:.72rem;
}

.mix-ratio-table th{
  background:#efebe3;
  color:#66625c;
  font-size:.61rem;
  text-transform:uppercase;
  letter-spacing:.1em;
}

.mix-ratio-table tbody tr:last-child td{
  border-bottom:0;
}

.mix-table-swatch{
  display:inline-block;
  width:48px;
  height:28px;
  vertical-align:middle;
  border-radius:8px;
  background:var(--colour);
  box-shadow:inset 0 0 0 1px rgba(21,21,19,.09);
}

.mix-table-match{
  display:flex;
  align-items:center;
  gap:9px;
}

.mix-table-match i{
  display:block;
  width:28px;
  height:28px;
  border-radius:8px;
  background:var(--colour);
  box-shadow:inset 0 0 0 1px rgba(21,21,19,.09);
}

.mix-table-match span{
  display:grid;
}

.mix-table-match strong{
  font-size:.72rem;
}

.mix-table-match small{
  margin-top:1px;
  color:var(--muted);
  font-size:.59rem;
  letter-spacing:.05em;
}


@media(max-width:1000px){
  .colourlab-heading,
  .image-match-tool,
  .mix-game{
    grid-template-columns:1fr;
  }

  .colourlab-heading{
    gap:20px;
  }

  .image-upload-card,
  .palette-match-results{
    min-height:0;
  }

  .mix-table-controls{
    grid-template-columns:1fr 1fr;
  }

  .mix-result-card{
    grid-column:1/-1;
    grid-row:2;
  }
}

@media(max-width:700px){
  .colourlab-section{
    padding:78px 0;
  }

  .palette-match-row{
    grid-template-columns:55px 18px 55px 1fr;
  }

  .palette-colour-swatch{
    height:48px;
  }

  .game-tinters{
    grid-template-columns:repeat(2,1fr);
  }

  .game-result{
    grid-template-columns:1fr;
  }

  .mix-table-controls{
    grid-template-columns:1fr;
  }

  .mix-result-card{
    grid-column:auto;
    grid-row:auto;
  }

  .mix-source-swatch,
  .mix-result-swatch{
    min-height:150px;
  }
}
