@font-face {
  font-family: "The Met Sans";
  src: url("fonts/TheMetSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "The Met Sans";
  src: url("fonts/TheMetSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "The Met Sans";
  src: url("fonts/TheMetSans-Semibold.woff2") format("woff2");
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}

html,
body,
button,
input,
textarea,
select {
  font-family: "The Met Sans", Arial, sans-serif;
}

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

body {
  margin: 0;
}

.icon-nav-btn {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  width: 36px;
  height: 36px;
  padding: 0;
  min-width: 36px;
  min-height: 36px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.25);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.icon-nav-btn:hover {
  background-color: rgba(0, 0, 0, 0.4);
}

.back-btn::before {
  content: "";
  width: 11px;
  height: 11px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translateX(2px) rotate(45deg);
}

.choice-page {
  margin: 0;
  min-height: 100dvh;
  padding: 2.25rem 1rem 2rem;
  background: #e5e5e5;
  color: #000;
  display: flex;
  flex-direction: column;
}

.choice-title {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 2.85rem;
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 2rem;
  text-align: center;
}

.options {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: clamp(0.72rem, 2.2vh, 1.18rem);
  flex: 1;
  width: min(100%, 28rem);
  margin: -0.25rem auto 0;
  padding: 1rem 0 2.5rem;
}

.option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}

.option-row:nth-child(1) {
  width: 84%;
}

.option-row:nth-child(2) {
  width: 96%;
  transform: translateX(-0.6rem);
}

.option-row:nth-child(3) {
  width: 100%;
  transform: translateX(0.45rem);
}

.option-row:nth-child(4) {
  width: 88%;
  transform: translateX(-0.25rem);
}

.option-row:nth-child(5) {
  width: 100%;
  transform: translateX(0.35rem);
}

.option-row:nth-child(6) {
  width: 76%;
}

.option-row:nth-child(7) {
  width: 92%;
  transform: translateX(-0.4rem);
}

.custom-row {
  margin-top: 0.55rem;
  transform: none;
}

.option,
.add-custom {
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0.68rem 1.18rem;
  border-radius: 999px;
  font-size: 1.52rem;
  font-weight: 500;
  line-height: 1.05;
  cursor: pointer;
  flex: 0 0 auto;
  transition:
    transform 0.16s ease,
    background-color 0.16s ease,
    box-shadow 0.16s ease;
  background: var(--choice-bg, #f7f7f7);
  color: var(--choice-color, #000);
  text-align: center;
  border: 1px solid rgba(44, 41, 37, 0.2);
  box-shadow: 0 7px 18px rgba(44, 41, 37, 0.14);
  -webkit-tap-highlight-color: transparent;
}

.option:hover,
.add-custom:hover {
  box-shadow: 0 10px 30px rgba(44, 41, 37, 0.18);
  transform: translateY(-2px);
}

.option.selected {
  background: var(--choice-selected-bg, var(--choice-bg, #fff));
  color: var(--choice-color, #000);
  box-shadow: 0 3px 10px rgba(44, 41, 37, 0.14);
  transform: scale(1.06);
}

.emoji-option {
  padding: 0 0.1rem;
  border: none;
  background: transparent;
  font-size: 2.35rem;
  line-height: 1;
  box-shadow: none;
}

.emoji-option:hover {
  box-shadow: none;
  transform: none;
}

.emoji-option.selected {
  background: transparent;
  box-shadow: none;
  transform: scale(1.12);
}

.add-custom {
  display: inline-flex;
  gap: 0.45rem;
  background: #fff;
  border: 2px dashed rgba(44, 41, 37, 0.7);
  box-shadow: none;
}

.add-custom:hover {
  background: #f8f8f8;
  box-shadow: none;
  transform: none;
}

.add-custom.editing {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-style: solid;
  cursor: default;
  padding: 0.24rem 0.24rem 0.24rem 0.9rem;
}

.add-custom input {
  border: none;
  background: transparent;
  font-size: 1.36rem;
  font-weight: 500;
  font-family: inherit;
  padding: 0.46rem 0;
  outline: none;
  width: min(42vw, 10.5rem);
}

.custom-submit {
  border: none;
  border-radius: 50%;
  background: #2c2925;
  color: #fffdf9;
  cursor: pointer;
  flex: 0 0 auto;
  height: 2rem;
  padding: 0;
  position: relative;
  width: 2rem;
}

.custom-submit::before {
  border-right: 2px solid #fffdf9;
  border-top: 2px solid #fffdf9;
  content: "";
  height: 0.5rem;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-62%, -50%) rotate(45deg);
  width: 0.5rem;
}

.custom-submit::after {
  background: #fffdf9;
  content: "";
  height: 2px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-62%, -50%);
  width: 0.78rem;
}
