/* I bauli e la strada. */

/* --- I bauli e la strada (bauli.js, strada.js) --------------------------------- */

/* Tre bauli in fila sotto «Cerca un avversario», come i forzieri di Clash
   Royale sotto il tasto della battaglia: ognuno con la sua barra, quello
   pieno che salta con «Apri!», quello gia' aperto scuro col tempo che manca. */
#online-bauli {
    display: flex;
    justify-content: center;
    max-width: 330px;
    margin: 4px auto 6px;
}

.baule {
    position: relative;
    flex: 1 1 0;
    max-width: 104px;
    margin: 0 4px;
    padding: 6px 4px 8px;
    box-sizing: border-box;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.22);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    text-align: center;
}

.baule img {
    display: block;
    width: 64px;
    height: 75px;
    margin: 0 auto 2px;
    object-fit: contain;
    filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.4));
}

.baule-nome {
    display: block;
    font-size: 13px;
    letter-spacing: 0.04em;
    opacity: 0.85;
}

.baule-barra {
    position: relative;
    display: block;
    height: 18px;
    margin: 4px 2px 0;
    border-radius: 9px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.45);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.baule-barra i {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 0;
    background-image: linear-gradient(180deg, #fff3b8 0%, #ffd34d 45%, #e9a320 100%);
    transition: width 0.9s cubic-bezier(0.3, 1, 0.4, 1);
}

.baule-barra b {
    position: relative;
    display: block;
    font-size: 12px;
    font-weight: normal;
    line-height: 18px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
    white-space: nowrap;
}

.baule.pronto {
    background: rgba(255, 200, 87, 0.16);
    box-shadow: 0 0 0 2px var(--oro) inset, 0 0 18px rgba(255, 200, 87, 0.45);
}

.baule.pronto img {
    animation: baule-salta 1.4s ease-in-out infinite;
}

.baule-apri {
    display: inline-block;
    margin-top: 4px;
    padding: 1px 12px;
    border-radius: 10px;
    background-image: linear-gradient(#f2d27e, #dfb24a 55%, #c1942f);
    color: #2a1c06;
    font-size: 14px;
    line-height: 18px;
    animation: pulsa 1.6s ease-in-out infinite;
}

.baule.fatto img {
    opacity: 0.55;
    filter: grayscale(0.5) drop-shadow(0 4px 4px rgba(0, 0, 0, 0.4));
}

.baule-dopo {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    line-height: 18px;
    opacity: 0.7;
}

@keyframes baule-salta {
    0%, 60%, 100% { transform: translateY(0) rotate(0); }
    70% { transform: translateY(-9px) rotate(-6deg); }
    80% { transform: translateY(0) rotate(5deg); }
    90% { transform: translateY(-4px) rotate(-3deg); }
}

/* Il pallino di «Gioca online» quando c'e' un baule da aprire */
#apri-online.con-baule {
    position: relative;
}

#apri-online.con-baule::after {
    content: '';
    position: absolute;
    top: -3px;
    right: 14px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--oro);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.3), 0 0 10px rgba(224, 180, 76, 0.8);
}

/* Il baule non pieno: cosa lo riempie, con le voci di oggi spuntate */
#baule-titolo, #baule-apre-titolo, #strada-titolo {
    margin-bottom: 6px;
    font-size: 30px;
    color: #ffc857;
    text-shadow: 0 3px 0 rgba(0, 0, 0, 0.35);
}

.baule-figura {
    width: 120px;
    height: 141px;
    object-fit: contain;
    filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.5));
}

#baule-barra {
    width: 100%;
    max-width: 260px;
    height: 24px;
    margin: 10px 0 12px;
    border-radius: 12px;
}

#baule-barra b {
    font-size: 15px;
    line-height: 24px;
}

.sopra p#baule-dentro {
    margin-bottom: 12px;
    font-size: 17px;
}

#baule-voci {
    width: 100%;
    max-width: 330px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
    text-align: left;
}

#baule-voci li {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
    font-size: 15px;
    line-height: 1.3;
}

#baule-voci li .baule-voce {
    flex: 1;
}

#baule-voci li b {
    flex: none;
    margin-left: 10px;
    color: #ffc857;
}

#baule-voci li.fatta {
    opacity: 0.6;
}

#baule-voci li.fatta b {
    color: #2ecc40;
}

/* La cerimonia: i raggi del premio, il baule che cade e trema, poi si apre e
   a ogni tocco un premio esce volando dalla cassa */
