@font-face {
  font-family: "YC Insegna";
  src: url("../caratteri/sansita-swashed.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: "YC Testo";
  src: url("../caratteri/literata.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "YC Testo";
  src: url("../caratteri/literata-italic.woff2") format("woff2");
  font-weight: 300 800;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --yc-calce: #f6f1e5;
  --yc-calce-scura: #ebe2cf;
  --yc-latte: #fbf7ee;
  --yc-cobalto: #1d3c8c;
  --yc-cobalto-vivo: #2c55b3;
  --yc-cobalto-notte: #142b66;
  --yc-limone: #f4c534;
  --yc-limone-scuro: #a8700c;
  --yc-terra: #b4511f;
  --yc-terra-testo: #9c4219;
  --yc-foglia: #4f7d3b;
  --yc-foglia-scura: #2d4a20;
  --yc-inchiostro: #1b2440;
  --yc-inchiostro-tenue: #4a4f62;
  --yc-stucco: #d7cdb8;
  --yc-insegna-font: "YC Insegna", "Georgia", serif;
  --yc-testo-font: "YC Testo", "Georgia", "Times New Roman", serif;
  --yc-margine: clamp(16px, 4vw, 40px);
  --yc-largo: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--yc-calce);
  background-image: url("../foto/intonaco.svg");
  color: var(--yc-inchiostro);
  font-family: var(--yc-testo-font);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

a { color: var(--yc-cobalto); text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--yc-terra-testo); }

h1, h2, h3 { font-family: var(--yc-insegna-font); font-weight: 700; line-height: 1.12; color: var(--yc-cobalto); margin: 0 0 .4em; }
h1 { font-size: clamp(2.1rem, 5.6vw, 3.6rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
code { font-family: "Cascadia Mono", "Courier New", monospace; font-size: .92em; background: var(--yc-calce-scura); padding: .05em .35em; border-radius: 4px; }

:focus-visible { outline: 3px solid var(--yc-cobalto); outline-offset: 3px; border-radius: 6px; }

.yc-vista { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.yc-salta { position: absolute; left: 12px; top: -80px; z-index: 50; background: var(--yc-limone); color: var(--yc-inchiostro); padding: .6em 1em; border-radius: 0 0 12px 12px; font-weight: 700; }
.yc-salta:focus { top: 0; }

.yc-sotto { font-size: .9rem; color: var(--yc-inchiostro-tenue); }

/* ---------- awning and sign ---------- */
.yc-bottega { position: relative; z-index: 20; }
.yc-tenda { position: relative; height: 54px; filter: drop-shadow(0 5px 4px rgba(60, 40, 10, .22)); }
.yc-tenda::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .14), transparent 30%, rgba(255, 255, 255, .12) 70%, transparent),
    repeating-linear-gradient(90deg, var(--yc-cobalto) 0 36px, var(--yc-latte) 36px 72px);
  -webkit-mask: radial-gradient(circle at 18px 0, #000 17.5px, transparent 18px) 0 100% / 36px 18px repeat-x, linear-gradient(#000, #000) 0 0 / 100% calc(100% - 18px) no-repeat;
  mask: radial-gradient(circle at 18px 0, #000 17.5px, transparent 18px) 0 100% / 36px 18px repeat-x, linear-gradient(#000, #000) 0 0 / 100% calc(100% - 18px) no-repeat;
}
.yc-tenda::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 7px; background: linear-gradient(#6e4b28, #8a6237); }

.yc-fila {
  max-width: var(--yc-largo);
  margin: 0 auto;
  padding: 14px var(--yc-margine) 12px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.yc-insegna {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px 8px 8px;
  background: linear-gradient(180deg, #24489e, var(--yc-cobalto));
  border-radius: 12px;
  box-shadow: inset 0 0 0 3px var(--yc-cobalto), inset 0 0 0 5px var(--yc-limone), inset 0 0 0 7px var(--yc-cobalto), 0 6px 12px -6px rgba(20, 30, 60, .6);
  text-decoration: none;
  flex: 0 0 auto;
  transform: rotate(-1deg);
}
.yc-insegna:hover { color: inherit; }
.yc-insegna:focus-visible { outline-color: var(--yc-terra); }
.yc-sigillo { width: 40px; height: 40px; flex: 0 0 auto; }
.yc-insegna-nome {
  font-family: var(--yc-insegna-font);
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
  color: var(--yc-limone);
  text-shadow: 0 2px 0 #0d1f4d, 1px 0 0 #0d1f4d;
  padding-bottom: 2px;
}

.yc-vie { margin-left: auto; }
.yc-vie ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.yc-vie a {
  display: block;
  padding: .45em .8em;
  color: var(--yc-inchiostro);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 999px;
}
.yc-vie a:hover { background: var(--yc-calce-scura); color: var(--yc-cobalto); }
.yc-vie a[aria-current="page"] { background: linear-gradient(transparent 62%, rgba(244, 197, 52, .75) 62% 88%, transparent 88%); color: var(--yc-cobalto); }

.yc-borsa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 16px 6px 8px;
  font: 700 1.02rem/1 var(--yc-testo-font);
  color: var(--yc-cobalto);
  background: radial-gradient(120% 90% at 30% 10%, #fff, transparent 55%), var(--yc-latte);
  border: 2px solid var(--yc-cobalto);
  border-radius: 999px;
  box-shadow: 0 3px 0 var(--yc-cobalto), 0 8px 12px -8px rgba(20, 30, 60, .5);
  cursor: pointer;
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
}
.yc-borsa:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--yc-cobalto); }
.yc-moneta { width: 28px; height: 28px; flex: 0 0 auto; }

.yc-menu { display: none; }

@media (max-width: 899px) {
  .yc-tenda { height: 32px; }
  .yc-fila { gap: 10px; padding-top: 10px; padding-bottom: 10px; position: relative; }
  .yc-insegna { padding: 5px 12px 6px 6px; gap: 7px; margin-right: auto; }
  .yc-sigillo { width: 30px; height: 30px; }
  .yc-insegna-nome { font-size: 1.45rem; }
  .yc-borsa { padding: 5px 12px 5px 6px; font-size: .95rem; }
  .yc-moneta { width: 24px; height: 24px; }
  .yc-menu {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    border: 2px solid var(--yc-cobalto);
    border-radius: 14px;
    background: var(--yc-latte);
    box-shadow: 0 3px 0 var(--yc-cobalto);
    cursor: pointer;
  }
  .yc-menu-righe, .yc-menu-righe::before, .yc-menu-righe::after { display: block; width: 20px; height: 2.5px; border-radius: 2px; background: var(--yc-cobalto); position: relative; transition: transform .2s; }
  .yc-menu-righe::before, .yc-menu-righe::after { content: ""; position: absolute; left: 0; }
  .yc-menu-righe::before { top: -6.5px; }
  .yc-menu-righe::after { top: 6.5px; }
  .yc-menu[aria-expanded="true"] .yc-menu-righe { background: transparent; }
  .yc-menu[aria-expanded="true"] .yc-menu-righe::before { transform: translateY(6.5px) rotate(45deg); }
  .yc-menu[aria-expanded="true"] .yc-menu-righe::after { transform: translateY(-6.5px) rotate(-45deg); }
  .yc-vie {
    display: none;
    position: absolute;
    top: 100%;
    left: var(--yc-margine);
    right: var(--yc-margine);
    margin: 0;
    padding: 10px;
    background: var(--yc-latte);
    border: 2px solid var(--yc-cobalto);
    border-radius: 16px;
    box-shadow: 0 18px 30px -16px rgba(20, 30, 60, .55);
  }
  .yc-vie--aperte { display: block; }
  .yc-vie ul { flex-direction: column; gap: 2px; }
  .yc-vie a { padding: .75em 1em; border-radius: 10px; font-size: 1.05rem; }
}
@media (max-width: 380px) {
  .yc-insegna-nome { font-size: 1.28rem; }
  .yc-sigillo { width: 26px; height: 26px; }
  .yc-fila { gap: 8px; }
}

/* ---------- glazed buttons ---------- */
.yc-smalto {
  --glaze: var(--yc-latte);
  --edge: #9c8f72;
  --ink-on: var(--yc-cobalto);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-height: 46px;
  padding: .7em 1.35em;
  font: 700 1rem/1.15 var(--yc-testo-font);
  color: var(--ink-on);
  text-decoration: none;
  text-align: center;
  background: radial-gradient(130% 100% at 30% 0%, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0) 48%), var(--glaze);
  border: 2px solid var(--edge);
  border-radius: 999px;
  box-shadow: 0 4px 0 var(--edge), 0 10px 16px -8px rgba(20, 20, 40, .45), inset 0 -4px 6px rgba(0, 0, 0, .14);
  cursor: pointer;
  transition: transform .1s ease, box-shadow .1s ease, filter .15s;
  -webkit-tap-highlight-color: transparent;
}
.yc-smalto:hover { color: var(--ink-on); filter: brightness(1.05); }
.yc-smalto:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--edge), 0 4px 8px -6px rgba(20, 20, 40, .45), inset 0 -2px 4px rgba(0, 0, 0, .14); }
.yc-smalto:disabled { cursor: not-allowed; filter: saturate(.35) opacity(.6); box-shadow: 0 2px 0 var(--edge); }
.yc-smalto small:empty { display: none; }
.yc-smalto small { font-size: .76em; font-weight: 600; opacity: .92; }
.yc-smalto--limone { --glaze: var(--yc-limone); --edge: var(--yc-limone-scuro); --ink-on: var(--yc-inchiostro); }
.yc-smalto--cobalto { --glaze: var(--yc-cobalto-vivo); --edge: var(--yc-cobalto-notte); --ink-on: #fff; }
.yc-smalto--terra { --glaze: var(--yc-terra); --edge: #6e2a0e; --ink-on: #fff; }
.yc-smalto--foglia { --glaze: var(--yc-foglia); --edge: var(--yc-foglia-scura); --ink-on: #fff; }
.yc-smalto--latte { --glaze: var(--yc-latte); --edge: #8f8266; --ink-on: var(--yc-cobalto); }
.yc-smalto--grande { font-size: 1.12rem; padding: .8em 1.7em; min-height: 56px; }
.yc-smalto--piccolo { font-size: .92rem; padding: .5em 1.1em; min-height: 40px; }

.yc-scelte { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 1.2em; }

.yc-link-bottone { background: none; border: 0; padding: 0; font: inherit; color: var(--yc-terra-testo); text-decoration: underline; cursor: pointer; font-weight: 700; }

/* ---------- home: the wall ---------- */
.yc-muro {
  position: relative;
  max-width: var(--yc-largo);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) var(--yc-margine) 24px;
}
.yc-muro-testa { max-width: 640px; position: relative; z-index: 2; }
.yc-muro-testa p { font-size: 1.15rem; color: var(--yc-inchiostro-tenue); max-width: 34em; }
.yc-ramo { position: absolute; right: var(--yc-margine); top: 18px; width: 240px; height: auto; transform: rotate(4deg); pointer-events: none; }

.yc-piatti {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: flex-start;
  gap: 28px 30px;
}
.yc-appeso { flex: 0 0 auto; }
.yc-appeso--large { width: 320px; }
.yc-appeso--medium { width: 225px; margin-top: 120px; }
.yc-appeso--medium-large { width: 270px; margin-top: 26px; }
.yc-appeso--small { width: 190px; margin-top: 170px; }

.yc-piatto {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--yc-inchiostro);
  border-radius: 24px;
  padding-bottom: 6px;
}
.yc-piatto:hover { color: var(--yc-inchiostro); }
.yc-piatto:focus-visible { outline-offset: 8px; }
.yc-gancio {
  display: block;
  width: 46%;
  height: 34px;
  margin-bottom: -10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 34' preserveAspectRatio='none'%3E%3Cpath d='M4 34 50 6 96 34' fill='none' stroke='%237a6a52' stroke-width='1.6'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  position: relative;
}
.yc-gancio::before { content: ""; position: absolute; left: 50%; top: 0; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #c9b79a, #5d4a32); box-shadow: 0 2px 2px rgba(0, 0, 0, .3); }

.yc-piatto-tesa {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 11%;
  border-radius: 50%;
  background:
    radial-gradient(circle closest-side, transparent 79%, var(--yc-limone) 79.5% 83.5%, transparent 84%),
    repeating-conic-gradient(var(--yc-cobalto) 0 4.5deg, var(--yc-latte) 4.5deg 9deg);
  box-shadow: inset 0 0 0 6px var(--yc-latte), inset 0 0 0 8.5px var(--yc-cobalto), 0 20px 26px -16px rgba(60, 40, 10, .55), 0 3px 0 #d8cbb0;
  transform-origin: 50% -24px;
  transition: transform .45s cubic-bezier(.3, 1.5, .5, 1);
}
.yc-piatto-tesa::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse 46% 30% at 32% 22%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}
.yc-piatto-foto {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: radial-gradient(circle, #fbf3df, #e7d9b8);
  box-shadow: 0 0 0 3px var(--yc-cobalto);
  color: transparent;
}
.yc-piatto:hover .yc-piatto-tesa, .yc-piatto:focus-visible .yc-piatto-tesa { transform: rotate(-4deg); }
.yc-piatto-nome { display: block; margin: 16px 0 0; font-family: var(--yc-insegna-font); font-weight: 700; font-size: 1.85rem; line-height: 1.05; color: var(--yc-cobalto); }
.yc-piatto-detto { display: block; font-style: italic; color: var(--yc-inchiostro-tenue); font-size: 1rem; margin-top: 2px; }
.yc-appeso--small .yc-piatto-nome { font-size: 1.6rem; }

@media (max-width: 1100px) {
  .yc-ramo { width: 170px; top: 10px; }
  .yc-piatti { justify-content: center; }
}
@media (max-width: 760px) {
  .yc-ramo { display: none; }
  .yc-piatti { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 14px; justify-items: center; }
  .yc-appeso { width: 100%; margin: 0; }
  .yc-appeso--large { width: 100%; }
  .yc-appeso--medium { width: 80%; margin-top: 44px; }
  .yc-appeso--medium-large { width: 90%; margin-top: -6px; }
  .yc-appeso--small { width: 74%; margin-top: 30px; }
  .yc-piatto-nome { font-size: 1.45rem; margin-top: 10px; }
  .yc-appeso--small .yc-piatto-nome { font-size: 1.35rem; }
  .yc-piatto-detto { font-size: .9rem; }
  .yc-gancio { height: 26px; }
}

/* ---------- home: the till ---------- */
.yc-banco {
  max-width: var(--yc-largo);
  margin: 36px auto 0;
  padding: clamp(18px, 3vw, 34px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  background: url("../foto/azulejo.svg") 0 0 / 72px 72px, #f3f0e6;
  border: 18px solid transparent;
  border-image: url("../foto/cornice.svg") 26 round;
  box-shadow: 0 30px 40px -30px rgba(60, 40, 10, .6);
}
@supports (width: min(1px, 2px)) {
  .yc-banco { width: calc(100% - 2 * var(--yc-margine)); }
}
.yc-cassa {
  position: relative;
  background: linear-gradient(180deg, #fffdf6, var(--yc-latte));
  border-radius: 22px 22px 14px 14px;
  padding: 26px clamp(18px, 3vw, 30px) 24px;
  box-shadow: 0 0 0 3px var(--yc-cobalto), 0 0 0 7px var(--yc-latte), 0 0 0 9px var(--yc-limone), 0 22px 30px -18px rgba(20, 30, 60, .55);
  text-align: center;
}
.yc-cassa-targa { display: inline-block; background: var(--yc-cobalto); padding: 6px 22px 8px; border-radius: 10px; margin: -50px 0 12px; box-shadow: inset 0 0 0 2px var(--yc-limone), 0 6px 10px -6px rgba(0, 0, 0, .5); }
.yc-cassa-targa h2 { color: var(--yc-limone); margin: 0; font-size: 1.9rem; }
.yc-cassa-targa p { margin: 0; color: #fff; font-style: italic; font-size: .9rem; }
.yc-cassa-ospite { font-weight: 600; margin-bottom: .2em; }
.yc-cassa-cifra { margin: 0 0 .4em; color: var(--yc-cobalto); }
.yc-cassa-num { font-family: var(--yc-insegna-font); font-weight: 800; font-size: clamp(3rem, 8vw, 4.6rem); line-height: 1; font-variant-numeric: tabular-nums; }
.yc-cassa-unita { font-family: var(--yc-insegna-font); font-size: 1.5rem; }
.yc-cassa-dono { display: grid; justify-items: center; gap: 8px; padding: 14px 0 10px; border-top: 2px dashed var(--yc-stucco); }
.yc-cassa-conto { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--yc-inchiostro-tenue); }
.yc-cassa [data-yc-join] { margin-top: 10px; }
.yc-banco-note {
  background: #fffdf7;
  border-radius: 6px;
  padding: 22px 24px 16px;
  box-shadow: 0 16px 24px -16px rgba(30, 30, 50, .5);
  transform: rotate(1.2deg);
  position: relative;
}
.yc-banco-note::before { content: ""; position: absolute; top: -9px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #e98a5c, var(--yc-terra) 60%, #6e2a0e); box-shadow: 0 3px 3px rgba(0, 0, 0, .3); }
.yc-banco-note h3 { color: var(--yc-terra-testo); }
.yc-banco-note ul { margin: 0; padding-left: 1.2em; }
.yc-banco-note li { margin-bottom: .45em; }
@media (max-width: 860px) {
  .yc-banco { grid-template-columns: minmax(0, 1fr); border-width: 12px; padding-top: 44px; gap: 34px; }
  .yc-banco-note { transform: none; }
}

/* ---------- home: rules tiles ---------- */
.yc-regole { max-width: var(--yc-largo); margin: 56px auto 0; padding: 0 var(--yc-margine); }
.yc-regole > h2 { text-align: center; }
.yc-maioliche {
  list-style: none;
  margin: 18px 0 0;
  padding: 7px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
  background: var(--yc-stucco);
  border-radius: 6px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .15);
}
.yc-maiolica {
  --tinta: var(--yc-cobalto);
  --segno: var(--yc-limone);
  position: relative;
  min-height: 236px;
  padding: 26px 18px 20px;
  text-align: center;
  background:
    radial-gradient(circle at 0 0, var(--tinta) 0 20px, transparent 21px),
    radial-gradient(circle at 100% 0, var(--tinta) 0 20px, transparent 21px),
    radial-gradient(circle at 0 100%, var(--tinta) 0 20px, transparent 21px),
    radial-gradient(circle at 100% 100%, var(--tinta) 0 20px, transparent 21px),
    radial-gradient(120% 80% at 30% 10%, #fffef9, var(--yc-latte));
  box-shadow: inset 0 0 0 9px transparent, inset 0 0 0 10.5px var(--tinta);
  border-radius: 3px;
}
.yc-maiolica--1 { --tinta: var(--yc-foglia); --segno: var(--yc-terra); }
.yc-maiolica--2 { --tinta: var(--yc-terra); --segno: var(--yc-cobalto-vivo); }
.yc-maiolica-segno {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--segno);
  color: #fff;
  font-family: var(--yc-insegna-font);
  font-weight: 800;
  font-size: 1.6rem;
  box-shadow: 0 0 0 4px var(--yc-latte), 0 0 0 6px var(--tinta);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .35);
}
.yc-maiolica--0 .yc-maiolica-segno { color: var(--yc-inchiostro); text-shadow: none; }
.yc-maiolica h3 { font-size: 1.22rem; margin-bottom: .3em; }
.yc-maiolica p { font-size: .94rem; margin: 0; line-height: 1.45; }
@media (max-width: 1100px) { .yc-maioliche { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .yc-maioliche { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 5px; gap: 5px; }
  .yc-maiolica { min-height: 0; padding: 22px 12px 18px; }
  .yc-maiolica h3 { font-size: 1.08rem; }
  .yc-maiolica p { font-size: .88rem; }
  .yc-maiolica-segno { width: 48px; height: 48px; font-size: 1.35rem; }
}

/* ---------- home: courtyard ---------- */
.yc-cortile {
  max-width: var(--yc-largo);
  margin: 64px auto 0;
  padding: 0 var(--yc-margine);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 52px);
  align-items: center;
}
.yc-cortile-foto {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 48% 48% 10px 10px / 34% 34% 10px 10px;
  background: linear-gradient(#efe4cc, #e3d3b0);
  box-shadow: 0 0 0 8px var(--yc-latte), 0 0 0 10px var(--yc-terra), 0 26px 34px -22px rgba(60, 40, 10, .55);
}
.yc-cortile-testo p { font-size: 1.1rem; }
.yc-freccia { display: inline-block; font-weight: 700; margin-right: 1.2em; margin-bottom: .4em; }
.yc-freccia::after { content: " \2192"; }
@media (max-width: 760px) { .yc-cortile { grid-template-columns: minmax(0, 1fr); margin-top: 48px; } }

/* ---------- shop ---------- */
.yc-negozio, .yc-sala, .yc-carta-muro, .yc-smarrito { max-width: var(--yc-largo); margin: 0 auto; padding: clamp(24px, 4vw, 48px) var(--yc-margine) 0; }
.yc-negozio-testa { max-width: 680px; }
.yc-negozio-testa p { font-size: 1.12rem; color: var(--yc-inchiostro-tenue); }
.yc-mensole { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 56px; }
.yc-mensola { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(22px, 5vw, 64px); align-items: center; }
.yc-mensola--rovescio { grid-template-columns: minmax(0, 1fr) 300px; }
.yc-mensola--rovescio .yc-mensola-piatto { order: 2; }
.yc-mensola-piatto { position: relative; padding-bottom: 22px; }
.yc-mensola-piatto::after { content: ""; position: absolute; left: -6%; right: -6%; bottom: 0; height: 18px; border-radius: 4px; background: linear-gradient(#9b6c3c, #6e4b28); box-shadow: 0 10px 14px -8px rgba(40, 20, 0, .55); }
.yc-mensola-piatto .yc-piatto-nome, .yc-mensola-piatto .yc-piatto-detto, .yc-mensola-piatto .yc-gancio { display: none; }
.yc-mensola-piatto .yc-piatto { padding-bottom: 0; }
.yc-mensola-testo h2 a { text-decoration: none; color: var(--yc-cobalto); }
.yc-mensola-testo h2 a:hover { color: var(--yc-terra-testo); }
.yc-mensola-dati { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 0 0 18px; }
.yc-mensola-dati div { border-left: 4px solid var(--yc-limone); padding-left: 10px; }
.yc-mensola-dati dt { font-size: .85rem; color: var(--yc-inchiostro-tenue); }
.yc-mensola-dati dd { margin: 0; font-weight: 700; }
@media (max-width: 760px) {
  .yc-mensola, .yc-mensola--rovescio { grid-template-columns: minmax(0, 1fr); }
  .yc-mensola--rovescio .yc-mensola-piatto { order: 0; }
  .yc-mensola-piatto { width: min(240px, 70vw); margin: 0 auto; }
}

/* ---------- notes ---------- */
.yc-promemoria {
  max-width: 820px;
  margin: 40px auto 0;
  padding: 14px 20px 14px 70px;
  position: relative;
  background: var(--yc-latte);
  border: 2px dashed var(--yc-stucco);
  border-radius: 14px;
  font-size: .95rem;
}
.yc-promemoria::before { content: "18+"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--yc-terra); color: #fff; font-weight: 800; font-size: .9rem; box-shadow: 0 0 0 3px var(--yc-latte), 0 0 0 5px var(--yc-terra); }

/* ---------- info pages ---------- */
.yc-scritto {
  max-width: 800px;
  margin: 0 auto;
  background: #fffdf7;
  padding: clamp(26px, 5vw, 56px) clamp(18px, 5vw, 60px) clamp(20px, 4vw, 44px);
  border-radius: 6px;
  box-shadow: 0 24px 36px -28px rgba(60, 40, 10, .5);
  position: relative;
}
.yc-scritto::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 18px; background: url("../foto/fregio.svg") center / auto 18px repeat-x; border-radius: 6px 6px 0 0; }
.yc-scritto-testa { padding-top: 10px; }
.yc-apertura { font-size: 1.2rem; color: var(--yc-inchiostro-tenue); }
.yc-scritto-parte { margin-top: 30px; }
.yc-scritto-parte h2 { color: var(--yc-terra-testo); font-size: clamp(1.4rem, 3vw, 1.75rem); }
.yc-scritto-foto { margin: 26px 0 8px; }
.yc-scritto-img { width: 100%; border-radius: 40% 40% 8px 8px / 26% 26% 8px 8px; background: #eadfc8; aspect-ratio: 3 / 2; object-fit: cover; }
.yc-scritto-foto figcaption { font-size: .9rem; font-style: italic; color: var(--yc-inchiostro-tenue); margin-top: 6px; }
.yc-elenco { padding-left: 0; list-style: none; margin: 0 0 1em; }
.yc-elenco li { position: relative; padding-left: 30px; margin-bottom: .6em; }
.yc-elenco li::before { content: ""; position: absolute; left: 2px; top: .38em; width: 16px; height: 12px; border-radius: 50%; background: var(--yc-limone); border: 1.5px solid var(--yc-limone-scuro); transform: rotate(-20deg); }

.yc-tabella-scorre { overflow-x: auto; margin: 0 0 1.2em; -webkit-overflow-scrolling: touch; }
.yc-tabella { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .96rem; background: #fffdf7; border: 2px solid var(--yc-cobalto); border-radius: 12px; overflow: hidden; }
.yc-tabella caption { text-align: left; font-weight: 700; padding: 0 0 8px; color: var(--yc-inchiostro); }
.yc-tabella th, .yc-tabella td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid #e4dccb; }
.yc-tabella thead th { background: var(--yc-cobalto); color: #fff; font-weight: 700; border-bottom: 0; }
.yc-tabella tbody tr:nth-child(even) { background: #f6f1e4; }
.yc-tabella tbody tr:last-child th, .yc-tabella tbody tr:last-child td { border-bottom: 0; }
.yc-tabella tbody th { font-weight: 700; }
.yc-tabella td { font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
  .yc-tabella .yc-col-lunga { display: none; }
  .yc-tabella th, .yc-tabella td { padding: 8px 8px; font-size: .9rem; }
}

/* ---------- more games ---------- */
.yc-altri { max-width: 900px; margin: 54px auto 0; text-align: center; }
.yc-altri-lista { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 34px; }
.yc-altri-lista a { display: grid; justify-items: center; text-decoration: none; color: var(--yc-inchiostro); width: 150px; padding: 6px; border-radius: 16px; }
.yc-altri-tondo { display: block; width: 104px; height: 104px; padding: 7px; border-radius: 50%; background: repeating-conic-gradient(var(--yc-cobalto) 0 6deg, var(--yc-latte) 6deg 12deg); box-shadow: 0 10px 16px -10px rgba(60, 40, 10, .6); transition: transform .3s; }
.yc-altri-foto { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 2px var(--yc-limone); background: #eadfc8; }
.yc-altri-lista a:hover .yc-altri-tondo { transform: rotate(-6deg); }
.yc-altri-nome { font-family: var(--yc-insegna-font); font-weight: 700; font-size: 1.3rem; color: var(--yc-cobalto); margin-top: 8px; }
.yc-altri-detto { font-size: .88rem; font-style: italic; color: var(--yc-inchiostro-tenue); }

/* ---------- footer ---------- */
.yc-piede { margin-top: 72px; background: var(--yc-cobalto-notte); color: #eef1fa; }
.yc-fregio { height: 40px; background: url("../foto/fregio.svg") center / auto 40px repeat-x; }
.yc-piede-dentro {
  max-width: var(--yc-largo);
  margin: 0 auto;
  padding: 40px var(--yc-margine) 34px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 28px 40px;
}
.yc-piede a { color: #ffe08a; }
.yc-piede a:hover { color: #fff; }
.yc-piede :focus-visible { outline-color: var(--yc-limone); }
.yc-piede h2 { color: var(--yc-limone); font-size: 1.35rem; }
.yc-piede-marchio { display: flex; gap: 14px; align-items: flex-start; }
.yc-piede-marchio p { margin: 0; }
.yc-piede-marchio strong { font-family: var(--yc-insegna-font); font-size: 1.6rem; color: var(--yc-limone); font-weight: 800; }
.yc-sigillo--piede { width: 54px; height: 54px; }
.yc-piede-vie ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.yc-piede-vie a { display: inline-block; padding: 3px 0; text-decoration: none; }
.yc-piede-vie a:hover { text-decoration: underline; }
.yc-piede-patto { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .2); padding-top: 24px; font-size: .95rem; color: #dfe4f2; }
.yc-piede-patto .yc-sotto { color: #c3cbe2; }
.yc-diciotto { display: flex; gap: 14px; align-items: flex-start; }
.yc-diciotto-segno { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--yc-limone); color: var(--yc-inchiostro); font-weight: 800; box-shadow: 0 0 0 3px var(--yc-cobalto-notte), 0 0 0 5px var(--yc-limone); }
@media (max-width: 860px) { .yc-piede-dentro { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .yc-piede-marchio { grid-column: 1 / -1; } }
@media (max-width: 480px) { .yc-piede-dentro { grid-template-columns: minmax(0, 1fr); } }

/* ---------- dialogs, notes, flags ---------- */
.yc-finestra {
  width: min(480px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: url("../foto/fregio.svg") top center / auto 24px repeat-x, var(--yc-latte);
  color: var(--yc-inchiostro);
  box-shadow: 0 0 0 3px var(--yc-cobalto), 0 30px 60px -20px rgba(10, 20, 50, .7);
}
.yc-finestra::backdrop { background: rgba(18, 32, 74, .62); }
.yc-finestra-in { padding: 44px clamp(20px, 5vw, 32px) 26px; margin: 0; }
.yc-finestra h2 { font-size: 1.9rem; }
.yc-etichetta { display: block; font-weight: 700; margin: 14px 0 6px; }
.yc-campo { width: 100%; font: 600 1.1rem var(--yc-testo-font); padding: .7em .9em; border: 2px solid var(--yc-cobalto); border-radius: 12px; background: #fff; color: var(--yc-inchiostro); }
.yc-campo[aria-invalid="true"] { border-color: #b3261e; }
.yc-errore { color: #a1221b; font-weight: 700; min-height: 1.4em; margin: 4px 0 0; font-size: .95rem; }
.yc-conti { margin: 16px 0 0; display: grid; gap: 8px; }
.yc-conti div { display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px dashed var(--yc-stucco); padding-bottom: 6px; }
.yc-conti dt { color: var(--yc-inchiostro-tenue); }
.yc-conti dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

.yc-biglietto {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 40;
  max-width: 440px;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  background: var(--yc-latte);
  border-radius: 16px;
  box-shadow: 0 0 0 2px var(--yc-cobalto), 0 18px 34px -14px rgba(10, 20, 50, .6);
  font-size: .92rem;
}
.yc-biglietto[hidden] { display: none; }
.yc-biglietto p { margin: 0; }
@media (max-width: 560px) { .yc-biglietto { left: 12px; right: 12px; bottom: 12px; max-width: none; flex-direction: column; align-items: stretch; } }

.yc-cartellino {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 45;
  max-width: min(380px, calc(100vw - 32px));
  padding: 12px 18px 12px 20px;
  background: #fffdf7;
  border-left: 8px solid var(--yc-limone);
  border-radius: 10px;
  box-shadow: 0 0 0 2px var(--yc-cobalto), 0 18px 30px -12px rgba(10, 20, 50, .55);
  font-weight: 700;
  color: var(--yc-inchiostro);
  transform: translateY(160%) rotate(-1deg);
  opacity: 0;
  transition: transform .35s cubic-bezier(.3, 1.4, .5, 1), opacity .25s;
  pointer-events: none;
}
.yc-cartellino:empty { display: none; }
.yc-cartellino--su { transform: translateY(0) rotate(-1deg); opacity: 1; }

/* ---------- game pages ---------- */
.yc-sala-testa { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 28px; align-items: center; }
.yc-briciole { font-size: .95rem; margin-bottom: .3em; color: var(--yc-inchiostro-tenue); }
.yc-regola { font-size: 1.14rem; max-width: 40em; }
.yc-sala-dati { display: flex; flex-wrap: wrap; gap: 6px 22px; font-weight: 700; margin: 0; }
.yc-sala-dati span { border-bottom: 3px solid var(--yc-limone); }
.yc-sala-piatto .yc-piatto-tesa { transform: rotate(6deg); }
@media (max-width: 640px) {
  .yc-sala-testa { display: block; position: relative; }
  .yc-briciole, .yc-sala-parole h1 { padding-right: 96px; }
  .yc-sala-piatto { position: absolute; right: 0; top: 2px; width: 84px; }
  .yc-sala-piatto .yc-piatto-tesa { padding: 9%; box-shadow: inset 0 0 0 4px var(--yc-latte), inset 0 0 0 5.5px var(--yc-cobalto), 0 12px 16px -10px rgba(60, 40, 10, .55); }
}

.yc-tavolo { margin-top: 28px; }
.yc-tavolo-cornice {
  border: 22px solid transparent;
  border-image: url("../foto/cornice.svg") 26 round;
  background: url("../foto/azulejo.svg") 0 0 / 76px 76px, #f3f0e6;
  box-shadow: 0 36px 44px -30px rgba(40, 30, 10, .7);
}
.yc-tavolo-piano { padding: clamp(12px, 2.6vw, 26px); display: grid; gap: 18px; }
.yc-tavolo-cassa {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--yc-cobalto);
  color: #fff;
  border-radius: 999px;
  padding: 6px 18px 6px 8px;
  font-weight: 700;
  box-shadow: inset 0 0 0 2px var(--yc-limone);
  font-variant-numeric: tabular-nums;
}
.yc-tavolo-cassa > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.yc-tavolo-chi { font-style: italic; font-weight: 600; color: #ffe08a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yc-voce {
  margin: 0;
  min-height: 3.3em;
  padding: 12px 18px;
  background: #fffdf7;
  border-radius: 12px;
  border-left: 8px solid var(--yc-terra);
  box-shadow: 0 0 0 2px var(--yc-cobalto);
  font-weight: 600;
  line-height: 1.45;
}
@media (max-width: 640px) {
  .yc-tavolo-cornice { border-width: 13px; }
  .yc-tavolo { margin-left: calc(-1 * var(--yc-margine) + 6px); margin-right: calc(-1 * var(--yc-margine) + 6px); }
}

.yc-comandi { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.yc-come { margin-top: 48px; }
.yc-come-griglia { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 30px; align-items: start; }
.yc-conto-box { overflow-wrap: anywhere; background: #fffdf7; border-radius: 18px; padding: 24px; box-shadow: 0 0 0 2px var(--yc-cobalto), 0 0 0 6px var(--yc-latte), 0 0 0 8px var(--yc-limone); }
.yc-conto-grande { font-family: var(--yc-insegna-font); font-weight: 800; font-size: 3rem; line-height: 1; color: var(--yc-cobalto); margin: 0; }
.yc-conto-sotto { font-style: italic; color: var(--yc-inchiostro-tenue); margin: 4px 0 14px; }
.yc-tabella--stretta th, .yc-tabella--stretta td { padding: 8px 9px; font-size: .9rem; }
.yc-mini-fila { display: inline-flex; margin-right: 8px; vertical-align: middle; }
.yc-mini { width: 26px; height: 26px; margin-right: -4px; }
@media (max-width: 860px) { .yc-come-griglia { grid-template-columns: minmax(0, 1fr); } }

.yc-puntata { border: 0; padding: 0; margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.yc-puntata legend { float: left; margin-right: 6px; font-weight: 700; padding: 0; }
.yc-gettone { position: relative; cursor: pointer; }
.yc-gettone input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.yc-gettone span {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--yc-cobalto);
  background: radial-gradient(circle at 32% 26%, #fff, var(--yc-latte) 55%, #e6dcc5);
  box-shadow: inset 0 0 0 3px var(--yc-latte), inset 0 0 0 5px var(--yc-cobalto), 0 3px 0 #9c8f72;
}
.yc-gettone input:checked + span { background: radial-gradient(circle at 32% 26%, #fff5c4, var(--yc-limone) 55%, #d9a821); color: var(--yc-inchiostro); box-shadow: inset 0 0 0 3px #fff5c4, inset 0 0 0 5px var(--yc-limone-scuro), 0 3px 0 var(--yc-limone-scuro); }
.yc-gettone input:focus-visible + span { outline: 3px solid var(--yc-cobalto); outline-offset: 3px; }
.yc-gettone input:disabled + span { opacity: .55; }

/* tombola */
.yc-tomb { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.yc-cartella-cornice { background: #fffdf7; border-radius: 16px; padding: 14px; box-shadow: 0 0 0 3px var(--yc-cobalto), 0 0 0 7px #fffdf7, 0 0 0 9px var(--yc-terra); margin: 9px; }
.yc-cartella-titolo { font-family: var(--yc-insegna-font); font-weight: 700; font-size: 1.5rem; color: var(--yc-cobalto); margin: 0 0 8px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.yc-cartella-titolo span { font-family: var(--yc-testo-font); font-size: .9rem; font-style: italic; font-weight: 500; color: var(--yc-inchiostro-tenue); }
.yc-cartella { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 5px; }
.yc-numero {
  aspect-ratio: 1;
  min-width: 0;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid #cfc4aa;
  background: radial-gradient(circle at 35% 28%, #fff, #fbf3e0);
  color: var(--yc-inchiostro);
  font: 700 .95rem/1 var(--yc-testo-font);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: transform .15s, background .15s;
}
.yc-numero:hover { background: #fde9a6; }
.yc-numero--uscito { background: #dfe6f6; border-color: #9fb1dc; color: var(--yc-cobalto); }
.yc-numero--scelto { background: radial-gradient(circle at 35% 28%, #de7b4c, var(--yc-terra)); border-color: #6e2a0e; color: #fff; }
.yc-numero--preso { background: radial-gradient(circle at 35% 28%, #fff4bd, var(--yc-limone)); border: 3px solid var(--yc-cobalto); color: var(--yc-inchiostro); transform: scale(1.1); }
.yc-cartella--ferma .yc-numero { cursor: default; }
.yc-tomb-lato { display: grid; gap: 12px; justify-items: center; background: #fffdf7; border-radius: 16px; padding: 16px; box-shadow: 0 0 0 2px var(--yc-cobalto); }
.yc-paniere { position: relative; width: 170px; height: 116px; display: grid; place-items: center; }
.yc-paniere::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 58px; border-radius: 0 0 85px 85px / 0 0 58px 58px; background: repeating-linear-gradient(90deg, var(--yc-terra) 0 14px, #c96a37 14px 28px); box-shadow: inset 0 8px 0 rgba(0, 0, 0, .18), 0 10px 14px -8px rgba(60, 30, 0, .55); z-index: 1; }
.yc-boccia {
  position: relative;
  z-index: 2;
  margin-bottom: 26px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--yc-insegna-font);
  font-weight: 800;
  font-size: 2.3rem;
  color: var(--yc-cobalto);
  background: radial-gradient(circle at 34% 28%, #fff 0 12%, #fbf3e0 40%, #e3d6b6);
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, .6), inset 0 0 0 9px var(--yc-cobalto), 0 8px 10px -4px rgba(0, 0, 0, .35);
}
.yc-boccia--gira { animation: yc-rotola .38s cubic-bezier(.3, 1.3, .5, 1); }
@keyframes yc-rotola { from { transform: translateY(-46px) rotate(-200deg) scale(.6); opacity: .3; } to { transform: none; opacity: 1; } }
.yc-tomb-conta { margin: 0; font-weight: 700; color: var(--yc-inchiostro-tenue); }
.yc-chiamati { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.yc-buca { aspect-ratio: 1; border-radius: 50%; border: 2px dashed #c8bea6; display: grid; place-items: center; font-weight: 700; font-size: .95rem; font-variant-numeric: tabular-nums; }
.yc-buca--piena { border: 2px solid var(--yc-cobalto); background: #fff; color: var(--yc-cobalto); }
.yc-buca--presa { background: var(--yc-limone); color: var(--yc-inchiostro); border-color: var(--yc-limone-scuro); }
.yc-tomb-scelti { margin: 0; text-align: center; }
.yc-tomb-lato .yc-comandi { justify-content: center; }
@media (max-width: 899px) { .yc-tomb { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .yc-cartella { grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 3px; }
  .yc-numero { font-size: .8rem; }
  .yc-cartella-cornice { padding: 10px 8px; margin: 9px 6px; }
  .yc-chiamati { grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 4px; }
  .yc-buca { font-size: .78rem; }
}

/* limoni */
.yc-lim { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: center; }
.yc-vetrina { display: flex; align-items: stretch; gap: 8px; background: #fffdf7; border-radius: 26px; padding: 16px 12px; box-shadow: 0 0 0 3px var(--yc-cobalto), 0 0 0 8px #fffdf7, 0 0 0 10px var(--yc-limone), 0 26px 30px -20px rgba(20, 30, 60, .6); margin: 10px; }
.yc-linee-numeri { list-style: none; margin: 0; padding: 0; display: grid; grid-template-rows: repeat(3, 1fr); align-items: center; width: 22px; text-align: center; font-weight: 800; color: var(--yc-terra-testo); font-size: .95rem; }
.yc-tamburi { position: relative; flex: 1 1 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.yc-tamburo {
  aspect-ratio: 10 / 24;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(180deg, #e9dfc8, #fffdf6 22%, #fffdf6 78%, #e9dfc8);
  box-shadow: inset 0 0 0 2px #cdbf9f, inset 0 14px 16px -12px rgba(0, 0, 0, .4), inset 0 -14px 16px -12px rgba(0, 0, 0, .4);
}
.yc-tamburo-nastro { display: flex; flex-direction: column; will-change: transform; }
.yc-casella { flex: 0 0 auto; aspect-ratio: 10 / 8; display: grid; place-items: center; border-bottom: 1px dashed rgba(29, 60, 140, .14); }
.yc-motivo { width: 76%; height: auto; filter: drop-shadow(0 3px 2px rgba(60, 40, 10, .25)); }
.yc-linee { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.yc-linee polyline { fill: none; stroke: transparent; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.yc-linee .yc-linea--accesa { stroke: var(--yc-terra); opacity: .82; animation: yc-brilla 1s ease-in-out 3; }
@keyframes yc-brilla { 50% { opacity: .35; } }
.yc-lim-comandi { display: grid; gap: 16px; justify-items: start; background: #fffdf7; border-radius: 18px; padding: 20px; box-shadow: 0 0 0 2px var(--yc-cobalto); }
.yc-lim-totale { margin: 0; }
.yc-lim-ultimo:empty { display: none; }
.yc-lim-ultimo { margin: 0; min-height: 1.5em; font-family: var(--yc-insegna-font); font-size: 2rem; color: var(--yc-foglia); line-height: 1; }
@media (max-width: 899px) {
  .yc-lim { grid-template-columns: minmax(0, 1fr); }
  .yc-vetrina { max-width: 520px; width: calc(100% - 20px); justify-self: center; }
  .yc-lim-comandi { justify-items: center; text-align: center; }
}
@media (max-width: 420px) { .yc-tamburi { gap: 6px; } .yc-vetrina { padding: 12px 6px; gap: 4px; } .yc-linee-numeri { width: 16px; font-size: .85rem; } }

/* alta o bassa */
.yc-alta { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr); grid-template-areas: "tavola lato" "comandi lato" "storia storia"; gap: 18px; }
.yc-alta-tavola { grid-area: tavola; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 22px 34px; background: rgba(255, 253, 247, .9); border-radius: 18px; padding: 22px 16px 14px; box-shadow: 0 0 0 2px var(--yc-cobalto); }
.yc-mazzo { position: relative; width: 120px; aspect-ratio: 120 / 190; }
.yc-mazzo-dorso { position: absolute; inset: 0; border-radius: 10px; background: url("../foto/azulejo.svg") center / 40px 40px, #f3f0e6; box-shadow: inset 0 0 0 5px var(--yc-cobalto), inset 0 0 0 7px var(--yc-latte), 0 3px 4px rgba(0, 0, 0, .25); }
.yc-mazzo-dorso:nth-child(2) { transform: translate(4px, -4px); }
.yc-mazzo-dorso:nth-child(3) { transform: translate(8px, -8px); }
.yc-alta-scoperta { margin: 0; width: 160px; aspect-ratio: 120 / 190; display: grid; place-items: center; }
.yc-alta-scoperta .yc-carta-svg { width: 100%; height: 100%; filter: drop-shadow(0 10px 10px rgba(40, 30, 10, .35)); }
.yc-alta-scoperta--gira { animation: yc-volta .42s ease-out; }
@keyframes yc-volta { from { transform: perspective(600px) rotateY(85deg); } to { transform: none; } }
.yc-alta-vuota { width: 100%; height: 100%; display: grid; place-items: center; text-align: center; padding: 10px; border: 3px dashed #b7c3e3; border-radius: 12px; color: var(--yc-inchiostro-tenue); font-style: italic; }
.yc-alta-resto { flex: 1 0 100%; text-align: center; margin: 0; font-weight: 600; color: var(--yc-inchiostro-tenue); font-size: .95rem; }
.yc-alta-lato { grid-area: lato; background: #fffdf7; border-radius: 18px; padding: 16px; box-shadow: 0 0 0 2px var(--yc-cobalto); }
.yc-scala-titolo { font-family: var(--yc-insegna-font); font-weight: 700; color: var(--yc-cobalto); font-size: 1.4rem; margin: 0 0 8px; display: flex; justify-content: space-between; align-items: baseline; }
.yc-scala-titolo span { font-family: var(--yc-testo-font); font-size: .85rem; font-style: italic; font-weight: 500; color: var(--yc-inchiostro-tenue); }
.yc-scala { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.yc-piolo { display: flex; justify-content: space-between; align-items: center; padding: 6px 12px; border-radius: 8px; background: #f3eee1; border: 2px solid transparent; font-variant-numeric: tabular-nums; }
.yc-piolo-n { font-weight: 800; color: var(--yc-inchiostro-tenue); }
.yc-piolo-v { font-weight: 700; }
.yc-piolo--preso { background: var(--yc-limone); }
.yc-piolo--preso .yc-piolo-n { color: var(--yc-inchiostro); }
.yc-piolo--prossimo { border: 2px dashed var(--yc-cobalto); background: #fff; }
.yc-alta-comandi { grid-area: comandi; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; background: rgba(255, 253, 247, .9); border-radius: 18px; padding: 16px; box-shadow: 0 0 0 2px var(--yc-cobalto); }
.yc-alta-scelte { display: flex; gap: 12px; }
.yc-alta-storia-box { grid-area: storia; background: rgba(255, 253, 247, .9); border-radius: 14px; padding: 10px 14px; box-shadow: 0 0 0 2px var(--yc-cobalto); }
.yc-alta-storia-box .yc-sotto { margin: 0 0 6px; }
.yc-alta-storia { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; min-height: 66px; }
.yc-alta-storia li { width: 42px; }
.yc-alta-storia .yc-carta-svg { width: 100%; height: auto; display: block; }
@media (max-width: 899px) {
  .yc-alta { grid-template-columns: minmax(0, 1fr); grid-template-areas: "tavola" "comandi" "lato" "storia"; }
  .yc-scala { display: flex; flex-direction: row-reverse; flex-wrap: wrap; }
  .yc-piolo { flex: 1 1 17%; flex-direction: column; padding: 4px 2px; font-size: .9rem; }
}
@media (max-width: 420px) {
  .yc-mazzo { width: 92px; }
  .yc-alta-scoperta { width: 130px; }
  .yc-alta-tavola { gap: 16px 22px; }
  .yc-alta-scelte { width: 100%; }
  .yc-alta-scelte .yc-smalto { flex: 1 1 0; padding-left: .6em; padding-right: .6em; }
}

/* piastrella */
.yc-pias { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 22px; align-items: center; }
.yc-lastra-cornice { max-width: 470px; width: calc(100% - 20px); justify-self: center; padding: 16px; background: #fffdf7; border-radius: 10px; box-shadow: 0 0 0 4px var(--yc-cobalto), 0 0 0 9px #fffdf7, 0 0 0 12px var(--yc-terra), 0 28px 30px -20px rgba(40, 30, 10, .65); margin: 12px; }
.yc-lastra { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.yc-quadro { position: relative; aspect-ratio: 1; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: radial-gradient(circle at 40% 30%, #fffef8, #f1e8d2); box-shadow: inset 0 0 0 2px #d9cdb0; cursor: pointer; }
.yc-quadro:disabled { cursor: default; }
.yc-quadro-motivo { position: absolute; inset: 0; display: grid; place-items: center; }
.yc-quadro-motivo img { width: 80%; height: auto; }
.yc-quadro-smalto { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.yc-quadro-smalto[hidden] { display: none; }
.yc-quadro:disabled .yc-quadro-smalto { cursor: default; }
.yc-quadro:focus-visible { outline: 4px solid var(--yc-limone); outline-offset: 2px; }
.yc-quadro--trio { box-shadow: inset 0 0 0 4px var(--yc-limone), 0 0 0 3px var(--yc-cobalto); background: radial-gradient(circle, #fff7cf, #f7dc7a); animation: yc-trio 1.2s ease-in-out 2; }
@keyframes yc-trio { 50% { transform: scale(1.05); } }
.yc-pias-lato { display: grid; gap: 14px; justify-items: start; background: #fffdf7; border-radius: 18px; padding: 20px; box-shadow: 0 0 0 2px var(--yc-cobalto); }
.yc-pias-aiuto { margin: 0; }
.yc-pias-stato { margin: 0; font-weight: 700; color: var(--yc-terra-testo); }
@media (max-width: 899px) { .yc-pias { grid-template-columns: minmax(0, 1fr); } .yc-pias-lato { justify-items: center; text-align: center; } }

/* lost */
.yc-smarrito { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 34px; align-items: center; padding-top: 60px; max-width: 900px; }
.yc-smarrito-coccio svg { width: 100%; height: auto; transform: rotate(-8deg); }
.yc-smarrito-codice { font-family: var(--yc-insegna-font); font-weight: 800; font-size: 4rem; color: var(--yc-terra-testo); line-height: 1; margin: 0; }
@media (max-width: 640px) { .yc-smarrito { grid-template-columns: minmax(0, 1fr); } .yc-smarrito-coccio { width: 150px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
