:root {
    --m358-bg: #1c0030;
    --m358-bg-2: #330052;
    --m358-panel: rgba(46, 5, 76, .88);
    --m358-panel-2: rgba(91, 20, 145, .76);
    --m358-purple: #7b2add;
    --m358-purple-2: #a744ff;
    --m358-gold: #ffd95e;
    --m358-red: #d90022;
    --m358-text: #ffffff;
    --m358-muted: #dbc7ff;
    --m358-border: rgba(255, 217, 94, .42);
}
* { box-sizing: border-box; }
body {
    margin: 0;
    background: radial-gradient(circle at top, #450070 0, #1a002a 42%, #090012 100%);
    color: var(--m358-text);
    font-family: "Noto Sans Thai", "Tahoma", "Arial", sans-serif;
    line-height: 1.75;
}
a { color: var(--m358-gold); text-decoration: none; }
a:hover { color: #fff3ad; }
img { max-width: 100%; height: auto; display: block; }
.m358-header {
    position: sticky;
    top: 0;
    z-index: 50;
    overflow: hidden;
    background: linear-gradient(180deg, #071b17 0%, #220036 82%);
    box-shadow: 0 12px 30px rgba(0,0,0,.35);
}
.m358-header-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .42;
    pointer-events: none;
}
.m358-top-strip,
.m358-topbar,
.m358-menu-toggle,
.m358-nav {
    position: relative;
    z-index: 1;
}
.m358-top-strip {
    min-height: 28px;
    background: linear-gradient(90deg, #0d2b20, #48256b, #0c2d26);
}
.m358-topbar {
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.m358-logo img { width: 220px; max-height: 58px; object-fit: contain; }
.m358-login-mini {
    display: flex;
    align-items: center;
    gap: 8px;
}
.m358-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 20px;
    border-radius: 7px;
    color: #fff;
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 8px 18px rgba(0,0,0,.24);
}
.m358-btn-purple { background: linear-gradient(180deg, #b661ff, #6420c5); }
.m358-btn-red { background: linear-gradient(180deg, #ff2727, #ba0000); }
.m358-btn-green { background: linear-gradient(180deg, #35df4f, #109316); }
.m358-menu-toggle {
    display: none;
    margin: 0 auto 8px;
    border: 1px solid var(--m358-border);
    border-radius: 8px;
    background: var(--m358-purple);
    color: #fff;
    padding: 8px 18px;
    font-weight: 800;
}
.m358-nav {
    background: linear-gradient(180deg, #9a45eb, #5f20a6);
    border-top: 1px solid rgba(255,255,255,.18);
    border-bottom: 1px solid rgba(0,0,0,.45);
}
.m358-menu {
    max-width: 1160px;
    margin: 0 auto;
    padding: 10px 12px;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.m358-menu a {
    display: block;
    min-width: 92px;
    text-align: center;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    padding: 7px 9px;
    border-radius: 8px;
    border-bottom: 3px solid transparent;
}
.m358-menu .current-menu-item a,
.m358-menu a:hover {
    color: var(--m358-gold);
    border-color: var(--m358-gold);
    background: rgba(0,0,0,.18);
}
.m358-main {
    min-height: 70vh;
    background-image: linear-gradient(rgba(30,0,48,.72), rgba(20,0,35,.94)), url('../images/m358-home-bg.webp');
    background-size: cover;
    background-attachment: fixed;
    background-position: center top;
}
.m358-page { padding-bottom: 48px; }
.m358-hero {
    max-width: 1905px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    background: #170024;
}
.m358-slider { position: relative; aspect-ratio: 1920 / 465.59; }
.m358-slide {
    display: none;
    width: 100%;
    height: 100%;
}
.m358-slide.is-active { display: block; }
.m358-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.m358-video-strip {
    width: min(1905px, 100%);
    aspect-ratio: 1920 / 81;
    margin: 14px auto 0;
    overflow: hidden;
    border-top: 1px solid rgba(255, 217, 94, .28);
    border-bottom: 1px solid rgba(255, 217, 94, .28);
    background: rgba(10, 0, 18, .72);
    box-shadow: 0 10px 24px rgba(0,0,0,.26);
}
.m358-video-strip video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.m358-hero-copy {
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 20px 22px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: center;
    background: linear-gradient(90deg, rgba(83,12,125,.98), rgba(29,0,45,.96));
    border-top: 1px solid rgba(255,255,255,.12);
    border-bottom: 1px solid var(--m358-border);
}
.m358-hero-copy h1 { margin: 0 0 4px; font-size: clamp(28px, 4vw, 48px); line-height: 1.15; color: var(--m358-gold); }
.m358-hero-copy p { margin: 0; color: var(--m358-muted); }
.m358-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.m358-announcement {
    background: rgba(27,0,42,.95);
    border-top: 1px solid rgba(255,255,255,.08);
    border-bottom: 1px solid rgba(255,255,255,.08);
    color: #fff;
    padding: 8px 16px;
    text-align: center;
    font-size: 14px;
}
.m358-container {
    width: min(1120px, calc(100% - 28px));
    margin: 0 auto;
}
.m358-section { padding: 38px 0; }
.m358-category-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    align-items: end;
    padding-top: 30px;
}
.m358-category-card {
    display: grid;
    gap: 8px;
    place-items: center;
    color: #fff;
    transform: translateY(0);
    transition: transform .2s ease;
}
.m358-category-card:hover { transform: translateY(-5px); }
.m358-category-card img {
    width: 170px;
    max-width: 100%;
    filter: drop-shadow(0 10px 18px rgba(0,0,0,.45));
}
.m358-jackpot {
    margin: 26px auto 0;
    width: min(780px, 100%);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 0 0 2px rgba(255,217,94,.35), 0 12px 38px rgba(0,0,0,.45);
}
.m358-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.m358-card, .m358-content-box, .m358-table-wrap {
    background: linear-gradient(180deg, rgba(61,7,95,.92), rgba(32,0,55,.92));
    border: 1px solid var(--m358-border);
    border-radius: 12px;
    box-shadow: 0 14px 40px rgba(0,0,0,.3);
}
.m358-card { overflow: hidden; }
.m358-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.m358-card-body { padding: 16px; }
.m358-card h3 { margin: 0 0 6px; color: var(--m358-gold); font-size: 20px; }
.m358-card p { margin: 0; color: var(--m358-muted); }
.m358-content-box { padding: clamp(18px, 3vw, 30px); margin-top: 20px; }
.m358-content-box h2, .m358-section-title {
    color: var(--m358-gold);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.25;
    margin: 0 0 14px;
}
.m358-content-box h3 { color: #fff6bd; margin: 20px 0 8px; }
.m358-content-box p { color: #f2eaff; margin: 0 0 14px; }
.m358-content-box ul, .m358-content-box ol { padding-left: 1.35rem; color: #f4ebff; }
.m358-feature-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 18px 0;
}
.m358-feature {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    padding: 14px;
}
.m358-feature strong { color: var(--m358-gold); display: block; margin-bottom: 4px; }
.m358-table-wrap { overflow-x: auto; margin: 18px 0; }
.m358-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.m358-table th, .m358-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255,255,255,.12);
    text-align: left;
}
.m358-table th { color: #2a003c; background: var(--m358-gold); }
.m358-table td { color: #fff; }
.m358-wide-image {
    border-radius: 14px;
    overflow: hidden;
    margin: 18px 0;
    border: 1px solid var(--m358-border);
    background: rgba(0,0,0,.25);
}
.m358-wide-image img { width: 100%; }
.m358-promo-image { max-width: 720px; margin-left: auto; margin-right: auto; }
.m358-footer {
    background: #12001d;
    border-top: 1px solid var(--m358-border);
}
.m358-footer-inner {
    width: min(1120px, calc(100% - 28px));
    margin: 0 auto;
    padding: 28px 0;
    display: grid;
    gap: 18px;
}
.m358-footer-brand {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 18px;
    align-items: center;
}
.m358-footer-brand p { margin: 0; color: var(--m358-muted); }
.m358-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
}
.m358-footer-links a { color: #fff; }
.m358-copyright { color: var(--m358-gold); margin: 0; }
@media (max-width: 860px) {
    .m358-topbar { flex-direction: column; padding: 8px 14px; }
    .m358-login-mini { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
    .m358-login-mini .m358-btn { min-height: 42px; }
    .m358-menu-toggle { display: block; }
    .m358-nav { display: none; }
    .m358-nav.is-open { display: block; }
    .m358-menu { display: grid; grid-template-columns: repeat(2, 1fr); padding: 10px 14px; }
    .m358-menu a { min-width: 0; }
    .m358-hero-copy { grid-template-columns: 1fr; margin: 0; }
    .m358-hero-actions { justify-content: flex-start; }
    .m358-category-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .m358-grid { grid-template-columns: 1fr; }
    .m358-feature-list { grid-template-columns: 1fr; }
    .m358-footer-brand { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .m358-slider { aspect-ratio: 1920 / 465.59; }
    .m358-login-mini { grid-template-columns: 1fr; }
    .m358-category-card img { width: 132px; }
    .m358-section { padding: 26px 0; }
}

/* M358 icon menu and 1920x102 header band */
.m358-top-strip { display: none; }
.m358-topbar {
    min-height: 102px;
    padding: 12px 22px;
}
.m358-header-bg {
    height: 102px;
    object-position: center top;
    opacity: .58;
}
.m358-logo img {
    width: 238px;
    max-height: 78px;
}
.m358-nav {
    background: linear-gradient(180deg, #a44cff 0%, #7b24df 54%, #4c148d 100%);
}
.m358-menu {
    max-width: 1280px;
    padding: 8px 12px;
    gap: 10px;
}
.m358-menu a {
    min-width: 142px;
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 7px 10px;
    font-size: 15px;
    line-height: 1.15;
    border-radius: 10px;
    white-space: nowrap;
}
.m358-menu a::before {
    content: "";
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    filter: drop-shadow(0 4px 5px rgba(0,0,0,.45));
}
.m358-menu li:nth-child(1) a::before { background-image: url("../images/m358-menu-home.png"); }
.m358-menu li:nth-child(2) a::before { background-image: url("../images/m358-menu-credit.png"); }
.m358-menu li:nth-child(3) a::before { background-image: url("../images/m358-menu-slot.png"); }
.m358-menu li:nth-child(4) a::before { background-image: url("../images/m358-menu-casino.png"); }
.m358-menu li:nth-child(5) a::before { background-image: url("../images/m358-menu-shot.png"); }
.m358-menu li:nth-child(6) a::before { background-image: url("../images/m358-menu-vip.png"); }
.m358-menu li:nth-child(7) a::before { background-image: url("../images/m358-menu-club.webp"); }
@media (max-width: 860px) {
    .m358-topbar { min-height: 96px; }
    .m358-header-bg { height: 96px; }
    .m358-menu a {
        min-width: 0;
        min-height: 48px;
        justify-content: flex-start;
        font-size: 14px;
    }
    .m358-menu a::before {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }
}

/* Home M358 long-form intro */
.m358-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 20px 0 26px;
}
.m358-info-card {
    padding: 16px;
    border: 1px solid rgba(255, 217, 94, .26);
    border-radius: 12px;
    background: rgba(255,255,255,.07);
}
.m358-info-card h3 {
    margin-top: 0;
}
.m358-info-card a {
    display: inline-flex;
    margin-top: 4px;
    color: var(--m358-gold);
    font-weight: 800;
}
.m358-faq-list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}
.m358-faq-item {
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 10px;
    background: rgba(0,0,0,.18);
    padding: 0;
    overflow: hidden;
}
.m358-faq-item summary {
    cursor: pointer;
    padding: 12px 14px;
    color: var(--m358-gold);
    font-weight: 800;
}
.m358-faq-item p {
    padding: 0 14px 14px;
}
@media (max-width: 760px) {
    .m358-info-grid {
        grid-template-columns: 1fr;
    }
}

/* M358 dynamic jackpot */
.m358-jackpot {
    position: relative;
    width: min(1100px, 100%);
    aspect-ratio: 1100 / 122;
    margin: 0 auto 24px;
    border-radius: 18px;
    overflow: hidden;
    background: #21002f;
    box-shadow: 0 0 0 2px rgba(255,217,94,.35), 0 12px 38px rgba(0,0,0,.45);
}
.m358-jackpot > img {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.m358-jackpot-display {
    position: absolute;
    z-index: 2;
    left: 29.5%;
    right: 12.2%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(2px, .28vw, 5px);
    white-space: nowrap;
    pointer-events: none;
}
.m358-jackpot-digit,
.m358-jackpot-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-family: Impact, "Arial Black", Tahoma, sans-serif;
    font-size: clamp(17px, 3.05vw, 47px);
    color: #fff;
    text-shadow: 0 2px 0 #000, 0 0 10px rgba(255,255,255,.28);
}
.m358-jackpot-digit {
    width: clamp(18px, 3.15vw, 51px);
    height: clamp(25px, 4.1vw, 62px);
    border-radius: 7px;
    background: linear-gradient(180deg, #151515, #020202);
    border: 2px solid rgba(255,255,255,.92);
    box-shadow: inset 0 2px 0 rgba(255,255,255,.24), 0 4px 8px rgba(0,0,0,.45);
    overflow: hidden;
}
.m358-jackpot-digit.is-flipping span {
    animation: m358JackpotFlip .34s ease both;
}
.m358-jackpot-mark {
    min-width: clamp(6px, 1vw, 14px);
    color: #fff;
    transform: translateY(.06em);
}
@keyframes m358JackpotFlip {
    0% { transform: translateY(-78%); opacity: .35; }
    55% { transform: translateY(8%); opacity: 1; }
    100% { transform: translateY(0); opacity: 1; }
}
.m358-jackpot + .m358-category-row {
    padding-top: 10px;
}
@media (max-width: 760px) {
    .m358-jackpot {
        width: min(1100px, calc(100% + 6px));
        margin-bottom: 18px;
        border-radius: 10px;
    }
    .m358-jackpot-display {
        left: 30%;
        right: 11%;
        gap: 1px;
    }
    .m358-jackpot-digit {
        border-width: 1px;
        border-radius: 4px;
    }
}
/* M358 free credit detail */
.m358-promo-detail {
    margin: 20px 0 24px;
    padding: clamp(16px, 2.4vw, 24px);
    border: 1px solid rgba(255, 217, 94, .28);
    border-radius: 12px;
    background: rgba(255,255,255,.06);
}
.m358-promo-detail h2,
.m358-promo-detail h3 {
    color: var(--m358-gold);
}
.m358-promo-detail h2 {
    margin-top: 0;
}
.m358-promo-detail ol {
    margin-bottom: 0;
}
/* M358 free credit page banner */
.m358-page-banner {
    aspect-ratio: 1920 / 574;
}
.m358-content-hero-copy {
    max-width: none;
    margin: 0 0 22px;
    border: 1px solid rgba(255, 217, 94, .26);
    border-radius: 12px;
}
.m358-content-box > .m358-content-hero-copy:first-child {
    margin-top: 0;
}
@media (max-width: 760px) {
    .m358-page-banner {
        aspect-ratio: 1920 / 574;
    }
    .m358-content-hero-copy {
        padding: 14px;
    }
}
/* M358 slot page full layout */
.m358-slot-page-banner {
    aspect-ratio: 1920 / 276;
}
.m358-slot-hot-list {
    margin-bottom: 34px;
    padding: clamp(16px, 2.4vw, 24px);
    border: 1px solid rgba(255,217,94,.28);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(61,7,95,.92), rgba(25,0,45,.92));
    box-shadow: 0 14px 40px rgba(0,0,0,.3);
}
.m358-slot-hot-list h2 {
    margin: 0 0 8px;
    color: var(--m358-gold);
    font-size: clamp(24px, 3vw, 34px);
}
.m358-slot-hot-list > p {
    color: #f2eaff;
    margin: 0 0 18px;
}
.m358-slot-game-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px 14px;
}
.m358-slot-game-card {
    text-align: center;
    color: #fff;
}
.m358-slot-game-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 0 0 2px rgba(255,255,255,.16), 0 8px 18px rgba(0,0,0,.36);
    background: rgba(0,0,0,.25);
}
.m358-slot-game-card span {
    display: inline-flex;
    justify-content: center;
    min-width: 78%;
    margin: 8px auto 4px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(151, 70, 228, .86);
    color: #fff;
    font-size: 13px;
    line-height: 1.2;
}
.m358-slot-game-card h3 {
    margin: 0 0 4px;
    color: #fff;
    font-size: 15px;
    line-height: 1.25;
}
.m358-slot-game-card p {
    margin: 0;
    color: #d9c6f4;
    font-size: 13px;
    line-height: 1.45;
}
@media (max-width: 980px) {
    .m358-slot-game-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 560px) {
    .m358-slot-page-banner {
        aspect-ratio: 1920 / 276;
    }
    .m358-slot-game-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 10px;
    }
    .m358-slot-game-card h3 {
        font-size: 13px;
    }
    .m358-slot-game-card p {
        display: none;
    }
}






/* M358 slot page visibility polish */
.m358-slot-section {
    padding-top: clamp(22px, 3vw, 38px);
}
.m358-slot-section .m358-slot-plain-banner {
    display: block;
    width: min(1120px, 100%);
    margin: 0 auto 26px;
    padding: 0;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 1920 / 276;
    background: url('/wp-content/themes/m358club/assets/images/m358-slot-page-banner.webp') center / cover no-repeat;
    box-shadow: 0 16px 42px rgba(0,0,0,.34);
    position: relative;
    z-index: 2;
}
.m358-slot-section .m358-slot-plain-banner img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1920 / 276;
    object-fit: cover;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative;
    z-index: 3;
}
.m358-hero-copy {
    width: min(1120px, calc(100% - 28px));
    max-width: none;
    margin: 0 auto 22px;
    padding: clamp(18px, 2.6vw, 30px);
    border: 1px solid var(--m358-border);
    border-radius: 12px;
    border-bottom: 1px solid var(--m358-border);
    background: linear-gradient(180deg, rgba(61,7,95,.92), rgba(32,0,55,.92));
    box-shadow: 0 14px 40px rgba(0,0,0,.3);
}
.m358-slot-thailand-rise {
    margin: 0 auto 28px;
    padding: clamp(18px, 2.8vw, 30px);
    border: 1px solid var(--m358-border);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(61,7,95,.92), rgba(32,0,55,.92));
    box-shadow: 0 14px 40px rgba(0,0,0,.3);
}
.m358-slot-thailand-rise h2,
.m358-slot-thailand-rise h3 {
    color: var(--m358-gold);
    line-height: 1.28;
}
.m358-slot-thailand-rise h1 {
    margin: 0 0 12px;
    color: var(--m358-gold);
    font-size: clamp(30px, 3.6vw, 44px);
    line-height: 1.2;
}
.m358-slot-thailand-rise h1 a {
    color: inherit;
}
.m358-slot-thailand-rise h2 {
    margin: 0 0 14px;
    font-size: clamp(26px, 3vw, 36px);
}
.m358-slot-thailand-rise h3 {
    margin: 24px 0 10px;
    font-size: clamp(20px, 2.2vw, 26px);
}
.m358-slot-thailand-rise p {
    margin: 0 0 14px;
    color: #f2eaff;
    line-height: 1.82;
}
.m358-slot-thailand-rise a {
    color: #fff2a6;
    text-decoration: none;
}
.m358-slot-lead {
    font-size: 17px;
}
.m358-slot-toc {
    margin: 18px 0 26px;
    border: 1px solid rgba(255,217,94,.28);
    border-radius: 12px;
    background: rgba(18,0,33,.45);
    overflow: hidden;
}
.m358-slot-toc summary {
    cursor: pointer;
    padding: 12px 16px;
    color: var(--m358-gold);
    font-weight: 800;
    list-style-position: inside;
}
.m358-slot-toc nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 10px;
    padding: 0 16px 16px;
}
.m358-slot-toc nav a {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(151,70,228,.26);
    color: #fff2a6;
    line-height: 1.35;
}
.m358-slot-toc nav a:hover {
    background: rgba(151,70,228,.46);
}
.m358-slot-thailand-rise :target,
.m358-content-box :target,
.m358-slot-hot-list:target {
    scroll-margin-top: 120px;
}
.m358-slot-promo-card {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
    gap: clamp(14px, 2vw, 24px);
    align-items: center;
    margin: 22px 0;
    padding: clamp(12px, 1.8vw, 18px);
    border: 1px solid rgba(255,217,94,.32);
    border-radius: 12px;
    background: rgba(18,0,33,.45);
}
.m358-slot-promo-card img {
    display: block;
    width: 100%;
    aspect-ratio: 1220 / 410;
    object-fit: cover;
    border-radius: 10px;
    background: url('/wp-content/themes/m358club/assets/images/m358-slot-promo-100.webp') center / cover no-repeat;
    box-shadow: 0 10px 26px rgba(0,0,0,.28);
    opacity: 1 !important;
    visibility: visible !important;
}
.m358-slot-promo-card span {
    display: inline-flex;
    margin-bottom: 8px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(151,70,228,.85);
    color: #fff;
    font-weight: 700;
}
.m358-slot-promo-card h3 {
    margin-top: 0;
}
@media (max-width: 560px) {
    .m358-slot-section {
        padding-top: 18px;
    }
    .m358-slot-section .m358-slot-plain-banner {
        margin-bottom: 18px;
        border-radius: 8px;
    }
    .m358-slot-promo-card {
        grid-template-columns: 1fr;
    }
    .m358-slot-toc nav {
        grid-template-columns: 1fr;
    }
    .m358-hero-copy {
        width: min(1120px, calc(100% - 28px));
        margin-left: auto;
        margin-right: auto;
    }
}

/* M358 casino page full layout */
.m358-casino-hero {
    padding: clamp(22px, 3vw, 38px) 0 0;
}
.m358-casino-banner {
    display: block;
    width: min(1120px, 100%);
    margin: 0 auto 22px;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 1920 / 276;
    background: url('/wp-content/themes/m358club/assets/images/m358-casino-page-banner.webp') center / cover no-repeat;
    box-shadow: 0 16px 42px rgba(0,0,0,.34);
}
.m358-casino-banner img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1920 / 276;
    object-fit: cover;
}
.m358-casino-provider-section {
    padding: 26px 0 10px;
}
.m358-casino-provider-section .m358-container {
    padding: clamp(16px, 2.4vw, 24px);
    border: 1px solid rgba(255,217,94,.28);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(61,7,95,.92), rgba(25,0,45,.92));
    box-shadow: 0 14px 40px rgba(0,0,0,.3);
}
.m358-casino-provider-section h2 {
    margin: 0 0 8px;
    color: var(--m358-gold);
    font-size: clamp(24px, 3vw, 34px);
}
.m358-casino-provider-section > .m358-container > p {
    margin: 0 0 18px;
    color: #f2eaff;
}
.m358-casino-provider-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px 14px;
}
.m358-casino-provider-card {
    text-align: center;
    color: #fff;
}
.m358-casino-provider-card img {
    display: block;
    width: 100%;
    aspect-ratio: 130 / 240;
    object-fit: cover;
    border-radius: 10px;
    background: rgba(0,0,0,.25);
    box-shadow: 0 0 0 2px rgba(255,255,255,.12), 0 8px 18px rgba(0,0,0,.34);
}
.m358-casino-provider-card h3 {
    margin: 8px 0 4px;
    color: #fff;
    font-size: 15px;
    line-height: 1.25;
}
.m358-casino-provider-card p {
    margin: 0;
    color: #d9c6f4;
    font-size: 13px;
    line-height: 1.42;
}
.m358-casino-article .m358-content-box h2 {
    scroll-margin-top: 120px;
}
.m358-casino-article .m358-content-box a {
    color: #fff2a6;
    text-decoration: none;
}
.m358-casino-article .m358-content-box p {
    line-height: 1.82;
}
@media (max-width: 980px) {
    .m358-casino-provider-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
@media (max-width: 560px) {
    .m358-casino-hero {
        padding-top: 18px;
    }
    .m358-casino-banner {
        margin-bottom: 18px;
        border-radius: 8px;
    }
    .m358-casino-provider-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 10px;
    }
    .m358-casino-provider-card h3 {
        font-size: 13px;
    }
    .m358-casino-provider-card p {
        display: none;
    }
}


/* M358 shot page full layout */
.m358-shot-page-banner {
    aspect-ratio: 1920 / 276;
}
.m358-shot-list-section {
    padding: 26px 0 10px;
}
.m358-shot-list-section .m358-container,
.m358-shot-copy {
    padding: clamp(16px, 2.4vw, 24px);
    border: 1px solid rgba(255,217,94,.28);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(61,7,95,.92), rgba(25,0,45,.92));
    box-shadow: 0 14px 40px rgba(0,0,0,.3);
}
.m358-shot-list-section h3 {
    margin: 0 0 8px;
    color: var(--m358-gold);
    font-size: clamp(24px, 3vw, 34px);
}
.m358-shot-list-section > .m358-container > p {
    margin: 0 0 18px;
    color: #f2eaff;
}
.m358-shot-game-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px 16px;
}
.m358-shot-game-card {
    text-align: center;
    color: #fff;
}
.m358-shot-game-card img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    background: rgba(0,0,0,.25);
    box-shadow: 0 0 0 2px rgba(255,255,255,.14), 0 8px 18px rgba(0,0,0,.36);
}
.m358-shot-game-card h3 {
    margin: 8px 0 4px;
    color: #fff;
    font-size: 15px;
    line-height: 1.25;
}
.m358-shot-game-card p {
    margin: 0;
    color: #d9c6f4;
    font-size: 13px;
    line-height: 1.45;
}
.m358-shot-copy {
    width: min(1120px, calc(100% - 32px));
    margin: 24px auto 0;
}
.m358-shot-copy h1 {
    margin-top: 0;
}
.m358-shot-promo {
    display: grid;
    grid-template-columns: minmax(260px, 44%) 1fr;
    gap: clamp(16px, 2.6vw, 28px);
    align-items: center;
    margin: 28px 0;
    padding: clamp(14px, 2vw, 20px);
    border-radius: 12px;
    border: 1px solid rgba(255,217,94,.32);
    background: linear-gradient(135deg, rgba(105,24,149,.88), rgba(42,2,75,.92));
}
.m358-shot-promo img {
    width: 100%;
    display: block;
    border-radius: 10px;
    box-shadow: 0 12px 26px rgba(0,0,0,.35);
}
.m358-shot-promo span {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255,217,94,.16);
    color: #fff1a5;
    font-size: 14px;
}
.m358-shot-promo h3 {
    margin: 0 0 8px !important;
    color: var(--m358-gold);
}
.m358-shot-promo p {
    margin: 0;
}
.m358-shot-article .m358-content-box h2 {
    scroll-margin-top: 120px;
}
.m358-shot-article .m358-content-box a {
    color: #fff2a6;
    text-decoration: none;
}
.m358-shot-article .m358-content-box p {
    line-height: 1.82;
}
@media (max-width: 980px) {
    .m358-shot-game-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .m358-shot-promo {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 560px) {
    .m358-shot-page-banner {
        aspect-ratio: 1920 / 276;
    }
    .m358-shot-list-section {
        padding-top: 18px;
    }
    .m358-shot-game-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 10px;
    }
    .m358-shot-game-card h3 {
        font-size: 13px;
    }
    .m358-shot-game-card p {
        display: none;
    }
    .m358-shot-copy {
        width: min(100% - 22px, 1120px);
        margin-top: 18px;
    }
    .m358-shot-promo {
        margin: 22px 0;
    }
}
/* M358 VIP page full layout */
.m358-vip-page-banner {
    aspect-ratio: 1920 / 560;
}
.m358-vip-page-banner img {
    object-fit: cover;
}
.m358-vip-copy {
    width: min(1120px, calc(100% - 32px));
    margin: 24px auto 0;
    padding: clamp(16px, 2.4vw, 24px);
    border: 1px solid rgba(255,217,94,.28);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(61,7,95,.92), rgba(25,0,45,.92));
    box-shadow: 0 14px 40px rgba(0,0,0,.3);
}
.m358-vip-copy h1 {
    margin-top: 0;
}
.m358-vip-article .m358-content-box a {
    color: #fff2a6;
    text-decoration: none;
}
.m358-vip-article .m358-content-box p,
.m358-vip-article .m358-content-box li {
    line-height: 1.82;
}
.m358-vip-table-wrap {
    overflow-x: auto;
    margin: 22px 0;
    border: 1px solid rgba(255,217,94,.28);
    border-radius: 12px;
    background: rgba(18,0,34,.55);
}
.m358-vip-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    color: #fff;
}
.m358-vip-table th,
.m358-vip-table td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255,255,255,.12);
    border-right: 1px solid rgba(255,255,255,.08);
    text-align: center;
    vertical-align: middle;
    font-size: 14px;
}
.m358-vip-table thead th {
    position: sticky;
    top: 0;
    background: linear-gradient(180deg, rgba(255,208,74,.98), rgba(185,102,8,.98));
    color: #2a0044;
    font-weight: 800;
}
.m358-vip-table tbody th {
    color: var(--m358-gold);
    font-weight: 800;
    background: rgba(255,217,94,.08);
}
.m358-vip-table tbody tr:nth-child(even) {
    background: rgba(255,255,255,.045);
}
.m358-vip-note {
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255,217,94,.24);
    background: rgba(255,217,94,.08);
}
.m358-vip-rules {
    margin: 16px 0 28px;
    padding-left: 1.4em;
}
.m358-vip-rules li {
    margin-bottom: 10px;
}
@media (max-width: 560px) {
    .m358-vip-page-banner {
        aspect-ratio: 1920 / 560;
    }
    .m358-vip-copy {
        width: min(100% - 22px, 1120px);
        margin-top: 18px;
    }
    .m358-vip-table th,
    .m358-vip-table td {
        padding: 10px 8px;
        font-size: 13px;
    }
}
/* M358 SEO EEAT visual fixes */
.m358-trust-box {
    width: min(1120px, calc(100% - 28px));
    margin: 28px auto 0;
    padding: clamp(14px, 2vw, 20px);
    border: 1px solid rgba(255,217,94,.28);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(61,7,95,.9), rgba(24,0,42,.94));
    box-shadow: 0 12px 30px rgba(0,0,0,.24);
    color: #f7edff;
}
.m358-trust-box div {
    display: flex;
    gap: 10px 16px;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.m358-trust-box strong {
    color: var(--m358-gold);
    font-size: 17px;
}
.m358-trust-box span {
    color: #d9c6f4;
    font-size: 14px;
}
.m358-trust-box p {
    margin: 0;
    line-height: 1.75;
}
@media (max-width: 560px) {
    .m358-trust-box {
        width: min(100% - 22px, 1120px);
    }
}