@import url("https://fonts.googleapis.com/css2?family=Pixelify+Sans:wght@400..700&family=Source+Code+Pro:ital,wght@0,200..900;1,200..900&display=swap");



:root {
  --root-font-family: "Pixelify Sans", sans-serif;

  --bg-color: #ffffff;
  --btn-bg-color: #ffffff;
  --btn-text-color: #ffe7ba;
  --cta-btn-bg-color: #e6413a;
  --cta-btn-text-color: #fffddd;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  user-select: none;
}

a {
  text-decoration: none;
}

body {
  font-family: var(--root-font-family);
  background-color: var(--bg-color);

  /* لایه ۱: گرادینت فید از بالا -> شفاف
     لایه ۲: تصویر پس‌زمینه */
  background-image:
    linear-gradient(
      to top,
      rgb(17, 3, 49) 0%,
      rgba(23, 1, 31, 0.262) 50%
    ),
    url(/assets/wall.jpg);

  /* اندازه‌ی هر لایه به ترتیب بالا */
  background-size: 100% 100%, 100%;

  /* تکرار و موقعیت هر لایه */
  background-repeat: no-repeat, no-repeat;
  background-position: 0 0, center top;

  /* ثابت بودن نسبت به ویوپورت (اختیاری) */
  background-attachment: fixed, fixed;

  backdrop-filter: blur(1px);
}


.container {
  min-height: 100vh;
  width: min(350px, 100%);
  padding: 0 24px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
}

.container > * {
  margin-bottom: 24px;
}

.btns-wrapper {
  margin-top: 24px;
  width: 100%;
}

.btns-wrapper > * {
  margin-bottom: 16px;
}

.pixel {
  font-size: 24px;
  font-weight: bold;
  color: var(--btn-text-color);
  background: var(--btn-bg-color);
  height: auto;
  margin: 10px;
  position: relative;
  display: block;
  text-align: center;

  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;

  padding: 8px 16px;
  z-index: 2;
}

.pixel:active {
  top: 2px;
}

.pixel::before {
  content: "";
  display: block;
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: -10px;
  right: -10px;
  background: var(--btn-bg-color);
  z-index: -1;
}

.pixel::after {
  content: "";
  display: block;
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: -6px;
  right: -6px;
  background: var(--btn-bg-color);
  z-index: -1;
}

.pixel > .icon {
  width: 24px;
  fill: var(--cta-btn-text-color);
  position: absolute;
  top: 50%;
  left: 8px;
  transform: translate(0, -50%);
}

.cta {
  --btn-bg-color: var(--cta-btn-bg-color);
  --btn-text-color: var(--cta-btn-text-color);
}

.anime-girl {
  width: 100%;
  height: 280px;
  margin: 0;
  margin-top: 24px;
  margin-left: 0px;
  mix-blend-mode: screen;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  image-rendering: pixelated;
}

footer {
  margin-top: auto;
  width: 100%;
  text-align: center;
  font-size: 16px;
  color: var(--btn-bg-color);
}

footer > a {
  color: var(--cta-btn-bg-color);
}

.title-box {
  margin-top: 24px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.title-box .name {
  font-size: 32px;
  font-weight: 600;
  color: var(--btn-bg-color);
}

.title-box .desc {
  font-size: 24px;
  text-align: center;
  color: var(--btn-bg-color);
}

.cat {
  width: 100px;
  scale: 1.5;
  height: 100px;
  position: absolute;
  bottom: 9px;
  right: 0;
  background-image: url(/assets/sleepcat.gif);
  background-size: cover;
  image-rendering: pixelated;
}


/* نرم و سریع بیاد بالا */
@keyframes softRise {
  from { opacity: 0; transform: translate3d(0, 16px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

@media (prefers-reduced-motion: no-preference) {
  .container {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
    animation: softRise 0.45s cubic-bezier(.2,.8,.2,1) 60ms both;
    will-change: transform, opacity;
  }
}
/* نرم و سریع بیاد بالا */
@keyframes softRise {
  from { opacity: 0; transform: translate3d(0, 16px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

@media (prefers-reduced-motion: no-preference) {
  .container {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
    animation: softRise 0.45s cubic-bezier(.2,.8,.2,1) 60ms both;
    will-change: transform, opacity;
  }
}
