.sapper-page{padding-top:32px}.sapper-heading{display:flex;align-items:center;justify-content:space-between;max-width:680px;padding:15px 20px;background:#1b1c20;border-radius:15px;margin-bottom:24px}.sapper-heading h1{display:flex;align-items:center;gap:12px;margin:0;font-size:20px;font-weight:800;letter-spacing:-.025em}.sapper-heading h1 svg{color:#fcb582;width:24px;height:24px}.sapper-heading button{display:flex;align-items:center;gap:12px;border:0;background:none;color:#c6c9d0;font-size:14px;padding:7px}.sapper-heading button span{font-size:20px}.sapper-rules{padding:18px 22px;border:1px solid #3e3935;background:#2a2624;color:#e5c4ad;border-radius:14px;line-height:1.6;font-size:14px;margin-bottom:20px}.sapper-layout{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(300px,1fr);gap:16px;padding:16px;background:#1b1c1f;border-radius:23px}.sapper-arena{border:1px solid #2d3037;border-radius:19px;min-height:525px;background:#15171a;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:28px 20px 20px}.board-wrap{position:relative;width:100%;display:flex;align-items:center;justify-content:center}.sapper-board{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;padding:8px;border:2px solid #3e3834;background:#282522;border-radius:22px;width:min(100%,420px);position:relative;z-index:1}.sapper-cell{aspect-ratio:1;border:0;border-radius:14px;background:linear-gradient(145deg,#3c3734,#332f2c);box-shadow:inset 0 1px #ffffff08;display:grid;place-items:center;color:#fdd3b5;transition:background .15s,transform .15s}.sapper-cell:not(:disabled):hover{background:#59514c;transform:translateY(-2px)}.sapper-cell:disabled{cursor:default}.sapper-cell svg{width:32px;height:32px}.sapper-cell.safe{background:linear-gradient(135deg,#615953,#47413c)}.sapper-cell.bomb{background:linear-gradient(135deg,#7c304c,#4c2235);color:#ff8da9}.sapper-cell.hit{box-shadow:inset 0 0 0 2px #ed678d}.board-counter{display:flex;flex-direction:column;gap:12px;align-items:center;justify-content:center;width:64px;height:110px;flex:none;border:2px solid #30343d;background:#24211f;color:#feeadc;border-radius:16px}.board-counter svg{width:29px;height:29px}.safe-counter{margin-right:-6px;color:#fcbe92}.mine-counter{margin-left:-6px;color:#ef7896}.board-counter strong{color:#f9ede5;font-size:16px}.round-caption{margin-top:23px;text-align:center;color:#9d948d;font-size:13px;min-height:20px}.sapper-settings{padding:20px 14px;display:flex;flex-direction:column;justify-content:center}.settings-title{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:28px}.settings-title h2{font-size:18px;margin:0}.settings-title>span{font-size:10px;color:#a19790;border:1px solid #4b4540;border-radius:6px;padding:4px 7px}.setting-label{font-size:13px;color:#a0a6b2;margin-bottom:9px}.bet-field,.mines-select{height:51px;border:1px solid #423d39;border-radius:12px;background:#312d2a;display:flex;align-items:center;overflow:hidden}.bet-field:focus-within,.mines-select:focus-within{border-color:#fbab72}.bet-field input,.mines-select input{min-width:0;width:100%;height:100%;background:none;border:0;outline:none;color:#fff6f0;font:800 17px 'Nunito Sans',Arial;padding:0 16px}.bet-field>span{padding-right:17px;color:#e1b290}.sapper-settings input::-webkit-inner-spin-button,.sapper-settings input::-webkit-outer-spin-button{-webkit-appearance:none}.sapper-settings input[type=number]{-moz-appearance:textfield}.bet-shortcuts,.mine-presets{display:flex;gap:7px;margin:9px 0 24px}.bet-shortcuts button,.mine-presets button{flex:1;height:33px;border:0;border-radius:8px;background:#322e2b;color:#aea6a0;font-size:12px;font-weight:800}.mine-presets button.selected{background:#59514c;color:#feefe5}.mines-select button{height:100%;width:48px;border:0;background:#3b3633;color:#f6c6a3;font-size:23px;flex:none}.mines-select input{text-align:center}.round-result{display:flex;justify-content:space-between;gap:15px;padding:16px 0 21px;border-top:1px solid #2f333b}.round-result>div{display:flex;flex-direction:column;gap:7px}.round-result>div:last-child{text-align:right}.round-result span{font-size:12px;color:#878f9d}.round-result strong{font-size:20px;color:#fee0ca}.sapper-play{min-height:49px;border:0;border-radius:12px;background:#f88330;color:#fff;font-size:16px;font-weight:900}.sapper-play:hover{background:#fa964f}.sapper-play:disabled{background:#4c4641;color:#a79e98;cursor:default}.sapper-note{text-align:center;color:#747e8e;font-size:11px;margin:12px 0 0}.sapper-history{margin:28px 0 48px;padding:20px 22px;background:#1b1c20;border-radius:18px}.history-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.history-heading h2{font-size:18px;margin:0}.history-heading span{font-size:12px;color:#737f91}.history-scroll{overflow:auto}.sapper-history table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}.sapper-history th{font-size:12px;color:#788292;padding:12px 15px;border-bottom:1px solid #37322e;font-weight:700}.sapper-history td{font-size:13px;color:#d3cfcc;padding:15px;border-bottom:1px solid #302b28}.sapper-history td:last-child{color:#fcc096}.sapper-history .history-empty td{text-align:center;color:#837870;padding:28px}.sapper-page button:focus-visible{outline:2px solid #fdc69f;outline-offset:3px}
.sapper-heading{max-width:none;min-height:48px;padding:0;background:transparent;border-radius:0;margin-bottom:20px;gap:16px}
.sapper-heading h1{font-size:24px;line-height:1.2;gap:10px}
.sapper-heading h1 svg{width:23px;height:23px;flex:none}
.sapper-heading button{height:38px;padding:0 13px;border:1px solid #30343d;border-radius:9px;background:#272422;font-size:13px;white-space:nowrap}
@media(max-width:1050px){.sapper-layout{grid-template-columns:minmax(0,1.4fr) minmax(270px,1fr)}.board-counter{width:45px;height:90px}.sapper-arena{padding:20px 12px}.sapper-board{gap:5px;padding:6px}.sapper-cell{border-radius:11px}}
@media(max-width:760px){.sapper-page{padding-top:23px}.sapper-heading{max-width:none;padding:12px 14px;margin-bottom:16px}.sapper-heading h1{font-size:17px;gap:8px}.sapper-heading button{font-size:12px;gap:5px}.sapper-layout{grid-template-columns:1fr;padding:10px;gap:8px;border-radius:18px}.sapper-arena{min-height:0;padding:18px 10px}.board-counter{width:35px;height:76px;border-width:1px;border-radius:10px;gap:7px}.board-counter svg{width:20px;height:20px}.board-counter strong{font-size:13px}.sapper-board{width:min(calc(100% - 60px),420px);border-radius:16px;gap:4px;padding:5px}.sapper-cell{border-radius:9px}.sapper-cell svg{width:25px;height:25px}.round-caption{font-size:12px;margin-top:16px}.sapper-settings{padding:14px 8px}.settings-title{margin-bottom:18px}.bet-shortcuts,.mine-presets{margin-bottom:20px}.sapper-history{margin:20px 0 30px;padding:16px 12px}.history-heading h2{font-size:16px}.history-heading span{font-size:10px}.sapper-history th,.sapper-history td{padding:12px 8px}.sapper-history .history-empty td{white-space:normal;line-height:1.6}.sapper-rules{font-size:13px;padding:15px}.bet-field input,.mines-select input{font-size:16px}}
@media(max-width:760px){.sapper-heading{padding:0;gap:8px}.sapper-heading h1{font-size:18px}.sapper-heading button{padding:0 9px;font-size:12px}.sapper-heading h1 svg{width:20px;height:20px}}
@media(max-width:760px){.sapper-board{width:min(100%,420px)}}
 .sapper-history table{table-layout:fixed}
 .sapper-history th:first-child,.sapper-history td:first-child{width:34%}
 .sapper-history th:nth-child(2),.sapper-history td:nth-child(2){width:24%}
 .sapper-history th:nth-child(3),.sapper-history td:nth-child(3){width:18%;text-align:center}
 .sapper-history th:last-child,.sapper-history td:last-child{width:24%;text-align:right}
 .sapper-heading button{align-items:center;justify-content:center;line-height:1;gap:10px}
 .sapper-heading button .rules-chevron{display:block;width:16px;height:16px;flex:none;stroke-width:2.5;transition:transform .2s}
 .sapper-heading button[aria-expanded=true] .rules-chevron{transform:rotate(180deg)}

/* Clear illustrated outcomes instead of text glyphs. */
.sapper-page .sapper-cell{overflow:hidden}
.sapper-page .sapper-cell.safe{background:linear-gradient(145deg,#715034,#4b3b2f);box-shadow:inset 0 0 0 1px #d3894755}
.sapper-page .sapper-cell.bomb{background:linear-gradient(145deg,#653443,#402b35);box-shadow:inset 0 0 0 1px #a15a6755}
.sapper-cell .sapper-cell-icon{display:block;width:76%;height:76%;max-width:62px;max-height:62px;object-fit:contain;pointer-events:none;user-select:none}
@media(max-width:760px){.sapper-cell .sapper-cell-icon{width:80%;height:80%;max-width:54px;max-height:54px}}
