@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600&family=Pinyon+Script&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

/* Reset & Base */
*,
*:after,
*:before {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #f4f4f4;
    /* Default from V14 schema */
    color: #1a1a1a;
    -webkit-font-smoothing: antialiased;
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif;
    overflow-x: hidden;
    overflow-y: hidden;
    /* Prevent scroll */
}

/* Widget Wrapper */
.mlwb-entrance-animations {
    position: relative;
    width: 100vw;
    height: 100vh;
    background-color: #f4f4f4;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
}

/* --- STAGE (1400x1400 Safe) --- */
.mina-stage {
    position: absolute;
    width: 1400px;
    height: 1400px;
    top: 50%;
    left: 50%;
    opacity: 0;
    pointer-events: none;
}

.mina-scene-3d {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 2500px;
    transform-style: preserve-3d;
}

.mina-group {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- CARDS --- */
.mina-card {
    position: absolute;
    width: 260px;
    /* Base width from schema */
    aspect-ratio: var(--mw-aspect, 3/4);
    border-radius: var(--mw-radius, 4px);
    background-color: #e0e0e0;
    /* Skeleton color */
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    transform-style: preserve-3d;
    pointer-events: auto;
    cursor: pointer;
}

.mina-card-inner {
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    overflow: hidden;
    border-radius: var(--mw-radius, 4px);
}

.mina-card img,
.mina-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
    /* transition: transform 0.5s ease; GSAP handles this */
}

/* --- TYPOGRAPHY --- */
.mina-headings {
    position: absolute;
    z-index: 50;
    text-align: center;
    width: 100%;
    mix-blend-mode: difference;
    /* Default blend mode */
    pointer-events: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    /* Ensure visibility with difference mode */
}

.mina-title {
    font-family: 'Cinzel', serif;
    font-size: 150px;
    line-height: 0.85;
    margin: 0;
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: -0.03em;
    color: inherit;
}

.mina-subtitle {
    font-family: 'Pinyon Script', cursive;
    font-size: 55px;
    margin-top: 25px;
    opacity: 0.9;
    color: inherit;
}

/* Grain Overlay */
.mlwb-entrance-animations::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 99;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}


/* GUI */
.demo-gui {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    gap: 10px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 10px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gui-btn {
    appearance: none;
    border: none;
    background: transparent;
    color: #ccc;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gui-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.gui-btn.active {
    background: #fff;
    color: #000;
}