/* CSS Variables */
:root {
  --color-white: #fff;
  --color-green: #C3E877;
  --color-black: #0C0210;
  --color-green-light: #A2CC4C;
}

/* Reset Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #DCDCDA;
}

html,
body {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* Gilroy Font Face - используется для кнопок */
@font-face {
  font-family: "Gilroy";
  src: url(../assets/fonts/Gilroy-BoldItalic.woff) format("woff"),
    url(../assets/fonts/Gilroy-BoldItalic.ttf) format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* Druk Cy Font Faces - используются для заголовков */
@font-face {
  font-family: "Druk Cy";
  src: url(../assets/fonts/DrukCy-Bold-Desktop.otf) format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Druk Cy";
  src: url(../assets/fonts/DrukCy-BoldItalic-Desktop.otf) format("opentype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Druk Cy";
  src: url(../assets/fonts/DrukCy-Heavy-Desktop.otf) format("opentype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Druk Cy";
  src: url(../assets/fonts/DrukCy-HeavyItalic-Desktop.otf) format("opentype");
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

/* Color Classes */
.white {
  color: var(--color-white);
}

.green {
  color: var(--color-green);
}

.black {
  color: var(--color-black);
}

.green-light {
  color: var(--color-green-light);
}

/* Base Button Styles */
.btn {
  font-family:
    "Gilroy",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: 34px;
  line-height: 100%;
  letter-spacing: 0%;
  text-transform: uppercase;
  text-align: center;
  width: 419px;
  min-height: 96px;
  padding: 0 1rem;
  border: none;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 20px 0 20px;
  isolation: isolate;
}

/* Small Button */
.btn-small {
  width: 136px;
  height: 34px;
  min-height: 34px;
  font-size: 16px;
  border-radius: 0 8px 0 8px;
}

.btn-small.btn-primary {
  box-shadow: 3px 4px 0px 0px #171717;
}

.btn-small.btn-secondary {
  box-shadow: 3px 4px 0px 0px #171717;
}

.btn-small.btn-primary:disabled,
.btn-small.btn-primary.disabled {
  box-shadow: 3px 4px 0px 0px #3f3f3f;
}

.btn-small.btn-secondary:disabled,
.btn-small.btn-secondary.disabled {
  box-shadow: 3px 4px 0px 0px #3f3f3f;
}

/* Primary Button (Type 1 - Dark) */
.btn-primary {
  background: #171717;
  color: #fff;
  box-shadow: 4px 8px 0px 0px #c3e877;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(184.59deg, #3f3e3e 4.2%, #171717 75.17%);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: -1;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary,
.btn-primary * {
  position: relative;
  z-index: 1;
}

.btn-primary:focus,
.btn-primary:active {
  background: linear-gradient(183.9deg, #3f3e3e 3.6%, #171717 97.24%);
  color: #c3e877;
}

.btn-primary:focus::before,
.btn-primary:active::before {
  opacity: 0;
}

.btn-primary:disabled,
.btn-primary.disabled {
  background: #b5b5b5;
  box-shadow: 4px 8px 0px 0px #3f3f3f;
  color: #7b7b7b;
  cursor: not-allowed;
}

.btn-primary:disabled:hover,
.btn-primary.disabled:hover {
  background: #b5b5b5;
}

/* Secondary Button (Type 2 - Green) */
.btn-secondary {
  background: #c3e877;
  color: #171717;
  box-shadow: 4px 8px 0px 0px #171717;
  position: relative;
  overflow: hidden;
}

.btn-secondary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(184.09deg, #c3e877 3.64%, #698924 92.61%);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: -1;
}

.btn-secondary:hover::before {
  opacity: 1;
}

.btn-secondary,
.btn-secondary * {
  position: relative;
  z-index: 1;
}

.btn-secondary:focus,
.btn-secondary:active {
  background: linear-gradient(180deg, #c3e877 0%, #698924 100%);
  color: #fff;
}

.btn-secondary:focus::before,
.btn-secondary:active::before {
  opacity: 0;
}

.btn-secondary:disabled,
.btn-secondary.disabled {
  background: #b5b5b5;
  box-shadow: 4px 8px 0px 0px #3f3f3f;
  color: #7b7b7b;
  cursor: not-allowed;
}

.btn-secondary:disabled:hover,
.btn-secondary.disabled:hover {
  background: #b5b5b5;
}

/* Link styles - кнопка как ссылка */
.btn[href] {
  text-decoration: none;
  display: inline-flex;
}

.btn[href]:hover {
  text-decoration: none;
}

/* Time to Play Section */
.time-to-play {
  background-image: url(../assets/bg-play.webp);
  background-size: auto 1180px;
  background-position: calc(50% - 85px) -53px;
  background-repeat: no-repeat;
  height: 1080px;
  overflow: hidden;
}

.time-to-play-content {
  width: 1632px;
  margin: auto;
  position: relative;
  padding-top: 120px;
  padding-left: 137px;
}

.logo {
  margin-bottom: 28px;
  z-index: 2;
  position: relative;
}

.logo img {
  width: auto;
  height: auto;
  max-width: 100%;
}

.time-to-play-content::before {
  content: "";
  position: absolute;
  background-repeat: no-repeat;
  bottom: -339px;
  right: -475px;
  width: 1138px;
  height: 1100px;
  z-index: 1;
  background-size: contain;
  background-image: url(../assets/bg-2-play.svg);
  z-index: 1;
}

.time-to-play-title {
  font-family: "Druk Cy", sans-serif;
  font-weight: 700;
  font-size: 80px;
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: 3.2px;
  text-stroke: 22px var(--color-black);
  -webkit-text-stroke: 22px var(--color-black);
  margin: auto;
  paint-order: stroke fill;
  font-style: italic;
  width: 930px;
  position: relative;
  z-index: 2;
  left: -68px;
}

.time-to-play-title span {
  font-size: 90px;
  position: relative;
  letter-spacing: 5.4px;
  -webkit-text-stroke: 24px var(--color-black);
  font-weight: 900;
  z-index: -1;
  text-align: right;
  display: block;
  padding-top: 5px;
  padding-right: 22px;
}

.time-to-play-wrapper {
  display: flex;
  align-items: flex-start;
  position: relative;
  z-index: 2;
}

.time-to-play-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 16px;
  z-index: 2;
  position: relative;
  width: 478px;
}

#register-btn span:nth-of-type(2) {
  display: none;
}

.time-to-play-card {
  width: 227px;
  height: 303px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  padding: 12px;
  justify-content: flex-end;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.time-to-play-card:nth-child(1) {
  background-image: url(../assets/play-1.webp);
}

.time-to-play-card:nth-child(2) {
  background-image: url(../assets/play-2.webp);
}

.time-to-play-card:nth-child(3) {
  background-image: url(../assets/play-3.webp);
}

.time-to-play-card:nth-child(4) {
  background-image: url(../assets/play-4.webp);
}

.time-to-play-card:hover {
  transform: scale(1.2);
  z-index: 3;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  position: relative;
  background: white;
  border-radius: 8px;
  max-width: 90vw;
  max-height: 90vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-header {
  display: none;
}

.modal-close-btn-mobile {
  display: none;
}

.modal-close-btn-desktop {
  width: 40px;
  height: 40px;
  border-radius: 69.333px;
  background: #171717;
  box-shadow: 2.1px 2.667px 0 0 #c3e877;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -20px;
  right: -20px;
  z-index: 10;
}

.modal-close-btn-desktop:hover {
  opacity: 0.8;
}

.modal-body {
  position: relative;
  padding: 1rem;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 1rem;
  border-top: 1px solid #e5e5e5;
  display: flex;
  justify-content: flex-end;
}

.primary-button {
  background: #007bff;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
}

.primary-button:hover {
  background: #0056b3;
}

.modal-iframe {
  width: 100%;
  height: 80vh;
  min-height: 500px;
  max-height: 90vh;
  border: none;
  border-radius: 8px;
}

.modal-body:has(.modal-iframe[style*="display: block"]) {
  padding: 0;
}

.modal-slot-content {
  width: 100%;
}

/* Age Verification Modal */
.age-verification-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none !important;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  pointer-events: auto;
  background: rgba(23, 23, 23, 0.5);
  filter: none !important;
  backdrop-filter: blur(15px);
  isolation: isolate;
}

/* Модальное окно регистрации должно быть поверх игры */
#registration-form-modal {
  z-index: 10001;
}


.age-verification-modal.show {
  display: flex !important;
}

.age-verification-content {
  background: transparent;
  background-image: url(../assets/modal-confirm.webp);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  text-align: center;
  width: 775px;
  height: 420px;
  left: 50px;
  position: relative;
  z-index: 1;
  pointer-events: auto;
  filter: none !important;
  backdrop-filter: none !important;
  transform: translateZ(0);
  will-change: transform;
  isolation: isolate;
}

.age-verification-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  left: calc(50% - 40px);
  top: calc(50% - 25px);
  transform: translate(-50%, -50%) translateZ(0);
  gap: 2rem;
  z-index: 2;
  pointer-events: auto;
  filter: none !important;
  backdrop-filter: none !important;
  will-change: transform;
}

/* Модальное окно регистрации - использует стили modal-overlay */
#registration-form-modal {
  z-index: 10001;
}

#registration-form-modal .modal-content {
  max-width: 942px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  background: none;
}

#registration-form-modal .modal-body {
  padding: 0;
}

#registration-form-modal .modal-close-btn-desktop {
  top: 45px;
  right: 130px;
}

