/* powstepowita, hand-typed. dark, monospace, one green. */

* { box-sizing: border-box; }

html { background: #0a0a0a; }

body {
  margin: 0;
  color: #c9d1d9;
  background: #0a0a0a;
  font-family: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", Menlo, "Courier New", monospace;
  font-size: 14px;
  line-height: 1.6;
}

::selection { background: #3fb950; color: #0a0a0a; }

a { color: #3fb950; text-decoration: underline; }
a:hover { color: #7ee29b; }

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 28px 20px 40px;
}

/* header */

h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: #e6edf3;
  letter-spacing: -0.5px;
}

.tag { margin: 4px 0 16px; color: #8b949e; }

pre.status {
  margin: 0;
  padding: 8px 12px;
  background: #101315;
  border: 1px solid #30363d;
  overflow-x: auto;
  font-variant-numeric: tabular-nums;
  white-space: pre;
}

.ok { color: #3fb950; }

.cursor { color: #3fb950; animation: blink 1.1s steps(1) infinite; }

@keyframes blink { 50% { opacity: 0; } }

/* sections */

section { margin-top: 40px; }

h2 {
  font-size: 17px;
  font-weight: 700;
  color: #e6edf3;
  margin: 0 0 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid #30363d;
}

p { margin: 0 0 12px; }

pre {
  margin: 12px 0 16px;
  padding: 12px;
  background: #101315;
  border: 1px solid #30363d;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.5;
}

/* tables */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 16px;
}

th, td {
  border: 1px solid #30363d;
  padding: 6px 10px;
  text-align: left;
  vertical-align: top;
}

th { color: #e6edf3; background: #101315; }

.buy { margin-top: 4px; }

/* key checker */

#keyform { display: flex; gap: 8px; margin-bottom: 0; flex-wrap: wrap; }

#keyinput {
  flex: 1 1 320px;
  min-width: 0;
  font: inherit;
  color: #e6edf3;
  background: #101315;
  border: 1px solid #30363d;
  padding: 6px 10px;
}

#keyinput::placeholder { color: #6e7681; }

button {
  font: inherit;
  color: #0a0a0a;
  background: #3fb950;
  border: 1px solid #3fb950;
  padding: 6px 18px;
  cursor: pointer;
}

button:active { transform: scale(0.97); }
button { transition: transform 100ms ease-out; }

button:disabled { background: #2c3a30; border-color: #2c3a30; color: #8b949e; cursor: wait; }

#keyout { min-height: 0; }
#keyout.hidden { display: none; }
#keyout.err { color: #f85149; }

/* faq */

details { border-bottom: 1px solid #21262d; padding: 2px 0; }

summary {
  cursor: pointer;
  color: #e6edf3;
  padding: 6px 0;
  list-style-position: outside;
}

summary:hover { color: #3fb950; }

details p { margin: 0 0 10px; color: #c9d1d9; }

/* footer */

footer { margin-top: 48px; border-top: 1px solid #30363d; padding-top: 12px; }
footer p { color: #8b949e; margin: 0; font-size: 13px; }
footer p.small { color: #6e7681; margin-top: 6px; font-size: 12px; }

/* focus */

a:focus-visible, button:focus-visible, #keyinput:focus-visible, summary:focus-visible {
  outline: 1px solid #3fb950;
  outline-offset: 2px;
}

#keyinput:focus { border-color: #3fb950; }

/* motion off: keep it readable, kill the movement */

@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; }
  button { transition: none; }
}

/* narrow screens: let tables scroll instead of breaking layout */

@media (max-width: 640px) {
  .wrap { padding: 20px 14px 32px; }
  table { display: block; overflow-x: auto; }
}

/* redeem page: stacked form, same parts as the key checker */

#rform { display: block; margin-bottom: 0; }

.fl { display: block; color: #e6edf3; margin: 12px 0 4px; }
.fl .opt { color: #6e7681; font-weight: normal; }

#rform input {
  display: block;
  width: 100%;
  font: inherit;
  color: #e6edf3;
  background: #101315;
  border: 1px solid #30363d;
  padding: 6px 10px;
}

#rform input::placeholder { color: #6e7681; }
#rform input:focus { border-color: #3fb950; outline: none; }
#rform input:focus-visible { outline: 1px solid #3fb950; outline-offset: 2px; }

.hint { color: #8b949e; margin: 6px 0 0; font-size: 13px; }

#rform button { margin-top: 16px; }

#rout { min-height: 0; white-space: pre-wrap; word-break: break-all; }
#rout.hidden { display: none; }
#rout.err { color: #f85149; }
