button:focus,
input:focus,
textarea:focus {
  outline: none;
}

html {
  font-size: 13px;
}

@media only screen and (min-width: 1900px) {
  html {
    font-size: 14px;
  }
}

body {
  margin: 0;
  padding: 0;
  background-color: #1a0c16;
  font-family: 'Roboto', sans-serif;
}

ul {
  margin: 0;
  padding: 0;
}

ul, li {
  list-style-type: none !important;
}

li {
  padding: 6px 0 6px 0;
}

p {
  margin: 0;
  padding: 0;
}

#wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  background-image: url('../img/bg.jpg');
  background-size: cover;
  opacity: 0.1;
  width: 100%;
  height: 100%;
  z-index: -100;
}

#wrapper {
  height: 100vh;
  height: 100svh;
  width: 100vw;
  width: 100svw;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
}

#w-body {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#w-footer {
  display: none;
  height: 1rem;
  font-size: 0.7rem;
  line-height: 1rem;
  text-align: center;
  background-color: #0a0408;
  color: #6d6574;
}

/*@media only screen and (min-width: 1200px) and (min-height: 1000px) {*/
/*  #w-footer {*/
/*    display: block;*/
/*  }*/
/*  #w-body {*/
/*    padding: 4px 0 4px 0;*/
/*  }*/
/*}*/

#container {
  height: 100%;
  aspect-ratio: 3 / 4;
  max-height: 1024px;
  max-width: 768px;
  overflow: hidden;
}

#content {
  height: 100%;
  width: 100%;
  border: 1px solid rgba(255, 0, 255, 0.11);
  box-shadow: 0 0 10px rgba(255, 0, 255, 0.11);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background-color: rgba(26, 12, 22, 0.80);
  position: relative;
  overflow: hidden;
}

#viewport {
  flex: 1;
  overflow: hidden;
  padding: 20px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hidden {
  transition: opacity 0.65s ease-out;
  opacity: 0 !important;
}

.display-none {
  display: none !important;
}

.text-shadow {
  text-shadow: -1px -1px 1px rgba(0, 0, 0, 0.7),
  1px -1px 1px rgba(0, 0, 0, 0.7),
  -1px 1px 1px rgba(0, 0, 0, 0.7),
  1px 1px 1px rgba(0, 0, 0, 0.7);
}

.blurry {
  filter: blur(8px);
}

#frame-count {
  position: absolute;
  top: 0;
  left: 0;
  color: white;
}

#footer {
  background-color: #241420;
  flex-basis: 106px;
  display: flex;
  flex-direction: column;
  padding: 8px 8px 4px 8px;
  box-sizing: border-box;
  gap: 5px;
  position: relative;
}

#grace {
  font-size: 1.2rem;
  line-height: 1.2rem;
  height: 1.2rem;
  font-weight: bold;
  color: #e2ae66;
  text-transform: uppercase;
  background: linear-gradient(to right, #462a3f, transparent);
  padding: 2px 3px 2px 5px;
  border-radius: 2px;
  display: flex;
  justify-content: space-between;
}

#grace .text {
  font-size: 1rem;
  padding-right: 4px;
  letter-spacing: -1px;
}

#grace .counter {
  font-size: 1.2rem;
  line-height: 1.2rem;
  text-shadow:
  -1px -1px 3px rgba(255, 224, 153, 0.05),
  1px -1px 3px rgba(255, 224, 153, 0.05),
  -1px 1px 3px rgba(255, 224, 153, 0.05),
  1px 1px 3px rgba(255, 224, 153, 0.05);
}

#buttons-row {
  display: flex;
  flex-direction: row;
  gap: 3px;
  align-items: center;
  justify-content: center;
}

