:root {
  --wall: #3b2314;
  --wall-dark: #24140b;
  --wood: #8a5a2e;
  --wood-light: #b07a42;
  --wood-dark: #4a2c17;
  --ink: #2a160a;
  --cream: #f6e7c1;
  --brass: #e0a83a;
  --brass-dark: #8f5f12;
}

* {
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--cream);
  font-family: 'VT323', monospace;
  font-size: 22px;
  /* plank wall: wide boards with dark seams, plus a soft vignette */
  background:
    radial-gradient(ellipse at 50% 40%, rgba(255, 190, 110, 0.12), transparent 60%),
    repeating-linear-gradient(90deg, transparent 0 116px, var(--wall-dark) 116px 120px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 9px),
    var(--wall);
  overflow-x: hidden;
}

img {
  image-rendering: pixelated;
}

/* ---------- bottle shelves ---------- */
.shelves {
  padding-top: 12px;
}

.shelf {
  height: 155px;
  background: url('./Resources/Images/login/shelf.png') repeat-x left bottom;
  image-rendering: pixelated;
}

.shelf--offset {
  background-position: -210px bottom;
}

/* ---------- hanging sign ---------- */
.sign-wrap {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 36px 16px 24px;
}

.sign {
  position: relative;
  width: 100%;
  max-width: 460px;
  padding: 28px 24px 24px;
  text-align: center;
  background:
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(0, 0, 0, 0.18) 38px 40px),
    linear-gradient(180deg, var(--wood-light), var(--wood) 30%, var(--wood) 70%, #74491f);
  border: 6px solid var(--wood-dark);
  outline: 2px solid #1b0d05;
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.35), inset 0 0 0 2px rgba(255, 220, 160, 0.25);
}

/* chains holding the sign up */
.sign::before,
.sign::after {
  content: '';
  position: absolute;
  top: -42px;
  width: 6px;
  height: 36px;
  background: repeating-linear-gradient(180deg, #9a9088 0 6px, #4b4540 6px 9px);
}

.sign::before { left: 18%; }
.sign::after { right: 18%; }

.sign h1 {
  font-family: 'Press Start 2P', monospace;
  font-size: 30px;
  line-height: 1.35;
  color: var(--brass);
  text-shadow: 3px 3px 0 var(--ink), -1px -1px 0 #f7d27a;
  margin-bottom: 14px;
  letter-spacing: 1px;
}

.sign p {
  color: var(--cream);
  text-shadow: 2px 2px 0 var(--ink);
  line-height: 1.1;
}

.sign .tagline {
  color: #ffe2a0;
  font-size: 26px;
  margin-bottom: 4px;
}

#ual-div {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

/* the wallet library injects its own #ual-button styles, so these need !important */
#ual-button {
  font-family: 'Press Start 2P', monospace !important;
  font-size: 14px !important;
  color: var(--ink) !important;
  background: linear-gradient(180deg, #ffd56a, var(--brass) 55%, #c4851f) !important;
  border: 3px solid var(--brass-dark) !important;
  border-radius: 0 !important;
  box-shadow: 0 4px 0 #5a3a08, inset 0 2px 0 rgba(255, 255, 255, 0.5) !important;
  padding: 14px 26px !important;
  width: auto !important;
  min-width: 200px;
  cursor: pointer;
  text-shadow: none !important;
}

#ual-button:hover {
  filter: brightness(1.08);
}

#ual-button:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #5a3a08 !important;
}

#confirm {
  display: none;
  margin-top: 16px;
  font-family: 'Press Start 2P', monospace;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink);
  background: linear-gradient(180deg, #ffd56a, var(--brass) 55%, #c4851f);
  border: 3px solid var(--brass-dark);
  box-shadow: 0 4px 0 #5a3a08;
  padding: 12px 16px;
  max-width: 100%;
  overflow-wrap: anywhere;
  cursor: pointer;
}

#confirm:disabled {
  opacity: 0.6;
  cursor: default;
}

#response {
  margin-top: 14px;
  min-height: 1em;
  font-size: 24px;
  color: #ffe2a0;
}

#redirect {
  display: none;
  margin-top: 10px;
  font-family: 'Press Start 2P', monospace;
  font-size: 13px;
  color: var(--cream);
  text-decoration: none;
  padding: 10px 14px;
  background: var(--wood-dark);
  border: 3px solid #1b0d05;
}

#redirect:hover {
  color: var(--brass);
}

/* ---------- bar counter with taps ---------- */
.bar {
  margin-top: auto;
}

.taps {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 18px;
  height: 116px;
  overflow: hidden;
  padding: 0 16px;
}

.taps .mug {
  margin-bottom: 2px;
}

.counter {
  height: 64px;
  background:
    linear-gradient(180deg, #c48a4e 0 6px, #7a4a22 6px 12px, transparent 12px),
    repeating-linear-gradient(90deg, #5a3519 0 78px, #3e230f 78px 82px);
  border-top: 3px solid #e0a866;
  box-shadow: 0 -4px 0 rgba(0, 0, 0, 0.3);
}

/* ---------- small screens ---------- */
@media (max-width: 600px) {
  body { font-size: 20px; }
  .shelf--offset { display: none; }
  .sign-wrap { padding-top: 28px; }
  .sign { padding: 22px 16px 20px; }
  .sign h1 { font-size: 22px; }
  .sign .tagline { font-size: 22px; }
  #ual-button { font-size: 12px !important; min-width: 0; padding: 12px 18px !important; }
  .taps { gap: 10px; }
  .taps img:nth-child(n+6) { display: none; }
}
