body {
    background: #0b0b0b url('../../img/art/alone-background.png') repeat;
    background-size:contain;
    font-family: "Faustina", serif;
    margin: 0;
    cursor: url('../../img/cursor2-white.png'), default;
    color: #e9e9e9;
}

/* Consistent custom cursors */
a, a:link, a:visited, a:hover, a:active { cursor: url('../../img/cursor2-click-white.png') 7 0, pointer; }
p, h1, h2, h3, h4, h5, h6, li, blockquote, input[type="text"], textarea { cursor: url('../../img/cursor2-text-white.png') 0 16, text; }

/* Container for the back link and stream */
.mana-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px  clamp(16px,4vw,60px) 120px;
}

.text-shadow {
    text-shadow:
    -1px -1px 0 rgb(255, 0, 255), /* Top-left shadow */
    1px -1px 0 rgb(0, 208, 255),  /* Top-right shadow */
    -1px 1px 0 rgb(0, 0, 0),  /* Bottom-left shadow */
    1px 1px 0 rgb(0, 255, 21);   /* Bottom-right shadow */
}

.mana-wrapper h1 {
    /* Fluid: min 2.2rem, scales with viewport, caps near previous ~5.5em size */
    font-size: clamp(2.2rem, 8vw, 5.5rem);
    line-height: 1.05;
    margin-bottom: 20px;
    word-break: break-word;
    text-shadow:
    -1px -1px 0 rgb(255, 0, 255), /* Top-left shadow */
    1px -1px 0 rgb(0, 208, 255),  /* Top-right shadow */
    -1px 1px 0 rgb(0, 0, 0),  /* Bottom-left shadow */
    1px 1px 0 rgb(0, 255, 21);   /* Bottom-right shadow */
}

/* Center images */
.mana-wrapper > img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    margin-bottom: 50px;
    cursor: url('../../img/cursor2-click-white.png') 7 0, pointer;
}
.back-link img { height: 42px; width: auto; display: block; }
.back-link:hover { color: #ff82d8; }

/* Masonry-ish two column layout */
/* .mana-grid {
    column-count: 2;
    column-gap: 34px;
} */
.mana-grid {
    display: grid;
    /* Lock at two columns on wide screens */
    grid-template-columns: repeat(2, 1fr);
    gap: 64px;
}
/* Tablet / small laptop: collapse to single column */
@media (max-width: 900px) {
    .mana-grid { gap: 56px; }
}
@media (max-width: 760px) {
    /* Collapse to single column */
    .mana-grid { grid-template-columns: 1fr; gap: 52px; }
}
@media (max-width: 680px) {
    .mana-wrapper { padding: 36px clamp(16px,6vw,32px) 96px; }
    .mana-grid { gap: 50px; }
}
@media (max-width: 560px) {
    .mana-wrapper { padding: 32px clamp(14px,6vw,26px) 80px; }
    .mana-grid { gap: 44px; }
    .mana-card { padding: 24px 20px 26px; margin: 0; }
    .mana-card:nth-child(even),
    .mana-card:nth-child(odd) { transform: none; }
}
@media (max-width: 420px) {
    .mana-grid { gap: 38px; }
    .mana-card { padding: 22px 18px 24px; }
}

/* Make embedded players responsive */
.mana-card iframe[style] { width: 100% !important; max-width: 100% !important; height: 480px; }
@media (max-width: 560px) { .mana-card iframe[style] { height: 420px; } }
@media (max-width: 420px) { .mana-card iframe[style] { height: 380px; } }

.mana-card {
    background: #000;
    padding: 26px 28px 30px;
    margin: 0 0 46px;
    border-radius: 18px;
    position: relative;
    display: block;
    color: #f5f5f5;
    text-decoration: none;
    box-shadow: 0 12px 28px -8px rgba(0,0,0,0.6), 0 4px 10px -2px rgba(0,0,0,0.4);
    transform-origin: 50% 10%;
    will-change: transform;
    transition: transform .25s ease, box-shadow .25s ease;
    break-inside: avoid;
}

/* Alternate slight rotations */
.mana-card:nth-child(even) { transform: rotate(-0.4deg); }
.mana-card:nth-child(odd) { transform: rotate(0.4deg); }

.mana-card:hover { transform: translateY(-6px) rotate(0deg); box-shadow: 0 18px 38px -10px rgba(0,0,0,0.75), 0 6px 16px -2px rgba(0,0,0,0.55); }

.mana-card h2, .mana-card h3, .mana-card p { margin: 0 0 14px; }
.mana-card h2 { font-size: clamp(20px,2.2vw,34px); letter-spacing: .5px; }
.mana-card h3 { font-size: clamp(16px,1.5vw,24px); opacity: .85; }
.mana-card p { font-size: clamp(14px,1.2vw,19px); line-height: 1.5; }

/* Simple media styling inside card */
.mana-card img, .mana-card iframe, .mana-card video { max-width: 100%; border-radius: 12px; display: block; margin: 14px 0 0; }

/* Optional subtle border gradient glow */
.mana-card:before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2px; /* thickness */
    border-radius: inherit;
    background: linear-gradient(140deg,#ff8de1,#7bc6ff 55%,#9d7bff);
        -webkit-mask: linear-gradient(#000000a9 0 0) content-box, linear-gradient(#000 0 0);
                        mask: linear-gradient(#000000a9 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; /* Chrome */
                    mask-composite: exclude; /* Firefox */
    opacity: .25;
    pointer-events: none;
    transition: opacity .35s ease;
}
.mana-card:hover:before { opacity: .55; }

::selection {
  background-color: #00ffb7; /* Sets the background color of the selection to red */
  color: #ff00d4; /* Sets the text color of the selection to white */
}