.install-entry{margin:12px 0 4px;padding-top:10px;border-top:1px solid #839d8a55;text-align:center}.install-entry small{display:block;font-size:12px;margin-bottom:5px}.install-entry button{background:transparent!important;color:inherit!important;border:1px solid #839d8a!important;border-radius:12px!important;min-height:42px;padding:8px 12px!important;font-size:14px!important;width:100%;box-shadow:none!important}.install-sheet{box-sizing:border-box;width:min(380px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:24px 20px 14px;border:1px solid #879e83;border-radius:20px;background:#12352d;color:#f6edd8;text-align:center;direction:rtl}.install-sheet::backdrop{background:#051b18b8}.install-sheet h2{margin:8px 0;font-size:24px}.install-sheet p{font-size:15px;line-height:1.6}.install-logo{width:76px;height:76px;border-radius:18px}.install-sheet ol{text-align:start;padding-inline-start:24px;line-height:1.7;font-size:14px}.install-sheet li{margin-block:10px}.install-sheet small{font-size:12px;opacity:.8}.install-sheet button{cursor:pointer;font:inherit;color:inherit}.install-close{position:absolute;inset-inline-end:10px;top:7px;background:none;border:0;font-size:26px!important;padding:4px 10px}.install-later{display:block;width:100%;margin-top:14px;padding:10px;border:1px solid #839d8a;background:transparent;border-radius:10px}.install-confirm{width:100%;padding:12px;margin-bottom:12px;border:0;border-radius:10px;background:#e8c776!important;color:#17352e!important;font-weight:bold}.install-status:empty{display:none}html[data-theme="3"] .install-sheet{background:#fffaf0;color:#153542;border-color:#9cbdbb}@media(max-height:600px){.install-sheet{padding:16px}.install-logo{width:56px;height:56px}.install-sheet h2{font-size:21px}.install-entry{margin-top:8px;padding-top:8px}}

.install-entry .install-card{display:grid;grid-template-columns:48px 1fr;align-items:center;gap:8px 12px;text-align:start!important;padding:14px!important;border-color:#c6a760!important;background:linear-gradient(120deg,#234b3d,#12352c)!important;color:#fff5dc!important;position:relative;overflow:hidden;box-shadow:0 4px 14px #0002!important;border-radius:16px!important;transition:transform .15s,box-shadow .15s}.install-card>img{border-radius:12px;grid-row:1/3}.install-copy strong{display:block;font-size:19px}.install-copy small{display:block!important;font-size:12px!important;line-height:1.6;margin:3px 0 0!important;color:#e2e5ce}.install-card-action{grid-column:2;justify-self:start;background:#eed18d;color:#18382d;border-radius:20px;padding:6px 14px;font-size:13px;font-weight:bold}.install-card:hover{box-shadow:0 5px 18px #b8a06035!important}.install-card:active{transform:scale(.985)}.install-card:focus-visible{outline:3px solid #eac268;outline-offset:3px}html[data-theme="3"] .install-entry .install-card{background:linear-gradient(115deg,#fdf2d5,#f5e2ad)!important;color:#193c38!important;border-color:#c6a760!important}html[data-theme="3"] .install-copy small{color:#45635a}html[data-theme="3"] .install-card-action{background:#164c40;color:#fff5de}.install-entry[hidden]{display:none}@media(max-width:360px){.install-entry .install-card{padding:10px!important;gap:6px 9px;grid-template-columns:40px 1fr}.install-card>img{width:40px;height:40px}.install-copy strong{font-size:17px}.install-copy small{font-size:11px!important}}

@media(max-height:900px){.match-finish:has(.install-entry){padding:12px}.match-finish:has(.install-entry) .finish-sparkles{display:none}.match-finish:has(.install-entry) .finish-trophy{font-size:32px}.match-finish:has(.install-entry) .finish-eyebrow{margin:4px 0}.match-finish:has(.install-entry) h2{font-size:21px;margin:4px}.match-finish:has(.install-entry) h3{margin:6px}.match-finish:has(.install-entry) .finish-winner{margin:4px 0}.match-finish:has(.install-entry) .finish-scores{margin:6px 0}.match-finish:has(.install-entry)>button{padding:9px;margin-top:6px}.match-finish .install-entry .install-card{margin:0}.match-finish .install-entry{margin-top:8px;padding-top:8px}}

/* The result screen keeps installation to one compact row. */
.install-entry-finish .install-card{grid-template-columns:34px 1fr auto!important;gap:8px!important;padding:9px 10px!important;min-height:54px!important}.install-entry-finish .install-card>img{grid-row:auto;width:34px;height:34px;border-radius:9px}.install-entry-finish .install-copy strong{font-size:15px}.install-entry-finish .install-copy small{display:none!important}.install-entry-finish .install-card-action{grid-column:auto;font-size:11px;padding:6px 9px;white-space:nowrap}@media(max-width:360px){.install-entry-finish .install-card{grid-template-columns:30px 1fr auto!important;gap:6px!important;padding:8px!important}.install-entry-finish .install-card>img{width:30px;height:30px}.install-entry-finish .install-copy strong{font-size:13px}.install-entry-finish .install-card-action{font-size:10px;padding:6px}}

@media(max-height:900px){#game-lobby:has(.install-entry){padding:10px 16px}#game-lobby:has(.install-entry) .lobby-brand{margin:4px 0}#game-lobby:has(.install-entry) .lobby-brand b{font-size:32px}#game-lobby:has(.install-entry) .lobby-brand img{width:42px;height:42px}#game-lobby:has(.install-entry) h2{margin:6px 0;font-size:19px}#game-lobby:has(.install-entry) .lobby-fan{height:48px}#game-lobby:has(.install-entry) .note{font-size:10px;margin:5px 0}#game-lobby .install-card{grid-template-columns:30px 1fr auto!important;padding:8px!important;gap:6px!important;min-height:50px}#game-lobby .install-card>img{width:30px;height:30px;grid-row:auto}#game-lobby .install-copy strong{font-size:13px}#game-lobby .install-copy small{display:none!important}#game-lobby .install-card-action{grid-column:auto;white-space:nowrap;font-size:10px;padding:6px}#game-lobby .install-entry{padding-top:6px;margin-top:6px}}

@media(max-height:900px){#game-lobby:has(.install-entry){padding-block:6px}#game-lobby:has(.install-entry) .install-entry{margin-bottom:0}}

@media(max-width:360px){.install-entry-finish .install-copy strong,#game-lobby .install-copy strong{font-size:11px}.install-entry-finish .install-card-action,#game-lobby .install-card-action{font-size:10px;padding:6px 5px}.install-entry-finish .install-card,#game-lobby .install-card{grid-template-columns:26px 1fr auto!important}.install-entry-finish .install-card>img,#game-lobby .install-card>img{width:26px;height:26px}}

@media(max-height:900px){.match-finish:has(.install-entry) .finish-note,.match-finish:has(.install-entry) .finish-eyebrow{display:none}.match-finish:has(.install-entry) .finish-scores li{padding:5px 8px}.match-finish:has(.install-entry) .finish-scores b{font-size:17px}.match-finish:has(.install-entry) .finish-trophy{font-size:26px}.match-finish:has(.install-entry)>button{min-height:36px;padding:6px 8px}.match-finish:has(.install-entry) .finish-scores{gap:4px}}

/* Keep the short install action legible at every viewport. */
.install-entry .install-card-action{font-size:15px!important;padding:7px 12px!important}

.install-card-action{display:inline-flex;align-items:center;justify-content:center;gap:6px}.install-plus-icon{display:block;width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

@media(max-height:500px) and (min-width:600px){
#game-lobby:has(.install-entry){display:grid;grid-template-columns:1fr 1fr;gap:4px 18px;width:min(700px,calc(100vw - 24px));align-items:center}
#game-lobby:has(.install-entry):not([open]){display:none}
#game-lobby:has(.install-entry) .language-picker{grid-column:1;grid-row:1}#game-lobby:has(.install-entry) .lobby-brand{grid-column:2;grid-row:1}
#game-lobby:has(.install-entry) #lobby-title{grid-column:1;grid-row:2}#game-lobby:has(.install-entry) #lobby-mode-title{grid-column:2;grid-row:2}
#game-lobby:has(.install-entry) .lobby-games{grid-column:1;grid-row:3/6}#game-lobby:has(.install-entry) .lobby-modes{grid-column:2;grid-row:3}
#game-lobby:has(.install-entry) #lobby-note{grid-column:2;grid-row:4;margin:2px 0}#game-lobby:has(.install-entry) #lobby-start{grid-column:2;grid-row:5}
#game-lobby:has(.install-entry) .lobby-entry-options{grid-column:1;grid-row:6}#game-lobby:has(.install-entry) .install-entry{grid-column:2;grid-row:6;margin:0;padding:0;border:0}
#game-lobby:has(.install-entry) .note{display:none}#game-lobby:has(.install-entry)>button:last-child{grid-column:1/-1;margin:0}
.match-finish:has(.install-entry){width:min(600px,calc(100vw - 24px))}.match-finish:has(.install-entry) .finish-trophy{display:none}.match-finish:has(.install-entry) .finish-scores{display:grid;grid-template-columns:1fr 1fr}.match-finish:has(.install-entry) h2{font-size:19px}.match-finish:has(.install-entry) .finish-winner{margin:2px}
.install-sheet{width:min(520px,calc(100vw - 24px));padding:12px 20px}.install-sheet .install-logo{display:none}.install-sheet h2{font-size:20px;margin:3px 0}.install-sheet p{margin:6px 0;font-size:13px}.install-sheet li{margin:3px 0}.install-sheet ol{margin:6px 0}.install-sheet .install-later{margin-top:6px;padding:7px}
}

@media(max-height:900px){#game-lobby:has(.install-entry) .lobby-games>button{padding:6px 4px 8px}#game-lobby:has(.install-entry) .lobby-fan{width:104px;height:58px;margin-top:3px}#game-lobby:has(.install-entry) .lobby-fan img{width:36px;height:auto;top:5px;left:8px}#game-lobby:has(.install-entry) .lobby-fan img:nth-child(2){left:23px}#game-lobby:has(.install-entry) .lobby-fan img:nth-child(3){left:38px}#game-lobby:has(.install-entry) .lobby-fan img:nth-child(4){left:53px}#game-lobby:has(.install-entry) .lobby-games strong{font-size:20px;margin-top:2px}}

@media(max-height:500px) and (min-width:600px){.match-finish:has(.install-entry){display:grid;grid-template-columns:1fr 1fr;column-gap:8px}.match-finish:has(.install-entry):not([open]){display:none}.match-finish:has(.install-entry)>*{grid-column:1/-1}.match-finish:has(.install-entry)>button{grid-column:auto}.match-finish:has(.install-entry)>#finish-again{grid-column:1/-1}}

@media(max-height:600px) and (max-width:599px){#game-lobby:has(.install-entry) .lobby-fan{height:48px}}

@media(max-height:600px) and (max-width:599px){#game-lobby:has(.install-entry) .lobby-fan img{width:28px;top:0}}

.ios-install-dialog{padding:0;border:0;background:transparent;width:min(414px,100vw);height:min(590px,100dvh);max-width:100vw;max-height:100dvh;overflow:hidden}.ios-install-dialog::backdrop{background:#031b16b8;backdrop-filter:blur(4px)}.ios-install-dialog iframe{display:block;border:0;width:100%;height:100%}@media(max-height:430px) and (min-width:600px){.ios-install-dialog{width:min(720px,100vw);height:100dvh}}
