@import url("/fonts.css");
:root {
  font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #182925;
  background: #f6f7f2;
  font-size: 15px;
  scroll-behavior: smooth;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
a,
input {
  font: inherit;
}
button,
a {
  cursor: pointer;
}
button {
  border: 1px solid #cbd5cc;
  border-radius: 7px;
  padding: 10px 17px;
  background: transparent;
  color: inherit;
}
button:hover {
  background: #e1eadc;
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
a {
  color: inherit;
  text-decoration: none;
}
header {
  height: 88px;
  max-width: 1300px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #dce1d7;
  padding: 0 28px;
}
.brand {
  font-size: 21px;
  font-weight: 850;
  letter-spacing: 1px;
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 4px;
  margin-top: 5px;
}
nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 13px;
}
main {
  max-width: 1244px;
  margin: auto;
  padding: 58px 28px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2.5px;
  color: #527163;
  font-weight: 700;
}
.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  min-height: 410px;
}
h1 {
  font-size: clamp(46px, 6vw, 76px);
  line-height: 1.2;
  letter-spacing: -3px;
  margin: 26px 0;
}
h1 span {
  color: #38764e;
}
.hero p {
  color: #6d7c73;
  line-height: 1.9;
}
.primary {
  display: inline-block;
  background: #c7ed6a;
  border: 1px solid #b8dc5f;
  color: #1d3423;
  padding: 15px 24px;
  font-weight: 700;
  border-radius: 7px;
}
.primary:hover {
  background: #b8e35a;
}
.tags {
  margin-top: 25px;
  font-size: 11px;
  color: #7b887e;
}
.tags b {
  margin: 0 14px;
}
.orb {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 330px;
  height: 330px;
  border: 1px solid #c5d6bf;
  border-radius: 50%;
  background: radial-gradient(circle, #d4edb9, transparent 66%);
  outline: 1px dashed #d8e1d0;
  outline-offset: 25px;
}
.bigball {
  width: 156px;
  height: 156px;
  border-radius: 50%;
  background: radial-gradient(circle at 33% 25%, #f3ffd9, #badc79 55%, #6c9852);
  box-shadow: 17px 25px 35px #587c3e30;
  display: grid;
  place-items: center;
  font-size: 86px;
  font-weight: 750;
  color: #33503a;
  margin: 22px;
}
.orbit {
  font-size: 9px;
  letter-spacing: 2px;
  color: #67825b;
}
.notice {
  background: #edf1e7;
  border: 1px solid #dae3cf;
  padding: 15px 18px;
  border-radius: 5px;
  font-size: 12px;
  color: #67735d;
  margin: 30px 0;
}
.stats {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  border: 1px solid #d5dece;
  border-radius: 9px;
  background: #fff;
}
.stats > div {
  padding: 28px 30px;
  border-right: 1px solid #e0e6d9;
}
.stats > div:last-child {
  border: 0;
}
.stats label,
.stats span {
  display: block;
  color: #7c8778;
  font-size: 11px;
}
.stats strong {
  display: block;
  font-size: 36px;
  margin: 13px 0;
  font-weight: 650;
  letter-spacing: -1px;
}
#status {
  font-size: 28px;
}
.sectionhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 65px 0 25px;
}
h2 {
  font-size: 29px;
  font-weight: 650;
  margin: 10px 0;
  letter-spacing: -1px;
}
.sectionhead > span {
  font-size: 11px;
  color: #73806e;
}
.games {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.game {
  text-align: left;
  padding: 21px;
  background: #fff;
  border: 1px solid #dce2d5;
}
.game.active {
  background: #e6f0d8;
  border-color: #7b9d60;
}
.game b {
  display: block;
  margin: 13px 0 8px;
}
.game small {
  font-size: 11px;
  color: #7d8877;
}
.picker {
  margin-top: 18px;
  background: #fff;
  padding: 27px;
  border: 1px solid #dce2d5;
  border-radius: 9px;
}
.picker h3 {
  margin: 0;
}
.picker p {
  color: #7c8974;
  font-size: 12px;
}
.picker > #random {
  float: right;
  margin-top: -55px;
}
.numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 22px 0;
}
.ball {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #d9e1d2;
  padding: 0;
  font-size: 12px;
}
.ball.selected {
  background: #254635;
  color: #fff;
  border-color: #254635;
}
#bonus .selected {
  background: #cfdf6e;
  color: #203b26;
}
.picker footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #e7ebdf;
  padding-top: 20px;
  font-size: 12px;
}
.auditgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
article {
  border: 1px solid #dce2d5;
  border-radius: 9px;
  background: #fff;
  padding: 24px;
}
h3 {
  font-size: 16px;
}
article p,
details p {
  font-size: 12px;
  line-height: 1.9;
  color: #75816e;
}
code {
  display: block;
  word-break: break-all;
  font-size: 10px;
  color: #6b8760;
  background: #f1f5ea;
  padding: 10px;
}
#markets,
#proofs {
  font-size: 11px;
  line-height: 2;
}
#proofs a {
  display: block;
  text-decoration: underline;
}
details {
  padding: 22px 0;
  border-bottom: 1px solid #dce2d5;
  font-size: 12px;
}
.lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 22px 0;
}
.row {
  padding: 12px 0;
  border-bottom: 1px solid #edf0e7;
  font-size: 12px;
  line-height: 1.8;
}
.row small {
  display: block;
  color: #819077;
}
.ledger h3 small {
  font-size: 10px;
  color: #839078;
  font-weight: 400;
}
.demo {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 24px;
  font-size: 11px;
  flex-wrap: wrap;
}
.demo span {
  color: #86927b;
}
dialog {
  border: 1px solid #c5d2bc;
  border-radius: 12px;
  padding: 35px;
  max-width: 420px;
  width: 90%;
  color: #243c2b;
}
dialog::backdrop {
  background: #14291c66;
  backdrop-filter: blur(4px);
}
form label {
  display: block;
  font-size: 12px;
  margin: 22px 0;
}
input {
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  border: 1px solid #cbd6c2;
  border-radius: 5px;
}
form button {
  width: 100%;
  margin: 6px 0;
}
.close {
  width: auto;
  float: right;
  margin: -20px -20px 0 0;
  border: 0;
}
form p {
  font-size: 11px;
  color: #7c8c72;
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 24px;
  border-radius: 8px;
  background: #203b2d;
  color: white;
  box-shadow: 0 5px 20px #0002;
  display: none;
  z-index: 5;
}
@media (max-width: 720px) {
  header {
    height: 76px;
    padding: 15px;
  }
  .brand {
    font-size: 16px;
  }
  nav {
    gap: 8px;
  }
  nav > a {
    display: none;
  }
  main {
    padding: 35px 18px;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .orb {
    display: none;
  }
  h1 {
    margin: 24px 0;
  }
  .stats > div {
    padding: 20px 12px;
  }
  .stats strong {
    font-size: 26px;
  }
  #status {
    font-size: 20px;
  }
  .games {
    grid-template-columns: 1fr 1fr;
  }
  .auditgrid,
  .lists {
    grid-template-columns: 1fr;
  }
  .sectionhead {
    align-items: flex-start;
    gap: 10px;
  }
  .sectionhead > span {
    max-width: 100px;
    line-height: 1.7;
  }
  .ball {
    width: 37px;
    height: 37px;
  }
  .picker {
    padding: 19px;
  }
  .picker footer {
    gap: 12px;
  }
  .primary {
    padding: 12px 16px;
  }
  .sectionhead h2 {
    font-size: 24px;
  }
}

