*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; -webkit-text-size-adjust: 100%; }
body {
    margin: 0; line-height: 1.5; font-family: 'Poppins', sans-serif;
    background: #f5f6f4; color: #1b2e24; 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; }

.page-wrap { max-width: 1240px; margin: 0 auto; padding: 0 18px; width: 100%; }
.top-bar, .main-content { max-width: 100%; overflow-x: hidden; }
.card-text { min-width: 0; }

.top-bar {
    background: #fff; border-bottom: 1px solid #d8dfd4;
    position: sticky; top: 0; z-index: 900;
}
.bar-inner { padding: 16px 0 10px; text-align: center; }
.brand-link {
    display: inline-block; font-size: 1.25rem; font-weight: 800;
    letter-spacing: -.03em; color: #2d6a4f; margin-bottom: 12px;
}
.brand-link em { font-style: normal; color: #40916c; }

.search-dock {
    max-width: 480px; margin: 0 auto 12px;
    display: flex; align-items: center; gap: 10px; height: 44px;
    padding: 0 16px; border: 1px solid #d8dfd4; border-radius: 22px; background: #f5f6f4;
}
.search-dock input { flex: 1; border: 0; outline: none; background: transparent; font-size: 14px; }
.search-dock .fa { color: #6b7c72; }

.dock-nav {
    display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
    padding-bottom: 10px; max-width: 100%;
}
.dock-tab {
    padding: 7px 16px; font-size: 13px; font-weight: 600; border-radius: 20px;
    color: #4a5d52; background: transparent;
}
.dock-tab:hover { background: #e8ede6; }
.dock-tab.active { background: #2d6a4f; color: #fff; }

.main-content { padding: 22px 0 58px; }

.block-label {
    font-size: 12px; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; color: #40916c; margin: 26px 0 12px;
}
.block-label:first-child { margin-top: 4px; }
.block-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.block-header h2 { font-size: 1.1rem; margin: 0; }
.block-header a { font-size: 13px; font-weight: 600; color: #2d6a4f; }

.stack-card {
    display: block; background: #fff; border-left: 4px solid #40916c;
    border-radius: 0 12px 12px 0; overflow: hidden; margin-bottom: 14px;
    box-shadow: 0 2px 10px rgba(27,46,36,.06);
}
.stack-card:hover { border-left-color: #2d6a4f; }
.stack-card .media { aspect-ratio: 16/7; background: #d8dfd4; }
.stack-card .media img { width: 100%; height: 100%; object-fit: cover; }
.stack-card .card-text { padding: 16px 18px 20px; }
.stack-card .kind { font-size: 11px; font-weight: 700; text-transform: uppercase; color: #40916c; }
.stack-card h3 { font-size: 1.2rem; margin: 6px 0 8px; }
.stack-card p { font-size: 14px; color: #4a5d52; margin: 0; line-height: 1.5; }

.chip-row {
    display: flex; gap: 10px; overflow-x: auto; overflow-y: hidden;
    padding-bottom: 8px; max-width: 100%; min-width: 0;
    -webkit-overflow-scrolling: touch;
}
.chip-game {
    flex: 0 0 100px; text-align: center;
}
.chip-game .round {
    width: 72px; height: 72px; border-radius: 50%; overflow: hidden;
    margin: 0 auto 8px; border: 3px solid #d8dfd4; background: #d8dfd4;
}
.chip-game .round img { width: 100%; height: 100%; object-fit: cover; }
.chip-game span { font-size: 11px; font-weight: 600; line-height: 1.3; display: block; }

.pair-row { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 8px; }
.pair-item {
    display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center;
    background: #fff; border-radius: 12px; padding: 12px; border: 1px solid #d8dfd4;
}
.pair-item:hover { border-color: #40916c; }
.pair-item .shot { width: 120px; height: 80px; border-radius: 8px; overflow: hidden; background: #d8dfd4; }
.pair-item .shot img { width: 100%; height: 100%; object-fit: cover; }
.pair-item h3 { font-size: 15px; margin: 0 0 6px; }
.pair-item p { font-size: 13px; color: #4a5d52; margin: 0 0 6px; line-height: 1.45; }
.pair-item .extra { font-size: 11px; font-weight: 700; color: #2d6a4f; }

.game-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.grid-tile {
    background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid #d8dfd4;
}
.grid-tile:hover { transform: translateY(-2px); transition: .2s; box-shadow: 0 6px 16px rgba(27,46,36,.08); }
.grid-tile .thumb { aspect-ratio: 1; background: #d8dfd4; }
.grid-tile .thumb img { width: 100%; height: 100%; object-fit: cover; }
.grid-tile .card-text { padding: 11px 13px 14px; }
.grid-tile h3 { font-size: 14px; margin: 0 0 5px; font-weight: 700; }
.grid-tile p { font-size: 12px; color: #4a5d52; margin: 0 0 7px; line-height: 1.4; }
.grid-tile .lbl { font-size: 10px; font-weight: 700; text-transform: uppercase; color: #40916c; }

.page-title { font-size: 1.7rem; font-weight: 800; text-align: center; margin: 12px 0 6px; }
.page-sub { text-align: center; color: #4a5d52; font-size: 14px; margin-bottom: 22px; }

.text-block {
    background: #fff; border: 1px solid #d8dfd4; border-radius: 12px;
    padding: 26px; margin: 14px 0;
}
.text-block h3 { margin: 0 0 10px; color: #2d6a4f; }
.text-block p { color: #4a5d52; line-height: 1.65; font-size: 15px; }

.page-foot {
    background: #1b2e24; color: #a8b8ae; padding: 40px 0 30px; margin-top: 20px;
}
.page-foot h2 { color: #fff; font-size: 1.05rem; margin-bottom: 10px; }
.page-foot p { font-size: 13px; line-height: 1.6; max-width: 620px; }
.page-foot .foot-links { margin-top: 18px; }
.page-foot .foot-links a { color: #95d5b2; margin-right: 16px; font-size: 13px; font-weight: 600; }

#back-top {
    position: fixed; bottom: 20px; right: 20px; width: 44px; height: 44px;
    border: 0; border-radius: 50%; cursor: pointer; z-index: 880; display: none;
    background: #2d6a4f; color: #fff; font-size: 15px;
}

.privacy-con {
    background: #fff; border: 1px solid #d8dfd4; border-radius: 12px;
    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: #4a5d52; }

@media (min-width: 700px) {
    .pair-row { grid-template-columns: 1fr 1fr; }
    .game-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
    .game-grid { grid-template-columns: repeat(4, 1fr); }
    .dock-nav { flex-wrap: nowrap; overflow-x: hidden; }
}

@media (max-width: 767px) {
    .page-wrap { padding: 0 12px; }
    .search-dock { max-width: 100%; }
    .dock-nav { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .dock-tab { flex-shrink: 0; white-space: nowrap; }
    .pair-item { grid-template-columns: 88px 1fr; gap: 10px; padding: 10px; }
    .pair-item .shot { width: 88px; height: 58px; }
    .stack-card h3, .stack-card p, .pair-item h3, .pair-item p,
    .grid-tile h3, .grid-tile p, .chip-game span {
        overflow-wrap: anywhere; word-break: break-word;
    }
    .game-grid { grid-template-columns: 1fr; }
}
