*,
*:before,
*:after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  background-color: #FAFAFA;
  color: #1A1A1A;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.page {
  max-width: 840px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}
.site-header {
  text-align: center;
  margin-bottom: 24px;
}
.site-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: #1A1A1A;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.site-header .subtitle {
  font-size: 14px;
  color: #6B6B6B;
}
.site-header .subtitle a {
  color: #6B6B6B;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #D4D4D4;
}
.site-header .subtitle a:hover {
  color: #1A1A1A;
}
.site-header .lang-toggle {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 100;
  padding: 10px 18px;
  font-size: 15px;
  font-family: inherit;
  color: #6B6B6B;
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.site-header .lang-toggle:hover {
  color: #1A1A1A;
  border-color: #B0B0B0;
}
.controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.controls .controls-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.controls button {
  padding: 6px 14px;
  font-size: 13px;
  font-family: inherit;
  color: #6B6B6B;
  background: transparent;
  border: 1px solid #E5E5E5;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.controls button:hover {
  color: #1A1A1A;
  border-color: #B0B0B0;
  background: rgba(0, 0, 0, 0.03);
}
.controls .btn-start {
  color: #1A1A1A;
  border-color: #B0B0B0;
}
.controls .btn-start:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: #6B6B6B;
}
.controls .btn-pause {
  color: #1A1A1A;
  border-color: #B0B0B0;
}
.controls .btn-pause:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: #6B6B6B;
}
.controls .btn-resume {
  color: #1A1A1A;
  border-color: #B0B0B0;
}
.controls .btn-resume:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: #6B6B6B;
}
.controls .btn-clear {
  color: #6B6B6B;
  border-color: #E5E5E5;
}
.controls .btn-clear:hover {
  color: #c0392b;
  border-color: #c0392b;
  background: rgba(192, 57, 43, 0.04);
}
.pannel-scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.pannel {
  display: flex;
  flex-wrap: wrap;
  margin: 0 auto;
  width: 800px;
  background-color: #FFFFFF;
  border: 1px solid #E5E5E5;
  border-radius: 8px;
  overflow: hidden;
}
.pannel .cell {
  width: 10px;
  height: 10px;
  border-right: 1px solid #E5E5E5;
  border-bottom: 1px solid #E5E5E5;
  transition: background-color 0.1s ease;
}
.pannel.editing .cell {
  cursor: pointer;
}
.pannel.editing .cell:hover {
  background-color: rgba(26, 26, 26, 0.06) !important;
}
.pannel .dead {
  background-color: #FFFFFF;
}
.pannel .young {
  background-color: #B0B0B0;
}
.pannel .old {
  background-color: #1A1A1A;
}
.pannel .died {
  background-color: #E8E8E8;
}
.about {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid #E5E5E5;
}
.about h2 {
  font-size: 18px;
  font-weight: 600;
  color: #1A1A1A;
  margin-bottom: 12px;
}
.about p {
  font-size: 14px;
  line-height: 1.7;
  color: #6B6B6B;
  margin-bottom: 12px;
}
.about p:last-child {
  margin-bottom: 0;
}
.about .rules {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.about .rules .rule {
  flex: 1;
  min-width: 180px;
  padding: 14px;
  background: #FAFAFA;
  border: 1px solid #E5E5E5;
  border-radius: 8px;
}
.about .rules .rule .rule-title {
  font-size: 13px;
  font-weight: 600;
  color: #1A1A1A;
  margin-bottom: 4px;
}
.about .rules .rule .rule-desc {
  font-size: 13px;
  color: #6B6B6B;
  line-height: 1.5;
}
.about .rules .rule .rule-icon {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-right: 6px;
  vertical-align: middle;
}

