/* Riang · corrections over base.css shared by every theme: one page scroll for the wishes,
   aligned form fields, the music button, and long names kept inside their column. */

.wishes {
  max-height: none;
  overflow: visible;
}

.field input:not([type="checkbox"], [type="radio"]),
.field select,
.field textarea {
  -webkit-appearance: none;
  appearance: none;
  line-height: inherit;
}

.field select {
  --riang-arrow: var(--muted, currentColor);
  padding-inline-end: 40px;
  background-image:
    linear-gradient(45deg, transparent 40%, var(--riang-arrow) 45% 55%, transparent 60%),
    linear-gradient(-45deg, transparent 40%, var(--riang-arrow) 45% 55%, transparent 60%);
  background-position:
    right 20px center,
    right 14px center;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.riang-music {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 50%;
  background: var(--btn-bg, var(--deep, #333333));
  color: var(--btn-ink, var(--on-deep, #ffffff));
  box-shadow: var(--btn-shadow, 0 10px 24px rgb(0 0 0 / 0.18));
  cursor: pointer;
}

.riang-music[hidden],
.riang-music[aria-pressed="true"] .riang-music__off,
.riang-music[aria-pressed="false"] .riang-music__on {
  display: none;
}

.riang-music .ic {
  width: 24px;
  height: 24px;
}

.wishes__pager {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

body[data-theme^="B"] .field textarea,
body[data-theme^="A"] .field textarea,
body[data-theme^="K"] .field textarea,
body[data-theme^="O"] .field textarea,
body[data-theme^="G"] .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--field-line, var(--card-line));
  border-radius: 12px;
  background: var(--field-bg, #ffffff);
  color: var(--field-ink, var(--ink));
  font: inherit;
  line-height: 1.4;
  resize: vertical;
}

body[data-theme^="B"] .field textarea:focus,
body[data-theme^="A"] .field textarea:focus,
body[data-theme^="K"] .field textarea:focus,
body[data-theme^="O"] .field textarea:focus,
body[data-theme^="G"] .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(0 0 0 / 0.06);
}

.evs {
  display: grid;
  gap: 14px;
}

.rundown {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.rundown__img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

@media (max-width: 389px) {
  body[data-theme="dino"] .gate__in .o1 {
    top: calc(168px - (390px - 100vw) * 0.67);
  }

  body[data-theme="pelangi"] .gate__in .o1 {
    top: calc(236px - (390px - 100vw) * 0.87);
  }

  body[data-theme="pelangi"] .gate__in .o2 {
    top: calc(260px - (390px - 100vw) * 0.87);
  }

  }

@media (max-width: 411px) {
  body[data-theme="dino"] .sec--hero .o1 {
    top: calc(205px - (412px - 100vw) * 0.73);
  }

  body[data-theme="pelangi"] .sec--hero .o2 {
    top: calc(250px - (412px - 100vw) * 0.6);
  }

  body[data-theme="pelangi"] .sec--hero .o3 {
    top: calc(290px - (412px - 100vw) * 0.6);
  }

  }

.names,
.ttl__name,
.closing__name,
.greet__name,
.prof__name,
.person__name {
  overflow-wrap: anywhere;
}

body[data-theme="pelangi"] .ttl__name {
  padding: 0.05em 0.15em 0.1em 0.25em;
  margin: calc(4px - 0.05em) 0 calc(4px - 0.1em) -0.1em;
}

body[data-theme="samudra"] .ttl__name {
  padding: 0 0.2em 0.1em 0.25em;
  margin: 4px -0.05em calc(4px - 0.1em) -0.1em;
}

body[data-theme="peri"] .ttl__name {
  padding: 0.25em 0.55em 0.1em 0.45em;
  margin: calc(-4px - 0.25em) -0.35em calc(4px - 0.1em) -0.25em;
}

body[data-theme="pelangi"] .closing__name,
body[data-theme="samudra"] .closing__name {
  padding-block: 0.1em;
  margin-top: calc(4px - 0.1em);
  margin-bottom: -0.1em;
}

body[data-theme="antariksa"] .closing__name {
  padding-block: 0.05em 0.15em;
  margin-top: calc(4px - 0.05em);
  margin-bottom: -0.15em;
}

body[data-theme="peri"] .closing__name {
  padding-block: 0.25em 0.1em;
  margin-top: calc(4px - 0.25em);
  margin-bottom: -0.1em;
}

body[data-theme="antariksa"] .ttl__theme {
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}

body[data-theme="antariksa"] .closing__t {
  padding-bottom: 0.15em;
  margin-bottom: -0.15em;
}

body[data-theme="antariksa"] .ttl__name span {
  padding: 0.1em 0.18em 0.2em 0.13em;
  margin: -0.1em -0.1em -0.2em -0.05em;
}

#gate {
  overflow-x: hidden;
}