#registration-form-modal .time-to-play-form {
  margin: 0 auto;
}

/* Credentials Modal */
#credentials-modal {
  z-index: 10002;
}

#credentials-modal .credentials-modal-content {
  max-width: 942px;
  width: 100%;
  max-height: 90vh;
  background: none;
  box-shadow: none;
}

#credentials-modal .time-to-play-form {
  margin: 0 auto;
}

.credentials-modal-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.credentials-title {
  font-size: 32px;
  line-height: 1.1;
  text-transform: none;
}

.credentials-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.credentials-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.credentials-field label {
  color: #C3E877;
  -webkit-text-stroke-width: 4px;
  -webkit-text-stroke-color: #0C0210;
  font-family: "Druk Cy", sans-serif;
  font-size: 24px;
  font-style: italic;
  font-weight: 700;
  line-height: 100%;
  letter-spacing: 1px;
  text-transform: uppercase;
  paint-order: stroke fill;
}

.credentials-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.credentials-input-wrapper input[type="text"] {
  width: 100%;
  color: #000;
  font-family: "Druk Cy", sans-serif;
  font-size: 24px;
  font-style: italic;
  font-weight: 500;
  line-height: 130%;
  letter-spacing: 0.48px;
  border-radius: 0 16px;
  background: #F6F6F5;
  box-shadow: 4px 6px 0 0 #171717;
  padding: 4px 44px 4px 20px;
  border: 1px solid transparent;
  outline: none;
}

