/* ==========================================================================
   Six Game — reset.css
   Modern, opinionated baseline reset for six-apk.pk
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd,
ul, ol {
  margin: 0;
  padding: 0;
}

ul[role="list"],
ol[role="list"],
.list-reset {
  list-style: none;
}

html,
body {
  /* Hard guarantee: the document never scrolls sideways. */
  max-width: 100%;
  overflow-x: hidden;
}

/* `clip` does the same job as `hidden` without turning the element into a
   scroll container — which is what keeps position: sticky working inside it. */
@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

body {
  min-height: 100vh;
  min-height: 100svh;
  text-rendering: optimizeSpeed;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.15;
  text-wrap: balance;
  font-weight: 600;
}

p, li {
  text-wrap: pretty;
}

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

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  width: 100%;
}

address {
  font-style: normal;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--color-royal-gold-lt, #E8C766);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: rgba(201, 162, 39, 0.35);
  color: #F5F0E6;
}

/* Custom scrollbar — vertical only, matches the Obsidian Royale palette */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #0A0908;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #8C6F16, #C9A227);
  border-radius: 9999px;
  border: 2px solid #0A0908;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #C9A227, #E8C766);
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
