/* Games live in their own windows and use the same raised/inset 1990s controls. */
.mine-grid{margin:0 auto}
button.mine-reset{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;padding:0;line-height:1;vertical-align:middle}
.mine-reset>.smiley{flex:0 0 auto;margin:0}
.mine-grid>.mine-cell{display:flex;align-items:center;justify-content:center;line-height:1;text-align:center;overflow:hidden}
.taskbar{z-index:10000}.start-menu{z-index:10001}.task-button{min-width:0}.task-button>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.game-window{position:absolute;display:flex;flex-direction:column;max-height:calc(100dvh - 70px);max-width:calc(100vw - 16px);color:#111}.game-window .titlebar{flex-shrink:0}.game-window .titlebar>strong{min-width:0}.game-window .titlebar img{width:16px;height:16px}.games-window{width:390px;top:115px;left:calc(50% - 195px)}.game-folder-address{display:flex;align-items:center;gap:8px;padding:6px 5px;font-size:11px;border-bottom:1px solid #888;flex-shrink:0}.game-folder-address>span{display:flex;align-items:center;gap:5px;flex:1;background:white;box-shadow:var(--border-in);padding:5px;overflow:hidden;white-space:nowrap}.game-folder-address img{width:16px;height:16px}.game-folder-intro{background:#fffef5;display:flex;flex-direction:column;gap:7px;padding:23px 20px 0}.game-folder-intro strong{font:700 21px Georgia,serif;color:#222244}.game-folder-intro>span{font-size:11px;color:#7a7a6b}.game-shortcuts{display:grid;grid-template-columns:1fr 1fr;padding:22px 16px 25px;gap:10px;background:#fffef5}.game-shortcuts>button{background:transparent;border:1px dotted transparent;padding:15px 4px;display:flex;flex-direction:column;align-items:center;gap:12px}.game-shortcuts>button:hover,.game-shortcuts>button:focus-visible{border-color:#8c8cb1;background:#ececf1}.game-shortcuts img{width:40px;height:40px}.game-shortcuts strong{color:#000080;font-size:12px;font-weight:400;text-decoration:underline;text-underline-offset:3px}.game-shortcuts small{text-align:center;font-size:10px;line-height:1.7;color:#848474}.game-folder-footer{display:flex;justify-content:space-between;padding:6px 8px;box-shadow:inset 1px 1px #888,inset -1px -1px white;font-size:10px;margin:4px 0 0}.game-menu{display:flex;align-items:center;gap:4px;min-height:31px;padding:3px 4px;font-size:11px;flex-shrink:0;border-bottom:1px solid #888}.game-menu>button{border:0;background:transparent;padding:5px 7px;min-height:25px;white-space:nowrap}.game-menu>button:hover{box-shadow:var(--border-out)}.game-menu>button:last-child{margin-left:auto}.game-menu>label{display:flex;gap:5px;align-items:center;font-size:10px;margin-left:5px}.game-menu select{font:10px Tahoma;background:#fff;border:1px solid #888;border-radius:0;padding:3px;color:#111;max-width:130px}.game-help{font-size:11px;line-height:1.7;padding:10px 12px;margin:0;flex-shrink:0;border-top:1px solid #888;max-height:135px;overflow:auto;background:#ffffe5}.game-status{font-size:10px;line-height:1.6;margin:3px 0 0;padding:6px 8px;box-shadow:inset 1px 1px #888,inset -1px -1px white;flex-shrink:0;min-height:28px}.mines-window{top:105px;left:calc(50% - 157px);width:314px}.mines-window.large-field{width:508px}.mines-shell{padding:10px;overflow:auto;min-height:0}.mines-dashboard{box-shadow:inset 2px 2px #808080,inset -2px -2px white;display:flex;justify-content:space-between;align-items:center;padding:9px 8px;margin-bottom:10px;gap:8px}.digital-counter{background:#1e0808;box-shadow:inset 1px 1px #666,inset -1px -1px #fff;color:#ff2525;font:700 32px/.95 'Courier New',monospace;letter-spacing:-1px;text-shadow:0 0 2px #f003;padding:3px 4px 1px;min-width:63px;text-align:center}.mine-reset{height:36px;width:36px;border:0;box-shadow:var(--border-out);padding:0;background:#c0c0c0;display:grid;place-items:center}.mine-reset:active{box-shadow:var(--border-in)}.smiley{height:24px;width:24px;border:1px solid #222;border-radius:50%;background:#fff024;display:block;position:relative;box-shadow:inset 1px 1px white,inset -1px -1px #bda326}.smiley:before{content:'';position:absolute;height:3px;width:3px;left:5px;top:6px;background:#111;box-shadow:8px 0 #111}.smiley:after{content:'';position:absolute;left:6px;top:11px;width:10px;height:6px;border:2px solid #111;border-top:0;border-radius:0 0 9px 9px}.smiley.lost:before{height:5px;width:5px;background:linear-gradient(45deg,transparent 40%,#111 40%,#111 60%,transparent 60%),linear-gradient(-45deg,transparent 40%,#111 40%,#111 60%,transparent 60%);box-shadow:none;left:4px;top:5px}.smiley.lost i{position:absolute;height:5px;width:5px;left:13px;top:5px;background:linear-gradient(45deg,transparent 40%,#111 40%,#111 60%,transparent 60%),linear-gradient(-45deg,transparent 40%,#111 40%,#111 60%,transparent 60%)}.smiley.lost:after{transform:rotate(180deg);top:14px}.smiley.won:before{width:8px;height:5px;left:3px;box-shadow:8px 0 #111}.mine-scroll{overflow:auto;max-width:100%;padding:3px;box-shadow:inset 2px 2px #808080,inset -2px -2px white}.mine-grid{display:grid;grid-template-columns:repeat(var(--mine-size),28px);grid-auto-rows:28px;width:max-content;background:#aaa;touch-action:manipulation}.mine-cell{padding:0;margin:0;border:0;box-shadow:var(--border-out);background:#c0c0c0;position:relative;font:bold 19px/28px 'Courier New',monospace;user-select:none;touch-action:manipulation;width:28px;height:28px}.mine-cell.is-open{box-shadow:inset 1px 1px #888;border:0}.mine-cell.is-open[data-number="1"]{color:#0000ff}.mine-cell.is-open[data-number="2"]{color:#008000}.mine-cell.is-open[data-number="3"]{color:#f00}.mine-cell.is-open[data-number="4"]{color:#000080}.mine-cell.is-open[data-number="5"]{color:#800000}.mine-cell.is-open[data-number="6"]{color:#008080}.mine-cell.is-open[data-number="7"]{color:#000}.mine-cell.is-open[data-number="8"]{color:#777}.mine-cell.is-flag:before{content:'';position:absolute;left:11px;top:5px;width:0;height:0;border-top:4px solid transparent;border-bottom:4px solid transparent;border-right:8px solid #e50000}.mine-cell.is-flag:after{content:'';position:absolute;left:17px;top:6px;width:2px;height:15px;background:#111;box-shadow:-3px 14px #111}.mine-cell.is-mine{box-shadow:inset 1px 1px #888}.mine-cell.is-mine:before{content:'';position:absolute;left:8px;top:8px;height:12px;width:12px;border-radius:50%;background:radial-gradient(circle at 4px 4px,white 0 1px,#000 2px)}.mine-cell.is-mine:after{content:'';position:absolute;inset:4px;background:linear-gradient(90deg,transparent 45%,#111 45%,#111 55%,transparent 55%),linear-gradient(0deg,transparent 45%,#111 45%,#111 55%,transparent 55%);z-index:0;pointer-events:none}.mine-cell.exploded{background:red}.mine-cell.wrong-flag{background:#dfb4b4}.mine-cell.wrong-flag:before{border:0;content:'×';color:#b00000;left:6px;top:0;font:bold 25px Arial}.mine-cell.wrong-flag:after{display:none}.mines-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:10px}.flag-mode{padding:4px 8px;font-size:10px;min-height:28px;gap:5px}.mini-flag{font-size:18px;color:#b00000}.flag-mode[aria-pressed="true"]{box-shadow:var(--border-in);background:#ddd}.mines-bottom>span{font-size:10px;color:#444}.solitaire-window{top:90px;left:calc(50% - 315px);width:630px;height:min(610px,calc(100dvh - 145px))}.solitaire-scroll{min-height:0;flex:1;overflow:auto;background:#008000;scrollbar-color:#c0c0c0 #d9d9d9}.solitaire-felt{--card-width:65px;--card-height:91px;--card-step:24px;--card-gap:12px;position:relative;background:#008000;padding:20px 23px 30px;min-height:100%;width:max-content;min-width:100%}.solitaire-top,.solitaire-tableau{display:grid;grid-template-columns:repeat(7,var(--card-width));gap:var(--card-gap)}.solitaire-tableau{align-items:start;margin-top:30px}.card-slot{position:relative;width:var(--card-width);height:var(--card-height);border:1px solid #005b00;box-shadow:inset 1px 1px #006900,inset -1px -1px #209620;background:transparent;border-radius:3px;display:grid;place-items:center;color:#66ad66;padding:0;flex-shrink:0;font:30px Georgia}.card-slot>.playing-card{position:absolute;inset:-1px}.empty-slot{display:block;border:0;width:100%;height:100%;background:none;color:#339933;font:32px Georgia;text-shadow:-1px -1px #006300,1px 1px #008b00;padding:0}.card-slot .slot-label{font:9px Tahoma;color:#74b074}.stock-slot.has-stock{background:repeating-conic-gradient(#91b6df 0% 25%,#122c8f 0% 50%) 50%/6px 6px;border:4px solid white;outline:1px solid #111;box-shadow:2px 2px white,3px 3px #004900}.stock-slot:not(.has-stock)>span{font:43px Arial;color:#58ae58;line-height:1}.tableau-pile{position:relative;min-height:var(--card-height)}.playing-card{width:var(--card-width);height:var(--card-height);position:absolute;left:0;background:#fffefb;border:1px solid #111;border-radius:3px;color:#121212;padding:0;font-family:Georgia,'Times New Roman',serif;box-shadow:1px 1px #0002;cursor:pointer;touch-action:manipulation;user-select:none}.playing-card:focus-visible{outline:2px solid #fafa75;outline-offset:-4px}.playing-card.card-red{color:#c00000}.playing-card.card-back{cursor:default;border:3px solid white;outline:1px solid #111;background:repeating-conic-gradient(#91b6df 0% 25%,#122c8f 0% 50%) 50%/6px 6px;border-radius:2px}.card-corner{position:absolute;left:4px;top:3px;display:flex;flex-direction:column;align-items:center;font:bold 16px/.95 'Times New Roman',serif;min-width:12px}.card-corner i{font-size:14px;font-style:normal;line-height:1.05}.card-corner.bottom{left:auto;top:auto;right:4px;bottom:3px;transform:rotate(180deg)}.card-center{font-size:37px;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);line-height:1}.card-court{position:absolute;inset:17px 14px;border:1px solid currentColor;background:repeating-linear-gradient(45deg,#caa34133 0 2px,transparent 2px 5px);display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:24px;line-height:.9}.card-court>b{font:bold 14px 'Times New Roman',serif}.card-court>b:last-child{transform:rotate(180deg)}.card-selected{outline:3px solid #ffed6d;outline-offset:-3px;filter:brightness(.93)}.card-dragging{opacity:.5}.empty-tableau>span{opacity:.45}.solitaire-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px;min-height:27px;padding:6px 8px;margin-top:3px;box-shadow:inset 1px 1px #888,inset -1px -1px white;flex-shrink:0}.solitaire-bottom>span:last-child{white-space:nowrap}.solitaire-win{position:absolute;inset:20px 30px auto;z-index:99;box-shadow:var(--border-out),3px 3px #004000;background:var(--silver);padding:30px 20px;display:flex;flex-direction:column;align-items:center;gap:15px;color:#111}.solitaire-win strong{font:700 25px Georgia}.solitaire-win>span{font-size:11px}.game-window button:disabled:hover{box-shadow:none}
@media(max-width:800px){.game-window{top:100px;max-height:calc(100dvh - 148px)}.games-window{left:calc(50% - 195px)}.solitaire-window{height:calc(100dvh - 150px);left:max(8px,calc(50% - 315px))}.mines-window{left:max(8px,calc(50% - 157px))}.mines-window.large-field{left:max(8px,calc(50% - 254px))}.desktop-icons{gap:3px}.desktop-icon{width:64px}}
@media(max-width:650px){.solitaire-felt{--card-width:clamp(34px,calc((100vw - 80px)/7),65px);--card-height:calc(var(--card-width) * 1.4);--card-step:21px;--card-gap:5px;padding:18px 12px 30px}.solitaire-window{left:7px;width:calc(100vw - 14px)}.card-corner{font-size:14px;left:3px;top:3px;min-width:9px}.card-corner i{font-size:12px}.card-corner.bottom{right:3px;bottom:3px}.card-center{font-size:28px}.card-court{inset:15px 10px;font-size:20px}.card-court>b{font-size:10px}.solitaire-tableau{margin-top:25px}.solitaire-bottom{font-size:9px;padding:5px}.solitaire-menu{gap:0}.solitaire-menu>button{font-size:10px;padding:5px 8px}}
@media(max-width:580px){.desktop-icons{left:4px;right:4px;gap:0}.desktop-icon{width:16.66%;font-size:9px}.desktop-icon img{width:27px;height:27px}.desktop-icon span{padding:2px 0}.game-window{top:91px;max-height:calc(100dvh - 133px);max-width:calc(100vw - 14px)}.games-window{left:7px;width:calc(100vw - 14px)}.mines-window{left:calc(50% - 157px);max-width:calc(100vw - 14px)}.mines-window.large-field{left:7px}.solitaire-window{height:calc(100dvh - 133px)}.taskbar:has(.game-task:not([hidden])) .task-button{width:34px;flex:0 1 34px;justify-content:center;padding:3px}.taskbar:has(.game-task:not([hidden])) .task-button>span{display:none}.taskbar:has(.game-task:not([hidden])) .task-button img{height:18px;width:18px;flex-shrink:0}.game-folder-intro strong{font-size:21px}.game-menu select{max-width:118px}.game-menu>label{margin-left:0}.mines-shell{padding:10px}.game-help{font-size:10px}.solitaire-win{inset:20px 10px auto;padding:22px 10px}.solitaire-win strong{font-size:22px}.game-window .game-status{font-size:9px}}
@media(max-width:360px){.mines-window{left:7px}.mines-shell{padding:7px}.mines-dashboard{padding:7px}.mines-bottom{gap:5px}.game-menu>button{padding:5px}.game-menu>label{font-size:9px}.solitaire-felt{--card-step:19px;padding:15px 10px 25px}.card-corner{font-size:12px;left:2px;top:2px}.card-corner i{font-size:10px}.card-corner.bottom{right:2px;bottom:2px}.card-court{inset:12px 8px;font-size:15px}.card-center{font-size:22px}.solitaire-menu>button{font-size:9px;padding:5px 7px}}