.credentials-input-wrapper input[type="text"]::placeholder {
  color: #817E7E;
}

.credentials-copy-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.credentials-copy-btn:disabled {
  cursor: not-allowed;
}

.credentials-copy-icon {
  width: 21px;
  height: 21px;
  filter: grayscale(1);
  transition: filter 0.2s ease;
}

.credentials-copy-btn.copied .credentials-copy-icon {
  filter: brightness(0) saturate(100%) invert(84%) sepia(15%) saturate(1183%) hue-rotate(34deg) brightness(97%) contrast(93%);
}

.credentials-topup-btn {
  width: 100%;
  padding: 10px 20px 11px;
  border-radius: 0 20px;
  background: #C3E877;
  color: #171717;
  text-align: center;
  font-family: "Gilroy", sans-serif;
  font-size: 24px;
  font-style: italic;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  box-shadow: 4px 8px 0px 0px #171717;
  text-decoration: none;
  display: block;
}

.credentials-topup-btn:hover {
  text-decoration: none;
}

.credentials-topup-btn:disabled {
  background: #B5B5B5;
  box-shadow: 4px 8px 0px 0px #3f3f3f;
  cursor: not-allowed;
}

.age-verification-title {
  font-family: "Druk Cy", sans-serif;
  font-weight: 700;
  font-size: 50px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-stroke: 10px var(--color-black);
  -webkit-text-stroke: 10px var(--color-black);
  paint-order: stroke fill;
  font-style: italic;
  text-align: center;
  margin: 0;
}

