/* ============================================================
 * ArionPlay Casino - basefiles stylesheet
 * Mobile-first (320-430px). The 5-color palette anchors the
 * brand: #0A0A0A background, #E0FFFF brightest text, #48D1CC
 * primary accent, #BBBBBB muted text, #00CED1 secondary accent.
 * Every custom rule uses the sdd3- prefix for namespace safety.
 * ============================================================ */

/* ---------- Reset --------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: #0A0A0A;
    color: #E0FFFF;
    font-family: "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: #48D1CC; text-decoration: none; }
a:hover { color: #00CED1; text-decoration: underline; }
button { font-family: inherit; cursor: pointer; border: 0; }
h1, h2, h3, h4 { margin: 0 0 8px; line-height: 1.3; color: #E0FFFF; }
p { margin: 0 0 12px; color: #BBBBBB; }
ul { margin: 0 0 12px; padding-left: 20px; color: #BBBBBB; }
li { margin: 0 0 6px; }

/* ---------- Mobile canvas frame ------------------------------- */
.sdd3-app {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    background: #0A0A0A;
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
}
@media (min-width: 431px) {
    body { background: #050505; }
    .sdd3-app { box-shadow: 0 0 60px rgba(0, 206, 209, 0.08); }
}

/* ---------- Header -------------------------------------------- */
.sdd3-header {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    background: linear-gradient(180deg, #0d0d0d 0%, #0A0A0A 100%);
    border-bottom: 1px solid rgba(72, 209, 204, 0.25);
    transition: box-shadow .25s ease, background .25s ease;
}
.sdd3-header-scrolled {
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.55);
    background: rgba(10, 10, 10, 0.95);
}
.sdd3-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.sdd3-brand img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    object-fit: cover;
    flex: 0 0 auto;
    background: #0A0A0A;
    border: 1px solid rgba(72, 209, 204, 0.4);
}
.sdd3-brand-text { min-width: 0; }
.sdd3-brand-name {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .3px;
    color: #E0FFFF;
    line-height: 1.1;
    white-space: nowrap;
}
.sdd3-brand-tag {
    font-size: 10px;
    color: #00CED1;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.1;
}
.sdd3-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}
.sdd3-menu-btn {
    background: transparent;
    color: #E0FFFF;
    font-size: 20px;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(72, 209, 204, 0.3);
}

