
:root{
  --bg:#080d18;
  --bg-soft:#0e1628;
  --panel:rgba(13,20,36,.82);
  --panel-strong:rgba(16,25,44,.94);
  --panel-border:rgba(155,178,255,.13);
  --text:#f4f7ff;
  --muted:#a6b2cf;
  --accent:#8dd3ff;
  --accent-2:#b59cff;
  --accent-3:#84f2c6;
  --danger:#ff7f8f;
  --warning:#ffd76a;
  --shadow:0 18px 50px rgba(0,0,0,.35);
  --radius:26px;
  --radius-sm:16px;
  --radius-lg:34px;
  --max:1280px;
  --line:linear-gradient(90deg, rgba(141,211,255,.0), rgba(141,211,255,.6), rgba(181,156,255,.6), rgba(132,242,198,.0));
  --ease:cubic-bezier(.2,.8,.2,1);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at 20% 20%, rgba(70,112,255,.20), transparent 28%),
    radial-gradient(circle at 80% 0%, rgba(132,242,198,.16), transparent 18%),
    radial-gradient(circle at 70% 80%, rgba(181,156,255,.14), transparent 30%),
    linear-gradient(180deg, #050a12, var(--bg) 42%, #0a1020);
  min-height:100vh;
  overflow-x:hidden;
}
body.theme-light{
  --bg:#edf3ff;
  --bg-soft:#f7faff;
  --panel:rgba(255,255,255,.82);
  --panel-strong:rgba(255,255,255,.94);
  --panel-border:rgba(33,55,105,.12);
  --text:#10182c;
  --muted:#596680;
  --shadow:0 18px 45px rgba(60,85,140,.14);
  background:
    radial-gradient(circle at 10% 20%, rgba(122,162,255,.20), transparent 24%),
    radial-gradient(circle at 85% 0%, rgba(63,211,177,.18), transparent 18%),
    radial-gradient(circle at 70% 80%, rgba(139,111,255,.14), transparent 28%),
    linear-gradient(180deg, #f4f8ff, #eef4ff 45%, #e6edff);
}
a{color:inherit;text-decoration:none}
button, input, textarea, select{font:inherit}
button{cursor:pointer}
img{max-width:100%;display:block}

.site-body{position:relative}
.site-body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:linear-gradient(transparent 0%, rgba(255,255,255,.03) 50%, transparent 100%);
  opacity:.45;
  mix-blend-mode:soft-light;
}
.bg-orb{
  position:fixed;
  width:42vw;
  aspect-ratio:1;
  border-radius:50%;
  filter:blur(80px);
  opacity:.25;
  pointer-events:none;
  z-index:-1;
  animation:float 14s ease-in-out infinite;
}
.orb-1{top:-8vw;left:-10vw;background:rgba(101,147,255,.34)}
.orb-2{bottom:-10vw;right:-10vw;background:rgba(132,242,198,.24);animation-delay:-6s}
@keyframes float{
  0%,100%{transform:translate3d(0,0,0) scale(1)}
  50%{transform:translate3d(16px,-18px,0) scale(1.05)}
}

.container{
  width:min(calc(100% - 32px), var(--max));
  margin-inline:auto;
}
.panel{
  position:relative;
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  background-color:var(--panel);
  backdrop-filter:blur(14px);
  border:1px solid var(--panel-border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
}
body.theme-light .panel{
  background:linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.72));
}

