.v-tag {
  --desk: #2f4a43; --manila: #ecd29c; --manila-dark: #d9b978; --ink: #2a2118; --indigo: #2f3a9e; --brick: #b3392a; --green: #1f7a4a; --cream: #f6eedb;
  background: radial-gradient(120% 80% at 50% 0%, #3c5c53, var(--desk)); color: var(--cream); font: 400 1rem/1.4 "Special Elite", "Courier New", monospace; padding: 1rem 1.125rem 1.25rem;
}
.v-tag :focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; }
.tg-head { display: flex; align-items: center; justify-content: space-between; }
.tg-head h1 { font-size: 1.125rem; font-weight: 400; letter-spacing: 0.02em; }
.tg-bags { display: flex; gap: 0.375rem; }
.tg-bags li { width: 1.125rem; height: 1.5rem; background: var(--manila); opacity: 0.35; clip-path: polygon(30% 0, 70% 0, 100% 25%, 100% 100%, 0 100%, 0 25%); }
.tg-bags li.now { opacity: 1; }
.tg-bags li.won { opacity: 1; background: #7fd0a0; }
.tg-bags li.lost { opacity: 1; background: #e58a7c; }

.tg-desk { flex: 1; display: flex; flex-direction: column; gap: 1rem; padding-top: 1.75rem; }

/* the tag: manila card, clipped shoulders, eyelet and string */
.tg-tag { position: relative; display: grid; gap: 0.75rem; padding: 2.75rem 1.25rem 0; color: var(--ink); background: linear-gradient(175deg, var(--manila), var(--manila-dark)); clip-path: polygon(14% 0, 86% 0, 100% 2.6rem, 100% 100%, 0 100%, 0 2.6rem); rotate: -1.5deg; transform-origin: 50% 1.4rem; filter: drop-shadow(0 10px 14px rgb(0 0 0 / 0.35)); }
.tg-hole { position: absolute; top: 0.8rem; left: 50%; width: 1.25rem; height: 1.25rem; translate: -50% 0; border-radius: 50%; background: var(--desk); box-shadow: 0 0 0 0.3rem #c9a35f, inset 0 2px 3px rgb(0 0 0 / 0.5); }
.tg-field { display: grid; gap: 0.1rem; }
.tg-field small { font-size: 0.75rem; letter-spacing: 0.06em; opacity: 0.7; }
.tg-name { font: 700 clamp(1.25rem, calc(25rem / var(--n, 8)), 2.5rem)/1.1 "Gentium Book Plus", Georgia, serif; overflow-wrap: anywhere; }
.tg-blank { height: 1.9rem; border-bottom: 2px dotted rgb(42 33 24 / 0.55); }
.tg-typed { display: inline-block; justify-self: start; font-size: 1.5rem; font-weight: 400; line-height: 1.25; border-bottom: 2px dotted rgb(42 33 24 / 0.55); white-space: nowrap; overflow: hidden; }
.tg-stamps { display: flex; gap: 0.75rem; align-items: center; min-height: 3.5rem; }
.tg-slot { display: grid; place-items: center; min-width: 6rem; height: 2.75rem; padding-inline: 0.75rem; border: 2px dashed rgb(42 33 24 / 0.3); border-radius: 6px; color: rgb(42 33 24 / 0.45); font-size: 0.8125rem; }
.tg-stamp { display: grid; justify-items: center; padding: 0.3rem 0.8rem 0.2rem; border: 3px double currentColor; color: var(--indigo); font-size: 1.0625rem; line-height: 1.15; text-transform: uppercase; letter-spacing: 0.04em; rotate: -5deg; mix-blend-mode: multiply; opacity: 0.9; }
.tg-stamp small { font-size: 0.625rem; letter-spacing: 0.12em; }
.tg-stamp.s0 { border-radius: 999px; padding-inline: 1.1rem; }
.tg-stamp.s1 { color: var(--brick); rotate: 4deg; border-radius: 4px; }
.tg-verdict { position: absolute; right: 0.9rem; top: 6.4rem; padding: 0.35rem 0.7rem 0.2rem; border: 4px solid currentColor; border-radius: 6px; font-size: 1.375rem; text-transform: uppercase; letter-spacing: 0.08em; rotate: 11deg; mix-blend-mode: multiply; }
.tg-verdict.ok { color: var(--green); }
.tg-verdict.bad { color: var(--brick); }
/* tear-off coupons: one per point still on the tag */
.tg-coupons { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0.25rem -1.25rem 0; border-top: 2px dashed rgb(42 33 24 / 0.5); }
.tg-coupons span { display: grid; place-items: center; grid-auto-flow: column; gap: 0.25rem; justify-content: center; padding: 0.6rem 0 0.5rem; font-size: 1.25rem; }
.tg-coupons span + span { border-left: 2px dashed rgb(42 33 24 / 0.5); }
.tg-coupons small { font-size: 0.75rem; }
.tg-coupons .gone { background: var(--desk); color: transparent; box-shadow: inset 0 6px 6px -4px rgb(0 0 0 / 0.5); }

/* the two rubber stamps */
.tg-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.tg-tool { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0.625rem; padding: 0.5rem 0.75rem; border: 0; border-radius: 10px; background: rgb(0 0 0 / 0.22); color: var(--cream); text-align: start; font-size: 0.875rem; line-height: 1.2; transition: scale 150ms ease-out; }
.tg-tool i { display: block; font-style: normal; opacity: 0.75; }
.tg-handle { position: relative; width: 1.5rem; height: 2.25rem; }
.tg-handle::before { content: ""; position: absolute; inset: 0 0.3rem 0.7rem; border-radius: 0.5rem 0.5rem 0.2rem 0.2rem; background: linear-gradient(90deg, #8a5a33, #c08a56 45%, #8a5a33); }
.tg-handle::after { content: ""; position: absolute; inset: auto 0 0; height: 0.7rem; border-radius: 2px; background: var(--indigo); box-shadow: inset 0 2px 0 rgb(255 255 255 / 0.25); }
.tg-tool.s1 .tg-handle::after { background: var(--brick); }
.tg-tool:disabled { opacity: 0.35; cursor: default; }

/* destination stickers: the answer is one of these */
.tg-stickers { display: grid; grid-template-columns: 1fr 1fr; gap: 0.625rem; }
.tg-sticker { position: relative; width: 100%; min-height: 3.25rem; padding: 0.5rem 0.5rem 0.35rem; border: 0; font: 700 1.0625rem/1.15 "Gentium Book Plus", Georgia, serif; text-wrap: balance; box-shadow: 0 3px 0 rgb(0 0 0 / 0.25); transition: scale 150ms ease-out, opacity 200ms ease-out; }
.tg-sticker.k0 { background: #1f8a8a; color: var(--cream); border-radius: 10px; outline: 2px solid var(--cream); outline-offset: -6px; }
.tg-sticker.k1 { background: var(--cream); color: var(--brick); border-radius: 999px; outline: 2px solid var(--brick); outline-offset: -5px; }
.tg-sticker.k2 { background: #e8b332; color: var(--ink); border-radius: 4px; outline: 3px double var(--ink); outline-offset: -7px; }
.tg-sticker.k3 { background: #26346f; color: var(--cream); border-radius: 14px 4px; outline: 2px dashed var(--cream); outline-offset: -6px; }
.tg-stickers li:nth-child(odd) .tg-sticker { rotate: -1.2deg; }
.tg-stickers li:nth-child(even) .tg-sticker { rotate: 1deg; }
.tg-stickers li:nth-child(3n) .tg-sticker { rotate: 1.8deg; }
.tg-sticker:disabled { cursor: default; }
.tg-sticker.void { background: #5d6562; color: #b9bdb6; outline-color: #9aa09b; box-shadow: none; }
.tg-sticker:disabled:not(.void):not(.right) { opacity: 0.4; }
.tg-sticker.right { box-shadow: 0 0 0 3px var(--desk), 0 0 0 6px #7fd0a0; }
.tg-no { position: absolute; inset: 50% auto auto 50%; translate: -50% -50%; rotate: -14deg; padding: 0.1rem 0.5rem 0; border: 3px solid var(--brick); border-radius: 4px; background: rgb(246 238 219 / 0.9); color: var(--brick); font: 400 1rem/1.2 "Special Elite", monospace; text-transform: uppercase; letter-spacing: 0.1em; filter: none; }

.tg-note { color: var(--cream); font-size: 0.9375rem; text-wrap: pretty; }
.tg-foot { display: grid; padding-top: 1rem; min-height: 1rem; }
.tg-button { height: 3.25rem; border: 0; border-radius: 10px; background: var(--manila); color: var(--ink); font-size: 1.0625rem; box-shadow: 0 4px 0 #a9894c; transition: scale 150ms ease-out; }
.tg-button.quiet { background: rgb(0 0 0 / 0.25); color: var(--cream); box-shadow: none; }
.tg-total { grid-template-columns: 1fr auto; align-items: center; }
.tg-total strong { font: 700 3rem/1 "Gentium Book Plus", Georgia, serif; }
.tg-total small { font-size: 1.5rem; opacity: 0.7; }
.tg-total .tg-button { padding-inline: 2rem; }
.tg-claim { gap: 1.25rem; }
.tg-tag.small { gap: 0.4rem; padding-top: 2.4rem; }
.tg-tag.small .tg-name { font-size: 1.375rem; }
.tg-tag.small .tg-typed { font-size: 1.125rem; }
.tg-tag.small .tg-stamps { display: none; }
.tg-tag.small:nth-child(even) { rotate: 1.5deg; }
.tg-tag.small .tg-verdict { top: 4.6rem; font-size: 1rem; }

@media (prefers-reduced-motion: no-preference) {
  .tg-tag.swing { animation: tg-swing 900ms cubic-bezier(0.2, 0, 0, 1) both; }
  .tg-tag.jolt { animation: tg-jolt 320ms ease-out both; }
  .thump { animation: tg-thump 280ms cubic-bezier(0.2, 0, 0, 1) both; }
  .tg-typed.type { animation: tg-type 700ms steps(14, end) both; }
  .tg-coupons .tear { animation: tg-tear 520ms cubic-bezier(0.3, 0, 0.8, 0.2) both; }
  .tg-sticker:not(:disabled):active, .tg-tool:not(:disabled):active, .tg-button:active { scale: 0.96; }
}
@keyframes tg-swing { 0% { rotate: -16deg; translate: 0 -120%; } 45% { rotate: 6deg; translate: 0 0; } 70% { rotate: -4deg; } 100% { rotate: -1.5deg; } }
@keyframes tg-jolt { 25% { rotate: -5deg; } 60% { rotate: 2deg; } }
@keyframes tg-thump { from { scale: 2.2; opacity: 0; } 60% { scale: 0.94; opacity: 1; } }
@keyframes tg-type { from { max-width: 0; } to { max-width: 100%; } }
@keyframes tg-tear { 0% { background: transparent; color: var(--ink); box-shadow: none; } 99% { background: transparent; color: var(--ink); box-shadow: none; transform: translateY(2.5rem) rotate(12deg); opacity: 0; } }
