.custom-minesweeper-hero{padding-bottom:20px}
.custom-minesweeper-hero h1{overflow-wrap:anywhere}
.custom-board-builder{margin:0 0 20px;padding:22px;border:1px solid var(--line-soft);border-radius:20px;background:linear-gradient(135deg,color-mix(in srgb,var(--blue) 7%,var(--panel)),var(--panel) 58%);box-shadow:var(--shadow)}
.custom-builder-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}
.custom-builder-heading .eyebrow-small{margin:0 0 5px}
.custom-builder-heading h2{margin:0;color:var(--text);font-size:23px;line-height:1.25;letter-spacing:-.025em}
.custom-builder-heading p:last-child{margin:5px 0 0;color:var(--muted);font-size:13px;line-height:1.6}
.custom-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-bottom:18px}
.custom-preset{display:grid;gap:3px;min-height:61px;padding:10px 13px;border:1px solid var(--line-soft);border-radius:11px;background:var(--panel-2);color:var(--text);font:inherit;text-align:left;cursor:pointer;transition:transform .15s ease,border-color .15s ease,background .15s ease}
.custom-preset:hover{transform:translateY(-1px);border-color:color-mix(in srgb,var(--blue) 45%,var(--line));background:var(--panel-3)}
.custom-preset.selected{border-color:color-mix(in srgb,var(--blue) 58%,var(--line));background:color-mix(in srgb,var(--blue) 12%,var(--panel-2));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--blue) 30%,transparent)}
.custom-preset strong{font-size:13px;line-height:1.35}
.custom-preset span{color:var(--muted);font-size:11px;line-height:1.4}
.custom-board-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,.7fr);column-gap:20px;align-items:end}
.custom-board-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
.custom-board-field{display:grid;gap:6px;min-width:0}
.custom-board-field label{color:var(--text);font-size:12px;font-weight:750}
.custom-board-field input{width:100%;min-width:0;min-height:43px;padding:8px 11px;border:1px solid var(--line);border-radius:9px;background:var(--bg-soft);color:var(--text);font-size:15px;font-weight:700;font-variant-numeric:tabular-nums}
.custom-limits{grid-column:1 / -1;margin:8px 0 0;color:var(--muted);font-size:11px;line-height:1.55}
.custom-board-summary{grid-column:1 / -1;margin:9px 0 0;color:var(--blue);font-size:12px;font-weight:750;font-variant-numeric:tabular-nums}
.custom-apply-hint{grid-column:1 / -1;margin:4px 0 0;color:var(--muted);font-size:11px;line-height:1.45}
.custom-safe-note{display:flex;align-items:center;gap:10px;min-height:54px;padding:8px 11px;border:1px solid color-mix(in srgb,var(--green) 20%,var(--line-soft));border-radius:10px;background:color-mix(in srgb,var(--green) 5%,var(--panel-2))}
.custom-safe-icon{display:grid;place-items:center;flex:0 0 25px;width:25px;height:25px;border-radius:8px;background:color-mix(in srgb,var(--green) 13%,var(--panel));color:var(--green);font-size:14px;font-weight:900}
.custom-safe-note>span:last-child{display:grid;gap:1px;min-width:0}
.custom-safe-note strong{color:var(--text);font-size:11px}
.custom-safe-note span span{color:var(--muted);font-size:10px;line-height:1.4}
.custom-start-button{width:100%;min-height:46px;margin-top:10px}
.custom-board-error{grid-column:1 / -1;margin:9px 0 0;color:var(--red);font-size:12px;font-weight:700}
.custom-game-card{scroll-margin-top:96px}
.custom-game-card .minesweeper-app{padding:19px 22px 17px}
.custom-game-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;max-width:900px;margin:0 auto 10px}
.custom-game-heading .eyebrow-small{margin:0 0 3px}
.custom-game-heading h2{margin:0;color:var(--text);font-size:18px;line-height:1.35}
.custom-game-heading p:last-child{margin:3px 0 0;color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}
.custom-game-actions{display:flex;align-items:center;gap:7px}
.custom-game-card .game-console{border:0;background:transparent;box-shadow:none}
.custom-game-card .game-console-play{padding-top:0}
.custom-game-card .game-console-footer{max-width:900px;margin:0 auto}
.custom-fullscreen-button{flex:0 0 40px;font-size:22px}
.custom-play-hint{margin:10px 4px 0;color:var(--muted);font-size:12px;text-align:center}
.custom-minesweeper-copy{margin-top:30px}
.custom-minesweeper-copy .section-heading{margin-bottom:18px}
.custom-minesweeper-copy .copy-section{padding:19px 21px}
.custom-minesweeper-copy .copy-section h2{font-size:20px}
.custom-minesweeper-copy .copy-section p{max-width:none;font-size:14px;line-height:1.75}
.custom-minesweeper-faq{margin-top:29px}
@media(max-width:760px){
  .custom-board-builder{padding:17px;border-radius:16px}
  .custom-board-form{grid-template-columns:1fr;gap:10px}
  .custom-safe-note{margin-top:2px}
  .custom-start-button{margin-top:0}
  .custom-game-card .minesweeper-app{padding:14px 9px 13px}
  .custom-minesweeper-copy .copy-section{padding:15px}
}
@media(max-width:520px){
  .custom-presets{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-bottom:15px}
  .custom-preset{min-height:49px;padding:8px 11px}
  .custom-board-fields{grid-template-columns:1fr 1fr;gap:10px}
  .custom-mines-field{grid-column:1 / -1}
  .custom-builder-heading h2{font-size:20px}
  .custom-game-heading h2{font-size:16px}
}