.small-button {
  font-size: 0.9rem;
  line-height: 1.1rem;
  padding: 2px 6px 2px 6px;
  cursor: pointer;
  border-radius: 3px;
  box-sizing: border-box;
  box-shadow: #1a0c16 0 0 10px;
  background: linear-gradient(to bottom, #4f3048, #361f31);
  color: #c9acc0;
  border: 1px solid #6f4361;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.small-button:hover {
  background: linear-gradient(to bottom, #5e3b4f, #4a2e3e);
  color: #dcc1d4;
}

.small-button span {
  border-radius: 50%;
  background-color: #c9acc0;
  color: #34192b;
  padding: 0 2px 0 2px;
  font-size: 0.8rem;
  line-height: 0.8rem;
}

.sfx-button {
  background: transparent;
}

@media only screen and (max-width: 768px) {
  #grace .counter {
    font-size: 1rem;
  }
  #grace .text {
    display: none;
  }
  .small-button {
    font-size: 0.84rem;
    line-height: 0.84rem;
    padding: 2px 2px 2px 2px;
  }
}

.is-premium {
  color: #ffea9f;
  background: linear-gradient(to bottom, #d09f3c, #a7693a);
  border: 1px solid #d5b746;
}

.is-premium:hover {
  background: linear-gradient(to bottom, #deac48, #b87d46);
  color: #ffeeb5;
}

.is-premium b {
  display: none;
}

#faq .container, #premium .container {
  text-align: left;
  color: #9589a4;
  font-size: 1.1rem;
}

#faq .container {
  overflow: hidden;
}

#faq .content {
  overflow-y: auto;
}

#premium p:nth-child(1) {
  color: #fff8f2;
}

#premium p:nth-child(2) {
  color: #ebdac4;
  font-size: 1.15rem;
  font-weight: bold;
}

#premium p:nth-child(3), #premium p:nth-child(4) {
  padding: 5px 8px 8px 8px;
  border-radius: 5px;
  background-color: rgb(64, 44, 72, 0.5);
}

#premium b {
  color: #cdc0de;
  line-height: 2rem;
  font-size: 1.15rem;
}

/*#faq b {*/
/*  color: #cdcdcd;*/
/*}*/

#faq .container .content p:first-child {
  font-size: 1.1rem;
  text-align: center;
  padding: 10px 0 10px 0;
  margin-bottom: 20px;
  color: #cdcdcd;
}

#faq ul li b {
  color: #e2cdb3;
  display: block;
}

#faq ul li {
  color: #9f886f;
  padding-top: 10px;
}

#footer .buttons {
  display: flex;
  gap: 5px;
  flex-direction: row;
  flex: 1;
  position: relative;
}

#footer button {
  flex: 1;
}

#tickets {
  flex-basis: 88px;
  display: flex;
}

#tickets .counter {
  border: 1px solid #6f4361;
  border-radius: 4px;
  display: flex;
  flex: 1;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  font-weight: 600;
  color: #b39db0;
  font-size: 1.25rem;
  line-height: 1.25rem;
  cursor: pointer;
  position: relative;
}

#tickets .counter::before {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  bottom: 2px;
  left: 2px;
  border: 1px solid #46273c;
  border-radius: 3px;
}

#tickets-tooltip {
  color: #ffe5fc;
  border-radius: 4px;
  padding: 8px;
  left: 50%;
  top: -20px;
  max-width: 260px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  border: 1px solid #a694a1;
  box-sizing: border-box;
  transform: translate(-50%, -50%);
  background-color: #746471;
  position: absolute;
  font-size: 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 3;
}

#tickets span {
  font-size: 1.46rem;
  padding-right: 3px;
}

#tickets .small {
  font-size: 1.2rem;
}

#tickets-tooltip div {
  padding-bottom: 4px;
}

/* gray version */
#tickets-tooltip p:nth-of-type(1) {
  color: #eaf4f7;
  border: 1px solid #1f3241;
  font-weight: bold;
  background: linear-gradient(to bottom, #98adb0, #7d9096);
}

#tickets-tooltip p:nth-of-type(2) {
  color: #ffe7be;
  border: 1px solid #4e2a47;
  font-weight: bold;
  background: linear-gradient(to bottom, #cd9639, #bb681d);
}

#tickets-tooltip p, #tickets-tooltip label {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1.6rem;
  padding: 5px 5px 5px 5px;
  box-sizing: border-box;
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
}

.tickets-label {
  background: rgba(86, 47, 73, 0.5);
}

#footer .info {
  text-align: center;
  font-size: 0.95rem;
  color: #786f85;
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 1.5rem;
  gap: 0.5rem;
  width: 100%;
  overflow-x: auto;
}

