/* Digz N' Lidz brand: black, construction yellow, rust/sunset orange,
   hazard stripe accents, industrial type. Pulled from their logo. */

:root {
  --site-black: #141414;
  --panel: #1e1c19;
  --yellow: #f0a91e;
  --rust: #b3532c;
  --bone: #efe6d8;
  --hazard-dark: #1a1a1a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--site-black);
  color: var(--bone);
  font-family: "Oswald", "Arial Narrow", sans-serif;
  min-height: 100vh;
}

.wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 20px 60px;
  position: relative;
}

h1, h2 {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--yellow);
}

.card {
  background: var(--panel);
  border: 1px solid #3a3530;
  border-left: 4px solid var(--yellow);
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

button {
  width: 100%;
  padding: 14px;
  background: var(--yellow);
  color: var(--site-black);
  border: none;
  border-radius: 4px;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 15px;
  cursor: pointer;
  margin-top: 10px;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

button.secondary {
  background: transparent;
  color: var(--bone);
  border: 1px solid var(--bone);
}

.timer {
  font-size: 48px;
  color: var(--yellow);
  text-align: center;
  margin: 10px 0;
}

.tier-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #3a3530;
}

.tier-option:last-child { border-bottom: none; }

.error {
  color: #e0664a;
  margin-top: 8px;
}

#card-container {
  margin: 14px 0;
  min-height: 40px;
}

.item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #3a3530;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-controls button {
  width: 32px;
  padding: 6px;
  margin: 0;
}

/* Hazard stripe divider, matches the logo's yellow/black diagonal band */
.hazard-divider {
  height: 10px;
  background: repeating-linear-gradient(
    135deg,
    var(--yellow), var(--yellow) 12px,
    var(--hazard-dark) 12px, var(--hazard-dark) 24px
  );
  margin: 0 0 20px;
  border-radius: 2px;
}

.brand-logo {
  display: block;
  max-width: 220px;
  margin: 0 auto 20px;
}

/* Floating digger PNGs, drift slowly in the background of a page.
   Keep z-index below .card so they never sit over readable content. */
.digger-float {
  position: fixed;
  opacity: 0.16;
  z-index: 0;
  pointer-events: none;
  filter: grayscale(0.2);
}

.digger-float.d1 {
  width: 260px;
  top: 8%;
  right: -60px;
  animation: drift-1 22s ease-in-out infinite;
}

.digger-float.d2 {
  width: 200px;
  bottom: 6%;
  left: -50px;
  animation: drift-2 26s ease-in-out infinite;
}

.digger-float.d3 {
  width: 180px;
  top: 55%;
  right: -40px;
  animation: drift-3 30s ease-in-out infinite;
}

@keyframes drift-1 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-25px) rotate(-2deg); }
}

@keyframes drift-2 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(20px) rotate(2deg); }
}

@keyframes drift-3 {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-15px); }
}

@media (max-width: 600px) {
  .digger-float { display: none; } /* keep small screens uncluttered */
}
