@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Rubik:wght@400;500;700&display=swap");

:root {
  --sky: #78b7ff;
  --sky-deep: #4b89db;
  --grass: #53a63f;
  --grass-dark: #3b7d2e;
  --dirt: #7a4e2d;
  --stone: #6c727a;
  --stone-dark: #51565d;
  --diamond: #5ff4ff;
  --emerald: #42d15d;
  --emerald-dark: #24853a;
  --panel: #c7c7c7;
  --panel-dark: #8a8a8a;
  --text: #151515;
  --text-light: #ffffff;
  --shadow: 0 10px 0 rgba(0, 0, 0, 0.22);
}

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

html {
  scroll-behavior: smooth;
}

.watermark {
    content: "ya-invite";
    position: fixed;
    font-size: 80px;
    color: rgba(0, 0, 0, 0.08);
    transform: rotate(-25deg);
    pointer-events: none;
    z-index: 55555;
    white-space: nowrap;
    font-weight: 600; /* выглядит аккуратнее */
}



body::after {
    content: "ya-invite";
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-25deg);
    font-size: 80px;
    color: rgba(0,0,0,0.08);
    pointer-events:none;
    z-index:5555555;
    white-space:nowrap;
}

html::after {
    content: "ya-invite";
    position: fixed;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-25deg);
    font-size: 80px;
    color: rgba(0,0,0,0.08);
    pointer-events:none;
    z-index:555555;
    white-space:nowrap;
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Rubik", sans-serif;
  color: var(--text-light);
  background: linear-gradient(180deg, var(--sky) 0%, var(--sky-deep) 48%, #2d5a29 100%);
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

a {
  color: inherit;
  text-decoration: none;
}

.sky-layer,
.cloud-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.sky-layer {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 60%);
}

