/* Tildrix Ludo account pages (templates/ludo/account). The header, footer and .ludo-button buttons come from ludo/game.css. */
.lacc {
    --a-ink:#f4f5fb;
    --a-muted:#a0a8be;
    --a-panel:var(--lp-panel,#191e2b);
    --a-line:#ffffff14;
    --a-field:var(--lp-field,#101520);
    --a-blue:var(--lp-accent,#2f6feb);
    --a-ok:#72d4b3;
    --a-bad:#f28a9c;
    position:relative;
    z-index:1;
    width:min(1100px,100%);
    margin:0 auto;
    padding:12px 48px 56px;
    color:var(--a-ink);
    font-family:'Atkinson Hyperlegible',sans-serif;
    flex:1;
}
.lacc *,.lacc *::before,.lacc *::after { box-sizing:border-box; }
.lacc.lacc-narrow { width:min(520px,100%); }
.lacc h1,.lacc h2,.lacc h3 { font-family:'Space Grotesk',sans-serif; letter-spacing:-.04em; font-weight:500; }
.lacc h1 { font-size:clamp(34px,5vw,52px); line-height:1.08; margin:14px 0 12px; overflow-wrap:anywhere; }
.lacc h2 { font-size:22px; margin:0 0 14px; }
.lacc h3 { font-size:17px; margin:0 0 10px; letter-spacing:-.02em; }
.lacc a { color:inherit; }
.lacc p a,.lacc .lacc-links a,.lacc .lacc-fine a,.lacc .lacc-logout a { text-decoration:underline; text-underline-offset:3px; }
.lacc-lead { color:#b5bfd3; font-size:16px; line-height:1.6; margin:0 0 24px; }
.lacc-muted { color:var(--a-muted); font-size:14px; line-height:1.6; margin:0 0 14px; }
.lacc-fine { color:#8c96ae; font-size:12.5px; line-height:1.6; margin:14px 0 0; }
.lacc-card { background:var(--a-panel); border:1px solid var(--a-line); border-radius:20px; padding:26px; margin:0 0 20px; min-width:0; }
.lacc-form { display:grid; gap:16px; align-content:start; min-width:0; }
.lacc-field { display:grid; gap:7px; min-width:0; }
.lacc-field label,.lacc label { font-size:13px; color:#b9c1d3; }
.lacc-optional { color:#7e8aa5; font-size:12px; margin-left:4px; }
.lacc input[type=text],.lacc input[type=email],.lacc input[type=password],.lacc input:not([type]) {
    font:400 16px 'Atkinson Hyperlegible',sans-serif; width:100%; min-height:48px; padding:11px 13px;
    border:1px solid #ffffff1c; border-radius:10px; background:var(--a-field); color:var(--a-ink); outline:none; min-width:0;
}
.lacc input:focus,.lacc select:focus { border-color:#729dfc; box-shadow:0 0 0 3px #3f7df72a; }
.lacc select { font:400 16px 'Atkinson Hyperlegible',sans-serif; width:100%; min-height:48px; padding:11px 13px; border:1px solid #ffffff1c; border-radius:10px; background:var(--a-field); color:var(--a-ink); color-scheme:dark; outline:none; }
.lacc-form h3+.lacc-field,.lacc-form .lacc-check+h3 { margin-top:6px; }
.lacc-push { margin:0; }
.lacc-field small { color:#8c96ae; font-size:12.5px; line-height:1.5; }
.lacc-field.has-error input { border-color:var(--a-bad); }
.lacc-field.has-error small b { color:#ffcfda; font-weight:400; }
.lacc-check { display:flex; gap:12px; align-items:flex-start; font-size:14px!important; color:#d7dceb!important; line-height:1.5; cursor:pointer; }
.lacc-check input { width:20px; height:20px; margin:1px 0 0; accent-color:var(--a-blue); flex:none; }
.lacc-check small { display:block; color:#8c96ae; font-size:12.5px; }
.lacc .ludo-button { justify-content:center; text-align:center; }
.lacc-form .ludo-button,.lacc-head-actions .ludo-button { width:auto; }
.lacc-narrow .lacc-form .ludo-button { width:100%; }
.lacc-links { display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-top:20px; font-size:14px; color:#b9c1d3; }
.lacc-flash { padding:14px 18px; border-radius:12px; margin:0 0 18px; font-size:14px; line-height:1.55; border:1px solid; }
.lacc-flash p { margin:0; }
.lacc-flash p+p { margin-top:6px; }
.lacc-flash.is-ok { border-color:#72d4b355; background:#16302b; color:#c9f3e4; }
.lacc-flash.is-error { border-color:#f28a9c66; background:#3a202c; color:#ffcfda; }
.lacc-hp { position:absolute!important; left:-10000px; top:auto; width:1px; height:1px; overflow:hidden; }
.lacc-sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.lacc-head { display:flex; justify-content:space-between; align-items:flex-end; gap:20px; margin:0 0 24px; flex-wrap:wrap; }
.lacc-head>div:first-child { min-width:0; }
.lacc-head .lacc-muted { margin:0; }
.lacc-head-actions { display:flex; gap:10px; flex-wrap:wrap; }
.lacc-kpis { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:12px; margin:0 0 20px; }
.lacc-kpi { background:var(--a-panel); border:1px solid var(--a-line); border-radius:16px; padding:16px; min-width:0; }
.lacc-kpi span { color:#b9c1d3; font-size:12.5px; }
.lacc-kpi strong { display:block; font:500 28px 'Space Grotesk',sans-serif; margin:6px 0 4px; letter-spacing:-.03em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.lacc-kpi small { color:#8c96ae; font-size:12px; }
.lacc-color { display:flex!important; align-items:center; gap:8px; font-size:20px!important; }
.lacc-color i { width:14px; height:14px; border-radius:50%; flex:none; }
.seat-0 { background:#3f7df7; } .seat-1 { background:#ec5aae; } .seat-2 { background:#e9b85d; } .seat-3 { background:#64c9ae; }
.lacc-columns { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.lacc-bars { list-style:none; margin:0; padding:0; display:grid; gap:12px; }
.lacc-bars li { display:grid; grid-template-columns:90px 1fr 36px; gap:12px; align-items:center; font-size:13.5px; color:#d7dceb; }
.lacc-bars b { height:10px; background:#252d40; border-radius:6px; overflow:hidden; }
.lacc-bars i { display:block; height:100%; background:linear-gradient(90deg,#3f7df7,#ec5aae); border-radius:6px; }
.lacc-bars li>span:last-child { text-align:right; font-variant-numeric:tabular-nums; }
.lacc-table { width:100%; border-collapse:collapse; font-size:14px; }
.lacc-table th { text-align:left; color:#8c96ae; font-weight:400; font-size:12.5px; padding:0 10px 10px 0; border-bottom:1px solid var(--a-line); }
.lacc-table td { padding:12px 10px 12px 0; border-bottom:1px solid #ffffff0b; color:#d7dceb; font-variant-numeric:tabular-nums; }
.lacc-table tr:last-child td { border-bottom:0; }
.lacc-table a { color:#9fbeff; }
.lacc-win { color:var(--a-ok); font-weight:400; }
.lacc-badges { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:12px; }
.lacc-badges li { display:flex; gap:12px; align-items:flex-start; padding:14px; border-radius:14px; border:1px solid var(--a-line); background:#141927; }
.lacc-badges li.is-locked { opacity:.5; }
.lacc-badges b { display:block; font-weight:400; color:var(--a-ink); font-size:14.5px; }
.lacc-badges small { color:#8c96ae; font-size:12.5px; line-height:1.45; }
.lacc-badge-icon { font-size:22px; line-height:1; color:#e9b85d; }
.is-locked .lacc-badge-icon { color:#7e8aa5; }
.lacc-settings { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:28px; }
.lacc-settings form+form { margin-top:4px; }
.lacc-text-button { background:none; border:0; padding:0; color:#b9c1d3; text-decoration:underline; text-underline-offset:3px; cursor:pointer; font:inherit; font-size:13.5px; justify-self:start; }
.lacc-data .lacc-settings { grid-template-columns:1fr 2fr; }
.lacc-danger { border-left:2px solid #f28a9c55; padding-left:20px; }
.lacc-button-danger { background:#4a2230; color:#ffd5df!important; border-color:#f28a9c55!important; }
.lacc-button-danger:hover { background:#5c2a3b; }
.lacc-logout { margin:24px 0 0; font-size:14px; color:#b9c1d3; }
.lacc-claim { display:flex; gap:20px; justify-content:space-between; align-items:center; border-color:#3f7df755; }
.lacc-claim .lacc-muted { margin:0; }
.lacc-claim form { flex:none; }
.lacc-rooms { display:grid; gap:8px; }
.lacc-rooms a { display:flex; justify-content:space-between; gap:12px; padding:12px 14px; border-radius:12px; background:#141927; text-decoration:none; color:#d7dceb; }
.lacc-rooms small { color:#8c96ae; margin-left:auto; }
.lacc-rank { list-style:none; margin:0; padding:0; display:grid; gap:4px; }
.lacc-rank li { display:grid; grid-template-columns:32px minmax(0,1fr) auto; grid-template-areas:"place nick score" "place meta meta"; column-gap:12px; padding:10px 12px; border-radius:12px; }
.lacc-rank li:nth-child(-n+3) .lacc-rank-place { color:#e9b85d; }
.lacc-rank li.is-me { background:#3f7df71f; }
.lacc-rank-place { grid-area:place; font:500 18px 'Space Grotesk',sans-serif; color:#8c96ae; align-self:center; }
.lacc-rank a { grid-area:nick; text-decoration:none; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.lacc-rank b { grid-area:score; font:500 17px 'Space Grotesk',sans-serif; font-variant-numeric:tabular-nums; }
.lacc-rank small { grid-area:meta; color:#8c96ae; font-size:12px; }
@media(max-width:1050px) {
    .lacc { padding:8px 28px 48px; }
    .lacc-kpis { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .lacc-settings { grid-template-columns:1fr 1fr; }
}
@media(max-width:760px) {
    .lacc-columns,.lacc-settings,.lacc-data .lacc-settings { grid-template-columns:1fr; }
    .lacc-claim { flex-direction:column; align-items:stretch; }
    .lacc-danger { border-left:0; padding-left:0; border-top:1px solid #f28a9c40; padding-top:20px; }
}
@media(max-width:560px) {
    .lacc { padding:4px 16px 40px; }
    .lacc-card { padding:20px 18px; border-radius:16px; }
    .lacc-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
    .lacc-kpi { padding:14px; }
    .lacc-kpi strong { font-size:24px; }
    .lacc-head { align-items:stretch; }
    .lacc-head-actions .ludo-button { flex:1; }
    .lacc-stack thead { display:none; }
    .lacc-stack tr { display:grid; grid-template-columns:1fr 1fr; gap:4px 12px; padding:12px 0; border-bottom:1px solid #ffffff0b; }
    .lacc-stack td { border:0; padding:2px 0; }
    .lacc-stack td[data-label]::before { content:attr(data-label); display:block; color:#7e8aa5; font-size:11.5px; }
    .lacc-bars li { grid-template-columns:76px 1fr 30px; }
}

/* Sign-in through Google, Discord, Facebook (_oauth_buttons.html.twig). Colors and layout follow the brand guidelines:
   Google "Sign in with Google" in the light variant (#fff, outline #747775, text #1f1f1f, Roboto Medium 14 px,
   logo 20 px, 12 px from the left and 10 px to the text), Discord Blurple #5865f2 with the white Clyde, Facebook #1877f2 with the white "f". */
.lacc-oauth { display:grid; gap:10px; margin:0 0 4px; }
.lacc-oauth form { margin:0; }
.lacc-oauth-button {
    display:flex; align-items:center; justify-content:center; gap:10px; width:100%; min-height:44px; padding:0 12px;
    border:1px solid transparent; border-radius:22px; cursor:pointer; position:relative;
    font:500 14px/20px Roboto,'Helvetica Neue',Arial,sans-serif; letter-spacing:.25px; transition:background-color .15s,box-shadow .15s;
}
.lacc-oauth-logo { flex:none; }
.lacc-oauth-button .lacc-oauth-logo { position:absolute; left:12px; }
.lacc-oauth-button:focus-visible { outline:3px solid #729dfc; outline-offset:2px; }
.lacc-oauth-button.is-google { background:#fff; color:#1f1f1f; border-color:#747775; }
.lacc-oauth-button.is-google:hover { background:#f2f2f2; box-shadow:0 1px 2px #0000004d,0 1px 3px 1px #00000026; }
.lacc-oauth-button.is-discord { background:#5865f2; color:#fff; }
.lacc-oauth-button.is-discord:hover { background:#4752c4; }
.lacc-oauth-button.is-facebook { background:#1877f2; color:#fff; font-family:Helvetica,Arial,sans-serif; font-weight:700; }
.lacc-oauth-button.is-facebook:hover { background:#166fe5; }
.lacc-oauth.is-link { grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); margin:6px 0 0; }
.lacc-or { display:flex; align-items:center; gap:12px; margin:18px 0; color:#8c96ae; font-size:12.5px; }
.lacc-or::before,.lacc-or::after { content:""; flex:1; height:1px; background:var(--a-line); }
.lacc-identities { list-style:none; margin:0 0 16px; padding:0; display:grid; gap:0; }
.lacc-identities li { display:grid; grid-template-columns:minmax(150px,auto) 1fr auto; gap:6px 16px; align-items:center; padding:12px 0; border-bottom:1px solid #ffffff0b; font-size:14.5px; }
.lacc-identities small { color:var(--a-muted); font-size:13px; overflow-wrap:anywhere; }
.lacc-identity-name { display:inline-flex; align-items:center; gap:10px; }
.lacc-identity-logo { display:inline-grid; place-items:center; width:28px; height:28px; border-radius:50%; flex:none; }
.lacc-identity-logo svg { width:16px; height:16px; }
.lacc-identity-logo.is-google { background:#fff; }
.lacc-identity-logo.is-discord { background:#5865f2; }
.lacc-identity-logo.is-facebook { background:#1877f2; }
.lacc-identity-last { font-size:12px!important; }
.lacc-steps { margin:0 0 14px; padding-left:22px; display:grid; gap:8px; color:#d7dceb; font-size:14.5px; line-height:1.55; }
@media (max-width:600px) {
    .lacc-identities li { grid-template-columns:1fr auto; }
    .lacc-identities li > small:first-of-type { grid-column:1 / -1; grid-row:2; }
}
/* Cyrillic in headings uses the fallback font - without squeezing the letters under Space Grotesk (UI/UX review 15.10.2026). */
:lang(uk) .lacc h1,:lang(uk) .lacc h2,:lang(uk) .lacc h3 { letter-spacing:-.01em; }
/* A locked field (e.g. a nick before 30 days have passed) should look locked. */
.lacc input:disabled { opacity:.6; cursor:not-allowed; }
/* Header actions (e.g. "Ranking" on a public profile) do not stretch to the height of the nick. */
.lacc-head-actions { align-self:flex-end; }
@media(max-width:620px) { .lacc-head-actions { flex-basis:100%; } }
/* Tildrix Games home page: a game as a card with its icon, the description and "Graj". */
.games-card { display:grid; grid-template-columns:auto 1fr auto; gap:18px; align-items:center; }
.games-card h2 { margin:0 0 4px; }
.games-card p { margin:0; }
@media(max-width:560px) { .games-card { grid-template-columns:auto 1fr; } .games-card .ludo-button { grid-column:1 / -1; justify-self:start; } }
/* The account page (profile.html.twig): every game with its own tile, then a part per game and the account's settings. */
.lacc-games { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin:0 0 28px; }
.lacc-game { display:grid; grid-template-columns:auto 1fr; gap:12px 16px; align-items:center; background:var(--a-panel); border:1px solid var(--a-line); border-radius:20px; padding:20px; min-width:0; }
.lacc-game img { width:64px; height:64px; object-fit:contain; }
.lacc-game h2 { margin:0 0 4px; }
.lacc-game .lacc-muted { margin:0; overflow-wrap:anywhere; }
.lacc-game-actions { grid-column:1 / -1; display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.lacc-game-actions .ludo-button { width:auto; }
.lacc-text-link { color:var(--a-muted); font-size:14px; text-decoration:underline; text-underline-offset:3px; margin-left:auto; }
.lacc h2.lacc-section { display:flex; align-items:center; gap:10px; font-size:26px; margin:34px 0 16px; padding-top:22px; border-top:1px solid var(--a-line); scroll-margin-top:16px; }
.lacc-section img { width:32px; height:32px; object-fit:contain; }
.lacc-cat { display:grid; grid-template-columns:auto 1fr; gap:20px; align-items:center; }
.lacc-cat > img { width:120px; height:120px; object-fit:contain; }
.lacc-cat h3 { font-size:24px; margin:0 0 4px; }
.lacc-cat-lives { color:var(--a-bad); letter-spacing:1px; }
.lacc-places { display:flex; flex-wrap:wrap; gap:8px; list-style:none; padding:0; margin:0; }
.lacc-places li { display:flex; gap:8px; align-items:baseline; padding:6px 12px; border-radius:999px; background:var(--a-field); border:1px solid var(--a-line); font-size:13px; }
.lacc-places b { font:500 16px 'Space Grotesk',sans-serif; color:#e9b85d; }
#ludo-settings .lacc-form { max-width:560px; }
@media(max-width:760px) { .lacc-games { grid-template-columns:1fr; } }
@media(max-width:560px) {
    .lacc-cat { grid-template-columns:1fr; justify-items:center; text-align:center; }
    .lacc-places { justify-content:center; }
    .lacc-text-link { margin-left:0; }
}