.topbar{
  position:sticky;
  top:0;
  z-index:120;
  backdrop-filter:blur(18px);
  background:linear-gradient(180deg, rgba(7,10,18,.78), rgba(7,10,18,.52));
  border-bottom:1px solid rgba(255,255,255,.06);
}
body.theme-light .topbar{
  background:linear-gradient(180deg, rgba(244,248,255,.84), rgba(244,248,255,.64));
  border-bottom:1px solid rgba(48,71,112,.08);
}
.nav-shell{
  min-height:82px;
  display:flex;
  align-items:center;
  gap:18px;
  padding:14px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:max-content;
}
.brand-mark{
  width:54px;height:54px;
  border-radius:18px;
  display:grid;place-items:center;
  background:linear-gradient(145deg, rgba(141,211,255,.95), rgba(181,156,255,.75));
  color:#0b1020;
  font-weight:900;
  letter-spacing:.04em;
  box-shadow:0 10px 30px rgba(109,162,255,.25);
  flex:0 0 auto;
}
.brand-copy{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}
.brand-copy strong{font-size:1.14rem;letter-spacing:.01em}
.brand-copy small{color:var(--muted);font-size:.83rem}
.navlinks{
  margin-left:auto;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px;
}
.nav-link{
  padding:12px 16px;
  border-radius:999px;
  color:var(--muted);
  transition:transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.nav-link:hover,.nav-link:focus-visible{
  color:var(--text);
  background:rgba(141,211,255,.12);
  outline:none;
  transform:translateY(-1px);
}
.nav-link.active{
  color:var(--text);
  background:linear-gradient(135deg, rgba(141,211,255,.18), rgba(181,156,255,.17));
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.07);
}
.header-actions{
  display:flex;
  align-items:center;
  gap:10px;
}
.icon-btn, .burger{
  border:0;
  border-radius:16px;
  min-width:44px;
  height:44px;
  padding:0 14px;
  display:inline-grid;
  place-items:center;
  color:var(--text);
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 10px 30px rgba(0,0,0,.12);
  transition:transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}
.icon-btn:hover,.burger:hover,
.icon-btn:focus-visible,.burger:focus-visible{
  outline:none;
  transform:translateY(-1px);
  background:rgba(141,211,255,.14);
  border-color:rgba(141,211,255,.22);
}
.header-icon-btn{font-size:1rem}
.burger{display:none;font-size:1.2rem}

main{position:relative;z-index:1}
.simple-home{padding:54px 0 24px}
.simple-home-hero{
  padding:56px 22px 38px;
  text-align:center;
}
.center-eyebrow{justify-content:center}
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:.79rem;
  letter-spacing:.34em;
  text-transform:uppercase;
  color:var(--accent);
  margin:0 0 14px;
}
.eyebrow::before{
  content:"";
  width:10px;
  height:10px;
  border-radius:999px;
  background:linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow:0 0 0 4px rgba(141,211,255,.12);
}
.simple-title{
  margin:0;
  font-size:clamp(2.8rem, 8vw, 5.8rem);
  line-height:.96;
  letter-spacing:-.04em;
}
.simple-subtitle{
  margin:18px auto 0;
  max-width:700px;
  color:var(--muted);
  font-size:1.07rem;
}

.simple-category-wrap{padding:8px 0 28px}
.simple-category-line{
  margin:8px 0 18px;
  font-size:clamp(1.8rem, 3vw, 2.8rem);
  letter-spacing:-.03em;
}
.simple-category-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}
.simple-category-card{
  min-height:232px;
  padding:28px;
  display:flex;
  flex-direction:column;
  gap:14px;
  justify-content:space-between;
  transform:translateZ(0);
}
.simple-category-card:hover{transform:translateY(-4px) scale(1.01)}
.simple-card-icon{
  width:56px;height:56px;
  border-radius:18px;
  display:grid;place-items:center;
  font-size:1.45rem;
  background:linear-gradient(145deg, rgba(141,211,255,.18), rgba(181,156,255,.12));
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.06);
}
.simple-card-title{font-size:1.5rem;font-weight:800}
.simple-card-desc{color:var(--muted);line-height:1.6}
.simple-card-cta{
  display:inline-flex;
  align-items:center;
  gap:8px;
  width:max-content;
  padding:10px 14px;
  border-radius:999px;
  background:rgba(141,211,255,.14);
  color:var(--text);
}
.simple-footer{margin-top:48px}

