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

body.of {
  margin: 0;
  background: radial-gradient(900px 600px at 88% 12%, rgba(242, 177, 52, 0.18) 0%, rgba(242, 177, 52, 0) 70%), radial-gradient(700px 500px at 5% 95%, rgba(226, 97, 75, 0.1) 0%, rgba(226, 97, 75, 0) 70%), #fdf6ea;
  color: #2b1d2f;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

:where(.of) :where(h1, h2, p) {
  margin: 0;
}
:where(.of) :where(button) {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
:where(.of) :where(a) {
  color: inherit;
}
:where(.of) :where(:focus-visible) {
  outline: 3px solid #1f6f6b;
  outline-offset: 3px;
  border-radius: 10px;
}

.of [hidden] {
  display: none !important;
}

.of:not(.is-start) .of-only-start,
.of:not(.is-result) .of-only-result,
.of:not(.is-error) .of-only-error {
  display: none !important;
}

.of-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px clamp(16px, 6vw, 96px);
}

.of-brand {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.of-bar-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #6e5c66;
  text-decoration: none;
}
.of-bar-link:hover {
  color: #2b1d2f;
}

.of-studio {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  padding: 16px clamp(16px, 6vw, 96px) 80px;
  min-height: calc(min(100vh, 980px) - 76px);
}

.of-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #1f6f6b;
  margin-bottom: 16px;
}

