:root {
  --bg-color: #151d29;
  --subbg-color: #151d29;
  --border-color: #293548;
  --footer-bg: #151d29;
  --footer-border: #0e131b;
  --gold: #b99d50;
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Roboto Condensed', 'Arial Narrow', Arial, sans-serif;
  line-height: 1.65;
  color: #ededed;
  background: var(--bg-color) url('img/bg-play.png') repeat fixed;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible {
  outline: 3px solid #d3b469;
  outline-offset: 5px;
}

.headerbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 82px;
  padding: 10px 24px;
  border-bottom: 2px solid var(--border-color);
  background: var(--subbg-color);
}

.header-logo a {
  display: block;
}

.home-button {
  width: 135px;
  height: auto;
}

/* A bounded banner column keeps the original square artwork proportional. */
.page-layout {
  display: grid;
  grid-template-columns: minmax(300px, 400px) minmax(0, 1fr);
  align-items: start;
  gap: 32px;
  width: calc(100% - 48px);
  max-width: 1200px;
  margin: 28px auto 40px;
}

.showcase,
.content {
  min-width: 0;
}

.showcase {
  display: grid;
  gap: 14px;
}

.banner-link {
  display: block;
  width: 100%;
}

.banner-image {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.marquee-text {
  position: relative;
  height: 38px;
  overflow: hidden;
  background: var(--subbg-color);
  border-block: 1px solid var(--border-color);
  color: var(--gold);
  font-size: 16px;
  line-height: 36px;
}

.marquee-text::before,
.marquee-text::after {
  content: '';
  position: absolute;
  top: 0;
  z-index: 2;
  width: 5px;
  height: 100%;
  background: var(--subbg-color);
}

.marquee-text::before { left: 0; }
.marquee-text::after { right: 0; }

.marquee-text div {
  width: 200%;
  white-space: nowrap;
  animation: marquee 15s linear infinite;
}

.marquee-text span {
  display: block;
  width: 50%;
  text-align: center;
}

.marquee-text:hover div {
  animation-play-state: paused;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.header-button {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.animated-button1 {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 56px;
  padding: 10px 16px;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(to bottom, #d3d3d3, #fff);
  box-shadow: inset 0 2px 0 rgb(255 255 255 / 50%), 0 2px 4px rgb(0 0 0 / 35%);
  color: #000;
  font-size: 24px;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.animated-button1.signup {
  background: linear-gradient(to bottom, #cbb176, #fff);
}

.animated-button1::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #5e564c;
  opacity: 0;
  transition: opacity 200ms ease;
}

.animated-button1:hover::before { opacity: .2; }
.animated-button1:active { transform: translateY(1px); }

.animated-button1 .button-label {
  position: relative;
  z-index: 1;
  font-weight: 700;
}

.animated-button1 > span {
  position: absolute;
  pointer-events: none;
}

.animated-button1 > span:nth-child(1) {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to left, transparent, rgb(227 227 227 / 65%));
  animation: animateTop 2s linear infinite;
}

.animated-button1 > span:nth-child(2) {
  top: 0;
  right: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to top, transparent, #fff);
  animation: animateRight 2s linear -1s infinite;
}

.animated-button1 > span:nth-child(3) {
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, transparent, #fff);
  animation: animateBottom 2s linear infinite;
}

.animated-button1 > span:nth-child(4) {
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, #fff);
  animation: animateLeft 2s linear -1s infinite;
}

@keyframes animateTop {
  from { transform: translateX(100%); }
  to { transform: translateX(-100%); }
}

@keyframes animateRight {
  from { transform: translateY(100%); }
  to { transform: translateY(-100%); }
}

@keyframes animateBottom {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

@keyframes animateLeft {
  from { transform: translateY(-100%); }
  to { transform: translateY(100%); }
}

.content {
  padding: 28px 32px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--subbg-color);
  box-shadow: 3px 3px 3px #000, -3px -3px 3px rgb(255 255 255 / 4%);
  overflow-wrap: break-word;
}

.judul_game {
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.nama_judul_game {
  font-size: 20px;
  font-weight: 700;
}

.content h1,
.content h2,
.content h3 {
  color: #ededed;
  line-height: 1.3;
}

.content h1 {
  margin: 0 0 24px;
  font-size: 32px;
  text-shadow: 2px 2px 4px #000;
}

.content h2 {
  margin: 28px 0 12px;
  font-size: 24px;
}

.content h3 {
  margin: 26px 0 10px;
  font-size: 21px;
}

.content p {
  margin: 0 0 18px;
  color: #c2c2c2;
  font-size: 16px;
  line-height: 1.75;
}

.content p:last-child { margin-bottom: 0; }
.content a { text-underline-offset: 3px; }

.site-footer {
  width: calc(100% - 48px);
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  border-top: 10px solid var(--footer-border);
  border-radius: 8px 8px 0 0;
  background: var(--footer-bg);
  text-align: center;
}

.copyright {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgb(255 255 255 / 10%);
  color: #b5bac3;
  font-size: 14px;
}

/* Keep the banner and actions in view only when the viewport is tall enough. */
@media (min-width: 1024px) and (min-height: 740px) {
  .showcase {
    position: sticky;
    top: 110px;
  }
}

@media (max-width: 1023px) {
  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    width: calc(100% - 32px);
    max-width: 760px;
    margin-top: 22px;
  }

  .showcase {
    width: 100%;
    max-width: 520px;
    margin-inline: auto;
  }

  .site-footer {
    width: calc(100% - 32px);
    max-width: 760px;
  }
}

@media (max-width: 599px) {
  .headerbar {
    min-height: 72px;
    padding: 10px 16px;
  }

  .home-button { width: 112px; }

  .page-layout {
    width: calc(100% - 24px);
    gap: 24px;
    margin: 16px auto 28px;
  }

  .showcase { gap: 12px; }
  .header-button { gap: 10px; }

  .animated-button1 {
    min-height: 54px;
    padding-inline: 12px;
    font-size: 23px;
  }

  .content { padding: 20px; }
  .content h1 { font-size: 26px; }
  .content h2 { font-size: 22px; }
  .content h3 { font-size: 20px; }

  .site-footer {
    width: calc(100% - 24px);
    padding: 14px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-text div,
  .animated-button1 > span { animation: none; }

  .animated-button1,
  .animated-button1::before { transition: none; }
}