.footer{
  margin-top:64px;
  border-top:1px solid rgba(255,255,255,.06);
  background:linear-gradient(180deg, rgba(4,8,15,.20), rgba(4,8,15,.66));
}
body.theme-light .footer{
  border-top:1px solid rgba(48,71,112,.08);
  background:linear-gradient(180deg, rgba(255,255,255,.25), rgba(255,255,255,.7));
}
.footer-grid{
  display:grid;
  grid-template-columns:1.15fr .75fr .95fr 1fr;
  gap:26px;
  padding:38px 0 22px;
}
.footer-grid h3,.footer-grid h4{margin:0 0 14px}
.footer-grid p{margin:0 0 10px;color:var(--muted);line-height:1.6}
.footer-grid a{
  display:block;
  color:var(--muted);
  margin-bottom:10px;
}
.footer-grid a:hover{color:var(--text)}
.footer-bottom{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:12px;
  padding:18px 0 30px;
  color:var(--muted);
  border-top:1px solid rgba(255,255,255,.06);
}
body.theme-light .footer-bottom{border-top:1px solid rgba(48,71,112,.08)}

.content-page{padding:38px 0 0}
.page-hero{
  padding:40px 30px;
}
.page-hero h1,
.game-hero h1{
  margin:0 0 10px;
  font-size:clamp(2rem, 4vw, 3.4rem);
  letter-spacing:-.04em;
}
.page-hero p,
.game-hero p{
  margin:0;
  color:var(--muted);
  line-height:1.7;
  max-width:78ch;
}
.content-grid{
  display:grid;
  gap:18px;
  margin-top:18px;
}
.content-card{
  padding:24px;
}
.content-card h2,.content-card h3{margin-top:0}
.content-card p, .content-card li{color:var(--muted);line-height:1.8}
.content-card ul{margin:12px 0 0 18px}
.contact-form{
  display:grid;
  gap:14px;
  margin-top:18px;
}
.field{
  display:grid;
  gap:8px;
}
.field label{font-weight:700}
.field input,.field textarea,.field select{
  width:100%;
  padding:14px 16px;
  border-radius:16px;
  border:1px solid rgba(143,164,210,.18);
  background:rgba(255,255,255,.05);
  color:var(--text);
  outline:none;
}
body.theme-light .field input,
body.theme-light .field textarea,
body.theme-light .field select{
  background:rgba(255,255,255,.9);
}
.field input:focus,.field textarea:focus,.field select:focus{
  border-color:rgba(141,211,255,.55);
  box-shadow:0 0 0 4px rgba(141,211,255,.1);
}
.btn-row{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}
.btn{
  border:0;
  border-radius:16px;
  padding:13px 18px;
  font-weight:800;
  background:linear-gradient(135deg, rgba(141,211,255,.92), rgba(181,156,255,.85));
  color:#09101d;
  box-shadow:0 12px 28px rgba(109,162,255,.16);
  transition:transform .25s var(--ease), filter .25s var(--ease);
}
.btn:hover,.btn:focus-visible{outline:none;transform:translateY(-2px);filter:saturate(1.08)}
.btn.secondary{
  background:rgba(255,255,255,.06);
  color:var(--text);
  border:1px solid rgba(255,255,255,.08);
}

