/* ===== IMPORTS ===== */
@import url('variables.css');
@import url('typography.css');
@import url('buttons.css');
@import url('layout.css');
@import url('animations.css');
@import url('screens/intro.css');
@import url('screens/map.css');
@import url('screens/puzzles.css');
@import url('screens/reward.css');
@import url('screens/finale.css');
@import url('screens/end-screen.css');
@import url('components/help.css');
@import url('components/progress.css');
@import url('components/feedback.css');


/* ===== CSS RESET ===== */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-md);
  line-height: var(--line-height-normal);
  color: var(--color-text-dark);
  background-color: var(--bg-light);
  overflow-x: hidden;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}


/* ===== GLOBAL STYLES ===== */

#app {
  position: relative;
  min-height: 100vh;
  width: 100%;
}


/* ===== SCREEN MANAGEMENT ===== */

.screen {
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  min-height: 100vh;
  width: 100%;
  padding: var(--spacing-lg);
}

.screen.active {
  display: flex;
  flex-direction: column;
}

.screen-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}


/* ===== UTILITY CLASSES ===== */

.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.text-center {
  text-align: center;
}


/* ===== EMOJI STYLES ===== */

.emoji-xs { font-size: var(--emoji-xs); }
.emoji-sm { font-size: var(--emoji-sm); }
.emoji-md { font-size: var(--emoji-md); }
.emoji-lg { font-size: var(--emoji-lg); }
.emoji-xl { font-size: var(--emoji-xl); }
.emoji-xxl { font-size: var(--emoji-xxl); }
.emoji-hero { font-size: var(--emoji-hero); }


/* ===== FOCUS STYLES (Accessibility) ===== */

*:focus {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

*:focus:not(:focus-visible) {
  outline: none;
}

*:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}
