@import url("https://fonts.googleapis.com/css2?family=Pixelify+Sans:wght@400..700&display=swap");

html,
body {
  margin: 0;
  width: 100%;
  background: #F7E7C6;
  font-family: "Sans Serif Collection", Arial, sans-serif;
  overflow-x: hidden;
}

p,
span,
a,
li,
label,
input,
textarea,
select,
summary {
  font-family: "Sans Serif Collection", Arial, sans-serif !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
button,
.checkout-button,
.guestbook-button,
.download-card a,
.download-help a,
.footer-links a,
.footer-link-button,
.step-number,
.step-art,
.buy-step h2 span,
.support-bottom a,
.buy-title,
.preview-title,
.support-title,
.status-pill {
  font-family: "Pixelify Sans", monospace !important;
}

.page {
  width: 100%;
  min-height: 100vh;
  background: #F7E7C6;
}

.site-header {
  width: 100%;
  padding: 30px 105px 0;
  background: #F7E7C6;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
}
.top-section {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 35px;
  width: 100%;
  max-width: none;
  margin: 10px 0 0;
  padding-left: 105px;
  padding-right: 105px;
  box-sizing: border-box;
}

.left-column {
  width: 280px;
  min-width: 280px;
  display: grid;
  gap: 24px;
  position: sticky;
  top: 24px;
  align-self: flex-start;
}

.menu-toggle {
  display: none;
  width: 54px;
  height: 46px;
  padding: 9px;
  border: 4px solid #9F8471;
  background: #f5f7f8;
  cursor: pointer;
  box-sizing: border-box;
  place-items: center;
  align-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 4px;
  margin: 0;
  background: #4b3020;
}

.menu-toggle span:last-child {
  margin-bottom: 0;
}

.right-column {
  flex: 1;
  display: grid;
  gap: 34px;
}

.navigation-box {
  width: 100%;
  min-height: 460px;
  padding: 38px 32px;
  border: 4px solid #9F8471;
  background: #f5f7f8;
  box-sizing: border-box;
}

.navigation-box h2 {
  margin: 0 0 40px;
  font-family: "Pixelify Sans", monospace;
  font-size: 28px;
  color: black;
}

.navigation-box a {
  display: block;
  margin-bottom: 24px;
  font-family: "Sans Serif Collection", monospace;
  font-size: 17px;
  color: black;
  text-decoration: none;
}

.navigation-box a:hover {
  color: #C34D4C;
}

.auth-box {
  width: 100%;
  padding: 28px 24px 30px;
  border: 4px solid #9F8471;
  background: #f5f7f8;
  box-sizing: border-box;
}

.auth-box.hidden {
  display: none !important;
}

.auth-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
}

.auth-tab {
  padding: 0 0 4px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: black;
  font-family: "Pixelify Sans", monospace;
  font-size: 25px;
  cursor: pointer;
}

.auth-tab.active {
  border-bottom-color: #c34d4c;
}

.hidden {
  display: none;
}

.auth-form {
  display: grid;
  gap: 18px;
  justify-items: center;
}

.auth-form input {
  width: 100%;
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: #dedede;
  color: #555;
  box-sizing: border-box;
  font-size: 14px;
}

.forgot-password-button {
  justify-self: start;
  margin-top: -12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6d5260;
  font-family: "Pixelify Sans", monospace;
  font-size: 14px;
  cursor: pointer;
}

.forgot-password-button:hover {
  text-decoration: underline;
}

.auth-status {
  min-height: 16px;
  margin: 0;
  color: #6d5260;
  font-family: "Pixelify Sans", monospace;
  font-size: 13px;
}

.confirm-button {
  margin-top: 8px;
  padding: 7px 16px;
  border: 0;
  border-radius: 999px;
  background: #1E98AA;
  color: black;
  font-family: "Pixelify Sans", monospace;
  font-size: 15px;
  cursor: pointer;
}

.confirm-button:hover {
  background: #187f8f;
}

.confirm-button:disabled {
  background: #c9c9c9;
  color: #777;
  cursor: not-allowed;
}

.confirm-button:disabled:hover {
  background: #c9c9c9;
}

.account-icon-box {
  width: 100%;
  padding: 28px 24px;
  border: 4px solid #9F8471;
  background: #f5f7f8;
  box-sizing: border-box;
  text-align: center;
}

