/* The miss compare (js/misscompare.js): the color you picked and the color it was, side by side, near full screen. */
.mc{position:fixed;inset:0;z-index:120;display:flex;flex-direction:column;background:#141311;clip-path:inset(0 0 0 0 round 0);
  transition:clip-path .44s cubic-bezier(.2,.8,.2,1),opacity .2s ease;-webkit-tap-highlight-color:transparent}
.mc.fade{animation:mcFade .22s ease both}
.mc.out{opacity:0;pointer-events:none}
@keyframes mcFade{from{opacity:0}}
.mc-halves{flex:1;min-height:0;display:flex}
.mc-side{flex:1;min-width:0;display:flex;flex-direction:column}
.mc-cell{flex:1;min-height:0;position:relative;display:flex;flex-direction:column;justify-content:flex-end;gap:6px;
  padding:calc(env(safe-area-inset-top,0px) + 18px) 16px 26px;background:var(--c);color:#fff;overflow:hidden}
.mc-cell[data-ink="dark"]{color:#141311}
.mc-lab{position:absolute;left:16px;top:calc(env(safe-area-inset-top,0px) + 18px);font:400 18px/1.1 var(--serif);letter-spacing:0;opacity:.82}
.mc-side .mc-cell+.mc-cell .mc-lab{display:none}
.mc-n{all:unset;box-sizing:border-box;cursor:pointer;display:block;min-height:44px;font-family:var(--serif);font-weight:400;line-height:1.02;letter-spacing:-.02em;
  overflow-wrap:anywhere;text-wrap:balance;color:inherit;text-decoration:underline;text-decoration-color:color-mix(in srgb,currentColor 35%,transparent);text-underline-offset:5px;text-decoration-thickness:1px}
.mc-n:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.mc-hex{font:500 13px/1 var(--mono);letter-spacing:.04em;opacity:.7}
.mc-panel{flex:none;display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;padding:18px 18px calc(env(safe-area-inset-bottom,0px) + 16px);
  background:var(--paper,#EFEBE3);color:var(--paper-ink,#141311);border-radius:18px 18px 0 0;margin-top:-18px;position:relative;box-shadow:0 -10px 30px -14px rgba(0,0,0,.4)}
.mc-pct{display:flex;align-items:baseline;gap:6px;font:500 28px/1 var(--mono);letter-spacing:-.02em}
.mc-pct em{font:italic 400 17px/1 var(--serif);letter-spacing:0;color:var(--paper-soft,#5E5A51)}
.mc .mc-line{flex:1 1 180px;margin:0;font:400 18px/1.3 var(--serif);letter-spacing:0;text-transform:none;color:var(--paper-ink,#141311);opacity:1;text-wrap:pretty}
.mc-go{flex:1 0 100%;height:54px;margin-top:4px;border:0;border-radius:999px;background:var(--paper-ink,#141311);color:var(--paper,#EFEBE3);font:400 24px/1 var(--serif);letter-spacing:0;text-align:center;cursor:pointer;
  transition:transform .12s ease-out}
.mc-go:active{transform:scale(.98)}
.mc.grow .mc-panel{animation:mcUp .38s cubic-bezier(.2,.8,.2,1) .18s both}
.mc.grow .mc-n,.mc.grow .mc-hex,.mc.grow .mc-lab{animation:mcFade .3s ease .22s both}
@keyframes mcUp{from{transform:translateY(40px);opacity:0}}
@media (max-width:300px){.mc-halves{flex-direction:column}}
@media (prefers-reduced-motion:reduce){.mc,.mc *{animation:none!important;transition:none!important}}

/* landscape lane (2026-10-09): the halves were already side by side (flex row, not a portrait-only stack), so
   the one real gap was the notch -- it can sit on either long edge now, right under the outer labels/hex. Adds
   the real left/right inset (app.css) on top of the fixed 16px; 0px everywhere else. The bottom panel also
   gets a height ceiling so it never eats so much of a ~390-440px-tall rotated screen that a half drops under
   its own minimum readable height. */
@media (orientation:landscape){
  .mc-side:first-child .mc-cell{padding-left:calc(16px + var(--left))}
  .mc-side:last-child .mc-cell{padding-right:calc(16px + var(--right))}
  .mc-side:first-child .mc-lab{left:calc(16px + var(--left))}
  .mc-panel{max-height:46dvh;overflow-y:auto;padding-left:calc(18px + var(--left));padding-right:calc(18px + var(--right))}
}

/* quiz-name miss: the big card splits in two */
.pr-sw.pr-split{display:flex;overflow:hidden;padding:0}
.pr-half{flex:1 1 50%;min-width:0;background:var(--c);display:flex;flex-direction:column;justify-content:flex-end;gap:6px;padding:16px 14px;color:#fff;transition:flex-basis .4s cubic-bezier(.2,.8,.2,1)}
.pr-half[data-ink="dark"]{color:#141311}
.pr-half small{font:400 17px/1.1 var(--serif);letter-spacing:0;opacity:.82}
.pr-half button{all:unset;cursor:pointer;min-height:44px;font:400 32px/1.02 var(--serif);letter-spacing:-.02em;overflow-wrap:anywhere;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:5px;text-decoration-color:color-mix(in srgb,currentColor 35%,transparent)}
.pr-splitting .pr-half:first-child{flex-basis:100%}
.pr-splitting .pr-half:last-child{flex-basis:0;padding:0;opacity:0}
