/* Additional home scenes: sculpture → paper → magnet → chromatic coil → daily mines. */
body.home.mines-home {
  --mine-ink: #202522;
  color: var(--mine-ink) !important;
  background: #e6e7e3 !important;
}
body.home.mines-home::before { opacity: 0 !important; }
body.home.mines-home #home-background { opacity: 0 !important; visibility: hidden !important; }
body.home.mines-home #mines-field { opacity: 1; visibility: visible; }
body.home.mines-home :is(header, footer nav, .hero h1, .brand),
body.home.mines-home :is(.hero h1 *, footer nav *) {
  color: var(--mine-ink) !important;
}
body.home.mines-home .hero h1 span{border-bottom-color:#202522ad!important}
body.home.mines-home .copyright { color: #555c56 !important; }
body.home.mines-home .categories { color: var(--mine-ink) !important; }
body.home.mines-home #main { z-index: 3; }

#mines-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #e6e7e3;
  opacity: 0;
  visibility: hidden;
  transition: opacity .72s ease, visibility .72s ease;
}
#mines-grid {
  display: grid;
  grid-template-columns: repeat(var(--mine-cols), var(--mine-size));
  grid-auto-rows: var(--mine-size);
  width: 100%;
  height: 100%;
  position: relative;
  transform: translate(-1px, -1px);
}
.mine-tile {
  position: relative;
  background: #d9dcd7;
  border: 1px solid #aeb4ad;
  box-shadow: inset 2px 2px #f9faf7, inset -2px -2px #a4aaa4;
  color: transparent;
  display: grid;
  place-items: center;
  font: 600 clamp(13px,1.45vw,19px)/1 'Space Grotesk',Arial,sans-serif;
  transition: background-color .72s cubic-bezier(.22,.61,.36,1), color .55s ease, box-shadow .72s ease, transform .62s ease;
  will-change: background-color;
}
.mine-tile.revealed {
  background: #edefec;
  color: #58605d;
  box-shadow: inset 1px 1px 2px #a5aba5;
  transform: translateY(1px);
}
.mine-tile.revealed.mine-cell { color: #303632; }
.mine-symbol {
  opacity: 0;
  font: 700 clamp(16px,1.8vw,22px)/1 Georgia,serif;
  transform: scale(.45) rotate(-42deg);
  transition: opacity .65s ease, transform .9s cubic-bezier(.16,.8,.22,1);
}
.mine-tile.revealed .mine-symbol {
  opacity: .9;
  transform: scale(1) rotate(0);
}
.mine-tile .mine-number {
  opacity: 0;
  transform: scale(.6);
  transition: opacity .55s ease, transform .7s cubic-bezier(.18,.8,.28,1);
}
.mine-tile.revealed .mine-number {
  opacity: 1;
  transform: scale(1);
}
#mines-meta {
  display: none !important;
  position: absolute;
  top: 112px;
  right: 6.15%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  color: #59645b;
  font: 500 10px/1.2 'Space Grotesk',Arial,sans-serif;
  letter-spacing: .23em;
  text-transform: uppercase;
  opacity: .72;
}
#mines-meta strong { font-size: 12px; font-weight: 500; letter-spacing: .16em; }
#mines-meta em { font-style: normal; font-size: 9px; letter-spacing: .14em; }
body.home.mines-home .hero h1 {
  text-shadow: 0 1px 0 #ecede8;
  z-index: 1;
  isolation: isolate;
}
body.home.mines-home .hero h1::before {
  content: '';
  position: absolute;
  inset: -.65em -1.05em;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at center,#e6e7e3ed 0%,#e6e7e3ad 43%,transparent 78%);
}
@media (max-width:700px) {
  #mines-meta { display: none; }
  #mines-meta strong { font-size: 9px; }
  body.home.mines-home .hero h1::before { inset: -.8em -.85em; }
  body.home.mines-home .hero h1 { text-shadow: 0 1px 0 #e9eae6; }
  .mine-tile { box-shadow: inset 1px 1px #f9faf7, inset -1px -1px #a4aaa4; }
  .mine-tile.flagged::after { border-top-width: 5px; border-right-width: 6px; }
}
@media (prefers-reduced-motion:reduce) {
  .mine-tile, .mine-tile .mine-number { transition: none; }
}

body.home.coil-home{--ink:#fff;--paper:#090321;background:#090321!important;color:#fff!important}
body.home.coil-home::before{opacity:0!important}
body.home.coil-home #home-background{opacity:0!important;visibility:hidden!important}
#coil-field{position:fixed;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;opacity:0;visibility:hidden;transition:opacity .72s ease,visibility .72s ease;background:#090321}
body.home.coil-home #coil-field{opacity:1;visibility:visible}
body.home.coil-home #main{z-index:3}
body.home.coil-home :is(header,footer){background:transparent!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
body.home.coil-home :is(header,footer,footer nav,.hero h1,.hero h1 *,.brand,footer nav *){color:#fff!important}
body.home.coil-home .hero h1{text-shadow:0 1px 9px #09032170}
body.home.coil-home .hero h1 span{border-bottom-color:#ffffffb3!important}
body.home.coil-home .copyright{color:#ffffffa6!important}
body.home.coil-home .categories{color:#fff!important}
body.home.coil-home #language-backdrop{display:none!important}
body.home.coil-home #language-options{z-index:40;isolation:isolate!important;color:#fff!important;padding:10px 16px!important;background:transparent!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
body.home.coil-home #language-options::before{display:block!important;inset:-12px -16px;z-index:0;background:transparent!important;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);-webkit-mask-image:var(--language-feather);mask-image:var(--language-feather);opacity:0;transition:opacity var(--language-fade)}
body.home.coil-home .is-open #language-options::before{opacity:1}
body.home.coil-home #language-options button{position:relative;z-index:1;color:#fff!important;text-shadow:0 1px 5px #090321a6}
body.home.coil-home .language-switch,body.home.mines-home .language-switch{transition:color .6s ease}
@media (prefers-reduced-motion:reduce){#coil-field,#mines-field{transition:none}}
