/* MyQRMart — building footer + paper. Cache-bust companion to gilt/loom. */

.block {
  margin-top: 56px;
  padding: 48px 0 32px;
  background:
    linear-gradient(180deg, #fff 0%, #fff6e4 55%, #ead9a8 100%);
  border-top: 4px solid #c9a24e;
  color: #5a4a28;
}
.block-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.15fr 0.95fr;
  gap: 28px 32px;
  align-items: end;
}
.block-who { font-size: 0.92rem; color: #8a7344; }
.block-who .tomb-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #4a3a18;
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.block-who .tomb-brand img { width: 36px; height: 36px; border-radius: 6px; }
.block-who a { color: #c9a24e; }

.tower {
  position: relative;
  min-width: 240px;
  background: linear-gradient(90deg, #cbb888 0%, #fbf6ea 10%, #fffdf6 50%, #fbf6ea 90%, #cbb888 100%);
  border: 3px solid #c9a24e;
  box-shadow:
    12px 16px 0 rgba(47, 127, 179, 0.16),
    inset 0 0 0 2px #fff;
}
.tower-roof {
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: #c9a24e;
  color: #fff;
  padding: 12px 10px 10px;
  clip-path: polygon(6% 100%, 0 0, 100% 0, 94% 100%);
}
.tower-ground {
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #1e5a82;
  padding: 10px 8px;
  border-top: 2px solid #c9a24e;
  background: #d9c48a;
}
.storey {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  min-height: 48px;
  color: #4a3a18;
  border-top: 1px solid rgba(201, 162, 78, 0.35);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.35);
  transition: background 0.35s ease, box-shadow 0.35s ease, color 0.35s ease;
}
.storey .wins { display: flex; gap: 4px; }
.storey .win {
  display: inline-block;
  width: 9px;
  height: 12px;
  font-style: normal;
  background: #8a7d62;
  box-shadow: inset 0 -3px 0 #5a4e38;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.storey .fl-no {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: #8a7344;
  font-variant-numeric: tabular-nums;
}
.storey .fl-name { font-size: 1.02rem; font-family: var(--font-display); }
.storey::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, rgba(255, 220, 90, 0.55), transparent 70%);
  transition: width 0.45s ease;
  pointer-events: none;
}
.storey:hover,
.storey:focus-visible {
  background: #fff3b0;
  color: #3a2c10;
  box-shadow: inset 0 0 28px rgba(255, 210, 70, 0.45);
  z-index: 1;
}
.storey:hover::after,
.storey:focus-visible::after { width: 100%; }
.storey:hover .win,
.storey:focus-visible .win {
  background: #ffe566;
  box-shadow: 0 0 10px 3px rgba(255, 229, 102, 0.95);
  animation: wink 0.55s ease;
}
.storey[aria-current="page"] {
  background: #fff8d6;
  box-shadow: inset 4px 0 0 #c9a24e;
}
.storey[aria-current="page"] .win { background: #e8cc7a; }
@keyframes wink {
  0% { transform: scaleY(0.35); }
  55% { transform: scaleY(1.2); }
  100% { transform: scaleY(1); }
}

.sheet {
  background: #fffef8;
  border: 1px solid rgba(201, 162, 78, 0.55);
  box-shadow:
    6px 8px 0 rgba(47, 127, 179, 0.1),
    inset 0 0 0 1px #fff;
  padding: 22px 22px 18px 32px;
  transform: rotate(-1.1deg);
  position: relative;
  min-height: 280px;
  background-image: repeating-linear-gradient(
    transparent 0,
    transparent 31px,
    rgba(201, 162, 78, 0.16) 32px
  );
}
.sheet::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: rgba(196, 80, 80, 0.32);
}
.sheet-head {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c9a24e;
  margin: 0 0 10px;
}
.sheet .line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #4a3a18;
  min-height: 32px;
  padding: 2px 0;
  text-decoration: none;
  font-size: 1.05rem;
  font-family: var(--font-display);
  overflow: hidden;
}
.sheet .words {
  display: inline-block;
  transform: translateX(0);
  border-bottom: 1px dotted transparent;
  transition: transform 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}
.sheet .tick {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}
.sheet .tick-mark {
  fill: none;
  stroke: #2a9d44;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 22;
  stroke-dashoffset: 22;
  transition: stroke-dashoffset 0.4s ease;
}
.sheet .tick-ring {
  fill: none;
  stroke: #2a9d44;
  stroke-width: 1.5;
  opacity: 0;
  transform-origin: 12px 12px;
  transform: scale(0.55);
  transition: opacity 0.3s ease, transform 0.35s ease;
}
.sheet .line:hover .words,
.sheet .line:focus-visible .words {
  transform: translateX(10px);
  color: #b8892e;
  border-bottom-color: #2a9d44;
}
.sheet .line:hover .tick-mark,
.sheet .line:focus-visible .tick-mark { stroke-dashoffset: 0; }
.sheet .line:hover .tick-ring,
.sheet .line:focus-visible .tick-ring {
  opacity: 1;
  transform: scale(1);
}

.block-note {
  margin: 24px auto 0;
  padding-top: 14px;
  border-top: 0.5px dashed #e6d4a0;
  font-size: 0.8rem;
  color: #8a7344;
  max-width: var(--max);
}

@media (max-width: 820px) {
  .block-grid { grid-template-columns: 1fr; align-items: stretch; }
  .sheet { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .storey:hover .win { animation: none; }
  .sheet .tick-mark { transition: none; stroke-dashoffset: 0; }
}
