/* Language, optional local player files and saved results. */
body>header,.site-header{height:auto;min-height:84px;flex-wrap:wrap;gap:12px;padding-top:16px;padding-bottom:16px}
.player-tools{display:flex;align-items:center;gap:9px;margin-inline-start:auto}
.language-label select,.player-account{min-height:40px;border:1px solid #536079;border-radius:10px;background:#202a3b;color:#f3e7cf;padding:7px 12px;font:13px Tahoma,Arial;cursor:pointer}
.language-label select{min-width:100px}.player-account{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:#34372f;border-color:#9b8964;color:#ffe0a1}
.player-tools button:hover,.player-tools select:hover{border-color:#a8d9ce}.player-tools :focus-visible{outline:3px solid #a5e4d8;outline-offset:3px}
.saved-record{font-size:11px!important;color:#a5d9cf!important;line-height:1.8!important;border-top:1px solid #44544955;padding-top:10px;margin-top:12px!important}
.player-summary{font-size:13px;color:#b5dcd0;margin:0 0 22px;padding:13px 16px;border:1px solid #4c695f;border-radius:12px;background:#1d3331}
.player-save-status{position:fixed;inset:auto 16px 16px;z-index:20;max-width:700px;margin:0 auto;padding:12px 16px;border:1px solid #9c7656;border-radius:11px;background:#392d25;color:#f5d0ac;font:13px/1.8 Tahoma,Arial;box-shadow:0 8px 25px #0006}
.game-saved-record{margin:0 0 18px;padding:11px 15px;border:1px solid #4d655d;border-radius:11px;background:#1b302e;color:#bddecf;font-size:13px;line-height:1.8}
.player-dialog{max-height:85vh;overflow-y:auto;width:min(540px,calc(100vw - 28px));max-width:none;border:1px solid #7a8068;border-radius:20px;background:linear-gradient(145deg,#263b3d,#172334 78%);color:#f3f0e6;padding:24px;box-shadow:0 28px 90px #0009;scrollbar-color:#8e9d8f #172334;font-family:Tahoma,Arial;text-align:start}
.player-dialog::backdrop{background:#040b16c9;backdrop-filter:blur(5px)}
.player-dialog-head{display:flex;justify-content:space-between;gap:20px;align-items:center}.player-eyebrow{margin:0 0 3px;font-size:11px;color:#b9d7c9}.player-dialog h2{font-size:25px;margin:0}.player-dialog h3{font-size:15px;margin:22px 0 10px;color:#e9d6ad}
.player-close{width:42px;height:42px;border:1px solid #7c968a;border-radius:11px;background:#1c3037;color:#f4e5c6;font:27px Arial;cursor:pointer;flex-shrink:0}
.player-local-note{font-size:12px;line-height:1.9;color:#b7c8c9;margin:15px 0}.player-current{color:#ffdda0;font-size:16px;font-weight:bold;margin:20px 0 10px}
.player-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.player-profile-choice{display:flex;justify-content:space-between;align-items:center;gap:10px;min-width:0;text-align:start;border:1px solid #49676a;border-radius:10px;background:#1c303a;padding:12px;color:#d5e5df;font:13px Tahoma,Arial;cursor:pointer}
.player-profile-choice span{min-width:0;overflow-wrap:anywhere}.player-profile-choice small{font-size:10px;color:#b5c8ba;white-space:nowrap}.player-profile-choice[aria-pressed="true"]{border-color:#e8c389;background:#3b3b30;color:#ffdfac}.player-empty{font-size:12px;color:#aabfc3;margin:0;grid-column:1/-1}
#player-create-form{margin-top:22px}#player-create-form label{display:block;color:#e9d6ad;font-size:13px;margin-bottom:9px}.player-create-row{display:flex;gap:8px}.player-create-row input{flex:1;min-width:0;min-height:44px;padding:9px 12px;border:1px solid #5e7479;border-radius:10px;background:#101e2d;color:#eef5ed;font:14px Tahoma,Arial}.player-create-row input::placeholder{color:#839ca5}
.player-create{border:0;border-radius:10px;min-height:44px;padding:9px 16px;background:#c6dbac;color:#203025;font:700 12px Tahoma,Arial;cursor:pointer;white-space:nowrap}
.player-feedback{min-height:21px;font-size:12px;color:#ffc9af;margin:9px 0}.player-guest{width:100%;min-height:44px;border:1px solid #617a7b;border-radius:11px;padding:10px;background:#223841;color:#dbe8e1;font:13px Tahoma,Arial;cursor:pointer}
.player-progress{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.player-progress-item{padding:11px;border:1px solid #4c6667;border-radius:10px;background:#142a32}.player-progress-item strong{font-size:12px;color:#f3dba8}.player-progress-item p{font-size:11px;line-height:1.8;color:#b5d2cd;margin:5px 0 0}
.player-dialog :focus-visible{outline:3px solid #b3f2df;outline-offset:3px}
html[dir="ltr"] .game-card,html[dir="ltr"] .iron-upgrade,html[dir="ltr"] .iron-workshop-panel{text-align:left}
html[dir="ltr"] .card-bottom .play-label b{display:inline-block;transform:scaleX(-1)}
html[dir="ltr"] .game-number{direction:ltr}html[dir="ltr"] .iron-level-hud{direction:ltr}
html[dir="ltr"] .home-link>span{display:inline-block;transform:scaleX(-1)}
@media(max-width:620px){body>header,.site-header{gap:10px;min-height:76px;padding-top:13px;padding-bottom:13px}.player-tools{flex-basis:100%;justify-content:flex-end}.language-label select,.player-account{min-height:38px;font-size:12px}.player-dialog{padding:19px 15px;border-radius:16px}.player-dialog h2{font-size:23px}.player-dialog h3{font-size:14px}.player-list{gap:7px}.player-profile-choice{padding:11px 8px;font-size:12px;gap:5px}.player-progress{gap:6px}.player-progress-item{padding:9px}.game-saved-record{font-size:11px}.player-create{padding-inline:10px;font-size:11px}}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
[hidden]{display:none!important}
