:root {
  --bg-color: #f0f2f9;
  --card-bg: #ffffff;
  --primary-color: #6366f1;
  --primary-hover: #4f46e5;
  --text-dark: #2d3463;
  --text-muted: #64748b;
  --accent-color: #6366f1;
  --border-radius: 24px;
  --font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --heart-color: #ff4d6d;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100vw;
  overflow-x: hidden;
}

.app-container {
  width: 100%;
  max-width: 500px;
  height: 100vh;
  max-height: 900px;
  background-color: var(--card-bg);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

/* Home Page */
.home-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}

.logo-container {
  margin-bottom: 40px;
}

.logo-icon {
  width: 80px;
  height: 80px;
  background-color: var(--text-dark);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  margin-bottom: 10px;
  display: inline-block;
}

.logo-text {
  font-size: 48px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -1px;
}

.level-indicator {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-color);
  margin-top: 10px;
}

.btn-play {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 20px 80px;
  border-radius: 40px;
  font-size: 24px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, background-color 0.2s;
  margin-top: 100px;
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.btn-play:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

/* Game Header */
.game-header {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  background-color: #f8faff;
  border-bottom: 1px solid #e2e8f0;
}

.header-top {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.icon-button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #dbeafe;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.level-title {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 18px;
}

.hearts-container {
  display: flex;
  gap: 4px;
}

.heart-icon {
  color: var(--heart-color);
}

/* Maze Area */
.game-content {
  flex: 1;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.maze-container {
  width: 100%;
  height: 100%;
  background-color: white;
  border-radius: var(--border-radius);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.maze-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Footer / Decoration */
.game-footer {
  height: 80px;
  background-color: #f0f2f9;
}

/* Utility */
.placeholder-icon {
  width: 24px;
  height: 24px;
}

.hidden {
  display: none;
}
