@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: var(--font-body);
  line-height: 1.4;
  touch-action: manipulation;
}

body {
  display: flex;
  flex-direction: column;
  position: relative;
}

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.screen.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.zone-top {
  height: var(--zone-top);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.78vmin 3.7vmin 1.85vmin;
  position: relative;
}

.zone-bottom {
  height: var(--zone-bottom);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 1.85vmin 3.7vmin 3.7vmin;
  overflow: hidden;
  position: relative;
}

#screen-stage-play .zone-top {
  height: auto;
  flex-shrink: 0;
  justify-content: flex-start;
  padding: 1.5vmin 3vmin 0.5vmin;
}

#screen-stage-play .zone-bottom {
  height: auto;
  flex: 1;
  min-height: 0;
  padding: 0.5vmin 2vmin 1vmin;
}

h1 {
  font-size: var(--font-h1);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.1;
}

h2 {
  font-size: var(--font-h2);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.2;
}

h3 {
  font-size: var(--font-h3);
  font-weight: 600;
  line-height: 1.3;
}

.text-secondary {
  color: var(--text-secondary);
}

.text-small {
  font-size: var(--font-small);
}

.text-xs {
  font-size: var(--font-xs);
}
