/*
 * reset.css
 * Baseline reset for the Magic Game template.
 *
 * Goals:
 * - Predictable sizing.
 * - No horizontal scroll.
 * - Clean mobile-first defaults.
 * - Safer media behavior.
 */

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

html {
  width: 100%;
  min-width: 320px;
  min-height: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: auto;
}

body {
  width: 100%;
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button,
input,
textarea,
select {
  margin: 0;
}

button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:disabled,
[aria-disabled="true"] {
  cursor: not-allowed;
}

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

img,
svg {
  height: auto;
}

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

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

ul,
ol {
  padding: 0;
}

input,
textarea {
  max-width: 100%;
  color: inherit;
}

input,
textarea,
button,
select,
a {
  touch-action: manipulation;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid rgba(255, 218, 155, 0.9);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

[role="button"],
button {
  user-select: none;
}

::selection {
  background: rgba(255, 199, 122, 0.32);
  color: #fff8ed;
}
