/* Ortak modül stilleri: devam düğmesi, öğretmen ipucu, terimler, hızlı mod. Kaynak: game/shared/common.css */

/* Maça devam et (giriş ekranı) */
.resume-btn { display: inline-flex; align-items: center; gap: 12px; margin: 10px auto 0; padding: 8px 18px 8px 12px; border-radius: 999px; border: 1px solid rgba(31, 143, 66, .45); background: #e3f6e8; color: #1f8f42; cursor: pointer; text-align: left; font: inherit; box-shadow: 0 6px 18px rgba(31, 143, 66, .18); animation: resumeIn .4s ease-out; }
.resume-btn:hover { filter: brightness(1.03); } .resume-btn:active { transform: scale(.98); }
.resume-btn .rs-play { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: #1f8f42; color: #fff; font-size: 13px; flex: none; }
.resume-btn .rs-text { display: flex; flex-direction: column; line-height: 1.2; }
.resume-btn .rs-text b { font-size: 15px; } .resume-btn .rs-text small { font-size: 12px; color: #3d7a4e; font-weight: 500; }
html.ui-classic .resume-btn { background: rgba(40, 110, 60, .35); color: #b8ffbf; border-color: rgba(111, 207, 127, .5); }
html.ui-classic .resume-btn .rs-text small { color: #9fd9a8; }
@keyframes resumeIn { from { opacity: 0; transform: translateY(6px); } }

/* Öğretmen ipucu (ilk oyunlar) */
.tutor-tip { position: fixed; left: 16px; right: 16px; margin: 0 auto; width: fit-content; min-width: min(300px, calc(100vw - 32px)); bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 32; display: flex; align-items: flex-start; gap: 10px; max-width: min(440px, calc(100vw - 32px)); padding: 10px 10px 10px 14px; border-radius: 14px; background: linear-gradient(180deg, #fff8e6, #ffeec4); color: #4a3310; border: 1px solid rgba(138, 98, 36, .35); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); font-size: 14px; line-height: 1.4; opacity: 0; pointer-events: none; transform: translateY(10px); transition: .3s; }
.tutor-tip.show { opacity: 1; pointer-events: auto; transform: none; }
.tutor-tip .tt-ic { font-size: 20px; line-height: 1; margin-top: 1px; }
.tutor-tip .tt-text { flex: 1 1 auto; min-width: 0; font-weight: 600; }
.tutor-tip .tt-close { flex: none; width: 28px; height: 28px; border-radius: 50%; border: none; background: rgba(0, 0, 0, .08); color: inherit; font-size: 18px; line-height: 1; cursor: pointer; margin: -3px -3px 0 0; }
.tutor-ready { margin: 10px 0 4px; padding: 10px 12px; border-radius: 12px; background: rgba(212, 169, 79, .18); border: 1px solid rgba(212, 169, 79, .45); color: #f3d98f; font-weight: 600; }
html.ui-modern .tutor-ready { background: #fff3cf; border-color: rgba(138, 98, 36, .35); color: #6b4c18; }

/* Terimler */
.term { text-decoration: underline dotted; text-decoration-thickness: 1.5px; text-underline-offset: 3px; cursor: help; color: inherit; }
.term:hover, .term:focus-visible { text-decoration-style: solid; }
.term-pop { position: fixed; z-index: 60; display: flex; flex-direction: column; gap: 4px; padding: 10px 14px; border-radius: 12px; background: #1d140c; color: #f3e9d6; font-size: 13px; line-height: 1.4; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); opacity: 0; pointer-events: none; transform: translateY(4px); transition: .18s; text-align: left; }
.term-pop.show { opacity: 1; pointer-events: auto; transform: none; }
.term-pop b { color: #f3d98f; font-size: 13px; }
.glossary { margin-top: 10px; }
.glossary-list { display: grid; gap: 6px; margin: 6px 0 0; }
.glossary-list div { padding: 8px 10px; border-radius: 10px; background: rgba(0, 0, 0, .22); }
.glossary-list dt { font-weight: 700; color: var(--gold-light, #f3d98f); }
.glossary-list dd { margin: 2px 0 0; font-size: 14px; color: #e2d6bf; }
html.ui-modern .glossary-list div { background: #faf7f0; }
html.ui-modern .glossary-list dt { color: #1d140c; } html.ui-modern .glossary-list dd { color: #3d3226; }

/* Hızlı mod: oyun ekranındaki geçişler kısalır */
html.fast #game * { transition-duration: 60ms !important; }
html.fast .toast { transition-duration: .12s !important; }
.variant-diff { margin-top: 8px; font-size: 13px; line-height: 1.4; max-width: 520px; }
.hero-diff { margin: 6px auto 0; color: #5a4a36; text-align: center; }

/* Yüksek kontrast görünüm (Modern üzerine): siyah/beyaz, kalın kenarlar, büyük yazı */
html.ui-contrast { --text: #000; --muted: #222; --line: #000; --gold: #7a5200; --gold-light: #7a5200; }
html.ui-contrast body { background: #fff; color: #000; font-size: 17px; }
html.ui-contrast .menu-card, html.ui-contrast .modal-card { background: #fff; box-shadow: 0 0 0 3px #000; color: #000; }
html.ui-contrast .card-title, html.ui-contrast .modal-card h2, html.ui-contrast .modal-card p, html.ui-contrast .rules p, html.ui-contrast .rules li, html.ui-contrast .hint, html.ui-contrast .status-line, html.ui-contrast .status, html.ui-contrast .hero-sub, html.ui-contrast .cta-note, html.ui-contrast .hero-links button, html.ui-contrast .glossary-list dd, html.ui-contrast .glossary-list dt, html.ui-contrast .variant-diff { color: #000 !important; }
html.ui-contrast .btn, html.ui-contrast .tool, html.ui-contrast .ctrl-btn, html.ui-contrast .seg button, html.ui-contrast .back, html.ui-contrast .icon-btn, html.ui-contrast .lang-switch button, html.ui-contrast .gcard, html.ui-contrast .resume-btn, html.ui-contrast .setting-row { background: #fff !important; color: #000 !important; border: 2px solid #000 !important; box-shadow: none !important; text-shadow: none !important; }
html.ui-contrast .seg button.on, html.ui-contrast .lang-switch button.on, html.ui-contrast .btn-green, html.ui-contrast .btn-gold, html.ui-contrast .cta, html.ui-contrast .btn-red { background: #000 !important; color: #fff !important; border-color: #000 !important; }
html.ui-contrast .cta .icon, html.ui-contrast .btn-green .icon, html.ui-contrast .btn-gold .icon { filter: brightness(10); }
html.ui-contrast .toggle i { border: 2px solid #000; }
html.ui-contrast .coach-line, html.ui-contrast .turn-pill, html.ui-contrast .skill-badge, html.ui-contrast .fair-badge, html.ui-contrast .last-move { background: #fff !important; color: #000 !important; border: 2px solid #000 !important; }
html.ui-contrast .coach-line.error, html.ui-contrast .coach-line.blunder { background: #000 !important; color: #fff !important; }
html.ui-contrast .toast { background: #000 !important; color: #fff !important; border: 2px solid #fff; }
html.ui-contrast .tutor-tip { background: #fff; color: #000; border: 2px solid #000; }
html.ui-contrast .term { text-decoration-thickness: 2px; }
html.ui-contrast .term-pop { background: #000; color: #fff; border: 2px solid #fff; }
html.ui-contrast .seat-box .plate { background: #fff !important; color: #000 !important; border: 2px solid #000 !important; }
html.ui-contrast .seat-box.active .plate { background: #000 !important; color: #fff !important; }
html.ui-contrast .seat-box .avatar { border: 2px solid #000; }
html.ui-contrast .hero-board, html.ui-contrast .demo-board-wrap, html.ui-contrast .demo-rack { opacity: .25; }
html.ui-contrast :focus-visible { outline: 3px solid #000; outline-offset: 2px; }
/* Oyun tahtaları */
html.ui-contrast .sq.light { background: #fff !important; } html.ui-contrast .sq.dark { background: #555 !important; }
html.ui-contrast .piece.p0::before { background: #fff !important; border: 3px solid #000 !important; box-shadow: none !important; }
html.ui-contrast .piece.p1::before { background: #000 !important; border: 3px solid #fff !important; box-shadow: 0 0 0 2px #000 !important; }
html.ui-contrast .pit, html.ui-contrast .store { background: #fff !important; border: 2px solid #000 !important; box-shadow: none !important; }
html.ui-contrast .pit.legal { outline: 3px solid #000; outline-offset: 2px; }
html.ui-contrast .tile, html.ui-contrast .dtile { background: #fff !important; border: 2px solid #000 !important; box-shadow: none !important; }
html.ui-contrast .tile.legal, html.ui-contrast .dtile.legal { outline: 3px solid #000; outline-offset: 2px; }
html.ui-contrast .rack, html.ui-contrast .my-rack, html.ui-contrast .hand, html.ui-contrast .table, html.ui-contrast .chain-wrap { background: #fff !important; }
html.ui-contrast .slot { background: #eee !important; box-shadow: inset 0 0 0 1px #000 !important; }

/* Tahtanın altında gerçek metin (arama motoru ve ilk gelen için) */
.about { padding: 28px 20px 40px; background: #f6f1e7; border-top: 1px solid rgba(0, 0, 0, .06); }
.about-inner { max-width: 760px; margin: 0 auto; color: #3d3226; font-size: 15px; line-height: 1.55; }
.about h2 { margin: 0 0 8px; font-size: 20px; color: #1d140c; }
.about p { margin: 6px 0; } .about a { color: #1f5fb3; font-weight: 600; }
html[lang="tr"] .about [lang="en"], html[lang="en"] .about [lang="tr"] { display: none; }
html.ui-classic .about { background: #160f0a; border-top-color: rgba(212, 169, 79, .25); }
html.ui-classic .about-inner, html.ui-classic .about h2 { color: #e2d6bf; }
/* Kural sayfaları: başlangıç dizilimi, sözlük, SSS */
.rules-dl dt { font-weight: 700; margin-top: 10px; }
.rules-dl dd { margin: 2px 0 0 0; }
.rules-list { margin: 6px 0; padding-left: 22px; } .rules-list li { margin: 4px 0; }
.faq h3 { font-size: 18px; margin: 18px 0 4px; }
.quick { margin: 14px 0 4px; padding: 12px 16px; background: #fff; border: 1px solid rgba(0,0,0,.12); border-left: 4px solid #1f8f42; border-radius: 10px; }
.quick h2 { font-size: 17px; margin: 0 0 6px; }
.quick dl { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 4px 14px; font-size: 15px; }
.quick dt { font-weight: 700; } .quick dd { margin: 0; }
@media (max-width: 520px) { .quick dl { grid-template-columns: 1fr; } .quick dd { margin-bottom: 6px; } }
.rules-toc { font-size: 15px; margin: 10px 0 0; } .rules-toc a { margin-right: 12px; display: inline-block; }
/* Tüm oyunlar menüsü (shared/seo.js derlemede ekler) */
.about nav.games { margin-top: 18px; padding-top: 12px; border-top: 1px dashed rgba(0,0,0,.12); font-size: 14px; }
.about nav.games p { margin: 4px 0; }
.about nav.games a { display: inline-block; margin-right: 12px; font-weight: 500; }
.about nav.games a[aria-current] { color: inherit; font-weight: 700; text-decoration: none; }
html.ui-classic .about nav.games { border-top-color: rgba(212, 169, 79, .25); }
html.ui-classic .about nav.games a { color: #d4a94f; }

/* Marka çubuğu: Snug Table */
.site-bar { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; max-width: 1100px; margin: 0 auto; padding: 10px 20px 0; font-size: 13px; color: #6b5a45; }
.site-brand { font-weight: 800; font-size: 16px; letter-spacing: .02em; color: #1d140c; text-decoration: none; }
.site-brand::before { content: ""; display: inline-block; width: 24px; height: 24px; margin-right: 7px; vertical-align: -6px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect x='23' y='3' width='18' height='7' rx='3.5' fill='%231d140c'/%3E%3Crect x='23' y='54' width='18' height='7' rx='3.5' fill='%231d140c'/%3E%3Crect x='3' y='23' width='7' height='18' rx='3.5' fill='%231d140c'/%3E%3Crect x='54' y='23' width='7' height='18' rx='3.5' fill='%231d140c'/%3E%3Crect x='12' y='12' width='40' height='40' rx='11' fill='%238a4a24'/%3E%3Crect x='16.5' y='16.5' width='31' height='31' rx='7.5' fill='%231f8f42'/%3E%3Cg transform='rotate(-10 27 32)'%3E%3Crect x='20' y='22' width='14' height='20' rx='2' fill='%23fff8e6'/%3E%3Cpath d='M27 27.5c-1.4-2.6-5-1.6-4.4 1.2.4 1.8 2.6 3.2 4.4 5 1.8-1.8 4-3.2 4.4-5 .6-2.8-3-3.8-4.4-1.2z' fill='%23c0262d'/%3E%3C/g%3E%3Cg transform='rotate(14 40 36)'%3E%3Crect x='34.5' y='30.5' width='11' height='11' rx='2.4' fill='%23fff8e6'/%3E%3Ccircle cx='37.3' cy='33.3' r='1.25' fill='%231d140c'/%3E%3Ccircle cx='40' cy='36' r='1.25' fill='%231d140c'/%3E%3Ccircle cx='42.7' cy='38.7' r='1.25' fill='%231d140c'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; }
.site-brand:hover { color: #1f8f42; }
.site-tag { opacity: .85; }
html.ui-contrast .site-bar { color: #000; } html.ui-contrast .site-brand { color: #000; }
/* Masadaki marka (GC.brand): keçeye basılmış gibi logo + snugtable.com, kartların altında */
.snug-mark-host { isolation: isolate; }
.snug-mark { position: absolute; right: 14px; bottom: 10px; z-index: -1; display: flex; align-items: center; gap: 7px;
  pointer-events: none; user-select: none; white-space: nowrap; color: rgba(255, 255, 255, .22); font: 800 15px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: .05em; }
.snug-mark i { flex: none; width: 22px; height: 22px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='%23000'%3E%3Crect x='23' y='3' width='18' height='7' rx='3.5'/%3E%3Crect x='23' y='54' width='18' height='7' rx='3.5'/%3E%3Crect x='3' y='23' width='7' height='18' rx='3.5'/%3E%3Crect x='54' y='23' width='7' height='18' rx='3.5'/%3E%3Crect x='20' y='22' width='14' height='20' rx='2' transform='rotate(-10 27 32)'/%3E%3Crect x='34.5' y='30.5' width='11' height='11' rx='2.4' transform='rotate(14 40 36)'/%3E%3C/g%3E%3Crect x='14.5' y='14.5' width='35' height='35' rx='9.5' fill='none' stroke='%23000' stroke-width='5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='%23000'%3E%3Crect x='23' y='3' width='18' height='7' rx='3.5'/%3E%3Crect x='23' y='54' width='18' height='7' rx='3.5'/%3E%3Crect x='3' y='23' width='7' height='18' rx='3.5'/%3E%3Crect x='54' y='23' width='7' height='18' rx='3.5'/%3E%3Crect x='20' y='22' width='14' height='20' rx='2' transform='rotate(-10 27 32)'/%3E%3Crect x='34.5' y='30.5' width='11' height='11' rx='2.4' transform='rotate(14 40 36)'/%3E%3C/g%3E%3Crect x='14.5' y='14.5' width='35' height='35' rx='9.5' fill='none' stroke='%23000' stroke-width='5'/%3E%3C/svg%3E") center / contain no-repeat; }
.snug-mark.on-light { color: rgba(29, 20, 12, .17); }
@media (max-width: 520px) { .snug-mark { font-size: 12px; gap: 5px; right: 8px; bottom: 6px; } .snug-mark i { width: 17px; height: 17px; } }
.about .brand-about { margin-top: 12px; padding-top: 10px; border-top: 1px dashed rgba(0,0,0,.12); }

/* Hareket efektleri katmanı (GC.fx): tüm ekran, tıklanamaz */
.fx-layer { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 65; overflow: visible; }
.fx-layer .fx-ripple { fill: none; stroke: #fff; stroke-width: 3; filter: drop-shadow(0 0 2px rgba(0,0,0,.35)); }
.fx-layer .fx-ripple.hit { stroke: #e25b4a; stroke-width: 4; }
.fx-layer .fx-trail { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 9; opacity: 0; filter: drop-shadow(0 0 2px rgba(0,0,0,.35)); }
html.ui-modern .fx-layer .fx-ripple { stroke: #1f8f42; filter: none; }
html.ui-modern .fx-layer .fx-ripple.hit { stroke: #c2402f; }
html.ui-modern .fx-layer .fx-trail { stroke: #1d140c; filter: none; }
html.ui-modern .fx-layer .fx-ripple.on-dark, html.ui-modern .fx-layer .fx-trail.on-dark { stroke: #fff; }
@media (prefers-reduced-motion: reduce) { .fx-layer { display: none; } }
.site-link { margin-left: auto; color: inherit; font-size: 13px; }
.site-link:hover { color: #1f8f42; }
html.ui-contrast .site-link { color: #000; }
/* Tek dil (shared/site.js TR_ENABLED=false): dil seçiciler gizli */
html.one-lang .lang-switch, html.one-lang .top .lang, html.one-lang .setting-block:has(.lang-switch) { display: none !important; }
button.is-soon { opacity: .72; }

/* Pencereler küçük ekrana sığmazsa arka plan kayar; kart üstten kesilmez (Ayarlar 860+ px) */
.modal { overflow-y: auto; overscroll-behavior: contain; align-items: flex-start; }
.modal > .modal-card { margin: auto; flex: none; }
/* Modern görünümde altın düğme koyu zeminli: Ayarlar'daki OK metni beyaz kalsın */
html.ui-modern #settingsClose { color: #fff; }

/* Kutlama: büyük yazı + konfeti */
.celebrate { position: fixed; left: 50%; top: 40%; z-index: 70; transform: translate(-50%, -50%) scale(.6); opacity: 0; pointer-events: none; padding: 14px 26px; border-radius: 18px; background: rgba(29, 20, 12, .88); color: #f3d98f; font: 800 clamp(26px, 7vw, 44px)/1.1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: -.5px; text-align: center; max-width: calc(100vw - 32px); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); transition: transform .35s cubic-bezier(.2, .9, .3, 1.4), opacity .3s; }
.celebrate.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.celebrate.badge { font-size: clamp(18px, 4.5vw, 26px); top: 22%; color: #fff; background: linear-gradient(180deg, #2fbd5a, #1f8f42); }
.confetti { position: fixed; z-index: 69; width: 8px; height: 12px; margin: -6px 0 0 -4px; border-radius: 2px; pointer-events: none; }

/* Pes etme penceresi (GC.resign) ve masadaki düğme */
.gc-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(18, 12, 8, .55); }
.gc-modal-card { width: min(400px, 100%); padding: 20px 22px 18px; border-radius: 16px; background: #fffaf0; color: #1d140c; box-shadow: 0 18px 48px rgba(0, 0, 0, .35); font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; text-align: left; }
.gc-modal-card h2 { margin: 0 0 8px; font-size: 20px; }
.gc-modal-card p { margin: 0 0 16px; }
.gc-modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.gc-btn { min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid rgba(0, 0, 0, .18); background: #fff; color: #1d140c; font: 700 15px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; cursor: pointer; }
.gc-btn:focus-visible { outline: 3px solid #2a7ad9; outline-offset: 2px; }
.gc-btn-red { background: #c0392b; border-color: #a5281c; color: #fff; }
.gc-btn-red:hover { background: #a5281c; }

/* İstatistik kartı (giriş ekranı) ve maç sonu satırları */
.stats-card { margin: 10px auto 0; max-width: 520px; width: fit-content; border-radius: 16px; background: rgba(255, 255, 255, .75); border: 1px solid rgba(0, 0, 0, .08); box-shadow: 0 6px 18px rgba(0, 0, 0, .08); text-align: left; color: #1d140c; }
.stats-card[open] { width: min(520px, calc(100vw - 32px)); }
.stats-card summary { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; padding: 9px 16px; cursor: pointer; font-weight: 700; font-size: 14px; list-style: none; }
.stats-card summary::-webkit-details-marker { display: none; }
.stats-card summary::after { content: '▾'; opacity: .5; } .stats-card[open] summary::after { content: '▴'; }
.st-body { padding: 0 12px 12px; }
.st-games { margin: -4px 0 10px; font-size: 13px; text-align: center; opacity: .8; }
.st-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 10px; }
.st-table th, .st-table td { padding: 5px 4px; text-align: center; border-bottom: 1px solid rgba(0, 0, 0, .07); }
.st-table thead th { font-size: 11px; font-weight: 600; color: #6b5a44; } .st-table tbody th { text-align: left; }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.badge-chip { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; padding: 6px 9px; border-radius: 12px; background: #fff3cf; border: 1px solid rgba(138, 98, 36, .3); font-size: 13px; font-weight: 700; color: #4a3310; }
.badge-chip b { font-size: 16px; } .badge-chip small { flex-basis: 100%; font-weight: 500; font-size: 11px; color: #7a6650; }
.badge-chip.locked { background: #f1ede6; border-color: rgba(0, 0, 0, .06); color: #8a7d6c; filter: grayscale(1); }
.st-streak { font-weight: 700; color: #f3d98f; } html.ui-modern .st-streak { color: #c0661a; }
.st-new { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 8px 0; }
.badge-chip.new { background: linear-gradient(180deg, #e3f6e8, #c9efd4); border-color: #2fbd5a; color: #1f6b35; animation: resumeIn .5s ease-out; }
html.ui-classic .stats-card { background: rgba(0, 0, 0, .3); color: #f3e9d6; border-color: rgba(212, 169, 79, .3); }
html.ui-classic .st-table thead th { color: #d9c9a8; }

/* Günlük meydan okuma */
.daily-btn { display: inline-flex; align-items: center; gap: 10px; margin: 10px auto 0; padding: 8px 18px 8px 12px; border-radius: 999px; border: 1px solid rgba(42, 122, 217, .4); background: #e6f0fc; color: #1d4f8f; cursor: pointer; text-align: left; font: inherit; box-shadow: 0 6px 18px rgba(42, 122, 217, .15); }
.daily-btn:hover { filter: brightness(1.03); } .daily-btn:active { transform: scale(.98); }
.daily-btn .dl-ic { font-size: 22px; line-height: 1; } .daily-btn .rs-text { display: flex; flex-direction: column; line-height: 1.2; }
.daily-btn .rs-text b { font-size: 15px; } .daily-btn .rs-text small { font-size: 12px; font-weight: 500; opacity: .85; }
.daily-btn.done { background: #eef6ee; border-color: rgba(31, 143, 66, .35); color: #1f6b35; }
html.ui-classic .daily-btn { background: rgba(42, 122, 217, .25); color: #cfe3ff; border-color: rgba(120, 170, 240, .5); }
.daily-result { margin: 10px 0; padding: 10px 12px; border-radius: 12px; background: rgba(42, 122, 217, .12); border: 1px solid rgba(42, 122, 217, .35); }
.daily-result p { margin: 4px 0 !important; } .daily-result .btn { margin-top: 6px; width: 100%; }
.daily-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #2a7ad9; color: #fff; font-size: 11px; font-weight: 700; vertical-align: middle; }

/* Maç sonu inceleme */
.review { margin: 10px 0; text-align: left; } .review h3 { margin: 0 0 6px; font-size: 15px; }
.review ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 13px; line-height: 1.4; }
.review small { opacity: .75; }
.rv-g { display: inline-block; padding: 0 7px; border-radius: 999px; font-size: 11px; font-weight: 700; color: #fff; background: #c98a2b; }
.rv-g.error { background: #d9534f; } .rv-g.blunder { background: #8e1f1b; }
.review-clean { font-weight: 700; color: #1f8f42; }
.bot-quote { margin: 8px 0; font-style: italic; } .bot-quote b { font-style: normal; }
.persona-line { margin-top: 6px; font-size: 13px; opacity: .85; }
.hotseat-btn { display: block; margin: 8px auto 0; padding: 6px 14px; border: none; border-radius: 999px; background: transparent; color: inherit; font: inherit; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; opacity: .8; cursor: pointer; }
.hotseat-btn:hover { opacity: 1; }

/* "Pick a game" vitrini: başka oyunlara link kartları (seo.js showcaseCards) */
a.gcard { text-decoration: none; }
.gcard .art img { width: 40px; height: 40px; }
.all-games { margin: 14px 0 0; text-align: right; }
.all-games a { color: #1f8f42; font-weight: 700; text-decoration: none; }
.all-games a:hover { text-decoration: underline; }
.showcase .cards { grid-template-columns: repeat(6, 1fr); }
.showcase .cards .gcard:nth-child(3) { grid-column: auto; min-height: 118px; flex-direction: column; align-items: flex-start; }
@media (max-width: 900px) { .showcase .cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .showcase .cards { grid-template-columns: 1fr 1fr; } }
/* Ekran okuyucuya özel metin (görünmez ama okunur) */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* The Regulars (GC.ladder): masa ekranı, keşif kartı, maç sonu, giriş seçimi */
.lad { width: 100%; max-width: 760px; margin: 0 auto; color: #1d140c; text-align: left; }
.lad-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lad-back, .lad-link { border: none; background: transparent; color: inherit; font: inherit; font-weight: 700; cursor: pointer; padding: 8px 4px; min-height: 44px; }
.lad-link { min-height: 0; padding: 2px 4px; text-decoration: underline; text-underline-offset: 3px; }
.lad-back:focus-visible, .lad-link:focus-visible, .lad-chair:focus-visible, .lad-entry-opt:focus-visible { outline: 3px solid #2a7ad9; outline-offset: 2px; }
.lad-champ { padding: 4px 10px; border-radius: 999px; background: linear-gradient(180deg, #f6dc8c, #c9962f); color: #3a2608; font-weight: 800; font-size: 13px; }
.lad-title { margin: 4px 0 2px; font-size: 28px; line-height: 1.1; }
.lad-sub { margin: 0 0 6px; opacity: .85; }
.lad-total { margin: 0 0 12px; font-size: 15px; }
.lad-total b { color: #a8741a; }
/* Uzun masa: geniş ekranda iki sıra (masanın iki yanı, kıvrımlı sıra), telefonda dikey liste */
.lad-table { list-style: none; margin: 0; padding: 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; border-radius: 28px;
  background: radial-gradient(ellipse at 50% 50%, #2f8f4e 0%, #1f6b38 70%, #1a5a30 100%); box-shadow: inset 0 0 0 6px #8a5a2b, inset 0 0 0 9px #5e3b19, 0 10px 24px rgba(0, 0, 0, .18); }
.lad-seat:nth-child(5) { grid-column: 4; grid-row: 2; } .lad-seat:nth-child(6) { grid-column: 3; grid-row: 2; }
.lad-seat:nth-child(7) { grid-column: 2; grid-row: 2; } .lad-seat:nth-child(8) { grid-column: 1; grid-row: 2; }
.lad-chair { position: relative; width: 100%; min-height: 112px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 10px 6px; border-radius: 18px;
  border: 2px solid rgba(255, 255, 255, .25); background: rgba(255, 250, 240, .96); color: #1d140c; font: inherit; cursor: pointer; text-align: center; transition: transform .15s, box-shadow .2s; }
.lad-chair:hover { transform: translateY(-2px); }
.lad-num { position: absolute; top: 6px; left: 9px; font-size: 11px; font-weight: 700; opacity: .5; }
.lad-av { font-size: 34px; line-height: 1; }
.lad-who { display: flex; flex-direction: column; line-height: 1.15; } .lad-who small { font-size: 12px; opacity: .75; }
.lad-stars { font-size: 18px; letter-spacing: 2px; color: #c9962f; }
.lad-seat.next .lad-chair { border-color: #f3d98f; box-shadow: 0 0 0 3px #f3d98f, 0 0 24px rgba(243, 217, 143, .8); animation: ladGlow 2.2s ease-in-out infinite; }
.lad-seat.locked .lad-chair { opacity: .55; filter: grayscale(.7); cursor: default; }
.lad-seat.locked .lad-chair:hover { transform: none; }
.lad-chair.nudge { animation: ladNudge .35s; }
@keyframes ladGlow { 50% { box-shadow: 0 0 0 3px #f3d98f, 0 0 34px rgba(243, 217, 143, 1); } }
@keyframes ladNudge { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.lad-fair { margin: 12px 0 4px; padding: 8px 12px; border-radius: 12px; background: #eef6ee; border: 1px solid rgba(31, 143, 66, .3); color: #1f6b35; font-weight: 600; font-size: 14px; }
.lad-rewards { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.lad-rewards li { padding: 8px 10px; border-radius: 12px; background: #f1ede6; font-size: 14px; }
.lad-rewards li.got { background: #fff3cf; border: 1px solid rgba(138, 98, 36, .35); }
.lad-rewards small { font-weight: 700; opacity: .75; } .lad-rewards span { display: block; font-size: 12px; opacity: .8; }
.lad-note { font-size: 13px; opacity: .75; margin: 8px 0 0; }
@media (max-width: 600px) {
  .lad-table { grid-template-columns: minmax(0, 1fr); padding: 12px; gap: 8px; border-radius: 22px; }
  .lad-seat:nth-child(n) { grid-column: auto; grid-row: auto; }
  /* Kıvrımlı masa: sandalyeler sırayla sağa sola kayar */
  .lad-seat:nth-child(odd) { padding-right: 18px; } .lad-seat:nth-child(even) { padding-left: 18px; }
  .lad-chair { flex-direction: row; justify-content: flex-start; min-height: 60px; padding: 8px 12px 8px 26px; gap: 10px; text-align: left; }
  .lad-num { top: 50%; transform: translateY(-50%); left: 9px; }
  .lad-av { font-size: 28px; } .lad-who { flex: 1; min-width: 0; } .lad-stars { font-size: 16px; }
  .lad-title { font-size: 24px; }
  .lad-rewards { grid-template-columns: minmax(0, 1fr); }
}
/* Pencereler */
.lad-modal { z-index: 81; overflow-y: auto; }
.lad-card { width: min(460px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; text-align: center; }
.lad-card h2 small { font-size: 14px; font-weight: 600; opacity: .7; }
.lad-card p { margin: 6px 0; }
.lad-actions { justify-content: center; margin-top: 12px; }
.gc-btn-go { background: #1f8f42; border-color: #177334; color: #fff; }
.gc-btn-go:hover { background: #177334; }
.lad-big { display: block; font-size: 52px; line-height: 1; margin-bottom: 4px; }
.lad-tag { font-weight: 600; opacity: .8; }
.lad-habit, .lad-solved, .lad-turn, .lad-tip, .lad-reward { padding: 8px 12px; border-radius: 12px; background: #fff3cf; border: 1px solid rgba(138, 98, 36, .3); text-align: left; }
.lad-solved { margin: 8px 0; } .lad-tip { background: #e6f0fc; border-color: rgba(42, 122, 217, .35); }
.lad-reward { background: linear-gradient(180deg, #e3f6e8, #c9efd4); border-color: #2fbd5a; }
.lad-info { font-size: 14px; opacity: .8; }
.lad-score { font-size: 20px; font-weight: 800; }
.lad-goals { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 8px 0; padding: 0; font-size: 13px; }
.lad-goals li { padding: 3px 9px; border-radius: 999px; background: #f1ede6; } .lad-goals li.got { background: #fff3cf; color: #8a5a10; font-weight: 700; }
.lad-starrow { display: flex; justify-content: center; gap: 10px; margin: 6px 0 2px; }
.lad-star { font-size: 46px; line-height: 1; color: #d8d0c2; transform: scale(.4); opacity: 0; transition: transform .35s cubic-bezier(.2, .9, .3, 1.5), opacity .25s, color .2s; }
.lad-star.shown { transform: scale(1); opacity: 1; }
.lad-star.on.shown { color: #e2a92b; text-shadow: 0 0 14px rgba(243, 200, 90, .8); }
.lad-starlbl { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 8px; padding: 0; font-size: 13px; }
.lad-starlbl li { opacity: .6; } .lad-starlbl li.on { opacity: 1; font-weight: 700; color: #8a5a10; }
.lad-advance { position: relative; display: flex; align-items: center; justify-content: space-between; max-width: 260px; margin: 18px auto 4px; padding: 8px 14px; border-radius: 999px; background: #1f6b38; }
.lad-a { display: flex; flex-direction: column; align-items: center; font-size: 28px; line-height: 1; } .lad-a small { font-size: 11px; color: #fff; margin-top: 2px; }
.lad-you { position: absolute; left: 14px; top: -16px; font-size: 22px; transition: left .9s cubic-bezier(.4, 0, .2, 1); }
.lad-you.moved { left: calc(100% - 44px); }
.lad-entry { display: grid; gap: 8px; margin: 10px 0; }
.lad-entry-opt { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; align-items: center; gap: 0 10px; padding: 12px 14px; border-radius: 14px; border: 2px solid rgba(0, 0, 0, .12); background: #fff; color: #1d140c; font: inherit; text-align: left; cursor: pointer; min-height: 64px; }
.lad-entry-opt span { grid-row: 1 / 3; font-size: 28px; text-align: center; } .lad-entry-opt b { font-size: 16px; } .lad-entry-opt small { font-size: 13px; opacity: .75; }
.lad-entry-opt:hover, .lad-entry-opt.on { border-color: #1f8f42; background: #eef6ee; }
.lad-entry-line { margin: 8px 0 0; font-size: 14px; opacity: .9; }
.learn-banner { display: block; margin: 0 0 4px; padding: 4px 10px; border-radius: 999px; background: #eef6ee; color: #1f6b35; border: 1px solid rgba(31, 143, 66, .35); font-size: 13px; font-weight: 600; }
html.ui-contrast .lad-chair, html.ui-contrast .lad-entry-opt { border: 2px solid #000 !important; background: #fff !important; color: #000 !important; }
html.ui-contrast .lad-table { background: #fff; box-shadow: inset 0 0 0 3px #000; }
html.ui-contrast .lad-fair, html.ui-contrast .learn-banner { background: #fff; color: #000; border: 2px solid #000; }
@media (prefers-reduced-motion: reduce) {
  .lad-seat.next .lad-chair, .lad-chair.nudge { animation: none; }
  .lad-star, .lad-you, .lad-chair { transition: none; }
}
.lad { background: #fffaf0; border-radius: 20px; padding: 14px 18px 18px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
@media (max-width: 600px) { .lad { padding: 10px 12px 14px; border-radius: 16px; } }
