/*
 * Copyright (C) 2026 Ivy Lopez
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2
 * as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <https://www.gnu.org/licenses/>.
 */

body {
  margin: 20px;
  font-family: monospace;
}
#game {
  max-width: 800px;
  margin: 0 auto;
}
.sticky-top.sticky-on {
  position: sticky;
  top: 0;
  background: #fff;
  padding: 20px 0 8px;
  margin: -20px 0 0;
  z-index: 10;
}
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.shopbtn.unaffordable {
  opacity: 0.35;
  cursor: not-allowed;
}
.locked-teaser {
  opacity: 0.5;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 8px;
}
.tabs button.active {
  text-decoration: underline;
}
.tabpage {
  display: none;
}
.tabpage.active {
  display: block;
}
.shopsection {
  border-top: 1px solid #ccc;
  padding-top: 10px;
  margin-top: 16px;
}
.shopsection:first-child {
  border-top: none;
  margin-top: 0;
}
.shopsection h3 {
  margin: 0 0 6px;
  text-decoration: underline;
}
.shop .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 10px 0;
}
.shop .row.mini {
  opacity: 0.85;
  font-size: 0.92em;
  margin: 6px 0 6px 16px;
}
.row .desc {
  max-width: 440px;
}
.press {
  position: relative;
  height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
}
.press pre {
  margin: 0;
  white-space: pre;
  line-height: 1.1;
}
.pistontop {
  position: absolute;
  top: 0;
  transition: top 0.15s ease-in;
}
.piston.slam {
  top: 90px !important;
  transition: top 0.08s ease-in;
}
.dudeart {
  transition: transform 0.08s;
}
.dudeart.squish {
  transform: scaleY(0.15);
}
.dudeart.crit {
  transform: scale(1.3);
}
.stat-block {
  display: flex;
  flex-direction: column;
}
.buymode {
  display: flex;
  gap: 8px;
  margin: 10px 0;
}
.buymode button.active {
  text-decoration: underline;
}
.achlist {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ach.locked {
  opacity: 0.35;
}
.eventbar {
  min-height: 20px;
}
.golden {
  position: absolute;
  cursor: pointer;
  animation: floatgold 3s linear infinite;
}
@keyframes floatgold {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}
.settingsrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  max-width: 440px;
  margin: 10px 0;
}
.hidden {
  display: none;
}
.statgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 30px;
  max-width: 500px;
}
.minigameboard {
  display: grid;
  grid-template-columns: repeat(5, 40px);
  grid-template-rows: repeat(3, 40px);
  gap: 6px;
  margin: 12px 0;
}
.minigameboard button {
  width: 40px;
  height: 40px;
}

.treewrap {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 10px 0 20px;
}
.treeline {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.treelabel {
  min-width: 140px;
  font-weight: bold;
}
.treenode {
  width: 26px;
  height: 26px;
  border: 1px solid #999;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  background: #eee;
  cursor: default;
}
.treenode.filled {
  background: #4a7c4a;
  border-color: #2e5c2e;
  color: #fff;
}
.treenode.next {
  cursor: pointer;
  background: #ffe28a;
  border-color: #c9a227;
}
.treenode.next:hover {
  background: #ffd85c;
}
.treeconnector {
  width: 10px;
  height: 2px;
  background: #999;
}
.treecost {
  margin-left: 10px;
  font-size: 0.85em;
  opacity: 0.75;
}
