* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Noto Sans', sans-serif;
  background: #fff;
  color: #000;
  overflow: hidden;
  touch-action: none;
}

#app {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.game-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px;
  overflow: hidden;
}

.level-indicator {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  opacity: 0.6;
}

.emoji-list {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 16px;
}

.emoji-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f5f5f5;
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.emoji-row.selected {
  background: #000;
  color: #fff;
}

.emoji-row.assigned {
  opacity: 0.5;
  pointer-events: none;
}

.emoji-display {
  font-size: 48px;
  flex-shrink: 0;
  width: 60px;
  text-align: center;
}

.assigned-label {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
}

.assign-group {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.group-name-input {
  flex: 1;
  padding: 16px;
  border: 2px solid #000;
  background: #fff;
  border-radius: 8px;
  font-size: 20px;
  outline: none;
}

.group-name-input::placeholder {
  color: #999;
}

.btn-assign {
  background: #000;
  color: #fff;
  padding: 16px 24px;
  white-space: nowrap;
  font-size: 18px;
}

.controls {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: #000;
  color: #fff;
}

.btn-primary:active {
  transform: scale(0.97);
}

.result-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.result-screen h2 {
  font-size: 32px;
  margin-bottom: 16px;
}

.result-screen p {
  font-size: 18px;
  margin-bottom: 24px;
  opacity: 0.7;
}

.feedback {
  background: #f5f5f5;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 24px;
  max-width: 100%;
  font-size: 14px;
  line-height: 1.6;
}

.feedback-item {
  margin-bottom: 12px;
  text-align: left;
}

.feedback-item strong {
  display: block;
  margin-bottom: 4px;
}