.age-verification-buttons {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  width: 100%;
  max-width: 460px;
  justify-content: center;
}

.age-verification-buttons .btn {
  width: 220px;
  height: 65px;
  min-height: 65px;
  font-size: 32px;
}

.age-verification-modal.hidden {
  display: none !important;
}

.age-verification-circle {
  display: none;
}

.age-verification-number {
  text-align: center;
  -webkit-text-stroke-width: 4px;
  -webkit-text-stroke-color: var(--color-black);
  font-family: "Druk Cy", sans-serif;
  font-size: 58px;
  font-style: italic;
  font-weight: 900;
  line-height: 100%;
  letter-spacing: 2.32px;
  text-transform: uppercase;
}

/* Registration Form */
.time-to-play-form {
  background-image: url(../assets/registration_form.webp);
  background-repeat: no-repeat;
  background-position: top left;
  background-size: cover;
  width: 942px;
  height: 704px;
  position: relative;
  margin-left: 66px;
  margin-top: 3px;
  display: flex;
}

.time-to-play-form form {
  display: flex;
  flex-direction: column;
  max-width: 100%;
  width: 494px;
  margin: 0 auto;
  justify-content: flex-start;
  padding-top: 126px;
  gap: 28px;
}

.time-to-play-form-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  left: -5px;
}

.time-to-play-form-item label {
  color: #C3E877;
  -webkit-text-stroke-width: 10px;
  -webkit-text-stroke-color: #0C0210;
  font-family: "Druk Cy", sans-serif;
  font-size: 32px;
  font-style: italic;
  font-weight: 700;
  line-height: 100%;
  letter-spacing: 1.44px;
  text-transform: uppercase;
  paint-order: stroke fill;
}

.time-to-play-form-item-input {
  position: relative;
  display: flex;
  align-items: flex-end;
}

/* Красная звездочка после input */
.time-to-play-form-item-asterisk {
  position: absolute;
  left: 30px;
  bottom: 3px;
  color: #DB371F;
  font-family: "Druk Cy", sans-serif;
  font-size: 36px;
  font-style: italic;
  font-weight: 500;
  line-height: 130%;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.2s;
}

/* Показываем звездочку для всех required полей когда placeholder виден или есть ошибка */
.time-to-play-form-item-input input[required]:placeholder-shown~.time-to-play-form-item-asterisk,
.time-to-play-form-item-input input[required].error~.time-to-play-form-item-asterisk {
  opacity: 1;
}

/* Увеличиваем padding-left для всех required полей когда видна звездочка */
.time-to-play-form-item-input input[required]:placeholder-shown,
.time-to-play-form-item-input input[required].error {
  padding-left: 40px;
}

/* Обертка для input code и звездочки */
.time-to-play-form-item-input-wrapper {
  position: relative;
}

/* Показываем звездочку для всех required полей когда placeholder виден или есть ошибка */
.time-to-play-form-item-input-wrapper input[required]:placeholder-shown~.time-to-play-form-item-asterisk,
.time-to-play-form-item-input-wrapper input[required].error~.time-to-play-form-item-asterisk {
  opacity: 1;
}

/* Увеличиваем padding-left для всех required полей когда видна звездочка */
.time-to-play-form-item-input-wrapper input[required]:placeholder-shown,
.time-to-play-form-item-input-wrapper input[required].error {
  padding-left: 40px;
}

