/* Card fonts: a device without the system font gets a bundled open font with the same widths. */
@font-face {font-family:"Card Archivo Black";src:url("./assets/fonts/archivo-black.woff2") format("woff2");font-display:block;}
@font-face {font-family:"Card Anton";src:url("./assets/fonts/anton.woff2") format("woff2");font-display:block;}
@font-face {font-family:"Card Arimo";src:url("./assets/fonts/arimo.woff2") format("woff2");font-display:block;}

/* Touch: a finger on a layer drags it instead of scrolling the page. The artwork scrolls the
   page until it is tapped (selected), so a big photo never traps the scroll. */
.card-stage [data-id] {touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;}
.card-stage .image-layer:not(.selected) {touch-action:pan-x pan-y pinch-zoom;}

/* Hints that differ between a mouse and a finger. */
.hint-touch {display:none;}
@media (hover:none) and (pointer:coarse) {
  .hint-mouse {display:none;}
  .hint-touch {display:inline;}
  /* Comfortable touch targets. */
  .preview-zoom button {min-height:40px;min-width:48px;}
  .chrome-colors button {height:40px;}
  .studio .panel input[type=checkbox] {width:22px!important;height:22px;flex:none;}
  .studio .panel input[type=range] {min-height:32px;}
}

/* Phones: a shortcut back to the card while editing far down the controls. */
#backToCard {position:fixed;right:14px;bottom:calc(14px + env(safe-area-inset-bottom));z-index:60;display:flex;align-items:center;gap:7px;min-height:46px;padding:10px 16px;border:1px solid #8fcfff99;border-radius:999px;background:#0b2033f2;color:#f0f7fd;font:700 14px/1 Arial,Helvetica,sans-serif;box-shadow:0 8px 24px #0009;}
#backToCard[hidden] {display:none;}
#backToCard svg {width:18px;height:18px;}
@media (max-width:900px) {.studio .panel {padding-bottom:84px;}}
