:root {
    --bg: #1b120f;
    --bg-header: #1f1512;
    --card-bg: #211612;
    --card-border: #3d2c25;
    --text: #f3e9df;
    --text-muted: #b5a79c;
    --cream: #f7e7d3;
    --gold: #e3ab45;
    --mint: #86d7a6;
    --mint-hover: #9de3b8;
    --green: #1d5a43;
    --green-hover: #23704f;
    --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
    --sans: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
    padding: 0 48px;
}

.arrow {
    width: 1.1em;
    height: 1.1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--sans);
    font-weight: 500;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s, transform .15s;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-mint { background: var(--mint); color: #12271c; }
.btn-mint:hover { background: var(--mint-hover); }

.btn-outline { background: rgba(20, 12, 10, .35); color: var(--cream); border-color: var(--cream); }
.btn-outline:hover { background: var(--cream); color: var(--bg); }

.btn-green { background: var(--green); color: #e6f3eb; padding: 10px 24px; font-size: 17px; }
.btn-green:hover { background: var(--green-hover); }
.btn-green.btn-soon { opacity: .45; }
.btn-green.btn-soon:hover { background: var(--green); }

.btn-sm { padding: 10px 36px; font-size: 17px; }
.btn-lg { padding: 14px 42px; font-size: 20px; min-width: 228px; }

/* ---------- Header ---------- */
.site-header {
    background: var(--bg-header);
    border-bottom: 1px solid #2c201b;
    position: relative;
    z-index: 10;
}
.header-inner {
    display: flex;
    align-items: center;
    height: 72px;
    padding-left: 76px;
    padding-right: 72px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 18px;
    font-family: var(--serif);
    font-size: 36px;
    line-height: 1;
    color: var(--cream);
    white-space: nowrap;
}
.logo-icon { width: 38px; height: 38px; fill: var(--gold); }
.logo-text { display: flex; flex-direction: column; gap: 4px; line-height: 1; }
.logo-name { font-size: 1em; font-family: inherit; font-weight: inherit; color: inherit; }
.logo-sub {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.main-nav {
    display: flex;
    gap: 52px;
    margin-left: 68px;
}
.main-nav a {
    font-size: 16.5px;
    color: #e6dbd1;
    transition: color .2s;
}
.main-nav a:hover { color: var(--mint); }

.header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 42px;
}
.link-login { font-size: 17px; font-weight: 500; color: var(--cream); }
.link-login:hover { color: var(--mint); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 508px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #241812;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 38% 35%, #6a4a26 0%, #3d2916 42%, #1e140f 85%);
}
.hero-bg::before {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 60%;
    background: url("../img/hero.jpg") right center / cover no-repeat;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
}
.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(27,18,15,.9) 0%, rgba(27,18,15,.55) 26%, rgba(27,18,15,0) 50%),
        linear-gradient(0deg, rgba(27,18,15,.6) 0%, rgba(27,18,15,0) 18%);
}
.hero-content {
    position: relative;
    padding-left: 78px;
    padding-top: 40px;
    padding-bottom: 40px;
}
.eyebrow {
    margin: 0 0 6px;
    color: var(--gold);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .28em;
    text-transform: uppercase;
}
.hero-title {
    margin: 0;
    font-family: var(--serif);
    font-weight: 400;
    font-size: 114px;
    line-height: 1.02;
    letter-spacing: -.01em;
    background: linear-gradient(180deg, #fffaf2 0%, #f7e6d0 55%, #e6c39c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 6px 30px rgba(0,0,0,.35);
}
.hero-subtitle {
    margin: 14px 0 0;
    font-family: "Crimson Pro", Georgia, serif;
    font-weight: 400;
    font-size: 42px;
    line-height: 1.2;
    color: var(--cream);
}
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 32px;
}
.online {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
    font-size: 15px;
}
.online-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #4fcf86;
    box-shadow: 0 0 0 0 rgba(79,207,134,.6);
    animation: pulse 2s infinite;
}
.online-join { color: var(--cream); margin-right: 6px; }
.online-count { color: var(--text-muted); }
.online-count strong { font-weight: 400; }

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(79,207,134,.55); }
    70%  { box-shadow: 0 0 0 8px rgba(79,207,134,0); }
    100% { box-shadow: 0 0 0 0 rgba(79,207,134,0); }
}

/* ---------- Games ---------- */
.games { padding: 18px 0 40px; }
.games .container { padding: 0 46px; }
.games .container { max-width: 1680px; }

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px 0 32px;
    margin-bottom: 12px;
}
.section-head h2 {
    margin: 0;
    font-family: var(--serif);
    font-weight: 400;
    font-size: 48px;
    line-height: 1.2;
    color: var(--cream);
}
.link-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--mint);
    font-size: 16px;
    font-weight: 500;
}
.link-all:hover { color: var(--mint-hover); }

.game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.game-card {
    background: var(--card-bg);
    border: 1.5px solid var(--card-border);
    border-radius: 10px;
    overflow: hidden;
    transition: transform .25s, border-color .25s, box-shadow .25s;
}
.game-card:hover {
    transform: translateY(-4px);
    border-color: #5a4236;
    box-shadow: 0 14px 30px rgba(0,0,0,.4);
}
.game-media {
    aspect-ratio: 356 / 156;
    overflow: hidden;
    background: #173a2d;
}
.game-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.game-card:hover .game-media img { transform: scale(1.04); }
/* Yakında: oyun henüz yok; kart tıklanmaz, görsel soluk, yalnızca ad ve etiket görünür. */
.game-card.is-soon { cursor: default; }
.game-card.is-soon:hover { transform: none; border-color: var(--card-border); box-shadow: none; }
.game-card.is-soon .game-media img { filter: saturate(.55) brightness(.75); }
.game-card.is-soon:hover .game-media img { transform: none; }
.soon-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; background: rgba(229, 169, 59, .16); color: var(--mustard, #e5a93b); font-size: 13px; font-weight: 700; letter-spacing: .04em; }

.game-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 20px 18px;
}
.game-body h3 {
    margin: 0;
    font-family: var(--serif);
    font-weight: 400;
    font-size: 26px;
    line-height: 1.2;
    color: var(--cream);
}
.game-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}
.game-badge {
    color: var(--mint);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}
