/* Collect Wartav | the hall, the envelopes, the keypad and the ledger slip. Builds on the shared game styles. */
.wt-hall { position: relative; display: grid; place-items: center; max-width: 560px; min-height: 190px; margin: 8px auto 12px; padding: 18px 24px; overflow: hidden;
  background: radial-gradient(circle at 50% 0%, #7a1730 0%, #4a0f1d 70%); border: 3px solid #d9a441; border-radius: 6px; box-shadow: inset 0 0 0 4px rgba(217,164,65,.25); }
.wt-hall::before, .wt-hall::after { content: ""; position: absolute; top: 0; bottom: 0; width: 8px; background: repeating-linear-gradient(180deg, #d9a441 0 8px, transparent 8px 16px); opacity: .5; }
.wt-hall::before { left: 7px; } .wt-hall::after { right: 7px; }
/* the closed ledger message and the flashing cards share one centred spot, so neither pushes the other aside */
.wt-idle, .wt-cards { grid-area: 1 / 1; }
.wt-idle { position: relative; z-index: 1; margin: 0; width: 100%; max-width: 340px; text-align: center; text-wrap: balance; overflow-wrap: anywhere; color: #f6e3b4; font-family: var(--sans); font-size: clamp(14px, 3.6vw, 16px); line-height: 1.5; }
.wt-idle[hidden] { display: none; }
.wt-cards { position: relative; z-index: 1; container-type: inline-size; display: flex; gap: clamp(6px, 3cqw, 14px); align-items: center; justify-content: center; width: 100%; min-height: 120px; }
.wt-cards:empty { display: none; }
.wt-card { position: relative; flex: 0 1 230px; min-width: 0; padding: 30px 8px 20px; background: linear-gradient(#fff8e2, #f2dca4); border: 2px solid #d9a441; border-radius: 4px; color: #4a0f1d;
  box-shadow: 0 8px 18px rgba(0,0,0,.4); transform: rotate(var(--tilt, 0deg)); animation: wtpop .14s ease-out; }
.wt-card b { display: block; font-family: var(--sans); font-weight: 900; font-size: clamp(30px, 9vw, 54px); font-size: clamp(26px, 17cqw, 54px); line-height: 1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wt-flap { position: absolute; left: 0; right: 0; top: 0; height: 22px; background: linear-gradient(#c62a3f, #8f1a2c); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.wt-cards.two .wt-card { flex: 1 1 0; padding: 28px 4px 16px; }
.wt-cards.two .wt-card b { font-size: clamp(20px, 6.4vw, 40px); font-size: clamp(16px, 10.5cqw, 40px); }
@keyframes wtpop { from { transform: rotate(var(--tilt, 0deg)) scale(.86); opacity: .3; } to { transform: rotate(var(--tilt, 0deg)) scale(1); opacity: 1; } }
.wt-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(0,0,0,.35); z-index: 2; }
.wt-prog i { display: block; height: 100%; background: #d9a441; transform-origin: left; transform: scaleX(0); }
.wt-prog[hidden] { display: none; }

.wt-hall[hidden], .wt-desk[hidden] { display: none; }
.wt-desk { max-width: 340px; margin: 0 auto 8px; }
.wt-screen { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 10px 14px 8px; background: #fffaf0 repeating-linear-gradient(#fffaf0 0 27px, #e8dcc0 27px 28px); border: 2px solid #4a0f1d; border-radius: 4px; }
.wt-label { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8f1a2c; }
.wt-total { font-family: "Courier New", ui-monospace, monospace; font-weight: 700; font-size: clamp(30px, 9vw, 40px); color: #4a0f1d; font-variant-numeric: tabular-nums; min-height: 1.2em; overflow-wrap: anywhere; }
.wt-timer { position: relative; margin: 8px 0; height: 22px; background: #eadfc4; border: 2px solid #4a0f1d; border-radius: 12px; overflow: hidden; }
.wt-timer[hidden] { display: none; }
.wt-timer i { position: absolute; inset: 0; background: linear-gradient(90deg, #d9a441, #f0c35c); transform-origin: left; }
.wt-timer b { position: relative; display: block; font-family: var(--sans); font-size: 13px; line-height: 18px; color: #4a0f1d; font-variant-numeric: tabular-nums; }
.wt-timer.low i { background: linear-gradient(90deg, #c62a3f, #e5566a); }
.wt-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; opacity: .55; transition: opacity .15s; }
.wt-pad.on { opacity: 1; }
.wt-key { appearance: none; cursor: pointer; height: 54px; border: 2px solid #4a0f1d; border-radius: 8px; background: #fff8e2; color: #4a0f1d; font-family: var(--sans); font-weight: 800; font-size: 24px;
  box-shadow: 0 4px 0 #4a0f1d; touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.wt-key:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 #4a0f1d; }
.wt-key:disabled { cursor: not-allowed; }
.wt-key:focus-visible { outline: 3px solid #1b4fd0; outline-offset: 2px; }
.wt-clr, .wt-del { background: #f2dca4; font-size: 20px; }
.wt-ok { grid-column: 1 / -1; height: 60px; background: #1c6b3a; border-color: #0f3d21; color: #fff; box-shadow: 0 5px 0 #0f3d21; font-size: 20px; letter-spacing: .08em; text-transform: uppercase; }
.wt-ok:active:not(:disabled) { box-shadow: 0 1px 0 #0f3d21; }
.wt-note { margin-top: 12px; }

/* the result: a ledger slip with a stamp */
.wt-slip { position: relative; max-width: 380px; margin: 4px auto 14px; padding: 18px 18px 22px; text-align: left; background: #fffaf0 repeating-linear-gradient(#fffaf0 0 27px, #e8dcc0 27px 28px);
  border: 1px solid #cdb88a; border-left: 6px double #c62a3f; box-shadow: 0 6px 16px rgba(0,0,0,.15); font-family: "Courier New", ui-monospace, monospace; color: #3b2a14; }
.wt-slip-h { margin: 0 0 6px; font-family: var(--sans); font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: #8f1a2c; }
.wt-slip-d { margin: 0 0 8px; }
.wt-slip-d summary { cursor: pointer; font-size: 13px; text-decoration: underline; padding: 4px 0; }
.wt-slip-l { list-style: none; margin: 4px 0 0; padding: 0; max-height: 260px; overflow-y: auto; font-size: 13px; }
.wt-slip-l li { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; border-bottom: 1px dotted #b9a373; }
.wt-slip-t { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 10px 0 0; padding-top: 8px; border-top: 2px solid #3b2a14; font-size: 14px; }
.wt-slip-t b { font-size: 26px; font-variant-numeric: tabular-nums; }
.wt-slip-g { margin: 6px 0 0; font-size: 13px; color: #a3121f; }
.wt-slip-m { margin: 10px 0 0; font-family: var(--sans); font-size: 13px; line-height: 1.4; color: #5b4727; }
.wt-stamp { width: fit-content; margin: 14px auto 0; padding: 4px 12px; border: 3px solid #1c6b3a; border-radius: 4px; color: #1c6b3a; font-family: var(--sans); font-weight: 900; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; transform: rotate(-9deg); background: rgba(255,250,240,.7); }
.wt-slip.bad .wt-stamp { border-color: #a3121f; color: #a3121f; }
