@import url('../../assets/inter.css');
/* Bet controls follow the source Mines BetPanel; board geometry follows Figma.
   Gold, dark marble and the Olympus artwork are the theme layer. */
:root{color-scheme:dark;--gold:#dabc78;--gold-hi:#f3deab;--gold-lo:#a88443;--line:#c8ae702f;--panel:#11191b;--muted:#9b9b93;--font:'Inter',Arial,sans-serif}
*{box-sizing:border-box}html,body{margin:0;padding:0;width:100%;height:100%;overflow:hidden}body{background:#0d1213;color:#f5f0e5;font:16px var(--font);user-select:none;-webkit-user-select:none}input,textarea{user-select:text;-webkit-user-select:text}button,input{font:inherit}button{background:none;border:0;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}button:disabled{cursor:not-allowed}button:not(:disabled):not(.tile):hover{filter:brightness(1.08)}button:not(.tile):focus-visible,input:focus-visible{outline:2px solid var(--gold-hi);outline-offset:3px}input{border:0;outline:0;background:transparent;color:#fff;min-width:0;width:100%;appearance:textfield;font-variant-numeric:tabular-nums}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}[hidden]{display:none!important}svg{flex-shrink:0}*{scrollbar-width:thin;scrollbar-color:#a68a484f transparent}.svg-defs{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}.scene{position:fixed;inset:0;z-index:-1;background:#091018}.app-shell{height:100dvh;width:100%;display:flex;flex-direction:column;margin:auto}.game-layout{padding:24px;gap:24px;flex:1;min-height:0;display:flex}.control-panel{width:340px;flex-shrink:0;border:1px solid #bda3653f;border-radius:20px;padding:10px;display:flex;flex-direction:column;gap:10px;min-height:0;background:linear-gradient(160deg,#283130f5,#0a1114f5 80%);box-shadow:inset 0 1px #fff1,0 10px 25px #0003;backdrop-filter:blur(12px)}.bet-controls{display:flex;flex-direction:column;gap:20px;min-height:0;flex:1;overflow-y:auto;overflow-x:hidden;overflow-anchor:none}.mode-tabs{display:flex;padding:4px;gap:4px;background:#090e10;border:1px solid #e1c88e24;border-radius:18px;flex-shrink:0}.mode-tabs button{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;gap:10px;flex:1;border-radius:16px;padding:20px 5px;font-size:16px;font-weight:600;line-height:20px;color:#d9d9d4}.mode-tabs .active{background:linear-gradient(#26302a,#1a2422);color:var(--gold);box-shadow:inset 0 1px #fff1}.active-dot{display:none;width:9px;height:9px;border-radius:50%;background:var(--gold);flex-shrink:0}.mode-tabs .active .active-dot{display:block}.mode-tabs .active:before,.mode-tabs .active:after,.primary-action:before,.primary-action:after{content:'';position:absolute;width:31px;height:31px;background-image:radial-gradient(#090e108c 1.5px,transparent 1.8px);background-size:7px 7px;pointer-events:none}.mode-tabs .active:before,.primary-action:before{left:4px;top:4px}.mode-tabs .active:after,.primary-action:after{right:4px;bottom:4px}.bet-amount-group{display:flex;flex-direction:column;gap:10px;flex-shrink:0}.field-label{display:block;color:#a29880;font-size:14px;font-weight:700;text-transform:uppercase;line-height:30px;margin:0}.bet-amount-group>.field-label{margin-bottom:-10px}.input-shell{display:flex;align-items:center;width:100%;height:70px;min-height:70px;overflow:hidden;border:1px solid #aa956455;border-radius:17px;padding:1px;background:linear-gradient(#1b2729,#152023);box-shadow:inset 0 2px 4px #0006}.input-shell:focus-within{border-color:var(--gold)}.input-value{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;flex:1;padding:0 15px}.input-shell input{font-size:22px;font-weight:500;line-height:20px}.input-currency{font-size:22px;font-weight:700;letter-spacing:.5px;color:#887957}.inline-adjust{display:none;height:100%;flex-shrink:0}.inline-adjust button{border-left:1px solid #aa956455;width:70px;height:100%;font-size:16px;font-weight:600;color:#c2bdad;padding:0}.inline-adjust button:first-child{font-size:22px}.inline-adjust .max-bet{color:var(--gold)}.half-double-row{display:flex;gap:10px}.half-double-row button{display:flex;align-items:center;justify-content:center;gap:4px;flex:1;height:59px;border:1px solid #aa95643c;border-radius:16px;background:linear-gradient(#1b2425,#151e20);box-shadow:inset 0 1px #fff1;color:#c1bcad;font-size:16px;font-weight:600}.half-double-row button:first-child{font-size:22px}.mine-selector{flex-shrink:0}.mine-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.mine-options button{height:38px;display:flex;align-items:center;justify-content:center;border-radius:10px;border:1px solid #a58f5b40;background:linear-gradient(#1b2424,#141d20);color:#b9b6ab;font-size:15px;font-weight:700;box-shadow:inset 0 1px #fff1}.mine-options button[aria-pressed=true]{background:linear-gradient(#e0c386,#ab8545);border-color:#f0d69b88;box-shadow:inset 0 1px #fff4,0 0 0 1px #c8ac6e55;color:#211f17}.bet-controls button:disabled,.bet-controls input:disabled{opacity:.4}.mode-tabs:has(button:disabled){opacity:.55}.mode-tabs button:disabled{opacity:1}.action-stack{display:flex;flex-direction:column;gap:10px;flex-shrink:0}.primary-action{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;gap:10px;width:100%;height:70px;min-height:70px;border-radius:17px;border:1px solid #f1d9a166;background:linear-gradient(#e9cd90,#b99453);box-shadow:inset 0 1px #fff5;color:#25251d;font-size:22px;font-weight:600;text-transform:uppercase;white-space:nowrap}.primary-action.cashout{background:linear-gradient(#f5e3b4,#d3ae66);box-shadow:inset 0 1px #fff6,0 0 24px #d7b76830}.primary-action:disabled{background:linear-gradient(#30332e,#1e2523);color:#787a6b;border-color:#a5976c33;box-shadow:inset 0 1px #fff1}.random-action{height:64px;min-height:64px;width:100%;display:flex;align-items:center;justify-content:center;gap:12px;border:1px solid #c2ac744d;border-radius:10px;background:radial-gradient(circle at 12% 0%,#eee8d912,transparent 36%),linear-gradient(#192223,#0e1719);color:#c3beac;font-size:20px;font-weight:700;text-transform:uppercase;box-shadow:inset 0 1px #fff1,inset 0 -1px #000b}.random-action svg{width:30px;height:30px}.random-action:disabled{opacity:.4}.auto-settings{display:flex;flex-direction:column;gap:10px;flex-shrink:0}.auto-pairs{display:flex;gap:10px}.auto-pairs>.auto-field{flex:1;min-width:0}.auto-field input{padding:0 15px}.auto-field .input-shell>span,.auto-field .input-shell>button{padding:0 15px;flex-shrink:0;color:#9e8e64;font-size:22px;font-weight:700}.auto-pairs .field-label{line-height:20px;min-height:40px;display:flex;align-items:center}.auto-mode .inline-adjust{display:flex}.auto-mode .half-double-row{display:none}.game-column{display:flex;flex:1;flex-direction:column;min-width:0;min-height:0;gap:24px}.game-zone{position:relative;display:flex;min-height:0;min-width:0;flex:1;align-items:center;justify-content:center}.mines-game-shell{--board-size:min(622px,100%,max(270px,calc(100dvh - 266px)));position:relative;display:flex;flex-direction:column;align-items:center;width:100%;height:100%;max-width:768px}.board-zone{display:flex;flex:1;min-height:0;width:100%;align-items:center;justify-content:center;padding:8px 0 16px}.board-surround{position:relative;width:var(--board-size);max-width:100%;aspect-ratio:1;flex-shrink:0;isolation:isolate}.board-frame{position:relative;width:100%;aspect-ratio:1}.board{position:absolute;left:calc(41 / 622 * 100%);top:calc(36 / 622 * 100%);width:calc(540 / 622 * 100%);aspect-ratio:1;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;z-index:1}.tile{position:relative;border:0;aspect-ratio:1;min-width:0;width:100%;padding:0;isolation:isolate;border-radius:0;background:transparent;opacity:1!important}.tile:before{content:'';position:absolute;inset:0;background:url('../../assets/marble-tile.png') center/100% 100% no-repeat;z-index:-1;border-radius:inherit}.tile:focus-visible{outline:none}.tile.safe,.tile.mine{background:transparent;border:0;box-shadow:none;outline:none}.tile.safe:before,.tile.mine:before{content:none}.tile img{position:absolute;inset:2%;height:96%;width:96%;object-fit:contain;pointer-events:none}.tile.dimmed img{opacity:.35;filter:saturate(.6)}.tile.hit{z-index:4}.mines-outcome{display:flex;align-items:center;justify-content:center;gap:12px;margin:0 0 12px;padding:10px 20px;border:1px solid #ddc38877;border-radius:10px;background:#17211deb;flex-shrink:0}.mines-outcome-value{font-size:26px;font-weight:600;color:var(--gold-hi)}.mines-outcome-meta{font-size:14px;color:#c6bd9f}.game-footer{display:flex;align-items:center;justify-content:center;padding:15px;background:#101718f5;border:1px solid #d0b57726;min-height:86px;flex-shrink:0}.footer-left,.footer-right{display:flex;flex:1;min-width:0;align-items:center;gap:10px}.footer-right{justify-content:flex-end}.secondary-button{display:flex;align-items:center;justify-content:center;gap:10px;min-height:54px;width:120px;border:1px solid #b19d7040;border-radius:17px;background:linear-gradient(#202928,#141d1f);color:#c5bea9;font-size:12px;font-weight:600}.secondary-button svg{width:20px;height:20px}.footer-brand{display:flex;align-items:center;justify-content:center;flex-shrink:1;width:223px;max-width:calc(100% - 124px)}.footer-brand>svg{width:18px;height:15px}.footer-brand>span{text-transform:uppercase;font-size:21px;letter-spacing:3.15px}.toast{position:fixed;z-index:120;left:50%;bottom:100px;transform:translateX(-50%);padding:14px 20px;border:1px solid #bba067;border-radius:10px;background:#172221f5;max-width:90%;font-size:13px;text-align:center;box-shadow:0 5px 25px #0007}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.popover-overlay{position:fixed;inset:0;z-index:100}.popover-backdrop{position:absolute;inset:0}.popover{position:absolute;bottom:86px;left:16px;width:340px;height:476px;max-height:calc(100dvh - 100px);overflow:hidden;display:flex;flex-direction:column;border:1px solid #d5c29366;border-radius:20px;background:#080f11f7;box-shadow:0 4px 24px #0008;backdrop-filter:blur(16px)}.fairness-popover{left:auto;right:16px}.popover-content{height:100%;display:flex;flex-direction:column}.settings-main{padding:20px 0;overflow-y:auto;display:flex;flex-direction:column;gap:20px}.settings-group{padding:0 20px;display:flex;flex-direction:column;gap:18px}.settings-divider{height:1px;min-height:1px;background:var(--line)}.settings-row{display:flex;align-items:center;gap:10px;text-align:left;width:100%;padding:0;font-size:14px;min-height:20px;color:#d9d8cd}.settings-row svg{width:20px;height:20px;color:#b0a88e}.settings-row .row-label{flex:1}.settings-row .chevron{font-size:22px;line-height:20px;color:#8d8e7d}.switch{position:relative;width:34px;height:20px;border-radius:20px;background:#343b36;flex-shrink:0}.switch:after{content:'';position:absolute;width:16px;height:16px;top:2px;left:2px;border-radius:50%;background:#a0a59a}.settings-row[aria-checked=true] .switch{background:#b39250}.settings-row[aria-checked=true] .switch:after{left:16px;background:#f5ebce}.volume-row{display:flex;align-items:center;gap:12px;font-size:14px;color:#b6b49e}.volume-row input{accent-color:var(--gold)}.volume-row svg{width:20px;height:20px}.popover-header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;gap:10px;border-bottom:1px solid var(--line);flex-shrink:0;font-size:16px;min-height:60px}.popover-header button{color:#b0aa98;font-size:22px;min-width:24px;min-height:24px}.subscreen{min-height:0;overflow:auto;padding:20px;font-size:14px;line-height:1.6;color:#c4c4b7}.subscreen h3{font-size:16px;color:var(--gold-hi);margin:0 0 14px}.subscreen p{margin:0 0 16px}.subscreen ol{padding-left:22px}.subscreen li{margin-bottom:12px}.subscreen dl,.fairness-body dl{margin:0}.subscreen dl>div,.fairness-body dl>div{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding:10px 0;gap:10px}.subscreen dd,.fairness-body dd{margin:0;color:var(--gold-hi)}.history-table{width:100%;border-collapse:collapse;font-size:12px;white-space:nowrap}.history-table th,.history-table td{text-align:left;padding:10px 8px;border-bottom:1px solid var(--line)}.history-table th{font-weight:500;color:#9e9f8f}.fairness-body{padding:20px;overflow:auto;font-size:14px;line-height:1.6;color:#bfc0b1}.fairness-body>p:first-child{color:var(--gold-hi);font-weight:600}.animate-reveal .tile.safe img,.animate-reveal .tile.hit img{animation:reveal .18s ease-out}@keyframes reveal{from{opacity:.3;transform:scale(.85)}to{opacity:1;transform:scale(1)}}
@media(orientation:landscape) and (max-width:1279px){.app-shell{max-width:1280px}.game-layout{padding:16px;gap:16px}.game-column{gap:16px}}
@media(orientation:landscape) and (max-height:640px){.mines-game-shell{--board-size:min(440px,100%,max(235px,calc(100dvh - 300px)))}}
@media(orientation:portrait){.app-shell{overflow:hidden}.game-layout{display:flex;flex-direction:column;min-height:0;overflow-y:auto;overflow-x:hidden;padding:0;gap:0;overflow-anchor:none}.game-column{display:contents}.game-zone{min-height:0;flex:none;padding:12px}.mines-game-shell{--board-size:min(100%,350px,max(210px,calc(100dvh - 520px)));height:auto}.board-zone{padding:8px 0 12px;flex:none}.board-surround{width:var(--board-size)}.control-panel{width:100%;min-height:auto;flex:1 0 auto;margin-top:24px;padding:12px;border-radius:16px 16px 0 0;backdrop-filter:none;box-shadow:none;border-bottom:0}.bet-controls{flex:1;overflow:visible;min-height:auto;gap:12px}.inline-adjust{display:flex}.half-double-row{display:none}.bet-amount-group{gap:0}.bet-amount-group>.field-label{margin:0}.inline-adjust button{width:70px}.action-dock{flex-shrink:0;background:#141d1f;min-height:0}.action-stack{padding:12px;border:1px solid var(--line);border-top:0;background:linear-gradient(#10191b,#141e20)}.game-footer{min-height:82px;padding:15px}.secondary-button{width:52px;min-height:52px;padding:0}.secondary-button span{display:none}.footer-brand span{font-size:14px;letter-spacing:1px}.footer-brand{gap:10px}.popover{bottom:82px;left:0;right:0;width:100%;border-radius:20px 20px 0 0;border-left:0;border-right:0;border-bottom:0}.random-action{font-size:20px}.mines-outcome{gap:8px;padding:8px 12px;margin-bottom:10px}.mines-outcome-value{font-size:22px}.mines-outcome-meta{font-size:12px}.toast{bottom:174px}.auto-pairs .field-label{min-height:40px}}
@media(orientation:portrait) and (max-width:370px){.inline-adjust button{width:56px}.input-value{padding:0 10px;gap:4px}.input-currency{font-size:18px}.primary-action{font-size:20px}.footer-brand{gap:6px}.footer-brand span{font-size:12px}.footer-brand svg{width:16px}.auto-pairs .field-label{font-size:12px}}
@media(prefers-reduced-motion:reduce){.animate-reveal .tile img{animation:none}}.mines-outcome{position:absolute;left:50%;top:45%;z-index:20;width:min(330px,calc(100% - 32px));transform:translate(-50%,-50%);display:block;border-radius:18px;padding:18px 22px;margin:0;text-align:center;background:#0a1110;border:1px solid #e3c983b3;box-shadow:0 8px 28px #0008,0 0 22px #ddc17240,inset 0 1px #fff1}.mines-outcome-value{margin-top:9px;color:#f7e8c3;font-size:clamp(26px,3vw,34px);font-weight:900;line-height:1;white-space:nowrap}.mines-outcome-meta{margin-top:9px;font-size:13px;font-weight:700;line-height:1;text-transform:uppercase}.game-footer{min-height:74px}.secondary-button{min-height:42px;border-radius:10px;gap:6px;padding:10px;font-size:16px;line-height:20px}.auto-field .input-shell>button.active{color:var(--gold-hi)}
@media(orientation:portrait){.game-footer{min-height:84px}.secondary-button{width:52px;height:52px;padding:0}.popover{bottom:84px}}
@media(orientation:landscape) and (max-height:640px){}
.auto-pairs .field-label{display:block;line-height:30px;min-height:0}.popover-overlay .game-footer{z-index:101}
@media(orientation:portrait){}
.auto-mode #action-text{font-size:20px}
/* The same board and panel geometry; animated layers stay inside each cell. */
.tile{overflow:hidden}
.tile .cell-symbol{position:absolute;inset:7%;width:86%;height:86%;pointer-events:none;z-index:1}
.tile .cell-symbol img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;animation:none}
.symbol-sprite,.marble-sprite{display:block;position:absolute;background-size:400% 300%;background-repeat:no-repeat;pointer-events:none}
.symbol-sprite{inset:0;background-position:100% 100%;filter:drop-shadow(0 1px 4px #e7bc352b)}
.sprite-trophy{background-image:url('../../assets/sprites/trophy-spin.png')}
.sprite-medusa{background-image:url('../../assets/sprites/medusa-awaken-v2.png');filter:drop-shadow(0 0 5px #cf2b182b)}
.tile.dimmed .cell-symbol{opacity:.35;filter:saturate(.6)}
.tile.dimmed .cell-symbol img{opacity:1;filter:none}
.marble-clip{position:absolute;inset:0;z-index:3;border-radius:inherit;overflow:hidden;pointer-events:none}
.tile.is-crumbling:before{opacity:0!important}
.tile.is-crumbling{background:transparent;box-shadow:none}
.tile.is-crumbling .cell-symbol{opacity:0}



/* Continuous, registered marble fragments: exact same PNG and texture transform. */
.fracture-cover{isolation:isolate}
.batch-fracture-canvas{position:absolute;inset:0;width:100%;height:100%;z-index:2;pointer-events:none}
.fracture-pieces,.marble-shard,.marble-texture,.marble-dust{position:absolute;inset:0;display:block;pointer-events:none}
.marble-texture{background:url('../../assets/marble-tile.png') center/100% 100% no-repeat;border-radius:inherit;transform:var(--marble-turn,none)}
.marble-intact{z-index:1;border-radius:inherit}
.fracture-pieces{opacity:0}

.fracture-pieces{transform-style:flat;perspective-origin:50% 42%;z-index:1}
.marble-shard{transform-style:flat;perspective-origin:50% 42%}
.stone-surface{position:absolute;display:block;pointer-events:none;opacity:var(--stone-opacity,1)}
.shard-front,.shard-back{inset:0;backface-visibility:visible;z-index:1;will-change:transform}
.shard-back{background:linear-gradient(135deg,#c3ae89,#8b7757)}
.shard-sides{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:0}
.stone-surface:after{mask:url('../../assets/marble-tile.png') center/100% 100% no-repeat;content:'';position:absolute;inset:0;background:rgb(0 0 0 / calc(1 - var(--stone-light,1)))}
.marble-cracks{position:absolute;inset:0;width:100%;height:100%;z-index:2;overflow:visible;pointer-events:none}
.marble-cracks path{fill:none;stroke:#6e593f;stroke-linejoin:round;stroke-linecap:round}
.marble-dust{z-index:3;overflow:hidden}
.marble-dust i{position:absolute;display:block;opacity:0;background:linear-gradient(145deg,#f1e2c4 0% 32%,#c4ad87 33% 64%,#756045 65%);clip-path:polygon(12% 5%,75% 0,100% 45%,62% 100%,0 71%);will-change:transform,opacity}
.marble-dust .grit-1{clip-path:polygon(0 0,100% 24%,61% 100%,14% 83%)}
.marble-dust .grit-2{clip-path:polygon(26% 0,92% 15%,100% 74%,47% 100%,0 54%)}
.marble-powder{position:absolute;inset:0;z-index:3;pointer-events:none;overflow:hidden}
.marble-powder i{position:absolute;display:block;opacity:0;border-radius:50%;background:radial-gradient(ellipse,#d9c7a7b3 0%,#c2af8e70 25%,#ae98793b 46%,#a58f7012 62%,transparent 74%);will-change:transform,opacity}



.cell-symbol{isolation:isolate}
.symbol-sprite{transform-origin:0 0;mix-blend-mode:plus-lighter;filter:none}

/* Figma Mines 1:2. Frame 622²; grid (41,36) / 540²; shadow (0,586).
   Exported images include the seams, junctions, reflection opacity and texture. */
.board-frame-asset{position:absolute;inset:0;width:100%;height:auto;pointer-events:none;user-select:none}
.board-shadow-asset{position:absolute;left:0;top:calc(586 / 622 * 100%);width:100%;height:auto;z-index:-1;pointer-events:none;user-select:none}
.footer-brand>img{display:block;width:223px;max-width:100%;height:auto}
/* Match rasterization of the resting plate and its intact animation cover. */
.tile:before,.marble-intact{transform:translateZ(0)}

/* Cracks follow the original slab alpha; the board stays visible around it. */
.marble-cracks{mask:url('../../assets/marble-tile.png') center/100% 100% no-repeat}

/* Moving fragments must disappear through the slab footprint, not the square
   clipping boundary of its grid slot. Keep the intact plate unmasked so its
   first frame remains pixel-identical to the closed PNG. */
.fracture-pieces,.batch-fracture-canvas,.marble-dust,.marble-powder{
  mask:url('../../assets/marble-tile.png') center/100% 100% no-repeat;
}
.tile.is-crumbling{outline:none!important;box-shadow:none!important;filter:none}
.tile.is-crumbling:after{display:none!important}

/* The board uses all available play-area height; the betting panel keeps its
   source geometry. Reflection does not reserve layout space or get clipped by
   the mobile scrollport. */
.app-shell{position:relative;z-index:1}
.game-layout{--layout-inset:24px}
.game-column{margin-block:calc(8px - var(--layout-inset));gap:0}
.mines-game-shell{--board-size:min(100cqw,100cqh);max-width:none;container-type:size}
.board-zone{padding:0;height:100%}
.board-shadow-asset{position:fixed;top:0;left:0;z-index:0;max-width:none}
.game-footer{position:relative;z-index:10}
@media(orientation:landscape) and (max-width:1279px){
  .game-layout{--layout-inset:16px}
}
@media(orientation:portrait){
  .game-column{margin:0}
  /* The board stays behind the independently scrolling betting sheet. */
  .game-zone{position:sticky;top:0;z-index:0;max-height:100%;align-items:flex-start;padding:8px 12px}
  .control-panel{z-index:1}
  .game-layout{overscroll-behavior-y:contain}
  /* Reserve the expanded action dock so short phones keep every row reachable. */
  .mines-game-shell{--board-size:min(100cqw,calc(100dvh - var(--mobile-footer-height) - 219px));container-type:inline-size}
  .board-zone{height:auto}
}

/* A shallow engraved Zeus bolt appears only while a stone tile is hovered.
   The PNG includes the bevel and transparent padding; no tile tint or glow. */
.tile-hover-engraving{
  position:absolute;inset:12%;z-index:2;pointer-events:none;opacity:0;
  background:url('../../assets/lightning-engraved.png') center/contain no-repeat;
}
@media(hover:hover) and (pointer:fine){
  .board[aria-busy="false"]:not(.auto-running) .tile:not(.safe):not(.mine):not(.is-crumbling):hover .tile-hover-engraving{opacity:1}
}

/* Auto patterns use the same engraved material as the single-bolt hover. */
.tile-selection-engraving{background-image:url('../../assets/lightning-circle-engraved.png');opacity:1}
.tile:not(.safe):not(.mine):not(.is-crumbling):focus-visible .tile-hover-engraving{opacity:1}
.tile.is-crumbling .tile-hover-engraving{opacity:0!important}

/* Symbols fade first; every stone then reassembles through the registered
   fracture renderer on a shared reverse timeline, within its own footprint. */
.board.is-clearing .cell-symbol{
  animation:board-symbol-clear var(--board-clear-duration) ease-in both;
  animation-delay:calc(-1 * var(--reset-elapsed));
}
.tile.is-rebuilding:before{opacity:0!important}
.tile.is-rebuilding .tile-hover-engraving{opacity:0!important}
@keyframes board-symbol-clear{
  from{transform:scale(1)}
  to{transform:scale(.98);opacity:0}
}
@media(prefers-reduced-motion:reduce){
  .board.is-clearing .cell-symbol{animation:none}
}