.game-hub{
  padding:22px 0 0;
  display:grid;
  gap:18px;
}
.game-hero{padding:26px 24px}
.ad-slot{
  padding:18px 20px;
  border-radius:24px;
}
.ad-title{
  font-size:.76rem;
  letter-spacing:.32em;
  text-transform:uppercase;
  color:var(--accent-3);
  margin-bottom:8px;
}
.game-collection{padding:22px}
.collection-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}
.collection-head h2{margin:0;font-size:clamp(1.4rem, 2.8vw, 2.2rem)}
.muted{color:var(--muted)}
.game-collection-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
.game-card{
  width:100%;
  border:1px solid rgba(255,255,255,.08);
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  color:var(--text);
  border-radius:22px;
  padding:20px;
  display:flex;
  align-items:center;
  gap:14px;
  transition:transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
  text-align:left;
  min-height:118px;
}
.game-card:hover,.game-card:focus-visible{
  transform:translateY(-3px);
  outline:none;
  border-color:rgba(141,211,255,.34);
  background:linear-gradient(180deg, rgba(141,211,255,.11), rgba(255,255,255,.04));
  box-shadow:0 12px 35px rgba(0,0,0,.18);
}
.game-card.active{
  border-color:rgba(132,242,198,.42);
  box-shadow:0 0 0 1px rgba(132,242,198,.14), 0 16px 40px rgba(0,0,0,.18);
}
.game-card-icon{
  width:56px;height:56px;
  border-radius:18px;
  display:grid;place-items:center;
  background:rgba(141,211,255,.12);
  flex:0 0 auto;
  font-size:1.5rem;
}
.game-card-body{display:grid;gap:4px;min-width:0}
.game-card-body strong{font-size:1.12rem}
.game-card-body small{color:var(--muted);line-height:1.5}
.game-card-cta{
  margin-left:auto;
  padding:10px 14px;
  border-radius:999px;
  background:rgba(181,156,255,.12);
  color:var(--text);
  flex:0 0 auto;
}

.game-workspace{
  padding:20px;
  display:grid;
  gap:16px;
}
.game-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}
.toolbar-title{display:grid;gap:4px}
.toolbar-title strong{font-size:1.3rem}
.toolbar-title small{color:var(--muted)}
.game-toolbar-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.stats-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
.stat-card{
  padding:16px;
  border-radius:18px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.06);
  min-height:88px;
}
.stat-card .label{
  display:block;
  color:var(--muted);
  font-size:.82rem;
  margin-bottom:8px;
}
.stat-card .value{
  font-size:1.5rem;
  font-weight:900;
  letter-spacing:-.03em;
}
.game-viewport{
  position:relative;
  min-height:340px;
  padding:8px 0 2px;
}
.empty-game-state{
  min-height:320px;
  display:grid;
  place-items:center;
  text-align:center;
  gap:12px;
  padding:36px 18px;
}
.empty-badge{
  width:78px;height:78px;
  border-radius:24px;
  display:grid;place-items:center;
  font-weight:900;
  background:linear-gradient(145deg, rgba(141,211,255,.18), rgba(181,156,255,.14));
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.05);
}
.empty-game-state p{color:var(--muted);max-width:48ch}

.game-footer-panels{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}
.mini-panel{
  padding:18px;
}
.achievement-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.achievement{
  padding:10px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.06);
  color:var(--muted);
  font-size:.9rem;
}
.achievement.active{
  color:var(--text);
  background:linear-gradient(135deg, rgba(132,242,198,.18), rgba(141,211,255,.12));
  border-color:rgba(132,242,198,.22);
}

.screen-note{
  color:var(--muted);
  font-size:.92rem;
  text-align:center;
  padding:2px 0 12px;
}

