@import url("https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500&family=Cinzel:wght@600;700&family=Cormorant+Garamond:wght@700&display=swap");

.pxl-grid-4-block {
    --bg: #0b0907;
    --bg-2: #13100c;
    --panel: #1a1510;
    --panel-2: #211b14;
    --panel-3: #2a2218;
    --ink: #efe3ca;
    --ink-2: #c9b898;
    --ink-3: #8c7a5e;
    --bronze: #a88860;
    --gold: #d4b896;
    --gold-2: #e8c988;
    --gold-deep: #c9a86a;
    --gold-bright: #f4d87a;
    --star: #e8a93a;
    --rule: rgba(212, 184, 150, 0.18);
    --rule-2: rgba(212, 184, 150, 0.1);
    --glow: rgba(232, 201, 136, 0.12);
    color: var(--ink);
    font-family: "Be Vietnam Pro", system-ui, sans-serif;
    font-weight: 400;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.pxl-grid-4-block *,
.pxl-grid-4-block *::before,
.pxl-grid-4-block *::after {
    box-sizing: border-box;
}

.pxl-grid-4-block .shell {
    max-width: 780px;
    margin: 0 auto;
    padding: 0px;
    position: relative;
    z-index: 1;
}

/* Section preset: hàng co max-width (thay .shell). */
.section.pxl-grid-4-block .pxl-grid-4-limiter {
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.pxl-grid-4-block .frame {
    position: relative;
    border-radius: 28px;
    background:
        radial-gradient(ellipse at top, rgba(212, 184, 150, 0.06), transparent 50%),
        linear-gradient(180deg, var(--panel) 0%, var(--bg-2) 100%);
    box-shadow:
        0 1px 0 rgba(212, 184, 150, 0.1) inset,
        0 0 0 1px rgba(212, 184, 150, 0.18),
        0 30px 60px -30px rgba(0, 0, 0, 0.7),
        0 0 80px -40px rgba(212, 184, 150, 0.15);
}

.pxl-grid-4-block .frame::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(180deg, rgba(232, 201, 136, 0.6) 0%, rgba(168, 136, 96, 0.25) 50%, rgba(232, 201, 136, 0.45) 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.pxl-grid-4-block .frame>.corn {
    position: absolute;
    width: 22px;
    height: 22px;
    border: 1px solid var(--gold);
    opacity: 0.7;
    pointer-events: none;
}

.pxl-grid-4-block .frame>.corn.tl {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
    border-top-left-radius: 14px;
}

.pxl-grid-4-block .frame>.corn.tr {
    top: 10px;
    right: 10px;
    border-left: none;
    border-bottom: none;
    border-top-right-radius: 14px;
}

.pxl-grid-4-block .frame>.corn.bl {
    bottom: 10px;
    left: 10px;
    border-right: none;
    border-top: none;
    border-bottom-left-radius: 14px;
}

.pxl-grid-4-block .frame>.corn.br {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
    border-bottom-right-radius: 14px;
}

.pxl-grid-4-block .banner {
    padding: 56px 28px 70px;
    margin-top: 34px;
}

.pxl-grid-4-block .banner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.pxl-grid-4-block .bcard {
    border-radius: 20px;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    position: relative;
    background:
        radial-gradient(ellipse at top, rgba(244, 216, 122, 0.1) 0%, transparent 60%),
        linear-gradient(180deg, #2a2218 0%, #1a1208 55%, #0f0b07 100%);
    border: 1px solid rgba(212, 184, 150, 0.32);
    transition: 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
    box-shadow:
        0 1px 0 rgba(244, 216, 122, 0.12) inset,
        0 0 0 1px rgba(244, 216, 122, 0.06) inset,
        0 20px 40px -20px rgba(0, 0, 0, 0.7);
}

.pxl-grid-4-block .bcard::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(244, 216, 122, 0.14) 0%, transparent 35%, transparent 65%, rgba(244, 216, 122, 0.08) 100%);
}

.pxl-grid-4-block .bcard::after {
    content: "";
    position: absolute;
    top: 0;
    left: -70%;
    z-index: 0;
    width: 55%;
    height: 100%;
    background: linear-gradient(115deg, transparent 30%, rgba(244, 216, 122, 0.14) 50%, transparent 70%);
    animation: pxl-grid-4-shimmer 5s ease-in-out infinite;
    pointer-events: none;
}

.pxl-grid-4-block .bcard:nth-child(2)::after {
    animation-delay: 1.2s;
}

.pxl-grid-4-block .bcard:nth-child(3)::after {
    animation-delay: 2.4s;
}

.pxl-grid-4-block .bcard:nth-child(4)::after {
    animation-delay: 3.6s;
}

@keyframes pxl-grid-4-shimmer {

    0%,
    100% {
        left: -70%;
    }

    50% {
        left: 120%;
    }
}

.pxl-grid-4-block .bcard:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow:
        0 0 50px -10px rgba(244, 216, 122, 0.5),
        0 0 0 1px rgba(244, 216, 122, 0.3) inset,
        0 30px 50px -20px rgba(0, 0, 0, 0.8);
}

.pxl-grid-4-block .bcard .head {
    position: relative;
    z-index: 2;
    padding: 18px 24px 16px;
    background: linear-gradient(180deg, #5a3a1c 0%, #3e2818 50%, #2a1810 100%);
    border-bottom: 1px solid rgba(244, 216, 122, 0.4);
    box-shadow:
        0 6px 16px -6px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(244, 216, 122, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.45);
}

.pxl-grid-4-block .bcard .head::before,
.pxl-grid-4-block .bcard .head::after {
    content: "";
    position: absolute;
    bottom: -10px;
    width: 18px;
    height: 14px;
    background: linear-gradient(180deg, #3e2818 0%, #2a1810 100%);
    z-index: -1;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
}

.pxl-grid-4-block .bcard .head::before {
    left: 0;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 60%, 0 100%);
}

.pxl-grid-4-block .bcard .head::after {
    right: 0;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 60%, 0 100%);
}

.pxl-grid-4-block .bcard .head .ttl {
    position: relative;
    z-index: 1;
    display: inline-block;
    white-space: nowrap;
    font-family: "Inter", serif;
    font-style: normal;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.05;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    background: linear-gradient(180deg, #fff1c2 0%, #f4d87a 40%, #d4b896 70%, #a88860 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    /* drop-shadow + background-clip:text hay làm chữ “mất” trong iframe UX Builder */
    padding: 0 18px;
}

.pxl-grid-4-block .bcard .head .ttl::before,
.pxl-grid-4-block .bcard .head .ttl::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 14px;
    height: 1px;
}

.pxl-grid-4-block .bcard .head .ttl::before {
    right: 100%;
    background: linear-gradient(90deg, transparent, rgba(244, 216, 122, 0.7));
}

.pxl-grid-4-block .bcard .head .ttl::after {
    left: 100%;
    background: linear-gradient(90deg, rgba(244, 216, 122, 0.7), transparent);
}

.pxl-grid-4-block .bcard .body {
    padding: 24px 14px 26px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    align-items: center;
    min-height: 170px;
    position: relative;
    z-index: 2;
}

.pxl-grid-4-block .bcard .small {
    font-family: "Cormorant Garamond", serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.28em;
    color: var(--gold-bright);
    text-transform: uppercase;
    text-shadow: 0 0 12px rgba(244, 216, 122, 0.35);
}

.pxl-grid-4-block .bcard .big {
    font-family: "Cormorant Garamond", serif;
    font-size: 46px;
    font-weight: 700;
    line-height: 1;
    margin: 6px 0;
    letter-spacing: 0.005em;
    text-transform: uppercase;
    white-space: nowrap;
    background: linear-gradient(180deg, #fff1c2 0%, #f4d87a 30%, #d4b896 65%, #a88860 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pxl-grid-4-block .bcard .big em {
    font-style: italic;
    font-size: 0.7em;
    font-weight: 600;
    vertical-align: baseline;
    margin-left: 4px;
}

.pxl-grid-4-block .banner-logo {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 50%);
    margin: 2.5rem auto 0;
    width: 160px;
    height: 72px;
    background: linear-gradient(180deg, #211b14, #0b0907);
    border: 1px solid var(--gold);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 5;
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.6),
        0 0 30px -10px rgba(232, 201, 136, 0.3);
}

.pxl-grid-4-block .banner-logo .mk {
    width: 38px;
    height: 38px;
    border: 1.5px solid var(--gold);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--gold);
    font-family: "Cinzel", serif;
    font-size: 14px;
    position: relative;
    background: radial-gradient(circle, #2a2218, transparent);
}

.pxl-grid-4-block .banner-logo .mk::after {
    content: "";
    position: absolute;
    inset: 3px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    opacity: 0.4;
}

.pxl-grid-4-block .banner-logo .nm {
    font-family: "Cinzel", serif;
    font-size: 11px;
    letter-spacing: 0.2em;
    line-height: 1.1;
    color: var(--gold);
}

.pxl-grid-4-block .banner-logo .nm em {
    display: block;
    font-size: 8px;
    letter-spacing: 0.32em;
    color: var(--ink-3);
    font-style: normal;
    margin-top: 3px;
}

.pxl-grid-4-block .banner-logo .banner-logo-image {
    display: block;
    max-width: calc(100% - 20px);
    max-height: calc(100% - 20px);
    width: auto;
    height: auto;
    object-fit: contain;
}