/* src/styles/input.css */
label:not(:disabled) {
  cursor: pointer;
}
label > input {
  display: none;
}
label:has(input[type=file]) {
  background: var(--bg-rect);
  border: 3px groove var(--border);
  border-radius: 8px;
  padding: 0.25rem 1rem;
  width: fit-content;
}
label:has(input[type=checkbox]) {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
label:has(input[type=checkbox])::after {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  content: "";
  background: var(--bg-circle);
  width: 1rem;
  height: 1rem;
  border: 3px groove var(--border);
  border-radius: 50%;
}
label:has(input[type=checkbox]:checked)::after {
  content: "\2714";
  color: #3ad400;
  font-size: 2rem;
  text-shadow: 2px 2px 2px var(--bg);
}

/* src/styles/table.css */
table {
  border-collapse: collapse;
  width: 100%;
  color: var(--text);
}
th,
td:first-child {
  text-align: left;
  text-wrap: nowrap;
}
tr {
  border-bottom: 1px solid var(--border);
}
tr:has(input:checked) {
  color: var(--text-inactive);
}
td,
th {
  padding: 0.5rem 0.75rem;
}
tbody td:last-child {
  text-align: center;
}
tbody tr:hover,
tbody tr:has(input:focus) {
  background: var(--bg-button);
}
body:has([role=toolbar] input:checked) tr:has(input:checked) {
  display: none;
}

/* src/styles/samp.css */
samp {
  font-family: sans-serif;
  background: linear-gradient(#255c56aa 0%, #0b100caa 30%);
  border: 1px solid #00231f;
  border-radius: 8px;
  padding: 0.125rem 0.25rem;
}

/* src/styles/footer.css */
footer {
  position: relative;
  background-color: var(--bg);
  color: var(--text);
  border-top: 3px groove var(--border);
  padding: 1rem;
  text-align: center;
}
footer::before {
  position: absolute;
  content: "";
  background-image: url(./border.png);
  top: 0;
  right: 0;
  width: 136px;
  height: 73px;
  transform: translateY(-100%);
  z-index: -1;
}
footer a {
  color: inherit;
}
footer :first-child {
  margin-top: 0;
}
footer :last-child {
  margin-bottom: 0;
}

/* src/styles/toolbar.css */
[role=toolbar] {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* src/styles/section.css */
section {
  border: 3px groove var(--border);
  border-radius: 6px;
  background-color: var(--bg);
  color: var(--text);
  padding: 1rem 1.5rem;
}
section + section {
  margin-top: 1rem;
}
section > :first-child {
  margin-top: 0;
}
section > :last-child {
  margin-bottom: 0;
}

/* src/index.css */
:root {
  --bg: #080c0fdd;
  --bg-rect:
    linear-gradient(
      #255c56,
      #00231f,
      #255c56);
  --bg-circle:
    radial-gradient(
      circle at top,
      #255c56,
      #00231f);
  --text: #ffffc8;
  --text-inactive: #969a79;
  --border: #f7d993;
}
html {
  line-height: 1.618;
  font-family: sans-serif;
  font-size: 18px;
  word-break: break-word;
  text-shadow: 4px 4px 4px var(--bg);
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  box-sizing: border-box;
  background-image: url(./bg.png);
  background-repeat: no-repeat;
  background-position: center;
}
body > img {
  position: fixed;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
main {
  flex-grow: 1;
  max-width: 60rem;
  margin: 0 auto;
  padding: 1rem;
}
hgroup {
  display: flex;
  flex-direction: column;
  align-items: center;
}
#count {
  display: inline-flex;
  align-items: center;
}
#count::before {
  display: inline-block;
  content: "";
  width: 16px;
  height: 16px;
  background-image: url(./icon.png);
  margin-right: 0.25rem;
}
#help {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: var(--bg-circle);
  border: 3px groove var(--border);
  border-radius: 50%;
  color: var(--border);
  margin-left: 0.5rem;
  aspect-ratio: 1/1;
  width: 1rem;
  height: 1rem;
  padding: 0.25rem;
  text-decoration: none;
}
hgroup * {
  margin: 0;
}
img {
  max-width: 100%;
  height: auto;
}