/* qui tutto sta sempre nello schermo, e l'ultimo figlio spesso e' nascosto:
   il margine automatico di .sopra lo spingeva in basso */
#baule-apre {
    overflow: hidden;
    justify-content: center;
}

#baule-apre > :first-child {
    margin-top: 0;
}

#baule-apre::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: -1;
    width: 1000px;
    height: 1000px;
    margin: -500px 0 0 -500px;
    background-image: repeating-conic-gradient(rgba(255, 214, 120, 0.2) 0deg 8deg, rgba(255, 214, 120, 0) 8deg 22.5deg);
    -webkit-mask-image: radial-gradient(circle closest-side, #000 0, #000 30%, transparent 100%);
    mask-image: radial-gradient(circle closest-side, #000 0, #000 30%, transparent 100%);
    animation: premio-gira 22s linear infinite;
    pointer-events: none;
}

#baule-apre .baule-figura {
    width: 170px;
    height: 200px;
    margin: 4px 0 8px;
}

#baule-apre.arriva .baule-figura {
    animation: baule-cade 0.6s cubic-bezier(0.3, 1.4, 0.5, 1) both, baule-trema 1.6s 0.9s ease-in-out infinite;
}

#baule-apre.aperto .baule-figura {
    animation: baule-scoppia 0.35s ease-out both;
}

#baule-apre-premio {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 220px;
}

#baule-apre-premio[hidden] {
    display: none;
}

#baule-apre-premio.esce {
    animation: baule-esce 0.55s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

#baule-apre-disegno {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    margin: 6px 0 4px;
}

#baule-apre-disegno .carta, #baule-apre-disegno .coll-dorso {
    --cw: 90px;
    --ch: 126px;
    --raggio: 9px;
    width: 90px;
    height: 126px;
    border-radius: 9px;
    transform: rotate(-6deg);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.55);
}

#baule-apre-disegno .coll-dorso {
    border-width: 5px;
}

#baule-apre-disegno .coll-cornice {
    width: 136px;
    height: 100px;
    border-radius: 18px;
}

#baule-apre-disegno .coll-cornice.con-cornice::before {
    padding: 10px;
}

#baule-apre-disegno .coll-emoji, #baule-apre-disegno .coll-emoji img {
    width: 110px;
    height: 110px;
    font-size: 88px;
    line-height: 110px;
}

.sopra p#baule-apre-nome {
    margin: 4px 0 4px;
    font-size: 20px;
}

.sopra p#baule-apre-doppione {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 4px;
    font-size: 22px;
}

.sopra p#baule-apre-doppione[hidden] {
    display: none;
}

#baule-apre-doppione .timbro, #vinto-doppione .timbro {
    margin-right: 10px;
    padding: 2px 10px;
    border: 2px solid #ff8a8a;
    border-radius: 8px;
    color: #ff8a8a;
    font-size: 15px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transform: rotate(-6deg);
}

#baule-apre-doppione b, #vinto-doppione b {
    color: #ffc857;
}

.corona {
    width: 24px;
    height: 24px;
    margin-right: 4px;
    vertical-align: -5px;
}

.sopra p#baule-apre-conta {
    margin: 0 0 6px;
    font-size: 16px;
    opacity: 0.8;
}

#baule-apre-tutti {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 340px;
    margin-bottom: 16px;
}

#baule-apre-tutti[hidden] {
    display: none;
}

.baule-tutti-voce {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 100px;
    margin: 4px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    animation: premio-sotto 0.4s ease both;
}

.baule-tutti-voce.doppione {
    opacity: 0.55;
}

.baule-tutti-voce .carta, .baule-tutti-voce .coll-dorso {
    --cw: 52px;
    --ch: 74px;
    --raggio: 6px;
    width: 52px;
    height: 74px;
}

.baule-tutti-voce .coll-cornice {
    width: 70px;
    height: 52px;
    border-radius: 10px;
}

.baule-tutti-voce .coll-emoji, .baule-tutti-voce .coll-emoji img {
    width: 56px;
    height: 56px;
    font-size: 44px;
    line-height: 56px;
}

.baule-tutti-voce .coll-frase {
    font-size: 13px;
}

