section.pile
{
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: fit-content;
}

section.pile .thing
{
    position: absolute;
    display: block;
    border-radius: 10px;
    overflow: hidden;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.5));
    cursor: pointer;
    transition: transform 0.2s ease;
    animation: show_thing 0.5s ease forwards;
}

@keyframes show_thing
{
    from { opacity: 0; scale: 0; }
    60% { opacity: 1; scale: 1.05; }
    to { opacity: 1; scale: 1; }
}

section.pile .thing:hover
{
    z-index: 999 !important;
    transform: scale(1.08) rotate(0deg) !important;
}

section.pile .thing img
{
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    user-select: none;
    pointer-events: none;
}

.tooltip
{
    position: fixed;
    opacity: 0;
    transition: opacity 0.2s ease;
    padding: 8px 14px;
    background-color: var(--dark);
    color: var(--white);
    border-radius: 999px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    font-family: var(--regular_font);
    font-size: 0.9em;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

.tooltip.active
{
    opacity: 1;
}

.overlay.thing .panel
{
    top: unset;
    bottom: 0;
    transform: translate(-50%, 100%);
    opacity: 0;
    padding: 24px 20px;
    border-bottom: none;
    border-radius: 20px 20px 0 0;
    transition: 0.3s;
}

.overlay.thing.active .panel
{
    opacity: 1;
    transform: translate(-50%, 0);
}

.overlay.thing .name
{
    margin: 0;
    font-weight: 400;
    font-size: 1.6em;
    font-family: var(--regular_font);
}

.overlay.thing .description
{
    font-size: 0.9em;
    opacity: 0.8;
    line-height: 1.4;
    margin-top: 10px;
}

.overlay.thing .description:empty
{
    display: none;
}

.overlay.thing .link
{
    position: relative;
    background-color: var(--white);
    color: var(--dark);
    border-radius: 12px;
    padding: 8px 12px;
    text-decoration: none;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: 0.1s;
}

.overlay.thing .link[href=""],
.overlay.thing .link:not([href])
{
    display: none;
}

.overlay.thing .link::before
{
    content: "";
    height: 16px;
    width: 16px;
    mask-image: url("../gfx/svg/link.svg");
    mask-size: 12px;
    mask-repeat: no-repeat;
    mask-position: center;
    background-color: var(--dark);
}

.overlay.thing .link:hover
{
    background-color: var(--hover);
}

.overlay.thing .link:active
{
    background-color: var(--active);
}

.thing_flyer
{
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1002;
    overflow: hidden;
    pointer-events: none;
    will-change: transform, width, height;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.5));
}

.thing_flyer img
{
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    user-select: none;
    pointer-events: none;
}