@media only screen and (max-width: 768px) {
  #footer .info {
    font-size: 0.9rem;
    gap: 2px;
  }
}

#footer .info p {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 1px 5px 1px 5px;
  border: 1px solid #40394a;
  border-radius: 2px;
  box-sizing: border-box;
  flex: 1;
  white-space: nowrap;
  font-weight: bold;
  font-size: 0.8rem;
  text-transform: uppercase;
}

#footer .info p:hover {
  color: #b39db0;
  background-color: #3c2d36;
  text-decoration: none;
}

.screen {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #241420;
  padding: 8px;
  box-sizing: border-box;
  z-index: 25;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.screen > .header {
  flex-basis: 50px;
  border: 1px solid #6f4361;
  border-radius: 2px;
  display: grid;
  grid-template-columns: 1fr 40px;
  color: #9f8093;
  font-weight: bold;
  font-size: 1.35rem;
  padding: 5px;
  box-sizing: border-box;
}

.screen > .header .title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 4px;
  gap: 2px;
}

.title .stats {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: #675c76;
}

.screen > .header .close {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background-color: rgba(219, 161, 203, 0.15);
  cursor: pointer;
}

.screen > .header .close:hover {
  background-color: rgba(219, 161, 203, 0.25);
}

.screen > .header .close:active {
  background-color: rgba(17, 9, 16, 0.35);
}

/*#collection > .header * {*/
/*  display: flex;*/
/*  align-items: center;*/
/*  justify-content: center;*/
/*}*/

#collection .grid {
  flex: 1;
  display: grid;
  /*grid-template-columns: repeat(3, 1fr);*/
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  align-items: start;
  grid-auto-rows: min-content;
  gap: 8px;
  overflow-y: scroll;
  position: relative;
}

.list {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/*#leaderboard-button {*/
/*  color: #fff;*/
/*  background-color: #0e060c;*/
/*  border-radius: 5px;*/
/*  border: 1px solid #323232;*/
/*  overflow: hidden;*/
/*  box-shadow: 0 0 5px rgba(0, 0, 0, 0.7);*/
/*  font-size: 1.2rem;*/
/*  z-index: 21;*/
/*  padding: 2px 5px 2px 5px;*/
/*  box-sizing: border-box;*/
/*  cursor: pointer;*/
/*}*/

#leaderboard .item {
  background-color: #382130;
  border: 1px solid #59354b;
  border-radius: 4px;
  display: flex;
  padding: 3px 5px 3px 5px;
  color: #aa909f;
  align-items: stretch;
  gap: 0.5rem;
  position: relative;
}

#leaderboard .item .stats span:nth-child(1) {
  flex-basis: 2.5rem;
  min-width: 2.5rem;
  overflow: hidden;
  color: #d9c6cb;
}

#leaderboard .item .stats span:nth-child(2) {
  flex-basis: 3.5rem;
  min-width: 3.5rem;
  overflow: hidden;
  color: #b9a4e6;
}

#leaderboard .item .stats span:nth-child(3) {
  flex-basis: 3.5rem;
  min-width: 3.5rem;
  overflow: hidden;
  color: #ce7faf;
}

/*#leaderboard .item .stats span:nth-child(3) {*/
/*  flex-basis: 3.5rem;*/
/*  min-width: 3.5rem;*/
/*  color: #3c9aad;*/
/*}*/

#leaderboard .fa-diamond {
  color: #d9c6cb;
}

#leaderboard .fa-heart {
  color: #e75db4;
}

#leaderboard .fa-gem {
  color: #47bad1;
}

#leaderboard .user {
  padding-bottom: 10px;
  border-bottom: 1px solid #59354b;
}

#leaderboard .user .item {
  position: relative;
  border: 1px solid #83516e;
  flex-wrap: wrap;
}

#leaderboard .controls {
  display: flex;
  flex-direction: row;
  gap: 2px;
}

#leaderboard .controls span {
  font-size: 0.78rem;
  color: #281d32;
  font-weight: bold;
  padding: 1px 6px 1px 6px;
  border-radius: 8px;
  box-sizing: border-box;
  background-color: #aa909f;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#leaderboard .controls span:last-child {
  border: 1px solid #d761ab;
  background-color: #6e405c;
  color: #ff7ac8;
  cursor: pointer;
}

