/* The plasticine title: a stage as big as the window, a canvas the script paints. Every colour is a variable here:
   the table, the six lumps of clay (one per letter, then round again), the shadow and the small texts. */
:root {
  --table: #efe7da;         /* the background: a pale modelling board */
  --table-deep: #ddd0bd;    /* the board towards the corners */
  --clay-1: #e4553f;        /* the clay, letter after letter */
  --clay-2: #f1b43a;
  --clay-3: #3e8ed3;
  --clay-4: #5aae68;
  --clay-5: #ee8aae;
  --clay-6: #8e6fd0;
  --shadow: #4a3622;        /* the soft shadow under the clay */
  --ink: #3b2c22;           /* the studio's name */
  --hint: #8d7a66;          /* the small text */
  --screen: 100vh;
}
@supports (height: 100lvh) {
  :root { --screen: 100lvh; }
}

* { box-sizing: border-box; }
html,
body {
  margin: 0;
  height: 100%;
}
body {
  background-color: var(--table);
  background-image: radial-gradient(125% 100% at 50% 42%, transparent 48%, var(--table-deep));
  overflow: hidden;
}

.scena {
  position: relative;
  height: var(--screen);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}
.scena.is-over { cursor: pointer; }

.tavolo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.leggibile {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* the studio's name, under the clay title: the script sets its top */
.marca {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 70%;
  margin: 0;
  text-align: center;
  font-family: 'Fredoka Variable', 'Arial Rounded MT Bold', sans-serif;
  color: var(--ink);
  pointer-events: none;
}
.marca__nome,
.marca__riga {
  display: block;
  opacity: 0;
}
.marca__nome {
  font-size: clamp(18px, 3.2vmin, 30px);
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-right: -0.32em;
}
.marca__riga {
  margin-top: 0.5em;
  font-size: clamp(13px, 1.9vmin, 17px);
  font-weight: 450;
  color: var(--hint);
}

.nota {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: max(18px, env(safe-area-inset-bottom));
  margin: 0;
  text-align: center;
  font: 500 13px/1.3 'Fredoka Variable', sans-serif;
  letter-spacing: 0.02em;
  color: var(--hint);
  opacity: 0;
  pointer-events: none;
}
