/* The title built from toy bricks: one canvas as big as the window. Every colour is a variable here: the room, the
   baseplate, the five brick colours (one per letter, in turn), the little figure and the small texts. */
:root {
  --room: #f6efe3;          /* the room behind the baseplate */
  --room-glow: #fffaf2;     /* the soft light in the middle of the room */
  --plate: #46a66b;         /* the baseplate the title stands on */
  --brick-1: #e5432f;       /* the brick colours: the letters take them in turn */
  --brick-2: #f6b928;
  --brick-3: #2f6fd8;
  --brick-4: #f07a27;
  --brick-5: #8a5fd9;
  --figure-skin: #f8c31d;   /* the little figure: head and hands */
  --figure-shirt: #1d8f86;  /* its body and arms */
  --figure-legs: #2c3654;   /* its hips and legs */
  --shadow: #3a2c1c;        /* the shadows on the baseplate and the click marks */
  --ink: #3b2f24;           /* the shop's name */
  --hint: #8c7a63;          /* the small text at the bottom */
  --screen: 100vh;
}
@supports (height: 100lvh) {
  :root { --screen: 100lvh; }
}

* { box-sizing: border-box; }
html,
body {
  margin: 0;
  height: 100%;
}
body {
  background: var(--room);
  overflow: hidden;
}

.scena {
  position: relative;
  height: var(--screen);
  overflow: hidden;
  background: radial-gradient(ellipse 70% 60% at 50% 55%, var(--room-glow), var(--room) 70%);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}
.scena.su-lettera { cursor: pointer; }

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

.marca {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  top: max(22px, env(safe-area-inset-top));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  pointer-events: none;
  opacity: 0;
}
.marca__segno {
  width: 34px;
  height: 26px;
  flex: none;
}
.marca__sopra { fill: var(--brick-1); }
.marca__fronte { fill: var(--brick-1); filter: brightness(0.62); }
.marca__lato { fill: var(--brick-1); filter: brightness(0.8); }
.marca__bottone { fill: var(--brick-1); stroke: rgba(0, 0, 0, 0.22); stroke-width: 1; }
.marca__nome {
  font-family: 'Fredoka Variable', 'Arial Rounded MT Bold', 'Arial', sans-serif;
  font-size: clamp(17px, 2.1vw, 24px);
  font-weight: 600;
  font-variation-settings: 'wdth' 110;
  letter-spacing: 0.01em;
  color: var(--ink);
}

/* the letters are bricks on the canvas: this copy is only for screen readers */
.leggibile {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  margin: 0;
}

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