/* Mobile wireframe viewport: 402 × 874 CSS pixels. */
/* 스크롤바가 생기거나 없어져도 화면이 옆으로 밀리지 않게 자리를 늘 잡아 둔다(PC) */
html {
  scrollbar-gutter: stable;
}

:root {
  --gw-design-width: 402px;
  --gw-gutter: 20px;
  --gw-status-dead-zone: max(62px, env(safe-area-inset-top, 0px));
  --gw-content-width: calc(min(100%, var(--gw-design-width)) - 2 * var(--gw-gutter));
}

#app,
#play {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--gw-design-width);
  min-height: 100dvh;
  margin-inline: auto;
  padding-inline: var(--gw-gutter);
  padding-block-start: var(--gw-status-dead-zone);
}

:root.gw-large-text {
  font-size: var(--gw-large-root-size, 20px);
}

.gw-text-size {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-block: 12px;
  padding-block: 8px 14px;
  border-bottom: 1px solid #dcded4;
  font-weight: 650;
}

.gw-text-size-options {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  background: #e5e9dd;
}

.gw-text-size button {
  min-width: 52px;
  min-height: 44px;
  padding: 3px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #47583e;
  font: inherit;
  font-weight: 600;
}

.gw-text-size button[aria-pressed="true"] {
  background: #506042;
  color: #fff;
}

.gw-text-size button:focus-visible {
  outline: 2px solid #245c9c;
  outline-offset: 2px;
}
