/* Tarok 124 — shared menu-screen controls (Zvok + Profil + account). Full-screen, legible. */
.screen__title.compact { font-size: clamp(30px, 8vw, 52px); }
.acct-static { cursor: default; }

.sound-row { background: rgba(9,15,11,.5); border: 1px solid rgba(233,197,120,.32); border-radius: 18px; padding: 20px; }
.sound-row + .sound-row { margin-top: 16px; }
.snd-line { display: flex; align-items: center; justify-content: space-between; color: #f1eadd; font-family: var(--font-display); font-size: clamp(20px, 5.4vw, 26px); font-weight: 700; }
.range { width: 100%; margin-top: 16px; accent-color: #e3b667; height: 30px; }

/* pill toggle (big) */
.toggle { width: 62px; height: 34px; border-radius: 18px; border: 1px solid rgba(233,197,120,.4); background: rgba(0,0,0,.45); position: relative; cursor: pointer; transition: background .18s ease, border-color .18s ease; -webkit-tap-highlight-color: transparent; }
.toggle i { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #8a9394; transition: transform .18s ease, background .18s ease; }
.toggle.on { background: linear-gradient(180deg, #3f7d57, #2c5e40); border-color: rgba(240,201,106,.7); }
.toggle.on i { transform: translateX(28px); background: #f3d488; }

/* profile avatars + name */
.avatars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.av { aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(233,197,120,.35); background: #141f19 center/cover no-repeat; cursor: pointer; transition: box-shadow .15s ease, border-color .15s ease, transform .1s ease; }
.av.sel { border-color: #f0c96a; box-shadow: 0 0 0 3px rgba(240,201,106,.4), 0 0 20px rgba(240,201,106,.45); }
.av:active { transform: scale(.96); }
.namefield { display: flex; align-items: center; gap: 10px; margin-top: 22px; color: #e9e2d4; font-family: var(--font-display); font-size: clamp(18px, 5vw, 22px); font-weight: 700; }
.namefield input { flex: 1; background: rgba(0,0,0,.4); border: 1px solid rgba(233,197,120,.45); border-radius: 12px; color: #f6efdf; font-size: 20px; padding: 14px 16px; font-family: var(--font-sans); }

/* ── Legal metinler OYUN İÇİNDE (#legalPanel, legal-screen.js) — web + app; bağımsız legal sayfanın tipografisi ── */
.legal-tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 2px 0 10px; }
.legal-tab { font-family: var(--font-sans); font-weight: 700; font-size: 13px; letter-spacing: .3px; color: #d8c9a4; cursor: pointer;
  background: rgba(11,17,13,.55); border: 1px solid rgba(206,168,102,.3); border-radius: 20px; padding: 7px 14px; }
.legal-tab.is-on { color: #f7ecc9; background: rgba(240,201,106,.14); border-color: rgba(233,197,120,.6); }
.legal-body { flex: 1; min-height: 0; width: min(92vw, 720px); overflow-y: auto; -webkit-overflow-scrolling: touch; text-align: left;
  padding: 4px 6px 12px; color: #cdc4b0; font-family: var(--font-sans); font-size: 15px; line-height: 1.6; -webkit-user-select: text; user-select: text; }
.legal-body .upd { color: #8a8168; font-size: 13px; margin: 0 0 4px; }
.legal-body .lead { color: #cdc4b0; }
.legal-body h2 { font-family: var(--font-sans); font-size: 17px; color: #ecdcb4; margin: 22px 0 6px; }
.legal-body h3 { font-size: 15px; color: #e2d3ab; margin: 16px 0 4px; }
.legal-body p, .legal-body li, .legal-body td, .legal-body th { color: #cdc4b0; }
.legal-body a { color: #e7c983; }
.legal-body code { background: rgba(255,255,255,.06); padding: 1px 5px; border-radius: 5px; font-size: 13px; }
.legal-body ul { padding-left: 20px; }
.legal-body table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 13px; display: block; overflow-x: auto; }
.legal-body th, .legal-body td { border: 1px solid rgba(233,197,120,.18); padding: 6px 8px; text-align: left; vertical-align: top; }
.legal-body th { color: #e2d3ab; background: rgba(240,201,106,.05); }
.legal-body .note { margin-top: 24px; padding: 12px 14px; border: 1px solid rgba(233,197,120,.22); border-radius: 12px;
  background: rgba(240,201,106,.05); color: #b9ac8b; font-size: 13px; }
.legal-loading { color: #8a8168; text-align: center; }

/* Oyun-içi legal ekranda da aynı dar-ekran kart-yığını (bkz. legal.ejs — 4 sütunlu tablo taşması) */
@media (max-width: 620px) {
  .legal-body table, .legal-body tbody, .legal-body tr, .legal-body td { display: block; width: 100%; }
  .legal-body thead { display: none; }
  .legal-body table { border: 0; overflow: visible; }
  .legal-body tr { border: 1px solid rgba(233,197,120,.22); border-radius: 12px; background: rgba(240,201,106,.04);
    margin: 12px 0; padding: 4px 14px 10px; }
  .legal-body td { border: 0; padding: 6px 0 0; }
  .legal-body td:first-child { font-weight: 700; color: #ecdcb4; padding-top: 8px; }
}

/* APP — ilk profil kaydındaki sözleşme onayı satırı (+ kapalı SHRANI görünümü) */
.prof-terms { display: flex; align-items: flex-start; gap: 10px; margin: 3px 2px 14px; /* üst ~16px + alt ~27px: onay satırına nefes payı (kullanıcı 2026-09-02) */ cursor: pointer; text-align: left;
  font-family: var(--font-sans); font-size: 13.5px; line-height: 1.45; color: #cfc4ab; -webkit-user-select: none; user-select: none; }
.prof-terms input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: #dca747; }
.prof-terms a { color: #e7c983; }
#profileSave[disabled] { opacity: .45; filter: saturate(.5); pointer-events: none; }

/* Legal okuma ekranı: en altta siyah degrade katman — metin footun arkasında siyaha "fade" olur,
   NAZAJ yapışık durmaz (kullanıcı 2026-09-02, leaderboard hissi) */
/* v3 (kullanıcı: 'siyah zeminden fade' — kesin çözüm): metin, kaydırma kutusunun alt 110px'inde MASKE ile
   fiziksel olarak şeffaflaşır (leaderboard tekniği) → düğme hizasına okunur metin ULAŞAMAZ; altında düz
   SİYAH taban bandı vardır, NAZAJ onun üstüne oturur. */
#legalPanel::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 150px; pointer-events: none; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, #000 45%); }
#legalPanel .screen__foot { position: relative; z-index: 2; }
#legalPanel .legal-body { padding-bottom: 56px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 34px, #000 calc(100% - 110px), transparent calc(100% - 6px));
          mask-image: linear-gradient(180deg, transparent 0, #000 34px, #000 calc(100% - 110px), transparent calc(100% - 6px)); }