.time-to-play-form-item input[type="text"],
.time-to-play-form-item input[type="email"] {
  width: 100%;
  color: #000;
  font-family: "Druk Cy", sans-serif;
  font-size: 36px;
  font-style: italic;
  font-weight: 500;
  line-height: 130%;
  letter-spacing: 0.72px;
  border-radius: 0 20px;
  background: #F6F6F5;
  box-shadow: 4px 6px 0 0 #171717;
  padding: 1px 30px 0;
  border: 1px solid transparent;
  outline: none;
}

.time-to-play-form-item input[type="text"]::placeholder,
.time-to-play-form-item input[type="email"]::placeholder {
  color: #817E7E;
  font-family: "Druk Cy", sans-serif;
  font-size: 36px;
  font-style: italic;
  font-weight: 500;
  line-height: 130%;
  letter-spacing: 0.72px;
}


.time-to-play-form-item input[type="text"]:disabled,
.time-to-play-form-item input[type="email"]:disabled {
  background: #B5B5B5;
  color: #7B7B7B;
}

.time-to-play-form-item input[type="text"].error,
.time-to-play-form-item input[type="email"].error {
  color: #DB371F;
  border: 1px solid #DB371F;
}

.time-to-play-form-item-error {
  opacity: 0;
  pointer-events: none;
  color: #DB371F;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-style: italic;
  font-weight: 500;
  line-height: 0;
  text-align: right;
  position: relative;
  top: 10px;
  letter-spacing: 0.5px;
  transition: opacity 0.2s;
}

.time-to-play-form-item input.error~.time-to-play-form-item-error,
.time-to-play-form-item-input input.error~.time-to-play-form-item-error {
  opacity: 1;
  pointer-events: auto;
}

.time-to-play-form-item-input input {
  padding-right: 30px;
}

.time-to-play-form-item button[type="submit"] {
  width: 100%;
  padding: 10px 20px 11px;
  border-radius: 0 20px;
  background: #C3E877;
  color: #171717;
  text-align: center;
  leading-trim: both;
  text-edge: cap;
  font-family: "Gilroy", sans-serif;
  font-size: 24px;
  font-style: italic;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  box-shadow: 4px 8px 0px 0px #171717;
}

.time-to-play-form-item button[type="submit"]:disabled {
  background: #B5B5B5;
  box-shadow: 4px 8px 0px 0px #3f3f3f;
  cursor: not-allowed;
}