.game-badge::before { content: "\00b7"; margin-right: 8px; color: var(--text-muted); }
.game-players {
    color: var(--text-muted);
    font-size: 14px;
    white-space: nowrap;
}
.game-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
}
.btn-mode {
    flex: 1 1 118px;
    padding: 9px 14px;
    font-size: 14.5px;
    font-family: var(--sans);
    font-weight: 500;
    text-align: center;
    border-radius: 8px;
    border: 1.5px solid var(--card-border);
    background: rgba(255, 255, 255, .03);
    color: var(--cream);
    cursor: pointer;
    transition: border-color .2s, background .2s, color .2s;
}
.btn-mode:hover:not(:disabled) { border-color: var(--mint); color: var(--mint); }
.btn-mode:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }
.btn-mode:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- Responsive ---------- */
@media (max-width: 1480px) {
    .game-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1200px) {
    .header-inner { padding-left: 32px; padding-right: 32px; }
    .main-nav { gap: 32px; margin-left: 40px; }
    .hero-content { padding-left: 48px; }
    .hero-title { font-size: 92px; }
    .hero-subtitle { font-size: 34px; }
}

@media (max-width: 900px) {
    .game-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
    .main-nav { display: none; }
    .header-actions { gap: 20px; }
    .hero-bg::before { width: 100%; -webkit-mask-image: none; mask-image: none; }
    .hero-bg::after { background: linear-gradient(90deg, rgba(27,18,15,.92) 0%, rgba(27,18,15,.6) 100%); }
}

@media (max-width: 600px) {
    .game-body p { white-space: normal; }
    .container, .games .container { padding: 0 16px; }
    .header-inner { padding: 0 16px; height: 64px; }
    .logo { font-size: 28px; gap: 10px; }
    .logo-sub { font-size: 9px; }
    .logo-icon { width: 30px; height: 30px; }
    .link-login { font-size: 15px; white-space: nowrap; }
    .btn-sm { padding: 8px 18px; font-size: 15px; }
    .hero { min-height: 460px; }
    .hero-content { padding: 40px 20px 48px; }
    .eyebrow { font-size: 12px; }
    .hero-title { font-size: 64px; }
    .hero-subtitle { font-size: 26px; }
    .btn-lg { min-width: 0; width: 100%; padding: 12px 24px; font-size: 18px; }
    .online { flex-wrap: wrap; gap: 8px 12px; }
    .section-head { padding: 0 4px; flex-wrap: wrap; gap: 8px; }
    .section-head h2 { font-size: 34px; }
}

@media (max-width: 480px) {
    .game-grid { grid-template-columns: 1fr; }
}

/* ======================================================
   Kıraathane Kültürü sayfası
   ====================================================== */
.main-nav a.active { color: var(--mint); }

.culture-page { overflow-x: hidden; }
.narrow { max-width: 920px; }

/* Hero */
.culture-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #241812;
}
.culture-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center 45%;
}
.culture-hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(27,18,15,.92) 0%, rgba(27,18,15,.6) 40%, rgba(27,18,15,.15) 75%),
        linear-gradient(0deg, rgba(27,18,15,1) 0%, rgba(27,18,15,0) 45%);
}
.culture-hero-content {
    position: relative;
    padding: 120px 48px 64px 78px;
}
.culture-hero .hero-title { font-size: 104px; }

/* Genel bölüm */
.culture-section { padding: 64px 0; }
.culture-section + .culture-section { padding-top: 24px; }
.culture-section .container { padding: 0 78px; }
.culture-section .container.narrow { max-width: 1076px; }
.section-head.plain { padding: 0; margin-bottom: 32px; }
.culture-section h2 {
    margin: 0;
    font-family: var(--serif);
    font-weight: 400;
    font-size: 46px;
    line-height: 1.15;
    color: var(--cream);
}
.culture-section h3 {
    margin: 0 0 8px;
    font-family: var(--serif);
    font-weight: 400;
    font-size: 26px;
    line-height: 1.2;
    color: var(--cream);
}
.culture-section p { color: #d6c9be; font-size: 17px; line-height: 1.7; }

.lead {
    margin: 0;
    font-family: "Crimson Pro", Georgia, serif;
    font-size: 27px !important;
    line-height: 1.55 !important;
    color: var(--cream) !important;
}

.fact-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 44px;
}
.fact {
    background: var(--card-bg);
    border: 1.5px solid var(--card-border);
    border-radius: 10px;
    padding: 22px 24px;
}
.fact strong {
    display: block;
    font-family: var(--serif);
    font-weight: 400;
    font-size: 38px;
    line-height: 1.1;
    color: var(--gold);
}
.fact span { color: var(--text-muted); font-size: 15.5px; }

/* Zaman çizelgesi */
.timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.timeline li {
    position: relative;
    background: var(--card-bg);
    border: 1.5px solid var(--card-border);
    border-radius: 10px;
    padding: 26px 26px 20px;
    border-top: 3px solid var(--gold);
}
.tl-year {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--mint);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.timeline p { margin: 0; font-size: 16px; }