#leaderboard .controls span:last-child:hover {
  background-color: #7e4b6a;
}

.item .place {
  flex-basis: 2.8rem;
  min-width: 2.8rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.top3 {
  color: #fcbd4e !important;
}

.top10 {
  color: #c9b5d5 !important;
}

.top50 {
  color: #bc9fb0 !important;
}

.item .username {
  flex-basis: 9.2rem;
  max-width: 9.2rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.item .stats {
  flex: 1;
  display: flex;
  flex-direction: row;
  gap: 0.7rem;
  font-size: 0.78rem;
  line-height: 0.78rem;
  align-items: center;
  justify-content: flex-start;
}

.item .stats b {
  font-size: 0.9rem;
  line-height: 0.9rem;
}

.item.is-patron::after {
  content: 'PATRON';
  position: absolute;
  top: 50%;
  right: 2px;
  translate: 0 -50%;
  font-size: 0.78rem;
  color: #896f7f;
  font-weight: bold;
  padding: 2px 2px 2px 2px;
  border-radius: 2px;
  box-sizing: border-box;
  border: 1px solid #896f7f;
}

#preview {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 26;
  cursor: pointer;
}

.prompt {
  display: none;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 80;
  background-color: #fff;
  color: #2f52a9;
  max-width: 280px;
  border-radius: 5px;
  padding: 7px 19px 7px 9px;
  font-size: 1rem;
  cursor: pointer;
}

.prompt span {
  position: absolute;
  top: 3px;
  right: 3px;
  font-size: 0.7rem;
  color: white;
  border-radius: 16px;
  padding: 4px 4px 3px 4px;
  background-color: #2f52a9;
  text-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prompt > i {
  padding-right: 4px;
}

.window {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(26, 12, 22, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 85;
}

.window .container {
  height: 720px;
  width: 512px;
  /*height: 640px;*/
  /*width: 480px;*/
  max-height: 90%;
  max-width: 90%;
  border-radius: 7px;
  border: 1px solid #ffc978;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  gap: 8px;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  text-align: center;
  z-index: 85;
}

.window .container b {
  color: #ededed;
}

.window .container > p:first-child, #faq .container p:first-child {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 10px;
  text-align: center;
}

.window .container > p:nth-child(2), #faq .container p:nth-child(2) {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #cdcdcd;
  text-align: center;
}

.window .container button, input[type="text"] {
  padding: 5px 8px 5px 8px;
  box-sizing: border-box;
  font-size: 1.38rem;
  height: 50px;
}

.window .container input[type="text"] {
  background-color: #fff;
}

/* Settings */
#settings .container {
  padding: 0.5rem;
  overflow: hidden;
}

#settings .container p:first-child {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0.7rem 0 0 0.5rem;
  color: #cdcdcd;
  font-size: 1.5rem;
}

#settings .settings {
  flex: 1;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
  padding: 0.5rem;
}

.settings .title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-weight: bold;
  color: #7c6d77;
}

.setting {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.6rem 0.75rem 0.6rem 0.75rem;
  border-radius: 5px;
  border: 1px solid #513347;
  gap: 0.75rem;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  color: #9f8093;
}

.setting:hover {
  background-color: rgba(81, 51, 71, 0.3);
}

.setting i {
  font-size: 2.4rem;
  color: #6f4361;
}

.setting.on i {
  color: #d761ab;
}

.setting.on {
  color: #d5bccb;
}

#disconnected {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #dcdcdc;
  border: 1px solid #fff;
  border-radius: 5px;
  font-weight: bold;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

#roll-button span {
  line-height: 1rem;
  margin-bottom: 1px;
}

#footer button.vertical {
  cursor: pointer;
  flex-basis: 1.6rem;
  flex-grow: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 4px;
  box-shadow: #1a0c16 0 0 10px;
  background: linear-gradient(to bottom, #4f3048, #361f31);
  color: #b5739f;
  border: 1px solid #6f4361;
  padding-bottom:4px;
  padding-top:2px;
  position: relative;
}