.rarita-bordo-comune { box-shadow: 0 0 0 2px #b9c3f5 inset; }
.rarita-bordo-rara { box-shadow: 0 0 0 2px #ffab4a inset; }
.rarita-bordo-epica { box-shadow: 0 0 0 2px #c27cff inset; }
.rarita-bordo-leggendaria { box-shadow: 0 0 0 2px #ffe36b inset, 0 0 12px rgba(255, 227, 107, 0.5); }

.sopra p.baule-tutti-corone {
    flex: 0 0 100%;
    margin: 8px 0 0;
    font-size: 17px;
}

@keyframes baule-cade {
    0% { opacity: 0; transform: translateY(-160px) scale(0.6); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes baule-trema {
    0%, 70%, 100% { transform: rotate(0); }
    76% { transform: rotate(-5deg) scale(1.03); }
    82% { transform: rotate(5deg) scale(1.03); }
    88% { transform: rotate(-3deg); }
    94% { transform: rotate(2deg); }
}

@keyframes baule-scoppia {
    0% { transform: scale(0.85); }
    55% { transform: scale(1.12); }
    100% { transform: scale(1); }
}

@keyframes baule-esce {
    0% { opacity: 0; transform: translateY(120px) scale(0.3); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Nel cartello di fine: le corone con la corona, poi i tre bauli piccoli con
   le barre che salgono, e la tappa della strada */
#fine-corone {
    width: 100%;
    max-width: 330px;
    margin: 0 0 16px;
}

.corone-cartello {
    padding: 10px 12px 8px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.25);
}

.sopra p.corone-riga {
    margin: 0 0 8px;
    font-size: 20px;
}

.corone-riga b {
    color: #ffc857;
}

.corone-parti {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    opacity: 0.75;
}

.corone-bauli {
    display: flex;
    justify-content: space-between;
}

.corone-baule {
    position: relative;
    flex: 1 1 0;
    margin: 0 4px;
}

.corone-baule img {
    display: block;
    width: 40px;
    height: 47px;
    margin: 0 auto;
    object-fit: contain;
}

.corone-baule .baule-barra {
    height: 14px;
    margin-top: 2px;
}

.corone-baule .baule-barra b {
    font-size: 10px;
    line-height: 14px;
}

.corone-baule.pieno img {
    animation: baule-salta 1.4s 1.2s ease-in-out infinite;
}

.corone-pieno {
    position: absolute;
    top: -6px;
    left: 50%;
    padding: 0 7px;
    border-radius: 8px;
    background-image: linear-gradient(#f2d27e, #dfb24a 55%, #c1942f);
    color: #2a1c06;
    font-size: 12px;
    line-height: 17px;
    transform: translateX(-50%);
    animation: cer-timbro 0.5s 1.4s cubic-bezier(0.2, 1.5, 0.4, 1) both;
}

.sopra p.corone-apri {
    margin: 8px 0 0;
    font-size: 15px;
    color: #ffc857;
}

/* La strada in sala e nel cartello di fine (strada.js): la mappa del GUI Pro,
   il nome, la tappa, un tratto di strada e quante partite mancano */
.strada-riga {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 330px;
    margin: 2px auto 10px;
    padding: 8px 10px 7px 6px;
    box-sizing: border-box;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.22);
    box-shadow: 0 0 0 1px rgba(255, 200, 87, 0.35) inset;
    text-align: left;
}

.strada-cartello {
    margin: 10px 0 0;
}

.strada-mappa {
    flex: none;
    width: 54px;
    margin-right: 6px;
    filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.45));
}

.strada-corpo {
    display: block;
    flex: 1;
    min-width: 0;
}

.strada-testa {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 15px;
}

.strada-testa b {
    color: #ffc857;
}

.strada-tappa {
    font-size: 13px;
    opacity: 0.85;
}

/* «Tappa 7!» quando la pedina arriva, timbrato come il «Pieno!» dei bauli */
.strada-tappa.strada-timbro {
    padding: 0 7px;
    border-radius: 8px;
    background-image: linear-gradient(#f2d27e, #dfb24a 55%, #c1942f);
    color: #2a1c06;
    opacity: 1;
    animation: cer-timbro 0.5s cubic-bezier(0.2, 1.5, 0.4, 1) both;
}

.strada-manca {
    display: block;
    font-size: 13px;
    opacity: 0.75;
}

.strada-tratto {
    position: relative;
    display: block;
    height: 44px;
    margin: 2px 0 3px;
}

.strada-tratto-fondo, .strada-tratto-oro {
    position: absolute;
    left: 0;
    top: 50%;
    height: 10px;
    margin-top: -5px;
    border-radius: 5px;
}

.strada-tratto-fondo {
    right: 0;
    background: rgba(0, 0, 0, 0.45);
}

.strada-tratto-oro {
    background-image: linear-gradient(180deg, #fff3b8 0%, #ffd34d 45%, #e9a320 100%);
}

.strada-puntini {
    position: absolute;
    top: 50%;
    height: 0;
    margin-top: -1.5px;
    border-top: 3px dotted rgba(255, 255, 255, 0.5);
}

.strada-tratto .strada-sosta {
    top: 50%;
}

.strada-tratto-cima {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: block;
    transform: translate(-50%, -50%);
}

.strada-tratto .strada-pedina {
    top: 50%;
    margin-top: 7px;
}

/* nel cartello la pedina va avanti saltando */
.strada-tratto.in-cammino .strada-pedina {
    transition: left 0.75s cubic-bezier(0.4, 0, 0.3, 1);
}

.strada-tratto.in-cammino .strada-pedina .avatar {
    animation: strada-salto 0.75s ease-in-out;
}

.strada-tratto.in-cammino .strada-tratto-oro {
    transition: width 0.75s cubic-bezier(0.4, 0, 0.3, 1);
}

@keyframes strada-salto {
    0%, 100% { transform: rotate(-7deg) translateY(0); }
    45% { transform: rotate(4deg) translateY(-12px); }
}

.sosta-accesa {
    animation: strada-accesa 0.5s cubic-bezier(0.2, 1.5, 0.4, 1);
}

@keyframes strada-accesa {
    0% { transform: translate(-50%, -50%) scale(0.6); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

/* Le tappe: l'esagono del GUI Pro, dentro il premio, sotto il numero */
.strada-sosta {
    position: absolute;
    z-index: 2;
    display: block;
    transform: translate(-50%, -50%);
}

.sosta-esagono {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.45));
}

.sosta-luce {
    position: absolute;
    left: 50%;
    top: 47%;
    width: 192%;
    transform: translate(-50%, -50%);
    animation: sosta-luce 1.6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes sosta-luce {
    0%, 100% { opacity: 0.55; transform: translate(-50%, -50%) scale(0.97); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.04); }
}

.sosta-dentro {
    position: absolute;
    left: 50%;
    top: 44%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64%;
    height: 54%;
    transform: translate(-50%, -50%);
}

.sosta-dentro > svg, .sosta-pacco {
    width: auto;
    height: 100%;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.4));
}

.sosta-carta .sosta-dentro > svg {
    height: 112%;
}

.sosta-cima .sosta-dentro {
    width: 84%;
    height: 62%;
}

.sosta-cima .sosta-dentro .medaglia-svg {
    position: relative;
    z-index: 2;
    margin-right: -12%;
}

.sosta-cima .sosta-dentro > svg {
    height: 74%;
    transform: rotate(10deg) translateY(10%);
}

.sosta-spunta {
    color: #6b4300;
    font-size: 18px;
    font-weight: normal;
}

.sosta-numero {
    position: absolute;
    left: 50%;
    bottom: -7px;
    min-width: 19px;
    height: 19px;
    padding: 0 4px;
    box-sizing: border-box;
    border-radius: 10px;
    background: #1f1a3a;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 11px;
    line-height: 19px;
    text-align: center;
    transform: translateX(-50%);
}

.sosta-fatta .sosta-numero, .sosta-cima .sosta-numero {
    background-image: linear-gradient(180deg, #fff3b8 0%, #ffd34d 45%, #e9a320 100%);
    color: #2a1c06;
}

.sosta-prossima .sosta-numero {
    background: #2f6fed;
}

.sosta-piccola .sosta-numero {
    bottom: -6px;
    min-width: 14px;
    height: 14px;
    padding: 0 3px;
    font-size: 9px;
    line-height: 14px;
}

.sosta-piccola .sosta-spunta {
    font-size: 13px;
}

/* Il premio di una tappa fatta, in piccolo: strada.js lo scala dalle misure
   dei disegni della Collezione */
.sosta-dono {
    position: relative;
    display: block;
    flex: none;
}

.sosta-dono > svg {
    width: 100%;
    height: 100%;
}

.sosta-dono-dentro {
    --cw: 52px;
    --ch: 74px;
    position: absolute;
    left: 50%;
    top: 50%;
    display: block;
}

.sosta-doppione .sosta-dono-dentro {
    opacity: 0.5;
}

.sosta-corone {
    position: absolute;
    right: -30%;
    bottom: -18%;
    display: flex;
    align-items: center;
    padding: 0 4px 0 1px;
    border-radius: 8px;
    background: rgba(20, 12, 2, 0.85);
    color: #ffd34d;
    font-size: 10px;
    line-height: 14px;
    white-space: nowrap;
}

.sosta-corone img {
    width: 13px;
    height: 13px;
    margin-right: 1px;
}

.sosta-corone b {
    font-weight: normal;
}

/* La strada intera: la salita a tornanti in 340 x 480, che sui telefoni
   stretti strada.js rimpicciolisce tutta */
#strada-tappe {
    position: relative;
    width: 340px;
    height: 480px;
    margin: 4px auto 12px;
}

.strada-disegno {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.strada-fondo, .strada-righe, .strada-oro, .strada-oro-luce {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.strada-fondo {
    stroke: rgba(0, 0, 0, 0.42);
    stroke-width: 18;
}

.strada-righe {
    stroke: rgba(255, 255, 255, 0.3);
    stroke-width: 2;
    stroke-dasharray: 6 9;
}

.strada-oro {
    stroke: #c98a12;
    stroke-width: 18;
}

.strada-oro-luce {
    stroke: #ffd34d;
    stroke-width: 9;
}

.strada-raggi {
    position: absolute;
    z-index: 1;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background-image: repeating-conic-gradient(rgba(255, 214, 120, 0.3) 0deg 8deg, rgba(255, 214, 120, 0) 8deg 22.5deg);
    -webkit-mask-image: radial-gradient(circle closest-side, #000 0, #000 30%, transparent 100%);
    mask-image: radial-gradient(circle closest-side, #000 0, #000 30%, transparent 100%);
    transform: translate(-50%, -50%);
    animation: strada-raggi 30s linear infinite;
    pointer-events: none;
}

@keyframes strada-raggi {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.strada-cima-dida {
    position: absolute;
    left: 240px;
    top: 50px;
    width: 96px;
    color: #ffe7a3;
    font-size: 12px;
    line-height: 1.25;
    text-align: left;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* La pedina: la carta del profilo, in piedi sulla strada */
.strada-pedina {
    position: absolute;
    z-index: 5;
    display: block;
    transform: translate(-50%, -100%);
    filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.6));
    pointer-events: none;
}

.strada-pedina .avatar {
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
    transform: rotate(-7deg);
}

.strada-pedina::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -4px;
    z-index: -1;
    width: 80%;
    height: 6px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    transform: translateX(-50%);
}

/* Cosa da' una tappa da fare, toccata */
.strada-fumetto {
    position: absolute;
    z-index: 6;
    width: 140px;
    padding: 5px 8px;
    box-sizing: border-box;
    border-radius: 12px;
    background: #fdfdfb;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
    color: #1c1c1e;
    font-size: 13px;
    line-height: 1.2;
    text-align: center;
    transform: translate(-50%, -100%);
    pointer-events: none;
}

.strada-fumetto::after {
    content: '';
    position: absolute;
    left: var(--punta, 50%);
    bottom: -6px;
    border: 6px solid transparent;
    border-bottom: 0;
    border-top-color: #fdfdfb;
    transform: translateX(-50%);
}

.strada-fumetto.arriva {
    animation: strada-fumetto 0.25s ease-out;
}

@keyframes strada-fumetto {
    0% { opacity: 0; transform: translate(-50%, -80%) scale(0.85); }
    100% { opacity: 1; transform: translate(-50%, -100%) scale(1); }
}

/* La strada in piccolo, per la figurina del profilo e la cerimonia di fine
   stagione (inPiccolo): i sassi sul filo e la medaglia in fondo */
.strada-piccola {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.strada-piccola::before {
    content: '';
    position: absolute;
    left: 0;
    right: 8px;
    top: 50%;
    height: 2px;
    margin-top: -1px;
    background: rgba(255, 255, 255, 0.18);
}

.strada-piccola i {
    position: relative;
    width: 6px;
    height: 7px;
    background: rgba(255, 255, 255, 0.32);
    -webkit-clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.strada-piccola i.sasso-carta {
    width: 8px;
    height: 9px;
    background: #a96be0;
}

.strada-piccola i.sasso-fatto {
    background: #ffc233;
}

.strada-piccola .medaglia-svg {
    position: relative;
    flex: none;
}

/* La strada sulla figurina: il nome a sinistra e la tappa a destra, e sotto la
   strada in piccolo a tutta riga */
.figurina-strada {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 11px;
}

.figurina-strada-nome {
    margin-right: 8px;
    color: #f7e3a8;
}

.figurina-strada .strada-piccola {
    flex: 1 0 100%;
    margin-top: 6px;
}

.figurina-strada-tappa {
    opacity: 0.75;
}

