*{
  box-sizing:border-box;
}

html,body{
  margin:0;
  min-height:100%;
}

body{
  padding:14px;
  color:#5b2346;
  background:
    radial-gradient(circle at 15% 10%,rgba(255,255,255,.9) 0 2px,transparent 3px),
    linear-gradient(135deg,#fff4fa,#ffd2e8 55%,#e7d9ff);
  background-size:75px 75px,cover;
  font-family:Tahoma,Verdana,sans-serif;
}

button{
  font:inherit;
}

.game-shell{
  width:min(980px,100%);
  margin:auto;
  overflow:hidden;
  border:2px solid #bd4d88;
  border-radius:12px;
  background:#fff9fc;
  box-shadow:
    0 0 0 3px rgba(255,255,255,.8),
    9px 10px 0 rgba(84,28,61,.22);
}

.game-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:14px 16px;
  color:#641b44;
  background:linear-gradient(#ffd9eb,#f58aba 48%,#df4c95 52%,#f385bb);
  border-bottom:1px solid #9f356b;
}

.game-header h1{
  margin:0 0 4px;
  font-size:22px;
}

.game-header p{
  margin:0;
  font-size:11px;
}

.game-header button,
.overlay-card button{
  padding:8px 14px;
  border:1px solid #8d2c5e;
  border-radius:5px;
  color:#6c1747;
  font-weight:bold;
  background:linear-gradient(#fff,#ffc8e1);
  cursor:pointer;
}

.game-header button:hover,
.overlay-card button:hover{
  background:linear-gradient(#fff,#ffadd3);
}

.hud{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:1px;
  background:#d7a3be;
  border-bottom:1px solid #c98daa;
}

.hud span{
  padding:8px 10px;
  text-align:center;
  background:#fff4fa;
  font-size:11px;
}

.canvas-wrap{
  position:relative;
  width:100%;
  aspect-ratio:900/560;
  background:#edf8ff;
}

canvas{
  display:block;
  width:100%;
  height:100%;
  image-rendering:pixelated;
  touch-action:none;
}

.overlay{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  padding:18px;
  background:rgba(67,20,51,.28);
}

.overlay.hidden{
  display:none;
}

.overlay-card{
  width:min(380px,90%);
  padding:22px;
  border:2px solid #c45a90;
  border-radius:10px;
  text-align:center;
  background:#fff8fc;
  box-shadow:6px 6px 0 rgba(80,31,60,.22);
}

.overlay-card h2{
  margin:0 0 10px;
  color:#cc3f82;
}

.overlay-card p{
  font-size:13px;
  line-height:1.5;
}

.mobile-controls{
  display:none;
  grid-template-columns:repeat(5,1fr);
  gap:8px;
  padding:10px;
  background:#f7deea;
  border-top:1px solid #d5a2bb;
}

.mobile-controls button{
  min-height:48px;
  border:1px solid #a94376;
  border-radius:7px;
  color:#6a234b;
  font-size:22px;
  background:linear-gradient(#fff,#ffc5df);
  touch-action:none;
}

footer{
  padding:8px 12px;
  color:#775468;
  text-align:center;
  background:#f5e9ef;
  border-top:1px solid #d8b1c4;
  font-size:10px;
}

@media(max-width:700px){
  body{
    padding:6px;
  }

  .game-header{
    align-items:flex-start;
  }

  .game-header h1{
    font-size:17px;
  }

  .game-header p{
    display:none;
  }

  .hud{
    grid-template-columns:repeat(2,1fr);
  }

  .mobile-controls{
    display:grid;
  }
}


/* CAT SKIER UPDATE */
.game-shell{
  image-rendering:pixelated;
}

.hud b{
  color:#d53f86;
}

.canvas-wrap{
  border-top:2px solid rgba(255,255,255,.9);
  border-bottom:2px solid #c88aaa;
}

@media(max-width:700px){
  .hud{
    grid-template-columns:repeat(3,1fr);
  }
}