#footer button.vertical:active {
  background: linear-gradient(to bottom, #361f31, #462a3f);
  color: #8e6981;
}

#footer button.vertical .progress {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(156, 77, 162, 0.35);
  border-radius: 3px;
}

#footer #pvp {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
}

#pvp .text {
  flex: 1;
  padding: 2px 6px 2px 6px;
}

#pvp .counter {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #241420;
  width: 100%;
  padding: 1px 0 1px 0;
  border-top: 1px solid #6f4361;
  color: #978393;
  font-size: 0.75rem;
}

#footer button.vertical > span {
  font-family: 'Roboto Mono', monospace;
  writing-mode: vertical-lr;
  text-orientation: upright;
  font-size: 0.8rem;
  letter-spacing: -1px;
  font-weight: bold;
  pointer-events: none;
  z-index: 1;
}

#footer button.vertical.enabled {
  background: linear-gradient(to bottom, #361f31, #462a3f);
  color: #f2d7a4;
}

.button-big {
  cursor: pointer;
  border-radius: 4px;
  box-shadow: #1a0c16 0 0 10px;
  background: linear-gradient(to bottom, #4f3048, #361f31);
  color: #b5739f;
  font-size: 1.3rem;
  line-height: 1.3rem;
  font-weight: 600;
  border: 1px solid #6f4361;
  transition: all 0.1s ease-in-out;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 5px;
  position: relative;
}

/*.button-big::before {*/
/*  content: "";*/
/*  position: absolute;*/
/*  top: 2px;*/
/*  right: 2px;*/
/*  bottom: 2px;*/
/*  left: 2px;*/
/*  border: 1px solid #743e74;*/
/*  border-radius: 3px;*/
/*}*/

.button-big:hover {
  background: linear-gradient(to bottom, #5e3b4f, #4a2e3e);
  color: #cd7db1;
}

.button-big:active {
  background: linear-gradient(to bottom, #361f31, #462a3f);
  color: #8e6981;
}

.button-gray {
  background: linear-gradient(to bottom, #393939, #242424);
  color: #bbbbbb;
  border: 1px solid #434343;
}

.button-gray:hover {
  background: linear-gradient(to bottom, #242424, #393939);
  color: #cdcdcd;
}

.button-gray:active {
  background: linear-gradient(to bottom, #393939, #242424);
  color: #a0a0a0;
}

#collection-button span {
  font-size: 1rem;
  font-weight: 600;
  padding: 2px 6px 1px 6px;
  height: 1.3rem;
  margin-bottom: 2px;
  border-radius: 2rem;
  background-color: #140b13;
}

.checkbox {
  height: 40px;
  display: block;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 5px 15px 5px 15px;
  border-radius: 5px;
  font-weight: bold;
}

#exit-site {
  margin: 20px 0 20px 0;
  padding: 5px;
  box-sizing: border-box;
  color: #a0a0a0;
}

.window .container > div {
  margin-top: 10px;
  color: #cdcdcd;
}

#legal {
  overflow-y: scroll;
  padding: 5px;
  border-radius: 4px;
  border: 1px solid #4b3946;
  color: #6e6e6e;
  font-size: 0.9rem;
  max-height: 140px;
  text-align: left;
}

#popup-stack {
  position: absolute;
  top: 0;
  left: 10px;
  right: 10px;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

#popup-stack > * {
  pointer-events: auto;
}

.caption {
  color: #fff;
  font-size: 4rem;
  font-weight: 600;
  position: absolute;
  text-align: center;
}

.caption.small {
  font-size: 2.5rem;
}

.caption.affinity {
  font-size: 2.5rem;
  color: #fad5ff;
  text-shadow: -1px -1px 1px #000,
  1px -1px 1px #000,
  -1px 1px 1px #000,
  1px 1px 1px #000,
  0 0 10px rgba(246, 186, 255, 0.5);
}

.popup {
  height: 260px;
  width: 260px;
  position: absolute;
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 85px rgba(255, 255, 255, 0.5),
  0 0 85px rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  border: 1px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1.6rem;
  font-weight: 600;
  color: #fff;
  gap: 5px;
  flex-direction: column;
  animation: slide-up 0.2s ease-in-out forwards;
  z-index: 99;
  cursor: pointer;
  padding: 0 20px 0 20px;
  box-sizing: border-box;
  /*animation: pop 0.2s ease-in-out forwards,*/
}

.popup::after {
  content: '×';
  position: absolute;
  top: 2px;
  right: 5px;
  font-size: 1rem;
  color: black;
  text-shadow: none;
}

.popup-grace {
  height: 50px;
  width: 180px;
  left: 0;
  bottom: 0;
  flex-direction: row;
  padding: 0;
}

.popup-grace::after {
  content: '';
}

.popup-tickets {
  height: 50px;
  width: 220px;
  bottom: 0;
  flex-direction: row;
  padding: 0;
}

.popup p:first-child {
  font-size: 1.84rem;
  line-height: 1.84rem;
}

.popup p:last-child {
  font-size: 1.38rem;
  line-height: 1.38rem;
}

.speech-bubble {
  position: absolute;
  display: flex;
  bottom: 80px;
  left: 10px;
  /*max-width: 50%;*/
  text-align: center;
  font-weight: bold;
  font-size: 1.5rem;
  line-height: 2.2rem;
  rotate: -45deg;
  transform-origin: 0 0;
  cursor: pointer;
  max-width: 100%;
  z-index: 30;
}

@media only screen and (max-width: 1280px) {
  .speech-bubble {
    font-size: 1.25rem;
  }
}

@media only screen and (max-width: 768px) {
  .speech-bubble {
    font-size: 1.15rem;
  }
}

.speech-bubble::after {
  content: "";
  position: absolute;
  top: 50%;
  /*left: 50%;*/
  /*translate: -50%;*/
  left: -9px;
  width: 0;
  border-width: 0 10px 10px 10px;
  border-style: solid;
  border-color: transparent transparent rgb(249, 249, 249) transparent;
  display: block;
  z-index: 1;
}

.speech-bubble .background {
  width: 0;
  padding: 9px 14px 9px 14px;
  border-radius: 4px;
  background-color: rgb(249, 249, 249);
  box-shadow: 0 0 10px rgba(2, 2, 28, 0.65);
  color: rgb(44, 46, 60);
  border: 1px solid rgb(209, 209, 209);
}

.speech-bubble .emoji {
  position: absolute;
  font-size: 2.4rem;
  left: -1.4rem;
  top: -1.2rem;
  text-shadow: 0 0 7px rgba(2, 2, 28, 0.55);
}

.speech-bubble .text {
  font-family: monospace;
  letter-spacing: -0.1rem;
  display: block;
  /*animation: typing 1.5s steps(40) forwards;*/
  white-space: nowrap;
  overflow: hidden;
}

.inactive {
  opacity: 0.3;
}

#captcha {
  height: 290px;
  width: 290px;
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 0 85px rgba(255, 255, 255, 0.5),
  0 0 85px rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  border: 1px solid #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  color: #935198;
  gap: 5px;
  flex-direction: column;
  animation: slide-up 0.2s ease-in-out forwards;
  z-index: 98;
  cursor: pointer;
  padding: 20px 20px 20px 20px;
  box-sizing: border-box;
  /*animation: pop 0.2s ease-in-out forwards,*/
}

#captcha .timer {
  position: absolute;
  top: 3px;
  right: 3px;
  font-size: 1rem;
  height: 1.6rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #b59fb4;
  padding: 0 0.3rem 0 0.3rem;
  color: #b59fb4;
}

#captcha .title {
  font-size: 1.3rem;
  font-weight: 600;
}

#captcha .objective {
  border-radius: 0.8rem;
  background: #935198;
  color: #fff;
  padding: 0.2rem 0.4rem 0.2rem 0.4rem;
}

#captcha .grid {
  display: grid;
  grid-template-columns: repeat(2, 64px); /* Явное указание размера колонки */
  gap: 15px;
  padding: 5px;
}

#captcha .option {
  position: relative;
  width: 64px;
  height: 64px;
}

#captcha .captcha-img {
  position: absolute; /* Используем абсолютное позиционирование */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* Устанавливаем высоту 100%, чтобы соответствовать родительскому элементу */
}

#captcha .description {
  font-size: 1rem;
  color: #9d939d;
}