.account-icon-button {
  display: grid;
  justify-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  background: transparent;
  color: black;
  font-family: "Pixelify Sans", monospace;
  font-size: 20px;
  cursor: pointer;
}

.account-icon {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  border: 4px solid #9F8471;
  border-radius: 50%;
  background: #1E98AA;
  font-size: 42px;
  line-height: 1;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.55);
}

.modal-overlay.hidden {
  display: none;
}

.account-modal {
  position: relative;
  width: min(90vw, 430px);
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  padding: 34px;
  border: 4px solid #9F8471;
  background: #f8f7f5;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  box-sizing: border-box;
}

.account-modal h2 {
  margin: 0 0 18px;
  font-family: "Pixelify Sans", monospace;
  font-size: 32px;
}

.account-modal p,
.account-modal label {
  font-family: "Sans Serif Collection", Arial, sans-serif;
  font-size: 16px;
}

.account-modal label {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.account-modal input,
.account-modal select {
  min-height: 36px;
  padding: 0 12px;
  border: 2px solid #c7c1b3;
  background: white;
  box-sizing: border-box;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: black;
  font-family: "Pixelify Sans", monospace;
  font-size: 28px;
  cursor: pointer;
}

.account-note {
  margin-bottom: 0;
  color: #6d5260;
}

.reset-code-area {
  margin-top: 18px;
}

.feature-box {
  min-height: 460px;
  padding: 26px;
  border: 4px solid #9F8471;
  background: #F8F7F5;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 26px;
  position: relative;
}

.welcome-art {
  min-height: 390px;
  border: 3px dashed #c7c1b3;
  background:
    linear-gradient(135deg, rgba(154, 155, 130, 0.18), transparent 42%),
    #ece9e5;
  display: grid;
  place-items: center;
  color: #8c8779;
  font-family: "Pixelify Sans", monospace;
  font-size: 22px;
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.welcome-slime {
  width: 128px;
  height: 128px;
  background-image: url("Mini_Slime_Idle.png");
  background-repeat: no-repeat;
  background-size: 1152px 128px;
  image-rendering: pixelated;
  animation: slime-idle 0.9s steps(9) infinite;
}

@keyframes slime-idle {
  from {
    background-position: 0 0;
  }
  to {
    background-position: -1152px 0;
  }
}

.welcome-content {
  min-width: 0;
  position: relative;
  padding-bottom: 62px;
}

.welcome-title {
  margin: 0 0 20px;
  font-family: "Pixelify Sans", monospace;
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: 1px;
  color: black;
  text-align: center;
}

.star {
  color: #e0c82f;
  text-shadow: 2px 2px 0 #b69d22;
}

.welcome-content p {
  max-width: 560px;
  margin: 0;
  font-family: "Sans Serif Collection", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.45;
}

.welcome-content p + p {
  margin-top: 18px;
}

.guestbook-button {
  position: absolute;
  right: 0;
  bottom: 0;
  max-width: 138px;
  padding: 12px 14px;
  border: 2px solid #b991a2;
  border-radius: 12px;
  background: #C34D4C;
  color: white;
  font-family: "Pixelify Sans", monospace;
  font-size: 15px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

.guestbook-button:hover {
  background: #a93e3d;
}

.wood-section-label {
  width: min(520px, 80%);
  margin: 0 auto -12px;
  padding: 13px 28px;
  border: 4px solid #4b3020;
  background:
    linear-gradient(180deg, #8a623f, #5c3d2a);
  box-shadow:
    inset 0 0 0 3px #a6784c,
    0 4px 0 #3d2a1e;
  color: #fff7dc;
  font-family: "Pixelify Sans", monospace;
  font-size: 32px;
  letter-spacing: 2px;
  text-align: center;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

.wood-section-label::before,
.wood-section-label::after {
  content: "+";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #f3d752;
  font-size: 24px;
}

.wood-section-label::before {
  left: 18px;
}

.wood-section-label::after {
  right: 18px;
}

.about-game-section {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 36px;
  margin: 0;
  padding: 38px 42px;
  border: 5px solid #3d2a1e;
  background:
    linear-gradient(180deg, rgba(91, 58, 34, 0.88), rgba(70, 45, 29, 0.96)),
    #4b3020;
  box-shadow: inset 0 0 0 4px #765137;
  box-sizing: border-box;
  color: #fff3d8;
}

.about-copy h2 {
  margin: 0 0 22px;
  color: #f3d752;
  font-family: "Pixelify Sans", monospace;
  font-size: 34px;
  letter-spacing: 1px;
}

.about-copy p {
  max-width: 460px;
  margin: 0;
  font-family: "Pixelify Sans", monospace;
  font-size: 22px;
  line-height: 1.35;
}

.demo-button {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 22px;
  border: 3px solid #145c66;
  border-radius: 4px;
  background: #1E98AA;
  color: white;
  font-family: "Pixelify Sans", monospace;
  font-size: 18px;
  letter-spacing: 1px;
  text-decoration: none;
  cursor: pointer;
}

.demo-button:hover {
  background: #187f8f;
}

.about-cat {
  width: 72px;
  height: 54px;
  margin-top: 30px;
  display: grid;
  place-items: center;
  border: 3px solid #e8c28b;
  background: #f6d7a5;
  color: #6d3e24;
  font-family: "Pixelify Sans", monospace;
  font-size: 18px;
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.about-card {
  min-height: 245px;
  padding: 0;
  border: 4px solid #c99158;
  background: #fff1cb;
  box-shadow: inset 0 0 0 3px #f8d79e;
  box-sizing: border-box;
  color: #3b3027;
  text-align: center;
  overflow: hidden;
}

.about-icon {
  display: block;
  width: 100%;
  margin: 0 0 0;
  border: none;
  overflow: hidden;
}

.about-icon img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.about-icon.about-icon-placeholder {
  display: grid;
  height: 160px;
  place-items: center;
  border-bottom: 3px dashed #c99158;
  color: #6d3e24;
  font-family: "Pixelify Sans", monospace;
  font-size: 19px;
  background: #f2e4c0;
}


.about-card h3 {
  margin: 14px 16px 10px;
  font-family: "Pixelify Sans", monospace;
  font-size: 22px;
}

.about-card p {
  margin: 0 16px 18px;
  font-family: "Pixelify Sans", monospace;
  font-size: 19px;
  line-height: 1.2;
}

.video-section {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  margin: 24px 0 0;
  padding: 38px 42px;
  border: 5px solid #3d2a1e;
  background:
    linear-gradient(180deg, rgba(91, 58, 34, 0.88), rgba(70, 45, 29, 0.96)),
    #4b3020;
  box-shadow: inset 0 0 0 4px #765137;
  box-sizing: border-box;
  color: #fff3d8;
}

.video-player-wrapper video {
  width: 100%;
  display: block;
  border: 4px solid #c99158;
  box-shadow: inset 0 0 0 3px #f8d79e;
  background: #000;
}

.video-snippets h2 {
  margin: 0 0 18px;
  color: #f3d752;
  font-family: "Pixelify Sans", monospace;
  font-size: 28px;
  letter-spacing: 1px;
}

.video-snippets h3 {
  margin: 0 0 14px;
  color: #f3d752;
  font-family: "Pixelify Sans", monospace;
  font-size: 19px;
  letter-spacing: 1px;
  font-weight: normal;
}

.snippet-list {
  display: grid;
  gap: 10px;
}

.snippet-button {
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border: 3px solid #c99158;
  border-radius: 4px;
  background: #fff1cb;
  color: #3b3027;
  font-family: "Pixelify Sans", monospace;
  font-size: 16px;
  cursor: pointer;
}

.snippet-button:hover {
  background: #f8d79e;
}

.snippet-button.active-snippet {
  background: #1E98AA;
  border-color: #145c66;
  color: white;
}

.video-snippets .tiny-note {
  color: #e7d3b0;
  margin-top: 14px;
}

.how-play-section {
  padding: 30px 34px 36px;
  border: 5px solid #9F8471;
  background: #fff0cc;
  box-shadow: inset 0 0 0 4px #f2d49b;
  box-sizing: border-box;
}

.how-play-section h2,
.preview-title {
  margin: 0 0 24px;
  color: #1E98AA;
  font-family: "Pixelify Sans", monospace;
  font-size: 32px;
  text-align: center;
  letter-spacing: 1px;
}

.play-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}

.play-step {
  position: relative;
  min-height: 172px;
  padding: 18px 12px 12px;
  border: 4px solid #c99158;
  background: #fff7dc;
  box-sizing: border-box;
  text-align: center;
}

.step-number {
  position: absolute;
  top: 8px;
  left: 8px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 4px;
  background: #1E98AA;
  color: white;
  font-family: "Pixelify Sans", monospace;
  font-size: 18px;
}

.step-art {
  display: grid;
  height: 70px;
  margin: 14px auto 12px;
  place-items: center;
  border: 3px dashed #c99158;
  color: #6d3e24;
  font-family: "Pixelify Sans", monospace;
  font-size: 18px;
}

.play-step p {
  margin: 0;
  font-family: "Pixelify Sans", monospace;
  font-size: 17px;
  line-height: 1.15;
}

.preview-title {
  margin: 0 -34px 24px;
  padding: 12px;
  background: #1E98AA;
  color: #fff0cc;
}

.buy-title {
  width: 420px;
  margin: 0;
  padding: 14px 58px 14px 28px;
  background: #C34D4C;
  color: #fff0cc;
  font-family: "Pixelify Sans", monospace;
  font-size: 32px;
  letter-spacing: 2px;
  text-align: left;
  box-sizing: border-box;
  position: relative;
  box-shadow: -12px 8px 0 rgba(91, 45, 45, 0.28);
}

.buy-title::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 0;
  width: 22px;
  height: 100%;
  background: #9f3838;
  border-radius: 10px 0 0 10px;
}

.buy-title::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 54px;
  height: 100%;
  background: #fff0cc;
  clip-path: polygon(100% 0, 0 50%, 100% 100%);
}

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

.preview-card {
  border: 4px solid #c99158;
  background: #fff7dc;
  box-sizing: border-box;
  text-align: center;
}

.preview-art {
  display: grid;
  min-height: 150px;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(30, 152, 170, 0.18), transparent 45%),
    #d9eef0;
  color: #4d6b70;
  font-family: "Pixelify Sans", monospace;
  font-size: 18px;
}

.preview-card h3 {
  margin: 0;
  padding: 10px;
  border-top: 4px solid #c99158;
  color: #3b3027;
  font-family: "Pixelify Sans", monospace;
  font-size: 18px;
}

.buy-section {
  display: grid;
  grid-template-columns: 1.45fr 0.75fr;
  gap: 20px;
  padding: 24px;
  border: 5px solid #8a623f;
  background: #fff0cc;
  box-shadow: inset 0 0 0 4px #f2d49b;
  box-sizing: border-box;
}

.compact-buy-section {
  grid-template-columns: 1fr;
}

.download-page {
  min-height: 100vh;
  padding: 34px 105px;
  background: #fff0cc;
  box-sizing: border-box;
}

.download-header {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.download-logo {
  width: min(100%, 900px);
  height: auto;
}

.download-panel {
  padding: 30px;
  border: 5px solid #8a623f;
  background: #fff7dc;
  box-shadow: inset 0 0 0 4px #f2d49b;
  box-sizing: border-box;
  text-align: center;
}

.download-panel h1,
.download-help h2 {
  margin: 0 0 16px;
  color: #1E98AA;
  font-family: "Pixelify Sans", monospace;
  font-size: 38px;
}

.download-panel p,
.download-card p,
.download-help p {
  margin: 0 0 10px;
  font-family: "Pixelify Sans", monospace;
  font-size: 20px;
  line-height: 1.3;
}

.download-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 28px 0;
}

.download-code-form {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 22px auto 8px;
  max-width: 620px;
}

.download-code-form input {
  flex: 1;
  min-height: 42px;
  padding: 0 14px;
  border: 3px solid #b9824e;
  background: #fffdf0;
  box-sizing: border-box;
  font-family: "Pixelify Sans", monospace;
  font-size: 18px;
}

.download-code-form button {
  padding: 0 18px;
  border: 0;
  background: #1E98AA;
  color: white;
  font-family: "Pixelify Sans", monospace;
  font-size: 18px;
  cursor: pointer;
}

.download-status {
  color: #6d5260;
}

.download-card {
  padding: 24px;
  border: 4px solid #b9824e;
  background: #fffdf0;
  box-shadow: inset 0 0 0 3px #f5d59d;
  box-sizing: border-box;
}

.download-icon {
  display: grid;
  width: 90px;
  height: 64px;
  margin: 0 auto 14px;
  place-items: center;
  border: 3px solid #b9824e;
  background: #d9eef0;
  color: #1E98AA;
  font-family: "Pixelify Sans", monospace;
  font-size: 24px;
}

.download-icon img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.download-card h2 {
  margin: 0 0 12px;
  font-family: "Pixelify Sans", monospace;
  font-size: 28px;
}

.download-card a,
.download-help a {
  display: inline-block;
  margin-top: 12px;
  padding: 11px 20px;
  border-radius: 4px;
  background: #1E98AA;
  color: white;
  font-family: "Pixelify Sans", monospace;
  font-size: 19px;
  text-decoration: none;
}

.download-card a.locked-download {
  background: #c9c9c9;
  color: #777;
  cursor: not-allowed;
  pointer-events: none;
}

.download-help {
  padding: 20px;
  border: 4px solid #b9824e;
  background: #fffdf0;
}

.buy-main {
  display: grid;
  gap: 14px;
}

.buy-step,
.price-board,
.get-board,
.info-board {
  border: 4px solid #b9824e;
  background: #fff7dc;
  box-shadow: inset 0 0 0 3px #f5d59d;
  box-sizing: border-box;
}

.buy-step {
  padding: 16px;
}

.buy-step h2 {
  margin: 0 0 8px;
  color: #5c3d2a;
  font-family: "Pixelify Sans", monospace;
  font-size: 23px;
}

.buy-step h2 span {
  display: inline-block;
  margin-right: 8px;
  padding: 5px 9px;
  border-radius: 4px;
  background: #C34D4C;
  color: white;
  font-size: 17px;
}

.buy-step p,
.price-board p,
.get-board p,
.info-board p,
.version-card p,
.tiny-note {
  margin: 0;
  font-family: "Pixelify Sans", monospace;
  font-size: 17px;
  line-height: 1.25;
}

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

.version-card {
  padding: 14px;
  border: 3px solid #d0a06a;
  background: #fffdf0;
  text-align: center;
}

.version-icon {
  display: grid;
  width: 76px;
  height: 56px;
  margin: 0 auto 10px;
  place-items: center;
  border: 3px solid #b9824e;
  background: #d9eef0;
  color: #1E98AA;
  font-family: "Pixelify Sans", monospace;
  font-size: 20px;
}

.version-card h3 {
  margin: 0 0 10px;
  font-family: "Pixelify Sans", monospace;
  font-size: 19px;
}

.version-card button {
  margin-bottom: 10px;
  padding: 8px 18px;
  border: 0;
  border-radius: 4px;
  background: #1E98AA;
  color: white;
  font-family: "Pixelify Sans", monospace;
  font-size: 17px;
  cursor: pointer;
}

.payment-table {
  display: grid;
  gap: 8px;
  margin: 14px 0 8px;
  padding: 12px;
  border: 3px solid #d0a06a;
  background: #fffdf0;
}

.payment-table p {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.tiny-note {
  color: #6d5260;
  font-size: 14px;
}

.price-display {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.price-original.has-discount {
  text-decoration: line-through;
  color: #a0788a;
  font-size: 15px;
}

.price-discounted {
  color: #C34D4C;
  font-weight: bold;
}

.discount-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.discount-form input {
  flex: 1;
  min-height: 38px;
  padding: 0 12px;
  border: 3px solid #d0a06a;
  background: #fffdf0;
  box-sizing: border-box;
  font-size: 16px;
}

.discount-form button {
  padding: 9px 16px;
  border: 0;
  border-radius: 4px;
  background: #1E98AA;
  color: white;
  font-family: "Pixelify Sans", monospace;
  font-size: 16px;
  cursor: pointer;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 14px;
}

.contact-grid div {
  padding: 12px;
  border: 3px solid #d0a06a;
  background: #fffdf0;
  font-family: "Pixelify Sans", monospace;
}

.contact-grid strong {
  color: #1E98AA;
}

.payment-proof-form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.payment-proof-form input,
.payment-proof-form textarea {
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border: 3px solid #d0a06a;
  background: #fffdf0;
  box-sizing: border-box;
  font-size: 17px;
}

.payment-proof-form textarea {
  min-height: 78px;
  padding-top: 10px;
  resize: vertical;
}

.payment-proof-form button {
  width: fit-content;
  padding: 9px 18px;
  border: 0;
  border-radius: 4px;
  background: #1E98AA;
  color: white;
  font-family: "Pixelify Sans", monospace;
  font-size: 18px;
  cursor: pointer;
}

.checkout-button {
  display: inline-block;
  width: fit-content;
  margin-top: 12px;
  padding: 12px 18px;
  border-radius: 4px;
  background: #C34D4C;
  color: white;
  font-family: "Pixelify Sans", monospace;
  font-size: 18px;
  text-decoration: none;
}

.disabled-checkout {
  cursor: not-allowed;
  opacity: 0.75;
}

.buy-side {
  display: grid;
  gap: 14px;
}

.price-board,
.get-board,
.info-board {
  padding: 16px;
}

.price-board h3,
.get-board h3,
.info-board h3 {
  margin: -8px auto 12px;
  width: fit-content;
  padding: 6px 18px;
  border-radius: 4px;
  background: #8a623f;
  color: #fff7dc;
  font-family: "Pixelify Sans", monospace;
  font-size: 20px;
}

.price-board p {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 2px dotted #d0a06a;
}

.get-board p,
.info-board p {
  margin-bottom: 10px;
}

.support-section {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 5px solid #8a623f;
  background: #fff0cc;
  box-shadow: inset 0 0 0 4px #f2d49b;
  box-sizing: border-box;
}

.support-title {
  width: 360px;
  margin: 0 0 0 auto;
  padding: 14px 28px 14px 58px;
  background: #E5BC4C;
  color: #4b3020;
  font-family: "Pixelify Sans", monospace;
  font-size: 32px;
  letter-spacing: 2px;
  text-align: right;
  box-sizing: border-box;
  position: relative;
  box-shadow: -12px 8px 0 rgba(91, 69, 25, 0.25);
}

.support-title::before {
  content: "";
  position: absolute;
  right: -22px;
  top: 0;
  width: 22px;
  height: 100%;
  background: #b99031;
  border-radius: 0 10px 10px 0;
}

.support-title::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 54px;
  height: 100%;
  background: #fff0cc;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.contact-panel,
.support-bottom {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.contact-card,
.faq-panel,
.support-bottom > div {
  border: 4px solid #b9824e;
  background: #fff7dc;
  box-shadow: inset 0 0 0 3px #f5d59d;
  box-sizing: border-box;
}

.contact-card {
  padding: 18px;
}

.contact-icon {
  display: grid;
  width: 86px;
  height: 70px;
  margin-bottom: 10px;
  place-items: center;
}

.contact-icon img {
  display: block;
  width: 86px;
  height: 70px;
  object-fit: contain;
}

.contact-icon img[src="clock.png"] {
  width: 70px;
  height: 70px;
}

.contact-icon img[src="chat.png"] {
  transform: scale(1.65);
}

.contact-card h3,
.support-bottom h3 {
  margin: 0 0 8px;
  color: #4b3020;
  font-family: "Pixelify Sans", monospace;
  font-size: 22px;
}

.contact-card p,
.contact-card span,
.support-bottom p,
.support-bottom a {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
}

.contact-card p {
  color: #1E98AA;
}

.contact-card span {
  display: block;
  margin-top: 8px;
}

.faq-panel {
  padding: 20px;
}

.faq-panel h2 {
  margin: 0 0 16px;
  color: #4b3020;
  font-family: "Pixelify Sans", monospace;
  font-size: 28px;
  text-align: center;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  align-items: start;
}

.faq-grid details {
  border: 2px solid #d0a06a;
  background: #fffdf0;
  font-size: 17px;
}

.faq-grid summary {
  padding: 9px 12px;
  cursor: pointer;
}

.faq-grid p {
  margin: 0;
  padding: 0 12px 12px;
  line-height: 1.25;
}

.support-bottom {
  grid-template-columns: 1fr 1fr;
}

.support-bottom > div {
  padding: 18px;
}

.support-bottom a {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 18px;
  border-radius: 4px;
  background: #C34D4C;
  color: white;
  text-decoration: none;
}

.site-footer {
  border: 5px solid #4b3020;
  background: #3a2519;
  box-shadow: inset 0 0 0 4px #7a5538;
  box-sizing: border-box;
}

.footer-scene {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr 0.7fr;
  align-items: center;
  gap: 22px;
  min-height: 230px;
  padding: 28px 36px;
  border: 5px solid #f2d49b;
  background:
    radial-gradient(circle at 35% 22%, rgba(255, 235, 150, 0.18), transparent 22%),
    linear-gradient(180deg, #18304d, #10283a 52%, #244f38);
  color: #fff7dc;
  box-sizing: border-box;
}

.footer-character,
.footer-crystal {
  display: grid;
  min-height: 145px;
  place-items: center;
  color: #f2d49b;
  font-family: "Pixelify Sans", monospace;
  font-size: 18px;
  text-align: center;
}

/* Purple crystal — 24 frames, 32×32 sheet, displayed at 192×192 */
.crystal-purple {
  width: 192px;
  height: 192px;
  background-image: url("crystal_dark_32x32_24f_20d_no_border.png");
  background-repeat: no-repeat;
  background-size: 4608px 192px;
  image-rendering: pixelated;
  animation: crystal-purple-anim 1.2s steps(24) infinite;
}

@keyframes crystal-purple-anim {
  from { background-position: 0 0; }
  to   { background-position: -4608px 0; }
}

/* Blue crystal — 24 frames, 32×32 sheet, displayed at 192×192 */
.crystal-blue {
  width: 192px;
  height: 192px;
  background-image: url("crystal_dark_32x32_24f_20d_normal.png");
  background-repeat: no-repeat;
  background-size: 4608px 192px;
  image-rendering: pixelated;
  animation: crystal-blue-anim 1.2s steps(24) infinite;
}

@keyframes crystal-blue-anim {
  from { background-position: 0 0; }
  to   { background-position: -4608px 0; }
}



.footer-message {
  text-align: center;
}

.footer-message h2 {
  margin: 0 0 18px;
  color: #f3d752;
  font-family: "Pixelify Sans", monospace;
  font-size: 32px;
}

.footer-message p {
  margin: 0 0 14px;
  font-family: "Pixelify Sans", monospace;
  font-size: 22px;
  line-height: 1.3;
}

.footer-bar {
  display: grid;
  grid-template-columns: 170px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 22px 34px;
  background: #4b3020;
  color: #fff7dc;
}

.footer-logo {
  display: block;
  width: 150px;
  height: auto;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-family: "Pixelify Sans", monospace;
  font-size: 18px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  color: #fff7dc;
  text-decoration: none;
  line-height: 1;
}

.footer-link-button {
  display: inline-flex;
  align-items: center;
  border: 0;
  background: transparent;
  color: #fff7dc;
  font-family: "Pixelify Sans", monospace;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.footer-links a:hover,
.footer-link-button:hover {
  color: #f3d752;
}

.policy-modal p {
  line-height: 1.45;
  margin-bottom: 16px;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-links a {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 5px;
  text-decoration: none;
  overflow: hidden;
  line-height: 0;
}

.social-links a:nth-child(1) {
  background: #FFFFFF;
}

.social-links a:nth-child(2) {
  background: #FFFFFF;
}

.social-links a:nth-child(3) {
  background: #FFFFFF;
}

.social-links img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
  margin: auto;
}

.social-links a:nth-child(1) img,
.social-links a:nth-child(3) img {
  width: 21px;
  height: 21px;
  margin: auto;
}

@media (max-width: 1180px) {
  .feature-box {
    grid-template-columns: 190px 1fr;
  }

  .about-game-section,
  .video-section {
    grid-template-columns: 1fr;
  }

  .play-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .buy-section {
    grid-template-columns: 1fr;
  }

  .contact-panel,
  .support-bottom {
    grid-template-columns: 1fr;
  }

  .footer-scene,
  .footer-bar {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links,
  .social-links {
    justify-content: center;
  }
}

@media (max-width: 860px) {
  .site-header {
    padding-left: 24px;
    padding-right: 24px;
  }

  .top-section {
    flex-direction: column;
    padding-left: 24px;
    padding-right: 24px;
  }

  .menu-toggle {
    display: grid;
  }

  .left-column,
  .right-column,
  .navigation-box,
  .feature-box {
    width: 100%;
    min-width: 0;
  }

  .left-column {
    position: static;
  }

  .feature-box {
    grid-template-columns: 1fr;
  }

  .navigation-box,
  .auth-box {
    display: none;
    min-height: auto;
  }

  .navigation-box.open,
  .auth-box.open {
    display: block;
  }

  .welcome-art {
    min-height: 220px;
  }

  .about-game-section,
  .video-section {
    margin-left: 24px;
    margin-right: 24px;
  }

  .about-cards {
    grid-template-columns: 1fr;
  }

  .play-steps,
  .preview-grid,
  .version-grid,
  .contact-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }
}