.time-to-play-form-agreement {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.time-to-play-form-agreement input[type="checkbox"] {
  margin-top: 4px;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 0 2px;
  background: #F6F6F5;
  box-shadow: 2px 2px 0 0 #171717;
  border: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  position: relative;
}

.time-to-play-form-agreement input[type="checkbox"]:checked {
  border-radius: 0 2px;
  background: #C3E877;
  box-shadow: 2px 2px 0 0 #171717;
}

.time-to-play-form-agreement input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 9px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='9' viewBox='0 0 10 9' fill='none'%3E%3Cpath d='M0.707032 3.64063L3.70703 6.64062L8.70703 0.640625' stroke='%23171717' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.time-to-play-form-agreement label {
  color: #000;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.5;
}

.time-to-play-form-agreement a {
  text-decoration-line: underline;
  color: #000;
  font-weight: 700;
}

/* Кнопка "Вернуться к играм" */
.time-to-play-form-back-btn-wrapper {
  margin-top: 20px;
  text-align: center;
  display: none;
}

.time-to-play-form-back-btn {
  background: transparent;
  border: none;
  color: #FFF;
  leading-trim: both;
  text-edge: cap;
  font-family: "Gilroy", sans-serif;
  font-size: 20.024px;
  font-style: italic;
  font-weight: 700;
  line-height: normal;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: none;
  text-decoration-thickness: auto;
  text-underline-offset: auto;
  text-underline-position: from-font;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
}

/* Показываем кнопку "Вернуться к играм" только на мобильных */
@media (max-width: 767.98px) {
  .time-to-play-form-back-btn-wrapper {
    display: block;
  }
}

/* Media Queries */
@media screen and (max-width: 1919.98px) {
  .logo {
    width: 128px;
    height: 35px;
    margin-bottom: 20px;
  }

  .time-to-play {
    height: 720px;
    background-size: auto 785px;
    background-position: calc(50% - 68px) -32px;
  }

  .time-to-play-title {
    font-size: 54px;
    letter-spacing: 2.16px;
    width: 627px;
    -webkit-text-stroke-width: 14px;
  }

  .time-to-play-title span {
    font-size: 64px;
    -webkit-text-stroke-width: 11.67px;
    letter-spacing: 3.84px;
    padding-right: 0px;
  }

  .time-to-play-card {
    width: 151px;
    height: 202px;
    padding: 10px;
  }

  .time-to-play-cards {
    width: 320px;
    margin-top: 0px;
    gap: 15px;
  }

  .credentials-modal-content .time-to-play-form {
    width: 781px;
    height: 584px;
    margin-left: 0;
    margin-top: 0;
  }

  .time-to-play-form {
    width: 649px;
    height: 483px;
    margin-left: 8px;
    margin-top: -10px;
  }

  .time-to-play-form form {
    width: 340px;
    padding-top: 75px;
    gap: 12px;
  }

  .time-to-play-content {
    width: 1180px;
    padding-top: 80px;
  }

  .btn-small {
    width: 91px;
    height: 23px;
    min-height: 23px;
    border-radius: 0 4px;
    box-shadow: 1.5px 2px 0px 0px #171717;
    font-size: 12px;
  }

  .time-to-play-form-item label {
    font-size: 24px;
    -webkit-text-stroke-width: 6px;
  }

  .time-to-play-form-item input[type="text"],
  .time-to-play-form-item input[type="email"] {
    font-size: 24px;
    padding: 1px 20px 0;
    letter-spacing: 0.48px;
    border-radius: 0 13.783px;
    box-shadow: 3px 4px 0 0 #171717;
  }

  .time-to-play-form-item input[type="text"]::placeholder,
  .time-to-play-form-item input[type="email"]::placeholder {
    font-size: 24px;
    letter-spacing: 0.48px;
  }

  .time-to-play-form-item-error {
    font-size: 12px;
    top: 6px;
  }

  .time-to-play-form-item-asterisk {
    left: 22px;
    bottom: 3px;
    font-size: 22px;
  }

  .time-to-play-form-item-input input[required]:placeholder-shown,
  .time-to-play-form-item-input input[required].error {
    padding-left: 28px;
  }

  .time-to-play-form-item-input-wrapper input[required]:placeholder-shown,
  .time-to-play-form-item-input-wrapper input[required].error {
    padding-left: 30px;
  }

  .time-to-play-form-item-input input {
    padding-right: 20px;
  }

  .time-to-play-form-item button[type="submit"] {
    padding: 5px 20px 6px;
    font-size: 20px;
    border-radius: 0 14px;
    box-shadow: 3px 6px 0 0 #171717 !important;
    margin-top: 6px;
  }

  .time-to-play-form-agreement input[type="checkbox"] {
    width: 14px;
    height: 14px;
  }

  .time-to-play-form-agreement {
    gap: 8px;
  }

  .time-to-play-form-agreement label {
    font-size: 10px;
  }

  .time-to-play-content::before {
    width: 751px;
    height: 726px;
    bottom: -210px;
    right: -262px;
  }
}

@media screen and (max-width: 1279.98px) {
  .time-to-play-content {
    width: 720px;
    padding-top: 85px;
    padding-left: 0;
  }

  #registration-form-modal .modal-close-btn-desktop {
    top: 30px;
  }

  .age-verification-content {
    left: 0;
  }

  .logo {
    width: 184px;
    height: 50px;
    margin: 0 auto 16px;
  }

  .time-to-play-title {
    width: 650px;
    margin: auto;
    left: 10px;
  }

  .time-to-play-wrapper {
    flex-direction: column-reverse;
    align-items: center;
  }

  .time-to-play-form {
    margin-top: 0;
    margin-left: 50px;
    margin-bottom: 14px;
  }

  .time-to-play {
    height: 1024px;
    background-size: auto 1130px;
    background-position: calc(50% - 178px) -52px;
  }

  .time-to-play-cards {
    width: 100%;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }

  .time-to-play-card {
    width: 172px;
    height: 230px;
  }

  .btn-small {
    font-size: 14px;
    width: 104px;
    height: 26px;
  }

  .time-to-play-content::before {
    width: 890px;
    height: 859px;
    bottom: -233px;
    right: -386px;
  }
}

