/* TCA hidden catalog gifts. Neutral 2002 dialog, fits plain and loud pages. */
.tca-gift { cursor: pointer; }
button.tca-gift { all: unset; cursor: pointer; }
.tca-gift:hover { filter: brightness(1.08) saturate(1.1); }
.tca-gift:focus-visible { outline: 2px dotted currentColor; outline-offset: 2px; }
.tca-pop {
  position: fixed; left: 50%; top: 30%; transform: translateX(-50%); z-index: 9999;
  width: min(320px, calc(100vw - 32px)); box-sizing: border-box;
  background: #d4d0c8; color: #000; font: 13px/1.35 Tahoma, Verdana, Arial, sans-serif;
  border: 2px solid; border-color: #fff #404040 #404040 #fff; box-shadow: 2px 2px 0 #000;
  animation: tca-in .15s ease-out;
}
.tca-bar {
  display: flex; justify-content: space-between; align-items: center; padding: 2px 3px 2px 6px;
  background: linear-gradient(90deg, #0a246a, #a6caf0); color: #fff; font-weight: bold;
}
.tca-pop button {
  font: inherit; color: #000; background: #d4d0c8; cursor: pointer;
  border: 2px solid; border-color: #fff #404040 #404040 #fff;
}
.tca-pop button:active { border-color: #404040 #fff #fff #404040; }
.tca-pop button:focus-visible { outline: 1px dotted #000; outline-offset: -4px; }
.tca-x { width: 20px; height: 18px; padding: 0; line-height: 1; }
.tca-body { display: flex; gap: 10px; padding: 12px 12px 4px; align-items: flex-start; }
.tca-body b { display: block; overflow-wrap: anywhere; }
.tca-body p { margin: 6px 0 0; }
.tca-foot { text-align: center; padding: 8px 0 12px; }
.tca-ok { min-width: 76px; padding: 3px 8px; }
.tca-gi {
  flex: none; display: inline-block; position: relative; width: 36px; height: 36px;
  background: var(--gc, #999); border: 1px solid #000; box-sizing: border-box;
}
.tca-gi::before, .tca-gi::after { content: ""; position: absolute; background: #fff; opacity: .85; }
.tca-gi::before { left: 45%; top: 0; width: 10%; height: 100%; }
.tca-gi::after { top: 45%; left: 0; height: 10%; width: 100%; }
.tca-gi img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tca-gi-x { background: #222; filter: none; }
.tca-gi-x::before, .tca-gi-x::after { background: #555; }
.tca-n { font-weight: bold; margin: 0 0 8px; }
.tca-cl {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr));
}
.tca-cl li { display: flex; gap: 8px; align-items: center; min-width: 0; overflow-wrap: anywhere; }
.tca-un span { opacity: .6; }
@keyframes tca-in { from { opacity: 0; transform: translateX(-50%) scale(.9); } }
.tca-cb {
  all: unset; box-sizing: border-box; display: flex; gap: 8px; align-items: center; min-width: 0;
  cursor: pointer; overflow-wrap: anywhere;
}
.tca-cb:hover { text-decoration: underline; }
.tca-cb:focus-visible { outline: 2px dotted currentColor; outline-offset: 2px; }
/* VHS player for gifts that carry a video */
.tca-vhs {
  top: 16px; z-index: 10000; width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 32px); overflow: auto; background: #1b1b1b; color: #eee;
}
.tca-scr { position: relative; background: #000; }
.tca-scr video { display: block; width: 100%; max-height: calc(100vh - 110px); background: #000; }
.tca-scr::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 1px, transparent 1px 3px);
  animation: tca-flick 3s steps(2) infinite;
}
.tca-osd {
  position: absolute; top: 8px; left: 10px; pointer-events: none; color: #fff;
  font: bold 14px/1 "Courier New", monospace; text-shadow: 1px 1px 0 #000, -1px 0 0 #f0f, 1px 0 0 #0ff;
}
.tca-lbl {
  margin: 8px; padding: 3px 6px; background: #f4f1e6; color: #111; transform: rotate(-.6deg);
  font: bold 12px/1.3 "Comic Sans MS", "Chalkboard SE", cursive; overflow-wrap: anywhere;
}
@keyframes tca-flick { 50% { opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .tca-pop { animation: none; } .tca-scr::after { animation: none; } }
.tca-note { margin: 0 8px 8px; font: 11px/1.3 "Courier New", monospace; color: #9f9; }
