/* Killteadle Tier List stylesheet.
 *
 * Hand-written subset of the utility classes used by index.html and
 * hint.js. Class names follow the Tailwind convention so the JS
 * (which composes class strings inline) can stay verbatim, but no
 * Tailwind tooling is involved at build or runtime.
 */

/* -- Reset -------------------------------------------------------- */

*, *::before, *::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb;
}

html {
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  line-height: 1.5;
}

body {
  margin: 0;
  line-height: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
  margin: 0;
}

p, ol, ul {
  margin: 0;
}

ol, ul {
  list-style: none;
  padding: 0;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
}

button {
  background-color: transparent;
  background-image: none;
  cursor: pointer;
  text-transform: none;
}

button:disabled {
  cursor: default;
}

input::placeholder {
  color: #9ca3af;
  opacity: 1;
}

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

[hidden] {
  display: none !important;
}

/* Marker classes used only as JS hooks. */
.fb-cell {}

.chip {
  user-select: none;
}

/* -- Layout ------------------------------------------------------- */

.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }

.flex-1 { flex: 1 1 0%; }
.flex-wrap { flex-wrap: wrap; }
.shrink-0 { flex-shrink: 0; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

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

.overflow-y-auto { overflow-y: auto; }
.cursor-pointer { cursor: pointer; }

/* -- Sizing ------------------------------------------------------- */

.w-full { width: 100%; }
.w-3 { width: 0.75rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.h-3 { height: 0.75rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }

.min-w-0 { min-width: 0; }
.min-h-screen { min-height: 100vh; }
.max-w-md { max-width: 28rem; }
.max-h-72 { max-height: 18rem; }

.mx-auto { margin-left: auto; margin-right: auto; }
.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.mr-1 { margin-right: 0.25rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }

.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-1\.5 { padding-left: 0.375rem; padding-right: 0.375rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-6 { padding-top: 1.5rem; }
.pb-6 { padding-bottom: 1.5rem; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }

.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }

.divide-y > :not([hidden]) ~ :not([hidden]) { border-top-width: 1px; }
.divide-gray-100 > :not([hidden]) ~ :not([hidden]) { border-color: #f3f4f6; }

/* -- Typography --------------------------------------------------- */

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.tracking-tight { letter-spacing: -0.025em; }
.tracking-wide { letter-spacing: 0.025em; }
.leading-none { line-height: 1; }

.text-center { text-align: center; }
.uppercase { text-transform: uppercase; }
.italic { font-style: italic; }
.not-italic { font-style: normal; }
.underline { text-decoration-line: underline; }

.list-disc { list-style-type: disc; }
.list-inside { list-style-position: inside; }

/* -- Text colors -------------------------------------------------- */

.text-white { color: #ffffff; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-900 { color: #111827; }
.text-red-800 { color: #991b1b; }
.text-red-900 { color: #7f1d1d; }
.text-emerald-700 { color: #047857; }
.text-emerald-900 { color: #064e3b; }
.text-amber-900 { color: #78350f; }
.text-lime-900 { color: #365314; }
.text-rose-900 { color: #881337; }
.text-sky-900 { color: #0c4a6e; }
.text-slate-900 { color: #0f172a; }
.text-beanie-orange { color: #f97316; }

/* -- Background colors -------------------------------------------- */

.bg-white { background-color: #ffffff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-900 { background-color: #111827; }
.bg-red-50 { background-color: #fef2f2; }
.bg-red-100 { background-color: #fee2e2; }
.bg-red-700 { background-color: #b91c1c; }
.bg-blue-700 { background-color: #1d4ed8; }
.bg-emerald-50 { background-color: #ecfdf5; }
.bg-emerald-600 { background-color: #059669; }
.bg-amber-100 { background-color: #fef3c7; }
.bg-lime-100 { background-color: #ecfccb; }
.bg-rose-100 { background-color: #ffe4e6; }
.bg-sky-100 { background-color: #e0f2fe; }
.bg-slate-100 { background-color: #f1f5f9; }
.bg-beanie-orange { background-color: #f97316; }
.bg-beanie-error { background-color: #dc2626; }

/* -- Borders ------------------------------------------------------ */

.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-t { border-top-width: 1px; }

.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }
.border-gray-400 { border-color: #9ca3af; }
.border-red-200 { border-color: #fecaca; }
.border-red-400 { border-color: #f87171; }
.border-emerald-200 { border-color: #a7f3d0; }
.border-amber-300 { border-color: #fcd34d; }
.border-lime-300 { border-color: #bef264; }
.border-rose-300 { border-color: #fda4af; }
.border-sky-300 { border-color: #7dd3fc; }
.border-slate-300 { border-color: #cbd5e1; }
.border-beanie-orange { border-color: #f97316; }

.border-t-transparent { border-top-color: transparent; }

.border-dashed { border-style: dashed; }

.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-full { border-radius: 9999px; }

/* -- Effects ------------------------------------------------------ */

.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }

:root {
  --tw-ring-color: rgb(59 130 246 / 0.5);
}

.ring-1 { box-shadow: 0 0 0 1px var(--tw-ring-color); }
.ring-2 { box-shadow: 0 0 0 2px var(--tw-ring-color); }
.ring-beanie-orange { --tw-ring-color: #f97316; }
.ring-beanie-error { --tw-ring-color: #dc2626; }

.opacity-60 { opacity: 0.6; }
.opacity-70 { opacity: 0.7; }

/* -- Animations --------------------------------------------------- */

@keyframes ktl-spin {
  to { transform: rotate(360deg); }
}

.animate-spin {
  animation: ktl-spin 1s linear infinite;
}

/* -- State variants ---------------------------------------------- */

.hover\:underline:hover { text-decoration-line: underline; }

.hover\:bg-gray-100:hover { background-color: #f3f4f6; }
.hover\:bg-gray-200:hover { background-color: #e5e7eb; }
.hover\:bg-blue-800:hover { background-color: #1e40af; }
.hover\:bg-orange-600:hover { background-color: #ea580c; }
.hover\:bg-emerald-700:hover { background-color: #047857; }

.hover\:text-gray-800:hover { color: #1f2937; }
.hover\:text-beanie-orange:hover { color: #f97316; }
.hover\:text-beanie-error:hover { color: #dc2626; }

.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px var(--tw-ring-color); }
.focus\:ring-beanie-orange:focus { --tw-ring-color: #f97316; }

.disabled\:bg-gray-100:disabled { background-color: #f3f4f6; }
.disabled\:text-gray-400:disabled { color: #9ca3af; }
.disabled\:opacity-50:disabled { opacity: 0.5; }
.disabled\:cursor-not-allowed:disabled { cursor: not-allowed; }