@media screen and (max-width: 767.98px) {
  .age-verification-body {
    left: calc(50%);
    top: calc(50% - 94px);
    transform: translate(-50%, -50%);
    gap: 0;
  }

  .age-verification-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--color-green);
    border: 4.664px solid var(--color-black);
    filter: drop-shadow(2.332px 4.664px 0 var(--color-green));
    margin-bottom: 20px;
  }

  .age-verification-content {
    background-image: none;
    width: 100%;
    height: 100%;
    left: 0;
  }

  .age-verification-title {
    font-size: 40px;
    text-stroke: 4px var(--color-black);
    -webkit-text-stroke: 4px var(--color-black);
    letter-spacing: 2px;
    margin-bottom: 25px;
  }

  .age-verification-buttons {
    width: 296px;
    flex-direction: column;
    gap: 14px;
  }

  .age-verification-buttons .btn {
    font-size: 18px;
    height: 45px;
    min-height: 45px;
    width: 100%;
  }

  .modal-overlay {
    height: 100dvh;
    padding: 0;
    align-items: stretch;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  }

  .modal-content {
    max-width: 100vw;
    max-width: 100%;
    max-height: 100dvh;
    max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    width: 100vw;
    width: 100%;
    height: 100dvh;
    height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    border-radius: 0;
    margin: 0;
  }

  .modal-close-btn-desktop {
    display: none;
  }

  .modal-header {
    display: flex;
    height: 36px;
    background: #dcdcda;
    padding: 6px 15px;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
    border-radius: 0;
    padding-top: calc(6px + env(safe-area-inset-top));
    padding-right: calc(15px + env(safe-area-inset-right));
    padding-bottom: 6px;
    padding-left: calc(15px + env(safe-area-inset-left));
    height: calc(36px + env(safe-area-inset-top));
    min-height: 36px;
  }

  .modal-close-btn-mobile {
    width: 24px;
    height: 24px;
    border-radius: 69.333px;
    background: #171717;
    box-shadow: 2.1px 2.667px 0 0 #c3e877;
    border: none;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    position: static;
    margin-left: auto;
  }

  .modal-close-btn-mobile:hover {
    opacity: 0.8;
  }

  .modal-body {
    flex: 1;
    overflow-y: auto;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .modal-iframe {
    height: calc(100dvh - 36px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    max-height: none;
    border-radius: 0;
  }

  html,
  body {
    min-width: 375px;
  }

  .time-to-play {
    height: 668px;
    background-size: auto 815px;
    background-position: calc(50% - 224px) -44px;
  }

  .time-to-play-content {
    width: 345px;
    padding-top: 59px;
  }

  .logo {
    width: 119px;
    height: 26px;
    margin: 0 0 18px;
  }

  .time-to-play-title {
    left: 0;
    width: 258px;
    font-size: 22px;
    letter-spacing: 1.05px;
    text-stroke: 6px var(--color-black);
    -webkit-text-stroke: 6px var(--color-black);
    margin: 0 0 10px;
  }

  .time-to-play-title span {
    font-size: 45px;
    -webkit-text-stroke: 8px var(--color-black);
    letter-spacing: inherit;
    font-weight: inherit;
    padding-top: 4px;
  }

  .time-to-play-form {
    display: none;
  }

  .time-to-play-card {
    width: 141px;
    height: 189px;
  }

  .time-to-play-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    width: 296px;
  }

  .btn-small.btn-secondary {
    box-shadow: 2px 2px 0px 0px #171717;
  }

  .btn-small {
    width: 117px;
    height: 20px;
    font-size: 12px;
    min-height: 20px;
  }

  .time-to-play-content::before {
    width: 427px;
    height: 428px;
    bottom: 25px;
    right: -101px;
    background-image: url(../assets/main-circle-mob.svg);
  }

  .time-to-play-form {
    background-image: none;
    width: 100%;
    height: auto;
    margin-left: 0;
  }

  .time-to-play-form form {
    padding-top: 5px;
    width: 295px;
    gap: 15px;
  }

  .time-to-play-form-item label {
    font-size: 20px;
    -webkit-text-stroke-width: 4px;
  }

  .time-to-play-form-item input[type="text"],
  .time-to-play-form-item input[type="email"] {
    height: 45px;
    border-radius: 0 10px;
    font-size: 20px;
    padding: 1px 13px 0;
    letter-spacing: 0.1px;
  }

  .time-to-play-form-item {
    left: 0;
    gap: 6px;
  }

  .time-to-play-form-item input[type="text"]::placeholder,
  .time-to-play-form-item input[type="email"]::placeholder {
    letter-spacing: 0.1px;
    font-size: 20px;
  }

  .time-to-play-form-item-input input[required]:placeholder-shown,
  .time-to-play-form-item-input input[required].error {
    padding-left: 18px;
  }

  .time-to-play-form-item-asterisk {
    left: 13px;
    bottom: 8px;
    font-size: 20px;
  }

  .time-to-play-form-item-input-wrapper input[required]:placeholder-shown,
  .time-to-play-form-item-input-wrapper input[required].error {
    padding-left: 18px;
  }

  .time-to-play-form-item button[type="submit"] {
    height: 45px;
    font-size: 18px;
  }

  .time-to-play-form-item-input button {
    height: 45px;
    border-radius: 0 10px 0 0;
  }

  .time-to-play-form-item-input input.error~button {
    height: 43px;
    right: 1px;
    bottom: 1px;
    border-radius: 0 10px 0 0;
    font-size: 14px;
  }

  .time-to-play-form-agreement label {
    color: #fff;
    font-size: 11px;
  }

  .time-to-play-form-agreement a {
    color: #fff;
  }

  .active-form>.time-to-play-content::before {
    bottom: -405px;
    left: calc(50% - 203px);
    background: url(../assets/cat.svg) no-repeat, url(../assets/main-circle-mob.svg) no-repeat;
    background-size: 166px 179px, 422px auto;
    background-position: calc(100% - 40px) 13px, calc(100% - 4px) 0px;
  }

  .time-to-play.active-form {
    background-size: auto 738px;
    background-position: calc(50% - 208px) -34px;
  }

  .modal-content .time-to-play-form {
    display: flex !important;
  }

  #register-btn span:nth-of-type(1) {
    display: none;
  }

  #register-btn span:nth-of-type(2) {
    display: inline-flex;
  }
}

