.ludo-public {
    margin:0;
    min-height:100vh;
    display:flex;
    flex-direction:column;
    background:var(--lp-bg);
    color:#f4f5fb;
    font-family:'Atkinson Hyperlegible',sans-serif;
    -webkit-font-smoothing:antialiased;
    color-scheme:dark;
}
.ludo-public *,.ludo-app *,.ludo-consent * {
    box-sizing:border-box;
}
.ludo-public [hidden],.ludo-app [hidden],.ludo-consent[hidden] {
    display:none!important;
}
.ludo-public a {
    color:inherit;
    text-decoration:none;
}
/* :where() - without raising specificity: .ludo-button (Space Grotesk 14 px) wins over this base setting.
   Until 15.10.2026 <button class="ludo-button"> buttons had the paragraph font, and links with the same class - Space Grotesk. */
:where(.ludo-public) button,:where(.ludo-public) input,:where(.ludo-public) select {
    font:inherit;
}
.ludo-ambient {
    position:fixed;
    inset:0;
    pointer-events:none;
    background:radial-gradient(ellipse at 15% 35%,var(--lp-glow-1),transparent 55%),radial-gradient(ellipse at 92% 75%,var(--lp-glow-2),transparent 45%);
    z-index:0;
}
.ludo-nav,.ludo-footer,.ludo-app,.ludo-prose {
    position:relative;
    z-index:1;
}
.ludo-nav {
    width:min(1400px,100%);
    margin:auto;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:28px 48px;
    gap:24px;
}
.ludo-brand {
    display:flex;
    align-items:center;
    gap:18px;
}
.ludo-brand img {
    height:36px;
    width:112px;
    object-fit:contain;
}
.ludo-brand>span {
    font:500 24px 'Space Grotesk',sans-serif;
    border-left:1px solid #ffffff24;
    padding-left:18px;
    letter-spacing:-1px;
}
.ludo-nav nav {
    display:flex;
    gap:30px;
    align-items:center;
    font-size:14px;
    color:#b1b6c8;
}
.ludo-account-nav>a { white-space:nowrap; }
.ludo-nav a:hover,.ludo-footer a:hover {
    color:#f4f5fb;
}
.ludo-app {
    --l-ink:#f4f5fb;
    --l-muted:#a0a8be;
    --l-panel:var(--lp-panel);
    --l-line:#ffffff14;
    color:var(--l-ink);
    width:min(1400px,100%);
    padding:26px 48px 40px;
    margin:0 auto;
    font-family:'Atkinson Hyperlegible',sans-serif;
}
.ludo-in-panel {
    max-width:1420px;
    padding:18px 10px 40px;
    --l-panel:var(--lp-panel);
    background:var(--lp-bg);
    border-radius:24px;
    padding:32px;
    margin-bottom:24px;
}
.ludo-app h1,.ludo-app h2,.ludo-prose h1,.ludo-prose h2,.ludo-consent h2 {
    font-family:'Space Grotesk',sans-serif;
    letter-spacing:-.045em;
}
.ludo-intro {
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    padding:0 0 42px;
    gap:30px;
}
.ludo-eyebrow {
    font:500 10px 'Space Grotesk',sans-serif;
    letter-spacing:.19em;
    line-height:1.5;
    color:#adb7d0;
}
.ludo-live-dot {
    display:inline-block;
    width:6px;
    height:6px;
    border-radius:50%;
    background:#72d4b3;
    margin-right:8px;
    box-shadow:0 0 12px #72d4b344;
}
.ludo-intro h1 {
    font-size:clamp(52px,6.3vw,88px);
    font-weight:500;
    line-height:.99;
    margin:22px 0 20px;
    letter-spacing:-.065em;
}
.ludo-intro h1 em {
    font-style:normal;
    background:linear-gradient(100deg,color-mix(in srgb,var(--p0) 70%,#fff),var(--lp-accent-2));
    color:transparent;
    background-clip:text;
}
.ludo-intro p {
    margin:0;
    color:#adb3c6;
    font-size:16px;
    line-height:1.7;
}
.ludo-intro-aside {
    text-align:right;
    padding-bottom:4px;
}
.ludo-intro-aside p {
    font-size:13px;
    line-height:1.7;
}
.ludo-four-dots {
    display:flex;
    justify-content:flex-end;
    margin-bottom:14px;
    gap:7px;
}
.ludo-four-dots i {
    width:12px;
    height:12px;
    border-radius:50%;
    background:var(--p0);
}
.ludo-four-dots i:nth-child(2) {
    background:var(--p1);
}
.ludo-four-dots i:nth-child(3) {
    background:var(--p2);
}
.ludo-four-dots i:nth-child(4) {
    background:var(--p3);
}
.ludo-grid {
    display:grid;
    grid-template-columns:minmax(0,1fr) 360px;
    gap:28px;
    align-items:start;
}
.ludo-board-wrap {
    background:linear-gradient(145deg,var(--lp-wrap-a),var(--lp-wrap-b));
    padding:24px;
    border:1px solid #ffffff10;
    border-radius:24px;
    box-shadow:0 28px 80px #00000020;
    min-width:0;
}
.ludo-board-top {
    display:flex;
    justify-content:space-between;
    gap:10px;
    align-items:center;
    margin:0 0 20px;
    font:500 10px 'Space Grotesk',sans-serif;
    color:#c4cbdb;
    letter-spacing:.12em;
}
.ludo-board-note {
    color:#8c96ae;
    font-family:'Atkinson Hyperlegible',sans-serif;
    letter-spacing:0;
    font-size:12px;
}
.ludo-board {
    aspect-ratio:1;
    background:var(--b-bg);
    box-shadow:0 0 0 1px var(--b-wrap-line);
    border-radius:18px;
    padding:10px;
    overflow:hidden;
    isolation:isolate;
}
.ludo-board svg {
    width:100%;
    height:100%;
    display:block;
    overflow:visible;
}
.ludo-board-bottom {
    display:flex;
    justify-content:space-between;
    gap:12px;
    margin-top:18px;
    align-items:center;
    flex-wrap:wrap;
    font-size:12px;
    color:#a0a8be;
}
.ludo-board-bottom a {
    color:#a0a8be;
    text-decoration:none;
}
.ludo-board-bottom button {
    background:transparent;
    border:0;
    padding:0;
    color:#a0a8be;
    font:inherit;
    cursor:pointer;
}
.ludo-shield {
    color:var(--p2);
    font-size:16px;
    margin-right:4px;
}
.ludo-sidebar {
    display:grid;
    gap:18px;
}
.ludo-card {
    padding:24px;
    border-radius:20px;
    background:var(--l-panel);
    border:1px solid var(--l-line);
}
.ludo-card h2 {
    font-size:26px;
    font-weight:500;
    margin:8px 0 10px;
}
.ludo-muted {
    color:var(--l-muted);
    font-size:14px;
    line-height:1.6;
}
.ludo-card>.ludo-muted {
    margin:0 0 22px;
}
.ludo-app label {
    display:block;
    font-size:12px;
    color:#b9c1d3;
    margin-bottom:8px;
}
.ludo-app input,.ludo-app select {
    font:400 15px 'Atkinson Hyperlegible',sans-serif;
    width:100%;
    min-height:46px;
    padding:11px 13px;
    border:1px solid #ffffff1c;
    border-radius:9px;
    background:var(--lp-field);
    color:#f4f5fb;
    outline:none;
    min-width:0;
}
.ludo-app input:focus,.ludo-app select:focus {
    border-color:#729dfc;
    box-shadow:0 0 0 3px #3f7df71c;
}
.ludo-app input::placeholder {
    color:#7e8aa5;
}
.ludo-app select {
    appearance:auto;
    color-scheme:dark;
}
.ludo-app form>input {
    margin-bottom:18px;
}
.ludo-form-grid {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
    margin:0 0 22px;
}
.ludo-button {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    width:100%;
    min-height:47px;
    padding:12px 16px;
    font:500 14px 'Space Grotesk',sans-serif;
    border:1px solid transparent;
    border-radius:10px;
    cursor:pointer;
    transition:background .2s,transform .2s;
    text-decoration:none!important;
    text-align:left;
    touch-action:manipulation;
}
.ludo-button:active {
    transform:translateY(1px);
}
.ludo-primary {
    background:var(--lp-accent);
    color:var(--lp-accent-ink)!important;
    box-shadow:0 4px 14px color-mix(in srgb,var(--lp-accent) 12%,transparent);
}
.ludo-primary:hover {
    background:var(--lp-accent-hover);
}
.ludo-secondary {
    background:var(--lp-secondary);
    border-color:#ffffff12;
    color:#e1e6f3!important;
}
.ludo-secondary:hover {
    background:var(--lp-secondary-hover);
}
.ludo-button:disabled {
    opacity:.42;
    cursor:default;
    transform:none;
}
.ludo-divider {
    height:1px;
    background:#ffffff10;
    margin:24px 0;
}
.ludo-inline {
    display:flex;
    gap:8px;
}
.ludo-inline .ludo-button {
    width:auto;
    flex-shrink:0;
}
.ludo-side-caption {
    display:flex;
    align-items:center;
    gap:22px;
    color:#909ab1;
    line-height:1.8;
    font-size:13px;
    padding:4px 18px;
}
.ludo-side-caption>span {
    font:500 60px 'Space Grotesk',sans-serif;
    line-height:1;
    color:var(--lp-accent-2);
    opacity:.6;
}
.ludo-how {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:50px;
    border-top:1px solid #ffffff12;
    margin-top:48px;
    padding-top:32px;
}
.ludo-how>div>span {
    font:400 11px 'Space Grotesk',sans-serif;
    letter-spacing:.1em;
    color:#7d89a2;
}
.ludo-how h2 {
    font-size:20px;
    margin:12px 0 8px;
    font-weight:500;
}
.ludo-how p {
    font-size:14px;
    line-height:1.7;
    color:#a0a8be;
    max-width:280px;
    margin:0;
}
.ludo-footer {
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
    gap:20px;
    width:min(1400px,100%);
    margin:auto auto 0;
    padding:32px 48px calc(32px + env(safe-area-inset-bottom));
    border-top:1px solid #ffffff0c;
    color:#818ba2;
    font-size:12px;
}
.ludo-footer>span>b {
    color:var(--lp-accent-2);
    font-size:20px;
}
.ludo-footer>div {
    display:flex;
    flex-wrap:wrap;
    gap:24px;
}
.ludo-footer button {
    border:0;
    background:none;
    color:inherit;
    font:inherit;
    padding:0;
    cursor:pointer;
}
.ludo-error {
    padding:15px 20px;
    border:1px solid #f28a9c66;
    background:#3a202c;
    color:#ffcfda;
    border-radius:12px;
    margin-bottom:20px;
    font-size:14px;
}
.ludo-recent {
    display:grid;
    gap:8px;
}
.ludo-recent>a {
    display:flex;
    justify-content:space-between;
    align-items:center;
    color:#e1e6f3;
    text-decoration:none;
    padding:10px 0;
    border-bottom:1px solid #ffffff0c;
    font-size:14px;
}
.ludo-recent small {
    display:block;
    color:#98a4be;
    font-size:12px;
    margin-top:5px;
}
.ludo-app .ludo-small-heading {
    font-size:16px;
    letter-spacing:-.025em;
    margin:0;
}
.ludo-card-heading {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
    margin-bottom:18px;
}
.ludo-room-heading {
    display:flex;
    justify-content:space-between;
    gap:20px;
    align-items:flex-end;
    margin:0 0 30px;
}
.ludo-room-heading h1 {
    font-size:clamp(25px,3vw,38px);
    font-weight:500;
    margin:16px 0 0;
}
.ludo-room-heading h1>span {
    color:var(--lp-accent-2);
}
.ludo-back {
    color:#9ca8c0!important;
    font-size:12px;
    text-decoration:none!important;
}
.ludo-connection {
    font-size:12px;
    color:#79d3b7;
    display:flex;
    align-items:center;
    gap:7px;
    flex-shrink:0;
}
.ludo-connection:before {
    content:'';
    width:6px;
    height:6px;
    border-radius:50%;
    background:currentColor;
}
.ludo-connection.is-offline {
    color:#e9b85d;
}
.ludo-turn-card {
    background:radial-gradient(ellipse at 90% 0%,color-mix(in srgb,var(--turn-color,var(--p0)) 12%,transparent),transparent 75%),var(--lp-panel);
}
.ludo-turn-card h2 {
    font-size:24px;
    margin-bottom:12px;
}
.ludo-dice-area {
    display:flex;
    gap:22px;
    align-items:center;
    margin:8px 0 16px;
    padding:14px 0;
}
.ludo-dice-area>div:last-child {
    display:grid;
    gap:6px;
}
.ludo-dice-area strong {
    font:500 24px 'Space Grotesk',sans-serif;
}
.ludo-dice-area span {
    font-size:12px;
    color:#a0a8be;
}
.ludo-dice-scene {
    width:68px;
    height:68px;
    margin:8px;
    perspective:500px;
}
.ludo-dice {
    width:68px;
    height:68px;
    position:relative;
    transform-style:preserve-3d;
    transition:transform .8s cubic-bezier(.2,.7,.25,1);
    transform:rotateX(-12deg) rotateY(15deg);
}
.ludo-dice-face {
    position:absolute;
    inset:0;
    background:var(--d-face);
    border:1px solid var(--d-line);
    border-radius:12px;
    padding:12px;
    display:grid;
    grid-template:repeat(3,1fr)/repeat(3,1fr);
    gap:4px;
    box-shadow:inset 0 -2px 6px var(--d-shade);
    backface-visibility:hidden;
}
.ludo-dice-face i {
    width:10px;
    height:10px;
    border-radius:50%;
    background:var(--d-pip);
    visibility:hidden;
    align-self:center;
    justify-self:center;
}
.face-1 {
    transform:translateZ(34px);
}
.face-2 {
    transform:rotateY(90deg) translateZ(34px);
}
.face-3 {
    transform:rotateY(180deg) translateZ(34px);
}
.face-4 {
    transform:rotateY(-90deg) translateZ(34px);
}
.face-5 {
    transform:rotateX(90deg) translateZ(34px);
}
.face-6 {
    transform:rotateX(-90deg) translateZ(34px);
}
.face-1 i:nth-child(5),.face-2 i:nth-child(1),.face-2 i:nth-child(9),.face-3 i:nth-child(1),.face-3 i:nth-child(5),.face-3 i:nth-child(9),.face-4 i:nth-child(1),.face-4 i:nth-child(3),.face-4 i:nth-child(7),.face-4 i:nth-child(9),.face-5 i:nth-child(1),.face-5 i:nth-child(3),.face-5 i:nth-child(5),.face-5 i:nth-child(7),.face-5 i:nth-child(9),.face-6 i:nth-child(odd),.face-6 i:nth-child(4),.face-6 i:nth-child(6) {
    visibility:visible;
}
.face-6 i:nth-child(5) {
    visibility:hidden;
}
.ludo-players {
    display:grid;
    gap:12px;
}
.ludo-player {
    display:flex;
    align-items:center;
    gap:12px;
    min-width:0;
    padding:4px 0;
}
.ludo-player-chip {
    width:34px;
    height:34px;
    display:grid;
    place-items:center;
    flex-shrink:0;
    color:var(--player-ink,#fff);
    background:var(--player-color);
    border-radius:11px;
    font:500 15px 'Space Grotesk',sans-serif;
    box-shadow:inset 0 -3px 4px #0002;
}
.ludo-player.is-empty .ludo-player-chip {
    border:1px dashed #ffffff33;
    background:none;
    color:#7c87a0;
}
.ludo-player-text {
    flex:1;
    min-width:0;
}
.ludo-player-name {
    font-size:14px;
    color:#e7ebf5;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.ludo-player-text small {
    display:block;
    font-size:11px;
    color:#9ca8c0;
    margin-top:4px;
}
.ludo-player-pawns {
    display:flex;
    gap:3px;
    margin-top:6px;
}
.ludo-player-pawns i {
    width:5px;
    height:5px;
    border-radius:50%;
    background:#ffffff24;
}
.ludo-player-pawns i.is-finished {
    background:var(--player-color);
}
.ludo-player-remove {
    border:0;
    background:none;
    color:#9ba5bc;
    cursor:pointer;
    width:28px;
    height:32px;
    font-size:20px;
}
.ludo-badge {
    font-size:11px;
    color:#a9b5cf;
    background:#ffffff08;
    border:1px solid #ffffff10;
    padding:4px 8px;
    border-radius:7px;
}
.ludo-player.is-current .ludo-player-name {
    color:var(--player-color);
}
#ludo-host-controls {
    display:grid;
    gap:10px;
    margin-top:20px;
}
#ludo-join-panel {
    margin-top:20px;
}
#ludo-join input {
    margin-bottom:12px;
}
.ludo-text-button {
    font-size:11px;
    justify-content:center;
    color:#9eabc4;
    background:none;
    padding-bottom:0;
    margin-top:12px;
}
.ludo-invite {
    background:radial-gradient(ellipse at 100% 0%,color-mix(in srgb,var(--lp-accent-2) 7%,transparent),transparent 80%),var(--lp-panel);
}
.ludo-invite h2 {
    font-size:20px;
    margin:8px 0 18px;
}
.ludo-invite input {
    margin-top:10px;
    font-size:11px;
    background:transparent;
    min-height:35px;
    padding:8px 10px;
    color:#a6b3cf;
}
.ludo-fine {
    font-size:10px;
    display:block;
    margin-top:8px;
}
.ludo-fine b {
    font-weight:400;
    letter-spacing:1px;
}
.ludo-history {
    margin-top:30px;
}
.ludo-history h2 {
    font-size:18px;
    font-weight:500;
    margin:0;
}
.ludo-history ol {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    list-style:none;
    gap:9px;
    padding:0;
    margin:0;
}
.ludo-history li {
    border:1px solid #ffffff0b;
    padding:12px 14px;
    border-radius:10px;
    color:#afb9cf;
    font-size:12px;
    line-height:1.5;
    overflow-wrap:anywhere;
}
.ludo-history time {
    font-size:10px;
    color:#75839e;
    display:block;
    margin-top:6px;
}
.ludo-pawn {
    cursor:default;
    outline:none;
}
.ludo-pawn.is-legal {
    cursor:pointer;
}
.ludo-pawn .pawn-ring {
    fill:none;
    stroke:var(--b-ring);
    stroke-width:3;
    opacity:0;
}
.ludo-pawn.is-legal .pawn-ring {
    opacity:.85;
    animation:ludo-pulse 1.8s ease-in-out infinite;
}
.ludo-pawn:focus-visible .pawn-ring {
    stroke:var(--lp-accent-2);
    stroke-width:5;
    opacity:1;
}
.ludo-pawn.is-legal:hover .pawn-head {
    filter:brightness(1.2);
}
@keyframes ludo-pulse {
    50% {
        stroke-width:5;
        opacity:.4;
    }
}
.ludo-admin-link {
    text-align:right;
    font-size:12px;
    margin:24px 0 0;
}
.ludo-admin-link a {
    color:#aab8d7;
    text-decoration:none;
}
.ludo-prose {
    max-width:800px;
    width:100%;
    padding:40px 24px 60px;
    margin:auto;
    line-height:1.8;
    color:#b5bfd3;
}
.ludo-prose h1 {
    font-weight:500;
    font-size:clamp(36px,5vw,56px);
    color:#f4f5fb;
    line-height:1.2;
    margin:20px 0;
}
.ludo-prose h2 {
    color:#f4f5fb;
    font-size:24px;
    margin-top:32px;
}
.ludo-prose .ludo-lead {
    font-size:20px;
    line-height:1.6;
}
.ludo-prose ol {
    padding-left:22px;
}
.ludo-prose li {
    padding-left:10px;
    margin:20px 0;
}
.ludo-prose strong {
    color:#e7ecf7;
}
.ludo-prose .ludo-button {
    max-width:340px;
    margin-top:30px;
}
.ludo-prose p a {
    text-decoration:underline;
    text-underline-offset:3px;
}
.ludo-consent {
    position:fixed;
    z-index:1090;
    right:24px;
    bottom:max(24px,env(safe-area-inset-bottom));
    background:#20283a;
    border:1px solid #697b9a66;
    border-radius:16px;
    padding:22px;
    width:min(420px,calc(100% - 32px));
    color:#f4f5fb;
    box-shadow:0 12px 50px #0007;
    font-family:'Atkinson Hyperlegible',sans-serif;
}
.ludo-consent h2 {
    font-size:18px;
    margin:0 0 10px;
}
.ludo-consent p {
    font-size:13px;
    line-height:1.65;
    color:#c1cadd;
    margin:0 0 14px;
}
.ludo-consent a {
    color:inherit;
    text-decoration:underline;
}
.ludo-consent>div {
    display:flex;
    gap:10px;
}
.ludo-consent button {
    font:inherit;
    font-size:13px;
    padding:11px;
    border:1px solid #7789aa;
    border-radius:8px;
    background:#2d3a53;
    color:#f4f5fb;
    flex:1;
    cursor:pointer;
    min-height:44px;
}
.ludo-consent-panel-link {
    background:none;
    border:0;
    color:inherit;
    font:inherit;
    font-size:12px;
    cursor:pointer;
}
.ludo-app button:focus-visible,.ludo-public a:focus-visible,.ludo-consent button:focus-visible {
    outline:3px solid var(--lp-accent-2);
    outline-offset:4px;
}
.ludo-sr-only {
    position:absolute!important;
    width:1px!important;
    height:1px!important;
    padding:0!important;
    margin:-1px!important;
    overflow:hidden!important;
    clip:rect(0,0,0,0)!important;
    white-space:nowrap!important;
    border:0!important;
}
.ludo-board.is-won {
    animation:ludo-win 1.4s ease-out 1;
}
@keyframes ludo-win {
    0%,100% {
        box-shadow:0 0 0 0 #ec5aae00;
    }
    40% {
        box-shadow:0 0 0 10px #ec5aae44,0 0 80px #3f7df755;
    }
}
@media(min-width:1400px) {
    .ludo-grid {
        grid-template-columns:minmax(0,1fr) 380px;
        gap:36px;
    }
    .ludo-board-wrap {
        padding:28px;
    }
    .ludo-card {
        padding:28px;
    }
}
@media(max-width:1050px) {
    .ludo-nav {
        padding:24px 28px;
    }
    .ludo-app {
        padding:20px 28px 32px;
    }
    .ludo-grid {
        grid-template-columns:minmax(0,1fr) 310px;
        gap:20px;
    }
    .ludo-card {
        padding:20px;
    }
    .ludo-board-wrap {
        padding:18px;
    }
    .ludo-intro h1 {
        font-size:64px;
    }
    .ludo-footer {
        padding:24px 28px;
    }
    .ludo-form-grid {
        grid-template-columns:1fr;
    }
    .ludo-board-note {
        display:none;
    }
    .ludo-card h2 {
        font-size:23px;
    }
}
@media(max-width:800px) {
    .ludo-grid {
        grid-template-columns:1fr;
    }
    .ludo-app {
        max-width:640px;
    }
    .ludo-nav {
        max-width:640px;
    }
    .ludo-intro {
        padding-bottom:28px;
    }
    .ludo-intro h1 {
        font-size:64px;
    }
    .ludo-intro-aside {
        display:none;
    }
    .ludo-card {
        padding:24px;
    }
    .ludo-form-grid {
        grid-template-columns:1fr 1fr;
    }
    .ludo-sidebar {
        gap:14px;
    }
    .ludo-side-caption {
        display:none;
    }
    .ludo-how {
        gap:20px;
        margin-top:30px;
        padding-top:24px;
    }
    .ludo-how h2 {
        font-size:18px;
    }
    .ludo-how p {
        font-size:12px;
    }
    .ludo-room-heading {
        display:block;
    }
    .ludo-connection {
        margin-top:14px;
    }
    .ludo-history ol {
        grid-template-columns:1fr 1fr;
    }
    .ludo-footer {
        max-width:640px;
        gap:16px;
    }
    .ludo-footer>div {
        gap:16px;
    }
    .ludo-turn-card {
        display:grid;
        grid-template-columns:1fr auto;
        column-gap:16px;
    }
    .ludo-turn-card>.ludo-eyebrow,.ludo-turn-card>h2,.ludo-turn-card>.ludo-muted,.ludo-turn-card>.ludo-button {
        grid-column:1;
    }
    .ludo-dice-area {
        grid-column:2;
        grid-row:1/5;
        flex-direction:column;
        gap:8px;
        margin:0;
        align-items:center;
        text-align:center;
        align-self:center;
        padding:0;
    }
    .ludo-dice-area strong {
        font-size:18px;
    }
    .ludo-turn-card h2 {
        font-size:24px;
        margin:8px 0;
    }
    .ludo-turn-card>.ludo-muted {
        margin:0 0 12px;
    }
    .ludo-in-panel {
        padding:24px!important;
    }
}
@media(max-width:450px) {
    .ludo-nav {
        padding:18px 20px;
    }
    .ludo-brand {
        gap:12px;
    }
    .ludo-brand img {
        width:94px;
        height:30px;
    }
    .ludo-brand>span {
        font-size:21px;
        padding-left:12px;
    }
    .ludo-nav nav {
        font-size:12px;
        gap:12px;
    }
    .ludo-site-link {
        display:none;
    }
    .ludo-app {
        padding:16px 16px 28px;
    }
    .ludo-intro h1 {
        font-size:60px;
        margin-top:18px;
    }
    .ludo-eyebrow {
        font-size:9px;
    }
    .ludo-intro p {
        font-size:14px;
    }
    .ludo-board-wrap {
        padding:12px;
        border-radius:18px;
    }
    .ludo-board {
        padding:6px;
        border-radius:12px;
    }
    .ludo-board-top {
        font-size:8px;
        margin-bottom:12px;
    }
    .ludo-board-bottom {
        font-size:10px;
        margin-top:12px;
        gap:10px;
    }
    .ludo-card {
        padding:20px;
        border-radius:16px;
    }
    .ludo-how {
        grid-template-columns:1fr;
        gap:22px;
    }
    .ludo-how>div {
        padding-left:40px;
        position:relative;
    }
    .ludo-how>div>span {
        position:absolute;
        left:0;
        top:3px;
    }
    .ludo-how h2 {
        margin-top:0;
    }
    .ludo-how p {
        max-width:none;
        font-size:13px;
    }
    .ludo-history ol {
        grid-template-columns:1fr;
    }
    .ludo-history li:nth-child(n+7) {
        display:none;
    }
    .ludo-footer {
        padding:20px 20px calc(24px + env(safe-area-inset-bottom));
        font-size:11px;
    }
    .ludo-consent {
        right:16px;
        bottom:max(16px,env(safe-area-inset-bottom));
        padding:18px;
    }
    .ludo-turn-card {
        column-gap:12px;
    }
    .ludo-turn-card h2 {
        font-size:22px;
    }
    .ludo-turn-card .ludo-button {
        font-size:12px;
        padding:11px 12px;
    }
    .ludo-dice-area span {
        max-width:100px;
        font-size:10px;
    }
    .ludo-in-panel {
        padding:16px!important;
    }
    .ludo-room-heading h1 {
        font-size:26px;
    }
}
@media(prefers-reduced-motion:reduce) {
    .ludo-app *,.ludo-app *:before,.ludo-app *:after {
        animation:none!important;
        transition:none!important;
        scroll-behavior:auto!important;
    }
}
.ludo-move-options {
    /* Since 15.10.2026 the buttons describe the position ("Pionek na polu 12 (2 pionki)"), not the number - one per row, across the full card width. */
    display:grid;
    grid-template-columns:1fr;
    gap:8px;
    margin:0 0 12px;
    grid-column:1/-1;
}
.ludo-pawn-option {
    min-height:44px;
    padding:8px 14px;
    text-align:left;
    line-height:1.3;
    border:1px solid #6c8ab866;
    border-radius:8px;
    background:var(--lp-secondary);
    color:#f4f5fb;
    font:500 13px 'Space Grotesk',sans-serif;
    cursor:pointer;
}
.ludo-pawn-option:hover {
    background:var(--lp-secondary-hover);
}
.ludo-pawn-option:disabled {
    opacity:.5;
}
/* ---------- 15.10.2026: quick start, variants, invitations, reactions, results ---------- */
.ludo-dice-scene {
    display:block;
    flex-shrink:0;
    background:transparent;
    border:0;
    padding:0;
    border-radius:14px;
    cursor:default;
    touch-action:manipulation;
}
.ludo-dice-scene.is-ready {
    cursor:pointer;
}
.ludo-dice-scene.is-ready .ludo-dice-face {
    box-shadow:inset 0 -2px 6px var(--d-shade),0 0 0 3px color-mix(in srgb,var(--turn-color,var(--p0)) 70%,transparent);
}
.ludo-dice-scene.is-ready:hover .ludo-dice {
    transform:rotateX(-20deg) rotateY(28deg)!important;
}
.ludo-dice {
    display:block;
}
.ludo-dice.is-rolling {
    animation:ludo-tumble .45s linear infinite;
}
@keyframes ludo-tumble {
    0% { transform:rotateX(0) rotateY(0) rotateZ(0); }
    100% { transform:rotateX(360deg) rotateY(720deg) rotateZ(90deg); }
}
.ludo-turn-card.is-mine {
    border-color:color-mix(in srgb,var(--turn-color,var(--p0)) 55%,transparent);
    box-shadow:0 0 0 1px color-mix(in srgb,var(--turn-color,var(--p0)) 30%,transparent),0 18px 50px color-mix(in srgb,var(--turn-color,var(--p0)) 18%,transparent);
}
#ludo-timer.is-urgent {
    color:#ffb3c7;
    font-weight:700;
}
.ludo-board {
    position:relative;
}
.ludo-target {
    fill:none;
    stroke:var(--b-ring);
    stroke-width:3;
    stroke-dasharray:5 4;
    opacity:.7;
    pointer-events:all;
    cursor:pointer;
    animation:ludo-target 1.6s linear infinite;
}
.ludo-target.is-focus {
    opacity:1;
    stroke-width:4;
    stroke-dasharray:none;
    fill:color-mix(in srgb,var(--c) 55%,transparent);
}
@keyframes ludo-target {
    to { stroke-dashoffset:-18; }
}
.ludo-reactions-layer {
    position:absolute;
    inset:10px;
    pointer-events:none;
    z-index:2;
}
.ludo-reaction {
    position:absolute;
    transform:translate(-50%,-50%);
    font-size:clamp(28px,6vw,46px);
    line-height:1;
    padding:10px;
    border-radius:50%;
    background:#ffffffe6;
    box-shadow:0 0 0 3px var(--reaction-color),0 10px 26px #0003;
    animation:ludo-react 3s ease-out forwards;
}
.ludo-reaction.is-static {
    animation:ludo-react-fade 3s linear forwards;
}
@keyframes ludo-react {
    0% { opacity:0; transform:translate(-50%,-20%) scale(.4); }
    12% { opacity:1; transform:translate(-50%,-50%) scale(1.1); }
    20% { transform:translate(-50%,-50%) scale(1); }
    80% { opacity:1; transform:translate(-50%,-90%) scale(1); }
    100% { opacity:0; transform:translate(-50%,-120%) scale(.9); }
}
@keyframes ludo-react-fade {
    0%,85% { opacity:1; }
    100% { opacity:0; }
}
.ludo-react-bar {
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:6px;
    margin-top:14px;
}
.ludo-react-bar button {
    width:44px;
    height:44px;
    border-radius:50%;
    border:1px solid #ffffff14;
    background:var(--lp-secondary);
    font-size:22px;
    line-height:1;
    cursor:pointer;
    transition:transform .15s,background .15s;
    touch-action:manipulation;
}
.ludo-react-bar button:hover {
    background:var(--lp-secondary-hover);
    transform:translateY(-2px);
}
.ludo-react-bar button:active {
    transform:scale(.92);
}
.ludo-board-tools {
    display:flex;
    gap:16px;
}
.ludo-nick {
    margin-bottom:16px;
}
.ludo-choice {
    display:flex;
    align-items:center;
    gap:6px;
    margin:0 0 12px;
    flex-wrap:wrap;
}
.ludo-choice>span {
    font-size:12px;
    color:#b9c1d3;
    min-width:92px;
}
.ludo-app .ludo-choice label {
    margin:0;
    position:relative;
}
.ludo-choice input {
    position:absolute;
    opacity:0;
    width:1px!important;
    height:1px;
    min-height:0!important;
    pointer-events:none;
}
.ludo-choice label span {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:44px;
    min-height:38px;
    padding:0 12px;
    border-radius:9px;
    border:1px solid #ffffff1c;
    background:var(--lp-field);
    color:#dfe4f1;
    font:500 13px 'Space Grotesk',sans-serif;
    cursor:pointer;
    transition:background .15s,border-color .15s;
}
.ludo-choice input:checked+span {
    background:var(--lp-accent);
    border-color:var(--lp-accent);
    color:var(--lp-accent-ink);
}
.ludo-choice input:focus-visible+span {
    outline:2px solid #9fc3ff;
    outline-offset:2px;
}
.ludo-choice input:disabled+span {
    opacity:.35;
    cursor:default;
}
.ludo-quick {
    margin-top:6px;
    min-height:54px;
    font-size:16px;
}
.ludo-variants {
    margin:16px 0 0;
    border:1px solid #ffffff12;
    border-radius:10px;
    padding:10px 14px;
    background:var(--lp-field);
}
.ludo-variants summary {
    cursor:pointer;
    font-size:13px;
    color:#dfe4f1;
    list-style-position:inside;
}
.ludo-variants summary .ludo-muted {
    font-size:12px;
    margin-left:6px;
}
.ludo-app .ludo-check {
    display:flex;
    gap:10px;
    align-items:center;
    margin:10px 0 0;
    font-size:13px;
    color:#dfe4f1;
    cursor:pointer;
}
.ludo-app .ludo-check input {
    width:18px;
    height:18px;
    min-height:0;
    padding:0;
    accent-color:var(--lp-accent);
    flex-shrink:0;
}
.ludo-divider>span {
    position:relative;
    top:-9px;
    display:table;
    margin:0 auto;
    padding:0 10px;
    background:var(--l-panel);
    font-size:11px;
    color:#8c96ae;
    letter-spacing:.06em;
}
.ludo-level,.ludo-team,.ludo-you {
    display:inline-block;
    margin-left:7px;
    padding:1px 7px;
    border-radius:20px;
    font:600 10px 'Space Grotesk',sans-serif;
    letter-spacing:.04em;
    vertical-align:2px;
    background:#2c3448;
    color:#c4cbdb;
}
.ludo-level.is-easy { background:#21402f; color:#9fe7c1; }
.ludo-level.is-normal { background:#253552; color:#a9c6ff; }
.ludo-level.is-hard { background:#4a2238; color:#ffb2d8; }
.ludo-you { background:#3f7df733; color:#cfe0ff; }
.ludo-add-bot {
    margin-bottom:10px;
}
.ludo-add-bot select {
    width:auto;
    flex:1;
}
.ludo-invite-code {
    display:grid;
    gap:4px;
    margin:4px 0 14px;
}
.ludo-invite-code>span {
    font:500 10px 'Space Grotesk',sans-serif;
    letter-spacing:.16em;
    color:#adb7d0;
    text-transform:uppercase;
}
.ludo-invite-code strong {
    font:500 34px 'Space Grotesk',monospace;
    letter-spacing:.18em;
    color:#f4f5fb;
}
.ludo-invite-code small {
    font-size:12px;
    color:#8c96ae;
    line-height:1.5;
}
.ludo-qr-wrap {
    display:flex;
    justify-content:center;
    margin:0 0 14px;
}
.ludo-qr-wrap canvas {
    border-radius:14px;
    background:#f4f5fb;
    max-width:100%;
    height:auto;
}
.ludo-invite .ludo-inline {
    margin-bottom:12px;
}
.ludo-invite .ludo-inline .ludo-button {
    flex:1;
    justify-content:center;
}
.ludo-rule-list {
    margin:4px 0 12px;
    padding-left:18px;
    display:grid;
    gap:6px;
    font-size:13px;
    color:#c4cbdb;
    line-height:1.5;
}
.ludo-results {
    border-color:color-mix(in srgb,var(--lp-accent-2) 33%,transparent);
    background:radial-gradient(ellipse at 100% 0%,color-mix(in srgb,var(--lp-accent-2) 12%,transparent),transparent 70%),var(--l-panel);
}
.ludo-ranking {
    list-style:none;
    margin:14px 0 10px;
    padding:0;
    display:grid;
    gap:8px;
}
.ludo-rank {
    display:flex;
    gap:12px;
    align-items:center;
    padding:10px 12px;
    border-radius:12px;
    background:#ffffff08;
}
.ludo-rank:first-child {
    background:color-mix(in srgb,var(--player-color) 16%,transparent);
}
.ludo-rank-place {
    width:30px;
    height:30px;
    flex-shrink:0;
    border-radius:50%;
    display:grid;
    place-items:center;
    background:var(--player-color);
    color:var(--player-ink,#fff);
    font:700 14px 'Space Grotesk',sans-serif;
}
.ludo-rank-text {
    display:grid;
    gap:2px;
    min-width:0;
}
.ludo-rank-text strong {
    font-size:15px;
    overflow-wrap:anywhere;
}
.ludo-rank-text small {
    font-size:12px;
    color:#a0a8be;
}
.ludo-rematch-note {
    font-size:13px;
    line-height:1.5;
    color:#ffd6ea;
    margin:0 0 10px;
}
.ludo-results-actions {
    margin-top:8px;
}
.ludo-results-actions .ludo-button {
    flex:1;
    justify-content:center;
}
.ludo-lang {
    font:600 12px 'Space Grotesk',sans-serif;
    letter-spacing:.08em;
    padding:4px 8px;
    border:1px solid #ffffff24;
    border-radius:6px;
}
/* Language picker (templates/ludo/_lang.html.twig): <details> with a list of language names, works without JS. */
/* Header above the page content, so that the expanded menu does not hide under the cards (they have their own z-index:1). */
.ludo-nav { z-index:5; }
.ludo-lang-menu { position:relative; }
.ludo-lang-menu>summary { display:inline-flex; align-items:center; gap:6px; cursor:pointer; list-style:none; color:inherit; }
.ludo-lang-menu>summary::-webkit-details-marker { display:none; }
.ludo-lang-menu>summary:hover,.ludo-lang-menu[open]>summary { color:#f4f5fb; border-color:#ffffff4d; }
.ludo-lang-menu>summary:focus-visible { outline:2px solid var(--lp-accent,#2f6feb); outline-offset:2px; }
.ludo-lang-menu ul { position:absolute; right:0; top:calc(100% + 8px); z-index:30; margin:0; padding:6px; list-style:none; min-width:168px;
    background:var(--lp-panel,#191e2b); border:1px solid #ffffff24; border-radius:10px; box-shadow:0 14px 40px #0008; }
.ludo-lang-menu li a { display:flex; justify-content:space-between; align-items:center; gap:14px; padding:8px 10px; border-radius:7px; font-size:14px; color:#d6dae6; white-space:nowrap; }
.ludo-lang-menu li a small { font:600 11px 'Space Grotesk',sans-serif; letter-spacing:.08em; color:#8c96ae; }
.ludo-lang-menu li a:hover,.ludo-lang-menu li a:focus-visible { background:#ffffff12; color:#f4f5fb; outline:none; }
.ludo-lang-menu li a[aria-current] { color:#f4f5fb; box-shadow:inset 3px 0 0 var(--lp-accent,#2f6feb); }
@media(max-width:450px) {
    /* Phone: just the globe icon (the language code is in aria-label), so that the header fits longer languages. */
    .ludo-lang-menu>summary { padding:5px 7px; }
    .ludo-lang-menu>summary>span { display:none; }
    .ludo-nav nav { gap:10px; }
}
.ludo-offline {
    min-height:50vh;
}
.ludo-privacy-note { margin:0 0 28px; padding:18px 22px; border:1px solid #ffffff24; border-radius:12px; background:var(--lp-panel,#191e2b); }
.ludo-privacy-note h2 { margin-top:0; }
.ludo-privacy-note p { margin-bottom:0; }
.ludo-offline .ludo-button {
    width:auto;
    display:inline-flex;
}
@media(max-width:450px) {
    .ludo-choice>span {
        min-width:100%;
    }
    .ludo-invite-code strong {
        font-size:30px;
    }
    .ludo-react-bar button {
        width:40px;
        height:40px;
        font-size:20px;
    }
    .ludo-board-tools {
        gap:12px;
    }
}
@media(prefers-reduced-motion:reduce) {
    .ludo-reaction {
        animation:ludo-react-fade 3s linear forwards!important;
    }
}
@media(max-width:800px) {
    /* Start page on a phone: "Zagraj teraz" first, the demo board underneath. */
    .ludo-app[data-room=""] .ludo-sidebar {
        order:-1;
    }
}
@media(max-width:800px) {
    .ludo-react-bar {
        flex-wrap:nowrap;
        gap:4px;
        margin-top:10px;
    }
    .ludo-react-bar button {
        width:auto;
        flex:1 1 0;
        max-width:44px;
        aspect-ratio:1;
        height:auto;
        font-size:19px;
        padding:0;
    }
    .ludo-dice-area {
        max-width:132px;
    }
    .ludo-dice-area strong {
        font-size:15px!important;
    }
    .ludo-app[data-room]:not([data-room=""]) .ludo-room-heading h1 {
        font-size:22px;
        margin:6px 0 0;
    }
    .ludo-app[data-room]:not([data-room=""]) .ludo-intro,.ludo-app[data-room]:not([data-room=""]) .ludo-board-top {
        margin-bottom:12px;
    }
    .ludo-board-wrap {
        padding:12px;
    }
    .ludo-board {
        padding:6px;
    }
}
@media(max-width:800px) {
    .ludo-room-heading {
        margin-bottom:14px;
    }
}
.ludo-account-mark {
    display:inline-grid;
    place-items:center;
    width:16px;
    height:16px;
    margin-left:6px;
    border-radius:50%;
    background:#72d4b3;
    color:#10131c;
    font:700 10px 'Space Grotesk',sans-serif;
    vertical-align:1px;
}
#ludo-account-return {
    margin-top:12px;
}
.ludo-nick small {
    display:block;
    margin-top:6px;
}
/* ---------- 16.10.2026: board themes (tokens in themes.css), player symbols, the "Wygląd" menu ---------- */
.ludo-board .s0 { --c:var(--p0); --cl:var(--p0l); --ci:var(--p0i); }
.ludo-board .s1 { --c:var(--p1); --cl:var(--p1l); --ci:var(--p1i); }
.ludo-board .s2 { --c:var(--p2); --cl:var(--p2l); --ci:var(--p2i); }
.ludo-board .s3 { --c:var(--p3); --cl:var(--p3l); --ci:var(--p3i); }
.ludo-board .g-l { stop-color:var(--cl); }
.ludo-board .g-c { stop-color:var(--c); }
.b-bg { fill:var(--b-bg); }
.b-base-glow { fill:var(--c); opacity:var(--b-glow-op); }
.b-base { fill:var(--b-base); stroke:var(--c); stroke-opacity:.22; stroke-width:1.5; }
.b-slot { fill:var(--c); fill-opacity:var(--b-slot-op); stroke:var(--c); stroke-opacity:.32; stroke-width:1.5; }
.b-cell { fill:var(--b-cell); stroke:var(--b-line); stroke-width:1; }
.b-cell.b-start { fill:var(--c); stroke:none; }
.b-star { fill:var(--b-star); pointer-events:none; }
.b-star.is-start { fill:var(--ci); }
.b-home { fill:var(--c); opacity:var(--b-home-op); }
.b-home-dot { fill:var(--b-home-dot); opacity:.55; }
.b-center { fill:var(--c); opacity:.9; }
.b-disc { fill:var(--b-disc); }
.b-tilde { fill:var(--b-tilde); }
.pawn-shadow { fill:var(--b-shadow); opacity:.22; }
.pawn-base { fill:var(--c); stroke:var(--b-outline); stroke-width:1.2; }
.pawn-body,.pawn-head { stroke:var(--b-outline); stroke-width:1.2; }
.pawn-shine { fill:#fff; opacity:var(--b-shine-op); }
.b-sym-base,.b-sym-center,.pawn-sym { display:none; }
[data-ludo-theme="neon"] .b-glowing { filter:url(#ludo-glow); }
[data-ludo-theme="neon"] .ludo-pawn.is-legal .pawn-head { filter:drop-shadow(0 0 4px var(--c)); }
/* High contrast and symbols: the player's shape on the pawn, in the base and in the center, stronger lines and outlines. */
[data-ludo-symbols="1"] .b-sym-base { display:inline; fill:var(--c); opacity:.55; }
[data-ludo-symbols="1"] .b-sym-center { display:inline; fill:var(--ci); }
[data-ludo-symbols="1"] .pawn-sym { display:inline; fill:var(--ci); }
[data-ludo-symbols="1"] .pawn-shine { display:none; }
[data-ludo-symbols="1"] .b-cell { stroke:var(--b-line-hc); stroke-width:1.5; }
[data-ludo-symbols="1"] .pawn-base,[data-ludo-symbols="1"] .pawn-body,[data-ludo-symbols="1"] .pawn-head { stroke-width:2.2; }
[data-ludo-symbols="1"] .ludo-target { opacity:1; stroke-width:4; }
[data-ludo-symbols="1"] .ludo-pawn.is-legal .pawn-ring { opacity:1; }
.ludo-chip-sym { display:none; }
[data-ludo-symbols="1"] .ludo-chip-sym { display:inline; }
[data-ludo-symbols="1"] .ludo-player-chip .ludo-chip-num { display:none; }
.ludo-rank-sym { color:var(--player-color); margin-right:6px; }
/* "Wygląd" menu */
.ludo-look {
    width:min(520px,calc(100% - 32px));
    max-height:calc(100dvh - 32px);
    padding:0;
    border:1px solid #ffffff1c;
    border-radius:20px;
    background:var(--lp-panel);
    color:#f4f5fb;
    box-shadow:0 24px 80px #000a;
    font-family:'Atkinson Hyperlegible',sans-serif;
    overflow:auto;
}
.ludo-look::backdrop { background:#0009; backdrop-filter:blur(2px); }
.ludo-look form { padding:22px; display:grid; gap:18px; }
.ludo-look-head { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.ludo-look h2 { font:500 22px 'Space Grotesk',sans-serif; letter-spacing:-.03em; margin:0; }
.ludo-look-close { width:44px; height:44px; border-radius:50%; border:1px solid #ffffff1c; background:var(--lp-secondary); color:#f4f5fb; font-size:22px; cursor:pointer; }
.ludo-look fieldset { border:0; margin:0; padding:0; min-width:0; }
.ludo-look legend { font:500 10px 'Space Grotesk',sans-serif; letter-spacing:.16em; text-transform:uppercase; color:#adb7d0; margin-bottom:10px; padding:0; }
.ludo-look-themes { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.ludo-look-themes legend { grid-column:1/-1; }
.ludo-theme-option { position:relative; display:grid; gap:6px; padding:8px; border-radius:14px; border:1px solid #ffffff14; background:var(--lp-field); cursor:pointer; min-width:0; }
.ludo-theme-option input,.ludo-look-modes input { position:absolute; opacity:0; width:1px; height:1px; pointer-events:none; }
.ludo-theme-option:has(input:checked) { border-color:var(--lp-accent-2); box-shadow:0 0 0 2px color-mix(in srgb,var(--lp-accent-2) 45%,transparent); }
.ludo-theme-option:has(input:focus-visible),.ludo-look-modes label:has(input:focus-visible) { outline:3px solid var(--lp-accent-2); outline-offset:2px; }
.ludo-theme-swatch { display:grid; grid-template-columns:repeat(4,1fr); gap:5px; align-items:center; padding:12px 10px; border-radius:10px; background:var(--b-bg); box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--b-line) 70%,transparent); }
.ludo-theme-swatch i { aspect-ratio:1; border-radius:50%; border:1.5px solid var(--b-outline); }
.ludo-theme-swatch i:nth-child(1) { background:var(--p0); }
.ludo-theme-swatch i:nth-child(2) { background:var(--p1); }
.ludo-theme-swatch i:nth-child(3) { background:var(--p2); }
.ludo-theme-swatch i:nth-child(4) { background:var(--p3); }
.ludo-theme-name { font:500 13px 'Space Grotesk',sans-serif; overflow-wrap:anywhere; }
.ludo-look-modes { display:flex; flex-wrap:wrap; gap:8px; }
.ludo-look-modes legend { width:100%; }
.ludo-look-modes label { position:relative; margin:0; }
.ludo-look-modes label span { display:inline-flex; align-items:center; min-height:44px; padding:0 16px; border-radius:10px; border:1px solid #ffffff1c; background:var(--lp-field); font:500 13px 'Space Grotesk',sans-serif; cursor:pointer; }
.ludo-look-modes input:checked+span { background:var(--lp-accent); border-color:var(--lp-accent); color:var(--lp-accent-ink); }
.ludo-look-modes input:disabled+span { opacity:.4; cursor:default; }
.ludo-look-modes small { width:100%; color:#a0a8be; font-size:12px; }
.ludo-look .ludo-check { display:flex; gap:12px; align-items:flex-start; font-size:14px; color:#dfe4f1; cursor:pointer; }
.ludo-look .ludo-check input { width:20px; height:20px; margin-top:2px; accent-color:var(--lp-accent); flex-shrink:0; }
.ludo-look .ludo-check small { display:block; color:#a0a8be; font-size:12px; margin-top:4px; line-height:1.5; }
.ludo-look .ludo-button { justify-content:center; }
@media(max-width:450px) {
    .ludo-look-themes { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .ludo-look form { padding:18px; gap:16px; }
    .ludo-board-top { font-size:9px; }
    .ludo-board-bottom { font-size:11px; }
}
.ludo-push {
    display:grid;
    gap:6px;
    margin-top:16px;
    padding-top:16px;
    border-top:1px solid #ffffff10;
}
.ludo-push .ludo-fine {
    font-size:12px;
    line-height:1.5;
    margin:0;
}
.ludo-push .ludo-button[aria-pressed="true"] {
    border-color:color-mix(in srgb,var(--lp-accent-2) 45%,transparent);
}

/* ---------- UI/UX review 15.10.2026 ---------- */
/* Header: links without wrapping ("Jak grać" at 360 px) and with a larger touch area. */
.ludo-nav nav a { white-space:nowrap; padding:10px 0; }
.ludo-lang-menu>summary { min-height:36px; }
@media(max-width:400px) {
    .ludo-nav { padding:14px 16px; gap:10px; }
    .ludo-brand { gap:9px; }
    .ludo-brand img { width:80px; height:26px; }
    .ludo-brand>span { font-size:18px; padding-left:9px; }
    .ludo-nav nav { gap:9px; font-size:12px; }
    .ludo-account-link { max-width:5.6em; }
}
/* The GA4 consent on desktop on the left - on the right it covered "Gramy od razu" and the turn card. */
@media(min-width:801px) {
    .ludo-consent { right:auto; left:24px; }
}
/* Tools under the board: buttons with a 44 px touch area instead of bare 11 px text. */
.ludo-board-tools { flex-wrap:wrap; gap:8px; }
.ludo-board-bottom .ludo-board-tools button,.ludo-board-bottom>a {
    display:inline-flex; align-items:center; min-height:40px; padding:0 14px; border-radius:999px;
    border:1px solid #ffffff1a; background:var(--lp-secondary); color:#d6dbe8; font-size:13px;
}
.ludo-board-bottom>a { background:transparent; }
.ludo-board-bottom .ludo-board-tools button:hover,.ludo-board-bottom>a:hover { background:var(--lp-secondary-hover); color:#f4f5fb; }
@media(pointer:coarse) { .ludo-board-bottom .ludo-board-tools button,.ludo-board-bottom>a { min-height:44px; } }
.ludo-choice label span { min-height:44px; }
.ludo-player-remove { width:44px; height:44px; border-radius:10px; }
.ludo-player-remove:hover { background:#ffffff0d; color:#f4f5fb; }
.ludo-text-button { font-size:13px; }
/* Pawn choice: where it will land and whom it will capture. */
.ludo-pawn-option { display:grid; gap:3px; padding:9px 14px; }
.ludo-pawn-option small { font:400 12px 'Atkinson Hyperlegible',sans-serif; color:#aeb7cc; }
.ludo-pawn-option small.is-capture { color:#ffc1d6; font-weight:700; }
/* The last important event in the turn card (a capture, finish, someone joined). */
.ludo-news {
    margin:0 0 12px; padding:8px 12px; border-radius:10px; font-size:13px; line-height:1.45;
    background:#ffffff0a; border:1px solid #ffffff14; color:#dfe4f1; grid-column:1/-1;
}
.ludo-news.is-capture { background:#ec5aae1a; border-color:#ec5aae55; color:#ffd6ea; }
.ludo-my-color { display:flex; align-items:center; gap:8px; margin:0 0 12px; font-size:13px; color:#c4cbdb; grid-column:1; }
.ludo-my-color::before { content:""; width:12px; height:12px; border-radius:50%; background:var(--player-color); box-shadow:0 0 0 2px #ffffff22; flex-shrink:0; }
/* Room: waiting room actions in the turn card, the die only during the game. */
.ludo-turn-card #ludo-host-controls,.ludo-turn-card #ludo-join-panel { margin-top:16px; grid-column:1/-1; }
.ludo-turn-card #ludo-account-return { grid-column:1/-1; }
.ludo-app[data-phase="lobby"] .ludo-dice-area,.ludo-app[data-phase="loading"] .ludo-dice-area { display:none; }
.ludo-app[data-phase="lobby"] .ludo-turn-card { display:block; }
.ludo-app[data-phase="lobby"] .ludo-turn-card[hidden] { display:none!important; }
/* The room header is lower, and on desktop the board fits in the window together with the caption. */
.ludo-room-heading { margin-bottom:20px; }
.ludo-room-heading h1 { font-size:clamp(24px,2.4vw,30px); margin-top:8px; }
/* The board column is no wider than the window height allows (1440×900: the board about 610 px instead of 830 px cut off at the bottom);
   the room header and the history have the same width as the grid, so everything is centered and aligned. */
@media(min-width:801px) {
    .ludo-app[data-phase] { --ludo-col:max(420px,calc(100dvh - 230px)); --ludo-side:310px; --ludo-gap:20px; }
    .ludo-app[data-phase] .ludo-grid { grid-template-columns:minmax(0,var(--ludo-col)) var(--ludo-side); gap:var(--ludo-gap); justify-content:center; }
    .ludo-app[data-phase] .ludo-room-heading,.ludo-app[data-phase] .ludo-history,.ludo-app[data-phase]>.ludo-error { max-width:calc(var(--ludo-col) + var(--ludo-side) + var(--ludo-gap)); margin-inline:auto; }
}
@media(min-width:1051px) { .ludo-app[data-phase] { --ludo-side:360px; --ludo-gap:28px; } }
@media(min-width:1400px) { .ludo-app[data-phase] { --ludo-side:380px; --ludo-gap:36px; } }
/* Phone in a room: the board, right below it the turn card (die, pawn choice), then reactions and the rest.
   In the waiting room first the card with actions and the player list, after the game - the results. Order via order, without changing the DOM. */
@media(max-width:800px) {
    .ludo-room-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; margin:0 0 12px; }
    .ludo-room-heading h1 { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; margin:0; }
    .ludo-connection { margin-top:0; }
    .ludo-app[data-phase] .ludo-grid { display:flex; flex-direction:column; align-items:stretch; gap:12px; }
    .ludo-app[data-phase] .ludo-sidebar,.ludo-app[data-phase] .ludo-board-wrap { display:contents; }
    .ludo-app[data-phase] .ludo-board-top { display:none; }
    .ludo-app[data-phase] .ludo-board { order:10; width:100%; }
    .ludo-app[data-phase] .ludo-turn-card,.ludo-app[data-phase] .ludo-results { order:20; }
    .ludo-app[data-phase] .ludo-react-bar { order:30; margin:0; }
    .ludo-app[data-phase] .ludo-board-bottom { order:40; margin:0 4px; }
    .ludo-app[data-phase] .ludo-players-card { order:50; }
    .ludo-app[data-phase] .ludo-invite { order:60; }
    .ludo-app[data-phase] .ludo-room-rules { order:70; }
    .ludo-app[data-phase="lobby"] .ludo-turn-card { order:1; }
    .ludo-app[data-phase="lobby"] .ludo-players-card { order:2; }
    .ludo-app[data-phase="lobby"] .ludo-invite { order:3; }
    .ludo-app[data-phase="finished"] .ludo-results { order:1; }
    .ludo-app[data-phase] .ludo-turn-card>h2 { font-size:21px; margin:6px 0; }
    .ludo-app[data-phase] .ludo-turn-card { padding:16px 18px; }
    .ludo-app[data-phase] .ludo-history { margin-top:20px; }
}
/* Cyrillic: Space Grotesk and Atkinson Hyperlegible do not have it - headings use the fallback font, and the negative letter spacing
   written for Space Grotesk squeezed it (Ukrainian). */
:lang(uk) .ludo-app h1,:lang(uk) .ludo-app h2,:lang(uk) .ludo-prose h1,:lang(uk) .ludo-prose h2,:lang(uk) .ludo-consent h2,:lang(uk) .ludo-look h2 { letter-spacing:-.01em; }
/* Footer and "back" - a larger touch area (text 12-13 px, but a target about 40 px high). */
.ludo-footer>div { row-gap:4px; }
.ludo-footer>div>a,.ludo-footer>div>button { display:inline-block; padding:12px 0; font-size:13px; }
.ludo-back { display:inline-block; padding:10px 0; }
.ludo-button[aria-disabled="true"],.ludo-pawn-option[aria-disabled="true"] { opacity:.65; cursor:progress; }
#ludo-turn-title:focus { outline:none; }
/* Phone, first visit: a lower header and a more concise consent banner - "Gramy od razu" is visible above the banner (390×844). */
@media(max-width:450px) {
    .ludo-intro h1 { font-size:50px; margin:14px 0 14px; }
    .ludo-intro { padding-bottom:22px; }
    .ludo-consent { padding:16px; }
    .ludo-consent h2 { font-size:16px; margin-bottom:6px; }
    .ludo-consent p { font-size:12.5px; line-height:1.55; margin-bottom:12px; }
}
/* The "Boty" and "Poziom botów" labels above the buttons on desktop too - in the 380 px column "trudny" dropped to a second row. */
.ludo-choice>span { min-width:100%; }
.ludo-flash { padding:15px 20px; border:1px solid #72d4b366; background:#173229; color:#c9f3e3; border-radius:12px; margin-bottom:20px; font-size:14px; }