[hidden] {
  display: none !important;
}
select {
  background: transparent;
  border: 1px solid #cbd5cc;
  border-radius: 7px;
  padding: 9px;
  color: inherit;
  max-width: 100px;
}
.ledger {
  max-height: 440px;
  overflow: auto;
}
html[lang="en"] h1,
html[lang="ja"] h1 {
  font-size: clamp(40px, 5.4vw, 67px);
}
@media (max-width: 720px) {
  header {
    gap: 10px;
  }
  nav {
    font-size: 11px;
  }
  .brand small {
    letter-spacing: 1px;
  }
  nav button {
    padding: 9px;
  }
  select {
    max-width: 85px;
    padding: 8px;
  }
}

.game-rules {
  background: #edf2e7;
  border: 1px solid #d5dece;
  border-radius: 8px;
  margin-top: 20px;
  padding: 20px;
}
.game-rules summary {
  cursor: pointer;
  font-weight: 650;
}
.game-rules p {
  margin: 9px 0;
}
.game-rules a {
  text-decoration: underline;
  font-size: 12px;
  color: #38764e;
}
.games {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 720px) {
  .games {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .game {
    padding: 16px 12px;
  }
  .game b {
    font-size: 13px;
  }
}

@media (max-width: 720px) {
  .picker > #random {
    float: none;
    display: block;
    margin: 12px 0;
  }
  .picker footer {
    flex-wrap: wrap;
  }
  .picker footer > .primary {
    margin-left: auto;
  }
}

.sitefooter {
  max-width: 1188px;
  margin: 0 auto;
  padding: 24px 0 40px;
  border-top: 1px solid #dce2d5;
  display: flex;
  gap: 24px;
  font-size: 12px;
  color: #5c7357;
}
@media (max-width: 720px) {
  .sitefooter {
    margin: 0 18px;
    gap: 15px;
    flex-wrap: wrap;
  }
}
