/* Hero version: a paper luggage tag tied to the flap board's last hinge pin.
   The link stays still as the hit area; only .swing moves. */
.board .vtag.lug {
  --w: clamp(46px, 4.8vw, 70px);
  --drop: clamp(16px, 1.6vw, 22px);
  position: absolute; left: calc(100% + 8px); top: 0.6em; /* em = board size: the hinge line */
  display: block; min-width: var(--w); padding: 0 0 6px; text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.lug .swing {
  position: relative; display: block; padding-top: var(--drop); transform-origin: 50% 0; rotate: -8deg;
  filter: drop-shadow(0 7px 6px rgba(70, 18, 0, 0.35));
}
/* the string: from the pin, over and down into the eyelet */
.lug .cord {
  position: absolute; right: 50%; top: -3px; width: calc(50% + 16px); height: calc(var(--drop) + 14px);
  border-top: 2px solid #34180a; border-right: 2px solid #34180a; border-top-right-radius: 70% 100%;
  rotate: 8deg; transform-origin: 0 0;
}
.lug .card {
  position: relative; display: flex; align-items: flex-end; justify-content: center;
  height: calc(var(--w) * 1.5); padding: 0 7px calc(var(--w) * 0.24);
  background: linear-gradient(#f7ecd6, #eadab8);
  clip-path: polygon(24% 0, 76% 0, 100% 18%, 100% 100%, 0 100%, 0 18%);
  transition: background-color 0.2s ease;
}
.lug .card::before { content: ''; position: absolute; left: 12%; right: 12%; bottom: calc(var(--w) * 0.18); border-top: 1px solid rgba(35, 31, 27, 0.25); }
.lug .eye {
  position: absolute; left: 50%; top: calc(var(--w) * 0.16); width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%;
  background: #c4501d; box-shadow: 0 0 0 3px #d5c09a, inset 0 1px 2px rgba(60, 14, 0, 0.6);
}
.lug .txt { position: relative; top: calc(var(--w) * -0.1); font: 700 clamp(11px, 1vw, 14px)/1 var(--mono); letter-spacing: 0; color: #231f1b; white-space: nowrap; }
[data-theme='dark'] .lug .card { background: linear-gradient(#efe1c4, #dccaa3); }
[data-theme='dark'] .lug .swing { filter: drop-shadow(0 7px 8px rgba(20, 5, 0, 0.6)); }
@media (hover: hover) {
  .lug:hover .card { background: linear-gradient(#fbf3e2, #f0e2c3); }
  .lug:hover .txt { color: #000; }
  .motion .lug:hover .swing { animation: lug-swing 1.2s cubic-bezier(0.3, 0.7, 0.4, 1); }
}
.lug:active .card { scale: 0.97; }
@keyframes lug-swing { 0% { rotate: -8deg; } 22% { rotate: 7deg; } 48% { rotate: -5deg; } 74% { rotate: 1deg; } 100% { rotate: -8deg; } }
/* focus ring that follows the tag's cut corners */
.lug:focus-visible { outline: none; }
.lug:focus-visible .swing { filter: drop-shadow(2.5px 0 0 var(--cream)) drop-shadow(-2.5px 0 0 var(--cream)) drop-shadow(0 2.5px 0 var(--cream)) drop-shadow(0 -2.5px 0 var(--cream)); }
@media (max-width: 480px) {
  .board .vtag.lug { left: calc(100% + 3px); }
  .lug .card { padding-inline: 4px; }
  .lug .txt { font-size: 10.5px; }
}
/* two lines: "Now on" small above the version */
.lug .txt { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.lug .now { font-size: 0.72em; font-weight: 600; letter-spacing: 0.02em; opacity: 0.7; }
