/* Night-of launcher. Paper, ink, one rose. Colors are set on every fill. */

button.floor-open {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 8px 12px;
  box-sizing: border-box;
  border: 1px solid #fecdd3;
  border-radius: 12px;
  background: #fff1f2;
  color: #9f1239 !important;
  -webkit-text-fill-color: #9f1239 !important;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

button.floor-open b,
button.floor-open svg {
  color: #9f1239 !important;
  -webkit-text-fill-color: #9f1239 !important;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

button.floor-open svg {
  flex: none;
  stroke: currentColor;
}

button.floor-open:hover,
button.floor-open:focus-visible {
  background: #9f1239;
  border-color: #9f1239;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  outline: none;
}

button.floor-open:hover b,
button.floor-open:focus-visible b,
button.floor-open:hover svg,
button.floor-open:focus-visible svg {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

button.staff-event-index-open {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  background: transparent;
  border: 0;
  margin: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: inherit;
  cursor: pointer;
}

button.staff-event-index-open b.floor-index-mark {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 10;
  padding: 1px 6px;
  border: 1px solid #fecdd3;
  border-radius: 999px;
  background: #ffe4e6;
  color: #9f1239 !important;
  -webkit-text-fill-color: #9f1239 !important;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

button.staff-event-index-open b.floor-index-title {
  display: block;
  color: #1c1917 !important;
  -webkit-text-fill-color: #1c1917 !important;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

button.staff-fold__chip.floor-chip {
  box-sizing: border-box;
  height: 36px;
  min-height: 36px;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid #fecdd3;
  background: #fff1f2;
  color: #9f1239 !important;
  -webkit-text-fill-color: #9f1239 !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

button.staff-fold__chip.floor-chip:hover,
button.staff-fold__chip.floor-chip:focus-visible {
  background: #ffe4e6;
  border-color: #fda4af;
  color: #9f1239 !important;
  -webkit-text-fill-color: #9f1239 !important;
  outline: none;
}

.floor-dialog:not([open]) {
  display: none !important;
}

.floor-dialog[open] {
  display: block;
}

.floor-dialog {
  color-scheme: light;
  border: 0;
  outline: none;
  padding: 0;
  background: transparent;
  color: #1c1917;
  -webkit-text-fill-color: #1c1917;
  width: min(30rem, calc(100vw - 1.5rem));
  max-width: calc(100vw - 1.5rem);
  max-height: min(92dvh, 56rem);
}

.floor-dialog::backdrop {
  background: rgba(28, 25, 23, 0.48);
}

.floor-dialog__sheet {
  background: #ffffff;
  color: #1c1917;
  -webkit-text-fill-color: #1c1917;
  border: 1px solid #e7e5e4;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(28, 25, 23, 0.18);
  padding: 16px;
  max-height: min(92dvh, 56rem);
  overflow: auto;
}

.floor-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.floor-dialog__copy {
  min-width: 0;
}

.floor-dialog p.floor-dialog__kicker {
  margin: 0 0 4px;
  color: #9f1239 !important;
  -webkit-text-fill-color: #9f1239 !important;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.4;
}

.floor-dialog h2.floor-dialog__title {
  margin: 0;
  color: #1c1917 !important;
  -webkit-text-fill-color: #1c1917 !important;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.35;
}

.floor-dialog p.floor-dialog__when {
  margin: 4px 0 0;
  color: #44403c !important;
  -webkit-text-fill-color: #44403c !important;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.floor-dialog__close {
  flex: none;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #e7e5e4;
  border-radius: 12px;
  background: #ffffff;
  color: #1c1917 !important;
  -webkit-text-fill-color: #1c1917 !important;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.floor-dialog__close:hover,
.floor-dialog__close:focus-visible {
  background: #f5f5f4;
  border-color: #d6d3d1;
  color: #1c1917 !important;
  -webkit-text-fill-color: #1c1917 !important;
  outline: 2px solid #9f1239;
  outline-offset: 2px;
}

.floor-dialog__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.floor-dialog a.floor-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  min-height: 44px;
  padding: 6px 2px 8px;
  box-sizing: border-box;
  border: 1px solid #e7e5e4;
  border-radius: 12px;
  background: #ffffff;
  color: #1c1917 !important;
  -webkit-text-fill-color: #1c1917 !important;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none !important;
}

.floor-dialog .floor-link__qr {
  position: relative;
  width: 100%;
  flex: none;
}

.floor-dialog .floor-link__qr svg {
  display: block;
  width: 100%;
  height: auto;
}

.floor-dialog .floor-link__name {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.floor-dialog a.floor-link b.floor-link__title {
  display: block;
  width: 100%;
  color: #1c1917 !important;
  -webkit-text-fill-color: #1c1917 !important;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
}

.floor-dialog a.floor-link b.floor-link__device {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75em;
  height: 2.75em;
  padding: 0;
  border: 1px solid #fecdd3;
  border-radius: 999px;
  background: #ffffff;
  color: #9f1239 !important;
  -webkit-text-fill-color: #9f1239 !important;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
}

.floor-dialog a.floor-link:hover,
.floor-dialog a.floor-link:focus-visible {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #9f1239 !important;
  -webkit-text-fill-color: #9f1239 !important;
  text-decoration: none !important;
  outline: none;
}

.floor-dialog a.floor-link:hover b.floor-link__title,
.floor-dialog a.floor-link:focus-visible b.floor-link__title {
  color: #9f1239 !important;
  -webkit-text-fill-color: #9f1239 !important;
}

.floor-dialog a.floor-link:hover b.floor-link__device,
.floor-dialog a.floor-link:focus-visible b.floor-link__device {
  background: #ffffff;
  border-color: #9f1239;
  color: #9f1239 !important;
  -webkit-text-fill-color: #9f1239 !important;
}

.floor-dialog a.floor-link:focus-visible {
  outline: 2px solid #9f1239;
  outline-offset: 2px;
}

@media (max-width: 359px) {
  .floor-dialog__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .floor-dialog {
    position: fixed;
    inset: auto 0 0 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
    height: fit-content;
    max-height: 92dvh;
  }

  .floor-dialog__sheet {
    border-radius: 16px 16px 0 0;
    border-bottom: 0;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .floor-dialog,
  .floor-dialog__sheet,
  button.floor-open,
  .floor-dialog a.floor-link {
    transition: none;
  }
}