/* chess */
.chess-layout,
.snake-layout,
.mines-layout,
.bubble-layout,
.tap-layout{
  display:grid;
  grid-template-columns:minmax(260px, .88fr) minmax(320px, 1.4fr);
  gap:16px;
  align-items:start;
}
.chess-side,.snake-side,.mines-side,.bubble-side,.tap-side{
  padding:20px;
}
.game-stage-title{
  margin:0 0 10px;
  font-size:1.45rem;
}
.mini-info-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin:14px 0;
}
.pill, .mode-btn, .team-btn, .round-btn, .control-btn, .pad-btn, .tap-button, .action-btn{
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.06);
  color:var(--text);
  border-radius:16px;
  padding:12px 14px;
  transition:transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.pill:hover,.pill:focus-visible,.mode-btn:hover,.mode-btn:focus-visible,.team-btn:hover,.team-btn:focus-visible,.round-btn:hover,.round-btn:focus-visible,.control-btn:hover,.control-btn:focus-visible,.pad-btn:hover,.pad-btn:focus-visible,.tap-button:hover,.tap-button:focus-visible,.action-btn:hover,.action-btn:focus-visible{
  outline:none;
  transform:translateY(-1px);
  border-color:rgba(141,211,255,.26);
  background:rgba(141,211,255,.12);
}
.team-btn.active,.mode-btn.active{
  background:linear-gradient(135deg, rgba(141,211,255,.18), rgba(181,156,255,.14));
}
.control-row,.button-row,.mine-toolbar,.bubble-toolbar,.tap-toolbar{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:12px;
}
.board-shell{
  padding:18px;
}
.chess-board{
  width:min(100%, 72vmin, 640px);
  margin-inline:auto;
  aspect-ratio:1;
  border-radius:22px;
  overflow:hidden;
  display:grid;
  grid-template-columns:repeat(8,1fr);
  box-shadow:0 22px 50px rgba(0,0,0,.3);
  border:1px solid rgba(255,255,255,.08);
}
.chess-square{
  position:relative;
  border:0;
  padding:0;
  display:grid;
  place-items:center;
  font-size:clamp(1.5rem, 2.5vw, 2.35rem);
  transition:filter .15s ease, transform .15s ease, box-shadow .15s ease;
}
.chess-square.light{background:#ece6d8}
.chess-square.dark{background:#6a7395}
body.theme-light .chess-square.light{background:#f6f4ee}
body.theme-light .chess-square.dark{background:#7282ae}
.chess-square.selected{box-shadow:inset 0 0 0 4px rgba(132,242,198,.64)}
.chess-square.legal::after{
  content:"";
  width:18%;
  aspect-ratio:1;
  border-radius:50%;
  background:rgba(132,242,198,.9);
  box-shadow:0 0 0 8px rgba(132,242,198,.12);
}
.chess-square.capture::after{
  content:"";
  position:absolute;
  inset:8%;
  border-radius:50%;
  border:3px solid rgba(255,127,143,.8);
}
.chess-square.last-move{filter:saturate(1.08) brightness(1.02)}
.chess-square.in-check{box-shadow:inset 0 0 0 4px rgba(255,127,143,.76)}
.piece{
  width:78%;
  height:78%;
  display:grid;
  place-items:center;
  border-radius:50%;
  font-weight:900;
  text-shadow:0 1px 0 rgba(255,255,255,.4);
  filter:drop-shadow(0 9px 12px rgba(0,0,0,.25));
  transform:translateZ(0);
  transition:transform .2s var(--ease), filter .2s var(--ease);
}
.piece.white{
  color:#f7fbff;
  background:radial-gradient(circle at 30% 28%, #fff 0%, #eef5ff 16%, #cdd8ea 46%, #8a96ad 80%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.72), inset 0 -8px 16px rgba(25,36,58,.20);
}
.piece.black{
  color:#eff5ff;
  background:radial-gradient(circle at 30% 28%, #4b5876 0%, #283248 46%, #111827 86%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.10), inset 0 -8px 16px rgba(0,0,0,.34);
}
.piece.moved{animation:piecePop .25s ease}
@keyframes piecePop{
  0%{transform:scale(.72)}
  100%{transform:scale(1)}
}
.chess-stage-wrap{
  display:grid;
  grid-template-columns:minmax(250px,.72fr) minmax(340px,1fr);
  gap:16px;
}
.chess-board-wrap{
  padding:18px;
  display:grid;
  gap:12px;
  align-content:start;
}
.chess-status,.snake-status,.mine-status,.bubble-status,.tap-status{
  padding:12px 14px;
  border-radius:16px;
  background:rgba(255,255,255,.06);
  color:var(--text);
  text-align:center;
  font-weight:700;
}
.move-log{
  margin-top:12px;
  display:grid;
  gap:8px;
}
.move-item{
  padding:10px 12px;
  border-radius:14px;
  background:rgba(255,255,255,.05);
  color:var(--muted);
}

/* snake */
.snake-stage{
  padding:18px;
}
.snake-canvas-wrap{
  position:relative;
  width:min(100%, 100%);
  aspect-ratio:1;
  border-radius:22px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(circle at 30% 20%, rgba(141,211,255,.16), transparent 26%),
    radial-gradient(circle at 80% 80%, rgba(132,242,198,.14), transparent 28%),
    linear-gradient(180deg, rgba(10,16,30,.96), rgba(4,7,13,.98));
  box-shadow:0 22px 50px rgba(0,0,0,.28);
}
.snake-canvas{
  width:100%;
  height:100%;
  display:block;
}
.snake-overlay{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  text-align:center;
  background:linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.18));
  pointer-events:none;
}
.snake-overlay h3{margin:0 0 6px;font-size:1.8rem}
.snake-overlay p{margin:0;color:var(--muted)}
.pad-grid{
  display:grid;
  grid-template-columns:repeat(3,64px);
  gap:10px;
  justify-content:center;
  margin-top:12px;
}
.pad-btn{
  width:64px;height:64px;
  border-radius:18px;
  font-size:1.2rem;
  font-weight:900;
}
.pad-btn.wide{grid-column:2 / span 1}
.snake-side{
  display:grid;
  gap:14px;
}
.snake-stats{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.stat-box{
  padding:14px;
  border-radius:16px;
  background:rgba(255,255,255,.06);
}
.stat-box span{display:block;color:var(--muted);font-size:.82rem;margin-bottom:6px}
.stat-box strong{font-size:1.5rem}
.tip-list{
  padding-left:18px;
  margin:0;
  color:var(--muted);
  line-height:1.7;
}

/* minesweeper */
.mine-board{
  width:100%;
  max-width:min(100%, 640px);
  margin-inline:auto;
  display:grid;
  gap:8px;
  grid-template-columns:repeat(10,minmax(0,1fr));
}
.mine-cell{
  aspect-ratio:1;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.07);
  background:rgba(255,255,255,.05);
  color:var(--text);
  font-weight:900;
  display:grid;
  place-items:center;
  transition:transform .15s var(--ease), background .15s var(--ease);
}
.mine-cell:hover,.mine-cell:focus-visible{transform:translateY(-1px);outline:none}
.mine-cell.revealed{background:rgba(255,255,255,.12)}
.mine-cell.flagged{background:linear-gradient(135deg, rgba(255,127,143,.25), rgba(181,156,255,.15))}
.mine-cell.mine{background:rgba(255,127,143,.36)}
.mine-cell.n1{color:#8dd3ff}
.mine-cell.n2{color:#84f2c6}
.mine-cell.n3{color:#ffd76a}
.mine-cell.n4{color:#ffb877}
.mine-cell.n5{color:#ff8fa8}
.mine-cell.n6{color:#c49cff}
.mine-cell.n7{color:#9ef1df}
.mine-cell.n8{color:#ffffff}
.mine-toolbar{
  justify-content:space-between;
}
.mode-pill{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.mode-pill button{
  min-width:120px;
}

/* bubble shooter */
.bubble-layout{
  grid-template-columns:minmax(260px,.82fr) minmax(340px,1.18fr);
}
.bubble-canvas-wrap{
  position:relative;
  aspect-ratio:10 / 14;
  width:min(100%, 620px);
  margin-inline:auto;
  border-radius:22px;
  overflow:hidden;
  background:
    radial-gradient(circle at 50% 20%, rgba(141,211,255,.18), transparent 25%),
    linear-gradient(180deg, rgba(11,16,30,.98), rgba(5,8,16,.98));
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 22px 48px rgba(0,0,0,.3);
}
.bubble-canvas{
  width:100%;
  height:100%;
  display:block;
}
.aim-hint{
  position:absolute;
  left:16px;right:16px;bottom:16px;
  color:rgba(255,255,255,.85);
  text-align:center;
  font-size:.9rem;
}
.bubble-side{
  display:grid;
  gap:14px;
}
.range-box{
  display:grid;
  gap:10px;
}
.range-box input[type="range"]{
  width:100%;
}
.bubble-stats{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

/* tap challenge */
.tap-zone{
  display:grid;
  gap:16px;
}
.tap-target-wrap{
  min-height:420px;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(circle at 18% 18%, rgba(141,211,255,.16), transparent 25%),
    radial-gradient(circle at 82% 82%, rgba(132,242,198,.16), transparent 24%),
    linear-gradient(180deg, rgba(10,16,30,.96), rgba(5,8,16,.98));
  position:relative;
  overflow:hidden;
  box-shadow:0 22px 50px rgba(0,0,0,.3);
}
.tap-target{
  position:absolute;
  width:112px;
  height:112px;
  border-radius:50%;
  border:0;
  background:radial-gradient(circle at 30% 30%, #fff, #a4e9ff 30%, #8dd3ff 62%, #7b7ee6 100%);
  color:#09101d;
  font-weight:900;
  font-size:1.2rem;
  box-shadow:0 18px 30px rgba(109,162,255,.22), inset 0 2px 0 rgba(255,255,255,.75);
  transition:transform .15s var(--ease), left .2s var(--ease), top .2s var(--ease);
}
.tap-target:hover{transform:scale(1.04)}
.tap-big-btn{
  min-height:88px;
  width:min(100%, 420px);
  font-size:1.2rem;
  justify-self:start;
}

.ad-slot-top,.ad-slot-bottom{display:grid;gap:4px}
.ad-slot p{margin:0;color:var(--muted)}
.game-footer-panels .mini-panel h3{margin-top:0}
.note{color:var(--muted);font-size:.95rem}
.hidden{display:none !important}

/* responsive */
@media (max-width: 1120px){
  .footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .chess-layout,.snake-layout,.mines-layout,.bubble-layout,.tap-layout{
    grid-template-columns:1fr;
  }
  .game-footer-panels{grid-template-columns:1fr}
}
@media (max-width: 920px){
  .nav-shell{flex-wrap:wrap}
  .navlinks{
    width:100%;
    order:3;
    display:none;
    padding-bottom:6px;
  }
  .navlinks.open{display:flex}
  .burger{display:inline-grid;margin-left:auto}
  .header-actions{margin-left:auto}
  .simple-category-grid{grid-template-columns:1fr}
  .game-collection-grid{grid-template-columns:1fr}
  .collection-head{align-items:start;flex-direction:column}
}
@media (max-width: 760px){
  .container{width:min(calc(100% - 20px), var(--max))}
  .simple-home{padding-top:24px}
  .simple-home-hero{padding:38px 16px}
  .simple-category-card{min-height:190px}
  .footer-grid{grid-template-columns:1fr}
  .stats-grid{grid-template-columns:1fr 1fr}
  .mini-info-grid,.snake-stats,.bubble-stats{grid-template-columns:1fr 1fr}
  .pad-grid{grid-template-columns:repeat(3,58px)}
  .pad-btn{width:58px;height:58px}
  .tap-target{width:92px;height:92px}
  .game-workspace,.game-collection,.game-hero,.page-hero{padding:18px}
  .chess-board{width:min(100%, 92vw, 560px)}
}
@media (max-width: 520px){
  .nav-shell{min-height:72px}
  .brand-mark{width:48px;height:48px;border-radius:16px}
  .brand-copy strong{font-size:1rem}
  .header-actions{display:none}
  .simple-title{font-size:clamp(2.4rem, 15vw, 4rem)}
  .mini-info-grid,.stats-grid,.snake-stats,.bubble-stats{grid-template-columns:1fr}
  .game-toolbar-actions .icon-btn{min-width:42px;height:42px;padding:0 12px}
  .mine-board{gap:6px}
  .tap-target-wrap{min-height:340px}
}

/* small helpers */
.kbd{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:28px;
  padding:4px 8px;
  border-radius:9px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  font-size:.82rem;
}
