/* Utforming: hide / move tabs, blocks, cards — guests never see this chrome */

.layout-stack {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.layout-stack-main {
    display: contents;
}

.layout-block {
    position: relative;
    order: var(--layout-order, 0);
    min-width: 0;
}

.layout-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    position: relative;
    max-width: 100%;
}

.layout-controls {
    display: none;
    align-items: center;
    gap: 0.1rem;
    z-index: 4;
}

body.is-admin-work .layout-controls {
    display: inline-flex;
}

.layout-ctrl {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    padding: 0;
    border-radius: 0.35rem;
    border: 1px solid rgba(61, 255, 168, 0.45);
    background: rgba(8, 16, 28, 0.92);
    color: #e8f4ff;
    font-size: 0.72rem;
    line-height: 1;
    cursor: pointer;
}

.layout-ctrl:hover {
    border-color: #3dffa8;
    color: #3dffa8;
}

.layout-ctrl-eye[aria-pressed="true"] {
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.55);
}

.layout-block > .layout-controls,
article[data-layout-card] > .layout-controls {
    position: absolute;
    top: 0.35rem;
    left: 0.35rem;
}

body.is-admin-work .layout-block.is-layout-hidden,
body.is-admin-work .layout-nav-item.is-layout-hidden,
body.is-admin-work article[data-layout-card].is-layout-hidden {
    opacity: 0.42;
    outline: 1px dashed rgba(61, 255, 168, 0.4);
    outline-offset: 2px;
}

body:not(.is-admin-work) .layout-block.is-layout-hidden,
body:not(.is-admin-work) .layout-nav-item.is-layout-hidden,
body:not(.is-admin-work) article[data-layout-card].is-layout-hidden {
    display: none !important;
}

.games-compose {
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(61, 255, 168, 0.28);
    background: rgba(8, 16, 28, 0.72);
}

.games-compose .stack {
    gap: 0.55rem;
}

.games-card-link {
    text-decoration: none;
    color: inherit;
}

.games-card-link:hover .blog-card-title {
    color: #3dffa8;
}
