*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; -webkit-text-size-adjust: 100%; }
body {
    background: #eceff4; color: #1a1f2e; font-family: 'Poppins', sans-serif;
    margin: 0; line-height: 1.5; overflow-x: hidden; max-width: 100%; width: 100%;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
#adv1, #adv2 { max-width: 100%; box-sizing: border-box; overflow: hidden; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 18px; width: 100%; }
.masthead, .body-area { max-width: 100%; overflow-x: hidden; }
.card-content, .feature-info { min-width: 0; }

.masthead { padding: 18px 0 10px; background: #fff; border-bottom: 1px solid #d5dbe6; }
.masthead-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.logo-text { font-weight: 800; font-size: 1.2rem; background: linear-gradient(90deg, #6d28d9, #2563eb); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.find-game {
    flex: 1; min-width: 180px; max-width: 460px; margin: 0 auto;
    display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px;
    border: 1px solid #d5dbe6; border-radius: 22px; background: #f8f9fc;
}
.find-game input { flex: 1; border: 0; outline: none; background: transparent; font-size: 14px; }

.nav-row {
    display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 0 6px;
    justify-content: center; max-width: 100%; overflow-x: hidden;
}
.nav-item {
    padding: 7px 16px; font-size: 13px; font-weight: 600; border-radius: 6px; color: #5c6478;
}
.nav-item:hover { background: #eceff4; }
.nav-item.picked { background: linear-gradient(90deg, #6d28d9, #2563eb); color: #fff; }

.body-area { padding: 24px 0 60px; }

.label-heading {
    font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
    font-weight: 700; color: #6d28d9; margin: 30px 0 12px;
}
.label-heading:first-child { margin-top: 6px; }

.quad-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 8px; }
.quad-item {
    position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 1.2;
    background: #d5dbe6;
}
.quad-item img { width: 100%; height: 100%; object-fit: cover; }
.quad-item span {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px;
    background: linear-gradient(transparent, rgba(0,0,0,.75)); color: #fff;
    font-size: 12px; font-weight: 600;
}

.wide-feature {
    display: grid; grid-template-columns: 1fr; background: #fff;
    border-radius: 14px; overflow: hidden; margin-bottom: 14px; border: 1px solid #d5dbe6;
}
.wide-feature:nth-child(even) .feature-media { order: 0; }
.feature-media { aspect-ratio: 16/9; background: #d5dbe6; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-info { padding: 18px 20px 22px; }
.feature-info h3 { margin: 0 0 8px; font-size: 1.15rem; }
.feature-info p { margin: 0 0 10px; font-size: 14px; color: #5c6478; line-height: 1.5; }
.feature-info .kind { font-size: 11px; font-weight: 700; color: #6d28d9; text-transform: uppercase; }

.mix-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.game-card { background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid #d5dbe6; }
.game-card:hover { transform: translateY(-2px); transition: .2s; box-shadow: 0 8px 22px rgba(26,31,46,.1); }
.card-visual { aspect-ratio: 1; background: #d5dbe6; }
.card-visual img { width: 100%; height: 100%; object-fit: cover; }
.card-content { padding: 12px 14px 15px; }
.card-content h3 { font-size: 14px; margin: 0 0 6px; font-weight: 700; }
.card-blurb { font-size: 12px; color: #5c6478; margin: 0 0 8px; line-height: 1.4; }
.card-extra { font-size: 10px; font-weight: 700; color: #2563eb; text-transform: uppercase; }

.page-heading { text-align: center; font-size: 1.75rem; font-weight: 800; margin: 16px 0 8px; }
.page-lead { text-align: center; color: #5c6478; font-size: 14px; margin-bottom: 24px; }

.copy-block { background: #fff; border: 1px solid #d5dbe6; border-radius: 14px; padding: 26px; margin: 16px 0; }
.copy-block h3 { margin: 0 0 10px; }
.copy-block p { color: #5c6478; line-height: 1.65; }

.bottom-bar { background: #1a1f2e; color: #9aa3b5; padding: 42px 0 32px; margin-top: 28px; }
.bottom-bar h2 { color: #fff; font-size: 1.05rem; margin-bottom: 10px; }
.bottom-bar p { font-size: 13px; line-height: 1.6; max-width: 600px; }
.bottom-bar .links { margin-top: 18px; }
.bottom-bar .links a { color: #c4cce0; margin-right: 18px; font-size: 13px; font-weight: 600; }

#go-up {
    position: fixed; bottom: 20px; right: 20px; width: 44px; height: 44px;
    border: 0; border-radius: 12px; cursor: pointer; z-index: 880; display: none;
    background: linear-gradient(135deg, #6d28d9, #2563eb); color: #fff; font-size: 15px;
}

.privacy-con { background: #fff; border: 1px solid #d5dbe6; border-radius: 14px; padding: 26px; min-height: 460px; }
.privacy-con ul { width: 100% !important; }
.privacy-con h1, .privacy-con h2, .privacy-con h3, .privacy-con div,
.privacy-con ul, .privacy-con ul li, .privacy-con p, .privacy-con span {
    word-wrap: break-word !important; text-wrap: initial !important; margin-left: 0 !important;
}
.privacy-con p { line-height: 1.65; margin: 14px 0; color: #5c6478; }

@media (min-width: 700px) {
    .quad-strip { grid-template-columns: repeat(4, 1fr); }
    .wide-feature { grid-template-columns: 1fr 1fr; }
    .wide-feature:nth-child(even) .feature-media { order: 2; }
    .mix-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
    .mix-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 767px) {
    .container { padding: 0 12px; }
    .masthead-row { flex-direction: column; align-items: stretch; }
    .find-game { max-width: 100%; width: 100%; min-width: 0; }
    .nav-row { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
    .nav-item { flex-shrink: 0; white-space: nowrap; }
    .card-content h3, .card-blurb, .feature-info h3, .feature-info p {
        overflow-wrap: anywhere; word-break: break-word;
    }
    .mix-grid { grid-template-columns: 1fr; gap: 10px; }
    .quad-strip { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}