.cloud-layer {
  opacity: 0.45;
  background-image:
    linear-gradient(#ffffff 0 0),
    linear-gradient(#ffffff 0 0),
    linear-gradient(#ffffff 0 0),
    linear-gradient(#ffffff 0 0);
  background-size: 80px 18px, 120px 22px, 100px 18px, 70px 16px;
  background-repeat: no-repeat;
  background-position: 8% 12%, 68% 18%, 24% 30%, 80% 34%;
}

.mc-hero,
.mc-main {
  position: relative;
  z-index: 1;
}

.mc-hero {
  min-height: 100vh;
  padding: 24px 14px 42px;
  display: grid;
  place-items: center;
}

.mc-window {
  width: min(100%, 980px);
  background: linear-gradient(180deg, #d0d0d0, #8d8d8d);
  border: 4px solid #000;
  box-shadow: var(--shadow);
}

.mc-titlebar,
.mc-card-head,
.mc-kicker {
  font-family: "Press Start 2P", cursive;
}

.mc-titlebar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: linear-gradient(180deg, #8ae0ff, #5aa5f0);
  color: #031424;
  font-size: 0.56rem;
  border-bottom: 4px solid #000;
}

.mc-hero-grid {
  display: grid;
  gap: 20px;
  padding: 18px 14px 18px;
}

.mc-hero-copy {
  color: #111;
}

.mc-kicker {
  margin: 0 0 16px;
  color: #1a5d1a;
  font-size: 0.62rem;
  line-height: 1.8;
  text-transform: uppercase;
}

h1,
h2,
h3,
.mc-age,
.mc-timeline-item strong {
  margin: 0;
  font-family: "Press Start 2P", cursive;
  line-height: 1.4;
}

h1 {
  font-size: clamp(1.5rem, 7vw, 3rem);
  color: #0c1c08;
}

h2 {
  font-size: clamp(1.1rem, 4vw, 1.7rem);
  color: #111;
}

h3 {
  font-size: 0.78rem;
  color: var(--emerald-dark);
}

.mc-age {
  margin: 14px 0 8px;
  font-size: clamp(1.05rem, 5vw, 1.7rem);
  color: #1f6119;
}

.mc-date,
.mc-lead,
.mc-card p,
.mc-timeline-item p {
  color: #1c1c1c;
}

.mc-date {
  margin: 0;
  text-transform: uppercase;
}

.mc-lead {
  max-width: 36rem;
  margin: 16px 0 0;
}

.mc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  margin-top: 20px;
  border: 4px solid #000;
  background: linear-gradient(180deg, var(--emerald), var(--emerald-dark));
  color: var(--text-light);
  box-shadow: 0 6px 0 #153b1e;
}

.mc-button.secondary {
  background: linear-gradient(180deg, #8dd9ff, #4aa0d8);
  box-shadow: 0 6px 0 #285b7b;
}

.mc-preview {
  position: relative;
  min-height: 320px;
}

.pixel-frame {
  position: relative;
  padding: 12px;
  border: 4px solid #000;
  box-shadow: var(--shadow);
}

.grass-frame {
  background: linear-gradient(180deg, var(--grass) 0 18%, var(--dirt) 18% 100%);
}

.stone-frame {
  background: linear-gradient(180deg, var(--stone) 0%, var(--stone-dark) 100%);
}

.floating-cube {
  position: absolute;
  width: 46px;
  height: 46px;
  border: 4px solid #000;
}

.cube-grass {
  right: 10px;
  top: -10px;
  background: linear-gradient(180deg, var(--grass) 0 32%, var(--dirt) 32% 100%);
}

.cube-diamond {
  left: -6px;
  bottom: 8px;
  background: linear-gradient(180deg, #b7ffff, var(--diamond));
}

.mc-main {
  width: min(calc(100% - 18px), 980px);
  margin: 0 auto;
  padding-bottom: 56px;
}

.mc-card,
.mc-location,
.mc-contact-wrap {
  margin-top: 18px;
}

.mc-card,
.mc-location,
.mc-timeline-item,
.inventory-slot,
.mc-contact-list article {
  background: linear-gradient(180deg, #d9d9d9, #a8a8a8);
  border: 4px solid #000;
  box-shadow: var(--shadow);
}

.mc-card {
  padding: 16px 14px 18px;
}

.mc-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  color: #164614;
  font-size: 0.52rem;
}

.mc-location,
.mc-grid,
.mc-contact-wrap {
  display: grid;
  gap: 18px;
}

.mc-location {
  align-items: start;
}

.mc-timeline {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.mc-timeline-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  padding: 14px;
}

.mc-timeline-item strong {
  font-size: 0.8rem;
  color: #134113;
}

.mc-grid {
  margin-top: 18px;
}

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.inventory-slot {
  margin: 0;
  aspect-ratio: 1 / 1;
  padding: 8px;
}

.mc-contact-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}




.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.wedding-form {
  max-width: 700px;
  margin: 0 auto;
  font-size: 24px;
  text-align: left;
  font-family: "Press Start 2P", sans-serif;

  fieldset {
    border: none;
    margin-bottom: 15px;
  }

  legend {
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--emerald-dark);
  }

  label {
    display: block;
    margin: 5px 0;
    font-size: 20px;
  }

  input[type="text"],
  textarea {
    width: 97%;
    padding: 8px;

    border: 1px solid black;
    border-radius: 5px;
    font-size: 16px;
    font-family: "Press Start 2P", sans-serif;

  }
  .wedding-form input[type="radio"],
  .wedding-form input[type="checkbox"],
  textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
  }

  textarea {
    min-height: 100px;
  }

  button {
    -webkit-appearance: none; /* Убирает дефолтные стили в Safari */
    -moz-appearance: none; /* Для Firefox */
    appearance: none; /* Общий сброс */
    width: 100%;
    padding: 10px;
    color: black;
    background-color: white;
    border: 1px solid black;
    font-family: "Press Start 2P", sans-serif;

    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;

    &:hover {
      background: gray;
    }
  }
}
@supports (-webkit-appearance: none) {
  .wedding-form {
    max-width: 700px;
    margin: 0 auto;
    font-size: 24px;
    font-family: "Press Start 2P", sans-serif;

  }

  fieldset {
    border: none !important;
    padding: 0;
  }

  legend {
    font-weight: bold;
    margin-bottom: 5px;
  }

  label {
    display: block;
    margin: 5px 0;
    font-size: 20px;
  }

  input[type="text"],
  textarea {
    width: 97%;
    padding: 8px;
    border: 1px solid #5c5c5c;
    border-radius: 5px;
    font-size: 16px;
    font-family: "Press Start 2P", sans-serif;

  }

  textarea {
    min-height: 100px;
  }

  button {
    width: 100%;
    padding: 10px;
    background: #5c5c5c;
    color: #f8efea;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-family: "Press Start 2P", sans-serif;


    &:hover {
      background: gray;
    }
  }
}

/* ── SPLASH SCREEN ─────────────────────────────────────────── */
.mc-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.mc-splash.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.mc-splash-bg {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(0,0,0,0.10) 0px, rgba(0,0,0,0.10) 2px,
      transparent 2px, transparent 18px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(0,0,0,0.06) 0px, rgba(0,0,0,0.06) 2px,
      transparent 2px, transparent 18px
    ),
    linear-gradient(180deg, #1a1a2e 0%, #0d0d0d 100%);
}

/* pixel-dirt strip at bottom */
.mc-splash-bg::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 72px;
  background:
    linear-gradient(180deg, #5a3a1a 0 40%, #3b2510 40% 100%);
  border-top: 4px solid #000;
}

.mc-splash-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 24px 20px 100px;
  width: min(100%, 600px);
}

/* ── Logo ── */
.mc-splash-logo {
  text-align: center;
  filter: drop-shadow(4px 4px 0 #000) drop-shadow(-2px -2px 0 rgba(0,0,0,0.6));
}

.mc-logo-top {
  font-family: "Press Start 2P", cursive;
  font-size: clamp(2rem, 10vw, 4.2rem);
  color: #fff;
  text-shadow:
    4px 4px 0 #555,
    -2px 2px 0 #333,
    0 0 40px rgba(255,255,255,0.18);
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.mc-logo-edition {
  font-family: "Press Start 2P", cursive;
  font-size: clamp(0.55rem, 2.5vw, 0.9rem);
  color: var(--emerald);
  text-shadow: 2px 2px 0 var(--emerald-dark);
  margin-top: 6px;
  letter-spacing: 0.08em;
}

/* ── Yellow splash tag ── */
.mc-splash-tag {
  font-family: "Press Start 2P", cursive;
  font-size: clamp(0.5rem, 2vw, 0.75rem);
  color: #ffff55;
  text-shadow: 2px 2px 0 #aa7700;
  transform: rotate(-6deg) scale(1.08);
  animation: splashBounce 0.9s ease-in-out infinite alternate;
}

@keyframes splashBounce {
  from { transform: rotate(-6deg) scale(1.05); }
  to   { transform: rotate(-6deg) scale(1.15); }
}

/* ── Loading bar ── */
.mc-loading-wrap {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mc-loading-label {
  font-family: "Press Start 2P", cursive;
  font-size: 0.55rem;
  color: #ccc;
  text-align: center;
}

.mc-loading-bar {
  height: 28px;
  border: 4px solid #000;
  background: #111;
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}

.mc-loading-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(180deg, #7eff56 0 45%, #42d15d 45% 55%, #24853a 55% 100%);
  border-right: 3px solid #000;
  transition: width 0.18s linear;
  position: relative;
}

.mc-loading-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0px, transparent 14px,
    rgba(0,0,0,0.15) 14px, rgba(0,0,0,0.15) 16px
  );
}

.mc-splash-copyright {
  font-family: "Press Start 2P", cursive;
  font-size: 0.42rem;
  color: #555;
  text-align: center;
}
/* ── END SPLASH ─────────────────────────────────────────────── */

@media (min-width: 760px) {
  .mc-hero-grid,
  .mc-location,
  .mc-grid,
  .mc-contact-wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inventory-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }


}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
@media (max-width: 760px) {


  @supports (-webkit-appearance: none) {
    .wedding-form {
      font-size: 17px;
    }
    .wedding-form {
      label {
        font-size: 17px;
      }
    }
  }
  .wedding-form {
    font-size: 17px;
  }
  .wedding-form {
    label {
      font-size: 17px;
    }
  }
}