/* İki kolon */
.split {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
    align-items: center;
}
.split.reverse { grid-template-columns: 1fr .8fr; }
.split.reverse .split-media { order: 2; }
.split-media { margin: 0; }
.split-media img {
    width: 100%;
    border-radius: 10px;
    border: 1.5px solid var(--card-border);
    box-shadow: 0 20px 50px rgba(0,0,0,.45);
}
.split-media.portrait img { max-height: 620px; width: auto; margin: 0 auto; }
.split-media figcaption {
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 14px;
    font-style: italic;
    text-align: center;
}
.split-text .eyebrow { margin-bottom: 10px; }
.split-text h2 { margin-bottom: 18px !important; }
.split-text p { margin: 0 0 16px; }

/* Pişirme */
.brew-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 48px;
    align-items: start;
}
.brew-media { margin: 0; }
.brew-media img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 10px;
    border: 1.5px solid var(--card-border);
}
/* Gelenekler */
.tradition-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.tradition {
    background: var(--card-bg);
    border: 1.5px solid var(--card-border);
    border-radius: 10px;
    overflow: hidden;
    transition: transform .25s, border-color .25s;
}
.tradition:hover { transform: translateY(-4px); border-color: #5a4236; }
.tradition img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tradition-body { padding: 22px 24px 8px; }
.tradition p { font-size: 16px; }
.tradition.text-only { background: linear-gradient(160deg, #1d3a2e 0%, var(--card-bg) 70%); }
.tradition.text-only .tradition-body { padding-top: 32px; }
.tradition-icon {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: rgba(227,171,69,.14);
    color: var(--gold);
    font-size: 24px;
}

/* İkili kart, üçlü grid */
.duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.duo .tradition img { aspect-ratio: 16 / 10; object-position: center 30%; }
.tradition-grid.three { grid-template-columns: repeat(3, 1fr); }
.split.intro { align-items: start; }
.split.intro .fact-row { margin-top: 32px; }
.split.intro .fact strong { font-size: 30px; }
.split-text em { color: var(--cream); font-style: italic; }

/* Sözlük */
.glossary { margin: 0; display: grid; gap: 14px; }
.glossary > div {
    background: var(--card-bg);
    border: 1.5px solid var(--card-border);
    border-left: 3px solid var(--mint);
    border-radius: 10px;
    padding: 18px 22px;
}
.glossary dt {
    font-family: var(--serif);
    font-size: 24px;
    color: var(--cream);
    margin-bottom: 4px;
}
.glossary dd { margin: 0; color: #d6c9be; font-size: 16px; line-height: 1.6; }

/* Oyun tarihçesi */
.game-history {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.gh-item {
    background: linear-gradient(160deg, #1d3a2e 0%, var(--card-bg) 75%);
    border: 1.5px solid var(--card-border);
    border-radius: 10px;
    padding: 28px 26px 12px;
}
.gh-tag {
    display: inline-block;
    margin-bottom: 14px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(134,215,166,.12);
    color: var(--mint);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.gh-item p { font-size: 16px; }

/* Alıntı */
.quote-band {
    margin: 40px 0;
    padding: 72px 0;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(227,171,69,.16) 0%, rgba(0,0,0,0) 60%),
        #160e0b;
    border-top: 1px solid #2c201b;
    border-bottom: 1px solid #2c201b;
    text-align: center;
}
.quote-band blockquote { margin: 0; }
.quote-band p {
    margin: 0;
    font-family: "Crimson Pro", Georgia, serif;
    font-style: italic;
    font-size: 40px;
    line-height: 1.35;
    color: var(--cream);
}
.quote-band cite {
    display: block;
    margin-top: 18px;
    color: var(--gold);
    font-style: normal;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .24em;
    text-transform: uppercase;
}

/* UNESCO */
.unesco { text-align: center; }
.unesco h2 { margin-bottom: 20px !important; }
.unesco p { max-width: 760px; margin: 0 auto 16px; }
.unesco strong { color: var(--gold); font-weight: 500; }
.unesco .btn { margin-top: 20px; }

/* Footer */
.site-footer {
    margin-top: 40px;
    padding: 44px 0 36px;
    background: var(--bg-header);
    border-top: 1px solid #2c201b;
    color: var(--text-muted);
    font-size: 14px;
}
.site-footer .container { padding: 0 78px; }
.site-footer h4 {
    margin: 0 0 6px;
    font-family: var(--serif);
    font-weight: 400;
    font-size: 22px;
    color: var(--cream);
}
.site-footer p { margin: 0 0 12px; }
.credits { margin: 0; padding-left: 18px; line-height: 1.9; }
.credits a, .site-footer .footer-bottom a { color: var(--mint); }
.credits a:hover { text-decoration: underline; }
.footer-bottom { margin-top: 24px !important; padding-top: 20px; border-top: 1px solid #2c201b; }

@media (max-width: 1200px) {
    .culture-hero-content, .culture-section .container, .site-footer .container { padding-left: 48px; padding-right: 48px; }
    .timeline { grid-template-columns: repeat(2, 1fr); }
    .tradition-grid { grid-template-columns: repeat(2, 1fr); }
    .split, .split.reverse { gap: 40px; }
}

@media (max-width: 860px) {
    .split, .split.reverse, .brew-grid, .duo, .game-history { grid-template-columns: 1fr; }
    .tradition-grid.three { grid-template-columns: repeat(2, 1fr); }
    .split.reverse .split-media { order: 0; }
    .brew-media img { aspect-ratio: 16 / 10; }
    .fact-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .culture-hero { min-height: 420px; }
    .culture-hero-content, .culture-section .container, .site-footer .container { padding-left: 16px; padding-right: 16px; }
    .culture-hero-content { padding-top: 80px; padding-bottom: 40px; }
    .culture-hero .hero-title { font-size: 56px; }
    .culture-section { padding: 44px 0; }
    .culture-section h2 { font-size: 34px; }
    .lead { font-size: 22px !important; }
    .timeline, .tradition-grid { grid-template-columns: 1fr; }
    .tradition-grid.three { grid-template-columns: 1fr; }
    .quote-band p { font-size: 28px; }
    .quote-band p br { display: none; }
}

/* ======================================================
   Nasıl Oynanır sayfası
   ====================================================== */
.rules-hero {
    padding: 72px 0 24px;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(227,171,69,.14) 0%, rgba(0,0,0,0) 55%),
        radial-gradient(ellipse at 90% 30%, rgba(29,90,67,.28) 0%, rgba(0,0,0,0) 50%);
}
.rules-hero .container { padding: 0 78px; }
.rules-hero .hero-title { font-size: 100px; }

.game-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 44px;
}
.game-tab {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px;
    background: var(--card-bg);
    border: 1.5px solid var(--card-border);
    border-radius: 10px;
    transition: border-color .2s, transform .2s;
}
.game-tab:hover { border-color: var(--mint); transform: translateY(-2px); }
.game-tab img { width: 84px; height: 56px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.game-tab strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 22px; color: var(--cream); line-height: 1.2; }
.game-tab small { color: var(--text-muted); font-size: 14px; }

.glossary-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

.rules-game { scroll-margin-top: 16px; }
.rules-game > .container {
    background: linear-gradient(180deg, #221712 0%, #1d1310 100%);
    border: 1.5px solid var(--card-border);
    border-radius: 14px;
    padding: 0;
    overflow: hidden;
    width: calc(100% - 156px);
    max-width: 1524px;
}
.rules-head {
    display: grid;
    grid-template-columns: 420px 1fr;
    align-items: stretch;
    border-bottom: 1.5px solid var(--card-border);
}
.rules-head img { width: 100%; height: 100%; min-height: 200px; object-fit: cover; }
.rules-head > div { padding: 32px 44px; align-self: center; }
.rules-head .eyebrow { margin-bottom: 4px; }
.rules-head h2 { font-size: 56px !important; }
.meta {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
}
.meta li { color: var(--cream); font-size: 16px; }
.meta span {
    display: block;
    color: var(--mint);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.rules-body {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 48px;
    padding: 36px 44px 40px;
}
.rules-col h3 { font-size: 28px !important; margin-bottom: 14px !important; }
.rules-col h3:not(:first-child) { margin-top: 28px !important; }
.rules-col p { margin: 0 0 8px; font-size: 16px; }
.rules-col strong { color: var(--cream); font-weight: 500; }

.rule-steps {
    list-style: none;
    counter-reset: rs;
    margin: 0;
    padding: 0;
}
.rule-steps li {
    counter-increment: rs;
    position: relative;
    padding: 0 0 14px 46px;
    color: #d6c9be;
    font-size: 16px;
    line-height: 1.65;
}
.rule-steps li::before {
    content: counter(rs);
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--green);
    color: #e6f3eb;
    display: grid;
    place-items: center;
    font-size: 14px;
    font-weight: 600;
}
.rule-steps em { color: var(--gold); font-style: normal; }

.score-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15.5px;
    margin-bottom: 18px;
}
.score-table th {
    text-align: left;
    padding: 10px 12px;
    color: var(--mint);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    border-bottom: 1.5px solid var(--card-border);
}
.score-table td {
    padding: 11px 12px;
    color: #d6c9be;
    border-bottom: 1px solid #2f221c;
    vertical-align: top;
}
.score-table tr:nth-child(even) td { background: rgba(255,255,255,.015); }
.score-table td:last-child, .score-table th:last-child { text-align: right; white-space: nowrap; }
.score-table .plus { color: var(--mint); font-weight: 500; }
.score-table .minus { color: #f08f7a; font-weight: 500; }
.score-table .row-koz td { border-top: 1.5px solid var(--card-border); }

.tip {
    margin-top: 12px;
    padding: 14px 18px;
    background: rgba(227,171,69,.07);
    border: 1px solid rgba(227,171,69,.25);
    border-radius: 8px;
    color: #d6c9be;
    font-size: 15px;
    line-height: 1.6;
}
.tip strong { color: var(--gold) !important; }

@media (max-width: 1200px) {
    .rules-hero .container { padding: 0 48px; }
    .rules-game > .container { width: calc(100% - 96px); }
    .game-tabs { grid-template-columns: repeat(2, 1fr); }
    .rules-head { grid-template-columns: 320px 1fr; }
}

@media (max-width: 860px) {
    .rules-head, .rules-body { grid-template-columns: 1fr; }
    .rules-head img { aspect-ratio: 16 / 7; min-height: 0; }
    .rules-body { gap: 28px; }
    .glossary-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .rules-hero { padding-top: 44px; }
    .rules-hero .container { padding: 0 16px; }
    .rules-hero .hero-title { font-size: 54px; }
    .game-tabs { grid-template-columns: 1fr; }
    .rules-game > .container { width: calc(100% - 32px); }
    .rules-head > div { padding: 24px 20px; }
    .rules-head h2 { font-size: 42px !important; }
    .rules-body { padding: 24px 20px 28px; }
    .score-table { font-size: 14px; }
    .score-table td, .score-table th { padding: 9px 6px; }
}

.culture-section p.eyebrow { color: var(--gold); font-size: 14px; line-height: 1.5; }

/* Ana sayfa: kompakt karşılama (ilk ekranı kaplamasın, oyun listesinin başlangıcı görülsün) */
.home-hero { min-height: 0; }
.home-hero .hero-content { padding-top: 52px; padding-bottom: 40px; }
.home-hero .hero-title { margin-bottom: 4px; font-size: 56px; }
.home-hero .hero-subtitle { max-width: 620px; font-size: 22px; }
.home-hero .hero-buttons { margin-top: 22px; }
@media (max-width: 860px) {
    .home-hero .hero-content { padding-top: 40px; padding-bottom: 30px; }
}
@media (max-width: 600px) {
    .home-hero .hero-content { padding: 32px 20px 32px; }
    .home-hero .hero-title { font-size: 38px; }
    .home-hero .hero-subtitle { font-size: 18px; }
}

/* Ana sayfa: son oynadıkların şeridi (geçmiş varsa home.js gösterir) */
.recent { padding: 18px 0 4px; }
.recent .container { padding: 0 46px; max-width: 1680px; }
.recent-title {
    margin: 0 0 12px;
    padding: 0 30px 0 32px;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.recent-list { display: flex; flex-direction: column; gap: 8px; padding: 0 30px 0 32px; margin: 0; }
.recent-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 18px;
    border-radius: 10px;
    background: var(--card-bg);
    border: 1.5px solid var(--card-border);
    color: var(--cream);
    font-size: 14.5px;
    transition: border-color .2s;
}
.recent-item:hover { border-color: var(--mint); }
.recent-icon {
    display: flex;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
}
.recent-icon .game-icon { width: 100%; height: 100%; }
.recent-text { display: flex; flex-direction: column; gap: 2px; }
.recent-text strong { font-weight: 600; }
.recent-text span { color: var(--text-muted); font-size: 12.5px; }
.recent-cta {
    margin-left: auto;
    flex-shrink: 0;
    color: var(--mint);
    font-size: 13.5px;
    font-weight: 500;
    white-space: nowrap;
}
.recent-cta::after { content: " →"; }

/* Ana sayfa: oyun listesi filtreleri */
.game-filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 30px 20px 32px; }
.filter-btn {
    padding: 8px 18px;
    border-radius: 999px;
    border: 1.5px solid var(--card-border);
    background: transparent;
    color: var(--text-muted);
    font: 500 14.5px var(--sans);
    cursor: pointer;
    transition: border-color .2s, color .2s, background .2s;
}
.filter-btn:hover { border-color: var(--mint); color: var(--cream); }
.filter-btn[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #e6f3eb; }
.filter-btn:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }

/* Ana sayfa: kısa "Nasıl oynanır?" şeridi (tam sayfaya bağlantı verir, ayrıntıları tekrar etmez) */
.howto { padding: 12px 0 48px; }
.howto .container {
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.howto h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 28px; color: var(--cream); }
.howto-steps { display: flex; flex: 1 1 420px; flex-wrap: wrap; gap: 24px; margin: 0; padding: 0; list-style: none; }
.howto-steps li { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 15px; }
.howto-text { display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.howto-text strong { color: var(--cream); font-weight: 600; font-size: 15px; }
.howto-text span { color: var(--text-muted); font-size: 13px; }
.howto-num {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--green);
    color: #e6f3eb;
    font-size: 13px;
    font-weight: 600;
}
@media (max-width: 860px) {
    .howto .container { flex-direction: column; align-items: flex-start; }
    .howto-steps { flex: 0 1 auto; }
}
@media (max-width: 600px) {
    .recent .container, .howto .container { padding-left: 16px; padding-right: 16px; }
    .recent-title, .recent-list, .game-filters { padding-left: 16px; padding-right: 16px; }
    .howto-steps { flex-direction: column; gap: 10px; }
}

/* Ana sayfa alt bilgisi: marka + gezinme bağlantıları. Gerçek çevrimiçi sayısı sağ alt köşede,
   etiketsiz ve küçük puntoyla; yalnızca site sahibi bunun ne olduğunu bilir. */
.home-footer { padding: 28px 0; }
.footer-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px 32px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; color: var(--cream); }
.footer-brand .logo-icon { width: 28px; height: 28px; }
.footer-brand .logo-name { font-family: var(--serif); font-size: 22px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 28px; margin-left: auto; }
.footer-nav a { font-size: 14.5px; color: #e6dbd1; transition: color .2s; }
.footer-nav a:hover { color: var(--mint); }
.footer-secret {
    font-size: 10px;
    color: #4a3a30;
    user-select: none;
}
@media (max-width: 600px) {
    .footer-nav { margin-left: 0; gap: 14px 22px; }
}

/* Kurallar sayfasından oyuna bağlantı */
.rules-col .sx-play-link { margin-top: 16px; padding: 10px 24px; font-size: 16px; }
.rules-col .rules-note { margin-bottom: 20px; padding: 12px 16px; border-left: 3px solid var(--mustard, #E5A93B); border-radius: 0 10px 10px 0; background: rgba(229, 169, 59, .08); font-size: 15px; }
@media (max-width: 420px) {
    .header-inner { gap: 12px; padding: 0 12px; }
    .logo { font-size: 19px; gap: 6px; }
    .logo-icon { width: 22px; height: 22px; }
    .logo-sub { display: none; }
    .link-login { font-size: 14px; }
    .btn-sm { padding: 8px 12px; font-size: 14px; }
}

/* Çok yakında sayfası: tek ekranlık hero */
.soon-page .culture-hero { min-height: calc(100vh - 92px); min-height: calc(100dvh - 92px); align-items: center; }
.soon-page .hero-subtitle { max-width: 640px; }
@media (max-width: 600px) {
    .soon-page .hero-subtitle { font-size: 28px; }
}

/* ---------- Masalar sayfası ---------- */
.tables-page .tables-hero { min-height: 380px; }
.tables-page .culture-hero-content { padding-top: 96px; padding-bottom: 44px; }
.tables-online { margin-top: 22px; }
.tables-resume { margin: 12px 0 0; color: var(--mint); font-weight: 600; font-size: 17px; }
.tables-page .culture-section { padding: 40px 0 8px; }
.tables-page .culture-section + .culture-section { padding-top: 24px; }
.tables-page .section-head.plain { margin-bottom: 18px; }
.tables-page .section-head h2 { font-size: 40px; }
.table-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.table-card {
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border: 1.5px solid var(--card-border);
    border-radius: 10px;
    overflow: hidden;
    transition: transform .25s, border-color .25s, box-shadow .25s;
}
.table-card:hover { transform: translateY(-4px); border-color: #5a4236; box-shadow: 0 14px 30px rgba(0,0,0,.4); }
.table-card.has-save { border-color: var(--mint); }
.table-card.is-soon .game-media img { filter: saturate(.6) brightness(.8); }
.table-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 14px 20px 20px; }
.table-body h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.15; color: var(--cream); }
.table-body p { margin: 0; color: var(--text-muted); font-size: 15.5px; line-height: 1.45; }
.table-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.table-meta li { padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--cream); font-size: 13px; font-weight: 500; }
.table-status { color: var(--mint) !important; font-weight: 600; }
.table-cta { margin-top: auto; align-self: flex-start; }
.table-card.is-soon .table-cta { padding: 9px 18px; font-size: 15px; }
.tables-friends {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 28px 0 40px;
    padding: 22px 26px;
    border: 1.5px dashed var(--card-border);
    border-radius: 12px;
}
.tables-friends h3 { margin: 0 0 4px; font-family: var(--serif); font-weight: 400; font-size: 28px; color: var(--cream); }
.tables-friends p { margin: 0; color: var(--text-muted); }
@media (max-width: 600px) {
    .tables-page .tables-hero { min-height: 320px; }
    .tables-page .culture-hero-content { padding-top: 64px; padding-bottom: 28px; }
    .tables-page .section-head h2 { font-size: 30px; }
    .tables-friends { flex-direction: column; align-items: flex-start; }
}
.tables-friends .btn { padding: 10px 22px; font-size: 16px; white-space: nowrap; }

/* ---------- Masalar: çok oyunculu masalar ---------- */
.mp-page .mp-intro { padding: 56px 0 8px; }
.mp-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; }
.mp-page-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 72px; line-height: 1; color: var(--cream); }
.mp-page-sub { max-width: 640px; margin: 12px 0 0 !important; }
.mp-create-btn svg { stroke-width: 2.6; }
.mp-list-status { margin: 0 0 18px; padding: 16px 20px; border-radius: 12px; background: var(--card-bg); border: 1px solid var(--card-border); color: var(--text-muted) !important; }
.mp-list-status[data-state="error"] { border-color: #8a3b30; color: #ffc2b8 !important; }
.mp-list-status[data-state="loading"]::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 10px; border-radius: 50%; border: 2px solid var(--mint); border-right-color: transparent; vertical-align: -1px; animation: mp-spin .8s linear infinite; }
@keyframes mp-spin { to { transform: rotate(360deg); } }
.mp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.mp-table { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; border-radius: 14px; background: var(--card-bg); border: 1px solid var(--card-border); }
.mp-table[data-status="playing"] { opacity: .8; }
.mp-table-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mp-table-head h3 { margin: 0 !important; font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.1; color: var(--cream); }
.mp-table-lock { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: rgba(227,171,69,.15); color: var(--gold); font-size: 13px; font-weight: 600; }
.mp-table-lock svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mp-table-code { margin: 0 !important; font-size: 15px !important; color: var(--text-muted) !important; letter-spacing: .04em; }
.mp-table-status { margin: 0 !important; font-size: 15px !important; color: var(--mint) !important; font-weight: 600; }
.mp-table[data-status="playing"] .mp-table-status { color: var(--gold) !important; }
.mp-join { align-self: flex-start; margin-top: auto; }
.mp-join:disabled { opacity: .5; cursor: not-allowed; }
.mp-join:disabled:hover { background: var(--green); }
.btn:focus-visible, .mp-field input:focus-visible, .mp-field select:focus-visible, .mp-choice input:focus-visible, .mp-icon-btn:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }

.mp-dialog {
    width: min(520px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    padding: 0;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    background: var(--card-bg);
    color: var(--text);
    box-shadow: 0 30px 80px rgba(0,0,0,.7);
}
.mp-dialog::backdrop { background: rgba(10, 5, 3, .72); }
.mp-dialog-form { display: grid; gap: 14px; padding: 20px 22px 22px; }
.mp-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mp-dialog-head h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 32px; color: var(--cream); }
.mp-dialog-sub { margin: 0; color: var(--text-muted); }
.mp-icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: rgba(255,255,255,.06); color: var(--cream); cursor: pointer; }
.mp-icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mp-dialog .mp-field { display: grid; gap: 6px; min-width: 0; }
.mp-dialog .mp-field > label:not(.mp-choice), .mp-fieldset legend { color: var(--cream); font-weight: 600; font-size: 15px; }
.mp-dialog .mp-field input:not([type="checkbox"]):not([type="radio"]), .mp-dialog .mp-field select {
    width: 100%;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1.5px solid var(--card-border);
    background: #160e0b;
    color: var(--cream);
    font: 400 16px/1.2 var(--sans);
}
.mp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mp-dialog .mp-help { font-size: 13px; color: var(--text-muted); margin: 0; }
.mp-fieldset { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; border: 0; }
.mp-fieldset legend { padding: 0; margin-bottom: 6px; }
.mp-choice { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; color: var(--text); cursor: pointer; }
.mp-choice input { width: 18px; height: 18px; accent-color: var(--mint); }
.mp-dialog .mp-error { margin: 0; min-height: 20px; color: #ffc2b8; font-size: 14px; }
.mp-dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.mp-dialog-actions .btn { padding: 10px 22px; font-size: 16px; }
.mp-dialog-actions .btn:disabled { opacity: .6; cursor: wait; }
@media (max-width: 760px) {
    .mp-page .mp-intro { padding: 36px 0 4px; }
    .mp-page-title { font-size: 48px; }
    .mp-create-btn { width: 100%; min-width: 0; }
    .mp-row { grid-template-columns: 1fr; }
    .mp-dialog-form { padding: 16px; }
}
/* hidden özniteliği yukarıdaki display kurallarına her zaman üstün gelir. */
.mp-page [hidden], .mp-dialog [hidden] { display: none !important; }

/* Masalar: "Yeni masa" penceresi. Başlık ve alt düğmeler sabit; aradaki tek alan kaydırılır. */
.ct-dialog { width: min(940px, calc(100vw - 32px)); overflow: hidden; }
.ct-dialog[open] { display: flex; flex-direction: column; }
.ct-form { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.ct-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 24px 10px; }
.ct-head h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.05; color: var(--cream); }
.ct-head .mp-dialog-sub { margin-top: 4px; }
.ct-existing-link { display: inline-block; margin-top: 8px; color: var(--mint); font-size: 14.5px; font-weight: 500; }
.ct-existing-link:hover { text-decoration: underline; }
.ct-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: grid; gap: 16px; padding: 6px 24px 18px; }
.ct-title { margin: 0 0 10px; padding: 0; font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.2; color: var(--cream); }
.ct-games-set { margin: 0; padding: 0; border: 0; min-width: 0; }
.ct-games { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ct-game {
    position: relative; display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 9px 34px 9px 13px;
    border-radius: 10px; border: 1px solid var(--card-border); background: #1a110d; color: var(--cream); cursor: pointer;
}
.ct-game:hover { border-color: rgba(134, 215, 166, .45); }
.ct-game:has(input:checked) { border-color: var(--mint); box-shadow: inset 0 0 0 1px var(--mint); background: rgba(134, 215, 166, .11); }
.ct-game:has(input:focus-visible) { outline: 3px solid var(--mint); outline-offset: 2px; }
.ct-game-input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.ct-game-icon, .ct-mini-icon { flex: none; display: block; line-height: 0; }
.ct-game-icon .game-icon { width: 38px; height: 38px; }
.ct-mini-icon .game-icon { width: 30px; height: 30px; }
.ct-game-text { display: grid; min-width: 0; }
.ct-game-name { font-weight: 600; font-size: 16px; line-height: 1.2; }
.ct-game-soon { font-size: 12px; line-height: 1.2; color: var(--text-muted); }
.ct-game-check { position: absolute; top: 7px; right: 7px; display: none; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--mint); color: #10231a; }
.ct-game-check svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ct-game:has(input:checked) .ct-game-check { display: grid; }
.ct-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--card-border); padding-top: 16px; }
.ct-col { display: grid; gap: 14px; align-content: start; min-width: 0; }
.ct-col:first-child { padding-right: 24px; }
.ct-col + .ct-col { padding-left: 24px; border-left: 1px solid var(--card-border); }
.ct-col > .ct-title { margin: 0; }
.ct-subtitle { display: block; margin-bottom: 8px; color: var(--cream); font-weight: 600; font-size: 15px; }
.ct-steppers { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.ct-stepper-field { display: grid; grid-template-rows: 1fr auto; gap: 6px; min-width: 0; }
.ct-stepper-field .ct-stepper-label { align-self: end; }
.ct-stepper-label { font-size: 14px; line-height: 1.25; color: var(--text-muted); }
.ct-stepper { display: grid; grid-template-columns: 46px minmax(0, 1fr) 46px; border: 1.5px solid var(--card-border); border-radius: 10px; background: #160e0b; overflow: hidden; }
.ct-stepper button { min-height: 46px; border: 0; background: transparent; color: var(--cream); font: 500 22px/1 var(--sans); cursor: pointer; }
.ct-stepper button:hover:not(:disabled) { background: rgba(134, 215, 166, .12); }
.ct-stepper button:disabled { opacity: .3; cursor: not-allowed; }
.ct-stepper button:focus-visible { outline: 3px solid var(--mint); outline-offset: -3px; }
.ct-stepper output { display: grid; place-items: center; border-inline: 1px solid var(--card-border); color: var(--cream); font-size: 20px; font-weight: 600; }
.ct-seats .mp-help { margin-top: 8px; }
.ct-private { display: grid; gap: 6px; padding-top: 14px; border-top: 1px solid var(--card-border); }
.ct-switch-row { display: flex; align-items: center; gap: 14px; min-height: 44px; }
.ct-switch-label { font-family: var(--serif); font-size: 20px; color: var(--cream); cursor: pointer; }
.ct-switch { appearance: none; position: relative; flex: none; width: 48px; height: 28px; margin: 0; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(246, 231, 208, .25); cursor: pointer; transition: background .15s; }
.ct-switch::before { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--cream); transition: transform .15s; }
.ct-switch:checked { background: var(--mint); border-color: var(--mint); }
.ct-switch:checked::before { transform: translateX(20px); background: #10231a; }
.ct-switch:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }
.ct-private .mp-field { margin-top: 6px; }
.ct-pass-box { display: flex; gap: 8px; }
.ct-pass-box input { flex: 1 1 auto; min-width: 0; }
.ct-pass-toggle { flex: none; min-width: 76px; min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--card-border); background: transparent; color: var(--cream); font: 500 15px var(--sans); cursor: pointer; }
.ct-pass-toggle:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }
.ct-info { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 14px; border-radius: 10px; background: rgba(255, 255, 255, .045); color: var(--text-muted); font-size: 15px; }
.ct-info strong { color: var(--gold); font-weight: 500; }
.ct-unavailable { margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(227, 171, 69, .13); color: var(--cream); font-size: 14px; }
.ct-unavailable a { color: var(--mint); text-decoration: underline; font-weight: 600; }
.ct-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "summary actions" "error error"; align-items: center; gap: 4px 16px; padding: 14px 24px 16px; border-top: 1px solid var(--card-border); background: rgba(0, 0, 0, .18); }
.ct-summary { grid-area: summary; display: flex; align-items: center; gap: 10px; min-width: 0; margin: 0; color: var(--text-muted); font-size: 15px; }
.ct-summary strong { color: var(--cream); font-weight: 600; }
.ct-foot .mp-dialog-actions { grid-area: actions; }
.ct-dialog .ct-error { grid-area: error; min-height: 0; }
.ct-dialog .ct-error:empty { display: none; }
.ct-dialog .mp-dialog-actions .btn:disabled { cursor: not-allowed; }
.ct-form[aria-busy="true"] #ct-submit { cursor: progress; }
.ct-dialog .ch-genders { gap: 10px; }
.ct-dialog .ch-gender { min-height: 44px; padding: 0 16px; border: 1px solid var(--card-border); border-radius: 10px; background: #1a110d; }
.ct-dialog .ch-gender:has(input:checked) { border-color: var(--mint); box-shadow: inset 0 0 0 1px var(--mint); background: rgba(134, 215, 166, .11); }
@media (max-width: 760px) {
    .ct-head { padding: 16px 16px 8px; }
    .ct-head h2 { font-size: 32px; }
    .ct-body { padding: 4px 16px 16px; }
    .ct-cols { grid-template-columns: minmax(0, 1fr); }
    .ct-col:first-child { padding-right: 0; }
    .ct-col + .ct-col { padding-left: 0; border-left: 0; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--card-border); }
    .ct-foot { grid-template-columns: minmax(0, 1fr); grid-template-areas: "summary" "error" "actions"; padding: 12px 16px 14px; gap: 8px; }
    .ct-foot .mp-dialog-actions .btn { flex: 1 1 0; padding-inline: 12px; }
}
@media (max-width: 640px) {
    .ct-games { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .ct-game { gap: 8px; min-height: 56px; padding: 8px 10px; }
    .ct-game-icon .game-icon { width: 30px; height: 30px; }
    .ct-game-name { font-size: 15px; }
    .ct-game-soon { font-size: 11.5px; }
    .ct-game-check { top: 4px; right: 4px; width: 18px; height: 18px; }
    .ct-game:has(input:checked) .ct-game-name { padding-right: 14px; }
}
@media (max-width: 380px) {
    .ct-steppers { grid-template-columns: minmax(0, 1fr); }
}

/* Masalar: oyun filtresi */
.mp-list-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.mp-filter { display: flex; align-items: center; gap: 8px; color: var(--cream); font-weight: 600; }
.mp-filter select {
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    color: var(--text);
    font: inherit;
    font-weight: 500;
}
.mp-filter select:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }

/* ---------- Çok oyunculu karakter seçici (masalar ve 101 bekleme odası) ---------- */
.ch-picker { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 8px; }
.ch-picker legend { padding: 0; margin-bottom: 6px; font-weight: 600; font-size: 15px; }
.ch-genders { display: flex; gap: 14px; flex-wrap: wrap; }
.ch-gender { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 600; }
.ch-gender input { width: 18px; height: 18px; accent-color: #86d7a6; }
.ch-hint { margin: 0; font-size: 13px; opacity: .8; }
.ch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.ch-grid[hidden] { display: none; }
.ch-opt { display: grid; justify-items: center; gap: 4px; padding: 6px 4px; border-radius: 10px; border: 2px solid rgba(246,231,208,.18); background: rgba(0,0,0,.25); color: inherit; font: inherit; font-size: 12.5px; line-height: 1.15; text-align: center; cursor: pointer; min-height: 44px; }
.ch-opt img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; }
.ch-opt[aria-pressed="true"] { border-color: #86d7a6; background: rgba(134,215,166,.16); }
.ch-opt:hover:not(:disabled) { border-color: rgba(229,169,59,.7); }
.ch-opt:focus-visible, .ch-gender input:focus-visible { outline: 3px solid #86d7a6; outline-offset: 2px; }
.ch-opt:disabled { cursor: default; opacity: .6; }
/* Seçili karakter yalnızca renkle değil, onay işaretiyle de belirtilir. */
.ch-opt { position: relative; }
.ch-opt[aria-pressed="true"]::after { content: "✓"; position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #86d7a6; color: #10231a; font-size: 13px; font-weight: 700; line-height: 1; }