.of-title {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.of-title em {
  font-style: normal;
  background: linear-gradient(100deg, #f2b134 0%, #f08a4b 50%, #e2614b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.of-title--result {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  overflow-wrap: anywhere;
}

.of-lede {
  margin-top: 18px;
  max-width: 520px;
  font-size: 1.1rem;
  color: #6e5c66;
}

.of-kbd {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1.5px solid #2b1d2f;
  border-radius: 50%;
  font-weight: 700;
  color: #2b1d2f;
  vertical-align: 1px;
}

.of-names {
  margin-top: 32px;
  max-width: 520px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.of-names .of-btn {
  grid-column: 1/-1;
  justify-self: start;
  margin-top: 8px;
}

.of-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.of-field > span {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6e5c66;
}
.of-field input {
  width: 100%;
  border: 2px solid #2b1d2f;
  border-radius: 14px;
  background: #fffaf2;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: #2b1d2f;
  padding: 11px 15px;
  transition: box-shadow 0.15s ease;
}
.of-field input::-moz-placeholder {
  color: rgba(43, 29, 47, 0.25);
}
.of-field input::placeholder {
  color: rgba(43, 29, 47, 0.25);
}
.of-field input:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(242, 177, 52, 0.4);
}

.of-form-error {
  grid-column: 1/-1;
  color: #e2614b;
  font-weight: 600;
}
.of-form-error:empty {
  display: none;
}

.of-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 99px;
  padding: 11px 20px;
  border: 2px solid #2b1d2f;
  background: #fffaf2;
  color: #2b1d2f;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.of-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #2b1d2f;
}
.of-btn:active {
  transform: none;
  box-shadow: none;
}
.of-btn--sun {
  background: linear-gradient(100deg, #f2b134 0%, #f08a4b 50%, #e2614b 100%);
  color: #2b1d2f;
}
.of-btn--big {
  font-size: 1.08rem;
  padding: 15px 30px;
}

.of-text-btn {
  font-weight: 600;
  color: #6e5c66;
  text-decoration: none;
}
.of-text-btn:hover {
  color: #e2614b;
}

.of-actions {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.of-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}

.of-stage {
  display: flex;
  justify-content: center;
  padding: 24px 0;
}

.of-poster {
  position: relative;
  width: 100%;
  max-width: 500px;
  padding: 26px 24px 18px;
  background: #fbf1e1;
  border-radius: 6px;
  box-shadow: 0 0 0 10px #fffdf8, 0 34px 70px rgba(43, 29, 47, 0.22);
  transform: rotate(1.4deg);
  overflow: hidden;
}
.of-poster::before, .of-poster::after {
  content: "";
  position: absolute;
  top: -2px;
  width: 92px;
  height: 26px;
  background: rgba(242, 177, 52, 0.45);
  z-index: 3;
}
.of-poster::before {
  left: 18px;
  transform: rotate(-8deg);
}
.of-poster::after {
  right: 18px;
  transform: rotate(7deg);
}

.of-sun {
  position: relative;
  height: 112px;
  margin: -26px -24px 0;
  background: radial-gradient(circle at 50% 100%, #c94b5b 0 18%, #e2614b 18% 30%, #f08a4b 30% 42%, #f2b134 42% 54%, rgba(242, 177, 52, 0) 54.5%);
  overflow: hidden;
}
.of-sun span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46px;
  background: repeating-linear-gradient(180deg, rgba(251, 241, 225, 0) 0 7px, #fbf1e1 7px 12px);
}

.of-sample-tag {
  position: absolute;
  top: 22px;
  right: -34px;
  z-index: 2;
  width: 140px;
  padding: 4px 0;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: #1f6f6b;
  color: #fff;
  transform: rotate(38deg);
  display: none;
}
.is-sample .of-sample-tag {
  display: block;
}

.of-poster-head {
  text-align: center;
  margin-top: 2px;
}

.of-poster-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6e5c66;
}

.of-poster-title {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: clamp(2.3rem, 5vw, 3.3rem);
  line-height: 1;
  letter-spacing: -0.05em;
  margin-top: 4px;
}

.of-poster-names {
  margin-top: 6px;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  color: #e2614b;
  overflow-wrap: anywhere;
}

.of-tiles {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.of-tile {
  position: relative;
  padding: 14px 14px 14px;
  border-radius: 16px;
  background: #f3e4cc;
  min-height: 136px;
}
.of-tile:nth-child(1), .of-tile:nth-child(4) {
  background: #f6d9c8;
}

.of-tile-emoji {
  display: block;
  font-size: 1.75rem;
  line-height: 1.1;
}

.of-tile-label {
  margin-top: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1f6f6b;
}

.of-tile-text {
  margin-top: 3px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.of-old {
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #2b1d2f;
  color: #fbf1e1;
}
.of-old .of-tile-label {
  margin: 0 0 6px;
  color: #f2b134;
}

.of-old-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 34px 5px 0;
}
.of-old-row .of-tile-emoji {
  font-size: 1.3rem;
}
.of-old-row p {
  font-size: 0.92rem;
  line-height: 1.35;
}
.of-old-row b {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  color: #ffc39b;
}
.of-old-row span:not(.of-tile-emoji) {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
}
.of-old-row .of-reroll {
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  border-color: rgba(251, 241, 225, 0.6);
  background: transparent;
  color: #fbf1e1;
}
.of-old-row .of-reroll:hover {
  transform: translateY(-50%) rotate(-120deg);
}

.of-reroll {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid #2b1d2f;
  background: #fbf1e1;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.25s ease, background 0.15s ease;
}
.of-reroll:hover {
  transform: rotate(-120deg);
  background: #f2b134;
}
.is-sample .of-reroll {
  display: none;
}

.is-spinning .of-tile-text,
.is-spinning span:not(.of-tile-emoji),
.is-spinning .of-tile-emoji {
  filter: blur(1.2px);
  opacity: 0.7;
}

.is-landed {
  animation: of-land 0.45s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.of-poster-foot {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6e5c66;
}
.of-poster-foot small {
  flex-basis: 100%;
  font-size: 0.68rem;
  font-weight: 500;
  opacity: 0.7;
}

.of-guide {
  padding: 8px clamp(16px, 6vw, 96px) 32px;
}

.of-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 2fr;
  gap: 24px 64px;
  padding: 52px 0;
  border-top: 1px solid rgba(43, 29, 47, 0.12);
}
.of-row h2 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.of-row > div {
  max-width: 760px;
  color: #6e5c66;
  font-size: 1.02rem;
  line-height: 1.75;
}
.of-row > div p + p {
  margin-top: 14px;
}
.of-row strong {
  color: #2b1d2f;
}

.of-faq details {
  border-bottom: 1px solid rgba(43, 29, 47, 0.12);
}
.of-faq details:first-child summary {
  padding-top: 0;
}
.of-faq summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: #2b1d2f;
}
.of-faq summary::-webkit-details-marker {
  display: none;
}
.of-faq summary::after {
  content: "+";
  font-family: "Poppins", sans-serif;
  font-size: 1.3rem;
  line-height: 1;
  color: #e2614b;
  transition: transform 0.2s ease;
}
.of-faq details[open] summary::after {
  transform: rotate(45deg);
}
.of-faq details p {
  padding-bottom: 18px;
}

.of-foot {
  padding: 44px clamp(16px, 6vw, 96px) 40px;
  text-align: center;
  color: #6e5c66;
  border-top: 1px solid rgba(43, 29, 47, 0.12);
}
.of-foot p + p {
  margin-top: 12px;
}
.of-foot a {
  color: #2b1d2f;
  font-weight: 500;
}

.of-foot-meta {
  font-size: 0.85rem;
}
.of-foot-meta a {
  color: #6e5c66;
  text-decoration: none;
}

.of-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 10;
  transform: translate(-50%, 16px);
  max-width: calc(100vw - 32px);
  padding: 11px 20px;
  border-radius: 99px;
  background: #2b1d2f;
  color: #fbf1e1;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.of-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes of-land {
  0% {
    transform: scale(0.96);
  }
  60% {
    transform: scale(1.03);
  }
  100% {
    transform: none;
  }
}
@media (max-width: 960px) {
  .of-studio {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 20px;
  }
  .of-poster {
    transform: none;
  }
  .of-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .of-names {
    grid-template-columns: 1fr;
  }
  .of-poster {
    padding: 22px 14px 14px;
    box-shadow: 0 0 0 6px #fffdf8, 0 24px 50px rgba(43, 29, 47, 0.2);
  }
  .of-sun {
    margin: -22px -14px 0;
    height: 92px;
  }
  .of-tiles {
    gap: 8px;
  }
  .of-tile {
    padding: 12px 10px;
    min-height: 128px;
  }
  .of-tile-text {
    font-size: 0.86rem;
  }
  .of-reroll {
    width: 26px;
    height: 26px;
    top: 8px;
    right: 8px;
    font-size: 0.9rem;
  }
  .of-old {
    padding: 12px;
  }
  .of-old-row p {
    font-size: 0.85rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .is-landed {
    animation: none;
  }
  .of-btn,
  .of-reroll,
  .of-field input {
    transition: none;
  }
}