#show-registration-form-btn.btn {
  width: 100%;
  padding: 10px 20px 11px;
  border-radius: 0 20px;
  background: #C3E877;
  color: #171717;
  text-align: center;
  font-family: "Gilroy", sans-serif;
  font-size: 24px;
  font-style: italic;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  box-shadow: 4px 8px 0px 0px #171717;
  margin: 20px 0 0 0;
}

@media (min-width: 768px) {
  #show-registration-form-btn {
    display: none !important;
  }

  .credentials-modal-content .time-to-play-form form {
    width: 410px;
  }
}

@media (max-width: 1279.98px) {
  #show-registration-form-btn.btn {
    padding: 5px 20px 6px;
    font-size: 20px;
    border-radius: 0 14px;
    box-shadow: 3px 6px 0 0 #171717 !important;
    margin-top: 6px;
  }
}

@media (max-width: 767.98px) {
  #show-registration-form-btn.btn {
    height: 45px;
    font-size: 20px;
    min-height: 45px;
    width: 296px;
    margin-top: 35px;
  }

  #credentials-modal.modal-overlay {
    backdrop-filter: blur(10px);
  }

  #credentials-modal .credentials-modal-content {
    margin: auto;
  }

  .credentials-modal-content .time-to-play-form {
    max-width: 100%;
  }
}
