@font-face { font-family: "Galmuri11"; src: url("assets/fonts/Galmuri11.woff2") format("woff2"); font-display: block; }
@font-face { font-family: "Galmuri11Bold"; src: url("assets/fonts/Galmuri11-Bold.woff2") format("woff2"); font-display: block; }
@font-face { font-family: "Galmuri9"; src: url("assets/fonts/Galmuri9.woff2") format("woff2"); font-display: block; }

:root { color-scheme: dark; }
* { box-sizing: border-box; }

html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  background: #05060c;
  overflow: hidden;
  font-family: "Galmuri11", "Malgun Gothic", sans-serif;
}

#game {
  width: 100%;
  height: 100%;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

#game canvas { image-rendering: pixelated; }

.back-btn {
  position: fixed;
  top: calc(10px + env(safe-area-inset-top));
  left: calc(10px + env(safe-area-inset-left));
  z-index: 10;
  color: #ffd65a;
  text-decoration: none;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(255, 214, 90, 0.1);
  border: 1px solid rgba(255, 214, 90, 0.3);
  transition: all 0.2s;
}

.back-btn:hover {
  background: rgba(255, 214, 90, 0.22);
  transform: translateX(-2px);
}