/* ---------- Buttons ------------------------------------------- */
.sdd3-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
    text-decoration: none;
    white-space: nowrap;
}
.sdd3-btn:active { transform: translateY(1px); }
.sdd3-btn-primary {
    background: linear-gradient(135deg, #48D1CC 0%, #00CED1 100%);
    color: #0A0A0A;
    box-shadow: 0 4px 14px rgba(72, 209, 204, 0.35);
}
.sdd3-btn-primary:hover { color: #0A0A0A; box-shadow: 0 6px 18px rgba(0, 206, 209, 0.5); }
.sdd3-btn-ghost {
    background: transparent;
    color: #E0FFFF;
    border: 1px solid rgba(72, 209, 204, 0.55);
}
.sdd3-btn-ghost:hover { color: #00CED1; border-color: #00CED1; }
.sdd3-btn-block { width: 100%; padding: 12px 14px; font-size: 14px; }
.sdd3-btn-lg { padding: 12px 18px; font-size: 15px; }

/* ---------- Hero ---------------------------------------------- */
.sdd3-hero {
    position: relative;
    padding: 18px 14px 16px;
    overflow: hidden;
    background:
      radial-gradient(120% 90% at 80% 0%, rgba(0, 206, 209, 0.18) 0%, transparent 60%),
      radial-gradient(140% 100% at 0% 20%, rgba(72, 209, 204, 0.12) 0%, transparent 55%),
      #0A0A0A;
    border-bottom: 1px solid rgba(72, 209, 204, 0.2);
}
.sdd3-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 206, 209, 0.12);
    border: 1px solid rgba(0, 206, 209, 0.45);
    color: #00CED1;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
}
.sdd3-hero h1 {
    font-size: 24px;
    line-height: 1.2;
    background: linear-gradient(90deg, #E0FFFF 0%, #48D1CC 60%, #00CED1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #E0FFFF;
}
.sdd3-hero p {
    font-size: 13px;
    color: #BBBBBB;
    max-width: 32ch;
    margin-top: 4px;
}
.sdd3-hero-cta { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.sdd3-hero-stats {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}
.sdd3-stat {
    flex: 1 1 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(72, 209, 204, 0.25);
    border-radius: 12px;
    padding: 8px 6px;
    text-align: center;
}
.sdd3-stat-num {
    font-size: 16px;
    font-weight: 800;
    color: #E0FFFF;
    line-height: 1.1;
}
.sdd3-stat-label {
    font-size: 10px;
    color: #BBBBBB;
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-top: 2px;
}

/* ---------- Section shell ------------------------------------- */
.sdd3-section { padding: 18px 14px; }
.sdd3-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.sdd3-section-title {
    font-size: 17px;
    font-weight: 800;
    color: #E0FFFF;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sdd3-section-title::before {
    content: "";
    width: 4px;
    height: 18px;
    background: linear-gradient(180deg, #48D1CC 0%, #00CED1 100%);
    border-radius: 2px;
}
.sdd3-section-more { font-size: 12px; color: #48D1CC; }

/* ---------- Promo banner -------------------------------------- */
.sdd3-banner {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(72, 209, 204, 0.25);
    background: #0A0A0A;
}
.sdd3-banner img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    opacity: .92;
}
.sdd3-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.35) 70%, rgba(10,10,10,0.1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 14px;
}
.sdd3-banner-title {
    font-size: 18px;
    font-weight: 800;
    color: #E0FFFF;
    margin-bottom: 4px;
}
.sdd3-banner-text {
    font-size: 12px;
    color: #BBBBBB;
    margin-bottom: 10px;
    max-width: 24ch;
}
.sdd3-banner .sdd3-btn { align-self: flex-start; }

/* ---------- Category tabs ------------------------------------- */
.sdd3-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 4px 0 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.sdd3-tabs::-webkit-scrollbar { display: none; }
.sdd3-tab {
    flex: 0 0 auto;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(72, 209, 204, 0.25);
    color: #BBBBBB;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .3px;
    transition: all .2s ease;
}
.sdd3-tab-active {
    background: linear-gradient(135deg, #48D1CC 0%, #00CED1 100%);
    color: #0A0A0A;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(72, 209, 204, 0.35);
}

/* ---------- Game grid ----------------------------------------- */
.sdd3-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
@media (min-width: 375px) {
    .sdd3-grid { grid-template-columns: repeat(5, 1fr); gap: 9px; }
}
.sdd3-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(72, 209, 204, 0.18);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
    position: relative;
}
.sdd3-card:hover, .sdd3-card:focus-within {
    transform: translateY(-2px);
    border-color: rgba(0, 206, 209, 0.6);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5);
}
.sdd3-card-img {
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #121212 0%, #1c1c1c 100%);
    position: relative;
    overflow: hidden;
}
.sdd3-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sdd3-card-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 10, 0.55);
    opacity: 0;
    transition: opacity .2s ease;
}
.sdd3-card:hover .sdd3-card-play, .sdd3-card:focus-within .sdd3-card-play { opacity: 1; }
.sdd3-card-play span {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #48D1CC 0%, #00CED1 100%);
    color: #0A0A0A;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
}
.sdd3-card-body {
    padding: 6px 7px 8px;
}
.sdd3-card-name {
    font-size: 11px;
    color: #E0FFFF;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sdd3-card-tag {
    font-size: 9px;
    color: #00CED1;
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-top: 2px;
}
.sdd3-card-hot {
    position: absolute;
    top: 5px;
    left: 5px;
    background: linear-gradient(135deg, #ff5b5b 0%, #ff2a2a 100%);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 6px;
    z-index: 2;
}
.sdd3-panel-hidden { display: none !important; }

/* ---------- Feature cards ------------------------------------- */
.sdd3-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.sdd3-feature {
    background: linear-gradient(160deg, rgba(72, 209, 204, 0.08) 0%, rgba(10, 10, 10, 0.4) 100%);
    border: 1px solid rgba(72, 209, 204, 0.25);
    border-radius: 14px;
    padding: 14px;
}
.sdd3-feature-ico {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(0, 206, 209, 0.15);
    color: #00CED1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 10px;
}
.sdd3-feature h3 { font-size: 14px; color: #E0FFFF; }
.sdd3-feature p { font-size: 12px; margin: 0; }

/* ---------- Article / SEO content ----------------------------- */
.sdd3-prose { font-size: 14px; color: #BBBBBB; }
.sdd3-prose h2 {
    font-size: 18px;
    color: #E0FFFF;
    margin: 18px 0 8px;
    padding-left: 10px;
    border-left: 3px solid #00CED1;
}
.sdd3-prose h3 { font-size: 15px; color: #E0FFFF; margin: 14px 0 6px; }
.sdd3-prose p { font-size: 13px; color: #BBBBBB; }
.sdd3-prose a { color: #48D1CC; }
.sdd3-prose ul { font-size: 13px; }
.sdd3-prose strong { color: #E0FFFF; font-weight: 700; }

/* ---------- Internal link list -------------------------------- */
.sdd3-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.sdd3-link-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(72, 209, 204, 0.2);
    border-radius: 10px;
    font-size: 12px;
    color: #E0FFFF;
    font-weight: 600;
    transition: border-color .2s ease, transform .15s ease;
}
.sdd3-link-item:hover { color: #00CED1; border-color: #00CED1; transform: translateX(2px); }
.sdd3-link-item::before { content: "▸"; color: #00CED1; }

/* ---------- FAQ accordion ------------------------------------- */
.sdd3-acc {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(72, 209, 204, 0.2);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #E0FFFF;
    font-size: 13px;
    width: 100%;
    text-align: left;
}
.sdd3-acc::after { content: "+"; color: #00CED1; font-size: 18px; line-height: 1; }
.sdd3-acc-open::after { content: "–"; }
.sdd3-acc-body {
    display: none;
    padding: 0 14px 12px;
    color: #BBBBBB;
    font-size: 12px;
    margin-top: -4px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(72, 209, 204, 0.15);
    border-top: 0;
    border-radius: 0 0 12px 12px;
}
.sdd3-acc-body-open { display: block; }

/* ---------- Steps --------------------------------------------- */
.sdd3-steps { counter-reset: step; display: grid; gap: 10px; }
.sdd3-step {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 12px;
    align-items: start;
    padding: 12px;
    border: 1px solid rgba(72, 209, 204, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
}
.sdd3-step-num {
    counter-increment: step;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #48D1CC 0%, #00CED1 100%);
    color: #0A0A0A;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sdd3-step-num::before { content: counter(step); }
.sdd3-step h3 { font-size: 14px; margin: 0 0 4px; color: #E0FFFF; }
.sdd3-step p { margin: 0; font-size: 12px; }

/* ---------- Drawer / overlay ---------------------------------- */
.sdd3-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    z-index: 60;
}
.sdd3-overlay-show { opacity: 1; pointer-events: auto; }
.sdd3-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 320px;
    height: 100%;
    background: #0d0d0d;
    border-left: 1px solid rgba(72, 209, 204, 0.3);
    transform: translateX(100%);
    transition: transform .28s ease;
    z-index: 70;
    padding: 18px 16px;
    overflow-y: auto;
}
.sdd3-drawer-open { transform: translateX(0); }
.sdd3-drawer-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.sdd3-drawer-title { font-size: 16px; font-weight: 800; color: #E0FFFF; }
.sdd3-drawer-close {
    background: transparent;
    color: #BBBBBB;
    font-size: 22px;
    width: 32px;
    height: 32px;
    line-height: 1;
}
.sdd3-drawer-nav { display: grid; gap: 6px; }
.sdd3-drawer-nav a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: #E0FFFF;
    font-size: 13px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(72, 209, 204, 0.15);
}
.sdd3-drawer-nav a:hover { color: #00CED1; border-color: #00CED1; }
.sdd3-drawer-cta { margin-top: 16px; display: grid; gap: 8px; }

/* ---------- Footer -------------------------------------------- */
.sdd3-footer {
    border-top: 1px solid rgba(72, 209, 204, 0.2);
    padding: 22px 14px 90px;
    background: #070707;
}
.sdd3-footer h4 {
    font-size: 13px;
    color: #E0FFFF;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 10px;
}
.sdd3-footer-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 18px;
}
.sdd3-footer a { color: #BBBBBB; font-size: 12px; display: block; padding: 3px 0; }
.sdd3-footer a:hover { color: #00CED1; }
.sdd3-footer-bottom {
    border-top: 1px solid rgba(72, 209, 204, 0.15);
    padding-top: 12px;
    font-size: 11px;
    color: #777;
    text-align: center;
    line-height: 1.6;
}

/* ---------- Bottom navigation --------------------------------- */
.sdd3-bottomnav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    max-width: 430px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(13,13,13,0.96) 0%, rgba(8,8,8,0.98) 100%);
    border-top: 1px solid rgba(72, 209, 204, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
}
.sdd3-bottomnav-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: end;
    gap: 2px;
}
.sdd3-bottomnav-item {
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    padding: 6px 2px 4px;
    color: #BBBBBB;
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    line-height: 1.1;
    border-top: 2px solid transparent;
    transition: color .2s ease, border-color .2s ease;
}
.sdd3-bottomnav-item:hover { color: #00CED1; }
.sdd3-bottomnav-item.active {
    color: #00CED1;
    border-top-color: #00CED1;
}
.sdd3-bottomnav-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sdd3-bottomnav-icon svg { width: 20px; height: 20px; }
.sdd3-bottomnav-fab {
    background: linear-gradient(135deg, #48D1CC 0%, #00CED1 100%);
    color: #0A0A0A;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    margin-top: -18px;
    box-shadow: 0 4px 14px rgba(0, 206, 209, 0.5);
    border: 3px solid #0A0A0A;
}
.sdd3-bottomnav-fab svg { width: 22px; height: 22px; }

@media (max-width: 430px) {
    .sdd3-bottomnav { display: block; }
    body { padding-bottom: 0; }
    .sdd3-app { padding-bottom: 90px; }
}
@media (min-width: 431px) {
    .sdd3-app { padding-bottom: 90px; }
}

/* ---------- Utilities ----------------------------------------- */
.sdd3-container { padding: 18px 14px; }
.sdd3-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(72, 209, 204, 0.4) 50%, transparent 100%);
    margin: 18px 0;
}
.sdd3-noscroll { overflow: hidden; }
.sdd3-chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.sdd3-chip {
    font-size: 11px;
    color: #48D1CC;
    background: rgba(72, 209, 204, 0.08);
    border: 1px solid rgba(72, 209, 204, 0.3);
    padding: 4px 10px;
    border-radius: 999px;
}
.sdd3-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.sdd3-trust-item {
    flex: 1 1 30%;
    text-align: center;
    font-size: 10px;
    color: #BBBBBB;
    padding: 8px 4px;
    border: 1px solid rgba(72, 209, 204, 0.2);
    border-radius: 10px;
}
.sdd3-trust-item strong { display: block; color: #00CED1; font-size: 14px; font-weight: 800; }

/* ---------- Print safety -------------------------------------- */
/* ---------- Foundation compatibility additions ----------------- */
.sdd3-mobile-only-note { font-size: 12px; color: #BBBBBB; }
.sdd3-review-score { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.sdd3-review-score > div { text-align: center; padding: 10px 5px; border: 1px solid rgba(72,209,204,.25); border-radius: 10px; background: rgba(72,209,204,.06); }
.sdd3-review-score strong { display: block; color: #00CED1; font-size: 17px; }
.sdd3-callout { padding: 13px; border-left: 3px solid #48D1CC; border-radius: 0 12px 12px 0; background: rgba(72,209,204,.08); margin: 10px 0; }
.sdd3-callout p { margin: 0; }
.sdd3-compact-list { display: grid; gap: 7px; padding-left: 18px; }
.sdd3-promo-link { color: #E0FFFF; font-weight: 700; border-bottom: 1px solid rgba(0,206,209,.55); }
.sdd3-promo-link:hover { color: #00CED1; }
@media print { .sdd3-bottomnav, .sdd3-header { display: none; } }
