:root {
  --ink: #202124;
  --sheet: #ffffff;
  --star: #fbbc04;
  --star-empty: #dadce0;
}

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

html,
body {
  height: 100%;
  background: var(--sheet);
}

body {
  font-family: Roboto, Arial, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  touch-action: manipulation;
}

.stage {
  min-height: 100dvh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
}

.sheet {
  width: min(100%, 420px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.profile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 28px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff8e1;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--star);
}

.star-mark {
  width: 22px;
  height: 22px;
}

.profile-name {
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 0.1px;
}

.stars {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: clamp(4px, 1.8vw, 12px);
}

.star {
  width: clamp(48px, 14vw, 68px);
  height: clamp(48px, 14vw, 68px);
  border: 0;
  background: transparent;
  color: var(--star-empty);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  flex: 0 0 auto;
  -webkit-tap-highlight-color: transparent;
}

.star svg {
  width: 88%;
  height: 88%;
  display: block;
}

.star.is-on {
  color: var(--star);
}

.thanks {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: #fff;
  padding: 24px;
}

.thanks:not([hidden]) {
  display: grid;
  place-items: center;
}

.thanks p {
  font-size: 22px;
  font-weight: 400;
  line-height: 28px;
  color: var(--ink);
  text-align: center;
  letter-spacing: 0.1px;
}

.missing {
  min-height: 100dvh;
  padding: 24px;
  background: #fff;
  color: var(--ink);
  font-size: 18px;
  text-align: center;
}

.stage[hidden],
.missing[hidden],
.thanks[hidden] {
  display: none !important;
}

.missing:not([hidden]) {
  display: grid;
  place-items: center;
}
