@font-face {
  font-family: "Liberation Serif";
  src: url("../fonts/LiberationSerif-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Liberation Serif";
  src: url("../fonts/LiberationSerif-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: "Liberation Serif";
  src: url("../fonts/LiberationSerif-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
}
@font-face {
  font-family: "Liberation Sans";
  src: url("../fonts/LiberationSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Liberation Sans";
  src: url("../fonts/LiberationSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: "Liberation Mono";
  src: url("../fonts/LiberationMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: #000000;
  font-family: "Liberation Sans", Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
}

.page {
  width: 1000px;
  max-width: calc(100% - 24px);
  margin: 0 auto;
  padding: 18px 0 28px;
}

header { text-align: center; }

.logo {
  display: block;
  width: 80px;
  height: 80px;
  margin: 0 auto 10px;
  border: 1px solid #000000;
}

h1 {
  margin: 0 0 14px;
  font-family: "Liberation Serif", Georgia, "Times New Roman", Times, serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
}

.info-bar {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #000000;
  margin: 0 0 12px;
  background: #ffffff;
}
.info-bar td {
  border-left: 1px solid #000000;
  padding: 7px 10px;
  text-align: center;
  font-size: 14px;
  width: 33.33%;
}
.info-bar td:first-child { border-left: none; }

.tagline {
  margin: 0 0 10px;
  font-size: 14px;
  color: #222222;
}

.counter {
  margin: 0 0 10px;
  font-size: 14px;
}
.counter b { font-weight: 700; }

nav {
  margin: 0 0 14px;
  font-size: 14px;
}
nav a { color: #0000EE; }
nav a:visited { color: #551A8B; }
nav .sep { color: #000000; margin: 0 2px; }

.wall {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  container-type: size;
  border: 1px solid #000000;
  background-color: #ffffff;
  background-image:
    linear-gradient(to right, rgba(0,0,0,0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.08) 1px, transparent 1px);
  background-size: 1% 1%;
  background-position: 0 0;
  margin: 0 0 22px;
}
.mystery {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Liberation Serif", Georgia, "Times New Roman", Times, serif;
  font-size: 18cqw;
  font-weight: 700;
  color: #c4c4c4;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

fieldset.buy {
  margin: 0 0 22px;
  padding: 12px 16px 16px;
  border: 1px solid #000000;
  background: #ffffff;
}
fieldset.buy legend {
  font-family: "Liberation Serif", Georgia, "Times New Roman", Times, serif;
  font-size: 20px;
  font-weight: 700;
  padding: 0 6px;
}

.sizes {
  display: table;
  width: 100%;
  border-collapse: collapse;
  margin: 4px 0 14px;
}
.size {
  display: table-cell;
  width: 50%;
  border: 1px solid #000000;
  padding: 10px 12px;
  vertical-align: middle;
  background: #ffffff;
}
.size + .size { border-left: none; }
.size input { margin: 0 8px 0 0; vertical-align: middle; }
.size label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
}
.size .copy { flex: 1; min-width: 0; }
.size .name { font-weight: 700; }
.size .price { font-size: 18px; font-weight: 700; margin-top: 2px; }
.size .note { font-size: 12px; color: #333333; margin-top: 2px; }
.size:has(input:checked) { background: #f4f4f4; }
.mini {
  display: grid;
  gap: 1px;
  background: #888888;
  border: 1px solid #888888;
  flex: none;
}
.mini i {
  display: block;
  background: #ffffff;
  width: 5px;
  height: 5px;
}
.mini-5 { grid-template-columns: repeat(5, 5px); }
.mini-10 { grid-template-columns: repeat(10, 5px); }

.fields {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 14px;
}
.fields th {
  text-align: left;
  font-weight: 700;
  font-size: 13px;
  padding: 5px 12px 5px 0;
  vertical-align: top;
  width: 110px;
  white-space: nowrap;
}
.fields td { padding: 5px 0; }
.fields input[type="text"],
.fields input[type="url"],
.fields textarea {
  width: 100%;
  max-width: 520px;
  font-family: "Liberation Sans", Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: #000000;
  border: 1px solid #666666;
  padding: 4px 6px;
  background: #ffffff;
  border-radius: 0;
  box-shadow: inset 1px 1px 0 #dddddd;
}
.fields textarea {
  min-height: 72px;
  resize: vertical;
}
.fields .hint {
  display: block;
  font-size: 11px;
  color: #555555;
  font-weight: 400;
  margin-top: 2px;
  margin-bottom: 8px;
}

.pay h3 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
}
button.soon {
  display: inline-block;
  margin: 0;
  padding: 6px 18px;
  font-family: "Liberation Sans", Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: #555555;
  background: #dcdcdc;
  border-top: 1px solid #ffffff;
  border-left: 1px solid #ffffff;
  border-right: 1px solid #555555;
  border-bottom: 1px solid #555555;
  cursor: default;
}
button.soon:disabled {
  color: #555555;
  cursor: default;
}

.howto {
  margin: 0 0 22px;
  padding: 12px 16px 16px;
  border: 1px solid #000000;
}
.howto h2 {
  margin: 0 0 12px;
  font-family: "Liberation Serif", Georgia, "Times New Roman", Times, serif;
  font-size: 20px;
  font-weight: 700;
}
.warn {
  margin: 0 0 10px;
  border: 1px solid #000000;
  background: #ffffcc;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 700;
  color: #000000;
}
.howto .rule {
  margin: 0 0 12px;
  font-size: 14px;
}
.wallets {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #000000;
}
.wallets th,
.wallets td {
  border-top: 1px solid #000000;
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
.wallets tr:first-child th,
.wallets tr:first-child td { border-top: none; }
.wallets th {
  width: 220px;
  font-size: 13px;
  font-weight: 700;
  background: #f4f4f4;
  white-space: nowrap;
}
.wallets code {
  font-family: "Liberation Mono", "Courier New", Courier, monospace;
  font-size: 13px;
  word-break: break-all;
  user-select: all;
}

.faq { margin: 0 0 22px; }
.faq h2 {
  margin: 0 0 10px;
  font-family: "Liberation Serif", Georgia, "Times New Roman", Times, serif;
  font-size: 20px;
  font-weight: 700;
}
.faq h3 {
  margin: 14px 0 3px;
  font-size: 14px;
  font-weight: 700;
}
.faq h3:first-of-type { margin-top: 0; }
.faq p {
  margin: 0;
  font-size: 13px;
  color: #111111;
}

footer {
  border-top: 1px solid #000000;
  padding-top: 12px;
  text-align: center;
  font-size: 12px;
  color: #222222;
}
footer p { margin: 0 0 4px; }
footer a { color: #0000EE; }
footer a:visited { color: #551A8B; }
footer .terms {
  margin: 8px 0 6px;
  color: #333333;
}

@media (max-width: 640px) {
  .page { padding: 12px 0 24px; }
  .logo { width: 64px; height: 64px; }
  h1 { font-size: 26px; margin-bottom: 10px; }
  .info-bar { display: block; border-bottom: none; }
  .info-bar tbody, .info-bar tr, .info-bar td { display: block; width: 100%; }
  .info-bar td {
    border-left: none;
    border-bottom: 1px solid #000000;
    padding: 6px 8px;
  }
  .tagline, .counter, nav { font-size: 13px; }
  fieldset.buy,
  .howto { padding: 10px 10px 14px; }
  .sizes, .size { display: block; width: 100%; }
  .size + .size { border-left: 1px solid #000000; border-top: none; }
  .fields th, .fields td { display: block; width: 100%; padding: 0; }
  .fields th { padding: 8px 0 3px; }
  .fields tr:first-child th { padding-top: 0; }
  .fields input[type="text"],
  .fields input[type="url"],
  .fields textarea {
    font-size: 16px;
    padding: 6px 7px;
    max-width: none;
  }
  .wallets, .wallets tbody, .wallets tr, .wallets th, .wallets td {
    display: block;
    width: 100%;
  }
  .wallets th {
    width: 100%;
    border-top: 1px solid #000000;
    border-bottom: none;
    padding-bottom: 2px;
    white-space: normal;
  }
  .wallets tr:first-child th { border-top: none; }
  .wallets td { padding-top: 0; }
  .wallets code { font-size: 12px; }
  .faq h2, .howto h2 { font-size: 18px; }
}
